-
Notifications
You must be signed in to change notification settings - Fork 14
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
Environmental sensor board demo not working #21
Comments
@bryoneason This may just be a problem with the doc you were trying to follow. The doc claims
Seems like that RSA key is missing, but it doesn't really make sense that Google would bundle a single key inside the |
An update has been pushed to resolve a kernel configuration issue. Then follow https://coral.withgoogle.com/docs/enviro-board/get-started/ again. |
Hi, Environment used:
Exact commands used:
(note: using with sudo I have the same error) Result: (OLED display) Result (stdout): Expected result: Suggestions on how to proceed would be welcome ;) |
just to say I've the exact same problem. thanks. |
Hi, I thought perhaps it was the fact that the docs didn't really make clear (if) it needed I2C and SPI turned on via raspi-config. However, even now that I've enabled them that way and rebooted, there are still no readings. Everything says 'nan'. |
This had been previously working on my Coral Dev board. Now I'm getting a note that says "No crypto detected, using SW." and I'm getting "nan" on my readings. |
I also have similar issue. Readings show 'nan' for all the sensors |
FYI, I had the same issue. Then I tried it on my Coral Dev board and it worked...however days later the nan value returned. I contacted support and they told me that "Latest version of Raspbian is breaking few Coral modules and our team is working on to fix that." They gave me a drive link to a new image. I tried it on a Pi Zero and it worked again. https://drive.google.com/open?id=1LiKCdwAbSLWdIQWxqJ5Qoj7jNONKnzMY |
Thank you for the info, hopefully they'll resolve it soon.
Unfortunately the link has a restricted access, is it possible to re-up and pass the link here ? |
Its the 2019-04-08-raspbian-stretch.zip release of raspian. I don't think there is any else special about it. |
Hi, I hope the following long description helps someone. Try as I might, the limited nature of the 'getting started' doc for this board (https://coral.withgoogle.com/docs/enviro-board/get-started/) just wasn't deep or broad enough. However, I've had the great pleasure to be able to work over email with the incredibly helpful support guys at Coral. Because I have faced all the different problems on this thread, all at different times and in different combinations, I wanted to share my path to success. After lots of discussion with support, reference to how to docs that covered different bits of what we were trying to achieve, and and hours of me just not being the brightest bulb in the box, we got to the following repeatable set of steps. This may seem overkill, but it works for me: install completely fresh latest raspbian to an sd card time to prove to yourself the hat works I now had a board working with all four readings, but without being part of the IOT platform, so I edited /usr/lib/python3/dist-packages/coral/envirocloud_config.ini to match my account details but leaving the encryption empty as suggested in the file. At this stage I was unable to get enviro_demo.py to run - it crashed out with the error @bryoneason was seeing at the top of this thread where the onboard crypto call in core.py was complaining about a file not found. To get around that, I did the following: cd /usr/lib/python3/dist-packages/coral/enviro time to prove to yourself everything works For me, I now have a pi, connected to the internet over my local wifi, connected to my gcp account, using the encryption keys I created, which has been running for days, all the way through pubsub and dataflow to bigquery. It has inserted tens of thousands of rows successfully. *NB, if you want to do the same thing as a semi-tutorial (accepting i'm hardly a good tutor of anything) you'll need to:
field name | Type | Mode | humidity | FLOAT | NULLABLE
Alone, without the help of these tutorials: https://cloud.google.com/community/tutorials/cloud-iot-rtdp and the fantastic support of coral-support@google.com plus quite a lot of hours of me assuming I was wrong and hacking at things, this does all work very well indeed. PS - I've probably missed out some steps or oversimplified others, but hopefully all this is of some assistance to someone. |
There is a bug in the coral-enviro package. The content of the bug is that the cs_high value setting is missing from ssd1306 (OLED Display) initialization when running on raspberry pi. Find board.py in the coral enviro package installation directory and modify it as follows. The source code is located in /usr/lib/python3/dist-packages/coral/enviro/board.py. `class EnviroBoard():
` |
Hello, I made this work by modifying some parts of the code to directly access the sensors. |
soungno, thanks for the insights on the cs_high=True flag in board.py. This fixed my first error....also main getting started instructions are definitely lacking in detail. The docs should include enabling SPI and ISC I have the LED displaying, but now I am getting NAN values....will look above to see if other suggestions fix. |
Some of the libraries are a little bit buggy, thats only one of the bugs |
What I ran
sudo python3 enviro_demo.py
What the docs said should happen
The doc says you should be able to see sensor data on the OLED and send data to the cloud. But it seems I am unable to detect the crypto processor on the Environmental Sensor Board.
What actually happened
The text was updated successfully, but these errors were encountered: