eModbus / eModbus

Modbus library for RTU, ASCII and TCP protocols. Primarily developed on and for ESP32 MCUs.

Home Page:https://emodbus.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Modbus is not Responding when the PPP communication is established

Thermelgy-Repo opened this issue · comments

Thank you Team for your great library, we are using this library more than 1 yrs working amazingly, Recently found an issue:

We are using RS485 Modbus RTU in Serial2 UART of esp32 & GSM module is connected to GPIO26, 27 & configured as explicit UART. The communication with GSM module is established with PPP.
Individually both are working perfectly & while integrating also when no Modbus Slave is connected both the modules are working perfectly.
But when the slave is connected, initially both PPP & eModbus are working, But after the PPP establishes the connection the eModbus polling stops & the ModbusClientRTU.cpp logs are not showing. The PPP is working fine. As my preliminary assumption is that the Worker task is not executing. Is the HardwareSerial conflict caused the task to exit?

Build Log:

PLATFORM: Espressif 32 (3.5.0) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES: 
 - framework-arduinoespressif32 @ 3.10006.210326 (1.0.6) 
 - tool-esptoolpy @ 1.30100.210531 (3.1.0) 
 - toolchain-xtensa32 @ 2.50200.97 (5.2.0)
Dependency Graph
|-- eModbus @ 1.6.0

Note
Check the Serial Logs, After 01:11:16.731 ->, there is no ModbusClientRTU logs.

Serial Logs:

01:11:02.117 ->  Comm : PPP[V][PPPCom_Lib.cpp:58] PPP_init(): Waiting for PPPoS task to be created...
01:11:02.117 -> [I][GSMMain_Lib.cpp:33] M66_init(): Wait for GSM to connect...
01:11:02.117 -> WiFi range: 0 dBm
01:11:02.117 -> 1970-01-01 00:00:22  E rpc.c:287:mount_fs        FS -> /spiffs: 259
01:11:02.499 -> 1970-01-01 00:00:23  I log.c:18:mg_log_set       Setting log level to 1
01:11:02.499 -> 1970-01-01 00:00:23  E sock.c:117:ll_write       0x37 tUc -1/27 118
01:11:02.499 -> 1970-01-01 00:00:23  E sock.c:117:ll_write       0x37 tUc -1/33 118
01:11:02.499 -> [V] 23069| ModbusMessage.cpp    [ 477] checkData: Check data #3
01:11:02.499 -> Client disconnected
01:11:02.499 -> [D] 23071| ModbusClientRTU.cpp  [ 139] addRequestM: request for 01/03
01:11:02.499 -> Re-attempting to connect
01:11:02.499 -> [D] 23079| ModbusClientRTU.cpp  [ 240] handleConnection: Pulled request from queue
01:11:02.499 -> [D] 23079| ModbusClientRTU.cpp  [ 222] addToQueue: RC=01
01:11:02.499 -> Connecting as: MQCL_Serv1_Dev
01:11:02.499 -> [D] Sent packet: @3FFD32E0/6:
01:11:02.499 -> [D] 23095| ModbusClientRTU.cpp  [ 150] addRequestM: RC=00
01:11:02.499 ->   | 0000: 01 03 10 04 00 08                                 |......          |
01:11:02.499 -> [D] 23110| ModbusClientRTU.cpp  [ 245] handleConnection: Request sent.
01:11:02.595 -> [V] 23157| RTUutils.cpp         [ 289] receive: 1844us without data
01:11:02.595 -> [D] Raw buffer received: @3FFDEC44/21:
01:11:02.595 ->   | 0000: 01 03 10 00 01 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:02.595 ->   | 0010: 00 00 00 25 59                                    |...%Y           |
01:11:02.595 -> [D] Received packet: @3FFD338C/19:
01:11:02.595 ->   | 0000: 01 03 10 00 01 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:02.595 ->   | 0010: 00 00 00                                          |...             |
01:11:02.595 -> [D] 23185| ModbusClientRTU.cpp  [ 259] handleConnection: Data response (19 bytes) received.
01:11:02.643 -> [V] Data: @3FFD338C/19:
01:11:02.643 ->   | 0000: 01 03 10 00 01 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:02.643 ->   | 0010: 00 00 00                                          |...             |
01:11:02.643 -> [D] 23209| ModbusClientRTU.cpp  [ 280] handleConnection: Response generated.
01:11:02.643 -> [V] Response packet: @3FFD338C/19:
01:11:02.643 ->   | 0000: 01 03 10 00 01 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:02.643 ->   | 0010: 00 00 00                                          |...             |
01:11:02.643 -> [D] Data: @3FFB382C/19:
01:11:02.643 ->   | 0000: 01 03 10 00 01 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:02.643 ->   | 0010: 00 00 00                                          |...             |
 -> [D] 25646| ModbusClientRTU.cpp  [ 280] handleConnection: Response generated.
01:11:05.085 -> [V] Response packet: @3FFD33A4/53:
01:11:05.085 ->   | 0000: 02 03 32 00 00 00 00 00  00 00 00 00 00 00 00 00  |..2.............|
01:11:05.085 ->   | 0010: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:05.085 ->   | 0020: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:05.085 ->   | 0030: 00 00 00 00 00                                    |.....           |
01:11:05.085 -> [D] Data: @3FFDEC44/53:
01:11:05.085 ->   | 0000: 02 03 32 00 00 00 00 00  00 00 00 00 00 00 00 00  |..2.............|
01:11:05.085 ->   | 0010: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:05.085 ->   | 0020: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:05.085 ->   | 0030: 00 00 00 00 00                                    |.....           |
01:11:05.181 -> [V] 25769| ModbusMessage.cpp    [ 477] checkData: Check data #3
01:11:05.181 -> [D] 25769| ModbusClientRTU.cpp  [ 139] addRequestM: request for 03/03
01:11:05.181 -> [D] 25769| ModbusClientRTU.cpp  [ 222] addToQueue: RC=01
01:11:05.181 -> [D] 25770| ModbusClientRTU.cpp  [ 240] handleConnection: Pulled request from queue
01:11:05.181 -> [D] 25774| ModbusClientRTU.cpp  [ 150] addRequestM: RC=00
01:11:05.181 -> [D] Sent packet: @3FFD32C8/6:
01:11:05.181 ->   | 0000: 03 03 00 00 00 1A                                 |......          |
01:11:05.181 -> [D] 25796| ModbusClientRTU.cpp  [ 245] handleConnection: Request sent.
01:11:05.276 -> [V] 25828| RTUutils.cpp         [ 289] receive: 1836us without data
01:11:05.276 -> [D] Raw buffer received: @3FFDEC44/5:
01:11:05.276 ->   | 0000: 03 83 02 61 31                                    |...a1           |
01:11:05.276 -> [D] Received packet: @3FFBC880/3:
01:11:05.276 ->   | 0000: 03 83 02                                          |...             |
01:11:05.276 -> [D] 25843| ModbusClientRTU.cpp  [ 259] handleConnection: Data response (3 bytes) received.
01:11:05.276 -> [V] Data: @3FFBC880/3:
01:11:05.276 ->   | 0000: 03 83 02                                          |...             |
01:11:05.276 -> [D] 25860| ModbusClientRTU.cpp  [ 280] handleConnection: Response generated.
01:11:05.276 -> [V] Response packet: @3FFBC880/3:
01:11:05.276 ->   | 0000: 03 83 02                                          |...             |
01:11:05.276 -> Packet error P5: 02 - Illegal data address
01:11:05.517 -> [V] 26069| ModbusMessage.cpp    [ 477] checkData: Check data #3
01:11:05.517 -> [D] 26069| ModbusClientRTU.cpp  [ 139] addRequestM: request for 01/03
01:11:05.517 -> [D] 26069| ModbusClientRTU.cpp  [ 222] addToQueue: RC=01
01:11:05.517 -> [D] 26070| ModbusClientRTU.cpp  [ 240] handleConnection: Pulled request from queue
01:11:05.517 -> [D] 26074| ModbusClientRTU.cpp  [ 150] addRequestM: RC=00
01:11:05.517 -> [D] Sent packet: @3FFD32C8/6:
01:11:05.517 ->   | 0000: 01 03 10 04 00 08                                 |......          |
01:11:05.517 -> [D] 26096| ModbusClientRTU.cpp  [ 245] handleConnection: Request sent.
01:11:05.517 -> 
01:11:05.517 -> 
01:11:05.517 ->  Second : 3000
01:11:05.517 -> NVS to Relay Trig
01:11:05.517 -> IRLY : {{1,0},{2,0},{3,0},{4,0},}[V] 26141| RTUutils.cpp         [ 289] receive: 1837us without data
01:11:05.565 -> [D] Raw buffer received: @3FFDEC44/21:
01:11:05.565 ->   | 0000: 01 03 10 00 01 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:05.565 ->   | 0010: 00 00 00 25 59                                    |...%Y           |
01:11:05.565 -> [D] Received packet: @3FFDEE54/19:
01:11:05.565 ->   | 0000: 01 03 10 00 01 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:05.565 ->   | 0010: 00 00 00                                          |...             |
01:11:05.565 -> [D] 26169| ModbusClientRTU.cpp  [ 259] handleConnection: Data response (19 bytes) received.
01:11:05.612 -> [V] Data: @3FFDEE54/19:
01:11:05.612 ->   | 0000: 01 03 10 00 01 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:05.612 ->   | 0010: 00 00 00                                          |...             |
01:11:05.612 -> [D] 26193| ModbusClientRTU.cpp  [ 280] handleConnection: Response generated.
01:11:05.612 -> [V] Response packet: @3FFDEE54/19:
01:11:05.612 ->   | 0000: 01 03 10 00 01 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:05.612 ->   | 0010: 00 00 00                                          |...             |
01:11:05.612 -> [D] Data: @3FFD33A4/19:
01:11:05.660 ->   | 0000: 01 03 10 00 01 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:05.660 ->   | 0010: 00 00 00                                          |...             |
01:11:05.660 -> [D][esp32-hal-i2c.c:1353] i2cProcQueue():  Gross Timeout Dead start=0x6673, end=0x6674, =1, max=52 error=1
01:11:05.660 -> [E][esp32-hal-i2c.c:318] i2cDumpI2c(): i2c=0x3ffc0634
01:11:05.660 -> [I][esp32-hal-i2c.c:319] i2cDumpI2c(): dev=0x60013000 date=0x16042000
01:11:05.660 -> [I][esp32-hal-i2c.c:321] i2cDumpI2c(): lock=0x3ffb83e8
01:11:05.660 -> [I][esp32-hal-i2c.c:323] i2cDumpI2c(): num=0
01:11:05.660 -> [I][esp32-hal-i2c.c:324] i2cDumpI2c(): mode=1
01:11:05.708 -> [I][esp32-hal-i2c.c:325] i2cDumpI2c(): stage=3
01:11:05.708 -> [I][esp32-hal-i2c.c:326] i2cDumpI2c(): error=1
01:11:05.708 -> [I][esp32-hal-i2c.c:327] i2cDumpI2c(): event=0x3ffb8490 bits=10
01:11:05.708 -> [I][esp32-hal-i2c.c:328] i2cDumpI2c(): intr_handle=0x3ffb84c4
01:11:05.708 -> [I][esp32-hal-i2c.c:329] i2cDumpI2c(): dq=0x3ffd33c8
01:11:05.708 -> [I][esp32-hal-i2c.c:330] i2cDumpI2c(): queueCount=1
01:11:05.708 -> [I][esp32-hal-i2c.c:331] i2cDumpI2c(): queuePos=0
01:11:05.708 -> [I][esp32-hal-i2c.c:332] i2cDumpI2c(): errorByteCnt=-1
01:11:05.708 -> [I][esp32-hal-i2c.c:333] i2cDumpI2c(): errorQueue=0
01:11:05.755 -> [I][esp32-hal-i2c.c:334] i2cDumpI2c(): debugFlags=0x00000000
01:11:05.755 -> [I][esp32-hal-i2c.c:311] i2cDumpDqData(): Debug Buffer not Enabled
01:11:05.755 -> [I][esp32-hal-i2c.c:354] i2cDumpInts(): Debug Buffer not Enabled
01:11:05.755 -> 1970-01-01 00:00:26    mDash.c:203:timercb       ram: 133988, 2 0x3ffd2178/0x0/0x3ffd2e6c
01:11:05.755 -> 1970-01-01 00:00:26  E event.c:18:mg_error       0x38 DNS timeout
01:11:05.755 -> 1970-01-01 00:00:26  E event.c:18:mg_error       0x36 DNS timeout
01:11:05.755 -> 1970-01-01 00:00:26  I mDash.c:119:dev_cb        disconnected, ram 134148
01:11:05.755 -> 1970-01-01 00:00:26    event.c:32:mDashTriggerEv event 2, triggered 0 handlers
01:11:05.803 -> 1970-01-01 00:00:26    sock.c:228:close_conn     0x36 closed
01:11:05.803 -> 
01:11:05.803 -> IDI : 1, 1, 1, 1, 
01:11:05.803 -> IRLY : {{1,0},{2,0},{3,0},{4,0},}Pkt1 - Fail: 0, Succ: 3, Pkt2 - Fail: 0, Succ: 2, Pkt3 - Fail: 0, Succ: 2, Pkt4 - Fail: 0, Succ: 2, Pkt5 - Fail: 2, Succ: 0, 
01:11:05.803 -> Param1: 0.00, Param2: 0.00, Param3: 0.00, Param4: 0.00, Param5: 0.00, Param6: 0.00, Param7: 0.00, Param8: 0.00, Param9: 0.00, Param10: 0.00, Param11: 0.00, Param12: 0.00, Param13: 0.00, Param14: 0.00, Param15: 0.00, 
01:11:05.850 -> Free Heap : 238880
01:11:05.850 -> [V] 26400| ModbusMessage.cpp    [ 477] checkData: Check data #3
01:11:05.850 -> [D] 26406| ModbusClientRTU.cpp  [ 139] addRequestM: request for 02/03
01:11:05.850 -> [D] 26412| ModbusClientRTU.cpp  [ 222] addToQueue: RC=01
01:11:05.850 -> [D] 26412| ModbusClientRTU.cpp  [ 240] handleConnection: Pulled request from queue
01:11:05.850 -> [D] 26416| ModbusClientRTU.cpp  [ 150] addRequestM: RC=00
01:11:05.850 -> [D] Sent packet: @3FFD32E0/6:
01:11:05.850 ->   | 0000: 02 03 0A 8B 00 02                                 |......          |
01:11:05.850 -> [D] 26438| ModbusClientRTU.cpp  [ 245] handleConnection: Request sent.
01:11:05.898 -> [V] 26485| RTUutils.cpp         [ 289] receive: 1845us without data
01:11:05.898 -> [D] Raw buffer received: @3FFD2454/9:
01:11:05.898 ->   | 0000: 02 03 04 00 00 00 00 C9  33                       |........3       |
01:11:05.898 -> [D] Received packet: @3FFBC880/7:
01:11:05.898 ->   | 0000: 02 03 04 00 00 00 00                              |.......         |
01:11:05.898 -> [D] 26500| ModbusClientRTU.cpp  [ 259] handleConnection: Data response (7 bytes) received.
01:11:05.898 -> [V] Data: @3FFBC880/7:
01:11:05.898 ->   | 0000: 02 03 04 00 00 00 00                              |.......         |
01:11:05.898 -> [D] 26517| ModbusClientRTU.cpp  [ 280] handleConnection: Response generated.
01:11:05.945 -> [V] Response packet: @3FFBC880/7:
01:11:05.945 ->   | 0000: 02 03 04 00 00 00 00                              |.......         |
01:11:05.945 -> [D] Data: @3FFBDA08/7:
01:11:05.945 ->   | 0000: 02 03 04 00 00 00 00                              |.......         |
01:11:06.142 -> [V] 26700| ModbusMessage.cpp    [ 477] checkData: Check data #3
01:11:06.142 -> [D] 26700| ModbusClientRTU.cpp  [ 139] addRequestM: request for 02/03
01:11:06.142 -> [D] 26700| ModbusClientRTU.cpp  [ 222] addToQueue: RC=01
01:11:06.142 -> [D] 26701| ModbusClientRTU.cpp  [ 240] handleConnection: Pulled request from queue
01:11:06.142 -> [D] 26705| ModbusClientRTU.cpp  [ 150] addRequestM: RC=00
01:11:06.142 -> [D] Sent packet: @3FFD32E0/6:
01:11:06.142 ->   | 0000: 02 03 0B B7 00 1D                                 |......          |
01:11:06.142 -> [D] 26727| ModbusClientRTU.cpp  [ 245] handleConnection: Request sent.
01:11:06.233 -> [V] 26801| RTUutils.cpp         [ 289] receive: 1838us without data
01:11:06.233 -> [D] Raw buffer received: @3FFD2454/63:
01:11:06.233 ->   | 0000: 02 03 3A 00 00 00 00 00  00 00 00 00 00 00 00 00  |..:.............|
01:11:06.233 ->   | 0010: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:06.233 ->   | 0020: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:06.233 ->   | 0030: 00 00 00 00 00 00 00 00  00 00 00 00 00 41 F2     |.............A. |
01:11:06.233 -> [D] Received packet: @3FFD1F14/61:
01:11:06.233 ->   | 0000: 02 03 3A 00 00 00 00 00  00 00 00 00 00 00 00 00  |..:.............|
01:11:06.281 ->   | 0010: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:06.281 ->   | 0020: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:06.281 ->   | 0030: 00 00 00 00 00 00 00 00  00 00 00 00 00           |.............   |
01:11:06.281 -> [D] 26857| ModbusClientRTU.cpp  [ 259] handleConnection: Data response (61 bytes) received.
01:11:06.281 -> [V] Data: @3FFD1F14/61:
01:11:06.281 ->   | 0000: 02 03 3A 00 00 00 00 00  00 00 00 00 00 00 00 00  |..:.............|
01:11:06.281 ->   | 0010: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:06.329 ->   | 0020: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:06.329 ->   | 0030: 00 00 00 00 00 00 00 00  00 00 00 00 00           |.............   |
01:11:06.329 -> [D] 26895| ModbusClientRTU.cpp  [ 280] handleConnection: Response generated.
01:11:06.329 -> [V] Response packet: @3FFD1F14/61:
01:11:06.329 ->   | 0000: 02 03 3A 00 00 00 00 00  00 00 00 00 00 00 00 00  |..:.............|
01:11:06.329 ->   | 0010: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:06.329 ->   | 0020: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:06.376 ->   | 0030: 00 00 00 00 00 00 00 00  00 00 00 00 00           |.............   |
01:11:06.376 -> [D] Data: @3FFD2178/61:
01:11:06.376 ->   | 0000: 02 03 3A 00 00 00 00 00  00 00 00 00 00 00 00 00  |..:.............|
01:11:06.376 ->   | 0010: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:06.376 ->   | 0020: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:06.376 ->   | 0030: 00 00 00 00 00 00 00 00  00 00 00 00 00           |.............   |
01:11:06.425 -> [V] 27000| ModbusMessage.cpp    [ 477] checkData: Check data #3
01:11:06.425 -> [D] 27000| ModbusClientRTU.cpp  [ 139] addRequestM: request for 02/03
01:11:06.425 -> [D] 27000| ModbusClientRTU.cpp  [ 222] addToQueue: RC=01
01:11:06.425 -> [D] 27001| ModbusClientRTU.cpp  [ 240] handleConnection: Pulled request from queue
01:11:06.425 -> [D] 27005| ModbusClientRTU.cpp  [ 150] addRequestM: RC=00
01:11:06.425 -> [D] Sent packet: @3FFD32E0/6:
01:11:06.425 ->   | 0000: 02 03 0B ED 00 19                                 |......          |
01:11:06.425 -> [D] 27027| ModbusClientRTU.cpp  [ 245] handleConnection: Request sent.
01:11:06.472 -> Connecting as: MQCL_Serv1_Dev
01:11:06.519 -> [V] 27100| RTUutils.cpp         [ 289] receive: 1835us without data
01:11:06.519 -> [D] Raw buffer received: @3FFD2454/55:
01:11:06.519 ->   | 0000: 02 03 32 00 00 00 00 00  00 00 00 00 00 00 00 00  |..2.............|
01:11:06.519 ->   | 0010: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:06.519 ->   | 0020: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:06.519 ->   | 0030: 00 00 00 00 00 41 44                              |.....AD         |
01:11:06.519 -> [D] Received packet: @3FFD1F14/53:
01:11:06.519 ->   | 0000: 02 03 32 00 00 00 00 00  00 00 00 00 00 00 00 00  |..2.............|
01:11:06.567 ->   | 0010: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:06.567 ->   | 0020: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:06.567 ->   | 0030: 00 00 00 00 00                                    |.....           |
01:11:06.567 -> [D] 27156| ModbusClientRTU.cpp  [ 259] handleConnection: Data response (53 bytes) received.
01:11:06.567 -> [V] Data: @3FFD1F14/53:
01:11:06.567 ->   | 0000: 02 03 32 00 00 00 00 00  00 00 00 00 00 00 00 00  |..2.............|
01:11:06.567 ->   | 0010: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:06.616 ->   | 0020: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:06.616 ->   | 0030: 00 00 00 00 00                                    |.....           |
01:11:06.616 -> [D] 27193| ModbusClientRTU.cpp  [ 280] handleConnection: Response generated.
01:11:06.616 -> [V] Response packet: @3FFD1F14/53:
01:11:06.616 ->   | 0000: 02 03 32 00 00 00 00 00  00 00 00 00 00 00 00 00  |..2.............|
01:11:06.616 ->   | 0010: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:06.616 ->   | 0020: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:06.663 ->   | 0030: 00 00 00 00 00                                    |.....           |
01:11:12.720 -> [V] 33314| ModbusMessage.cpp    [ 477] checkData: Check data #3
01:11:12.720 -> [D] 33314| ModbusClientRTU.cpp  [ 139] addRequestM: request for 03/03
01:11:12.720 -> [D] 33314| ModbusClientRTU.cpp  [ 222] addToQueue: RC=01
01:11:12.720 -> [D] 33315| ModbusClientRTU.cpp  [ 240] handleConnection: Pulled request from queue
01:11:12.720 -> [D] 33319| ModbusClientRTU.cpp  [ 150] addRequestM: RC=00
01:11:12.720 -> [D] Sent packet: @3FFD2EE8/6:
01:11:12.720 ->   | 0000: 03 03 00 00 00 1A                                 |......          |
01:11:12.720 -> [D] 33341| ModbusClientRTU.cpp  [ 245] handleConnection: Request sent.
01:11:12.816 -> [V] 33383| RTUutils.cpp         [ 289] receive: 1838us without data
01:11:12.816 -> [D] Raw buffer received: @3FFD295C/5:
01:11:12.816 ->   | 0000: 03 83 02 61 31                                    |...a1           |
01:11:12.816 -> [D] Received packet: @3FFB5F6C/3:
01:11:12.816 ->   | 0000: 03 83 02                                          |...             |
01:11:12.816 -> [D] 33398| ModbusClientRTU.cpp  [ 259] handleConnection: Data response (3 bytes) received.
01:11:12.816 -> [V] Data: @3FFB5F6C/3:
01:11:12.816 ->   | 0000: 03 83 02                                          |...             |
01:11:12.816 -> [D] 33414| ModbusClientRTU.cpp  [ 280] handleConnection: Response generated.
01:11:12.816 -> [V] Response packet: @3FFB5F6C/3:
01:11:12.816 ->   | 0000: 03 83 02                                          |...             |
01:11:12.816 -> Packet error P5: 02 - Illegal data address
01:11:13.053 -> 1970-01-01 00:00:33    mDash.c:203:timercb       ram: 134280, 2 0x3ffd1f14/0x0/0x0
01:11:13.053 -> [V] 33614| ModbusMessage.cpp    [ 477] checkData: Check data 1970[-0[e[D] 33616| ModbusClientRTU.cpp  [ 240] handleConnection: Pulled request from queue
01:11:13.053 -> [D] Sent packet: @3FFD240C/6:
01:11:13.053 ->   | 0000: 01 03 10 04 00 08                                 |......          |
01:11:13.053 -> [D] 33632| ModbusClientRTU.cpp  [ 245] handleConnection: Request sent.
01:11:13.053 -> 1-01 00:00:33    sock.c:303:mg_connect     0x3c -> udp://time.google.com:123
01:11:13.053 -> 1970-01-01 00:00:33    dns.c:203:mg_resolve      0x3c resolving time.google.com, txnid 6
01:11:13.053 -> 1970-01-01 00:00:33  E sock.c:117:ll_write       0x37 tUc -1/33 118
01:11:13.100 -> [V] 33692| RTUutils.cpp         [ 289] receive: 1845us without data
01:11:13.100 -> [D] Raw buffer received: @3FFD2A34/21:
01:11:13.100 ->   | 0000: 01 03 10 00 01 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:13.100 ->   | 0010: 00 00 00 25 59                                    |...%Y           |
01:11:13.100 -> [D] Received packet: @3FFD2C44/19:
01:11:13.100 ->   | 0000: 01 03 10 00 01 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:13.100 ->   | 0010: 00 00 00                                          |...             |
01:11:13.100 -> [D] 33721| ModbusClientRTU.cpp  [ 259] handleConnection: Data response (19 bytes) received.
01:11:13.148 -> [V] Data: @3FFD2C44/19:

01:11:14.722 -> [I][GSMMain_Lib.cpp:202] sendATCommand(): Command: AT
01:11:14.865 -> [V] 35451| ModbusMessage.cpp    [ 477] checkData: Check data #3
01:11:14.865 -> [D] 35451| ModbusClientRTU.cpp  [ 139] addRequestM: request for 01/03
01:11:14.865 -> [D] 35451| ModbusClientRTU.cpp  [ 222] addToQueue: RC=01
01:11:14.865 -> [D] 35452| ModbusClientRTU.cpp  [ 240] handleConnection: Pulled request from queue
01:11:14.865 -> [D] Sent packet: @3FFD1FB8/6:
01:11:14.865 ->   | 0000: 01 03 10 04 00 08                                 |......          |
01:11:14.865 -> [D] 35473| ModbusClientRTU.cpp  [ 245] handleConnection: Request sent.
01:11:14.961 -> [V] 35537| RTUutils.cpp         [ 289] receive: 1837us without data
01:11:14.961 -> [D] Raw buffer received: @3FFD2A4C/149:
01:11:14.961 ->   | 0000: 01 03 10 00 01 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:14.961 ->   | 0010: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:14.961 ->   | 0020: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:14.961 ->   | 0030: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:14.961 ->   | 0040: 00 00 41 F2 02 03 32 00  00 00 00 00 00 00 00 00  |..A...2.........|
01:11:14.961 ->   | 0050: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:15.009 ->   | 0060: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:15.009 ->   | 0070: 00 00 00 00 00 00 00 00  00 41 44 03 83 02 61 31  |.........AD...a1|
01:11:15.009 ->   | 0080: 01 03 10 00 01 00 00 00  00 00 00 00 00 00 00 00  |................|
01:11:15.009 ->   | 0090: 00 00 00 25 59                                    |...%Y           |
01:11:15.009 -> [D] Received packet: @3FFD1FB8/1:
01:11:15.009 ->   | 0000: E2                                                |.               |
01:11:15.009 -> [D] 35614| ModbusClientRTU.cpp  [ 259] handleConnection: Error response (1 bytes) received.
01:11:15.057 -> [V] Data: @3FFD1FB8/1:
01:11:15.057 ->   | 0000: E2                                                |.               |
01:11:15.057 -> [D] 35631| ModbusClientRTU.cpp  [ 280] handleConnection: Response generated.
01:11:15.057 -> [V] Response packet: @3FFD1FB8/3:
01:11:15.057 ->   | 0000: 01 83 E2                                          |...             |
01:11:15.057 -> Packet error P1: E2 - CRC check error
01:11:15.208 -> 1970-01-01 00:00:35    mDash.c:203:timercb       ram: 133672, 2 0x3ffd1f14/0x0/0x3ffd29c0
01:11:15.208 -> 1970-01-01 00:00:35  E event.c:18:mg_error       0x3b DNS timeout
01:11:16.211 -> 1970-01-01 00:00:36    mDash.c:203:timercb       ram: 133672, 2 0x3ffd1f14/0x0/0x3ffd29c0
01:11:16.211 -> 1970-01-01 00:00:36  I mDash.c:119:dev_cb        disconnected, ram 133704
01:11:16.211 -> 1970-01-01 00:00:36    event.c:32:mDashTriggerEv event 2, triggered 0 handlers
01:11:16.211 -> 1970-01-01 00:00:36    sock.c:228:close_conn     0x3b closed
01:11:16.211 -> 1970-01-01 00:00:36  E event.c:18:mg_error       0x3c DNS timeout
01:11:16.731 -> [I][GSMMain_Lib.cpp:244] sendATCommand(): t=2000, Resp Timeout: ^{⸮�⸮��⸮⸮p���
01:11:16.731 -> Connecting as: MQCL_Serv1_Dev
01:11:16.731 -> [D] 35456| ModbusClientRTU.cpp  [ 150] addRequestM: RC=00
01:11:17.259 -> 1970-01-01 00:00:37    mDash.c:203:timercb       ram: 173408, 2 0x0/0x0/0x3ffd29c0
01:11:17.259 -> 1970-01-01 00:00:37    sock.c:303:mg_connect     0x3d -> wss://mdash.net/api/v2/rpc
01:11:17.259 -> 1970-01-01 00:00:37    dns.c:203:mg_resolve      0x3d resolving mdash.net, txnid 7
01:11:17.259 -> 1970-01-01 00:00:37  E sock.c:117:ll_write       0x37 tUc -1/27 118
01:11:17.259 -> 1970-01-01 00:00:37    tls.c:59:mg_tls_init      0x3d Setting TLS, CA: /spiffs/ca.pem, cert: null, key: null
01:11:17.259 -> 1970-01-01 00:00:37    sock.c:228:close_conn     0x3c closed
01:11:17.451 -> 
01:11:17.451 -> 
01:11:17.451 ->  Second : 5000
01:11:17.499 -> IDI : 1, 1, 1, 1, 
01:11:17.499 -> IRLY : {{1,0},{2,0},{3,0},{4,0},}Pkt1 - Fail: 1, Succ: 8, Pkt2 - Fail: 0, Succ: 8, Pkt3 - Fail: 0, Succ: 8, Pkt4 - Fail: 0, Succ: 8, Pkt5 - Fail: 8, Succ: 0, 
01:11:17.499 -> Param1: 0.00, Param2: 0.00, Param3: 0.00, Param4: 0.00, Param5: 0.00, Param6: 0.00, Param7: 0.00, Param8: 0.00, Param9: 0.00, Param10: 0.00, Param11: 0.00, Param12: 0.00, Param13: 0.00, Param14: 0.00, Param15: 0.00, 
01:11:17.499 -> Free Heap : 199088
01:11:17.835 -> [I][GSMMain_Lib.cpp:202] sendATCommand(): Command: +++
01:11:18.266 -> 1970-01-01 00:00:38    mDash.c:203:timercb       ram: 134080, 2 0x3ffd1f14/0x0/0x0
01:11:18.266 -> 1970-01-01 00:00:38    sock.c:303:mg_connect     0x3e -> udp://time.google.com:123
01:11:18.266 -> 1970-01-01 00:00:38    dns.c:203:mg_resolve      0x3e resolving time.google.com, txnid 8
01:11:18.266 -> 1970-01-01 00:00:38  E sock.c:117:ll_write       0x37 tUc -1/33 118
01:11:18.316 -> [I][GSMMain_Lib.cpp:244] sendATCommand(): t=500, Resp Timeout: ⸮⸮bKhY;5⸮���
01:11:18.745 -> Connecting as: MQCL_Serv1_Dev
01:11:19.273 -> 1970-01-01 00:00:39    mDash.c:203:timercb       ram: 133520, 2 0x3ffd1f14/0x0/0x3ffd2c44
01:11:19.416 -> [I][GSMMain_Lib.cpp:202] sendATCommand(): Command: AT
01:11:20.279 -> 1970-01-01 00:00:40    mDash.c:203:timercb       ram: 133464, 2 0x3ffd1f14/0x0/0x3ffd2c44
01:11:20.279 -> 1970-01-01 00:00:40  E event.c:18:mg_error       0x3d DNS timeout
01:11:21.280 -> 1970-01-01 00:00:41    mDash.c:203:timercb       ram: 133464, 2 0x3ffd1f14/0x0/0x3ffd2c44
01:11:21.280 -> 1970-01-01 00:00:41  I mDash.c:119:dev_cb        disconnected, ram 133496
01:11:21.280 -> 1970-01-01 00:00:41    event.c:32:mDashTriggerEv event 2, triggered 0 handlers
01:11:21.280 -> 1970-01-01 00:00:41    sock.c:228:close_conn     0x3d closed
01:11:21.280 -> 1970-01-01 00:00:41  E event.c:18:mg_error       0x3e DNS timeout
01:11:21.425 -> [I][GSMMain_Lib.cpp:244] sendATCommand(): t=2000, Resp Timeout: 0⸮⸮⸮دu⸮~~!E
01:11:21.425 -> Connecting as: MQCL_Serv1_Dev
01:11:21.425 -> 
01:11:21.425 -> 
01:11:21.425 ->  Second : 3973
01:11:23.219 -> IDI : 1, 1, 1, 1, 
01:11:23.219 -> IRLY : {{1,0},{2,0},{3,0},{4,0},}Pkt1 - Fail: 1, Succ: 8, Pkt2 - Fail: 0, Succ: 8, Pkt3 - Fail: 0, Succ: 8, Pkt4 - Fail: 0, Succ: 8, Pkt5 - Fail: 8, Succ: 0, 
01:11:23.219 -> Param1: 0.00, Param2: 0.00, Param3: 0.00, Param4: 0.00, Param5: 0.00, Param6: 0.00, Param7: 0.00, Param8: 0.00, Param9: 0.00, Param10: 0.00, Param11: 0.00, Param12: 0.00, Param13: 0.00, Param14: 0.00, Param15: 0.00, 
01:11:23.219 -> Free Heap : 238216
01:11:23.219 -> 1970-01-01 00:00:42    mDash.c:203:timercb       ram: 173208, 2 0x0/0x0/0x3ffd2c44
01:11:23.219 -> 1970-01-01 00:00:42    sock.c:303:mg_connect     0x3f -> wss://mdash.net/api/v2/rpc
01:11:23.219 -> 1970-01-01 00:00:42    dns.c:203:mg_resolve      0x3f resolving mdash.net, txnid 9
01:11:23.219 -> 1970-01-01 00:00:42  E sock.c:117:ll_write       0x37 tUc -1/27 118
01:11:23.219 -> 1970-01-01 00:00:42    tls.c:59:mg_tls_init      0x3f Setting TLS, CA: /spiffs/ca.pem, cert: null, key: null
01:11:23.219 -> 1970-01-01 00:00:42    sock.c:228:close_conn     0x3e closed
01:11:23.219 -> MData: 
01:11:23.219 -> [I][GSMMain_Lib.cpp:202] sendATCommand(): Command: +++
01:11:23.219 -> [I][GSMMain_Lib.cpp:244] sendATCommand(): t=500, Resp Timeout: ⸮Z"7d]j⸮�⸮⸮/⸮⸮⸮c#
}1⸮P�⸮⸮e�
01:11:23.375 -> 1970-01-01 00:00:43    mDash.c:203:timercb       ram: 133876, 2 0x3ffd1f14/0x0/0x0
01:11:23.375 -> 1970-01-01 00:00:43    sock.c:303:mg_connect     0x36 -> udp://time.google.com:123
01:11:23.375 -> 1970-01-01 00:00:43    dns.c:203:mg_resolve      0x36 resolving time.google.com, txnid 10
01:11:23.375 -> 1970-01-01 00:00:43  E sock.c:117:ll_write       0x37 tUc -1/33 118
01:11:23.423 -> Connecting as: MQCL_Serv1_Dev
01:11:24.139 -> [I][GSMMain_Lib.cpp:202] sendATCommand(): Command: AT
01:11:24.331 -> 1970-01-01 00:00:44    mDash.c:203:timercb       ram: 133420, 2 0x3ffd1f14/0x0/0x3ffd2c38
01:11:25.336 -> 1970-01-01 00:00:45    mDash.c:203:timercb       ram: 133420, 2 0x3ffd1f14/0x0/0x3ffd2c38
01:11:25.336 -> 1970-01-01 00:00:45  E event.c:18:mg_error       0x3f DNS timeout
01:11:26.150 -> [I][GSMMain_Lib.cpp:244] sendATCommand(): t=2000, Resp Timeout: X`ג�⸮BX;⸮⸮�1⸮�P⸮�� }^{⸮�⸮��⸮⸮p���
01:11:26.150 -> Connecting as: MQCL_Serv1_Dev
01:11:26.150 -> 
01:11:26.150 -> 
01:11:26.150 ->  Second : 3672
01:11:26.196 -> IDI : 1, 1, 1, 1, 
01:11:26.196 -> IRLY : {{1,0},{2,0},{3,0},{4,0},}Pkt1 - Fail: 1, Succ: 8, Pkt2 - Fail: 0, Succ: 8, Pkt3 - Fail: 0, Succ: 8, Pkt4 - Fail: 0, Succ: 8, Pkt5 - Fail: 8, Succ: 0, 
01:11:26.196 -> Param1: 0.00, Param2: 0.00, Param3: 0.00, Param4: 0.00, Param5: 0.00, Param6: 0.00, Param7: 0.00, Param8: 0.00, Param9: 0.00, Param10: 0.00, Param11: 0.00, Param12: 0.00, Param13: 0.00, Param14: 0.00, Param15: 0.00, 
01:11:26.196 -> Free Heap : 198428
01:11:26.389 -> 1970-01-01 00:00:46    mDash.c:203:timercb       ram: 133420, 2 0x3ffd1f14/0x0/0x3ffd2c38
01:11:26.389 -> 1970-01-01 00:00:46  I mDash.c:119:dev_cb        disconnected, ram 133452
01:11:26.389 -> 1970-01-01 00:00:46    event.c:32:mDashTriggerEv event 2, triggered 0 handlers
01:11:26.389 -> 1970-01-01 00:00:46    sock.c:228:close_conn     0x3f closed
01:11:26.389 -> 1970-01-01 00:00:46  E event.c:18:mg_error       0x36 DNS timeout
01:11:27.248 -> [I][GSMMain_Lib.cpp:202] sendATCommand(): Command: +++
01:11:27.391 -> 1970-01-01 00:00:47    mDash.c:203:timercb       ram: 173104, 2 0x0/0x0/0x3ffd2c38
01:11:27.391 -> 1970-01-01 00:00:47    sock.c:303:mg_connect     0x38 -> wss://mdash.net/api/v2/rpc
01:11:27.391 -> 1970-01-01 00:00:47    dns.c:203:mg_resolve      0x38 resolving mdash.net, txnid 11
01:11:27.391 -> 1970-01-01 00:00:47  E sock.c:117:ll_write       0x37 tUc -1/27 118
01:11:27.391 -> 1970-01-01 00:00:48    tls.c:59:mg_tls_init      0x38 Setting TLS, CA: /spiffs/ca.pem, cert: null, key: null
01:11:27.391 -> 1970-01-01 00:00:48    sock.c:228:close_conn     0x36 closed
01:11:27.727 -> [I][GSMMain_Lib.cpp:244] sendATCommand(): t=500, Resp Timeout: 
01:11:28.110 -> Connecting as: MQCL_Serv1_Dev
01:11:28.441 -> 1970-01-01 00:00:49    mDash.c:203:timercb       ram: 133876, 2 0x3ffd1f14/0x0/0x0
01:11:28.441 -> 1970-01-01 00:00:49    sock.c:303:mg_connect     0x39 -> udp://time.google.com:123
01:11:28.441 -> 1970-01-01 00:00:49    dns.c:203:mg_resolve      0x39 resolving time.google.com, txnid 12
01:11:28.441 -> 1970-01-01 00:00:49  E sock.c:117:ll_write       0x37 tUc -1/33 118
01:11:28.823 -> [I][GSMMain_Lib.cpp:202] sendATCommand(): Command: AT
01:11:28.823 -> [I][GSMMain_Lib.cpp:235] sendATCommand(): t=1, Sucess Resp: �X`ג�⸮B\⸮⸮1�M�⸮I⸮⸮⸮�0⸮⸮⸮د�"~
01:11:28.823 -> OK
01:11:28.920 -> [I][GSMMain_Lib.cpp:147] PPPMode_disconnect(): Closing the PPP connection...
01:11:28.920 -> [I][GSMMain_Lib.cpp:202] sendATCommand(): Command: ATH
01:11:28.920 -> [I][GSMMain_Lib.cpp:235] sendATCommand(): t=1, Sucess Resp: 
01:11:28.920 -> 
01:11:28.920 -> OK
01:11:29.062 -> [I][GSMMain_Lib.cpp:40] M66_init(): Starting communication with module...
01:11:29.062 -> [I][GSMMain_Lib.cpp:202] sendATCommand(): Command: AT
01:11:29.062 -> [I][GSMMain_Lib.cpp:235] sendATCommand(): t=0, Sucess Resp: 
01:11:29.062 -> 
01:11:29.062 -> OK
01:11:29.111 -> 
01:11:29.111 -> 
01:11:29.111 ->  Second : 1400[I][GSMMain_Lib.cpp:45] M66_init(): Switching OFF echo mode...
01:11:29.159 -> [I][GSMMain_Lib.cpp:202] sendATCommand(): Command: ATE0
01:11:29.159 -> [I][GSMMain_Lib.cpp:235] sendATCommand(): t=0, Sucess Resp: 
01:11:29.159 -> 
01:11:29.159 -> OK
01:11:29.159 -> 
01:11:29.159 -> IDI : 1, 1, 1, 1, 
01:11:29.159 -> IRLY : {{1,0},{2,0},{3,0},{4,0},}Pkt1 - Fail: 1, Succ: 8, Pkt2 - Fail: 0, Succ: 8, Pkt3 - Fail: 0, Succ: 8, Pkt4 - Fail: 0, Succ: 8, Pkt5 - Fail: 8, Succ: 0, 
01:11:29.159 -> Param1: 0.00, Param2: 0.00, Param3: 0.00, Param4: 0.00, Param5: 0.00, Param6: 0.00, Param7: 0.00, Param8: 0.00, Param9: 0.00, Param10: 0.00, Param11: 0.00, Param12: 0.00, Param13: 0.00, Param14: 0.00, Param15: 0.00, 
01:11:29.206 -> Free Heap : 198428
01:11:29.254 -> [I][GSMMain_Lib.cpp:48] M66_init(): Checking if the device registered to a network...
01:11:29.254 -> [I][GSMMain_Lib.cpp:276] sendATCommand(): Command: AT+CREG?
01:11:29.254 -> [I][GSMMain_Lib.cpp:318] sendATCommand(): t=8, Success Timeout: 
01:11:29.254 -> 
01:11:29.254 -> OK
01:11:29.254 -> 
01:11:29.254 -> OK
01:11:29.254 -> 
01:11:29.254 -> OK
01:11:29.254 -> 
01:11:29.254 -> +CREG: 0,1
01:11:29.350 -> [I][GSMMain_Lib.cpp:53] M66_init(): Checking the signal strength...
01:11:29.350 -> [I][GSMMain_Lib.cpp:202] sendATCommand(): Command: AT+CSQ
01:11:29.444 -> 1970-01-01 00:00:50    mDash.c:203:timercb       ram: 133420, 2 0x3ffd1f14/0x0/0x3ffd2c38
01:11:30.352 -> [I][GSMMain_Lib.cpp:244] sendATCommand(): t=1000, Resp Timeout: 
01:11:30.352 -> 
01:11:30.352 -> OK
01:11:30.352 -> 
01:11:30.352 -> +CSQ: 21,0
01:11:30.352 -> 
01:11:30.352 -> OK
01:11:30.352 -> 
01:11:30.352 -> NO CARRIER
01:11:30.352 -> 
01:11:30.352 -> Connecting as: MQCL_Serv1_Dev
01:11:30.448 -> 1970-01-01 00:00:51    mDash.c:203:timercb       ram: 133420, 2 0x3ffd1f14/0x0/0x3ffd2c38
01:11:30.448 -> 1970-01-01 00:00:51  E event.c:18:mg_error       0x38 DNS timeout
01:11:30.448 -> [I][GSMMain_Lib.cpp:55] M66_init(): (0-9)=LOW, (10-14)=OK, (15-19)=GOOD, (20-31)=EXCELLENT
01:11:30.448 -> [I][GSMMain_Lib.cpp:57] M66_init(): Setting the PDP Context to IP...
01:11:30.448 -> [I][GSMMain_Lib.cpp:202] sendATCommand(): Command: AT+CGDCONT=1,"IP","www"
01:11:30.495 -> [I][GSMMain_Lib.cpp:235] sendATCommand(): t=17, Sucess Resp: 
01:11:30.495 -> OK
01:11:30.589 -> [I][GSMMain_Lib.cpp:65] M66_init(): GSM module is initialized
01:11:30.589 -> [I][GSMMain_Lib.cpp:102] M66_RFOn(): Switching ON GSM RF...
01:11:30.589 -> [I][GSMMain_Lib.cpp:202] sendATCommand(): Command: AT+CFUN=1
01:11:30.589 -> [I][GSMMain_Lib.cpp:235] sendATCommand(): t=6, Sucess Resp: 
01:11:30.589 -> 
01:11:30.589 -> OK
01:11:30.684 -> [I][GSMMain_Lib.cpp:131] PPPMode_connect(): Starting the PPP connection...
01:11:30.684 -> [I][GSMMain_Lib.cpp:202] sendATCommand(): Command: ATD*99#
01:11:30.684 -> [I][GSMMain_Lib.cpp:235] sendATCommand(): t=10, Sucess Resp: 
01:11:30.684 -> 
01:11:30.684 -> CONNECT
01:11:30.829 -> [I][PPPCom_Lib.cpp:429] pppos_client_task(): Starting PPP negotiation...
01:11:31.449 -> 1970-01-01 00:00:52    mDash.c:203:timercb       ram: 127504, 2 0x3ffd1f14/0x0/0x3ffd2c38
01:11:31.449 -> 1970-01-01 00:00:52  I mDash.c:119:dev_cb        disconnected, ram 127536
01:11:31.449 -> 1970-01-01 00:00:52    event.c:32:mDashTriggerEv event 2, triggered 0 handlers
01:11:31.449 -> 1970-01-01 00:00:52    sock.c:228:close_conn     0x38 closed
01:11:31.449 -> 1970-01-01 00:00:52  E event.c:18:mg_error       0x39 DNS timeout
01:11:32.497 -> 1970-01-01 00:00:53    mDash.c:203:timercb       ram: 167180, 2 0x0/0x0/0x3ffd2c38
01:11:32.497 -> 1970-01-01 00:00:53    sock.c:303:mg_connect     0x3a -> wss://mdash.net/api/v2/rpc
01:11:32.497 -> 1970-01-01 00:00:53    dns.c:203:mg_resolve      0x3a resolving mdash.net, txnid 13
01:11:32.497 -> 1970-01-01 00:00:53  E sock.c:117:ll_write       0x37 tUc -1/27 118
01:11:32.497 -> 1970-01-01 00:00:53    tls.c:59:mg_tls_init      0x3a Setting TLS, CA: /spiffs/ca.pem, cert: null, key: null
01:11:32.497 -> 1970-01-01 00:00:53    sock.c:228:close_conn     0x39 closed
01:11:32.879 -> Connecting as: MQCL_Serv1_Dev
01:11:32.928 -> 
01:11:32.928 -> 
01:11:32.928 ->  Second : 5151
01:11:33.166 -> IDI : 1, 1, 1, 1, 
01:11:33.166 -> IRLY : {{1,0},{2,0},{3,0},{4,0},}Pkt1 - Fail: 1, Succ: 8, Pkt2 - Fail: 0, Succ: 8, Pkt3 - Fail: 0, Succ: 8, Pkt4 - Fail: 0, Succ: 8, Pkt5 - Fail: 8, Succ: 0, 
01:11:33.166 -> Param1: 0.00, Param2: 0.00, Param3: 0.00, Param4: 0.00, Param5: 0.00, Param6: 0.00, Param7: 0.00, Param8: 0.00, Param9: 0.00, Param10: 0.00, Param11: 0.00, Param12: 0.00, Param13: 0.00, Param14: 0.00, Param15: 0.00, 
01:11:33.166 -> Free Heap : 192964
01:11:33.166 -> MData: 
01:11:33.166 -> 
01:11:33.166 ->  Minute : 0Data: {"client_id":"CF.CLI_id","machine_id":"CF.MCN_id","machine_type":"CF.MCN_typ","device_id":"CF.DEV_id","timestamp":"2023-04-27T01:11:23Z","ResponseStatus":0,"DEFAULT":{"MSG_TYPE":"ERR_STAT"}}
01:11:33.214 -> 
01:11:33.214 ->  Failed sent to Cloud
01:11:33.503 -> 1970-01-01 00:00:54    mDash.c:203:timercb       ram: 127956, 2 0x3ffba838/0x0/0x0
01:11:33.503 -> 1970-01-01 00:00:54    sock.c:303:mg_connect     0x3b -> udp://time.google.com:123
01:11:33.503 -> 1970-01-01 00:00:54    dns.c:203:mg_resolve      0x3b resolving time.google.com, txnid 14
01:11:33.503 -> 1970-01-01 00:00:54  E sock.c:117:ll_write       0x37 tUc -1/33 118
01:11:34.503 -> 1970-01-01 00:00:55    mDash.c:203:timercb       ram: 127428, 2 0x3ffba838/0x0/0x3ffd2c38
01:11:34.932 -> Connecting as: MQCL_Serv1_Dev
01:11:35.502 -> 1970-01-01 00:00:56    mDash.c:203:timercb       ram: 127464, 2 0x3ffba838/0x0/0x3ffd2c38
01:11:35.502 -> 1970-01-01 00:00:56  E event.c:18:mg_error       0x3a DNS timeout
01:11:35.884 -> 
01:11:35.884 -> 
01:11:35.884 ->  Second : 30001970-01-01 00:00:57    mDash.c:203:timercb       ram: 127428, 2 0x3ffba838/0x0/0x3ffd2c38
01:11:36.549 -> 1970-01-01 00:00:57  I mDash.c:119:dev_cb        disconnected, ram 127460
01:11:36.549 -> 1970-01-01 00:00:57    event.c:32:mDashTriggerEv event 2, triggered 0 handlers
01:11:36.549 -> 1970-01-01 00:00:57    sock.c:228:close_conn     0x3a closed
01:11:36.549 -> 1970-01-01 00:00:57  E event.c:18:mg_error       0x3b DNS timeout
01:11:36.787 -> 
01:11:36.787 -> IDI : 1, 1, 1, 1, 
01:11:36.787 -> IRLY : {{1,0},{2,0},{3,0},{4,0},}Pkt1 - Fail: 1, Succ: 8, Pkt2 - Fail: 0, Succ: 8, Pkt3 - Fail: 0, Succ: 8, Pkt4 - Fail: 0, Succ: 8, Pkt5 - Fail: 8, Succ: 0, 
01:11:36.787 -> Param1: 0.00, Param2: 0.00, Param3: 0.00, Param4: 0.00, Param5: 0.00, Param6: 0.00, Param7: 0.00, Param8: 0.00, Param9: 0.00, Param10: 0.00, Param11: 0.00, Param12: 0.00, Param13: 0.00, Param14: 0.00, Param15: 0.00, 
01:11:36.787 -> Free Heap : 232152
01:11:36.929 -> Connecting as: MQCL_Serv1_Dev
01:11:37.548 -> 1970-01-01 00:00:58    mDash.c:203:timercb       ram: 167140, 2 0x0/0x0/0x3ffd2c38
01:11:37.548 -> 1970-01-01 00:00:58    sock.c:303:mg_connect     0x3c -> wss://mdash.net/api/v2/rpc
01:11:37.548 -> 1970-01-01 00:00:58    dns.c:203:mg_resolve      0x3c resolving mdash.net, txnid 15
01:11:37.548 -> 1970-01-01 00:00:58  E sock.c:117:ll_write       0x37 tUc -1/27 118
01:11:37.548 -> 1970-01-01 00:00:58    tls.c:59:mg_tls_init      0x3c Setting TLS, CA: /spiffs/ca.pem, cert: null, key: null
01:11:37.548 -> 1970-01-01 00:00:58    sock.c:228:close_conn     0x3b closed
01:11:37.788 -> [I][PPPCom_Lib.cpp:185] ppp_status_cb(): PPP connection established
01:11:37.788 -> [I][PPPCom_Lib.cpp:187] ppp_status_cb(): Ipaddr = 100.68.162.135
01:11:37.788 -> [I][PPPCom_Lib.cpp:188] ppp_status_cb(): Gateway = 192.168.254.254
01:11:37.788 -> [I][PPPCom_Lib.cpp:189] ppp_status_cb(): Netmask = 255.255.255.255
01:11:37.788 -> [I][PPPCom_Lib.cpp:193] ppp_status_cb(): Ip6addr = ::
01:11:38.602 -> 1970-01-01 00:00:59    mDash.c:203:timercb       ram: 127956, 2 0x3ffd1f14/0x0/0x0
01:11:38.602 -> 1970-01-01 00:00:59    sock.c:303:mg_connect     0x3d -> udp://time.google.com:123
01:11:38.602 -> 1970-01-01 00:00:59    dns.c:203:mg_resolve      0x3d resolving time.google.com, txnid 16
01:11:38.889 -> 
01:11:38.889 -> 
01:11:38.889 ->  Second : 1000
01:11:38.936 -> IDI : 1, 1, 1, 1, 
01:11:38.936 -> IRLY : {{1,0},{2,0},{3,0},{4,0},}Pkt1 - Fail: 1, Succ: 8, Pkt2 - Fail: 0, Succ: 8, Pkt3 - Fail: 0, Succ: 8, Pkt4 - Fail: 0, Succ: 8, Pkt5 - Fail: 8, Succ: 0, 
01:11:38.936 -> Param1: 0.00, Param2: 0.00, Param3: 0.00, Param4: 0.00, Param5: 0.00, Param6: 0.00, Param7: 0.00, Param8: 0.00, Param9: 0.00, Param10: 0.00, Param11: 0.00, Param12: 0.00, Param13: 0.00, Param14: 0.00, Param15: 0.00, 
01:11:38.936 -> Free Heap : 192524
01:11:39.605 -> 1970-01-01 00:01:00    mDash.c:203:timercb       ram: 127516, 2 0x3ffd1f14/0x0/0x3ffd2c38
01:11:39.749 -> Connecting as: MQCL_Serv1_Dev
01:11:40.609 -> 1970-01-01 00:01:01    mDash.c:203:timercb       ram: 127412, 2 0x3ffd1f14/0x0/0x3ffd2c38
01:11:40.609 -> 1970-01-01 00:01:01  E event.c:18:mg_error       0x3c DNS timeout
01:11:41.613 -> 1970-01-01 00:01:02    mDash.c:203:timercb       ram: 127412, 2 0x3ffd1f14/0x0/0x3ffd2c38
01:11:41.613 -> 1970-01-01 00:01:02  I mDash.c:119:dev_cb        disconnected, ram 127448
01:11:41.613 -> 1970-01-01 00:01:02    event.c:32:mDashTriggerEv event 2, triggered 0 handlers
01:11:41.613 -> 1970-01-01 00:01:02    sock.c:228:close_conn     0x3c closed
01:11:41.613 -> 1970-01-01 00:01:02  E event.c:18:mg_error       0x3d DNS timeout
01:11:42.617 -> 1970-01-01 00:01:03    mDash.c:203:timercb       ram: 167104, 2 0x0/0x0/0x3ffd2c38
01:11:42.617 -> 1970-01-01 00:01:03    sock.c:303:mg_connect     0x3e -> wss://mdash.net/api/v2/rpc
01:11:42.617 -> 1970-01-01 00:01:03    dns.c:203:mg_resolve      0x3e resolving mdash.net, txnid 17
01:11:42.617 -> 1970-01-01 00:01:03    tls.c:59:mg_tls_init      0x3e Setting TLS, CA: /spiffs/ca.pem, cert: null, key: null
01:11:42.617 -> 1970-01-01 00:01:03    sock.c:228:close_conn     0x3d closed
01:11:42.856 -> 1970-01-01 00:01:03    mDash.c:203:timercb       ram: 125636, 2 0x3ffd1f14/0x0/0x0
01:11:42.856 -> 1970-01-01 00:01:03    sock.c:303:mg_connect     0x36 -> udp://time.google.com:123
01:11:42.856 -> 1970-01-01 00:01:03    dns.c:203:mg_resolve      0x36 resolving time.google.com, txnid 18
01:11:42.856 -> 1970-01-01 00:01:03  E dns.c:124:dns_cb          stray DNS reply
01:11:42.856 -> 
01:11:42.856 -> 
01:11:42.856 ->  Second : 4907
01:11:42.856 -> IDI : 1, 1, 1, 1, 
01:11:42.856 -> IRLY : {{1,0},{2,0},{3,0},{4,0},}Pkt1 - Fail: 1, Succ: 8, Pkt2 - Fail: 0, Succ: 8, Pkt3 - Fail: 0, Succ: 8, Pkt4 - Fail: 0, Succ: 8, Pkt5 - Fail: 8, Succ: 0, 
01:11:42.856 -> Param1: 0.00, Param2: 0.00, Param3: 0.00, Param4: 0.00, Param5: 0.00, Param6: 0.00, Param7: 0.00, Param8: 0.00, Param9: 0.00, Param10: 0.00, Param11: 0.00, Param12: 0.00, Param13: 0.00, Param14: 0.00, Param15: 0.00, 
01:11:42.856 -> Free Heap : 191264
01:11:42.856 -> MData: 
01:11:43.814 -> 1970-01-01 00:01:04    mDash.c:203:timercb       ram: 126204, 2 0x3ffd1f14/0x0/0x3ffdf918
01:11:44.820 -> 1970-01-01 00:01:05    mDash.c:203:timercb       ram: 126204, 2 0x3ffd1f14/0x0/0x3ffdf918
01:11:45.346 -> 1970-01-01 00:01:05    sock.c:272:mg_connect_res 0x3e resolved: 157.90.34.55:443
01:11:45.395 -> 1970-01-01 00:01:05    sntp.c:60:mg_sntp_send    0x36 request sent, ct 65, next at 3665
01:11:45.395 -> 1970-01-01 00:01:05    sock.c:272:mg_connect_res 0x36 resolved: 216.239.35.0:123




Looks like the worker task is killed without a trace here, but as I do not know the PPP stuff at all, it is difficult to spot a reason.

Two things caught my attention, though: you are using the older 1.6.0 version of eModbus and the last thing logged seems to be a CRC error.

The former most probably is required for the quite outdated arduino-esp core you are using. Is there a reason why you did not update yet to a more up-to-date core? The UART handling has vastly been improved with 2.0.x and the last 1.7.0 eModbus version takes advantage of that.

The latter may hint to some collision or race condition happening with the UART just before the worker stops.

Sorry I have no better ideas at the moment of what might be happening here.

Any news on this?

Thanks @Miq1 for your guidence,
I have solved it by updating the esp-Arduino framework from V1.0.6 to V2.0.9 & also updated all other libraries. I have found that eModbus V1.0.7 is showing much CRC or Packet error compared to V1.0.6, So I used the same V1.0.6.

I have one doubt that, Can I enable RTU alone & disabling TCP?. I am trying to minimize the Wifi RAM to disable IPV6, But the Async Web Library on TCP is affecting. Anyway I am using only RTU, So Any method to avoid IPV6 in Async?

If you are using RTU only, the TCP stuff in the library will be compiled when using the Arduino IDE, but not linked into your binary anyway.

If you are still using eModbus 1.6, you will not benefit from the different UART handling in the core. You will have to upgrade to 1.7 to enjoy that. If 1.7 was giving you an increased number of CRC errors, the root cause is another. In the past it turned out most of the time the culprit was the wiring and/or improper termination or biasing...

If you are using RTU only, the TCP stuff in the library will be compiled when using the Arduino IDE, but not linked into your binary anyway.

If you are still using eModbus 1.6, you will not benefit from the different UART handling in the core. You will have to upgrade to 1.7 to enjoy that. If 1.7 was giving you an increased number of CRC errors, the root cause is another. In the past it turned out most of the time the culprit was the wiring and/or improper termination or biasing...

Thank you for your response,

I am using a custom sdkconfig, If I am disabling the IPV6 in LWIP CONFIG_LWIP_IPV6 , I am getting the compilation error related to AsyncTCP.cpp. This is the Compilation error :

Compiling .pio\build\esp32dev\lib312\eModbus\CoilData.cpp.o
Compiling .pio\build\esp32dev\lib312\eModbus\Logging.cpp.o
Compiling .pio\build\esp32dev\lib312\eModbus\ModbusClient.cpp.o
Compiling .pio\build\esp32dev\lib312\eModbus\ModbusClientRTU.cpp.o
Compiling .pio\build\esp32dev\lib312\eModbus\ModbusClientTCP.cpp.o
.pio/libdeps/esp32dev/AsyncTCP/src/AsyncTCP.cpp: In function 'void _handle_async_event(lwip_event_packet_t*)':
.pio/libdeps/esp32dev/AsyncTCP/src/AsyncTCP.cpp:180:68: error: no matching function for call to 'AsyncClient::_s_dns_found(const char*&, ip_addr_t*, void*&)'
         AsyncClient::_s_dns_found(e->dns.name, &e->dns.addr, e->arg);
                                                                    ^
In file included from .pio/libdeps/esp32dev/AsyncTCP/src/AsyncTCP.cpp:24:
.pio/libdeps/esp32dev/AsyncTCP/src/AsyncTCP.h:137:17: note: candidate: 'static void AsyncClient::_s_dns_found(const char*, ip_addr*, void*)'
     static void _s_dns_found(const char *name, struct ip_addr *ipaddr, void *arg);
                 ^~~~~~~~~~~~
.pio/libdeps/esp32dev/AsyncTCP/src/AsyncTCP.h:137:17: note:   no known conversion for argument 2 from 'ip_addr_t*' {aka 'ip4_addr*'} to 'ip_addr*'
.pio/libdeps/esp32dev/AsyncTCP/src/AsyncTCP.cpp: In function 'void _tcp_dns_found(const char*, ip_addr*, void*)':       
.pio/libdeps/esp32dev/AsyncTCP/src/AsyncTCP.cpp:319:59: error: invalid application of 'sizeof' to incomplete type 'ip_addr'
         memcpy(&e->dns.addr, ipaddr, sizeof(struct ip_addr));
                                                           ^
.pio/libdeps/esp32dev/AsyncTCP/src/AsyncTCP.cpp: In member function 'bool AsyncClient::connect(IPAddress, uint16_t)':   
.pio/libdeps/esp32dev/AsyncTCP/src/AsyncTCP.cpp:694:10: error: 'ip_addr_t' {aka 'struct ip4_addr'} has no member named 'type'
     addr.type = IPADDR_TYPE_V4;
          ^~~~
.pio/libdeps/esp32dev/AsyncTCP/src/AsyncTCP.cpp:695:10: error: 'ip_addr_t' {aka 'struct ip4_addr'} has no member named 'u_addr'; did you mean 'addr'?
     addr.u_addr.ip4.addr = ip;
          ^~~~~~
          addr
.pio/libdeps/esp32dev/AsyncTCP/src/AsyncTCP.cpp: In member function 'bool AsyncClient::connect(const char*, uint16_t)': 
.pio/libdeps/esp32dev/AsyncTCP/src/AsyncTCP.cpp:724:39: error: 'ip_addr_t' {aka 'struct ip4_addr'} has no member named 'u_addr'; did you mean 'addr'?
         return connect(IPAddress(addr.u_addr.ip4.addr), port);
                                       ^~~~~~
                                       addr
.pio/libdeps/esp32dev/AsyncTCP/src/AsyncTCP.cpp: In member function 'void AsyncClient::_dns_found(ip_addr*)':
.pio/libdeps/esp32dev/AsyncTCP/src/AsyncTCP.cpp:962:24: error: invalid use of incomplete type 'struct ip_addr'
     if(ipaddr && ipaddr->u_addr.ip4.addr){
                        ^~
In file included from .pio/libdeps/esp32dev/AsyncTCP/src/AsyncTCP.cpp:24:
.pio/libdeps/esp32dev/AsyncTCP/src/AsyncTCP.h:53:8: note: forward declaration of 'struct ip_addr'
 struct ip_addr;
        ^~~~~~~
.pio/libdeps/esp32dev/AsyncTCP/src/AsyncTCP.cpp:963:33: error: invalid use of incomplete type 'struct ip_addr'
         connect(IPAddress(ipaddr->u_addr.ip4.addr), _connect_port);
                                 ^~
In file included from .pio/libdeps/esp32dev/AsyncTCP/src/AsyncTCP.cpp:24:
.pio/libdeps/esp32dev/AsyncTCP/src/AsyncTCP.h:53:8: note: forward declaration of 'struct ip_addr'
 struct ip_addr;
        ^~~~~~~
.pio/libdeps/esp32dev/AsyncTCP/src/AsyncTCP.cpp: In member function 'uint32_t AsyncClient::getRemoteAddress()':
.pio/libdeps/esp32dev/AsyncTCP/src/AsyncTCP.cpp:1052:28: error: 'ip_addr_t' {aka 'struct ip4_addr'} has no member named 'u_addr'; did you mean 'addr'?
     return _pcb->remote_ip.u_addr.ip4.addr;
                            ^~~~~~
                            addr
.pio/libdeps/esp32dev/AsyncTCP/src/AsyncTCP.cpp: In member function 'uint32_t AsyncClient::getLocalAddress()':
.pio/libdeps/esp32dev/AsyncTCP/src/AsyncTCP.cpp:1066:27: error: 'ip_addr_t' {aka 'struct ip4_addr'} has no member named 'u_addr'; did you mean 'addr'?
     return _pcb->local_ip.u_addr.ip4.addr;
                           ^~~~~~
                           addr
.pio/libdeps/esp32dev/AsyncTCP/src/AsyncTCP.cpp: In member function 'void AsyncServer::begin()':
.pio/libdeps/esp32dev/AsyncTCP/src/AsyncTCP.cpp:1262:16: error: 'ip_addr_t' {aka 'struct ip4_addr'} has no member named 'type'
     local_addr.type = IPADDR_TYPE_V4;
                ^~~~
.pio/libdeps/esp32dev/AsyncTCP/src/AsyncTCP.cpp:1263:16: error: 'ip_addr_t' {aka 'struct ip4_addr'} has no member named 'u_addr'; did you mean 'addr'?
     local_addr.u_addr.ip4.addr = (uint32_t) _addr;
                ^~~~~~
                addr
*** [.pio\build\esp32dev\lib93c\AsyncTCP\AsyncTCP.cpp.o] Error 1

Modified sdkconifg:
CONFIG_LWIP_IPV6=

Modified sdkconfig.h:

#define CONFIG_LWIP_IPV6 0

Platform.ini File:

platform = espressif32@6.3.1
board = esp32dev
framework = arduino
board_upload.flash_size = 16MB
board_upload.maximum_size = 16777216
build_flags =
	-Isdkconfig

That is rather an issue of AsyncTCP requiring something your config does not provide.

You could either throw out or deactivate by preprocessor #ifdefs all TCP stuff in eModbus. That should get you around that. It also may be possible to prevent PlatformIO from caching all library code regardless if being used, but I do not know how to do it. You could place a question in the PlatformIO support forum to learn about that.

Looks like this issue has dried out...