Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got this after installation / at start pi-suite #3

Open
schwabochino opened this issue Aug 27, 2018 · 9 comments
Open

Got this after installation / at start pi-suite #3

schwabochino opened this issue Aug 27, 2018 · 9 comments

Comments

@schwabochino
Copy link

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. (/home/pi/reelyActive/pi-suite/pi-suite.js:17:5)

@jeffyactive
Copy link
Member

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

@schwabochino
Copy link
Author

schwabochino commented Aug 28, 2018

Raspberry Pi 3 Model B Plus Rev 1.

@jeffyactive
Copy link
Member

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!

@schwabochino
Copy link
Author

schwabochino commented Aug 29, 2018

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 ;)!

@schwabochino
Copy link
Author

schwabochino commented Aug 29, 2018

Change it in the cmdline.txt with init=/bin/sh

@jeffyactive
Copy link
Member

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

@schwabochino
Copy link
Author

schwabochino commented Aug 29, 2018

So it works with your image. ¯\_(ツ)_/¯

@jeffyactive
Copy link
Member

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?

@schwabochino
Copy link
Author

schwabochino commented Aug 29, 2018

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants