MuSAELab/BLE-Toolkit-LabVIEW

Problem with Serial Comunication

Closed this issue · 3 comments

Hello.
These days I've been trying to communicate arduino and labview through Bluetooth low energy.

We wanted to acquire and send data from Bluetooth device.

with a mobile app, we acquired the service name and characteristics:

whatsapp image 2018-04-23 at 16 27 32

I modified the program to acquire the name of the device, to instead, acquire the data sent to the device, replacing the example services, and introducing my custom services, seen in the image:

imatge

(I've tried with 0000ffe0-0000-1000-8000-00805f9b34fb instead of FFE0 but the error is the same)

It was a shame, but trying to get data from a service didn't seem an option so then I tried to acquire data from the serial port:

dubte

And it worked!

The problem is that no matter how I modify it, i can't send data through the serial port. I can receive, but I can't send.

Could you give me any help?

main.zip

These are some points that may help you at finding the problem.

  1. What does the error say?
  2. Are your service (FFE0) and characteristic (FFE1) listed in the Handle Table?
  3. If your device is sending the characteristic values, they will detected as Events, try to use the ble_evt_attclient_attribute_value.vi in the While loop. This is shown in the example ble_read_hr_monitor.vi which is installed in the LabVIEW example folder (mine is C:\Program Files (x86)\National Instruments\LabVIEW 2013\examples\BLE)
  4. The BLE-Toolkit-LabVIEW is wrapper for serial communication with the BLED112 dongle. By reading and writing directly on the serial port, you need to be aware of the format of the data received BGAPI protocol

Closed because inactivity