Home › Forums › Mayfly Data Logger › Could not wake modem for clock sync
- This topic has 5 replies, 3 voices, and was last updated 2024-10-15 at 11:55 AM by Elliot Ma.
-
AuthorPosts
-
-
2024-10-10 at 3:35 PM #18682
Hi,
Continuing to run into a problem connecting our Mayfly to LTE, getting an error: “Could not wake modem for clock sync”.
I’ve seen this posted a lot but I still can’t find any concrete reasons as to why I’m getting this error. I’m using the “DRWI_SIM7080LTE” sample sketch and using a HYDROS 21 to connect.
I’ve generated, formatted, and connected all the appropriate UUIDs according to Monitormywatershed, and the serial clock monitor is saying that they’re all in a logical order. I’m also able to save data and it seems the sensor is working, it’s just giving me -9999 for connectivity to LTE and just not able to wake up the modem in general.
Some other info:
Using the SIM7080G, and the part of the sketch that corresponds is as follows:
/** Start [sim_com_sim7080] */
// For almost anything based on the SIMCom SIM7080G
#include <modems/SIMComSIM7080.h>// Create a reference to the serial port for the modem
HardwareSerial& modemSerial = Serial1; // Use hardware serial if possible
const int32_t modemBaud = 9600; // SIM7080 does auto-bauding by default, but
// for simplicity we set to 9600// Modem Pins – Describe the physical pin connection of your modem to your board
// NOTE: Use -1 for pins that do not applyconst int8_t modemVccPin = 18;
// MCU pin controlling modem power — Pin 18 is the power enable pin for the
// bee socket on Mayfly v1.0, use -1 if using Mayfly 0.5b or if the bee socket
// is constantly powered (ie you changed SJ18 on Mayfly 1.77u
const int8_t modemStatusPin = 19; // MCU pin used to read modem status
const int8_t modemSleepRqPin = 23; // MCU pin for modem sleep/wake request
const int8_t modemLEDPin = redLED; // MCU pin connected an LED to show modem
//// Network connection information
const char* apn =
“hologram”; // APN connection name, typically Hologram unless you have a
// different provider’s SIM card. Change as needed// Create the modem object
SIMComSIM7080 modem7080(&modemSerial, modemVccPin, modemStatusPin,
modemSleepRqPin, apn);
// Create an extra reference to the modem by a generic name
SIMComSIM7080 modem = modem7080;
/** End [sim_com_sim7080] */Let me know if any other information is needed.
Thank you
-
2024-10-10 at 3:49 PM #18683
Also double checked hologram.io to check to see if the sim is active, it is. I’ve also tried swapping the battery out, taking the sd card in/out, and have messed around with
const int8_t modemVccPin = 18;
and have swapped it from 18 to -1 as per the commented code, but it has not worked.
-
2024-10-10 at 4:23 PM #18684
Does the red power light on the lower right of the modem turn on? If not, the modem isn’t getting power. Pin 18 should be the right pin number. I’m not sure why it wouldn’t be powering up. Have you ever messed with the solder jumpers?
If the modem is powering up, you might have a baud rate problem. Try setting the modemBaud to 57600 even 115200.
If neither of those work, then try dumping out debugging info. If you’re using PlatformIO, add this to your platformio.ini file within your default enviroment:
<div>
<div>INI123456build_flags =-D MS_SIMCOMSIM7080_DEBUG-D MS_SIMCOMSIM7080_DEBUG_DEEP-D MS_LOGGERMODEM_DEBUG-D MS_LOGGERMODEM_DEBUG_DEEP-D TINY_GSM_DEBUG=Serial</div>
</div>
If you’re using the Arduino IDE, add#define TINY_GSM_DEBUG Serial
to the very top of your logging program. Then navigate to the ModularSensors folder within your libraries. In that folder, open up The ModularSensors folder, then the src folder. Open LoggerModem.h and remove the comment slashes from lines 27 and 28 (lines start with #define MS_LOGGERMODEM_DEBUG). The go into the modems subfolder, open SIMComSIM7080.h and remove the comment slashes from lines 47 and 48 ((lines start with#define MS_SIMCOMSIM7080_DEBUG). Save all of the files.Re-program your board with the debugging on and you should get lengthy print-outs about the modem communication. With that, I can better help find what’s wrong.
-
2024-10-10 at 4:32 PM #18685
Hi,
Thanks for the quick reply! I am not getting any red lights on the modem at all. I have the Mayfly plugged into my pc right now and the only lights are the orange charge light, the USB/POWER lights, and D8 is lit up as green right now.
The modem seems to be correctly seated according to the instructions. We previously were able to get this logger working before with a Clarivue10 but we ran into a bug where the logger eventually stopped saving anything to the sd card + wasn’t uploading to monitormywatershed, but it seems to be saving fine to the sd card with the Hydros 21 currently, only the LTE is not working.
I will work on getting the debugging info and get back to you.
Thanks so much,
Elliot
-
2024-10-10 at 10:00 PM #18688
Can you email me the entire .ino sketch that you’re using with the board, and also a clear, in-focus photo of the back of the Mayfly board, and the front of the Mayfly board, with and without the LTEbee attached.
-
2024-10-15 at 11:55 AM #18699
Hi Shannon and Sara,
Thanks for taking a look at this. I actually JUST fixed it, and I’m not sure what I did correctly?
Nothing I did was able to wake the modem, and like Sara said, it wasn’t receiving power. I was in the midst of taking those photos you request Shannon, and I think just unplugging everything and plugging it back in fixed it… I’m very embarrassed haha.
Thank you guys anyway!
Elliot
-
-
AuthorPosts
- You must be logged in to reply to this topic.