This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

secure http issue, works first time, data corruption after first time...

I"m using SLM from NCS 1.6.1.  

I'm testing HTTPCREQ with HTTPC port 443 and security tag = 1.   After I reset SLM, my send is successful and passes server validation checks.  If I repeat the procedure sending the exact same data, the server is detecting a validation failure indicating something in the data has changed.  The only way to get a successful server validation is by reseting SLM.  I suspect there is some state that is not complete reset by XHTTPCCON=0 in the TLS implementation.   When I test the same with non-secure HTTP (port 80) to postman-echo my payloads are identical.  

Is there any equivalent to postman-echo with an https variant? 

Any idea why it breaks after the first successful attempt?

Parents Reply Children
  • Hello Charlie,

    I updated modem firmware to 1.3.0 just last week while I was update NCS SDK to 1.6.1.

    I tried to capture the modem trace but the generated bin files don't appear to have much of interest.  I'll attach one for reference.   I did confirm with breakpoints that the calls to nrf_modem_os_trace_put were occurring.   My DK has the VDD_IO switched to 3V, perhaps that causes some problems?

    trace-2021-09-21T18-56-24.844Z.bin

    2021-09-21T18:19:01.369Z INFO Application data folder: C:\Users\antho\AppData\Roaming\nrfconnect\pc-nrfconnect-tracecollector
    2021-09-21T18:19:01.506Z DEBUG App pc-nrfconnect-tracecollector v1.0.8 official
    2021-09-21T18:19:01.506Z DEBUG App path: C:\Users\antho\.nrfconnect-apps\node_modules\pc-nrfconnect-tracecollector
    2021-09-21T18:19:01.506Z DEBUG nRFConnect 3.7.1, required by the app is (^3.0.0)
    2021-09-21T18:19:01.506Z DEBUG nRFConnect path: C:\Users\antho\AppData\Local\Programs\nrfconnect\resources\app.asar
    2021-09-21T18:19:01.506Z DEBUG HomeDir: C:\Users\antho
    2021-09-21T18:19:01.506Z DEBUG TmpDir: C:\Users\antho\AppData\Local\Temp
    2021-09-21T18:19:01.522Z VERBOSE Could not fetch serial number for serial port at COM3
    2021-09-21T18:19:18.242Z INFO Device opened
    2021-09-21T18:19:35.013Z INFO Tracefile created: C:\Users\antho\AppData\Roaming\nrfconnect\pc-nrfconnect-tracecollector\trace-2021-09-21T18-19-35.007Z.bin
    2021-09-21T18:22:32.757Z INFO Device opened
    2021-09-21T18:22:34.375Z INFO Tracefile closed
    2021-09-21T18:22:51.512Z INFO Device closed
    2021-09-21T18:23:44.277Z INFO Device opened
    2021-09-21T18:23:49.004Z INFO Tracefile created: C:\Users\antho\AppData\Roaming\nrfconnect\pc-nrfconnect-tracecollector\trace-2021-09-21T18-23-49.002Z.bin
    2021-09-21T18:24:50.973Z INFO Tracefile closed
    2021-09-21T18:25:02.054Z INFO Generating system report...
    2021-09-21T18:25:08.780Z INFO System report: C:\Users\antho\AppData\Roaming\nrfconnect\pc-nrfconnect-tracecollector\nrfconnect-system-report-2021-09-21T18-25-02.054Z.txt
    2021-09-21T18:42:28.840Z INFO Device closed
    2021-09-21T18:42:28.842Z INFO Device opened
    2021-09-21T18:42:30.375Z INFO Tracefile created: C:\Users\antho\AppData\Roaming\nrfconnect\pc-nrfconnect-tracecollector\trace-2021-09-21T18-42-30.374Z.bin
    2021-09-21T18:45:51.259Z INFO Tracefile closed
    2021-09-21T18:56:07.878Z INFO Device closed
    2021-09-21T18:56:07.881Z INFO Device opened
    2021-09-21T18:56:24.845Z INFO Tracefile created: C:\Users\antho\AppData\Roaming\nrfconnect\pc-nrfconnect-tracecollector\trace-2021-09-21T18-56-24.844Z.bin
    2021-09-21T18:59:45.684Z INFO Tracefile closed
    
    # nRFConnect System Report - 2021-09-21T18-25-02.054Z
    
    - System:     LENOVO 20HHCTO1WW
    - BIOS:       LENOVO LENOVO - 1550
    - CPU:        1 x Intel® Xeon® E3-1535M v6 3.1 GHz 8 cores (4 physical)
    - Memory:     12.1 GB free of 31.8 GB total
    - Filesystem: C: (NTFS) 237.1 GB 88.8% used
    
    - OS:         Microsoft Windows 10 Pro for Workstations (10.0.19043) win32 ia32
    
    - Versions
        - kernel: 10.0.19043
        - git: 2.31.1.windows.1
        - node: 12.13.0
        - python: 2.7.17
        - python3: 3.9.7
    
    - Connected devices:
        - COM5: 000960049301 PCA10090
        - COM4: 000683148200 PCA10056
    

Related