Other Parts Discussed in Thread: CC2540
Hello,
A customer gave me an existing enclosure containing the BLE dongle and has asked me to develop some drivers to be able to perform a series of simple tasks (request the address of the dongle, make it avialable for connection, determine the name of the device the dongle is connected to as well as the signal strength). I have been able to communicate with the device using BTool but need to make my application in LabVIEW. I attempted to open the connection by opening a Visa serial comm to the appropriate COM port and defined the serial settings to be the same as the ones used in BTool. However, when I try and write to the device and read back a response, my read times out (I've attached the snippet of code that I am using). I know that the dongle is in a state that should allow me to communicate to it since the customer is currently running an executable that communicates with it.
From looking around on the forum, it seems that the way in which I communicate with it will depend on what firmware is loaded on. In the small amount of documentation, I found that the previous developers flashed the device with a TI demo hex they called "TI_BLE_Dongle v1_0.hex" but I am not sure if this is the actual name of the firmware or just what the name they gave to the file. Is there a way to determine what firmware is flashed on the device using BTool?
My final question is about the formatting of the string commands that I will eventually send over serial. From BTool I can see the "TX" for the HCI Reset is "01 03 0c 00". If I were to send the command over serial from my labview code (or any platform for that matter) what exact string would I have to send over? Do I just send that exact string or does it have to be converted from one representation to another? I imagine that sending the incorrectly formatted commands would result in an "invalid" response. Seeing as I have not been able to get any response at all from the board means that I have no way of knowing if I've sent out the correct format or not.
Thank you in advance for the help,
Eric