Page 1 of 4

Adding Balena-OS support for revpi-connect-4

Posted: 05 Dec 2023, 11:50
by wickywaka33
Hello Community,
We are working on adding the revpi-connect-4 to balenaOS. Here is the PR: https://github.com/balena-os/balena-ras ... 1840455476

Would love to see someone join in testing the balenaos image. I currently see some issues with connecting an Energy meter via Modbus RTU. Not sure if its some problem in my test setup. Would love to get your feedback.

Waqar Rashid
Software Engineer
VoltStorage GmbH

Re: Adding Balena-OS support for revpi-connect-4

Posted: 08 Dec 2023, 12:48
by wickywaka33
The aforementioned PR has been merged. I flash the image, I don't see any RS485 port and the only serial port I see ttyAMA0. I can't communicate with a modbus salve device on this port. I flashed the device the OS image from Kunbus to test whether it will work there. On Kunbus OS, I do see the /dev/ttyRS485 device but am unable to communicate with the modbus RTU slave energy meter.

All the setting configuration (telegraf.conf) seems to be fine and I am able to communciate with the same modbus slave from the revpi-connect-s using the same software.

Re: Adding Balena-OS support for revpi-connect-4

Posted: 12 Dec 2023, 11:41
by wickywaka33
Here are the device trees extracted from the running systems using the instructions provided here https://community.silabs.com/s/article/ ... -debugging

BalenaOS (RS-485 not working) https://pastebin.com/BQuQkeva
Kunbus (RS-485 working) https://pastebin.com/5RNTRVew

I was not able to upload these files due to some reason. It always complained about wrong extension or something.

Re: Adding Balena-OS support for revpi-connect-4

Posted: 13 Dec 2023, 09:18
by wickywaka33

Re: Adding Balena-OS support for revpi-connect-4

Posted: 13 Dec 2023, 15:20
by dirk
Hi wickywaka33, I would linke to learn more about this and help get the RevPi Connect 4 up and running. But I'm stuck with Docker and just creating the tool chain. Can you help with this? I have an Ubuntu Virtualbox and a RevPi Connect 4 Module ready to hit the keys!

Re: Adding Balena-OS support for revpi-connect-4

Posted: 14 Dec 2023, 09:06
by wickywaka33
dirk wrote: 13 Dec 2023, 15:20 Hi wickywaka33, I would linke to learn more about this and help get the RevPi Connect 4 up and running. But I'm stuck with Docker and just creating the tool chain. Can you help with this? I have an Ubuntu Virtualbox and a RevPi Connect 4 Module ready to hit the keys!
Hi Dirk,
We have been building native using the the following command:

Code: Select all

./balena-yocto-scripts/build/barys -m revpi-connect-4
If you still need support, I suggest we get on a quick call to have it done faster.

Re: Adding Balena-OS support for revpi-connect-4

Posted: 14 Dec 2023, 09:52
by dirk
Hi okay that helped me out, but I'm stuck now with this

Code: Select all

ERROR: /home/osboxes/balena-raspberrypi/build/../layers/meta-balena/meta-balena-common/recipes-containers/docker-disk/docker-disk.bb: docker-disk: Docker needs to run on your host and current user must be able to use it.
ERROR: Parsing halted due to errors, see error messages above
But docker seams to be working on that VirtualBox Ubuntu 22.04

Code: Select all

osboxes@osboxes:~/balena-raspberrypi$ sudo docker run hello-world

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (amd64)
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
 https://hub.docker.com/

For more examples and ideas, visit:
 https://docs.docker.com/get-started/

Re: Adding Balena-OS support for revpi-connect-4

Posted: 14 Dec 2023, 10:08
by wickywaka33
May you need to allow your user to run docker. You should be able to run docker without sudo.

Re: Adding Balena-OS support for revpi-connect-4

Posted: 14 Dec 2023, 14:25
by dirk
Good news, hooray it is working and compiling ... thank you sometimes it is just a jump to the left :-D

Re: Adding Balena-OS support for revpi-connect-4

Posted: 14 Dec 2023, 14:32
by wickywaka33
It takes some time to compile. Let me know if you need more support.