L lip Active Member Licensed User Longtime User Feb 5, 2013 #1 I am using the Bluetooth Example to connect to a an Adeunis device via Bluetooth. The connection works and I can send data and see it on the Adeunis. I have initialised the serial port in Prefix mode and can see the prefix bytes arriving so all is good. Before I have sent any data, the Adeunis device receives about 30 random looking bytes. Is this coming from my Initialise command? If so can anyone tell me what is in it so that we can interpret it (and or work out hw to ignore it) at the other end? Thank you in advance...
I am using the Bluetooth Example to connect to a an Adeunis device via Bluetooth. The connection works and I can send data and see it on the Adeunis. I have initialised the serial port in Prefix mode and can see the prefix bytes arriving so all is good. Before I have sent any data, the Adeunis device receives about 30 random looking bytes. Is this coming from my Initialise command? If so can anyone tell me what is in it so that we can interpret it (and or work out hw to ignore it) at the other end? Thank you in advance...
Erel B4X founder Staff member Licensed User Longtime User Feb 5, 2013 #2 I'm not familiar with these devices. In order to use prefix mode you need to implement both sides of the connection and adhere to the prefix mode protocol (which sends the message length as the first 4 bytes). Upvote 0
I'm not familiar with these devices. In order to use prefix mode you need to implement both sides of the connection and adhere to the prefix mode protocol (which sends the message length as the first 4 bytes).
KitCarlson Active Member Licensed User Longtime User Feb 5, 2013 #3 This may help. My BT radio has a control mode and a data mode. When first connected it will put out string about 'IN BYPASS MODE'. The bypass mode is the desired for data communications. I use non prefix mode with a simple protocol, the protocol works to validate the data and purpose. I have found the communications works well in my application. Upvote 0
This may help. My BT radio has a control mode and a data mode. When first connected it will put out string about 'IN BYPASS MODE'. The bypass mode is the desired for data communications. I use non prefix mode with a simple protocol, the protocol works to validate the data and purpose. I have found the communications works well in my application.
IanMc Well-Known Member Licensed User Longtime User Feb 5, 2013 #4 You might try my software BTInterface from the Google Play Store here: https://play.google.com/store/apps/details?id=com.btinterface.trial.beta as it has a terminal screen which lets you see everything coming and going. Works at 9600 baud by default. Upvote 0
You might try my software BTInterface from the Google Play Store here: https://play.google.com/store/apps/details?id=com.btinterface.trial.beta as it has a terminal screen which lets you see everything coming and going. Works at 9600 baud by default.