How to send Hex data using AT#XSENDTO (SDK1.7)

Hi,

Can you please tell us how to send Hex data using AT#XSENDTO command ?

I am using the "Serial LTE" application. In the old SDK version (v1.6), it was possible to set the parameter <datatype>, so it was possbile to chose if we have to send string or Hex data.

But this parameter is no more used on SDK1.7. How to do so ?

Any Idea?

Thank you.

Best regards.

Parents Reply Children
  • Hi,

    Yes, I am using the Serial LTE modem of v1.7.0. I tested to send Hex data using Data mode, but nothing is received on the server side. Can you give us an exemple for the UDP mode ? Please find below the commands I used : 

    06/10/2021 14:25:43.518 [TX] - AT#XSOCKET=1,2,0<CR><LF>

    06/10/2021 14:25:43.531 [RX] - #XSOCKET: 1,2,17<CR><LF>
    OK<CR><LF>

    06/10/2021 14:25:45.413 [TX] - AT#XSENDTO="UDP_server@",9888<CR><LF>

    06/10/2021 14:25:47.300 [TX] - 866833040544147004020304050607080910  // data
    06/10/2021 14:25:48.966 [TX] - +++                                                                    // exit data mode
    06/10/2021 14:25:49.970 [RX] - OK<CR><LF>

    06/10/2021 14:25:51.467 [TX] - AT#XSOCKET=0<CR><LF>

    06/10/2021 14:25:51.480 [RX] - #XSOCKET: 0,"closed"<CR><LF>
    OK<CR><LF>

  • Hi,

    Sorry for the long response time, we decided to set up an UDP server to test issues like this, and it took longer than expected. Were you able to resolve your issue? I just tested this myself and our server had no issue receiving the data.

  • Hi, 

    Yes, I resolved the problem.I used another Serial tool to send Raw Hex data and not String.

    It works. 

    Thank you.

Related