• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bluetooth testing
Hello Armin,

I am testing netPI RTE for Bluetooth. Ipad act as another Bluetooth device to communicate & exchange data with netPi RTE.

I have installed the Node-red docker container from (https://hub.docker.com/r/hilschernetpi/netpi-nodered) & added Bluetooth related setting as below.


I can get a scan result in the Bluetooth node (attachment result). but after deploy & then inject it got to connect for 1 second then disconnected & then it gives an error (attachment error). complete debug error message (debug error message).


Attached Files Thumbnail(s)
Well I see the log file you sent

msg : string[1575]
/__bledev/6901420e6d8c err:Error: Missing Peripheral Device
=>Error: Missing Peripheral Device
    at Peripheral.a (/usr/lib/node_modules_tmp/node-red-contrib-generic-ble/dist/generic-ble.js:216:31)
    at Object.onceWrapper (events.js:420:28)
    at Peripheral.emit (events.js:326:22)
    at PeripheralRemovableNoble.Noble.onDisconnect (/usr/lib/node_modules_tmp/node-red-contrib-generic-ble/node_modules/@abandonware/noble/lib/noble.js:245:16)
    at BluezBindings.emit (events.js:314:20)
    at ProxyInterface.<anonymous> (/usr/lib/node_modules_tmp/node-red-contrib-generic-ble/dist/noble/lib/bluez/noble/lib/bluez/bindings.js:623:18)
    at ProxyInterface.emit (events.js:314:20)
    at EventEmitter.$listeners.<computed> (/usr/lib/node_modules_tmp/node-red-contrib-generic-ble/node_modules/dbus-next/lib/client/proxy-interface.js:108:17)
    at EventEmitter.emit (events.js:326:22)
    at handleMessage (/usr/lib/node_modules_tmp/node-red-contrib-generic-ble/node_modules/dbus-next/lib/bus.js:11...

In this log file you see that the public node "node-red-contrib-generic-ble" reports an error. This is not a root cause of netPI but a root cause and malfunction of this node. 

Hilscher is not aware of any guarantee of 3rd party software like Node-RED and all the public nodes that are included in our Node-RED container example build. So I am sorry to say that I cannot help here.

The maintainer of the "node-red-contrib-generic-ble" is this one here https://flows.nodered.org/node/node-red-...eneric-ble. He has the responsobility. But even so ... all nodes of Node-RED are open source and public. They can be used for free as they come ... so there is no guarantee of 100 % errorr free function at any time.
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

Thanks, Armin.

In last year I have tested with the same setup & it was working properly, but now it is not working.

Is there any issue with this generic-ble.js:216:31 file (location -  /usr/lib/node_modules_tmp/node-red-contrib-generic-ble/dist/generic-ble.js:216:31), it is giving error as Error: Missing Peripheral Device at Peripheral.a (/usr/lib/node_modules_tmp/node-red-contrib-generic-ble/dist/generic-ble.js:216:31), you can also this in log file.

Well from time to time I am building new versions of Node-RED container and in these new versions I am updating the included Node-RED nodes and installation packages to the latest official versions available.

If you feel there was a Node-RED version operating well in the past then just load an old version of the container onto your device. 

Here are all the tags available to you https://hub.docker.com/r/hilschernetpi/n...dered/tags from version 1.3.1 to latest version 1.7.5. It is your choice.

You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

Hello Armin,

I am able to communicate Ipad with NetPI RTE over Bluetooth connectivity.


Attached Files Thumbnail(s)
WOW this is great news .. but for the audience ... what have you done to succeed now. Have you taken a different version/tag of the Node-RED container?
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

Hello Armin,

Yes, I have used a different node-red version. please find below version details.

1) NetPI RTE Firmware version - V
2) Node-red version - V 0.20.8

I will try again on the latest node-red version & will update you soon.


Possibly Related Threads…
Thread Author Replies Views Last Post
  HilscherAutomation / netPI-bluetooth entrypoint.sh error bbaskii 6 4,740 September-14th-2020, 04:42 PM
Last Post: bbaskii
  Bluetooth Access MGharat 10 9,447 February-25th-2020, 12:58 PM
Last Post: DSongra
  [SOLVED] Bluetooth Functions Jonas.Sellmann@outlook.de 4 4,046 September-21st-2018, 11:16 AM
Last Post: Armin@netPI
  Bluetooth Jonas.Sellmann@outlook.de 11 7,648 April-25th-2018, 06:44 AM
Last Post: Jonas.Sellmann@outlook.de

Forum Jump:

Users browsing this thread: 1 Guest(s)