Comment 2 for bug 696562

Revision history for this message
Jorge Silva (jorge-silva) wrote :

I marked https://bugs.launchpad.net/meadl/+bug/702683 as a duplicate of this one since I believe it is all related. I managed to put a 2.1 Droid/Milestone in a disconnect/reconnect loop and I now believe this is related to an issue with the buffer of the serial port over bluetooth. Currently, the buffer has a size of 1 byte, which may cause problems if the Shield sends data too fast.

First the symptoms, while in this disconnect/reconnect loop I observed the following:
1. The Tekla Shield is completely unusable
2. The Tekla Shield connects and disconnects immediately so it is very likely that the app is crashing
3. The options dialogue becomes inconsistent and unresponsive (e.g., the notification on the status bar appears, the LED on the Tekla Shield is solid green but the option for connecting with the Shield is not checked).
4. Disconnecting and reconnecting the Shield's power does not solve the problem
5. Restarting the phone does not solve the problem

Are you observing these symptoms too?

Now the work around: after a few tries, I managed to make the app work again by doing the following:
1. Unplug the Shield from power
2. Uncheck the connect to Shield option under Tekla keyboard settings
3. Follow this guide:
http://www.mydigitallife.info/2010/07/02/how-to-switch-or-change-input-method-on-android-smart-phone-device/
to select an input method different from the Tekla keyboard
4. Disable (uncheck) the Tekla keyboard under Settings > Language & keyboard
5. With Bluetooth enabled, go to Settings > Wireless & networks > Bluetooth settings, and unpair the FireFly-XXXX entry under Bluetooth devices by long-pressing on it.
6. Restart the phone
This will effectively "reset" the state of the Bluetooth connection to the Shield, so after restarting, we'll have to set it up again:
7. Connect the Shield to a reliable power source (USB to a desktop computer is recommended) and make sure the bluetooth modem at the top has a blinking red light.
8. Go to Settings > Wireless & networks > Bluetooth settings > Scan for devices to pair with the Shield again
9. When prompted for a passcode use 1234
10. The Shield should now be listed as "Paired but not connected"
11. Go to Settings > Language & keyboard and enable the Tekla keyboard
12. Follow this guide:
http://www.mydigitallife.info/2010/07/02/how-to-switch-or-change-input-method-on-android-smart-phone-device/
to select the Tekla keyboard as the input method
13. Go to Settings > Language & keyboard > Tekla keyboard settings > Connect to shield
14. The Tekla Shield should now connect normally to the app showing the UI navigation keyboard

Please post your results...