logo elektroda
logo elektroda
X
logo elektroda

[Solved] ESP32 UART and SIM7600 - very slow UDP communication in transparent mode

mickeu 840 6
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 20499364
    mickeu
    Level 10  
    Hello everyone

    I am working on a device which is supposed to communicate quickly with another via GSM/LTE networks
    As the heart of the chip is an ESP32, which has the task to send and receive data in real time and send it to another ESP32.
    Test I have set up a UDP echo server on the OVH VPS in Frankfurt am Main.

    If I send data in the amount of 25 Bytes via WiFi with ESP32 via LTE router, and receive "sent back" by the above mentioned server - the whole thing takes between 1.2ms and 2.5ms so very fast which results in the possibility to send from 400 to more than 800 UDP packets per second.

    On the other hand, if I want to send and receive the same thing via UART and SIM7600 module configured using AT commands in UDP transparent mode.... then the packet reception delay is of the order of a few seconds.

    I have ruled out the possibility of blocking data reception via the UART by connecting the TX and RX pins with a jumper - the packets go through immediately.

    So what could be wrong that LTE is so slow to receive data?
  • ADVERTISEMENT
  • #2 20499581
    bobycob
    Level 21  
    The question is whether this is definitely LTE.
    With what standard did this module realistically connect and with what signal. Because the times even suggest GPRS and not LTE.
  • ADVERTISEMENT
  • #3 20499849
    khoam
    Level 42  
    To start with, I would probably check what the traceroute looks like on this LTE with SIM7600.
  • #4 20502746
    mickeu
    Level 10  
    bobycob wrote:
    Question if this is definitely LTE.
    With what standard did this module realistically connect and with what signal. Because the times even suggest GPRS and not LTE.


    How do I use the AT command to check this?

    Below the startup code:

    Code: C / C++
    Log in, to see the code
    .
  • ADVERTISEMENT
  • ADVERTISEMENT
  • #7 20516921
    mickeu
    Level 10  
    Resolved

    Instead of receiving data
    Code: C / C++
    Log in, to see the code

    I used:
    Code: C / C++
    Log in, to see the code


    Data enters port without delay.

Topic summary

The discussion revolves around the slow UDP communication experienced when using an ESP32 with a SIM7600 module in transparent mode over UART. The user reports fast communication via WiFi, achieving 400 to 800 UDP packets per second, but encounters delays of several seconds when switching to the SIM7600. Responses suggest checking the LTE connection quality and using specific AT commands to diagnose the issue. The user later resolves the problem by changing the method of reading data from the serial port, which eliminated the delay.
Summary generated by the language model.
ADVERTISEMENT