Post by daenny on Mar 11, 2015 0:39:15 GMT
It seemed appropriate to open a new Thread for this topic, after hijacking the 2.1 release topic.
etrombly:
I tested your latest updates to the Python RFM library with the Gateway code. Thanks for the awesome work so far. This version it seems very usable to me!
Below a first "experience report"
My sender is an Arduino Uno 5V running your latest "Relay Node ino" but I removed all extra devices such that it is only transmitting version name, RSSI, uptime and txInterval. I set those devices to tx_periodically to have some periodic sending.
The arduino is connected to the RFM69HW with voltage dividers as described in my other topic, but the power level is set now to 20.
My experiences so far:
Raspberry Pi receives almost 100% of the messages, but sends out ACK only in about 95% of the messages.
Especially if I publish a read request via MQTT.fx or commandline to any of the devices, i.e home/rfm_gw/sb/node02/dev00 "READ", the answer is received and processed at the raspberry pi (since I can see a new message coming in on the subscription), but in the Serial Monitor of my sender I get "no connection". So no ACK is received on the Arduino side for the last message.
That behaviour is reproduced reliably. So it seems if there is little delay between the last send of the raspberry pi to the arduino and the reply, the ACK does not get received at the arduino. It does seem to get send though, since I did a print statement every time I send an ACK in the pigateway.
Regarding the wrapping of the C Code (I used abouillot's piGateway port): I did some testing with SWIG. I got it to compile and could import the module. However there are some issues with the typedefs and volatiles. So I could not get it to send anything, the buffer for sending is a const void* which does not get wrapped well/easily... If I have more time, I will look deeper into that. Although the python library seems to work a lot better now, so I might just stick to that
etrombly:
I tested your latest updates to the Python RFM library with the Gateway code. Thanks for the awesome work so far. This version it seems very usable to me!
Below a first "experience report"
My sender is an Arduino Uno 5V running your latest "Relay Node ino" but I removed all extra devices such that it is only transmitting version name, RSSI, uptime and txInterval. I set those devices to tx_periodically to have some periodic sending.
The arduino is connected to the RFM69HW with voltage dividers as described in my other topic, but the power level is set now to 20.
My experiences so far:
Raspberry Pi receives almost 100% of the messages, but sends out ACK only in about 95% of the messages.
Especially if I publish a read request via MQTT.fx or commandline to any of the devices, i.e home/rfm_gw/sb/node02/dev00 "READ", the answer is received and processed at the raspberry pi (since I can see a new message coming in on the subscription), but in the Serial Monitor of my sender I get "no connection". So no ACK is received on the Arduino side for the last message.
That behaviour is reproduced reliably. So it seems if there is little delay between the last send of the raspberry pi to the arduino and the reply, the ACK does not get received at the arduino. It does seem to get send though, since I did a print statement every time I send an ACK in the pigateway.
Regarding the wrapping of the C Code (I used abouillot's piGateway port): I did some testing with SWIG. I got it to compile and could import the module. However there are some issues with the typedefs and volatiles. So I could not get it to send anything, the buffer for sending is a const void* which does not get wrapped well/easily... If I have more time, I will look deeper into that. Although the python library seems to work a lot better now, so I might just stick to that