vk2psf
New Member
Posts: 24
Raspberry Pi: Yes
|
Post by vk2psf on Jan 8, 2019 23:18:48 GMT -8
I assembled the WXLinkSolar kit with the OurWeather build.
No data from remote devices.
I have now reduced to Board 1 Grove Pro Mini LP [Tx] with LoRa 433 in J8[D6/D7] Board 2 Grove Pro Mini LP [Rx] with Lora 433 in J4[D8/D9]
Rx returns: -------Receive Started---------
Software Version:4
init failed
Tx returns: init failed
it is version 6.
Code loaded from github repositories
|
|
|
Post by SDL on Jan 10, 2019 9:45:36 GMT -8
Hmmm.
Did you swap the LoRa units? It looks like it wouldn't make any difference. Could you post a couple of pictures of your setups?
I think you have it wired correctly.
Seems that it would be unlikely that you have two bad boards, however.
BP
|
|
vk2psf
New Member
Posts: 24
Raspberry Pi: Yes
|
Post by vk2psf on Jan 10, 2019 19:38:03 GMT -8
Confirm I have: swapped cables swapped LoRa Modules swapped Grove Pro mini LP Tx/Rx modules Reloaded git hub code Tx and Rx Tried seed studio code rf95_client (adjusting SoftwareSerial ss(5,6) to 6,7 or 8,9 The rest of the RX code seems to work(device appears as 8c on i2c bus) RHS Tx module in Grove D6/D7 LHS Rx module in Grove D8/D9 VK2PSF (Alex) Attachments:
|
|
|
Post by SDL on Jan 10, 2019 19:52:04 GMT -8
Would you show me the backs of the LoRa boards?
Again, how unlikely that you have two bad LoRa boards. And no other customers have been complaining. Hmmm.
Thank you! BP
|
|
vk2psf
New Member
Posts: 24
Raspberry Pi: Yes
|
Post by vk2psf on Jan 11, 2019 3:26:56 GMT -8
boards with packaging, I will look for an Arduino mega tomorrow (it's down in my storeroom somewhere!) to see if I can get something on another serial port. Attachments:
|
|
|
Post by SDL on Jan 13, 2019 9:28:43 GMT -8
One more thing to check. Look at your Mini Pro LP boards. Does it say 16MHz above the diagonally mounted IC?
BP
|
|
vk2psf
New Member
Posts: 24
Raspberry Pi: Yes
|
Post by vk2psf on Jan 16, 2019 22:39:09 GMT -8
Confirm both boards marked as Grove Pro Mini LP 16Mhz
How can I test if the firmware has been loaded on the seeed board? voltage to seed board from Arduino 5.1V, test port at the back of board shows 3.27V so I presume near enough
i added an initial Software version print and commented the while(1) after first init failed. Board proceeded through to attempt first transmission and failed...
Serial.begin(115200); // TXDEBUGging only // Serial.println("-------Transmit Started---------"); Serial.print("Software Version:"); Serial.println(SOFTWAREVERSION); if (!rf95.init()) { Serial.println(F("init failed")); //while (1); }
Result
Software Version:6 init failed Wireless ID:3 Software Version:6 DS3231 Not Present RTC_STATUS=11110001 RTC_CONTROL=11110001 SAP Load Voltage =-0.00
LIPO_Battery Load Voltage: -0.00 V LIPO_Battery Current: -0.05 mA
Solar Panel Voltage: -0.00 V Solar Panel Current: 0.05 mA
Load Voltage: -0.00 V Load Current: -0.05 mA
SunAirPlus Not Present wakeState=4 timeBeforeSleep=10136 Awake now: timeAfterSleep=39320 SleepTime = 29184 Millis Time: 39.32 2wakeState=2 Watchdog1 Reset - Patted the Dog wakeState=2 MessageCount=0 AM2315 not found Wind Vane Voltage =2.42 Wind Vane Degrees =0 TotalRainClicks=0 windClicks=1 Average Wind Speed=0.04 KPH shortestWindTime (usec)10000000 ------- 0 0 ------ crc = 0x9510 ----------Sending packet---------- ----------After Sending packet---------- Timeout on transmission init failed
|
|
|
Post by SDL on Jan 18, 2019 9:13:20 GMT -8
I think I have a suggestion. This will help us determine whether it is the software/Arduino or the LoRa radio problem. Do you have another Arduino? If not, you should be able to reprogram one of your Mini Pro LP boards. Run this software: wiki.seeedstudio.com/Grove_LoRa_Radio/And see if the radio board respond properly. That should help us pin point the problem. We'll be happy to replace the radios if they are bad (or the Mini LP Pro boards , which I don't really think are the problem). BP
|
|
vk2psf
New Member
Posts: 24
Raspberry Pi: Yes
|
Post by vk2psf on Jan 18, 2019 14:48:13 GMT -8
I used the seeed github examples for rf95_client, rf95_server, rf95_reliable_datagram_client on both SDL pro mini boards plus arduino mega, and leonardo. This was one of the first tests I did and I have just repeated for continuity. Substituting softserial ports as appropriate. Same fail in all circumstances.
Connect LoRa to J4 (D8/D9)
// Singleton instance of the radio driver //SoftwareSerial ss(5, 6); SoftwareSerial ss(8, 9); RH_RF95 rf95(ss); Result
RF95 client test. init failed
I have ordered 2 additional boards 433 LoRa and seeduino direct from Seeed (plus a few other bits) to build out an additional project. After I have tested these units I will advise next steps
|
|
|
Post by SDL on Jan 20, 2019 18:33:44 GMT -8
Sounds good. Please let us know your results!
BP
|
|
vk2psf
New Member
Posts: 24
Raspberry Pi: Yes
|
Post by vk2psf on Jan 30, 2019 2:53:17 GMT -8
And the answer..... Radiohead library 1.89 seemed to cause the issue, I will try and do some more investigation as to why... potentially just getting the wrong file in the path. After similar problems with other 433 units from Seeed I got on their forum and on advice to just reload their library from github, I went further and built a clean Arduino IDE folder and added their library github.com/Seeed-Studio/Grove_LoRa_433MHz_and_915MHz_RF/archive/master.zipThis worked immediately with their examples. And then loaded the SDL Pro Mini Tx and Rx appropriately and they started talking no problem, so I have a basic working system end to end. RadioHead Library seems to be the fault.... to confirm I installed it to the clean IDE and recreated the problem. Then removed the folder from library and things worked again. .../alex
|
|
|
Post by SDL on Jan 31, 2019 11:38:33 GMT -8
OK! That is a great resolution. I just felt that the odds were too high that they were both bad, but the could have been not programmed in a batch!
BP
|
|
vk2psf
New Member
Posts: 24
Raspberry Pi: Yes
|
Post by vk2psf on Feb 6, 2019 15:17:47 GMT -8
So I have looked back through several of the Radiohead supplied libraries. They all seem to use spi interface and no UART function for Grove. This only appears in the seeed library.
At this time I have isolated several problems. And the only difference I can see is the use of the seeed library.
1. Transmission and then arbitrary shutdown after 30-40 messages and then maybe restart after 1-2 hours and then some transmissions. (works a bit more reliably with DS3231 but still stops sending for a while.) 2. Arbitrary reception of messages, may receive 3-4 messages then nothing for 20 minutes - hours then receive again.
Could you provide or point to some detailed instructions on how you use the radiohead library with the Arduino ide. Also can you post the a compiled build for the Lora RX and TX mini pro modules.
.../alex
|
|
|
Post by SDL on Feb 6, 2019 17:18:11 GMT -8
You want compiled versions of the Tx Rx libraries? The source code is up there. You select the Mini Pro LP and then the 16MHz version in the Arduino IDE.
BP
|
|
vk2psf
New Member
Posts: 24
Raspberry Pi: Yes
|
Post by vk2psf on Feb 6, 2019 17:44:27 GMT -8
Yes that is what I am doing, however the only library that seems to get past the init problem is the seeed library with the grove modules. It appears the current radiohead library that you reference in your documentation cannot work as it does not use UART. So exactly which library are you linking when you build? perhaps the zip of that library is what I need.
In the meantime as my results are wildly different to yours for operational time perhaps at least the compiled code you load to Tx and RX boards that you ship will also help find whats going on. I am currently testing with an SDR unit and can see the packets stop sending after a relatively short period. .../alex
|
|