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 ncs v1.8.0 nRF9160 example: serial_lte_modem http download http_test_data.dat missing some bytes

Hi,

Why nRF9160 example serial_lte_modem:http get data from   http://hk.iotlib.cn/http_test_data.dat   missing some bytes:

 

Repeat steps:

1. sdk:ncs v1.8.0
2.example:serial_lte_modem
3. dk:PCA10090 0.9.0 2019.21

4. modem : mfw_nrf9160_1.3.1.zip

5. test cmd: 

AT#XHTTPCCON=0"hk.iotlib.cn",80
AT#XHTTPCCON=1"hk.iotlib.cn",80
AT#XHTTPCREQ="GET","/http_test_data.dat",""
6.test log

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

Parents
  • Hi Peter,

    I suspect this is because of the speed limitation of the UART debug port, so not all data can be printout in time and you would see different amounts of data dropped from the printout randomly. You can try to check with the following methods:

    1. Try to observe from the RTT Viewer instead of UART.

    2. Try to record modem trace and check the transmission packages from WireShark.

    • Add CONFIG_BSD_LIBRARY_TRACE_ENABLED=y to the projects prj.conf
    • Send the AT CMD AT%XMODEMTRACE=1,2  to start recording.

    Best regards,

    Charlie

Reply
  • Hi Peter,

    I suspect this is because of the speed limitation of the UART debug port, so not all data can be printout in time and you would see different amounts of data dropped from the printout randomly. You can try to check with the following methods:

    1. Try to observe from the RTT Viewer instead of UART.

    2. Try to record modem trace and check the transmission packages from WireShark.

    • Add CONFIG_BSD_LIBRARY_TRACE_ENABLED=y to the projects prj.conf
    • Send the AT CMD AT%XMODEMTRACE=1,2  to start recording.

    Best regards,

    Charlie

Children
  • Hi Charlie,

    1. Itest serial_lte_modem on ncs v1.8.0 is not good example.

    2.The best solution is use serial_lte_modem  on ncs v1.9 to substitute.

    3.CONFIG_BSD_LIBRARY_TRACE_ENABLED=y on ncs v1.8.0 is Out of date

    4.alternative :CONFIG_NRF_MODEM_LIB_TRACE_ENABLED=y
    Thank you very much.
    Kind regards,
    Peter.Min
Related