This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

case about nrf9160 ncs v1.9.0 example: serial_lte_modem #XTCPSEND

Hi,

dk: PCA10090 0.9.0 2019.21

ncs: v1.9.0

example: serial_lte_modem

How to send HEX data to the server with the command #XTCPSEND at ncs v1.9.0

the old sdk ncs v1.8.0 example is like this

at#xtcpsend=1,"7E01000025056109427727000100000000000000000000000000000000000000000000000000000000003934323737323700607E"


Thank you for all your assistance.
Kind regards,
Peter.Min

Parents
  • Hi,

     

    That at command shall still be present in SLM in ncs v1.9.0.

    Could you elaborate on what the problem is in the newer version compared to ncs v1.8.0?

     

    Kind regards,

    Håkon

  • HI Alseth 

     In older version's Serial LTE modem (eg NCS 1.6.0), Command  #XTCPSEND support different data type. 

    Detail could be showed as below 

    Fig 1 NCS 1.6.0

    However in NCS 1.9.0, command #XTCPSEND not supprot the various data type, all data has been convert to string.

    Fig 2 NCS 1.9.0

    The user's question is in NCS 1.6.0, They can directly send their data by use hexadecimal string. after they porting their project to NCS 1.9.0, they found that they could not send hexadecimal string.

    They want to know how to send  hexadecimal string data in TCP.

Reply
  • HI Alseth 

     In older version's Serial LTE modem (eg NCS 1.6.0), Command  #XTCPSEND support different data type. 

    Detail could be showed as below 

    Fig 1 NCS 1.6.0

    However in NCS 1.9.0, command #XTCPSEND not supprot the various data type, all data has been convert to string.

    Fig 2 NCS 1.9.0

    The user's question is in NCS 1.6.0, They can directly send their data by use hexadecimal string. after they porting their project to NCS 1.9.0, they found that they could not send hexadecimal string.

    They want to know how to send  hexadecimal string data in TCP.

Children
Related