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
  • Hi,

    The Serial LTE modem application was updated in v1.7.0 and this parameter is no longer necessary.

    Please take a look at the release notes for v1.7.0.

    You may also find the "Running in data mode" page to be useful.

    Let me know if this answers your question, or if there is anything else I can help you with.

  • 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>

Reply
  • 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>

Children
Related