Use scan BLE with Raspberry Pi

1,126 views
Skip to first unread message

Elisa Druart

unread,
Feb 21, 2017, 6:54:19 AM2/21/17
to Node-RED

I’m currently working on node-red in a raspberry Pi. I try to use the node scan BLE.

I can see that Bluetooth is running thanks to the “started”, but when I deploy, I have only these messages. I don’t understand what does “Adapter state: unauthorized” mean…

[[Image joined]]


So in order to see if the problem come from node-red or the Raspberry, I decide to follow these steps: https://mcuoneclipse.com/2016/12/19/tutorial-ble-pairing-the-raspberry-pi-3-model-b-with-hexiwear/comment-page-1/#comment-88689 . The difference for me is: I have a glucometer using BLE. I can read some data in the glucometer, but, it disconnects after a while (the parring works on the raspberry but not in the device…)


If somebody have an idea?  I don’t know if I need some hardware or others libraries…

image-illus.pdf

Per Thomas Jahr

unread,
Feb 21, 2017, 2:13:48 PM2/21/17
to Node-RED
Usually you have to set some more permission in order for the adapter to do a scan. Try with the command: 
sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)

Also see her for more info:
--
Per Thomas Jahr

--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/016f3186-5861-4c65-acd1-77c4f0344b9a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages