|
Post by SDL on Mar 23, 2020 7:26:42 GMT -8
|
|
|
Post by Kazz on Mar 24, 2020 23:16:10 GMT -8
I have downloaded a sketch from github.com/switchdoclabs/SDL_Arduino_WXLink_LoRa_Tx and a library RadioHead-1.100.zip from www.airspayce.com/mikem/arduino/RadioHead/index.html following the readme.md. Then compiled them and written to Grove Mini Pro LP correctly using arduino ICE. But the message on a serial console of ICE was almost the same: WXLink Tx Present init failed Of course, I have the Lora board plugged into the D6/D7 of Grove Mini Pro LP, which was indicated in your manual... Best regards, Kazz
|
|
|
Post by SDL on Mar 26, 2020 16:59:55 GMT -8
Hmm. OK.
Have you swapped LoRa boards to make sure you don't have a bad board? Please post a picture of your connections on the Mini Pro LP board.
BP
|
|
|
Post by Kazz on Mar 26, 2020 17:30:12 GMT -8
Hmm. OK. Have you swapped LoRa boards to make sure you don't have a bad board? Please post a picture of your connections on the Mini Pro LP board. BP Yes. I swapped LoRa boads, but the relust was the same. I checked solders on the board, and thought it would be no problem. I wonder what is wrong.
I posted a picture here.
Best regards Kazz
|
|
|
Post by kazz on Mar 27, 2020 6:39:32 GMT -8
I put a debug code into an if_block in an initializing method of RH_RF95.cpp (from www.airspayce.com/mikem/arduino/RadioHead/index.html) at 57 as follows, and found out that an opration_mode which was wrriten could not be read. The result was the same even if a delay time was changed. If "return false" was commented, the transmitting program seemed to work well, but a SkyWeather Box could not received its data. --------------------------- // Set sleep mode, so we can also set LORA mode: spiWrite(RH_RF95_REG_01_OP_MODE, RH_RF95_MODE_SLEEP | RH_RF95_LONG_RANGE_MODE); delay(10); // Wait for sleep mode to take over from say, CAD // Check we are in sleep mode, with LORA set if (spiRead(RH_RF95_REG_01_OP_MODE) != (RH_RF95_MODE_SLEEP | RH_RF95_LONG_RANGE_MODE)) { Serial.println(spiRead(RH_RF95_REG_01_OP_MODE), HEX); // uncommented and activated return false; // No device present? } ------------------------------ Best regards Kazz
|
|
|
Post by SDL on Mar 29, 2020 17:52:28 GMT -8
Check on your Raspberry Pi to see that your serial ports are configured like this (where WXLink works fine). BP
|
|