Closed mypi-home closed 4 years ago
It seems the node failed to find the given UUID of the characteristic to read. You can find all characteristics in the trace log when trace log is enabled. In order to enable it, you can run the following command:
# Go to the node-red source code project root dir
$ cd /path/to/your/node-red
# prepend "GENERIC_BLE_TRACE=true" to "node" command
$ GENERIC_BLE_TRACE=true node red
Re-open it when you have update.
Hi there,
I have been unable to get these tools to work after many hours of trying.
I am able to use Gatttool interactive mode (non interactive mode doesnt work) and connect to my BLE device, read data and control it so I have validated the handles and UUIDs I am using.
My first issue like other have experienced is that Node did not have access to the bluetooth driver - I could not see anything listed under the scans just a stop sign. So I needed to execute this command and then I was able to see devices (you should probably add this to your instructions?):
sudo setcap cap_net_raw+eip $(eval readlink -f
which node)
Now that I can see and setup devices from the scan list it still doesnt seem to be communicating with them. If I try to retrieve a specific property it just always says nothing to read.
28 Apr 12:20:17 - [warn] [Generic BLE in:371911e.c749aee] <02762c3b5257> Nothing to read
If I leave Topic blank it retrieves some information but this is not recognisable to me:
In syslog I can see this happens just before:
In hcitrace I see nothing at all after the initial scan when node starts.
If I try to use to GenericBLE out tool with this json it also does not do anything, no error messages, nothing in syslog or hcitrace.
It also doesn't work without the: "writeWithoutResponse": true
I am using Bluez 5.50 on Raspberry Pi 3b+
Please can you help as I really want to get this working.
In your readme you advise using "Set GENERIC_BLE_TRACE=true on starting Node-RED" - can you advise how and where to actually do this as maybe I am doing it wrong. I just executed in command prompt.
Thanks Chris.