Hilscher Community Forum
Bluetooth testing - Printable Version

+- Hilscher Community Forum (https://forum.hilscher.com)
+-- Forum: netPI 3 - Docker featuring Industrial Raspberry Pi 3 platform (https://forum.hilscher.com/forum-1.html)
+--- Forum: Software (https://forum.hilscher.com/forum-5.html)
+--- Thread: Bluetooth testing (/thread-723.html)



Bluetooth testing - DSongra - April-23rd-2021

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).


Br,
Devendra


RE: Bluetooth testing - Armin@netPI - April-23rd-2021

Well I see the log file you sent

msg : string[1575]
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-contrib-generic-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.


RE: Bluetooth testing - DSongra - April-23rd-2021

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.


Br,
Devendra


RE: Bluetooth testing - Armin@netPI - April-23rd-2021

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/netpi-nodered/tags from version 1.3.1 to latest version 1.7.5. It is your choice.

Thx
Armin


RE: Bluetooth testing - DSongra - April-28th-2021

Hello Armin,

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



Br,
Devendra


RE: Bluetooth testing - Armin@netPI - April-28th-2021

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?


RE: Bluetooth testing - DSongra - April-29th-2021

Hello Armin,

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

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

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


Br,
Devendra