Sensebender Micro as gateway on raspberry pi
-
Hello,
I want to use the sensebender micro as a Gateway on the raspberry pi.
I have connected the rx and tx line directly to the I/Os of the raspberry and also the 3.3V for the power.In the controller I can connect to the gateway and receive data, but when I trie to send a value, nothing is send out.
Also assigning an ID to a new sensor fails.It seems that the transmission from the raspberry to the sensebender is not working.
Does anybody have an idea how to solve this?
-
I use it, but with one ATmega connected internally. If you have everything connected correctly, TX to RX and RX to TX, maybe you need to add the port /dev/ttyAMA0 to your controller.
I use Openhab, and for this one, you have to add "-Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0 " on start.sh before the line with ".jar". -
Lower the speed from 115200 to 19200, 9600 or similar. The frequency of the arduino is not able to match 115200 baud exactly, so the arduino and rpi are mis-communicating.
From another thread; http://wormfood.net/avrbaudcalc.php?postclock=8&hidetables=1
Solved it for me.
-
Yes, it's about the baud rate. 38400 works for me, and I even made a pull request (not yet merged, though): https://github.com/mysensors/Arduino/pull/391
Recent Domoticz beta's also have a feature to select the baud rate for MySensors serial gateway (default 115200, 38400 as an alternative). This of course needs to match with the baud rate on the gateway itself.
-
Lower the speed from 115200 to 19200, 9600 or similar. The frequency of the arduino is not able to match 115200 baud exactly, so the arduino and rpi are mis-communicating.
From another thread; http://wormfood.net/avrbaudcalc.php?postclock=8&hidetables=1
Solved it for me.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login