first tries with MySensors v2.0: problem staring up.
-
Hi,
i have worked with MySensors v1.5 till now, but i started to begin working with v2.0.I have made a test SerialGateway (nearly example sketch) with an arduino nano, and a test sensor node with an arduino Pro Mini 3,3V.
When starting both arduinos, on the Sensor node i get the following output:
TSM:PDT TSM:INIT TSM:RADIO:OK 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: TSP:MSG:READ 0-0-255 s=255,c=3,t=8,pt=1,l=1,sg=0:0 TSP:MSG:FPAR RES (ID=0, dist=0) TSP:MSG:PAR OK (ID=0, dist=1) TSM:FPAR:OK TSM:ID TSP:MSG:SEND 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=ok: TSM:ID TSP:MSG:SEND 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=ok: TSM:ID TSP:MSG:SEND 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=ok: TSM:ID TSP:MSG:SEND 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=ok: !TSM:CHKID:FAIL (ID=255) !TSM:FAILURE TSM:PDTWhat das that mean? (especially the "!TSM:CHKID_FAIL" and "...:FAILURE"
My Gateway is not connected to any controller, just want to check, if my Sensor node with the sensor hardware works (serial outputs) but the only thing i get is this.Do i have to fully implement the mySensor Network, also the controller connection, or is there a way to test my Sensor node at first, then the communication with the gateway only, and at least put it on my controller?
-
Hi,
i have worked with MySensors v1.5 till now, but i started to begin working with v2.0.I have made a test SerialGateway (nearly example sketch) with an arduino nano, and a test sensor node with an arduino Pro Mini 3,3V.
When starting both arduinos, on the Sensor node i get the following output:
TSM:PDT TSM:INIT TSM:RADIO:OK 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: TSP:MSG:READ 0-0-255 s=255,c=3,t=8,pt=1,l=1,sg=0:0 TSP:MSG:FPAR RES (ID=0, dist=0) TSP:MSG:PAR OK (ID=0, dist=1) TSM:FPAR:OK TSM:ID TSP:MSG:SEND 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=ok: TSM:ID TSP:MSG:SEND 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=ok: TSM:ID TSP:MSG:SEND 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=ok: TSM:ID TSP:MSG:SEND 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=ok: !TSM:CHKID:FAIL (ID=255) !TSM:FAILURE TSM:PDTWhat das that mean? (especially the "!TSM:CHKID_FAIL" and "...:FAILURE"
My Gateway is not connected to any controller, just want to check, if my Sensor node with the sensor hardware works (serial outputs) but the only thing i get is this.Do i have to fully implement the mySensor Network, also the controller connection, or is there a way to test my Sensor node at first, then the communication with the gateway only, and at least put it on my controller?
-
i haven´t set a MY_NODE_ID, the myconfig is set to auto, so i thought this will set automatically. Or is this only, when gateway is connected to controller?
@vga When using auto the controller should hand out the ID's.
If you have no controller this process will fail, that's probably the reason of the "!TSM:CHKID:FAIL (ID=255)" message.
The "!TSM:FAILURE" is just the result of the previous error.
Either connect a controller, or assign a static ID. -
yes, for testing without controller i set the NODE_ID manual, and now it works.
Transmit works now. But when sensor was out of range, transmit fails some times, and sensor comes back into range, the transmit doesn't works again.SP:MSG:SEND 1-1-0-0 s=0,c=1,t=16,pt=2,l=2,sg=0,ft=1,st=ok:0 0 !TSP:MSG:SEND 1-1-0-0 s=0,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=fail:1 1 !TSP:MSG:SEND 1-1-0-0 s=0,c=1,t=16,pt=2,l=2,sg=0,ft=1,st=fail:0 0 !TSP:MSG:SEND 1-1-0-0 s=0,c=1,t=16,pt=2,l=2,sg=0,ft=2,st=fail:1 1 !TSP:MSG:SEND 1-1-0-0 s=0,c=1,t=16,pt=2,l=2,sg=0,ft=3,st=fail:0 0 !TSP:MSG:SEND 1-1-0-0 s=0,c=1,t=16,pt=2,l=2,sg=0,ft=4,st=fail:1 1 !TSP:MSG:SEND 1-1-0-0 s=0,c=1,t=16,pt=2,l=2,sg=0,ft=5,st=fail:0 !TSM:UPL FAIL, SNP TSM:FPAR TSP:MSG:SEND 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: 0 !TSP:SEND:TNR 1 !TSP:SEND:TNR -
yes, for testing without controller i set the NODE_ID manual, and now it works.
Transmit works now. But when sensor was out of range, transmit fails some times, and sensor comes back into range, the transmit doesn't works again.SP:MSG:SEND 1-1-0-0 s=0,c=1,t=16,pt=2,l=2,sg=0,ft=1,st=ok:0 0 !TSP:MSG:SEND 1-1-0-0 s=0,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=fail:1 1 !TSP:MSG:SEND 1-1-0-0 s=0,c=1,t=16,pt=2,l=2,sg=0,ft=1,st=fail:0 0 !TSP:MSG:SEND 1-1-0-0 s=0,c=1,t=16,pt=2,l=2,sg=0,ft=2,st=fail:1 1 !TSP:MSG:SEND 1-1-0-0 s=0,c=1,t=16,pt=2,l=2,sg=0,ft=3,st=fail:0 0 !TSP:MSG:SEND 1-1-0-0 s=0,c=1,t=16,pt=2,l=2,sg=0,ft=4,st=fail:1 1 !TSP:MSG:SEND 1-1-0-0 s=0,c=1,t=16,pt=2,l=2,sg=0,ft=5,st=fail:0 !TSM:UPL FAIL, SNP TSM:FPAR TSP:MSG:SEND 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: 0 !TSP:SEND:TNR 1 !TSP:SEND:TNR@vga After a number of failed transfers the sensor will start to search for a parent again ("TSM:FPAR")
To have a fixed Node ID and fixed parent (so node won't start searching for it) define:#define MY_NODE_ID (123) #define MY_PARENT_NODE_ID (0) #define MY_PARENT_NODE_IS_STATIC -
Ah, Thanks!
So, i have do i have to set the NODE_ID at Gateway to (i.e. 0), to have a fixed ID, to which i connect the sensor node, if i want it static, right?
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