05/26 10:17:51: !boot,nd:13,c:26631,ac:54924
Boot request from 13, checksum 26631
Starting to boot 13
Bootloader CRC matches
Installing new app
Serving Client
New profile: 1, timeout: 30
New profile: 0, timeout: 10
Got ack in: 2534, drop rate: 8 empty: 0
Boot client done
05/26 10:17:53: [13] [RX_RSSI:-56]
05/26 10:17:53: >nd:13,nr:0,pw:0,vc:341,it:24,l:1,rs:8,h:376,t:197,ls:0
05/26 10:18:05: [3] [RX_RSSI:-28]
05/26 10:18:05: >nd:3,nr:21,pw:0,vc:332,it:29,l:1,hp:1,mc:0,h:314,t:209
05/26 10:18:13: [13] [RX_RSSI:-56]
05/26 10:18:13: >nd:13,nr:1,pw:0,vc:340,it:24,l:1,h:373,t:197,ls:0
05/26 10:18:14: [5] [RX_RSSI:-82]
05/26 10:18:14: >nd:5,nr:527,pw:0,vc:330,it:16,h:415,t:173
05/26 10:18:28: [4] [RX_RSSI:-67]
05/26 10:18:28: >nd:4,nr:528,pw:0,vc:329,it:12,h:429,t:152
05/26 10:18:28: [4] [RX_RSSI:-53]
05/26 10:18:28: >nd:4,nr:528,pw:0,vc:329,it:12,h:429,t:152
05/26 10:18:33: [13] [RX_RSSI:-56]
05/26 10:18:33: >nd:13,nr:2,pw:0,vc:340,it:24,l:1,h:372,t:197,ls:0
05/26 10:18:45: [3] [RX_RSSI:-28]
05/26 10:18:45: >nd:3,nr:22,pw:0,vc:332,it:29,l:1,hp:1,mc:0,h:315,t:209
05/26 10:18:53: [13] [RX_RSSI:-57]
05/26 10:18:53: >nd:13,nr:3,pw:0,vc:341,it:24,l:1,h:373,t:197,ls:0
05/26 10:18:53: [13] [RX_RSSI:-56]
05/26 10:18:53: >nd:13,nr:3,pw:0,vc:341,it:24,l:1,h:373,t:197,ls:0
I do see repeats in my own setup but usually they do get ACKd by the second or third try. So in general I haven't run into situations where repeats get stuck and the gateway can't reach a node. If anyone has anything more to share about this please do.In cases where I see multiple retransmits, it's usually due to collisions with other motes also trying to send to the gateway. In these cases it often means a three way collision - the original mote, the new mote getting into the mix, and the gateway's Ack to the original's first transmission.
I found the problem:Cool! Too bad we can't use those AC sockets on this side of the pond!
I've written some code that uses the RFM69HW module on the gateway using OOK modulation to control 433mhz remote controlled power outlets. This works really well and is a cheap way to control AC plug devices. You can buy 4 sockets for 9.90 Euro here in Germany, very cheap and with the RFM69HW the range is much larger than that of the remote that comes with the sockets.
My code sets the preamble length to 0. Unfortunately the RFM69 lib doesn't initialize that setting so my gateway used a preamble of length 0 when ack'ing client packets after a OOK command was sent. Pretty amazing actually that it worked at all ... Too bad the radio module can't be reset into a known state via software (or tell me if it can be).
If you're interested how it works check out the attached. Unfortunately sharing the radio requires some dirty hacks as one might suspect.
Joe
Maybe you can use the same approach with other AC sockets in the US. I've looked through the protocol code in http://www.pilight.org/ and found most 433mhz socket protocols were almost identical. I ported this protocol to the Moteino and it was all very straight forward.Thanks! I've ordered some sockets and a remote (so I can confirm the protocol). I probably won't get to it until later this Summer, but this should be a useful project.
...very cheap and with the RFM69HW the range is much larger than that of the remote that comes with the sockets.