pi-suite
pi-suite copied to clipboard
Got this after installation / at start pi-suite
Hi,
got this error after start pi suite. What am i doing wrong?
pi@schwabopi:~/reelyActive/pi-suite $ sudo node pi-suite reelyActive BarnOwl instance is listening for an open IoT reelyActive Barnacles instance is notifying an open IoT reelyActive Barterer instance is exchanging data in an open IoT reelyActive Chickadee instance is curious to associate metadata in an open IoT events.js:183 throw er; // Unhandled 'error' event ^
Error: File descriptor in bad state
at setScanEnable (/home/pi/reelyActive/pi-suite/node_modules/barnowl/lib/core/listenerservice/hcilistener.js:215: 10)
at openHciSocket (/home/pi/reelyActive/pi-suite/node_modules/barnowl/lib/core/listenerservice/hcilistener.js:87:3 )
at new HCIListener (/home/pi/reelyActive/pi-suite/node_modules/barnowl/lib/core/listenerservice/hcilistener.js:53 :3)
at createListener (/home/pi/reelyActive/pi-suite/node_modules/barnowl/lib/core/listenerservice/decodemanager.js:1 16:14)
at new DecodeManager (/home/pi/reelyActive/pi-suite/node_modules/barnowl/lib/core/listenerservice/decodemanager.j s:38:19)
at ListenerService.bind (/home/pi/reelyActive/pi-suite/node_modules/barnowl/lib/core/listenerservice/listenerserv ice.js:36:21)
at HardwareInterface.bind (/home/pi/reelyActive/pi-suite/node_modules/barnowl/lib/hardwareinterface.js:41:32)
at BarnOwl.bind (/home/pi/reelyActive/pi-suite/node_modules/barnowl/lib/barnowl.js:46:34)
at HLCServer.bind (/home/pi/reelyActive/pi-suite/node_modules/hlc-server/lib/server.js:205:21)
at Object.
Can you specify on which Pi you are running? The onboard BLE (using HCI) has been confirmed to work on the Pi 3B and 3B+.
Raspberry Pi 3 Model B Plus Rev 1.
Thanks for the detail @schwabochino. From the error message, it could be that the BLE hardware is in use and therefore not allowing the bluetooth-hci-socket to start the scan. You can try installing libudev-dev as the package suggests, but I doubt this will have an impact.
All our testing has been headless with no other software using the BLE hardware. If you continue to have difficulties, can you can see if it works from our latest disk image?
Kindly update if you find a solution so we can add to the documentation, thanks!
Hi thank you for your Help!
I have reinstall the pi with raspbian (NOOB) and try it with this tiny virgin again. But it's the same Error again. HLC seems not starting.
So I have download an prepare a SD with the image. Sorry, but what's the login - pi:raspberry - didn't work also root:toor ¯_(ツ)_/¯ ? Have I missed something? I am too stupid for this or I have two left hands ;)!
Change it in the cmdline.txt with init=/bin/sh
All the details about the SD card can be found on our Make a Pi Hub tutorial.
The default login on the card is pi:berryinsecure
So it works with your image. ¯\_(ツ)_/¯
Even more curious now what's different on your original setup that makes it not work...
What version of NodeJS did you have installed? node --version
The SD image uses Raspbian jesse lite. What were you running on your original setup?
I think, the differences are that I obviously do some thing not the way i had to do?!
pi@schwabopi:~ $ node --version
v8.11.3
pi@schwabopi:~ $cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"