Post by papa on Jun 21, 2016 18:45:22 GMT
Multi-choice Node Sketch incl Gateway 2.4 Compatibility
Generally, I use computourist Gateway 2.2. Though previously I briefly tested a network of Gateway 2.4 & one DHT End Node 2.2. After detailed comparison of DHT End Nodes versions 2.1 & 2.2, I confirmed the main adds for Gateway 2.4 are 1) chunking the Gateway’s DEBUG output so the sketch better fits into available memory AND 2) (another addition to “debugging”) a new device 9 that reports how many times the radio must retry a transmission before it succeeds by 5 tries or fails.
Though I generally don’t use Gateway 2.4 & its compatible nodes, I decided I & others might use the debugging capability of reporting multiple transmission trials occasionally or totally (if wanting to use the latest versions).
So I added Gateway 2.4 capability as an option (GW24) for the multi-choice node sketch. That is included in the sketch linked below. The 2.2 in the version name indicates it adds the retransmission tries capability from DHT End Node 2.2, which is Gateway 2.4 compatible.
computourist_node_v2.2Md_choices_pub.ino (57.28 KB) << NETWORKID error corrected on 12/4/2016
Necessary Customization of the Sketch:
In lines 141-174, UNcomment the other node features you want & then UNcomment line 177 to activate Gateway 2.4 capability. In line 179, give the node a unique ID number. At line 180, use the same encryption key as you did in the Gateway 2.4 sketch. Probably UNcomment line 181 to activate debugging output at least for testing. In lines 183-185, pick the frequency that matches your radio. If your radio has “H” (for high power) in its part number, UNcomment line 186.