Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 3 months ago.
from where i can start? bluetooth dongle and one device
dear all just I need help from where I can start? I use mbed lpc1768 with application board and I use Bluetooth dongle. I started with library of peter barrett (BlueUSB). I don't want to use mouse, or keyboard or mic or mass storage device. I just need to send the data from Bluetooth device (wireless pulse oxemeter) to the lcd in the application board. I include C12832.h to the code so, I need to know from where I can start ? what I need to include or exclude to (BlueUSB) please any comments
1 Answer
10 years, 3 months ago.
I guess your problem is how to get the MBED to talk to your meter? You would have to know more about the meter first. If the meter is connected to a PC you can try to see which services it uses. The PC will use SDP (Service Discovery Protocol) to inquire which services the meter supports (e.g. RFCOMM). The application on the PC will then use this protocol to connect to the meter. This still does not tell you the structure of the messages, this you can find in the documentation or use a sniffer on the PC to reverse engineer it. When the protocol is RFCOMM, chances are that the application also uses a serial protocol in which case you can use a comport sniffer. Otherwise you can use a USB sniffer which will give you also information on the lower layers of the Bluetooth protocol and on how the host communicates with the dongle (use the same dongle!). Once you have reverse engineered the whole protocol you have to see if the BlueUSB stack supports all what you need. From what I remember it only supports HCI and L2CAP and not even to the full extent.
dear Ad Van since you are expert in mbed with Bluetooth I need your help and be patient. I have one pulse oximeter device supported with Bluetooth v2.0. this device give you measurement of heart rate and oxygen saturation if I connect it to my finger. I did test by matlab and by software coming with the meter and its fine. from the software provided , it support RFCOMM. now I need to read the measurement coming from oximeter to my lpc1768 and print it on the lcd. I used the same dongle u did in your project. moreover my oximeter device supports serial port profile and operate as slave. please comment
posted by 08 Sep 2014
Usually you do this: call init method and in a loop call reading method. You can debug the input stream with printf in your code and serial port monitor software in your pc. Do not exclude anything before you are familiar with the library code.
posted by Compass Developer 05 Sep 2014I am new to this, could you please clarify more?
posted by Sami Alshorman 05 Sep 2014