Home › Forums › Mayfly Data Logger › Could not wake modem for clock sync › Reply To: Could not wake modem for clock sync
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>
1 2 3 4 5 6 |
build_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.