Hi all
I'm taking the time to create an account here to share the experience of my weekend.
I use to deal with 7x Moteino and and a PiGateway for something like 1 year without too much problems.
but
Earlier this week I was "tired" waiting for the OTA transfers with my nodes (trying to find a fix to a >60 char long node not updating correctly the pigateway)
OTA updates never worked in mode 2 or 3 (fast) and that was not really a problem so far
I just tried to update everything to see if OTA fast mode will work and get the advantage of the ATC.
I just spent the last 2 days trying to get things working for nothing.
Basic sketch Gateway+Node using Arduino 1.6.9 + last RFM69 + last SPIFlash + WrielessProgramming and the Motino ZIP (AVR stuff) are not working.
Everything compile.
Both moteino are blinking as expected while transfert is "sent" but the Gateway is not getting anything.
(the only modification to the sketches was to enable the HW feature to match my hardware)
EXACT same setup but old IDE 1.6.1 and libraries from last year (from my last update) is working.
With the new examples I even tried to disable the ATC function but no effects.
With the new examples access to commands are working (I can get the ship's temperature)
With the new examples the promiscuous mode is not showing anything
No chance with the IDE 1.6.6 with last library neither, it looks like the radio library is somewhere not working.
For now I'm back on my legacy system which is working well, slow OTA but working.
just FYI...
I have the same problem... I bought some Moteino modules a year ago and the Gateway and Node examples worked fine.
Now I am trying to use them again and I downloaded the latest Arduino IDE and latest RFM69 libraries but the Gateway and Node examples did not work. Nothing was received on the Gateway.
When I restored the old RFM69 library it started to work again.
Same problem here exactly. One year break, now no radios are working.
Moteino USB / RFM69HW / 915MHz
Fix: grab repo from approx Aug 2015,
git checkout 9de0c3b
Recompile. All OK.
In fact, repo from approx April 13, 2016:
git checkout ca93c49
Recompile: All OK.
Looks like maybe one of the markbergsma tweaks did us in.
David,
Thanks for the clarification.
I had no idea what 9de0c3b represented.
Thanks, these are my first arduinos and I was starting to think I was missing something obvious.
Working with ca93c49
I'm surprised, but I could not do very extensive on the markbergsma commits.
Regarding the latest RFM69 lib version - Did you guys only program one node in your network with this last version and it didn't work? Or did you program both/all nodes and it still didn't work?
Trying to identify which commit might cause the issue.
Library version 31c2d836a8 works for me with IDE 1.6.9 on Moteino RFM69 w/ trace antenna.
The same library version works on ESP8266 with a few more changes. The ESP8266 is connected to an RFM69HCW breakout board. SPI.usingInterrupt does not exist in the ESP8266 SPI library.
digitalWrite(_slaveSelectPin, HIGH);
pinMode(_slaveSelectPin, OUTPUT);
SPI.begin();
-#ifdef SPI_HAS_TRANSACTION
+#if defined(SPI_HAS_TRANSACTION) && !defined(ESP8266)
SPI.usingInterrupt(_interruptNum);
I am experimenting with commenting out the interrupt disable/enable code because disabling interrupts for too long causes ESP watch dog resets. I will push up my changes when ready.
Quote from: Felix on July 06, 2016, 04:26:57 PM
I'm surprised, but I could not do very extensive on the markbergsma commits.
Regarding the latest RFM69 lib version - Did you guys only program one node in your network with this last version and it didn't work? Or did you program both/all nodes and it still didn't work?
Trying to identify which commit might cause the issue.
IDE: 1.6.9
RFM69 commits not working: 31c2d83, bc0665b
Freq: 915
Models: both Moteino w/ RFM69W and trace antenna
Both the gateway and the node were programmed using that version (both were recently assembled, so just using the gateway and node example sketches, only change is the frequency)
I did a bit more testing to try to make sure it wasn't a PEBCAK issue on my end (I still make no claims that it isn't :) ) and found that the sending node continues to work on the current 31c2d83, but when I compile for the gateway using the current library they stop communicating. Likewise, if I leave the sending node as the old (ca93c49) and update just the gateway to the current they stop communicating.
It seems to stop working at
bc0665b, so the last one that works for me on both the sending node and the gateway is ea02e14 from June 8th.
Quote from: Felix on July 06, 2016, 04:26:57 PM
I'm surprised, but I could not do very extensive on the markbergsma commits.
Regarding the latest RFM69 lib version - Did you guys only program one node in your network with this last version and it didn't work? Or did you program both/all nodes and it still didn't work?
Trying to identify which commit might cause the issue.
I tried on my bench of 4x nodes.
1x PiGateway
1x Promiscuous node
2x nodes to ensure the code didn't fried one
all running my sketches or lightly modded examples as I wasn't sure whether the ATC was retro-compatible with non ATC nodes.
I updated my IDE this weekend from 1.0.5 and I was literally pulling my hair out until I stumbled on this thread. I had to update due to 1.0.5 not supporting the adafruit bme280 library which led to me regressing from 1.6.8 down to 1.6.5 due to usb port issues associated with 1.6.8. After I regressed back to 1.6.5 my radios would no longer receive...more hair pulling. Found this thread but had no idea about the git references. Fortunately I still had the old RFM69 library from April 13 2015. Substituted that one in for the latest version and fixed the problem.
Long way to say thank you for posting this information and allowing me to escape with only patchy baldness.
Josh
Sorry for all the trouble guys.
This is on my radar and I will investigate and make any necessary changes as soon as I know what's going on.
Apparently this is the questionable commit (https://github.com/LowPowerLab/RFM69/commit/bc0665b018cd5a90d707422c3f1f4b13772dec9b) which causes the freezing. I can see in 1.6.9 that the HEAD without this commit will work so I reverted this commit.
Please get the latest HEAD of the library (this is the commit (https://github.com/LowPowerLab/RFM69/commit/dbea3aa62e70411051e914d1d119de67433b5747) of the revert) and test as before and let me know if there are still any issues. Hopefully this resolves it.
Felix -- just tested the new version and it works perfectly as far as I've seen. Thanks!
Awesome, thanks for testing.
If anyone else is testing please report any issues or success, thanks!
The Node and Gateway examples run correctly on Moteinos with the latest library.
Thanks!