Pi Zero Ruuvi Gateway implementations

Hi Cirobr,

The Pycom modules do seem promising and have some awesome development behind them, the only issue you may find is that they are based on an ESP32 module with a shared antenna between WiFi and BLE this may cause issue on performance as it does on standard ESP32 dev boards.

In regards to your question about connecting the tags to AWS for example, this is not possible with this script. To connect to AWS look into MQTT and how you could use this to send data to them. The script you mentioned would be used to collect the ruuvi tag data and then it would be sent via MQTT.

You could also look into Particle boards, almost the same as a PYCOM board but doesnā€™t use the integrated BLE instead replaces it with a nRF52840 with the ability to connect an external antenna to both WiFi and BLE.

Hi Anthony, thanks for feedback and insights. Will definitely take a look at Particle boards/Nordic chipset.

In fact I already did that, and it works smoothly. Problem is that Cloud Service misinterprets the data received as being generated by a single device, therefore further logic is needed as to segregate the data each sensor is actually sending. I wanted to avoid such logic by just logging in each sensor individually.

what happens when gateway experiences some disruption like power blackout ?
https://tutuapp.uno/ , https://9apps.ooo/ , https://showbox.kim/

There are some industry grade SDCards designed for harsh weather conditions. These should perform better. Still, not sure how much better.

Just decided to Order Raspberry Pi Zero W, itā€™s been long time since I stopped to bang my head to the wall wit C.H.I.P. and checked that thread also and after last time been there saw tht others have had similar problems as I did, also possible solutionā€¦

BUTā€¦

To stay in the topic I decided to go with Pi Zero W at this point, maybe official gateway later. But before My Pi will arrive I was thinking it might be good to ask if you have gateway image for Pi Zero W available like for Pi 3? Didnā€™t see any mentions by quick glanse but decided to ask since there was also preflahed version under considerations, and maybe for once plugā€™n play option sounds nice also. :smiley: Sure no problem to install those myself either, but if that time could be saved, why not.

We do not have a tested image for Zero W, but the latest version might work anyway. As far as I know the RPi images are pretty well compatible across different CPU versions.

1 Like

Depends on what you mean by ā€œgatewayā€, network accessibility, how industrial strength you need to be and what your skill set is. This thread covers lot of various requirements.

Iā€™ve been running several Zero Ws at different locations successfully for a long time, running ruuviCollector, influxdb and grafana on them. I send data ā€œregularlyā€, invoked by cron, using very low bandwidth approach with syslog protocol to send data to a more powerful (Raspberry Pi 3 !) The Pi3 analyzes the data and generates web pages and email warnings as necessary.

Warning: Last time I tried to upgrade Raspian Operating System distribution from stretch to buster I ran intro trouble since the java virtual machine distributed with buster does not run on PiZeroā€™s feebler cpu.

I have tailored the retention period in the influxdb and reduced the update frequency in the collector because with 7 or 8 ruuvis the Zero otherwise gets stuck for a couple of minutes about once or twice a day although it continues on.

I can make an image available if youā€™re interested. Itā€™s kinda download, write to SD, plugin, fix wifi address and youā€™re got to go.

1 Like

Thanks, I appreciate if you make image available. Sure itā€™s nice to do it on own from scratch too (probably do that too at some point), but right now thereā€™s lot other things in life so time little short. And it doesnā€™t need to be industrial strenght in my case, now focus is just at ā€œget it doneā€ part.

Sure on the other hand using ready image feels almost like cheating. :smiley: But main focus is just to get it working and play more with some other things + I suppose image would be helpful for all, especially since in my experience itā€™s quite easy to get sd card corrupted (one reason why i liked C.H.I.P. so much) and you need to do it all againā€¦ This would remove part of that pain and is also part of why I originally asked & that would make starting at same level with RPi 3 which has itā€™s own images.

Itā€™s nice to have a working system to start with.
What desktop.laptop do you use?
Did you get a ethernet-USB adapter or are you going wifi?
What level of expertise do you have with Raspberry ?

Biggest recommendation is get a GOOD 16GB SD card .

Important information and the download link is at
http://MyBeacons.info/RuuviCollectorSD.html

You should be about to connect HDMI to monitor(or TV) add USB keyboard and login, run sudo rapsi-config ; network options change wifi SSID : Password then you can ssh to it.

1 Like

post removed

What level of expertise do you have with Raspberry ?

Actually not so much, I bought the first version, used it as samba share NAS and media server for a while. Then bought some newer and smaller model (A something?) and set that up as security camera, both using raspbian and later with motioneye, but with both cases that jusy freezed and seemed that after writing sd card again it worked for a while. cards was Sandisk branded so should be good brand. Played lot more with 2 C.H.I.P. but bluetooth was problem with NodeRed.

You should be about to connect HDMI to monitor(or TV) add USB keyboard and login, run sudo rapsi-config ; network options change wifi SSID : Password then you can ssh to it.

Yep familiar with this. This was where C.H.I.P shines, you could easilly connect to it headless via USB using screen command (canā€™t this really not been done with Raspberry?). This used to work in a time but now with manjaro canā€™t get this working, but itā€™s offtopic so no more of that. those and following just describes bit more of what level of expertise I haveā€¦ (I like to think Iā€™m kind of forever newbie, but on the otherhand not quite)

What desktop.laptop do you use?

Currently Iā€™m using old thinkpad with Manjaro Cinnamon. Previously mostly debian based distributions, before manjaro I used bunsenlabs linux which is still one of my favourite, but just like to have fresh packages. :slight_smile:

Did you get a ethernet-USB adapter or are you going wifi?

Iā€™m going wifi.

Oops just tried swamp.190806 N G. with for update Friday afternoon EDT (sorry)

Not sure if I understood this correctly. Noticed that image at the link is not available and you will upload new updated image at afternoon? Anyway, no problem at all, it will take probably over week before I get my Zero W so take your time. Thanks anyway.

What size SD card do you plan to use?

I think I go with 16Gb card. Sure 8Gb would be enough I think, but at local stores seemed that there was only ā€œbrandā€ Silicon Power card at 8Gb. That sure would be cheap (2ā‚¬) but better choose something with good quality. What card would you suggest?

btw. what method do you suggest to write ready configured system from card to image, in case I sometime end up trying that also?

SD card performance (in my experience with Pi Zero) is important.

More than you wanted to know!
https://en.wikipedia.org/wiki/SD_card#Speed

More analysis than you want to know
https://elinux.org/RPi_SD_cards and http://www.pidramble.com/wiki/benchmarks/microsd-cards

Too many choices. I go with a well known memory manufacture like Kingston, PNY SanDIsk and check the analysis.

Write the card with https://www.balena.io/etcher/ it is easy (takes gz) safe(finds SD card) and free

Image of running RuuviCollector on a Raspberry Pi Zero W, with grafana for a 16GB SD and IMPORTANT notes at http://MyBeacons.info/RuuviCollectorSD.html . Let me know if it works for you (or if it doesnā€™t)

1 Like

Thanks, just downloading image. I bought Sandisk Ultra SDHC as originally planned and seems like thatā€™s sold also with officially preflashed rasbian. My Zero W is on itā€™s way but seems it wil take longer for it until arrives. Will test and report when posible to do so.

Thanks again.

Yeah certainly could be used as a BLE to wifi gateway and looks fine.

Thanks a lot for great share, iā€™ll setup it soon.. .

Please post you experience here.

Just to say I have developed a Pi Zero WH based IOT cellular gateway for BLE devices plus other Smart Device protocols too - works great .