Bluetooth serial module & OSX

Hi All,

I cannot seem to get the USB module to work at all.I am using OSX.
I can see the modem and get a terminal to connect but get no response at any board rates.

Any advice or wisdom? - this has frustrated me for a few hours now…

Much appreciated,

John.

There are some tips at github.com/arcbotics/hexy/wiki

When connected via USB, you can list the available serial devices via the terminal by typing “ls -al /dev/tty.*”

$ ls -al /dev/tty.*
crw-rw-rw-  1 root  wheel   18,   8 Jan  5 13:12 /dev/tty.ArcBotics-DevB
crw-rw-rw-  1 root  wheel   18,  12 Jan  5 14:45 /dev/tty.usbmodemfa1311

The Servotor board will be the one titled “tty.usbmodemXXXXX”.

If you can see the device, then try to run PoMoCo as noted on the wiki.

Good luck!

I am experiencing the same problems but I’m going to try to troubleshoot again now. Thanks for the advice here.

This is what I get when I run the command in terminal:

crw-rw-rw- 1 root wheel 33, 14 Jan 5 21:27 /dev/tty.ArcBotics-DevB
crw-rw-rw- 1 root wheel 33, 2 Jan 5 13:46 /dev/tty.Bluetooth-Modem
crw-rw-rw- 1 root wheel 33, 0 Jan 5 21:27 /dev/tty.Bluetooth-PDA-Sync

But when I try to connect to Servotor via PoMoCo.py I get this:

Attempting to connect to Servotor
Trying Windows Method
Connection to Servotor failed. No robot movement will occur.
initilizing servos
servos initalizied
Killing all servos

What baud rate should the bluetooth modem be set at? Mine passes the test when I run the Bluetooth115200 sketch but not the Bluetooth9600.

So I figured out how to configure the bluetooth to 9600 after rereading all the documentation posted on the Wiki. I can now send commands to Servotor via bluetooth in the serial monitor in Arduino but I cannot connect with PoMoCo. I must be doing something wrong here but I’m not sure what it is. I am using Mac OS X as the original poster is.

Hi All,

thanks for chiming in…
I found it in the end at wasn’t to do with the bluetooth module it was that the changes I made to servoator weren’t being uploaded to hexy (despite the arduino dev environment saying so). I am talking to hexy via bluetooth now - although the performance seems much much lower for sending commands than USB…

John.

Quick tip: when you are using the Arduino dev environment to upload modified Servoator code turn on verbose output for upload and compilation. The tools report a successful upload even when there are errors! When messing with the bluetooth and USB serial ports It seems that you can lock up the serial comms mechanisms on the board and prevent an upload from happening. One handy trick to unlock this state is to hold down reset on the board, hit the upload button, watch the tools search for a serial connection and release the reset - the firmware will upload and write to flash successfully. Hope this helps some of you when playing with the bluetooth module and you find yourself completely stuck and you cant even upload the basic serial port config/test program …