CANDY-LINE / node-red-contrib-generic-ble

A Node-RED node set for providing access to generic BLE peripheral GATT characteristics.
Apache License 2.0
24 stars 22 forks source link

Cannot write with Generic BLE Out #53

Open habakuk1979 opened 3 years ago

habakuk1979 commented 3 years ago

Hello!

I am on ubuntu 18.04 with BLUEZ 5.53. I am using your nodes node-red-contrib-generic-ble V 4.0.3 After fiddling around with the BLE settings for quite a while I finally got the scan working and have alle the UUID-characteristics listed in Generic BLE in /out nodes.

However I went through your help file a thousand times being absolutely sure that my json syntax of my Inject node is correct, but I CANNOT wrigte to my device although it's BLE nodes are propperly connected.

my gatttool command would be:

gatttool -t random -b F7:EE:ED:71:56:E2 --char-write-req -a 0x2f -n 03010101 (this is starting the shutter of a camera)

so my msg.payload JSON is:

{ "b5f90074aa8d11e390460002a5d5c51b": "03010101" }

No reaction of camera. Although I am absolutely positive that this is the correct writable UUID, I tried all available UUIDSadvertised by the peripheral device.

Is the Syntax correct? Is the length of the value an issue? Which protocoll are you using in the background: bluetoothctl's write? (I assume)

However, I do have troube to run an acquire-write command on the shell: Permission denied!

just ion case this is an issue.

please help.

habakuk1979 commented 3 years ago

i fixed this - got the wrong handle