RS485 communication GW - Node Problem
-
Hello community
I want to use Mysensors in future to use it in my new house as a wired bus system.
So i tried it out today with a arduino nano and a arduino pro mini.
I downloaded the newest mysensors library in the Arduino IDE and upload the RS485 GW scatch to the nano and the rs485 PIR scetch to the arduino pro mini.
I also downloaded the MYSController App on Windows.
Than i tried to connect the 2 Arduinos to check, if it all running fine.
But in MYSController i can only see the GW.First i was trying to use the max chips for the communication, but the GW does nothing.
So i tried to connect directly the Nano and the Pro mini, but the GW does always nothing.The pins i used with the max chips is 8, 9, 2 on Nano and on Pro mini.
In direct connection i connected only 8 and 9. Both arduinos are on the same ground potentional.I switched on then de debug in the node, here is the serial output:
TSP:MSG:SEND 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
TSM:FPAR
TSP:MSG:SEND 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
TSM:FPAR
TSP:MSG:SEND 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
TSM:FPAR
TSP:MSG:SEND 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
!TSM:FPAR:FAIL
!TSM:FAILURE
TSM:PDTMy GW Log is this:
0;255;3;0;9;Starting gateway (RSNGA-, 2.0.0)
0;255;3;0;9;TSM:INIT
0;255;3;0;9;TSM:RADIO:OK
0;255;3;0;9;TSM:GW MODE
0;255;3;0;9;TSM:READY
0;255;3;0;14;Gateway startup complete.
0;255;0;0;18;2.0.0
0;255;3;0;9;No registration required
0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1
0;255;3;0;5;1Hope, somebody can help me?
Best regards -
Sorry for my Late reply.
I had an issue with the max485 (ground problem) and the declaration of the node id (was at the wrong position in the sketch).
I think, it would be better, if this is also in the examples in the ms library.
It cost me some time to find this solution for the node id. But i wasn't sure, if it was the parent or node id
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