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

Raspberry Pi as master with RS485 #374

Open
akadlec opened this issue Dec 14, 2020 · 4 comments
Open

Raspberry Pi as master with RS485 #374

akadlec opened this issue Dec 14, 2020 · 4 comments
Labels

Comments

@akadlec
Copy link

akadlec commented Dec 14, 2020

Hi to all,
i have a small network composed of arduino as a slaves and one esp8266 as a master. Using TS over RS485. This setup is working great. But right now I would like to replace esp with rpi with rs485 header. My idea is to use rpi to send and receive messages and proxy them to some message queue to be handled by my PHP app.

Is it good or bad idea? Did someone similar setup?

@akadlec
Copy link
Author

akadlec commented Dec 15, 2020

Or is better idea to have anoter arduino as a proxy, where will be "master" sketch for the pjon network and rpi connected via serial link to aurduino?

@gioblu
Copy link
Owner

gioblu commented Dec 15, 2020

Ciao @akadlec ThroughSerial over RS485 works fine on RPI as well, it should work fine with the setup you describe!

@akadlec
Copy link
Author

akadlec commented Dec 15, 2020

Hi @gioblu thanks for your reply. I will try to start with an example code from this repo. And what do you think about the rs485 and TS? I saw in other issues your comments where you recommend other strategy.

@gioblu
Copy link
Owner

gioblu commented Dec 15, 2020

I suggest you to try SoftwareBitBang @akadlec, with a single wire up to 2000m long you can connect up to 255 devices and it supports multi-master.
The only con is that you need a TS-SWBB switch between nodes and the RPI (SWBB does not run on any rtos because of timing issues).

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

No branches or pull requests

2 participants