@martin3000 I just noticed that PTVO firmware does support the "serial bootloader":
Anyway this feature is not documented too well.
Posts made by frits
-
RE: DIY zigbee sensor?
-
RE: DIY zigbee sensor?
Do you have a raspberry pi and your zigbee stick has jtag header? Then you could flash your stick via jtag, look here: https://www.youtube.com/watch?v=0XOozGlbU7U
-
RE: DIY zigbee sensor?
what modules do you use? I work with Ebyte E18MS1xx (CC2530 based) and flash them with a Raspberry Pi or aSmartRF04 clone.
-
RE: Can't receive parent answer
@joaoabs said in Can't receive parent answer:
Maybe the slim node page could have some reference to this?
I totally agree, the IRQ line should be routed, also for nrf24 modules. Could you propose this in the slimnode maker's thread?
-
RE: Can't receive parent answer
@joaoabs I might not have been clear in the other thread (https://forum.mysensors.org/topic/11465).
Slim Node does not route RFM69-signal DIO0 (interrupt) to Arduino-pin D2 (INT0) (at least PCB version 1.4).
Have you added a trace for this signal?
-
RE: How to req actuator status?
might be related to that thread:
https://forum.mysensors.org/topic/11427 -
RE: Anyone using Slimnode (RFM69) with MySensors 2.3.2?
Could you check if IRQ arrives correctly at INT0?
-
RE: MQTT GW with RFM69 on RPi
@joaoabs said in MQTT GW with RFM69 on RPi:
Also happening in nodes:
are you setting #define MY_TRANSPORT_WAIT_READY_MS ([timeout])? This causes MCO:PRO in my test cases as well.
-
RE: MQTT GW with RFM69 on RPi
@frits said in MQTT GW with RFM69 on RPi:
@Yveaux I have a raspi gw with debug signatures ready:
here's the logging on arduino hardware (both gateway and node on arduino pro micro + nrf24).
Summary:
- MCO:PRO on gateway only
- only after node boot
- or message sent from gateway to node
gw boot:
0 MCO:BGN:INIT GW,CP=RNNGAA--,FQ=8,REL=255,VER=2.3.2 16 SGN:PER:OK 40 SGN:INI:BND OK 43 TSM:INIT 43 TSF:WUR:MS=0 51 TSM:INIT:TSP OK 53 TSM:INIT:GW MODE 55 TSM:READY:ID=0,PAR=0,DIS=0 57 MCO:REG:NOT NEEDED 622 GWT:TPC:IP=192.168.99.13 1626 MCO:BGN:STP 2127 MCO:BGN:INIT OK,TSP=1 2129 GWT:TPC:IP=192.168.99.13 3133 GWT:RMQ:CONNECTING... 3342 GWT:RMQ:OK 3344 GWT:TPS:TOPIC=mysgw1-out/0/255/0/0/18,MSG SENT 3352 TSM:READY:NWD REQ 3354 SGN:SGN:NREQ=255 3360 ?TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:
node boot (gw log):
40278 TSF:MSG:READ,123-123-255,s=255,c=3,t=7,pt=0,l=0,sg=0: 40284 TSF:MSG:BC 40286 TSF:MSG:FPAR REQ,ID=123 40290 TSF:PNG:SEND,TO=0 40292 TSF:CKU:OK 40294 TSF:MSG:GWL OK 40656 SGN:SKP:MSG CMD=3,TYPE=8 40660 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0 42303 TSF:MSG:READ,123-123-0,s=255,c=3,t=24,pt=1,l=1,sg=0:1 42311 SGN:SKP:MSG CMD=3,TYPE=24 42313 TSF:MSG:PINGED,ID=123,HP=1 42317 SGN:SKP:MSG CMD=3,TYPE=25 42323 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=OK:1 42350 TSF:MSG:READ,123-123-0,s=255,c=3,t=15,pt=6,l=2,sg=0:0101 42356 SGN:SKP:MSG CMD=3,TYPE=15 42360 SGN:PRE:SGN REQ,FROM=123 42364 SGN:PRE:SGN REQ,TO=123 42366 SGN:PRE:WHI NREQ,TO=123 42371 SGN:SKP:MSG CMD=3,TYPE=15 42375 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0101 42383 SGN:PRE:XMT,TO=123 42393 TSF:MSG:READ,123-123-0,s=255,c=3,t=16,pt=0,l=0,sg=0: 42399 SGN:SKP:MSG CMD=3,TYPE=16 42475 SGN:SKP:MSG CMD=3,TYPE=17 42481 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=17,pt=6,l=25,sg=0,ft=0,st=OK:<NONCE> 42491 SGN:NCE:XMT,TO=0 42653 TSF:MSG:READ,123-123-0,s=255,c=0,t=17,pt=0,l=5,sg=1:2.3.2 42659 SGN:BND:NONCE=5D05EE8DE2E5DB1DF14E37C1927A97E1415B5A171E0A64E5DFAAAAAAAAAAAAAA 42774 SGN:BND:HMAC=F03795009783A00B1CBA3AB0CABCCE11BA9F5F6050B407B3B50FAADE5B558925 42782 SGN:VER:OK 42786 GWT:TPS:TOPIC=mysgw1-out/123/255/0/0/17,MSG SENT 42792 TSF:MSG:READ,123-123-0,s=255,c=3,t=16,pt=0,l=0,sg=1: 42801 SGN:SKP:MSG CMD=3,TYPE=16 42878 SGN:SKP:MSG CMD=3,TYPE=17 42885 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE> 42893 SGN:NCE:XMT,TO=0 43055 TSF:MSG:READ,123-123-0,s=255,c=3,t=6,pt=1,l=1,sg=1:0 43061 SGN:BND:NONCE=6A5BC212192AAC2D25FDAFE2B626B8216A01D1FA44E1032D42AAAAAAAAAAAAAA 43180 SGN:BND:HMAC=FFF58B3C02F477E9ACCF36614E05769E8952C76692035368A8A41604F6459073 43188 SGN:VER:OK 43190 GWT:TPS:TOPIC=mysgw1-out/123/255/3/0/6,MSG SENT 45049 TSF:MSG:READ,123-123-0,s=255,c=3,t=16,pt=0,l=0,sg=1: 45056 SGN:SKP:MSG CMD=3,TYPE=16 45131 SGN:SKP:MSG CMD=3,TYPE=17 45137 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE> 45148 SGN:NCE:XMT,TO=0 45309 TSF:MSG:READ,123-123-0,s=255,c=3,t=11,pt=0,l=20,sg=1:Hello MySensors 328P 45318 SGN:BND:NONCE=736CF35C52747BC27A10F246D0E5162640F4843111755C3A1CAAAAAAAAAAAAAA 45432 SGN:BND:HMAC=2D5615BD24252A9F704CE90933F7B6ED89EB891ECCC0BF7EB6021CCFB3B6432D 45441 SGN:VER:OK 45445 GWT:TPS:TOPIC=mysgw1-out/123/255/3/0/11,MSG SENT 45453 TSF:MSG:READ,123-123-0,s=255,c=3,t=16,pt=0,l=0,sg=1: 45459 SGN:SKP:MSG CMD=3,TYPE=16 45537 SGN:SKP:MSG CMD=3,TYPE=17 45543 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE> 45551 SGN:NCE:XMT,TO=0 45713 TSF:MSG:READ,123-123-0,s=255,c=3,t=12,pt=0,l=3,sg=1:1.3 45721 SGN:BND:NONCE=7394AB63F58F7181E65175A747357A73B72DA775ECD44D795BAAAAAAAAAAAAAA 45836 SGN:BND:HMAC=7913D96974B91F551F698BBAB914AE79BC871569DF05977FF18A07836CFDDA2B 45844 SGN:VER:OK 45848 GWT:TPS:TOPIC=mysgw1-out/123/255/3/0/12,MSG SENT 45854 TSF:MSG:READ,123-123-0,s=0,c=3,t=16,pt=0,l=0,sg=1: 45860 SGN:SKP:MSG CMD=3,TYPE=16 45942 SGN:SKP:MSG CMD=3,TYPE=17 45948 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE> 45957 SGN:NCE:XMT,TO=0 46118 TSF:MSG:READ,123-123-0,s=0,c=0,t=36,pt=0,l=6,sg=1:system 46125 SGN:BND:NONCE=369A5D4D44C839C07EF2041459B7AF64B8322FC35570B09EE2AAAAAAAAAAAAAA 46243 SGN:BND:HMAC=2E022D2A34A359DF46021E5A7D197B92ABBA56B1B6DB1D9FC2661FFBA8B031EE 46252 SGN:VER:OK 46254 GWT:TPS:TOPIC=mysgw1-out/123/0/0/0/36,MSG SENT 46262 TSF:MSG:READ,123-123-0,s=1,c=3,t=16,pt=0,l=0,sg=1: 46268 SGN:SKP:MSG CMD=3,TYPE=16 46344 SGN:SKP:MSG CMD=3,TYPE=17 46350 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE> 46360 SGN:NCE:XMT,TO=0 46522 TSF:MSG:READ,123-123-0,s=1,c=0,t=36,pt=0,l=9,sg=1:timestamp 46528 SGN:BND:NONCE=16E88FB58D621C0047CD38142BDCA4303719F0F8D670C6BEA5AAAAAAAAAAAAAA 46643 SGN:BND:HMAC=1AF56FBB3CF5C705B4C3E5210DE5CB912FF25F84F8152C51CA053A78ABEA63FC 46653 SGN:VER:OK 46655 GWT:TPS:TOPIC=mysgw1-out/123/1/0/0/36,MSG SENT 46663 TSF:MSG:READ,123-123-0,s=2,c=3,t=16,pt=0,l=0,sg=1: 46669 SGN:SKP:MSG CMD=3,TYPE=16 46747 SGN:SKP:MSG CMD=3,TYPE=17 46753 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE> 46761 SGN:NCE:XMT,TO=0 46923 TSF:MSG:READ,123-123-0,s=2,c=0,t=3,pt=0,l=3,sg=1:led 46931 SGN:BND:NONCE=F63BD3325089CAC4DA5F679EA9E334D19E07FB52DFC54C7901AAAAAAAAAAAAAA 47048 SGN:BND:HMAC=CAF49ED58A0F6D78FA8E2C99C24682D83558017E56F147619CFFD5F56C4CF40C 47056 SGN:VER:OK 47058 GWT:TPS:TOPIC=mysgw1-out/123/2/0/0/3,MSG SENT 47067 TSF:MSG:READ,123-123-0,s=3,c=3,t=16,pt=0,l=0,sg=1: 47073 SGN:SKP:MSG CMD=3,TYPE=16 47149 SGN:SKP:MSG CMD=3,TYPE=17 47155 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE> 47165 SGN:NCE:XMT,TO=0 47325 TSF:MSG:READ,123-123-0,s=3,c=0,t=3,pt=0,l=6,sg=1:button 47333 SGN:BND:NONCE=70E6B1C050BD5A8A2F03F3C345E801FE73237CF22F11196795AAAAAAAAAAAAAA 47448 SGN:BND:HMAC=F5202D42D87CA81DC0D0E032F54189868EEB4FE462598C6AD8B3307A4A043F4D 47456 SGN:VER:OK 47460 GWT:TPS:TOPIC=mysgw1-out/123/3/0/0/3,MSG SENT 47466 TSF:MSG:READ,123-123-0,s=255,c=3,t=26,pt=1,l=1,sg=1:2 47474 SGN:SKP:MSG CMD=3,TYPE=26 47476 SGN:SKP:MSG CMD=3,TYPE=16 47482 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=16,pt=0,l=0,sg=0,ft=0,st=OK: 47491 SGN:SGN:NCE REQ,TO=123 47493 !MCO:PRO:RC=1 47495 !MCO:PRO:RC=1 47499 !MCO:PRO:RC=1 47501 !MCO:PRO:RC=1 47503 !MCO:PRO:RC=1 47505 !MCO:PRO:RC=1 47509 !MCO:PRO:RC=1 47511 !MCO:PRO:RC=1 47513 !MCO:PRO:RC=1 47515 !MCO:PRO:RC=1 47519 !MCO:PRO:RC=1 47521 !MCO:PRO:RC=1 47523 !MCO:PRO:RC=1 47525 !MCO:PRO:RC=1 47529 !MCO:PRO:RC=1 47532 !MCO:PRO:RC=1 47534 !MCO:PRO:RC=1 47536 !MCO:PRO:RC=1 47540 !MCO:PRO:RC=1 47542 !MCO:PRO:RC=1 47544 !MCO:PRO:RC=1 47546 !MCO:PRO:RC=1 47548 !MCO:PRO:RC=1 47552 !MCO:PRO:RC=1 47554 !MCO:PRO:RC=1 47556 !MCO:PRO:RC=1 47558 !MCO:PRO:RC=1 47562 !MCO:PRO:RC=1 47564 !MCO:PRO:RC=1 47566 !MCO:PRO:RC=1 47568 !MCO:PRO:RC=1 47572 !MCO:PRO:RC=1 47575 !MCO:PRO:RC=1 47577 !MCO:PRO:RC=1 47579 !MCO:PRO:RC=1 47583 !MCO:PRO:RC=1 47585 !MCO:PRO:RC=1 47587 !MCO:PRO:RC=1 47589 !MCO:PRO:RC=1 47593 !MCO:PRO:RC=1 47595 !MCO:PRO:RC=1 47597 !MCO:PRO:RC=1 47599 !MCO:PRO:RC=1 47603 !MCO:PRO:RC=1 47605 !MCO:PRO:RC=1 47607 !MCO:PRO:RC=1 47609 !MCO:PRO:RC=1 47613 TSF:MSG:READ,123-123-0,s=255,c=3,t=17,pt=6,l=25,sg=0:<NONCE> 47620 SGN:SKP:MSG CMD=3,TYPE=17 47624 SGN:NCE:FROM=123 47626 SGN:BND:NONCE=52C791A2F3FD084BB05D52CBA6079339BCBC85FC48E952A91DAAAAAAAAAAAAAA 47747 SGN:BND:HMAC=3CCB39326B05220FEED535CC8304FE46A6544C69ED9C2D943725F8E38FA19C50 47755 SGN:SGN:SGN 47761 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=27,pt=1,l=1,sg=1,ft=0,st=OK:1 47935 TSF:MSG:READ,123-123-0,s=1,c=3,t=16,pt=0,l=0,sg=1: 47943 SGN:SKP:MSG CMD=3,TYPE=16 48023 SGN:SKP:MSG CMD=3,TYPE=17 48029 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE> 48037 SGN:NCE:XMT,TO=0 48199 TSF:MSG:READ,123-123-0,s=1,c=1,t=2,pt=0,l=11,sg=1:Hello 10031 48207 SGN:BND:NONCE=399F6855334A59FF5A2B512738EF6B8C70BB2EE4A8FAD758E8AAAAAAAAAAAAAA 48322 SGN:BND:HMAC=6CCD4905231C9F55C61B23922DAC166A8B20610B150F491FAA11E1C4B9FBB7D4 48332 SGN:VER:OK 48334 GWT:TPS:TOPIC=mysgw1-out/123/1/1/0/2,MSG SENT
node send message (node log):
58513 SGN:SKP:MSG CMD=3,TYPE=16 58519 TSF:MSG:SEND,123-123-0-0,s=3,c=3,t=16,pt=0,l=0,sg=1,ft=0,st=OK: 58525 SGN:SGN:NCE REQ,TO=0 58650 TSF:MSG:READ,0-0-123,s=255,c=3,t=17,pt=6,l=25,sg=1:<NONCE> 58656 SGN:SKP:MSG CMD=3,TYPE=17 58660 SGN:NCE:FROM=0 58662 SGN:BND:NONCE=B06B498BB6AED7756B7C19D7D3E677464FE8E6D1823E37A818AAAAAAAAAA AAAA 58779 SGN:BND:HMAC=03123A4791D8BD0DB61B6C15604A847FA875D53790F9CAED906E57CF85C95 571 58789 SGN:SGN:SGN 58793 TSF:MSG:SEND,123-123-0-0,s=3,c=1,t=2,pt=2,l=2,sg=1,ft=0,st=OK:1 button pressed 58814 SGN:SKP:MSG CMD=3,TYPE=16 58820 TSF:MSG:SEND,123-123-0-0,s=3,c=3,t=16,pt=0,l=0,sg=1,ft=0,st=OK: 58826 SGN:SGN:NCE REQ,TO=0 59095 TSF:MSG:READ,0-0-123,s=255,c=3,t=17,pt=6,l=25,sg=1:<NONCE> 59101 SGN:SKP:MSG CMD=3,TYPE=17 59105 SGN:NCE:FROM=0 59107 SGN:BND:NONCE=24228D2780F459C3469D1BDD01BAB9128D31C32B3FF806BA2DAAAAAAAAAA AAAA 59222 SGN:BND:HMAC=FF9C0AD707200F63C0A93BABF019B137C3F1FD54AD224291F83C16BFC6644 E8C 59232 SGN:SGN:SGN 59236 TSF:MSG:SEND,123-123-0-0,s=3,c=1,t=2,pt=2,l=2,sg=1,ft=0,st=OK:0 button released
node send message (gw log):
96430 TSF:MSG:READ,123-123-0,s=3,c=3,t=16,pt=0,l=0,sg=1: 96436 SGN:SKP:MSG CMD=3,TYPE=16 96512 SGN:SKP:MSG CMD=3,TYPE=17 96518 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE> 96528 SGN:NCE:XMT,TO=0 96690 TSF:MSG:READ,123-123-0,s=3,c=1,t=2,pt=2,l=2,sg=1:1 96696 SGN:BND:NONCE=B06B498BB6AED7756B7C19D7D3E677464FE8E6D1823E37A818AAAAAAAAAAAAAA 96811 SGN:BND:HMAC=03123A4791D8BD0DB61B6C15604A847FA875D53790F9CAED906E57CF85C95571 96821 SGN:VER:OK 96823 GWT:TPS:TOPIC=mysgw1-out/123/3/1/0/2,MSG SENT 96829 TSF:MSG:READ,123-123-0,s=3,c=3,t=16,pt=0,l=0,sg=1: 96837 SGN:SKP:MSG CMD=3,TYPE=16 96917 SGN:SKP:MSG CMD=3,TYPE=17 96923 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE> 96931 SGN:NCE:XMT,TO=0 97093 TSF:MSG:READ,123-123-0,s=3,c=1,t=2,pt=2,l=2,sg=1:0 97101 SGN:BND:NONCE=24228D2780F459C3469D1BDD01BAB9128D31C32B3FF806BA2DAAAAAAAAAAAAAA 97216 SGN:BND:HMAC=FF9C0AD707200F63C0A93BABF019B137C3F1FD54AD224291F83C16BFC6644E8C 97224 SGN:VER:OK 97228 GWT:TPS:TOPIC=mysgw1-out/123/3/1/0/2,MSG SENT
gw send message (gw log):
206145 GWT:IMQ:TOPIC=mysgw1-in/123/2/1/0/2, MSG RECEIVED 206151 SGN:SKP:MSG CMD=3,TYPE=16 206157 TSF:MSG:SEND,0-0-123-123,s=2,c=3,t=16,pt=0,l=0,sg=1,ft=0,st=OK: 206166 SGN:SGN:NCE REQ,TO=123 206168 !MCO:PRO:RC=1 206172 !MCO:PRO:RC=1 206174 !MCO:PRO:RC=1 206176 !MCO:PRO:RC=1 206180 !MCO:PRO:RC=1 206182 !MCO:PRO:RC=1 206184 !MCO:PRO:RC=1 206186 !MCO:PRO:RC=1 206190 !MCO:PRO:RC=1 206192 !MCO:PRO:RC=1 206194 !MCO:PRO:RC=1 206198 !MCO:PRO:RC=1 206200 !MCO:PRO:RC=1 206202 !MCO:PRO:RC=1 206206 !MCO:PRO:RC=1 206209 !MCO:PRO:RC=1 206211 !MCO:PRO:RC=1 206215 !MCO:PRO:RC=1 206217 !MCO:PRO:RC=1 206219 !MCO:PRO:RC=1 206223 !MCO:PRO:RC=1 206225 !MCO:PRO:RC=1 206227 !MCO:PRO:RC=1 206231 !MCO:PRO:RC=1 206233 !MCO:PRO:RC=1 206235 !MCO:PRO:RC=1 206239 !MCO:PRO:RC=1 206241 !MCO:PRO:RC=1 206243 !MCO:PRO:RC=1 206247 !MCO:PRO:RC=1 206249 !MCO:PRO:RC=1 206252 !MCO:PRO:RC=1 206256 !MCO:PRO:RC=1 206258 !MCO:PRO:RC=1 206260 !MCO:PRO:RC=1 206262 !MCO:PRO:RC=1 206266 !MCO:PRO:RC=1 206268 !MCO:PRO:RC=1 206272 TSF:MSG:READ,123-123-0,s=255,c=3,t=17,pt=6,l=25,sg=1:<NONCE> 206278 SGN:SKP:MSG CMD=3,TYPE=17 206282 SGN:NCE:FROM=123 206284 SGN:BND:NONCE=40E78847070231061F13FBD56014E185E1FC7651EDC52ABFD3AAAAAAAAAAAAAA 206399 SGN:BND:HMAC=4A48E4CF691C24205050B2ECB0C4C9B5F0CB4A67D9E9A43A5FFA03A8F7288F1A 206409 SGN:SGN:SGN 206415 TSF:MSG:SEND,0-0-123-123,s=2,c=1,t=2,pt=0,l=1,sg=1,ft=0,st=OK:1
gw send message (node log):
168019 !SGN:BND:TMR 168024 TSF:MSG:READ,0-0-123,s=2,c=3,t=16,pt=0,l=0,sg=1: 168030 SGN:SKP:MSG CMD=3,TYPE=16 168085 SGN:SKP:MSG CMD=3,TYPE=17 168091 TSF:MSG:SEND,123-123-0-0,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=1,st=OK:<NONCE> 168101 SGN:NCE:XMT,TO=123 168263 TSF:MSG:READ,0-0-123,s=2,c=1,t=2,pt=0,l=1,sg=1:1 168269 SGN:BND:NONCE=40E78847070231061F13FBD56014E185E1FC7651EDC52ABFD3AAAAAAAAA AAAAA 168384 SGN:BND:HMAC=4A48E4CF691C24205050B2ECB0C4C9B5F0CB4A67D9E9A43A5FFA03A8F728 8F1A 168394 SGN:VER:OK received message for sensor 2, type 2, value 1 switching LED on
-
RE: MQTT GW with RFM69 on RPi
@Yveaux I have a raspi gw with debug signatures ready:
pi@zerogwtest:~/MySensors $ sudo ./mysgw.nrf24 Dec 04 05:02:10 INFO Starting gateway... Dec 04 05:02:10 INFO Protocol version - 2.3.2 Dec 04 05:02:10 DEBUG MCO:BGN:INIT GW,CP=RNNGLS--,FQ=NA,REL=255,VER=2.3.2 Dec 04 05:02:10 DEBUG SGN:PER:OK Dec 04 05:02:10 DEBUG SGN:INI:BND OK Dec 04 05:02:10 DEBUG TSF:LRT:OK Dec 04 05:02:10 DEBUG TSM:INIT Dec 04 05:02:10 DEBUG TSF:WUR:MS=0 Dec 04 05:02:10 DEBUG TSM:INIT:TSP OK Dec 04 05:02:10 DEBUG TSM:INIT:GW MODE Dec 04 05:02:10 DEBUG TSM:READY:ID=0,PAR=0,DIS=0 Dec 04 05:02:10 DEBUG MCO:REG:NOT NEEDED Dec 04 05:02:10 DEBUG MCO:BGN:STP MY_BAUD_RATE=(115200ul) MY_CONTROLLER_IP_ADDRESS=127.0.0.1 MY_DEBUG=true MY_DEBUG_VERBOSE_SIGNING=true MY_GATEWAY_LINUX=true MY_GATEWAY_MQTT_CLIENT=true MY_MQTT_CLIENT_ID="mys-nrf-gw" MY_MQTT_PASSWORD=__null MY_MQTT_PUBLISH_TOPIC_PREFIX="mys-nrf-out" MY_MQTT_SUBSCRIBE_TOPIC_PREFIX="mys-nrf-in" MY_MQTT_USER=__null MY_LINUX_CONFIG_FILE="/etc/mysensors.conf" MY_NODE_ID=((255u)) MY_PORT=1883 MY_RADIO_RF24=true MY_RF24_CE_PIN=((22)) MY_RF24_CHANNEL=(76) MY_RF24_CS_PIN=((SS)) MY_RF24_PA_LEVEL=((2)) MY_SIGNING_REQUEST_SIGNATURES=true MY_SIGNING_SOFT=true MY_VERIFICATION_TIMEOUT_MS=(5*1000ul) SPI_SPIDEV_DEVICE="/dev/spidev1.1" Dec 04 05:02:10 DEBUG MCO:BGN:INIT OK,TSP=1 Dec 04 05:02:10 DEBUG GWT:RMQ:CONNECTING... Dec 04 05:02:10 DEBUG connected to 127.0.0.1 Dec 04 05:02:10 DEBUG GWT:RMQ:OK Dec 04 05:02:10 DEBUG GWT:TPS:TOPIC=mys-nrf-out/0/255/0/0/18,MSG SENT Dec 04 05:02:10 DEBUG TSM:READY:NWD REQ Dec 04 05:02:10 DEBUG SGN:SGN:NREQ=255 Dec 04 05:02:10 DEBUG ?TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK: Dec 04 05:02:21 DEBUG TSF:MSG:READ,123-123-255,s=255,c=3,t=7,pt=0,l=0,sg=0: Dec 04 05:02:21 DEBUG TSF:MSG:BC Dec 04 05:02:21 DEBUG TSF:MSG:FPAR REQ,ID=123 Dec 04 05:02:21 DEBUG TSF:PNG:SEND,TO=0 Dec 04 05:02:21 DEBUG TSF:CKU:OK Dec 04 05:02:21 DEBUG TSF:MSG:GWL OK Dec 04 05:02:21 DEBUG SGN:SKP:MSG CMD=3,TYPE=8 Dec 04 05:02:21 DEBUG TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0 Dec 04 05:02:23 DEBUG TSF:MSG:READ,123-123-0,s=255,c=3,t=24,pt=1,l=1,sg=0:1 Dec 04 05:02:23 DEBUG SGN:SKP:MSG CMD=3,TYPE=24 Dec 04 05:02:23 DEBUG TSF:MSG:PINGED,ID=123,HP=1 Dec 04 05:02:23 DEBUG SGN:SKP:MSG CMD=3,TYPE=25 Dec 04 05:02:23 DEBUG TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=OK:1 Dec 04 05:02:23 DEBUG TSF:MSG:READ,123-123-0,s=255,c=3,t=15,pt=6,l=2,sg=0:0101 Dec 04 05:02:23 DEBUG SGN:SKP:MSG CMD=3,TYPE=15 Dec 04 05:02:23 DEBUG SGN:PRE:SGN REQ,FROM=123 Dec 04 05:02:23 DEBUG SGN:PRE:SGN REQ,TO=123 Dec 04 05:02:23 DEBUG SGN:PRE:WHI NREQ,TO=123 Dec 04 05:02:23 DEBUG SGN:SKP:MSG CMD=3,TYPE=15 Dec 04 05:02:23 DEBUG TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0101 Dec 04 05:02:23 DEBUG SGN:PRE:XMT,TO=123 Dec 04 05:02:23 DEBUG TSF:MSG:READ,123-123-0,s=255,c=3,t=16,pt=0,l=0,sg=0: Dec 04 05:02:23 DEBUG SGN:SKP:MSG CMD=3,TYPE=16 Dec 04 05:02:23 DEBUG SGN:SKP:MSG CMD=3,TYPE=17 Dec 04 05:02:23 DEBUG TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=17,pt=6,l=25,sg=0,ft=0,st=OK:<NONCE> Dec 04 05:02:23 DEBUG SGN:NCE:XMT,TO=0 Dec 04 05:02:23 DEBUG TSF:MSG:READ,123-123-0,s=255,c=0,t=17,pt=0,l=5,sg=1:2.3.2 Dec 04 05:02:23 DEBUG SGN:BND:NONCE=4B6126A21920FCBC12BE70183533C27C49AE3CD55094914800AAAAAAAAAAAAAA Dec 04 05:02:23 DEBUG SGN:BND:HMAC=ECDD094309264B891BBA3E2D142B2E08B79784B79A1816D53B26361EBABCF446 Dec 04 05:02:23 DEBUG SGN:VER:OK Dec 04 05:02:23 DEBUG GWT:TPS:TOPIC=mys-nrf-out/123/255/0/0/17,MSG SENT Dec 04 05:02:23 DEBUG TSF:MSG:READ,123-123-0,s=255,c=3,t=16,pt=0,l=0,sg=1: Dec 04 05:02:23 DEBUG SGN:SKP:MSG CMD=3,TYPE=16 Dec 04 05:02:23 DEBUG SGN:SKP:MSG CMD=3,TYPE=17 Dec 04 05:02:23 DEBUG TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE> Dec 04 05:02:23 DEBUG SGN:NCE:XMT,TO=0 Dec 04 05:02:23 DEBUG TSF:MSG:READ,123-123-0,s=255,c=3,t=6,pt=1,l=1,sg=1:0 Dec 04 05:02:23 DEBUG SGN:BND:NONCE=F07B9A2B93327E5130177F095042D6954B202A130B2A72B9E5AAAAAAAAAAAAAA Dec 04 05:02:23 DEBUG SGN:BND:HMAC=C34C02E0990FE19990C11FA97D9A55931AF2D99A5890186E877C3C1669FCBDA7 Dec 04 05:02:23 DEBUG SGN:VER:OK Dec 04 05:02:23 DEBUG GWT:TPS:TOPIC=mys-nrf-out/123/255/3/0/6,MSG SENT Dec 04 05:02:25 DEBUG TSF:MSG:READ,123-123-0,s=255,c=3,t=16,pt=0,l=0,sg=1: Dec 04 05:02:25 DEBUG SGN:SKP:MSG CMD=3,TYPE=16 Dec 04 05:02:25 DEBUG SGN:SKP:MSG CMD=3,TYPE=17 Dec 04 05:02:25 DEBUG TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE> Dec 04 05:02:25 DEBUG SGN:NCE:XMT,TO=0 Dec 04 05:02:26 DEBUG TSF:MSG:READ,123-123-0,s=255,c=3,t=11,pt=0,l=20,sg=1:Hello MySensors 328P Dec 04 05:02:26 DEBUG SGN:BND:NONCE=4A08E36D23F76E6A0940B8C980652ECF7C335F4144209DF1E1AAAAAAAAAAAAAA Dec 04 05:02:26 DEBUG SGN:BND:HMAC=001176474590821EE608440B7639881860DC1ECA9C17868B947D06756C71B105 Dec 04 05:02:26 DEBUG SGN:VER:OK Dec 04 05:02:26 DEBUG GWT:TPS:TOPIC=mys-nrf-out/123/255/3/0/11,MSG SENT Dec 04 05:02:26 DEBUG TSF:MSG:READ,123-123-0,s=255,c=3,t=16,pt=0,l=0,sg=1: Dec 04 05:02:26 DEBUG SGN:SKP:MSG CMD=3,TYPE=16 Dec 04 05:02:26 DEBUG SGN:SKP:MSG CMD=3,TYPE=17 Dec 04 05:02:26 DEBUG TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE> Dec 04 05:02:26 DEBUG SGN:NCE:XMT,TO=0 Dec 04 05:02:26 DEBUG TSF:MSG:READ,123-123-0,s=255,c=3,t=12,pt=0,l=3,sg=1:1.3 Dec 04 05:02:26 DEBUG SGN:BND:NONCE=A542EE79921BC3744AD323286768428EE8D7FDED63887EC112AAAAAAAAAAAAAA Dec 04 05:02:26 DEBUG SGN:BND:HMAC=A4E56BED2C58CA5A332B7CC03EE08556550A804F8A0F042CDB58C012779276B6 Dec 04 05:02:26 DEBUG SGN:VER:OK Dec 04 05:02:26 DEBUG GWT:TPS:TOPIC=mys-nrf-out/123/255/3/0/12,MSG SENT Dec 04 05:02:26 DEBUG TSF:MSG:READ,123-123-0,s=0,c=3,t=16,pt=0,l=0,sg=1: Dec 04 05:02:26 DEBUG SGN:SKP:MSG CMD=3,TYPE=16 Dec 04 05:02:26 DEBUG SGN:SKP:MSG CMD=3,TYPE=17 Dec 04 05:02:26 DEBUG TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE> Dec 04 05:02:26 DEBUG SGN:NCE:XMT,TO=0 Dec 04 05:02:26 DEBUG TSF:MSG:READ,123-123-0,s=0,c=0,t=36,pt=0,l=6,sg=1:system Dec 04 05:02:26 DEBUG SGN:BND:NONCE=172B88ACF73CC49618472C3A3AA83FF5A6E0D8805211F8D965AAAAAAAAAAAAAA Dec 04 05:02:26 DEBUG SGN:BND:HMAC=5D6E3EE95F86B335218C5FC90CB11D4EC141301DA071AEBEA16F4D6FD5038CFE Dec 04 05:02:26 DEBUG SGN:VER:OK Dec 04 05:02:26 DEBUG GWT:TPS:TOPIC=mys-nrf-out/123/0/0/0/36,MSG SENT Dec 04 05:02:26 DEBUG TSF:MSG:READ,123-123-0,s=1,c=3,t=16,pt=0,l=0,sg=1: Dec 04 05:02:26 DEBUG SGN:SKP:MSG CMD=3,TYPE=16 Dec 04 05:02:26 DEBUG SGN:SKP:MSG CMD=3,TYPE=17 Dec 04 05:02:26 DEBUG TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE> Dec 04 05:02:26 DEBUG SGN:NCE:XMT,TO=0 Dec 04 05:02:26 DEBUG TSF:MSG:READ,123-123-0,s=1,c=0,t=36,pt=0,l=9,sg=1:timestamp Dec 04 05:02:26 DEBUG SGN:BND:NONCE=A621A9A841141437693FA157CC6D115EB1EA732165F7FF1958AAAAAAAAAAAAAA Dec 04 05:02:26 DEBUG SGN:BND:HMAC=42CBC8BF5AEB45E21DE5FE86482F6A9CDF5349A6960E407844BF2E06509B80A6 Dec 04 05:02:26 DEBUG SGN:VER:OK Dec 04 05:02:26 DEBUG GWT:TPS:TOPIC=mys-nrf-out/123/1/0/0/36,MSG SENT Dec 04 05:02:26 DEBUG TSF:MSG:READ,123-123-0,s=2,c=3,t=16,pt=0,l=0,sg=1: Dec 04 05:02:26 DEBUG SGN:SKP:MSG CMD=3,TYPE=16 Dec 04 05:02:26 DEBUG SGN:SKP:MSG CMD=3,TYPE=17 Dec 04 05:02:26 DEBUG TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE> Dec 04 05:02:26 DEBUG SGN:NCE:XMT,TO=0 Dec 04 05:02:26 DEBUG TSF:MSG:READ,123-123-0,s=2,c=0,t=3,pt=0,l=3,sg=1:led Dec 04 05:02:26 DEBUG SGN:BND:NONCE=4B1909C8A7DBDABFAF157943AB0AAB1D322123A2B8177F2732AAAAAAAAAAAAAA Dec 04 05:02:26 DEBUG SGN:BND:HMAC=0F31776B1B67825DA94409AF8B220FE9BCB5E4BB9FB1CD618FBD086D51C4D598 Dec 04 05:02:26 DEBUG SGN:VER:OK Dec 04 05:02:26 DEBUG GWT:TPS:TOPIC=mys-nrf-out/123/2/0/0/3,MSG SENT Dec 04 05:02:26 DEBUG TSF:MSG:READ,123-123-0,s=255,c=3,t=26,pt=1,l=1,sg=1:2 Dec 04 05:02:26 DEBUG SGN:SKP:MSG CMD=3,TYPE=26 Dec 04 05:02:26 DEBUG SGN:SKP:MSG CMD=3,TYPE=16 Dec 04 05:02:26 DEBUG TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=16,pt=0,l=0,sg=0,ft=0,st=OK: Dec 04 05:02:26 DEBUG SGN:SGN:NCE REQ,TO=123 Dec 04 05:02:26 DEBUG !MCO:PRO:RC=1 Dec 04 05:02:27 DEBUG !MCO:PRO:RC=1 Dec 04 05:02:27 DEBUG !MCO:PRO:RC=1 Dec 04 05:02:27 DEBUG !MCO:PRO:RC=1 Dec 04 05:02:27 DEBUG !MCO:PRO:RC=1 Dec 04 05:02:27 DEBUG !MCO:PRO:RC=1 Dec 04 05:02:27 DEBUG !MCO:PRO:RC=1 Dec 04 05:02:27 DEBUG !MCO:PRO:RC=1 Dec 04 05:02:27 DEBUG !MCO:PRO:RC=1 Dec 04 05:02:27 DEBUG !MCO:PRO:RC=1 Dec 04 05:02:27 DEBUG !MCO:PRO:RC=1 Dec 04 05:02:27 DEBUG !MCO:PRO:RC=1 Dec 04 05:02:27 DEBUG !MCO:PRO:RC=1 Dec 04 05:02:27 DEBUG TSF:MSG:READ,123-123-0,s=255,c=3,t=17,pt=6,l=25,sg=0:<NONCE> Dec 04 05:02:27 DEBUG SGN:SKP:MSG CMD=3,TYPE=17 Dec 04 05:02:27 DEBUG SGN:NCE:FROM=123 Dec 04 05:02:27 DEBUG SGN:BND:NONCE=E38476176C1B713F454358240E2C6B5829BAD90CAFA6338EBDAAAAAAAAAAAAAA Dec 04 05:02:27 DEBUG SGN:BND:HMAC=4FEBFCAC5421A7C4DEDD52420E613A7FB2A90BB1E241EF432339ADDE659E4DE3 Dec 04 05:02:27 DEBUG SGN:SGN:SGN Dec 04 05:02:27 DEBUG TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=27,pt=1,l=1,sg=1,ft=0,st=OK:1 Dec 04 05:02:27 DEBUG TSF:MSG:READ,123-123-0,s=1,c=3,t=16,pt=0,l=0,sg=1: Dec 04 05:02:27 DEBUG SGN:SKP:MSG CMD=3,TYPE=16 Dec 04 05:02:27 DEBUG SGN:SKP:MSG CMD=3,TYPE=17 Dec 04 05:02:27 DEBUG TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE> Dec 04 05:02:27 DEBUG SGN:NCE:XMT,TO=0 Dec 04 05:02:27 DEBUG TSF:MSG:READ,123-123-0,s=1,c=1,t=2,pt=0,l=11,sg=1:Hello 43943 Dec 04 05:02:27 DEBUG SGN:BND:NONCE=2FE7F6139888428C3569C3CBFE107F05BC536100175C1EAAD7AAAAAAAAAAAAAA Dec 04 05:02:27 DEBUG SGN:BND:HMAC=B438045B3C7E2D079455F57A41E8E4B1843E1092ABA7C5FA7EF3F41EFC839553 Dec 04 05:02:27 DEBUG SGN:VER:OK Dec 04 05:02:27 DEBUG GWT:TPS:TOPIC=mys-nrf-out/123/1/1/0/2,MSG SENT Dec 04 05:02:29 DEBUG TSF:MSG:READ,123-123-0,s=1,c=3,t=16,pt=0,l=0,sg=1: Dec 04 05:02:29 DEBUG SGN:SKP:MSG CMD=3,TYPE=16 Dec 04 05:02:29 DEBUG SGN:SKP:MSG CMD=3,TYPE=17 Dec 04 05:02:29 DEBUG TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE> Dec 04 05:02:29 DEBUG SGN:NCE:XMT,TO=0 Dec 04 05:02:29 DEBUG TSF:MSG:READ,123-123-0,s=1,c=1,t=2,pt=0,l=11,sg=1:Hello 46123 Dec 04 05:02:29 DEBUG SGN:BND:NONCE=E1F6BDB4CA7CE0D4F22C87B5048315DF07DE183E8C8D63EA75AAAAAAAAAAAAAA Dec 04 05:02:29 DEBUG SGN:BND:HMAC=642100E6D0897056526EC99F89D789C0484DAAAD0AF2FD5060B66F3E8F32595A Dec 04 05:02:29 DEBUG SGN:VER:OK Dec 04 05:02:29 DEBUG GWT:TPS:TOPIC=mys-nrf-out/123/1/1/0/2,MSG SENT Dec 04 05:02:31 DEBUG TSF:MSG:READ,123-123-0,s=1,c=3,t=16,pt=0,l=0,sg=1: Dec 04 05:02:31 DEBUG SGN:SKP:MSG CMD=3,TYPE=16 Dec 04 05:02:31 DEBUG SGN:SKP:MSG CMD=3,TYPE=17 Dec 04 05:02:31 DEBUG TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE> Dec 04 05:02:31 DEBUG SGN:NCE:XMT,TO=0 Dec 04 05:02:31 DEBUG TSF:MSG:READ,123-123-0,s=1,c=1,t=2,pt=0,l=11,sg=1:Hello 48289 Dec 04 05:02:31 DEBUG SGN:BND:NONCE=412EE0D22B09C2FE6E249A6C5003C0B43EE85404CBFD8EF401AAAAAAAAAAAAAA Dec 04 05:02:31 DEBUG SGN:BND:HMAC=B170CB1D43214203A4EDF0AFD7BB137C7D4104E715E1A2632E79E9768FE1CBDF Dec 04 05:02:31 DEBUG SGN:VER:OK Dec 04 05:02:31 DEBUG GWT:TPS:TOPIC=mys-nrf-out/123/1/1/0/2,MSG SENT Dec 04 05:02:33 DEBUG TSF:MSG:READ,123-123-0,s=1,c=3,t=16,pt=0,l=0,sg=1: Dec 04 05:02:33 DEBUG SGN:SKP:MSG CMD=3,TYPE=16 Dec 04 05:02:33 DEBUG SGN:SKP:MSG CMD=3,TYPE=17 Dec 04 05:02:33 DEBUG TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE> Dec 04 05:02:33 DEBUG SGN:NCE:XMT,TO=0 Dec 04 05:02:34 DEBUG TSF:MSG:READ,123-123-0,s=1,c=1,t=2,pt=0,l=11,sg=1:Hello 50462 Dec 04 05:02:34 DEBUG SGN:BND:NONCE=83B523911127AC20C1DDFAFFD9A497A55A2A6796B500696B67AAAAAAAAAAAAAA Dec 04 05:02:34 DEBUG SGN:BND:HMAC=D9E09B4F4075AA96C5DAAF507A59D5C9654E704081CCFFFA954B09608DA1A2CA Dec 04 05:02:34 DEBUG SGN:VER:OK Dec 04 05:02:34 DEBUG GWT:TPS:TOPIC=mys-nrf-out/123/1/1/0/2,MSG SENT Dec 04 05:02:36 DEBUG TSF:MSG:READ,123-123-0,s=1,c=3,t=16,pt=0,l=0,sg=1: Dec 04 05:02:36 DEBUG SGN:SKP:MSG CMD=3,TYPE=16 Dec 04 05:02:36 DEBUG SGN:SKP:MSG CMD=3,TYPE=17 Dec 04 05:02:36 DEBUG TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE> Dec 04 05:02:36 DEBUG SGN:NCE:XMT,TO=0 Dec 04 05:02:36 DEBUG TSF:MSG:READ,123-123-0,s=1,c=1,t=2,pt=0,l=11,sg=1:Hello 52633 Dec 04 05:02:36 DEBUG SGN:BND:NONCE=E8082AB2925ACA106C9678E6996D6E73CF02A1774AC79B2832AAAAAAAAAAAAAA Dec 04 05:02:36 DEBUG SGN:BND:HMAC=743DC22EDFC15ADB6050A2DD29E011D826F2F037F531A4D656837EB1DB2294F6 Dec 04 05:02:36 DEBUG SGN:VER:OK Dec 04 05:02:36 DEBUG GWT:TPS:TOPIC=mys-nrf-out/123/1/1/0/2,MSG SENT Dec 04 05:02:38 DEBUG TSF:MSG:READ,123-123-0,s=1,c=3,t=16,pt=0,l=0,sg=1: Dec 04 05:02:38 DEBUG SGN:SKP:MSG CMD=3,TYPE=16 Dec 04 05:02:38 DEBUG SGN:SKP:MSG CMD=3,TYPE=17 Dec 04 05:02:38 DEBUG TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE> Dec 04 05:02:38 DEBUG SGN:NCE:XMT,TO=0 Dec 04 05:02:38 DEBUG TSF:MSG:READ,123-123-0,s=1,c=1,t=2,pt=0,l=11,sg=1:Hello 54804 Dec 04 05:02:38 DEBUG SGN:BND:NONCE=E7C42737D780B3319EB7819458767BFDE334A2D51F920DA0C6AAAAAAAAAAAAAA Dec 04 05:02:38 DEBUG SGN:BND:HMAC=1C4DECD661E66CC435798821B45994D74791AEECD0672F5CF7D84614D5A889C0 Dec 04 05:02:38 DEBUG SGN:VER:OK Dec 04 05:02:38 DEBUG GWT:TPS:TOPIC=mys-nrf-out/123/1/1/0/2,MSG SENT Dec 04 05:02:40 DEBUG TSF:MSG:READ,123-123-0,s=1,c=3,t=16,pt=0,l=0,sg=1: Dec 04 05:02:40 DEBUG SGN:SKP:MSG CMD=3,TYPE=16 Dec 04 05:02:40 DEBUG SGN:SKP:MSG CMD=3,TYPE=17 Dec 04 05:02:40 DEBUG TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE> Dec 04 05:02:40 DEBUG SGN:NCE:XMT,TO=0 Dec 04 05:02:40 DEBUG TSF:MSG:READ,123-123-0,s=1,c=1,t=2,pt=0,l=11,sg=1:Hello 56973 Dec 04 05:02:40 DEBUG SGN:BND:NONCE=9C249B35BC8ADDC86AC91ACDFE417520340D6E09DE5B21C965AAAAAAAAAAAAAA Dec 04 05:02:40 DEBUG SGN:BND:HMAC=D213FB0411871CE08611BF608FF2A490403C2A4CDAB73D38589FC5E16CD59DA3 Dec 04 05:02:40 DEBUG SGN:VER:OK Dec 04 05:02:40 DEBUG GWT:TPS:TOPIC=mys-nrf-out/123/1/1/0/2,MSG SENT ^CDec 04 05:02:44 NOTICE Received SIGINT
-
RE: RPI GW - Including build flags somewhere for future reference
@joaoabs said in RPI GW - Including build flags somewhere for future reference:
suggestion for feature would be to include the build flags
I think what joaoabs suggests is not too difficult:
- Introduce an additional CPPFLAG which contains the whole command line arguments in ./configure:
... params="SOC CFLAGS CXXFLAGS CPPFLAGS LDFLAGS PREFIX CC CXX ARDUINO_LIB_DIR BUILDDIR BINDIR GATEWAY_DIR INIT_SYSTEM SPI_DRIVER" ***CPPFLAGS="-DCONFIGURE_COMMANDLINE=\""$@"\""*** for opt do ...
- Print this flag in the gateways's setup function (examples_linux/mysgw.cpp):
void setup() { // Setup locally attached sensors #ifdef CONFIGURE_COMMANDLINE printf ( "%s\n", CONFIGURE_COMMANDLINE ); #endif }
Might not be perfect, but works:
pi@zerogwtest:~/MySensors $ sudo bin/mysgw Dec 03 23:54:30 INFO Starting gateway... Dec 03 23:54:30 INFO Protocol version - 2.3.2 Dec 03 23:54:30 DEBUG MCO:BGN:INIT GW,CP=RPNGLS--,FQ=NA,REL=255,VER=2.3.2 Dec 03 23:54:30 DEBUG SGN:PER:OK Dec 03 23:54:30 DEBUG SGN:INI:BND OK Dec 03 23:54:30 DEBUG TSF:LRT:OK Dec 03 23:54:30 DEBUG TSM:INIT Dec 03 23:54:30 DEBUG TSF:WUR:MS=0 Dec 03 23:54:30 DEBUG TSM:INIT:TSP OK Dec 03 23:54:30 DEBUG TSM:INIT:GW MODE Dec 03 23:54:30 DEBUG TSM:READY:ID=0,PAR=0,DIS=0 Dec 03 23:54:30 DEBUG MCO:REG:NOT NEEDED Dec 03 23:54:30 DEBUG MCO:BGN:STP --spi-spidev-device=/dev/spidev1.0 --spi-driver=SPIDEV --my-transport=rfm69 --my-rfm69-frequency=868 --my-is-rfm69hw --my-rfm69-irq-pin=18 --my-rfm69-cs-pin=12 --my-gateway=mqtt --my-controller-ip-address=127.0.0.1 --my-mqtt-publish-topic-prefix=mysensors-out --my-mqtt-subscribe-topic-prefix=mysensors-in --my-mqtt-client-id=mygateway1 --my-signing=software --my-signing-debug --my-signing-request-signatures --my-cppflag=MY_RFM69_CSMA_LIMIT_DBM=-90 --my-cppflag=MY_RFM69_NETWORKID=200 Dec 03 23:54:30 DEBUG MCO:BGN:INIT OK,TSP=1 Dec 03 23:54:30 DEBUG GWT:RMQ:CONNECTING... Dec 03 23:54:30 DEBUG connected to 127.0.0.1 Dec 03 23:54:30 DEBUG GWT:RMQ:OK Dec 03 23:54:30 DEBUG GWT:TPS:TOPIC=mysensors-out/0/255/0/0/18,MSG SENT Dec 03 23:54:30 DEBUG TSM:READY:NWD REQ Dec 03 23:54:30 DEBUG SGN:SGN:NREQ=255 Dec 03 23:54:30 DEBUG ?TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:
Thank you, joaoabs, for a good idea!
-
RE: MQTT GW with RFM69 on RPi
same results on EthernetGateway instead of MQTT Gateway: MCO:PRO only with signing, only on gateway
-
RE: MQTT GW with RFM69 on RPi
not a single MCO:PRO
0 MCO:BGN:INIT GW,CP=RNNGA---,FQ=8,REL=255,VER=2.3.2 4 TSM:INIT 6 TSF:WUR:MS=0 12 TSM:INIT:TSP OK 14 TSM:INIT:GW MODE 16 TSM:READY:ID=0,PAR=0,DIS=0 20 MCO:REG:NOT NEEDED 583 GWT:TPC:IP=192.168.99.13 1587 MCO:BGN:STP *********************************************** MySensors W5100 Gateway Version 0.2 own mac address: DE:AD:BA:BE:99:13 own network address: 192.168.99.13 Gateway type: mqtt mqtt controller address: 192.168.99.20 mqtt controller port: 1883 mqtt client id: mysgw1 mqtt publish prefix: mysgw1-out mqtt subscribe prefix: mysgw1-in Radio type: NRF24 signing: no 2115 MCO:BGN:INIT OK,TSP=1 2125 GWT:TPC:IP=192.168.99.13 3129 GWT:RMQ:CONNECTING... 3338 GWT:RMQ:OK 3340 GWT:TPS:TOPIC=mysgw1-out/0/255/0/0/18,MSG SENT 3348 TSM:READY:NWD REQ 3352 ?TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK: 11919 TSF:MSG:READ,123-123-255,s=255,c=3,t=7,pt=0,l=0,sg=0: 11925 TSF:MSG:BC 11927 TSF:MSG:FPAR REQ,ID=123 11931 TSF:PNG:SEND,TO=0 11933 TSF:CKU:OK 11935 TSF:MSG:GWL OK 12613 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0 13942 TSF:MSG:READ,123-123-0,s=255,c=3,t=24,pt=1,l=1,sg=0:1 13948 TSF:MSG:PINGED,ID=123,HP=1 13955 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=OK:1 13971 TSF:MSG:READ,123-123-0,s=255,c=3,t=15,pt=6,l=2,sg=0:0100 13981 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100 13989 TSF:MSG:READ,123-123-0,s=255,c=0,t=17,pt=0,l=5,sg=0:2.3.2 13998 GWT:TPS:TOPIC=mysgw1-out/123/255/0/0/17,MSG SENT 14006 TSF:MSG:READ,123-123-0,s=255,c=3,t=6,pt=1,l=1,sg=0:0 14012 GWT:TPS:TOPIC=mysgw1-out/123/255/3/0/6,MSG SENT 16017 TSF:MSG:READ,123-123-0,s=255,c=3,t=11,pt=0,l=20,sg=0:Hello MySensors 328P 16027 GWT:TPS:TOPIC=mysgw1-out/123/255/3/0/11,MSG SENT 16033 TSF:MSG:READ,123-123-0,s=255,c=3,t=12,pt=0,l=3,sg=0:1.3 16041 GWT:TPS:TOPIC=mysgw1-out/123/255/3/0/12,MSG SENT 16050 TSF:MSG:READ,123-123-0,s=0,c=0,t=36,pt=0,l=6,sg=0:system 16056 GWT:TPS:TOPIC=mysgw1-out/123/0/0/0/36,MSG SENT 16064 TSF:MSG:READ,123-123-0,s=1,c=0,t=36,pt=0,l=9,sg=0:timestamp 16072 GWT:TPS:TOPIC=mysgw1-out/123/1/0/0/36,MSG SENT 16078 TSF:MSG:READ,123-123-0,s=2,c=0,t=3,pt=0,l=3,sg=0:led 16087 GWT:TPS:TOPIC=mysgw1-out/123/2/0/0/3,MSG SENT 16093 TSF:MSG:READ,123-123-0,s=255,c=3,t=26,pt=1,l=1,sg=0:2 16101 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=27,pt=1,l=1,sg=0,ft=0,st=OK:1 16117 TSF:MSG:READ,123-123-0,s=1,c=1,t=2,pt=0,l=10,sg=0:Hello 6258 16125 GWT:TPS:TOPIC=mysgw1-out/123/1/1/0/2,MSG SENT 18132 TSF:MSG:READ,123-123-0,s=1,c=1,t=2,pt=0,l=10,sg=0:Hello 8269 18141 GWT:TPS:TOPIC=mysgw1-out/123/1/1/0/2,MSG SENT 20152 TSF:MSG:READ,123-123-0,s=1,c=1,t=2,pt=0,l=11,sg=0:Hello 10283 20160 GWT:TPS:TOPIC=mysgw1-out/123/1/1/0/2,MSG SENT 22169 TSF:MSG:READ,123-123-0,s=1,c=1,t=2,pt=0,l=11,sg=0:Hello 12294 22177 GWT:TPS:TOPIC=mysgw1-out/123/1/1/0/2,MSG SENT 24186 TSF:MSG:READ,123-123-0,s=1,c=1,t=2,pt=0,l=11,sg=0:Hello 14305 24195 GWT:TPS:TOPIC=mysgw1-out/123/1/1/0/2,MSG SENT 26202 TSF:MSG:READ,123-123-0,s=1,c=1,t=2,pt=0,l=11,sg=0:Hello 16316 26210 GWT:TPS:TOPIC=mysgw1-out/123/1/1/0/2,MSG SENT 28219 TSF:MSG:READ,123-123-0,s=1,c=1,t=2,pt=0,l=11,sg=0:Hello 18327 28227 GWT:TPS:TOPIC=mysgw1-out/123/1/1/0/2,MSG SENT 30236 TSF:MSG:READ,123-123-0,s=1,c=1,t=2,pt=0,l=11,sg=0:Hello 20338 30244 GWT:TPS:TOPIC=mysgw1-out/123/1/1/0/2,MSG SENT 32251 TSF:MSG:READ,123-123-0,s=1,c=1,t=2,pt=0,l=11,sg=0:Hello 22349 32260 GWT:TPS:TOPIC=mysgw1-out/123/1/1/0/2,MSG SENT 34271 TSF:MSG:READ,123-123-0,s=1,c=1,t=2,pt=0,l=11,sg=0:Hello 24363 34279 GWT:TPS:TOPIC=mysgw1-out/123/1/1/0/2,MSG SENT 36288 TSF:MSG:READ,123-123-0,s=1,c=1,t=2,pt=0,l=11,sg=0:Hello 26374 36294 GWT:TPS:TOPIC=mysgw1-out/123/1/1/0/2,MSG SENT 38303 TSF:MSG:READ,123-123-0,s=1,c=1,t=2,pt=0,l=11,sg=0:Hello 28385 38311 GWT:TPS:TOPIC=mysgw1-out/123/1/1/0/2,MSG SENT 39231 GWT:IMQ:TOPIC=mysgw1-in/123/3/0/0/1, MSG RECEIVED 39239 TSF:MSG:SEND,0-0-123-123,s=3,c=0,t=1,pt=0,l=0,sg=0,ft=0,st=OK: 40321 TSF:MSG:READ,123-123-0,s=1,c=1,t=2,pt=0,l=11,sg=0:Hello 30396 40329 GWT:TPS:TOPIC=mysgw1-out/123/1/1/0/2,MSG SENT 42338 TSF:MSG:READ,123-123-0,s=1,c=1,t=2,pt=0,l=11,sg=0:Hello 32407 42346 GWT:TPS:TOPIC=mysgw1-out/123/1/1/0/2,MSG SENT 44353 TSF:MSG:READ,123-123-0,s=1,c=1,t=2,pt=0,l=11,sg=0:Hello 34418 44361 GWT:TPS:TOPIC=mysgw1-out/123/1/1/0/2,MSG SENT 46370 TSF:MSG:READ,123-123-0,s=1,c=1,t=2,pt=0,l=11,sg=0:Hello 36429 46379 GWT:TPS:TOPIC=mysgw1-out/123/1/1/0/2,MSG SENT 48390 TSF:MSG:READ,123-123-0,s=1,c=1,t=2,pt=0,l=11,sg=0:Hello 38443 48398 GWT:TPS:TOPIC=mysgw1-out/123/1/1/0/2,MSG SENT 50405 TSF:MSG:READ,123-123-0,s=1,c=1,t=2,pt=0,l=11,sg=0:Hello 40454 50413 GWT:TPS:TOPIC=mysgw1-out/123/1/1/0/2,MSG SENT 51738 GWT:IMQ:TOPIC=mysgw1-in/123/3/0/0/1, MSG RECEIVED 51744 TSF:MSG:SEND,0-0-123-123,s=3,c=0,t=1,pt=0,l=0,sg=0,ft=0,st=OK: 52422 TSF:MSG:READ,123-123-0,s=1,c=1,t=2,pt=0,l=11,sg=0:Hello 42465 52430 GWT:TPS:TOPIC=mysgw1-out/123/1/1/0/2,MSG SENT 53186 GWT:IMQ:TOPIC=mysgw1-in/123/3/0/0/1, MSG RECEIVED 53194 TSF:MSG:SEND,0-0-123-123,s=3,c=0,t=1,pt=0,l=0,sg=0,ft=0,st=OK: 54439 TSF:MSG:READ,123-123-0,s=1,c=1,t=2,pt=0,l=11,sg=0:Hello 44476 54448 GWT:TPS:TOPIC=mysgw1-out/123/1/1/0/2,MSG SENT 56455 TSF:MSG:READ,123-123-0,s=1,c=1,t=2,pt=0,l=11,sg=0:Hello 46487 56463 GWT:TPS:TOPIC=mysgw1-out/123/1/1/0/2,MSG SENT 58472 TSF:MSG:READ,123-123-0,s=1,c=1,t=2,pt=0,l=11,sg=0:Hello 48498 58480 GWT:TPS:TOPIC=mysgw1-out/123/1/1/0/2,MSG SENT
-
RE: RFM69(HW) 433Mhz interference with other home devices?
I've seen some blocking on a RFM69 868 MHz node wich was running on a very low voltage. I have a Lime SDR that I took in Spectrum Analyzer mode and was able to see the jamming!
-
RE: MQTT GW with RFM69 on RPi
just a quick test with nrf24 node and nrf24 mqtt gateway with signing:
0 MCO:BGN:INIT GW,CP=RNNGAA--,FQ=8,REL=255,VER=2.3.2 38 TSM:INIT 40 TSF:WUR:MS=0 47 TSM:INIT:TSP OK 49 TSM:INIT:GW MODE 51 TSM:READY:ID=0,PAR=0,DIS=0 55 MCO:REG:NOT NEEDED 618 GWT:TPC:IP=192.168.99.13 1622 MCO:BGN:STP *********************************************** MySensors W5100 Gateway Version 0.2 own mac address: DE:AD:BA:BE:99:13 own network address: 192.168.99.13 Gateway type: mqtt mqtt controller address: 192.168.99.20 mqtt controller port: 1883 mqtt client id: mysgw1 mqtt publish prefix: mysgw1-out mqtt subscribe prefix: mysgw1-in Radio type: NRF24 signing: yes 2150 MCO:BGN:INIT OK,TSP=1 2160 GWT:TPC:IP=192.168.99.13 3164 GWT:RMQ:CONNECTING... 3373 GWT:RMQ:OK 3375 GWT:TPS:TOPIC=mysgw1-out/0/255/0/0/18,MSG SENT 3383 TSM:READY:NWD REQ 3387 ?TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK: 8976 TSF:MSG:READ,123-123-255,s=255,c=3,t=7,pt=0,l=0,sg=0: 8982 TSF:MSG:BC 8984 TSF:MSG:FPAR REQ,ID=123 8988 TSF:CKU:OK,FCTRL 8990 TSF:MSG:GWL OK 9795 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0 11005 TSF:MSG:READ,123-123-0,s=255,c=3,t=24,pt=1,l=1,sg=0:1 11012 TSF:MSG:PINGED,ID=123,HP=1 11018 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=OK:1 11044 TSF:MSG:READ,123-123-0,s=255,c=3,t=15,pt=6,l=2,sg=0:0101 11053 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0101 11075 TSF:MSG:READ,123-123-0,s=255,c=3,t=16,pt=0,l=0,sg=0: 11159 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=17,pt=6,l=25,sg=0,ft=0,st=OK:<NONCE> 11331 TSF:MSG:READ,123-123-0,s=255,c=0,t=17,pt=0,l=5,sg=1:2.3.2 11446 GWT:TPS:TOPIC=mysgw1-out/123/255/0/0/17,MSG SENT 11454 TSF:MSG:READ,123-123-0,s=255,c=3,t=16,pt=0,l=0,sg=1: 11542 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE> 11712 TSF:MSG:READ,123-123-0,s=255,c=3,t=6,pt=1,l=1,sg=1:0 11827 GWT:TPS:TOPIC=mysgw1-out/123/255/3/0/6,MSG SENT 13703 TSF:MSG:READ,123-123-0,s=255,c=3,t=16,pt=0,l=0,sg=1: 13787 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE> 13957 TSF:MSG:READ,123-123-0,s=255,c=3,t=11,pt=0,l=20,sg=1:Hello MySensors 328P 14077 GWT:TPS:TOPIC=mysgw1-out/123/255/3/0/11,MSG SENT 14086 TSF:MSG:READ,123-123-0,s=255,c=3,t=16,pt=0,l=0,sg=1: 14170 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE> 14340 TSF:MSG:READ,123-123-0,s=255,c=3,t=12,pt=0,l=3,sg=1:1.3 14452 GWT:TPS:TOPIC=mysgw1-out/123/255/3/0/12,MSG SENT 14460 TSF:MSG:READ,123-123-0,s=0,c=3,t=16,pt=0,l=0,sg=1: 14546 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE> 14716 TSF:MSG:READ,123-123-0,s=0,c=0,t=36,pt=0,l=6,sg=1:system 14833 GWT:TPS:TOPIC=mysgw1-out/123/0/0/0/36,MSG SENT 14841 TSF:MSG:READ,123-123-0,s=1,c=3,t=16,pt=0,l=0,sg=1: 14925 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE> 15095 TSF:MSG:READ,123-123-0,s=1,c=0,t=36,pt=0,l=9,sg=1:timestamp 15212 GWT:TPS:TOPIC=mysgw1-out/123/1/0/0/36,MSG SENT 15220 TSF:MSG:READ,123-123-0,s=2,c=3,t=16,pt=0,l=0,sg=1: 15302 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE> 15472 TSF:MSG:READ,123-123-0,s=2,c=0,t=3,pt=0,l=3,sg=1:led 15589 GWT:TPS:TOPIC=mysgw1-out/123/2/0/0/3,MSG SENT 15597 TSF:MSG:READ,123-123-0,s=255,c=3,t=26,pt=1,l=1,sg=1:2 15605 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=16,pt=0,l=0,sg=0,ft=0,st=OK: 15613 !MCO:PRO:RC=1 15616 !MCO:PRO:RC=1 15618 !MCO:PRO:RC=1 15620 !MCO:PRO:RC=1 15624 !MCO:PRO:RC=1 15626 !MCO:PRO:RC=1 15628 !MCO:PRO:RC=1 15630 !MCO:PRO:RC=1 15634 !MCO:PRO:RC=1 15636 !MCO:PRO:RC=1 15638 !MCO:PRO:RC=1 15640 !MCO:PRO:RC=1 15644 !MCO:PRO:RC=1 15646 !MCO:PRO:RC=1 15648 !MCO:PRO:RC=1 15650 !MCO:PRO:RC=1 15654 !MCO:PRO:RC=1 15656 !MCO:PRO:RC=1 15659 !MCO:PRO:RC=1 15661 !MCO:PRO:RC=1 15665 !MCO:PRO:RC=1 15667 !MCO:PRO:RC=1 15669 !MCO:PRO:RC=1 15671 !MCO:PRO:RC=1 15673 !MCO:PRO:RC=1 15677 !MCO:PRO:RC=1 15679 !MCO:PRO:RC=1 15681 !MCO:PRO:RC=1 15683 !MCO:PRO:RC=1 15687 !MCO:PRO:RC=1 15689 !MCO:PRO:RC=1 15691 !MCO:PRO:RC=1 15693 !MCO:PRO:RC=1 15697 !MCO:PRO:RC=1 15699 !MCO:PRO:RC=1 15702 !MCO:PRO:RC=1 15704 !MCO:PRO:RC=1 15708 !MCO:PRO:RC=1 15710 !MCO:PRO:RC=1 15712 !MCO:PRO:RC=1 15714 !MCO:PRO:RC=1 15718 !MCO:PRO:RC=1 15720 !MCO:PRO:RC=1 15722 !MCO:PRO:RC=1 15724 !MCO:PRO:RC=1 15728 !MCO:PRO:RC=1 15730 !MCO:PRO:RC=1 15732 !MCO:PRO:RC=1 15734 TSF:MSG:READ,123-123-0,s=255,c=3,t=17,pt=6,l=25,sg=0:<NONCE> 15855 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=27,pt=1,l=1,sg=1,ft=0,st=OK:1
-
RE: MQTT GW with RFM69 on RPi
Hi,
I'm getting those MCO:PRO's on the node, the AVR gateway, the raspberry pi gateway, with NRF24 and RFM69 and I'm pretty sure not only on MQTT gateway but also Ethernet gateway. Could test it.https://forum.mysensors.org/topic/11310
For me it seems to be related to a) signing and b) MY_TRANSPORT_WAIT_READY_MS.
The log looks bad, but node and gateway are working, after all.
I got used to it. -
RE: [solved] Rebuilding a RPI GW - What do I need to get signing working again?
@joaoabs said in Rebuilding a RPI GW - What do I need to get signing working again?:
An year or so has passed since last time
Have you re-personalized your node? If not, is this possible or is your atsha chip locked?
-
RE: Serial Baud Rate for Adapter
the USB to UART adapter uses the baud rate it's host requests. I have a lot of CH340 here which work perfectly @115200.
@Westie said in Serial Baud Rate for Adapter:
dev_port, baud=15200,
If this line is really in your code, please change it to baud=115200
The baud rate MySensors uses can be set with
#define MY_BAUD_RATE 9600
-
RE: listen to 3th party device
@Tsjippy said in listen to 3th party device:
My question is how can I listen to the data it is broadcasting?
most probably not with MySensors library. You would have to do some serious radio protocol reengineering, I guess...
-
RE: 💬 Building a MQTT Gateway
@tssk said in Building a MQTT Gateway:
@frits Cool! So you already had this?
no, not as a webserver. I only print some node information to Serial.
Webserver seems to work and not to interfere with mysensors core. My (MQTT-)Gateway doesn't act as a server, so there's only one listener. But multiple listeners (webserver on port 80 and Ethernet Gateway on port 5003 for example) should also be possible. I've not tested this though.
-
RE: 💬 Building a MQTT Gateway
@tssk Nice idea! This should work, at the cost of some other feature which doesn't fit into ATMega's flash anymore.
Here's my gateway:#define BUILD_MQTT_GATEWAY // either build mqtt gateway or ethernet gateway // #define USE_SIGNING #define MY_RADIO_RF24 // #define MY_RADIO_RFM69 #define WEBFRONTEND // provide a webfrontend at port 80 that shows gateway config #define MY_DEBUG #define SN "MySensors W5100 Gateway" #define SV "0.2" #define MY_MQTT_PUBLISH_TOPIC_PREFIX "mysgw1-out" #define MY_MQTT_SUBSCRIBE_TOPIC_PREFIX "mysgw1-in" #define MY_MQTT_CLIENT_ID "mysgw1" #define MY_MQTT_CONTROLLER_IP_ADDRESS 192, 168, 99, 20 #define MY_MQTT_PORT 1883 #define MY_MYSGW_PORT 5003 #define MY_IP_ADDRESS 192,168,99,13 #define MY_MAC_ADDRESS 0xDE, 0xAD, 0xBA, 0xBE, 0x99, 0x13 #define MY_SIGNING_ATSHA204_PIN 17 #define MY_RFM69_NETWORKID (200) #define MY_RFM69_TX_POWER_DBM 20 #define MY_SERIALDEVICE Serial #if !defined(MY_W5100_SPI_EN) && !defined(ARDUINO_ARCH_SAMD) #define MY_SOFTSPI #define MY_SOFT_SPI_SCK_PIN (14) #define MY_SOFT_SPI_MISO_PIN (16) #define MY_SOFT_SPI_MOSI_PIN (15) #endif #ifdef MY_RADIO_RF24 #define MY_RF24_CE_PIN (5) #define MY_RF24_CS_PIN (6) #elif defined MY_RADIO_RFM69 #define MY_IS_RFM69HW #define MY_RFM69_NEW_DRIVER #define MY_RF69_SPI_CS (14) #else #error "only rfm24 or rf69 supported" #endif #ifdef BUILD_MQTT_GATEWAY #define MY_GATEWAY_MQTT_CLIENT #define MY_PORT MY_MQTT_PORT #define MY_CONTROLLER_IP_ADDRESS MY_MQTT_CONTROLLER_IP_ADDRESS #else #define MY_GATEWAY_W5100 #define MY_PORT MY_MYSGW_PORT #endif #ifdef USE_SIGNING #define MY_SIGNING_ATSHA204_PIN 17 #define MY_SIGNING_ATSHA204 //!< Hardware signing using ATSHA204A #define MY_SIGNING_REQUEST_SIGNATURES #endif void printIpAddress ( Stream &s, uint8_t a, uint8_t b, uint8_t c, uint8_t d ) { s.print ( a ); s.print ( "." ); s.print ( b ); s.print ( "." ); s.print ( c ); s.print ( "." ); s.print ( d ); } void printMacAddress ( Stream &s, uint8_t a, uint8_t b, uint8_t c, uint8_t d, uint8_t e, uint8_t f ) { s.print ( a, HEX ); s.print ( ":" ); s.print ( b, HEX ); s.print ( ":" ); s.print ( c, HEX ); s.print ( ":" ); s.print ( d, HEX ); s.print ( ":" ); s.print ( e, HEX ); s.print ( ":" ); s.print ( f, HEX ); } void printConfig ( Stream &s, char * lineBreak ) { s.print ( F ( "***********************************************" ) ); s.print ( lineBreak ); s.print ( SN ); s.print ( lineBreak ); s.print ( "Version " ); s.print ( SV ); s.print ( lineBreak ); s.print ( F("own mac address: ") ); printMacAddress ( s, MY_MAC_ADDRESS ); s.print ( lineBreak ); s.print ( F("own network address: ") ); printIpAddress ( s, MY_IP_ADDRESS ); s.print ( lineBreak ); #ifdef BUILD_MQTT_GATEWAY s.print ( F("Gateway type: mqtt" ) ); s.print ( lineBreak ); s.print ( F ( "mqtt controller address: " ) ); printIpAddress ( s, MY_CONTROLLER_IP_ADDRESS ); s.print ( lineBreak ); s.print ( F ( "mqtt controller port: " ) ); s.print ( MY_MQTT_PORT ); s.print ( lineBreak ); s.print ( F ( "mqtt client id: " ) ); s.print ( MY_MQTT_CLIENT_ID ); s.print ( lineBreak ); s.print ( F ( "mqtt publish prefix: " ) ); s.print ( MY_MQTT_PUBLISH_TOPIC_PREFIX ); s.print ( lineBreak ); s.print ( F ( "mqtt subscribe prefix: " ) ); s.print ( MY_MQTT_SUBSCRIBE_TOPIC_PREFIX ); s.print ( lineBreak ); #else s.print ( F ( "Gateway type: MysGW" ) ); s.print ( lineBreak ); s.print ( F ( "network port: " ) ); s.print ( MY_MYSGW_PORT ); s.print ( lineBreak ); #endif s.print ( F ( "Radio type: " ) ); #ifdef MY_RADIO_RF24 s.print ( F ( "NRF24" ) ); s.print ( lineBreak ); #elif defined MY_RADIO_RFM69 s.print ( F ( "RFM69" ) ); s.print ( lineBreak ); s.print ( F ( "network id: " ) ); s.print ( MY_RFM69_NETWORKID ); s.print ( lineBreak ); #else s.print ( F ( "bad radio defined" ) ); s.print ( lineBreak ); #endif s.print ( F ( "signing: " ) ); #ifdef USE_SIGNING s.print ( "yes" ); #else s.print ( "no" ); #endif s.print ( lineBreak ); } #include <Ethernet.h> #include <MySensors.h> #ifdef WEBFRONTEND byte mac[] = { MY_MAC_ADDRESS }; IPAddress ip ( 192,168,99,13 ); EthernetServer server ( 80 ); #endif void setup() { uint32_t enter = hwMillis(); while (hwMillis() - enter < (uint32_t)500); while(!MY_SERIALDEVICE); // For USB enabled devices, wait for USB enumeration before continuing printConfig( MY_SERIALDEVICE, "\n" ); #ifdef WEBFRONTEND Ethernet.begin(mac, ip); #endif } void presentation() { } void loop() { #ifdef WEBFRONTEND // listen for incoming clients EthernetClient client = server.available(); if (client) { Serial.println("new client"); // an http request ends with a blank line boolean currentLineIsBlank = true; while (client.connected()) { if (client.available()) { char c = client.read(); Serial.write(c); // if you've gotten to the end of the line (received a newline // character) and the line is blank, the http request has ended, // so you can send a reply if (c == '\n' && currentLineIsBlank) { // send a standard http response header client.println("HTTP/1.1 200 OK"); client.println("Content-Type: text/html"); client.println("Connection: close"); // the connection will be closed after completion of the response client.println(); client.println("<!DOCTYPE HTML>"); client.println("<html>"); printConfig ( client, "<br />" ); client.println("</html>"); break; } if (c == '\n') { // you're starting a new line currentLineIsBlank = true; } else if (c != '\r') { // you've gotten a character on the current line currentLineIsBlank = false; } } } // give the web browser time to receive the data delay(1); // close the connection: client.stop(); Serial.println("client disconnected"); } #endif }
It will deliver this website to the browser:
*********************************************** MySensors W5100 Gateway Version 0.2 own mac address: DE:AD:BA:BE:99:13 own network address: 192.168.99.13 Gateway type: mqtt mqtt controller address: 192.168.99.20 mqtt controller port: 1883 mqtt client id: mysgw1 mqtt publish prefix: mysgw1-out mqtt subscribe prefix: mysgw1-in Radio type: NRF24 signing: no
-
RE: Get STM32 blue pill to run
STM32F1, like SAMD, has no EEPROM as far as I know.
-
RE: Get STM32 blue pill to run
Hi,
I wasn't aware of a MY_DEBUGDEVICE, so I was courious and found this thread:
https://forum.mysensors.org/topic/9381/no-my_debugdevice-begin
It basically says you should add MY_DEBUGDEVICE.begin ( baud ) in preHwInit(), then wait until ready... -
RE: Message Payload type
@r-nox said in Message Payload type:
char buf2[MAX_PAYLOAD_SIZE+1];
strcpy ( buf, percent );
send(msgDimmer_to_5.setDestination(5).setSensor(0).set(buf2).setType(V_TEXT));You copied to buf, but sent buf2
-
RE: Message Payload type
@r-nox said in Message Payload type:
char percent;
Your data is of type char. Make it char *. Something like
char buf[MAX_PAYLOAD_SIZE+1]; strcpy ( buf, "30" ); send(msgDimmer_to_5.setDestination(5).setSensor(0).set(buf).setType(V_TEXT));
-
RE: config.h:39 : first defined here
Hi,
I just built the gateway on my Raspi 3B+ armbian without problem. Maybe an archlinux incompatibility?
Here's my log:pi@raspberrypi:~/MySensors $ ./configure [SECTION] Detecting target machine. [OK] machine detected: SoC=BCM2837, Type=rpi3, CPU=armv7l. [SECTION] Detecting SPI driver. [OK] SPI driver detected:BCM. [SECTION] Gateway configuration. [OK] Type: ethernet. [OK] Transport: rf24. [OK] Signing: Disabled. [OK] Encryption: Disabled. [OK] CPPFLAGS: -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_BCM -DLINUX_ARCH_RASPBERRYPI [OK] CXXFLAGS: -std=c++11 [SECTION] Detecting init system. [OK] Init system detected: systemd. [SECTION] Saving configuration. [OK] Saved. [SECTION] Cleaning previous builds. [OK] Finished. pi@raspberrypi:~/MySensors $ pi@raspberrypi:~/MySensors $ make gcc -MT build/hal/architecture/Linux/drivers/core/log.o -MMD -MP -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_BCM -DLINUX_ARCH_RASPBERRYPI -Ofast -g -Wall -Wextra -I. -I./core -I./hal/architecture/Linux/drivers/core -I./hal/architecture/Linux/drivers/BCM -c hal/architecture/Linux/drivers/core/log.c -o build/hal/architecture/Linux/drivers/core/log.o gcc -MT build/hal/architecture/Linux/drivers/core/config.o -MMD -MP -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_BCM -DLINUX_ARCH_RASPBERRYPI -Ofast -g -Wall -Wextra -I. -I./core -I./hal/architecture/Linux/drivers/core -I./hal/architecture/Linux/drivers/BCM -c hal/architecture/Linux/drivers/core/config.c -o build/hal/architecture/Linux/drivers/core/config.o g++ -MT build/hal/architecture/Linux/drivers/core/StdInOutStream.o -MMD -MP -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_BCM -DLINUX_ARCH_RASPBERRYPI -Ofast -g -Wall -Wextra -std=c++11 -I. -I./core -I./hal/architecture/Linux/drivers/core -I./hal/architecture/Linux/drivers/BCM -c hal/architecture/Linux/drivers/core/StdInOutStream.cpp -o build/hal/architecture/Linux/drivers/core/StdInOutStream.o g++ -MT build/hal/architecture/Linux/drivers/core/noniso.o -MMD -MP -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_BCM -DLINUX_ARCH_RASPBERRYPI -Ofast -g -Wall -Wextra -std=c++11 -I. -I./core -I./hal/architecture/Linux/drivers/core -I./hal/architecture/Linux/drivers/BCM -c hal/architecture/Linux/drivers/core/noniso.cpp -o build/hal/architecture/Linux/drivers/core/noniso.o g++ -MT build/hal/architecture/Linux/drivers/core/GPIO.o -MMD -MP -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_BCM -DLINUX_ARCH_RASPBERRYPI -Ofast -g -Wall -Wextra -std=c++11 -I. -I./core -I./hal/architecture/Linux/drivers/core -I./hal/architecture/Linux/drivers/BCM -c hal/architecture/Linux/drivers/core/GPIO.cpp -o build/hal/architecture/Linux/drivers/core/GPIO.o hal/architecture/Linux/drivers/core/GPIO.cpp: In constructor ‘GPIOClass::GPIOClass()’: hal/architecture/Linux/drivers/core/GPIO.cpp:53:33: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 48 [-Wformat-truncation=] snprintf(file, sizeof(file), "/sys/class/gpio/%s/base", de->d_name); ^~~~~~~~~~~~~~~~~~~~~~~~~ hal/architecture/Linux/drivers/core/GPIO.cpp:53:12: note: ‘snprintf’ output between 22 and 277 bytes into a destination of size 64 snprintf(file, sizeof(file), "/sys/class/gpio/%s/base", de->d_name); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ hal/architecture/Linux/drivers/core/GPIO.cpp:62:33: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 48 [-Wformat-truncation=] snprintf(file, sizeof(file), "/sys/class/gpio/%s/ngpio", de->d_name); ^~~~~~~~~~~~~~~~~~~~~~~~~~ hal/architecture/Linux/drivers/core/GPIO.cpp:62:12: note: ‘snprintf’ output between 23 and 278 bytes into a destination of size 64 snprintf(file, sizeof(file), "/sys/class/gpio/%s/ngpio", de->d_name); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -MT build/hal/architecture/Linux/drivers/core/SPIDEV.o -MMD -MP -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_BCM -DLINUX_ARCH_RASPBERRYPI -Ofast -g -Wall -Wextra -std=c++11 -I. -I./core -I./hal/architecture/Linux/drivers/core -I./hal/architecture/Linux/drivers/BCM -c hal/architecture/Linux/drivers/core/SPIDEV.cpp -o build/hal/architecture/Linux/drivers/core/SPIDEV.o g++ -MT build/hal/architecture/Linux/drivers/core/Print.o -MMD -MP -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_BCM -DLINUX_ARCH_RASPBERRYPI -Ofast -g -Wall -Wextra -std=c++11 -I. -I./core -I./hal/architecture/Linux/drivers/core -I./hal/architecture/Linux/drivers/BCM -c hal/architecture/Linux/drivers/core/Print.cpp -o build/hal/architecture/Linux/drivers/core/Print.o g++ -MT build/hal/architecture/Linux/drivers/core/EthernetClient.o -MMD -MP -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_BCM -DLINUX_ARCH_RASPBERRYPI -Ofast -g -Wall -Wextra -std=c++11 -I. -I./core -I./hal/architecture/Linux/drivers/core -I./hal/architecture/Linux/drivers/BCM -c hal/architecture/Linux/drivers/core/EthernetClient.cpp -o build/hal/architecture/Linux/drivers/core/EthernetClient.o g++ -MT build/hal/architecture/Linux/drivers/core/SerialPort.o -MMD -MP -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_BCM -DLINUX_ARCH_RASPBERRYPI -Ofast -g -Wall -Wextra -std=c++11 -I. -I./core -I./hal/architecture/Linux/drivers/core -I./hal/architecture/Linux/drivers/BCM -c hal/architecture/Linux/drivers/core/SerialPort.cpp -o build/hal/architecture/Linux/drivers/core/SerialPort.o g++ -MT build/hal/architecture/Linux/drivers/core/Stream.o -MMD -MP -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_BCM -DLINUX_ARCH_RASPBERRYPI -Ofast -g -Wall -Wextra -std=c++11 -I. -I./core -I./hal/architecture/Linux/drivers/core -I./hal/architecture/Linux/drivers/BCM -c hal/architecture/Linux/drivers/core/Stream.cpp -o build/hal/architecture/Linux/drivers/core/Stream.o g++ -MT build/hal/architecture/Linux/drivers/core/IPAddress.o -MMD -MP -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_BCM -DLINUX_ARCH_RASPBERRYPI -Ofast -g -Wall -Wextra -std=c++11 -I. -I./core -I./hal/architecture/Linux/drivers/core -I./hal/architecture/Linux/drivers/BCM -c hal/architecture/Linux/drivers/core/IPAddress.cpp -o build/hal/architecture/Linux/drivers/core/IPAddress.o g++ -MT build/hal/architecture/Linux/drivers/core/compatibility.o -MMD -MP -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_BCM -DLINUX_ARCH_RASPBERRYPI -Ofast -g -Wall -Wextra -std=c++11 -I. -I./core -I./hal/architecture/Linux/drivers/core -I./hal/architecture/Linux/drivers/BCM -c hal/architecture/Linux/drivers/core/compatibility.cpp -o build/hal/architecture/Linux/drivers/core/compatibility.o g++ -MT build/hal/architecture/Linux/drivers/core/interrupt.o -MMD -MP -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_BCM -DLINUX_ARCH_RASPBERRYPI -Ofast -g -Wall -Wextra -std=c++11 -I. -I./core -I./hal/architecture/Linux/drivers/core -I./hal/architecture/Linux/drivers/BCM -c hal/architecture/Linux/drivers/core/interrupt.cpp -o build/hal/architecture/Linux/drivers/core/interrupt.o g++ -MT build/hal/architecture/Linux/drivers/core/SoftEeprom.o -MMD -MP -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_BCM -DLINUX_ARCH_RASPBERRYPI -Ofast -g -Wall -Wextra -std=c++11 -I. -I./core -I./hal/architecture/Linux/drivers/core -I./hal/architecture/Linux/drivers/BCM -c hal/architecture/Linux/drivers/core/SoftEeprom.cpp -o build/hal/architecture/Linux/drivers/core/SoftEeprom.o g++ -MT build/hal/architecture/Linux/drivers/core/EthernetServer.o -MMD -MP -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_BCM -DLINUX_ARCH_RASPBERRYPI -Ofast -g -Wall -Wextra -std=c++11 -I. -I./core -I./hal/architecture/Linux/drivers/core -I./hal/architecture/Linux/drivers/BCM -c hal/architecture/Linux/drivers/core/EthernetServer.cpp -o build/hal/architecture/Linux/drivers/core/EthernetServer.o g++ -MT build/examples_linux/mysgw.o -MMD -MP -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_BCM -DLINUX_ARCH_RASPBERRYPI -Ofast -g -Wall -Wextra -std=c++11 -I. -I./core -I./hal/architecture/Linux/drivers/core -I./hal/architecture/Linux/drivers/BCM -c examples_linux/mysgw.cpp -o build/examples_linux/mysgw.o In file included from ./MySensors.h:431, from examples_linux/mysgw.cpp:82: In member function ‘char* MyMessage::getString(char*) const’, inlined from ‘bool transportSendWrite(uint8_t, MyMessage&)’ at ./core/MyTransport.cpp:987:2, inlined from ‘bool transportRouteMessage(MyMessage&)’ at ./core/MyTransport.cpp:560:40, inlined from ‘void stUplinkTransition()’ at ./core/MyTransport.cpp:252:29: ./core/MyMessage.cpp:284:17: warning: ‘char* strncpy(char*, const char*, size_t)’ output may be truncated copying between 0 and 25 bytes from a string of length 25 [-Wstringop-truncation] (void)strncpy(buffer, this->data, this->getLength()); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function ‘char* MyMessage::getString(char*) const’, inlined from ‘char* protocolMyMessage2Serial(MyMessage&)’ at ./core/MyProtocol.cpp:93:8: ./core/MyMessage.cpp:284:17: warning: ‘char* strncpy(char*, const char*, size_t)’ output may be truncated copying between 0 and 25 bytes from a string of length 25 [-Wstringop-truncation] (void)strncpy(buffer, this->data, this->getLength()); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function ‘char* MyMessage::getString(char*) const’, inlined from ‘char* protocolMyMessage2Serial(MyMessage&)’ at ./core/MyProtocol.cpp:93:8, inlined from ‘bool gatewayTransportSend(MyMessage&)’ at ./core/MyGatewayTransportEthernet.cpp:251:51: ./core/MyMessage.cpp:284:17: warning: ‘char* strncpy(char*, const char*, size_t)’ output may be truncated copying between 0 and 25 bytes from a string of length 25 [-Wstringop-truncation] (void)strncpy(buffer, this->data, this->getLength()); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./core/MyMessage.cpp: In member function ‘char* MyMessage::getString(char*) const’: ./core/MyMessage.cpp:284:17: warning: ‘char* strncpy(char*, const char*, size_t)’ output may be truncated copying between 0 and 25 bytes from a string of length 25 [-Wstringop-truncation] (void)strncpy(buffer, this->data, this->getLength()); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘MyMessage& MyMessage::set(const char*)’, inlined from ‘void stParentTransition()’ at ./core/MyTransport.cpp:161:29: ./core/MyMessage.cpp:391:15: warning: ‘char* strncpy(char*, const char*, size_t)’ destination unchanged after copying no bytes [-Wstringop-truncation] (void)strncpy(this->data, value, this->getLength()); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘MyMessage& MyMessage::set(const char*)’, inlined from ‘void stReadyUpdate()’ at ./core/MyTransport.cpp:312:30: ./core/MyMessage.cpp:391:15: warning: ‘char* strncpy(char*, const char*, size_t)’ destination unchanged after copying no bytes [-Wstringop-truncation] (void)strncpy(this->data, value, this->getLength()); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘MyMessage& MyMessage::set(const char*)’, inlined from ‘void stIDTransition()’ at ./core/MyTransport.cpp:218:30, inlined from ‘void stIDTransition()’ at ./core/MyTransport.cpp:202:6: ./core/MyMessage.cpp:391:15: warning: ‘char* strncpy(char*, const char*, size_t)’ destination unchanged after copying no bytes [-Wstringop-truncation] (void)strncpy(this->data, value, this->getLength()); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function ‘MyMessage& MyMessage::set(const char*)’, inlined from ‘bool present(uint8_t, mysensors_sensor_t, const char*, bool)’ at ./core/MySensorsCore.cpp:379:19, inlined from ‘void presentNode()’ at ./core/MySensorsCore.cpp:233:15: ./core/MyMessage.cpp:391:15: warning: ‘char* strncpy(char*, const char*, size_t)’ output truncated before terminating nul copying 5 bytes from a string of the same length [-Wstringop-truncation] (void)strncpy(this->data, value, this->getLength()); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘MyMessage& MyMessage::set(const char*)’, inlined from ‘void prepareSigningPresentation(MyMessage&, uint8_t)’ at ./core/MySigning.cpp:389:90, inlined from ‘bool signerInternalProcessPresentation(MyMessage&)’ at ./core/MySigning.cpp:488:28, inlined from ‘bool signerProcessInternal(MyMessage&)’ at ./core/MySigning.cpp:176:42, inlined from ‘bool signerProcessInternal(MyMessage&)’ at ./core/MySigning.cpp:171:6: ./core/MyMessage.cpp:391:15: warning: ‘char* strncpy(char*, const char*, size_t)’ destination unchanged after copying no bytes [-Wstringop-truncation] (void)strncpy(this->data, value, this->getLength()); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘MyMessage& MyMessage::set(const char*)’, inlined from ‘bool request(uint8_t, uint8_t, uint8_t)’ at ./core/MySensorsCore.cpp:429:19: ./core/MyMessage.cpp:391:15: warning: ‘char* strncpy(char*, const char*, size_t)’ destination unchanged after copying no bytes [-Wstringop-truncation] (void)strncpy(this->data, value, this->getLength()); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘MyMessage& MyMessage::set(const char*)’, inlined from ‘bool requestTime(bool)’ at ./core/MySensorsCore.cpp:434:19: ./core/MyMessage.cpp:391:15: warning: ‘char* strncpy(char*, const char*, size_t)’ destination unchanged after copying no bytes [-Wstringop-truncation] (void)strncpy(this->data, value, this->getLength()); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function ‘MyMessage& MyMessage::set(const char*)’, inlined from ‘bool _processInternalCoreMessage()’ at ./core/MySensorsCore.cpp:482:21: ./core/MyMessage.cpp:391:15: warning: ‘char* strncpy(char*, const char*, size_t)’ output truncated before terminating nul copying 2 bytes from a string of the same length [-Wstringop-truncation] (void)strncpy(this->data, value, this->getLength()); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘MyMessage& MyMessage::set(const char*)’, inlined from ‘void prepareSigningPresentation(MyMessage&, uint8_t)’ at ./core/MySigning.cpp:389:90, inlined from ‘bool signerInternalProcessPresentation(MyMessage&)’ at ./core/MySigning.cpp:488:28, inlined from ‘bool signerProcessInternal(MyMessage&)’ at ./core/MySigning.cpp:176:42, inlined from ‘bool signerProcessInternal(MyMessage&)’ at ./core/MySigning.cpp:171:6, inlined from ‘void transportProcessMessage()’ at ./core/MyTransport.cpp:718:30: ./core/MyMessage.cpp:391:15: warning: ‘char* strncpy(char*, const char*, size_t)’ destination unchanged after copying no bytes [-Wstringop-truncation] (void)strncpy(this->data, value, this->getLength()); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function ‘MyMessage& MyMessage::set(const char*)’, inlined from ‘bool gatewayTransportAvailable()’ at ./core/MyGatewayTransportEthernet.cpp:433:25: ./core/MyMessage.cpp:391:15: warning: ‘char* strncpy(char*, const char*, size_t)’ output truncated before terminating nul copying 25 bytes from a string of the same length [-Wstringop-truncation] (void)strncpy(this->data, value, this->getLength()); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function ‘MyMessage& MyMessage::set(const char*)’, inlined from ‘bool present(uint8_t, mysensors_sensor_t, const char*, bool)’ at ./core/MySensorsCore.cpp:379:19, inlined from ‘void presentNode()’ at ./core/MySensorsCore.cpp:233:15, inlined from ‘bool gatewayTransportAvailable()’ at ./core/MyGatewayTransportEthernet.cpp:435:16: ./core/MyMessage.cpp:391:15: warning: ‘char* strncpy(char*, const char*, size_t)’ output truncated before terminating nul copying 5 bytes from a string of the same length [-Wstringop-truncation] (void)strncpy(this->data, value, this->getLength()); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function ‘MyMessage& MyMessage::set(const char*)’, inlined from ‘void gatewayTransportProcess()’ at ./core/MyGatewayTransport.cpp:48:26, inlined from ‘void gatewayTransportProcess()’ at ./core/MyGatewayTransport.cpp:28:13, inlined from ‘void _process()’ at ./core/MySensorsCore.cpp:72:25: ./core/MyMessage.cpp:391:15: warning: ‘char* strncpy(char*, const char*, size_t)’ output truncated before terminating nul copying 5 bytes from a string of the same length [-Wstringop-truncation] (void)strncpy(this->data, value, this->getLength()); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘MyMessage& MyMessage::set(const char*)’, inlined from ‘void prepareSigningPresentation(MyMessage&, uint8_t)’ at ./core/MySigning.cpp:389:90, inlined from ‘void signerPresentation(MyMessage&, uint8_t)’ at ./core/MySigning.cpp:143:28: ./core/MyMessage.cpp:391:15: warning: ‘char* strncpy(char*, const char*, size_t)’ destination unchanged after copying no bytes [-Wstringop-truncation] (void)strncpy(this->data, value, this->getLength()); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function ‘MyMessage& MyMessage::set(const char*)’, inlined from ‘void gatewayTransportProcess()’ at ./core/MyGatewayTransport.cpp:48:26, inlined from ‘void gatewayTransportProcess()’ at ./core/MyGatewayTransport.cpp:28:13, inlined from ‘void _process()’ at ./core/MySensorsCore.cpp:72:25, inlined from ‘void wait(uint32_t)’ at ./core/MySensorsCore.cpp:566:11, inlined from ‘void transportReportRoutingTable()’ at ./core/MyTransport.cpp:1077:8: ./core/MyMessage.cpp:391:15: warning: ‘char* strncpy(char*, const char*, size_t)’ output truncated before terminating nul copying 5 bytes from a string of the same length [-Wstringop-truncation] (void)strncpy(this->data, value, this->getLength()); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -MT build/hal/architecture/Linux/drivers/BCM/bcm2835.o -MMD -MP -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_BCM -DLINUX_ARCH_RASPBERRYPI -Ofast -g -Wall -Wextra -I. -I./core -I./hal/architecture/Linux/drivers/core -I./hal/architecture/Linux/drivers/BCM -c hal/architecture/Linux/drivers/BCM/bcm2835.c -o build/hal/architecture/Linux/drivers/BCM/bcm2835.o g++ -MT build/hal/architecture/Linux/drivers/BCM/BCM.o -MMD -MP -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_BCM -DLINUX_ARCH_RASPBERRYPI -Ofast -g -Wall -Wextra -std=c++11 -I. -I./core -I./hal/architecture/Linux/drivers/core -I./hal/architecture/Linux/drivers/BCM -c hal/architecture/Linux/drivers/BCM/BCM.cpp -o build/hal/architecture/Linux/drivers/BCM/BCM.o g++ -MT build/hal/architecture/Linux/drivers/BCM/SPIBCM.o -MMD -MP -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_BCM -DLINUX_ARCH_RASPBERRYPI -Ofast -g -Wall -Wextra -std=c++11 -I. -I./core -I./hal/architecture/Linux/drivers/core -I./hal/architecture/Linux/drivers/BCM -c hal/architecture/Linux/drivers/BCM/SPIBCM.cpp -o build/hal/architecture/Linux/drivers/BCM/SPIBCM.o g++ -MT build/hal/architecture/Linux/drivers/BCM/Wire.o -MMD -MP -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_BCM -DLINUX_ARCH_RASPBERRYPI -Ofast -g -Wall -Wextra -std=c++11 -I. -I./core -I./hal/architecture/Linux/drivers/core -I./hal/architecture/Linux/drivers/BCM -c hal/architecture/Linux/drivers/BCM/Wire.cpp -o build/hal/architecture/Linux/drivers/BCM/Wire.o g++ -MT build/hal/architecture/Linux/drivers/BCM/RPi.o -MMD -MP -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_BCM -DLINUX_ARCH_RASPBERRYPI -Ofast -g -Wall -Wextra -std=c++11 -I. -I./core -I./hal/architecture/Linux/drivers/core -I./hal/architecture/Linux/drivers/BCM -c hal/architecture/Linux/drivers/BCM/RPi.cpp -o build/hal/architecture/Linux/drivers/BCM/RPi.o g++ -pthread -o bin/mysgw build/hal/architecture/Linux/drivers/core/log.o build/hal/architecture/Linux/drivers/core/config.o build/hal/architecture/Linux/drivers/core/StdInOutStream.o build/hal/architecture/Linux/drivers/core/noniso.o build/hal/architecture/Linux/drivers/core/GPIO.o build/hal/architecture/Linux/drivers/core/SPIDEV.o build/hal/architecture/Linux/drivers/core/Print.o build/hal/architecture/Linux/drivers/core/EthernetClient.o build/hal/architecture/Linux/drivers/core/SerialPort.o build/hal/architecture/Linux/drivers/core/Stream.o build/hal/architecture/Linux/drivers/core/IPAddress.o build/hal/architecture/Linux/drivers/core/compatibility.o build/hal/architecture/Linux/drivers/core/interrupt.o build/hal/architecture/Linux/drivers/core/SoftEeprom.o build/hal/architecture/Linux/drivers/core/EthernetServer.o build/examples_linux/mysgw.o build/hal/architecture/Linux/drivers/BCM/bcm2835.o build/hal/architecture/Linux/drivers/BCM/BCM.o build/hal/architecture/Linux/drivers/BCM/SPIBCM.o build/hal/architecture/Linux/drivers/BCM/Wire.o build/hal/architecture/Linux/drivers/BCM/RPi.o pi@raspberrypi:~/MySensors $
-
RE: ECHO problems when sending with no payload
I think the issue found it's way into the library here:
https://github.com/mysensors/MySensors/commit/74e566f5602261ba58e9a7fb06357810ae793b0b#diff-75e571c3ad1b2847e816b36b077fb7306d69ac8386b59d600a265f12bee1f8baold code:
// payload if (command == C_STREAM) { uint8_t bvalue[MAX_PAYLOAD_SIZE]; uint8_t blen = 0;
new code:
// payload if (str == NULL) { // no payload, set default value message.set((uint8_t)0); } else if (command == C_STREAM) { // stream payload
if there's no payload, the library assumes uint8_t with value 0
-
RE: ECHO problems when sending with no payload
the library differs the way it sends empty V_TEXT messages between 2.2.0 and 2.3.2.
2.2.0 10:25:06.047 -> 73639 TSF:MSG:SEND,0-0-70-70,s=0,c=1,t=47,pt=0,l=0,sg=0,ft=0,st=OK:
note: length = 0, payload type = 0
2.3.2
10:30:45.718 -> 22550 TSF:MSG:SEND,0-0-70-70,s=0,c=1,t=47,pt=1,l=1,sg=0,ft=0,st=OK:0
note: length = 1, payload type = 1
-
RE: Pro mini: Did not receive a node id from controller.
@Alberto77 said in Pro mini: Did not receive a node id from controller.:
@frits: if the MQTT GW do not support the dynamic ID assignement, then what happened to my other sensors (those based on the Nano) They got the Node_IDs from the GW. All the sensors are on the same GW.
The gateway doesn't issue NODE_IDs. The controller does, i.e. OpenHAB or Home Assistant (but not for MQTT connections).
The NODE_ID will survive flashing (as long as you don't erase EEPROM). Have you used another Gateway before, say SerialGateway? This would explain why you have valid NODE_IDs on some nodes. -
RE: ECHO problems when sending with no payload
sorry, ctr-c didn't work
Node:__ __ ____ | \/ |_ _/ ___| ___ _ __ ___ ___ _ __ ___ | |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __| | | | | |_| |___| | __/ | | \__ \ _ | | \__ \ |_| |_|\__, |____/ \___|_| |_|___/\___/|_| |___/ |___/ 2.2.0 16 MCO:BGN:INIT NODE,CP=RNNNA---,VER=2.2.0 26 MCO:BGN:BFR *********************************************** Hello MySensors 328P Version 1.3 Radio type: NRF24 signing: no 32 TSM:INIT 40 TSF:WUR:MS=0 47 TSM:INIT:TSP OK 49 TSM:INIT:STATID=123 51 TSF:SID:OK,ID=123 53 TSM:FPAR 90 TSF:MSG:SEND,123-123-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 700 TSF:MSG:READ,0-0-123,s=255,c=3,t=8,pt=1,l=1,sg=0:0 706 TSF:MSG:FPAR OK,ID=0,D=1 2099 TSM:FPAR:OK 2099 TSM:ID 2101 TSM:ID:OK 2103 TSM:UPL 2107 TSF:MSG:SEND,123-123-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1 2117 TSF:MSG:READ,0-0-123,s=255,c=3,t=25,pt=1,l=1,sg=0:1 2123 TSF:MSG:PONG RECV,HP=1 2127 TSM:UPL:OK 2129 TSM:READY:ID=123,PAR=0,DIS=1 2134 TSF:MSG:SEND,123-123-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100 2142 TSF:MSG:READ,0-0-123,s=255,c=3,t=15,pt=6,l=2,sg=0:0100 2152 TSF:MSG:SEND,123-123-0-0,s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=OK:2.2.0 2160 TSF:MSG:SEND,123-123-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0 2185 TSF:MSG:READ,0-0-123,s=255,c=3,t=6,pt=0,l=1,sg=0:M 2193 TSF:MSG:SEND,123-123-0-0,s=255,c=3,t=11,pt=0,l=20,sg=0,ft=0,st=OK:Hello MySensors 328P 2205 TSF:MSG:SEND,123-123-0-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=OK:1.3 2215 TSF:MSG:SEND,123-123-0-0,s=0,c=0,t=36,pt=0,l=6,sg=0,ft=0,st=OK:system 2226 TSF:MSG:SEND,123-123-0-0,s=1,c=0,t=36,pt=0,l=9,sg=0,ft=0,st=OK:timestamp 2236 TSF:MSG:SEND,123-123-0-0,s=2,c=0,t=3,pt=0,l=3,sg=0,ft=0,st=OK:led 2244 MCO:REG:REQ 2248 TSF:MSG:SEND,123-123-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2 2256 TSF:MSG:READ,0-0-123,s=255,c=3,t=27,pt=1,l=1,sg=0:1 2263 MCO:PIM:NODE REG=1 2265 MCO:BGN:STP 2267 MCO:BGN:INIT OK,TSP=1 49412 TSF:MSG:READ,0-0-123,s=1,c=1,t=47,pt=0,l=5,sg=0:hello 49420 TSF:MSG:ACK REQ 49424 TSF:MSG:SEND,123-123-0-0,s=1,c=1,t=47,pt=0,l=5,sg=0,ft=0,st=OK:hello h received message for sensor 1, type 47, value hello 56838 TSF:MSG:READ,0-0-123,s=1,c=1,t=47,pt=0,l=18,sg=0:next message empty 56846 TSF:MSG:ACK REQ 56850 TSF:MSG:SEND,123-123-0-0,s=1,c=1,t=47,pt=0,l=18,sg=0,ft=0,st=OK:next message empty n received message for sensor 1, type 47, value next message empty 60434 TSF:MSG:READ,0-0-123,s=1,c=1,t=47,pt=0,l=0,sg=0: 60440 TSF:MSG:ACK REQ 60444 TSF:MSG:SEND,123-123-0-0,s=1,c=1,t=47,pt=0,l=0,sg=0,ft=0,st=OK:
-
RE: ECHO problems when sending with no payload
here's the requests with 2.2.0.
Gateway:
0 MCO:BGN:INIT GW,CP=RNNGA---,VER=2.2.0 4 TSM:INIT 4 TSF:WUR:MS=0 12 TSM:INIT:TSP OK 14 TSM:INIT:GW MODE 16 TSM:READY:ID=0,PAR=0,DIS=0 18 MCO:REG:NOT NEEDED 583 GWT:TIN:IP=192.168.99.13 1587 MCO:BGN:STP *********************************************** MySensors Ethernet Gateway Version 0.1 own mac address: DE:AD:BA:BE:99:13 own network address: 192.168.99.13 Gateway type: MysGW network port: 5003 Radio type: NRF24 signing: no 2105 MCO:BGN:INIT OK,TSP=1 36448 TSF:MSG:READ,123-123-255,s=255,c=3,t=7,pt=0,l=0,sg=0: 36454 TSF:MSG:BC 36456 TSF:MSG:FPAR REQ,ID=123 36460 TSF:PNG:SEND,TO=0 36462 TSF:CKU:OK 36464 TSF:MSG:GWL OK 37095 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0 38502 TSF:MSG:READ,123-123-0,s=255,c=3,t=24,pt=1,l=1,sg=0:1 38510 TSF:MSG:PINGED,ID=123,HP=1 38514 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=OK:1 38531 TSF:MSG:READ,123-123-0,s=255,c=3,t=15,pt=6,l=2,sg=0:0100 38539 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100 38549 TSF:MSG:READ,123-123-0,s=255,c=0,t=17,pt=0,l=5,sg=0:2.2.0 38557 TSF:MSG:READ,123-123-0,s=255,c=3,t=6,pt=1,l=1,sg=0:0 38567 GWT:TSA:ETH OK 38576 GWT:RFC:MSG=123;255;3;0;6;M 38582 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=6,pt=0,l=1,sg=0,ft=0,st=OK:M 38590 TSF:MSG:READ,123-123-0,s=255,c=3,t=11,pt=0,l=20,sg=0:Hello MySensors 328P 38602 TSF:MSG:READ,123-123-0,s=255,c=3,t=12,pt=0,l=3,sg=0:1.3 38612 TSF:MSG:READ,123-123-0,s=0,c=0,t=36,pt=0,l=6,sg=0:system 38623 TSF:MSG:READ,123-123-0,s=1,c=0,t=36,pt=0,l=9,sg=0:timestamp 38633 TSF:MSG:READ,123-123-0,s=2,c=0,t=3,pt=0,l=3,sg=0:led 38645 TSF:MSG:READ,123-123-0,s=255,c=3,t=26,pt=1,l=1,sg=0:2 38653 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=27,pt=1,l=1,sg=0,ft=0,st=OK:1 85934 GWT:RFC:MSG=123;1;1;1;47;hello 85940 TSF:MSG:SEND,0-0-123-123,s=1,c=1,t=47,pt=0,l=5,sg=0,ft=0,st=OK:hello 85950 TSF:MSG:READ,123-123-0,s=1,c=1,t=47,pt=0,l=5,sg=0:hello 85958 TSF:MSG:ACK 93378 GWT:RFC:MSG=123;1;1;1;47;next message empty 93386 TSF:MSG:SEND,0-0-123-123,s=1,c=1,t=47,pt=0,l=18,sg=0,ft=0,st=OK:next messa ge empty 93399 TSF:MSG:READ,123-123-0,s=1,c=1,t=47,pt=0,l=18,sg=0:next message empty 93407 TSF:MSG:ACK 96987 GWT:RFC:MSG=123;1;1;1;47; 96993 TSF:MSG:SEND,0-0-123-123,s=1,c=1,t=47,pt=0,l=0,sg=0,ft=0,st=OK: 97001 TSF:MSG:READ,123-123-0,s=1,c=1,t=47,pt=0,l=0,sg=0: 97007 TSF:MSG:ACK
Node:
0 MCO:BGN:INIT GW,CP=RNNGA---,VER=2.2.0 4 TSM:INIT 4 TSF:WUR:MS=0 12 TSM:INIT:TSP OK 14 TSM:INIT:GW MODE 16 TSM:READY:ID=0,PAR=0,DIS=0 18 MCO:REG:NOT NEEDED 583 GWT:TIN:IP=192.168.99.13 1587 MCO:BGN:STP *********************************************** MySensors Ethernet Gateway Version 0.1 own mac address: DE:AD:BA:BE:99:13 own network address: 192.168.99.13 Gateway type: MysGW network port: 5003 Radio type: NRF24 signing: no 2105 MCO:BGN:INIT OK,TSP=1 36448 TSF:MSG:READ,123-123-255,s=255,c=3,t=7,pt=0,l=0,sg=0: 36454 TSF:MSG:BC 36456 TSF:MSG:FPAR REQ,ID=123 36460 TSF:PNG:SEND,TO=0 36462 TSF:CKU:OK 36464 TSF:MSG:GWL OK 37095 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0 38502 TSF:MSG:READ,123-123-0,s=255,c=3,t=24,pt=1,l=1,sg=0:1 38510 TSF:MSG:PINGED,ID=123,HP=1 38514 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=OK:1 38531 TSF:MSG:READ,123-123-0,s=255,c=3,t=15,pt=6,l=2,sg=0:0100 38539 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100 38549 TSF:MSG:READ,123-123-0,s=255,c=0,t=17,pt=0,l=5,sg=0:2.2.0 38557 TSF:MSG:READ,123-123-0,s=255,c=3,t=6,pt=1,l=1,sg=0:0 38567 GWT:TSA:ETH OK 38576 GWT:RFC:MSG=123;255;3;0;6;M 38582 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=6,pt=0,l=1,sg=0,ft=0,st=OK:M 38590 TSF:MSG:READ,123-123-0,s=255,c=3,t=11,pt=0,l=20,sg=0:Hello MySensors 328P 38602 TSF:MSG:READ,123-123-0,s=255,c=3,t=12,pt=0,l=3,sg=0:1.3 38612 TSF:MSG:READ,123-123-0,s=0,c=0,t=36,pt=0,l=6,sg=0:system 38623 TSF:MSG:READ,123-123-0,s=1,c=0,t=36,pt=0,l=9,sg=0:timestamp 38633 TSF:MSG:READ,123-123-0,s=2,c=0,t=3,pt=0,l=3,sg=0:led 38645 TSF:MSG:READ,123-123-0,s=255,c=3,t=26,pt=1,l=1,sg=0:2 38653 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=27,pt=1,l=1,sg=0,ft=0,st=OK:1 85934 GWT:RFC:MSG=123;1;1;1;47;hello 85940 TSF:MSG:SEND,0-0-123-123,s=1,c=1,t=47,pt=0,l=5,sg=0,ft=0,st=OK:hello 85950 TSF:MSG:READ,123-123-0,s=1,c=1,t=47,pt=0,l=5,sg=0:hello 85958 TSF:MSG:ACK 93378 GWT:RFC:MSG=123;1;1;1;47;next message empty 93386 TSF:MSG:SEND,0-0-123-123,s=1,c=1,t=47,pt=0,l=18,sg=0,ft=0,st=OK:next messa ge empty 93399 TSF:MSG:READ,123-123-0,s=1,c=1,t=47,pt=0,l=18,sg=0:next message empty 93407 TSF:MSG:ACK 96987 GWT:RFC:MSG=123;1;1;1;47; 96993 TSF:MSG:SEND,0-0-123-123,s=1,c=1,t=47,pt=0,l=0,sg=0,ft=0,st=OK: 97001 TSF:MSG:READ,123-123-0,s=1,c=1,t=47,pt=0,l=0,sg=0: 97007 TSF:MSG:ACK
-
RE: ECHO problems when sending with no payload
Hi,
yes, it's 2.3.2:
0 MCO:BGN:INIT GW,CP=RNNGAA--,FQ=8,REL=255,VER=2.3.2 38 TSM:INIT 40 TSF:WUR:MS=0 47 TSM:INIT:TSP OK 49 TSM:INIT:GW MODE 51 TSM:READY:ID=0,PAR=0,DIS=0 55 MCO:REG:NOT NEEDED 618 GWT:TIN:IP=192.168.99.13 1622 MCO:BGN:STP *********************************************** MySensors Ethernet Gateway Version 0.1 own mac address: DE:AD:BA:BE:99:13 own network address: 192.168.99.13 Gateway type: MysGW network port: 5003 Radio type: NRF24 signing: yes 2140 MCO:BGN:INIT OK,TSP=1 2148 TSM:READY:NWD REQ 2154 ?TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:
-
RE: Pro mini: Did not receive a node id from controller.
... and as no controller supports dynamic ID assignment through MQTT (see https://www.mysensors.org/build/mqtt_gateway), your only option is to set static NODE_IDs.
-
RE: Integrating NRF24 to Raspberry Pi
you say "When I switch it, it will bypass the password and send the password to all of the nodes, and nodes will save and use that password after that point."
So everybody (who knows the design) could send new passwords to your nodes, couldn't they?Anyway, I don't think it is possible to modify MY_SIGNING_SIMPLE_PASSWD during runtime, because it is part of the program and not stored in EEPROM, have a look into MySigningAtsha204Soft.cpp:
#ifdef MY_SIGNING_SIMPLE_PASSWD if (strnlen(MY_SIGNING_SIMPLE_PASSWD, 32) < 8) { SIGN_DEBUG(PSTR("!SGN:BND:PWD<8\n")); //Password is too short to be acceptable _signing_init_ok = false; } else { (void)memset((void *)_signing_hmac_key, 0x00, sizeof(_signing_hmac_key)); (void)memcpy((void *)_signing_hmac_key, MY_SIGNING_SIMPLE_PASSWD, strnlen(MY_SIGNING_SIMPLE_PASSWD, 32));
-
RE: ECHO problems when sending with no payload
Hi,
sending an empty V_TEXT with "ACK" = "YES":
MySensors Ethernet Gateway
1896935 GWT:RFC:MSG=123;1;1;1;47; 1896941 TSF:MSG:SEND,0-0-123-123,s=1,c=3,t=16,pt=0,l=0,sg=1,ft=0,st=OK: 1897074 TSF:MSG:READ,123-123-0,s=255,c=3,t=17,pt=6,l=25,sg=1:<NONCE> 1897195 TSF:MSG:SEND,0-0-123-123,s=1,c=1,t=47,pt=1,l=1,sg=1,ft=0,st=OK:0 1897365 TSF:MSG:READ,123-123-0,s=1,c=1,t=47,pt=1,l=1,sg=0:0 1897371 TSF:MSG:ECHO
MySensors Node
812210 TSF:MSG:READ,0-0-123,s=1,c=3,t=16,pt=0,l=0,sg=1: 812216 SGN:SKP:MSG CMD=3,TYPE=16 812292 SGN:SKP:MSG CMD=3,TYPE=17 812300 TSF:MSG:SEND,123-123-0-0,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE> 812308 SGN:NCE:XMT,TO=123 812445 TSF:MSG:READ,0-0-123,s=1,c=1,t=47,pt=1,l=1,sg=1:0 812451 SGN:BND:NONCE=xxxxxx 812566 SGN:BND:HMAC=xxxxx 812574 SGN:VER:OK 812576 TSF:MSG:ECHO REQ 812580 SGN:SKP:ECHO CMD=1,TYPE=47 812584 TSF:MSG:SEND,123-123-0-0,s=1,c=1,t=47,pt=1,l=1,sg=0,ft=0,st=OK:0
-
RE: Integrating NRF24 to Raspberry Pi
@huseyinozsut said in Integrating NRF24 to Raspberry Pi:
This means, if my Raspberry is closed, I will not be able to control the lights with switches. There is a possibility that I can't modify the sketch to make the switches work without wireless connection (when I switch on, the lights will turn on, even if the wireless is not connected)
When booting, the node will try to connect to the gateway. If there's no gateway, the node will try forever, except you configure
#define MY_TRANSPORT_WAIT_READY_MS 1000
in your node. This tells the node to try max 1 sec and then continue to start, even without gateway connection.
Regarding the raspberry pi issue, why don't you build an ethernet gateway? It would open port 5003 on your raspi and your controller could connect to this port.
-
RE: ECHO problems when sending with no payload
I don't use FHEM but tested with MySController.
Check message.getString() for NULL!
... char tempMessage[32]; char * ret = message.getString ( ); if ( NULL == ret ) { MY_SERIALDEVICE.println ( "ret is <null>" ); } else { strcpy(tempMessage, ret ); // copy it in MY_SERIALDEVICE.println ( tempMessage[0] ); }
Now if you send in an empty string, you will receive:
27148 TSF:MSG:READ,0-0-124,s=36,c=1,t=47,pt=1,l=1,sg=1:0 length: 1, type: 47 ret is <null>
(Note: payload length is 1 even if message is empty)
Also check your data type, if it's not P_STRING, you'll get NULL!. See MyMessage.cpp:const char* MyMessage::getString(void) const { if (this->getPayloadType() == P_STRING) { return this->data; } else { return NULL; } }
-
RE: ECHO problems when sending with no payload
Hi, can you provide the node's debug output? It should show what data was received.
-
RE: MySensors GW MQTT messages do not access the MQTT broker
Hi, in MQTT.fx, can you subscribe to # and check if you are getting MySensor messages?
-
RE: Ethernet Gateway RFM69HW: Lots of !MCO:PRO
@Yveaux , yes, also on 2.3.2. I've recompiled node and gateway with origin/master, got this on the node:
13:24:33.890 -> 13:24:33.890 -> __ __ ____ 13:24:33.890 -> | \/ |_ _/ ___| ___ _ __ ___ ___ _ __ ___ 13:24:33.890 -> | |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __| 13:24:33.890 -> | | | | |_| |___| | __/ | | \__ \ _ | | \__ \ 13:24:33.890 -> |_| |_|\__, |____/ \___|_| |_|___/\___/|_| |___/ 13:24:33.890 -> |___/ 2.3.2 13:24:33.890 -> 13:24:33.890 -> 16 MCO:BGN:INIT NODE,CP=RPNNAA--,FQ=16,REL=255,VER=2.3.2 13:24:33.890 -> 33 SGN:PER:OK 13:24:33.974 -> 50 SGN:INI:BND OK 13:24:33.974 -> 52 TSM:INIT 13:24:33.974 -> 53 TSF:WUR:MS=1000 13:24:33.974 -> 55 TSM:INIT:TSP OK 13:24:33.974 -> 57 TSF:SID:OK,ID=123 13:24:33.974 -> 59 TSM:FPAR 13:24:33.974 -> 60 SGN:SGN:NREQ=255 13:24:33.974 -> 66 ?TSF:MSG:SEND,123-123-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 13:24:34.946 -> 1055 MCO:BGN:STP 13:24:34.946 -> 1056 MCO:BGN:INIT OK,TSP=0 13:24:35.951 -> 2029 TSF:MSG:READ,0-0-255,s=255,c=3,t=20,pt=0,l=0,sg=0: 13:24:35.951 -> 2034 TSF:MSG:BC 13:24:35.951 -> 2073 !TSM:FPAR:NO REPLY 13:24:35.951 -> 2075 TSM:FPAR 13:24:35.951 -> 2076 SGN:SGN:NREQ=255 13:24:36.004 -> 2082 ?TSF:MSG:SEND,123-123-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 13:24:36.693 -> 2783 TSF:MSG:READ,0-0-123,s=255,c=3,t=8,pt=1,l=1,sg=0:0 13:24:36.693 -> 2788 SGN:SKP:MSG CMD=3,TYPE=8 13:24:36.693 -> 2791 TSF:MSG:FPAR OK,ID=0,D=1 13:24:37.981 -> 4090 TSM:FPAR:OK 13:24:37.981 -> 4091 TSM:ID 13:24:37.981 -> 4092 TSM:ID:OK 13:24:37.981 -> 4094 TSM:UPL 13:24:37.981 -> 4096 SGN:SKP:MSG CMD=3,TYPE=24 13:24:37.981 -> 4107 TSF:MSG:SEND,123-123-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1 13:24:38.590 -> 4328 TSF:MSG:READ,0-0-123,s=255,c=3,t=25,pt=1,l=1,sg=0:1 13:24:38.590 -> 4333 SGN:SKP:MSG CMD=3,TYPE=25 13:24:38.590 -> 4335 TSF:MSG:PONG RECV,HP=1 13:24:38.590 -> 4338 TSM:UPL:OK 13:24:38.590 -> 4340 TSM:READY:ID=123,PAR=0,DIS=1 13:24:38.590 -> 4343 SGN:PRE:SGN REQ 13:24:38.590 -> 4344 SGN:PRE:WHI NREQ 13:24:38.590 -> 4346 SGN:SKP:MSG CMD=3,TYPE=15 13:24:38.590 -> 4359 TSF:MSG:SEND,123-123-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0101 13:24:38.590 -> 4366 SGN:PRE:XMT,TO=0 13:24:38.590 -> 4368 SGN:PRE:WAIT GW 13:24:38.590 -> 4370 !MCO:PRO:RC=1 13:24:38.590 -> 4371 !MCO:PRO:RC=1 13:24:38.590 -> 4373 !MCO:PRO:RC=1 13:24:38.590 -> 4375 !MCO:PRO:RC=1 13:24:38.590 -> 4377 !MCO:PRO:RC=1 13:24:38.590 -> 4378 !MCO:PRO:RC=1 ...
... and on the gateway:
13:24:34.269 -> 0 MCO:BGN:INIT GW,CP=RPNGAA--,FQ=8,REL=255,VER=2.3.2 13:24:34.322 -> 38 TSM:INIT 13:24:34.322 -> 40 TSF:WUR:MS=0 13:24:34.322 -> 43 TSM:INIT:TSP OK 13:24:34.322 -> 45 TSM:INIT:GW MODE 13:24:34.322 -> 47 TSM:READY:ID=0,PAR=0,DIS=0 13:24:34.322 -> 49 MCO:REG:NOT NEEDED 13:24:34.871 -> 614 GWT:TIN:IP=192.168.2.73 13:24:35.875 -> 1617 MCO:BGN:STP 13:24:35.875 -> 1619 MCO:BGN:INIT OK,TSP=1 13:24:35.875 -> 1622 TSM:READY:NWD REQ 13:24:35.929 -> 1630 ?TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK: 13:24:35.976 -> 1683 TSF:MSG:READ,123-123-255,s=255,c=3,t=7,pt=0,l=0,sg=0: 13:24:35.976 -> 1689 TSF:MSG:BC 13:24:35.976 -> 1691 TSF:MSG:FPAR REQ,ID=123 13:24:35.976 -> 1695 TSF:CKU:OK,FCTRL 13:24:35.976 -> 1697 TSF:MSG:GWL OK 13:24:36.679 -> 2383 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0 13:24:37.983 -> 3704 TSF:MSG:READ,123-123-0,s=255,c=3,t=24,pt=1,l=1,sg=0:1 13:24:37.983 -> 3710 TSF:MSG:PINGED,ID=123,HP=1 13:24:38.184 -> 3926 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=OK:1 13:24:38.237 -> 3956 TSF:MSG:READ,123-123-0,s=255,c=3,t=15,pt=6,l=2,sg=0:0101 13:24:38.438 -> 4173 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0101 13:24:38.485 -> 4196 TSF:MSG:READ,123-123-0,s=255,c=3,t=16,pt=0,l=0,sg=0: 13:24:38.817 -> 4489 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=17,pt=6,l=25,sg=0,ft=0,st=OK:<NONCE> 13:24:38.986 -> 4665 TSF:MSG:READ,123-123-0,s=255,c=0,t=17,pt=0,l=5,sg=1:2.3.2 13:24:39.541 -> 5160 TSF:MSG:READ,123-123-0,s=255,c=3,t=16,pt=0,l=0,sg=1: 13:24:39.842 -> 5453 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE> 13:24:40.043 -> 5629 TSF:MSG:READ,123-123-0,s=255,c=3,t=6,pt=1,l=1,sg=1:0 13:24:42.052 -> 7622 TSF:MSG:READ,123-123-0,s=255,c=3,t=26,pt=1,l=1,sg=1:2 13:24:42.252 -> 7839 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=16,pt=0,l=0,sg=0,ft=0,st=OK: 13:24:42.299 -> 7847 !MCO:PRO:RC=1 13:24:42.299 -> 7849 !MCO:PRO:RC=1 13:24:42.299 -> 7852 !MCO:PRO:RC=1 13:24:42.299 -> 7856 !MCO:PRO:RC=1 13:24:42.299 -> 7858 !MCO:PRO:RC=1 13:24:42.299 -> 7860 !MCO:PRO:RC=1 13:24:42.299 -> 7862 !MCO:PRO:RC=1 13:24:42.299 -> 7864 !MCO:PRO:RC=1 13:24:42.299 -> 7866 !MCO:PRO:RC=1 13:24:42.299 -> 7868 !MCO:PRO:RC=1 13:24:42.299 -> 7870 !MCO:PRO:RC=1 13:24:42.299 -> 7872 !MCO:PRO:RC=1 13:24:42.299 -> 7874 !MCO:PRO:RC=1 13:24:42.299 -> 7876 !MCO:PRO:RC=1 13:24:42.299 -> 7878 !MCO:PRO:RC=1 13:24:42.299 -> 7880 !MCO:PRO:RC=1 13:24:42.299 -> 7882 !MCO:PRO:RC=1 13:24:42.299 -> 7884 !MCO:PRO:RC=1 13:24:42.299 -> 7886 !MCO:PRO:RC=1 13:24:42.299 -> 7888 !MCO:PRO:RC=1 13:24:42.299 -> 7890 !MCO:PRO:RC=1 13:24:42.299 -> 7892 !MCO:PRO:RC=1 13:24:42.353 -> 7897 !MCO:PRO:RC=1 13:24:42.353 -> 7899 !MCO:PRO:RC=1 13:24:42.353 -> 7901 !MCO:PRO:RC=1 13:24:42.353 -> 7903 !MCO:PRO:RC=1 13:24:42.353 -> 7905 !MCO:PRO:RC=1 13:24:42.353 -> 7907 !MCO:PRO:RC=1 13:24:42.353 -> 7909 !MCO:PRO:RC=1 13:24:42.353 -> 7911 !MCO:PRO:RC=1 13:24:42.353 -> 7913 !MCO:PRO:RC=1 13:24:42.353 -> 7915 !MCO:PRO:RC=1 13:24:42.353 -> 7917 !MCO:PRO:RC=1 13:24:42.353 -> 7919 !MCO:PRO:RC=1 13:24:42.353 -> 7921 !MCO:PRO:RC=1 13:24:42.353 -> 7923 !MCO:PRO:RC=1 13:24:42.353 -> 7925 !MCO:PRO:RC=1 13:24:42.353 -> 7927 !MCO:PRO:RC=1 13:24:42.353 -> 7929 !MCO:PRO:RC=1 13:24:42.353 -> 7931 !MCO:PRO:RC=1 13:24:42.353 -> 7936 !MCO:PRO:RC=1 13:24:42.353 -> 7938 !MCO:PRO:RC=1 13:24:42.353 -> 7940 !MCO:PRO:RC=1 13:24:42.353 -> 7942 !MCO:PRO:RC=1 13:24:42.353 -> 7944 !MCO:PRO:RC=1 13:24:42.353 -> 7946 !MCO:PRO:RC=1 13:24:42.353 -> 7948 !MCO:PRO:RC=1 13:24:42.399 -> 7950 !MCO:PRO:RC=1 13:24:42.399 -> 7952 !MCO:PRO:RC=1 13:24:42.399 -> 7954 !MCO:PRO:RC=1 13:24:42.399 -> 7956 !MCO:PRO:RC=1 13:24:42.399 -> 7958 !MCO:PRO:RC=1 13:24:42.399 -> 7960 !MCO:PRO:RC=1 13:24:42.399 -> 7962 !MCO:PRO:RC=1 13:24:42.399 -> 7964 !MCO:PRO:RC=1 13:24:42.399 -> 7966 !MCO:PRO:RC=1 13:24:42.399 -> 7968 !MCO:PRO:RC=1 13:24:42.399 -> 7970 !MCO:PRO:RC=1 13:24:42.399 -> 7974 !MCO:PRO:RC=1 13:24:42.399 -> 7976 !MCO:PRO:RC=1 13:24:42.399 -> 7979 !MCO:PRO:RC=1 13:24:42.399 -> 7981 !MCO:PRO:RC=1 13:24:42.399 -> 7983 !MCO:PRO:RC=1 13:24:42.399 -> 7985 !MCO:PRO:RC=1 13:24:42.399 -> 7987 !MCO:PRO:RC=1 13:24:42.399 -> 7989 !MCO:PRO:RC=1 13:24:42.399 -> 7991 !MCO:PRO:RC=1 13:24:42.399 -> 7993 !MCO:PRO:RC=1 13:24:42.399 -> 7995 !MCO:PRO:RC=1 13:24:42.453 -> 7997 !MCO:PRO:RC=1 13:24:42.453 -> 7999 !MCO:PRO:RC=1 13:24:42.453 -> 8001 !MCO:PRO:RC=1 13:24:42.453 -> 8003 !MCO:PRO:RC=1 13:24:42.453 -> 8005 !MCO:PRO:RC=1 13:24:42.453 -> 8007 !MCO:PRO:RC=1 13:24:42.453 -> 8009 !MCO:PRO:RC=1 13:24:42.453 -> 8013 !MCO:PRO:RC=1 13:24:42.453 -> 8015 !MCO:PRO:RC=1 13:24:42.453 -> 8017 !MCO:PRO:RC=1 13:24:42.453 -> 8019 !MCO:PRO:RC=1 13:24:42.453 -> 8022 !MCO:PRO:RC=1 13:24:42.453 -> 8024 !MCO:PRO:RC=1 13:24:42.453 -> 8026 !MCO:PRO:RC=1 13:24:42.453 -> 8028 !MCO:PRO:RC=1 13:24:42.453 -> 8030 !MCO:PRO:RC=1 13:24:42.453 -> 8032 !MCO:PRO:RC=1 13:24:42.453 -> 8034 !MCO:PRO:RC=1 13:24:42.453 -> 8036 !MCO:PRO:RC=1 13:24:42.453 -> 8038 !MCO:PRO:RC=1 13:24:42.453 -> 8040 !MCO:PRO:RC=1 13:24:42.453 -> 8042 !MCO:PRO:RC=1 13:24:42.453 -> 8044 !MCO:PRO:RC=1 13:24:42.453 -> 8046 !MCO:PRO:RC=1 13:24:42.453 -> 8048 !MCO:PRO:RC=1 13:24:42.500 -> 8052 !MCO:PRO:RC=1 13:24:42.500 -> 8054 !MCO:PRO:RC=1 13:24:42.500 -> 8056 !MCO:PRO:RC=1 13:24:42.500 -> 8058 !MCO:PRO:RC=1 13:24:42.500 -> 8060 !MCO:PRO:RC=1 13:24:42.500 -> 8062 !MCO:PRO:RC=1 13:24:42.500 -> 8065 !MCO:PRO:RC=1 13:24:42.500 -> 8067 !MCO:PRO:RC=1 13:24:42.500 -> 8069 !MCO:PRO:RC=1 13:24:42.500 -> 8071 !MCO:PRO:RC=1 13:24:42.500 -> 8073 !MCO:PRO:RC=1 13:24:42.500 -> 8075 !MCO:PRO:RC=1 13:24:42.500 -> 8077 !MCO:PRO:RC=1 13:24:42.500 -> 8079 !MCO:PRO:RC=1 13:24:42.500 -> 8081 !MCO:PRO:RC=1 13:24:42.500 -> 8083 !MCO:PRO:RC=1 13:24:42.500 -> 8085 !MCO:PRO:RC=1 13:24:42.500 -> 8087 !MCO:PRO:RC=1 13:24:42.500 -> 8089 !MCO:PRO:RC=1 13:24:42.500 -> 8093 !MCO:PRO:RC=1 13:24:42.500 -> 8095 !MCO:PRO:RC=1 13:24:42.500 -> 8097 !MCO:PRO:RC=1 13:24:42.554 -> 8099 !MCO:PRO:RC=1 13:24:42.554 -> 8101 !MCO:PRO:RC=1 13:24:42.554 -> 8103 !MCO:PRO:RC=1 13:24:42.554 -> 8105 !MCO:PRO:RC=1 13:24:42.554 -> 8108 !MCO:PRO:RC=1 13:24:42.554 -> 8110 !MCO:PRO:RC=1 13:24:42.554 -> 8112 !MCO:PRO:RC=1 13:24:42.554 -> 8114 !MCO:PRO:RC=1 13:24:42.554 -> 8116 !MCO:PRO:RC=1 13:24:42.554 -> 8118 !MCO:PRO:RC=1 13:24:42.554 -> 8120 !MCO:PRO:RC=1 13:24:42.554 -> 8122 !MCO:PRO:RC=1 13:24:42.554 -> 8124 !MCO:PRO:RC=1 13:24:42.554 -> 8126 !MCO:PRO:RC=1 13:24:42.554 -> 8128 !MCO:PRO:RC=1 13:24:42.554 -> 8132 !MCO:PRO:RC=1 13:24:42.554 -> 8134 !MCO:PRO:RC=1 13:24:42.554 -> 8136 !MCO:PRO:RC=1 13:24:42.554 -> 8138 !MCO:PRO:RC=1 13:24:42.554 -> 8140 !MCO:PRO:RC=1 13:24:42.554 -> 8142 !MCO:PRO:RC=1 13:24:42.554 -> 8144 !MCO:PRO:RC=1 13:24:42.554 -> 8146 !MCO:PRO:RC=1 13:24:42.554 -> 8148 !MCO:PRO:RC=1 13:24:42.600 -> 8151 !MCO:PRO:RC=1 13:24:42.600 -> 8153 !MCO:PRO:RC=1 13:24:42.600 -> 8155 !MCO:PRO:RC=1 13:24:42.600 -> 8157 !MCO:PRO:RC=1 13:24:42.600 -> 8159 !MCO:PRO:RC=1 13:24:42.600 -> 8161 !MCO:PRO:RC=1 13:24:42.600 -> 8163 !MCO:PRO:RC=1 13:24:42.600 -> 8165 !MCO:PRO:RC=1 13:24:42.600 -> 8167 !MCO:PRO:RC=1 13:24:42.600 -> 8171 !MCO:PRO:RC=1 13:24:42.600 -> 8173 !MCO:PRO:RC=1 13:24:42.600 -> 8179 TSF:MSG:READ,123-123-0,s=255,c=3,t=17,pt=6,l=25,sg=0:<NONCE> 13:24:42.754 -> 8306 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=27,pt=1,l=1,sg=1,ft=0,st=OK:1
-
Ethernet Gateway RFM69HW: Lots of !MCO:PRO
Dear All,
MCO:PRO issues are sometimes discussed in this forum. They are often caused by a call to send() inside of receive() and easy to solve, but I ran into this issue with no self-written code at all but a plain vanilla ethernet gateway:
#define MY_DEBUG #define MY_RADIO_RFM69 #define MY_IS_RFM69HW #define MY_RFM69_NEW_DRIVER #define MY_RF69_SPI_CS (14) #define MY_GATEWAY_W5100 #define MY_PORT 5003 #define MY_IP_ADDRESS 192,168,2,73 #define MY_MAC_ADDRESS 0xDE, 0xAD, 0xBA, 0xBE, 0x02, 0x73 #define MY_SIGNING_ATSHA204 //!< Hardware signing using ATSHA204A #define MY_SIGNING_ATSHA204_PIN 17 #define MY_SIGNING_REQUEST_SIGNATURES #include <Ethernet.h> #include <MySensors.h> void setup() { } void presentation() { } void loop() { }
Gateway Log:
10:42:01.720 -> 0 MCO:BGN:INIT GW,CP=RPNGAA--,FQ=8,REL=0,VER=2.4.0-alpha ... 10:45:09.137 -> 170602 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE> 10:45:09.285 -> 170776 TSF:MSG:READ,123-123-0,s=2,c=0,t=3,pt=0,l=3,sg=1:led 10:45:09.840 -> 171272 TSF:MSG:READ,123-123-0,s=255,c=3,t=26,pt=1,l=1,sg=1:2 10:45:10.041 -> 171489 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=16,pt=0,l=0,sg=0,ft=0,st=OK: 10:45:10.041 -> 171497 !MCO:PRO:RC=1 10:45:10.041 -> 171499 !MCO:PRO:RC=1 ... many many MCO:PRO's ... 10:45:10.389 -> 171821 !MCO:PRO:RC=1 10:45:10.389 -> 171827 TSF:MSG:READ,123-123-0,s=255,c=3,t=17,pt=6,l=25,sg=0:<NONCE> 10:45:10.543 -> 171956 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=27,pt=1,l=1,sg=1,ft=0,st=OK:1 10:45:10.744 -> 172136 TSF:MSG:READ,123-123-0,s=1,c=3,t=16,pt=0,l=0,sg=1: 10:45:11.246 -> 172642 TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=17,pt=6,l=25,sg=1,ft=0,st=OK:<NONCE> ...
Sketch Log:
10:32:37.186 -> __ __ ____ 10:32:37.186 -> | \/ |_ _/ ___| ___ _ __ ___ ___ _ __ ___ 10:32:37.186 -> | |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __| 10:32:37.186 -> | | | | |_| |___| | __/ | | \__ \ _ | | \__ \ 10:32:37.186 -> |_| |_|\__, |____/ \___|_| |_|___/\___/|_| |___/ 10:32:37.186 -> |___/ 2.4.0-alpha ... 10:45:09.959 -> 9176 SGN:SGN:SGN 10:45:09.959 -> 9189 TSF:MSG:SEND,123-123-0-0,s=1,c=0,t=36,pt=0,l=9,sg=1,ft=0,st=OK:timestamp 10:45:09.959 -> 9196 SGN:SKP:MSG CMD=3,TYPE=16 10:45:10.478 -> 9711 TSF:MSG:SEND,123-123-0-0,s=2,c=3,t=16,pt=0,l=0,sg=1,ft=0,st=OK: 10:45:10.478 -> 9717 SGN:SGN:NCE REQ,TO=0 10:45:10.806 -> 10048 TSF:MSG:READ,0-0-123,s=255,c=3,t=17,pt=6,l=25,sg=1:<NONCE> 10:45:10.853 -> 10054 SGN:SKP:MSG CMD=3,TYPE=17 ...
After changing some MY_*-defines I found the MCO:PRO-issue also on the node, for example if MY_TRANSPORT_WAIT_READY_MS is set.
My node is a plain Seeduino M328P with RFM69HW attached according to the HowTo. The Gateway is an Arduino Pro Micro, RFM69HW attached to hardware SPI and W5100 also on hardware SPI, but with a hardware extension (https://arduinodiy.wordpress.com/2017/04/12/the-w5100-bug/).
I know this is not a standard scenario, so I also built an Raspberry Pi 4B+ Gateway, for more testing, with the following config:
./configure \ --spi-driver=SPIDEV \ --my-transport=rfm69 \ --my-rfm69-frequency=868 \ --my-is-rfm69hw \ --my-gateway=ethernet \ --my-port=5003 \ --my-signing=software \ --my-signing-request-signatures \ --my-signing-debug \ --extra-cxxflags="-DMY_RFM69_NETWORKID=\(100\) -DMY_RFM69_CSMA_LIMIT_DBM=\(-90\) -DMY_SIGNAL_REPORT_ENABLED"
It runs into the same issue :
pi@raspberrypi:~/MySensors $ sudo ./bin/mysgw Aug 05 11:24:02 INFO Starting gateway... Aug 05 11:24:02 INFO Protocol version - 2.3.2 Aug 05 11:24:02 DEBUG MCO:BGN:INIT GW,CP=RPNGLS--,FQ=NA,REL=255,VER=2.3.2 ... Aug 05 11:24:51 DEBUG SGN:VER:OK Aug 05 11:24:51 DEBUG GWT:RFC:C=0,MSG=123;255;3;0;6;M Aug 05 11:24:51 DEBUG SGN:SKP:MSG CMD=3,TYPE=16 Aug 05 11:24:51 DEBUG TSF:MSG:SEND,0-0-123-123,s=255,c=3,t=16,pt=0,l=0,sg=0,ft=0,st=OK: Aug 05 11:24:51 DEBUG SGN:SGN:NCE REQ,TO=123 Aug 05 11:24:51 DEBUG !MCO:PRO:RC=1 ... many many MCO:PROs ... Aug 05 11:24:52 DEBUG !MCO:PRO:RC=1 Aug 05 11:24:52 DEBUG TSF:MSG:READ,123-123-0,s=255,c=3,t=17,pt=6,l=25,sg=0:<NONCE> Aug 05 11:24:52 DEBUG SGN:SKP:MSG CMD=3,TYPE=17 Aug 05 11:24:52 DEBUG SGN:NCE:FROM=123 Aug 05 11:24:52 DEBUG SGN:BND:NONCE=DC9C963E113AC087BE7F548A7E330E34B09453BB3BA95A8273AAAAAAAAAAAAAA Aug 05 11:24:52 DEBUG SGN:BND:HMAC=5FEB8F6821395B8C16F00A4EE23BE730212E85F94B1CB0D3AFC60512EF8066F5
The issue hurts for it slows down presentation and message sending and I'm trying to track down the (possible) error. But I'm lost in the source code Where should I start?
Thanks in advance,
P.S.
Here's my test cases:
TC# GW Signing WAIT_MS Sketch Results 1 Arduino n 0 hello working fine 2 Arduino only GW 0 hello GW: MCO:PRO rc=1+rc=2 3 Arduino n 1000 hello GW:fine, Node: MCO:PRO rc=1 4 Arduino y 0 hello GW: MCO:PRO rc=1 (presentation+send msg to node), Node:fine 5 Arduino y 1000 hello GW: MCO:PRO rc=1 (presentation+send msg to node), Node:MCO:PRO rc=1 (@presentation) (node logfile unfortunately missing) 6 Arduino y 1000 mini GW+Node: MCO:PRO rc=1 7 Raspberry y 1000 mini GW+Node: MCO:PRO rc=1 8 Raspberry y 1000 hello GW+Node: MCO:PRO rc=1 (presentation+send msg to node) 9 Raspberry y 0 hello GW: MCO:PRO rc=1, Node: according to the logs MCO:PRO, but in my memory fine, have to repeat the test
Sketches:
hello = HelloM328P.ino
mini = MySminimal.ino
https://github.com/hosentraeger/MySensors-MCO-PRO-analyzing -
RE: Dimmer led turns on fully and only after dimms
You could add some debug code to see what messages arrive from home assistant, like
void receive(const MyMessage &message) { Serial.print ( "received message for sensor " ); Serial.print ( message.sensor ); Serial.print ( ", type " ); Serial.println ( message.type ); if (message.type == V_LIGHT || message.type == V_DIMMER) {
and this to see if the fading routine works well:
while ( currentLevel != toLevel ) { currentLevel += delta; Serial.print ( "...fadeToLevel: currentLevel=" ); Serial.print ( currentLevel ); Serial.print ( ", pwm value=" ); Serial.print ( (int)(currentLevel / 100. * 255) ); Serial.println ( ); analogWrite( LED_PIN, (int)(currentLevel / 100. * 255) );
post your debug output
-
RE: Gateway MQTT with RFM69
just wanted to add that my W5100/RFM69 ethernet gateway works - but I had to patch two lines in the Ethernet library (w5100.h), see
https://forum.mysensors.org/topic/6330/still-searching-for-a-working-ethernet-gw-with-rfm69/8Now I'll see if the MQTT gateway works, too...
-
RE: Gateway MQTT with RFM69
Hello @miclane,
I'm currently building an MQTT Gateway with RFM69 and Wiznet W5100 module.
Are you using the same ethernet module? Please read about the chip select/SEN issue:
https://arduinodiy.wordpress.com/2017/04/12/the-w5100-bug/
I've modified my module and both chips (RFM69, W5100) are starting up.
Mapping:
W5100-MO = RFM69-MOSI = D11 W5100-MI = RFM69-MISO = D12 W5100-SCK = RFM69-SCK = D13 W5100-NSS = D10 RFM69-NSS = A0 RFM69-DI00 = D02
Defines:
#define MY_RADIO_RFM69 #define MY_IS_RFM69HW // Mandatory if you radio module is the high power version (RFM69HW and RFM69HCW), Comment it if it's not the case #define MY_RF69_SPI_CS 14 // W5100 Ethernet module SPI enable (optional if using a shield/module that manages SPI_EN signal) #define MY_W5100_SPI_EN 10 #define MY_GATEWAY_MQTT_CLIENT
-
RE: Idea: an "upkeep" sensor type
Wouldn't it be easier to connect the window switch to INT1 and use sleeping?
int8_t sleep(int interrupt, int mode, unsigned long ms=0); int8_t smartSleep(int interrupt, int mode, unsigned long ms=0);
I'd say the advantage of this is:
Very low power sensors, since they are essentially completely turned off most off the time.
Controllers don't need to implement a new MySensors type. To them it just looks like a normal binary switch -
RE: No luck with ethernet Gateway
There's an issue with Atmega2560 and Wiznet 5100, are you using an Arduino Mega?
https://forum.mysensors.org/topic/4680/mysensors-2-0-ethernet-gateway-atmega-w5100-restart-all-time