Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Commands on the BLE server

Hi to all,

 

I would like to know if there is some place where it can be found a complete set of commands to send to de BLE server. There are several posts that show the typical

http://localhost:5000/gatt/nodes/

or

http://localhost:5000/gatt/nodes/XXXXx/services/

http://localhost:5000/gatt/nodes/XXXXx/characteristics/Y/value (where value is the handle).

 

These kind of actions are quite clear, and are exactly what BLE instrument drivers function blocs do, by means of GET or PUT typical http instructions. But,  I can’t find anywhere a detailed description of a complete set of actions that can be performed with the server. For example to enable or disable notifications or other properties (if the charateristic allows this, of course).

 

I’m interested on this matter because I have problems reading a custom characteristic value.  I have an Arduino based system transmitting data by means of a HM-10 BLE module connected on its serial port. The transmitted information is read by a PC, with Windows 10, using its built in Bluetooth hardware, and running a Labview application (Labview 2017) using the BLE instrument drivers blocs. Everything is OK except when I’m trying to read the characteristic value. It returns always the MAC address. On the other hand, doing something similar with a Genuino (it has its BLE module embedded, no need of an external HM-10 module) and the CurieBLE library it works perfectly. So, I think it has something to do with the properties of the characteristic used, diferent when usign HM-10 or Genuino as transmitters.

 

Reading the characteristic value with and Android phone and an app (for example the nrFconnect from Nordic), works correctly. Also, when using the PC with an application lilke Bluetooth LE Explorer I’m able to read the characteristic value sent by HM-10 module. The curious thing is that the value is updated continuously, even if I has configured the module for NO notifications (it seems it goes back to allow notifications itself?). In addition, the big clue is that while receiving this data if I press the button read data in the Bluetooth LE explorer, shortly appears the mac address of the HM-10,and then it carries on providing the correct value and continues updating correctly. Everytime I press the button “read data” it happens the same. So it seems that it has something to do with the properties, and if I understood correctly, NI BLE server only allows for read, when using the bloc “Read BLE channel”. So it seems to me that what is hapenning with the BLE server, is similar to what happens when I press the button "read" in the Bluetooth LE explorer.

 

I hope I’ve made myself clear enough. Any help would be appreciated. Thanks in advance.

Message 1 of 2
(2,628 Views)

I'm over a year late but check this doc out:

https://www.cassianetworks.com/download/docs/Cassia_SDK_Implementation_Guide.pdf

I'm traveling down a very similar path so any tips you've picked up along the way would be useful.

0 Kudos
Message 2 of 2
(2,167 Views)