Template:FAQ/Questions/needs to be changed

What needs to be changed in applications that ran on the ROK bluetooth module to run on the Singlestone bluetooth module?
1. The big change on the bluetooth (which is what stops old code working with new module) is that the starting baud rate for comms to the BT module is now 115200 instead of 57600.

Easy fix though: just modify the config file /etc/default/bluetooth to have starting baud rate of 115200 instead of 57600. Also, the HCI command to switch baud rates has been changed — so set the max baud rate to 115200 also, or you lose contact with the BT module when the gumstix switches baud rates and the module doesn't.

Craig'll be working on looking at why the baud rate switch fails, so that we can get the Singlestone modules running at 921600, but for now, you'll be limited to 115200.

2. The new bluetooth module needs a 32Khz clock signal to be fed to the module from the PXA by setting one of the GPIO lines to a special alt function mode, and enabling the OSCC on the PXA. This is done properly by the u-boot in the latest buildroot revisions, (as of Jan 27, 2006) and double-checked by the latest bluetooth startup scripts in the buildroot using pxaregs to ensure that the clock is in fact ticking before attempting to talk to the BT module.