DevAcademy : Cellular ioT Fundamentals Lession 7 - Tracing issue with the example

Hello,

I am following the cellular IoT fundamental course with nRF9151-DK.

I didn't have any issue until Lesson 7, but I found that the screen shot of the lesson is different from mine.

Environment

1. DK : nRF9151-DK

2. Modem : 2.0.1

3. SDK version : 2.6.1


- Test and issue -

1. Firmware : Lesson 7-1 (I also tried Lesson-7-1 solution, but the same result)

   (1) First of all, I followed the instruction including Wireshark installation, then I started monitoring with Cellular monitor.

        - Modem trace database is "Autoselect"

        - I got the error "Error when creating trace: unable to locate db directory plugin path:c:\users\.......

   (2) As the modem version is 2.0.1, I selected the modem trace database as 2.0.1

         - It didn't have error, and the "Trace" on Connection Status was passed.

         - But the connection status is stuck at "TRACE" and it doesn't move to the SIM or LTE Connection.

         - All parameters in LTE Network, Device, Sim, Connectivity Statistics and Power Saving features are "Unknown"

         - Packet Event Viewer shows only IP event (No AT or RRC or NAS event)

         - I also opened the Wireshark, so I can see the protocol and length.

            -> But it has only DTLSv1.2 protocols.

  

2. Firmware : Lesson 4-2 (added the trace configuration in PJT.CONF)
    (1) As Lesson 7-1 firmware doesn't look working, I decided to try it with another firmware which is from Lesson 4-2. (MQTT)

    (2) I added the trace option on PJT.CONF, then flashed new firmware to nRF9151-DK.

    (3) When I started the cellular monitor, it had the same error if Modem trace database is auto-select.

    (4) But when I selected the correct modem version, it started tracing.

    (5) it looks like working even though I couldn't see full information about LTE Network, Device, Sim, connectivity statistics and power saving features.

    (6) Connection status also shows that Trace, SIM and LTE connection are good.

    (7) Packet event viewer also shows some operation in AT, RRC NAS and IP. RRC has the most of action.


So, I wonder if the screen shots in Cellular IoT Fundamentals are wrong, or I still have some problem with firmware lesson 7-1.
If the screen shots of Lesson 7.1 on the Devacademy are correct and I might make any mistake, can anyone help what I should check and rectify this issue?

Parents
  • Hello,

    If the screen shots of Lesson 7.1 on the Devacademy are correct and I might make any mistake, can anyone help what I should check and rectify this issue?

    The screenshots may be outdated, but should vary too much from what is available today. What version of cellular monitor are you using? Most importantly what configurations did you add to your prj.conf? 

    Do you get the same results if you are using a precompiled image from the nRF9151DK precompiled package e.g. img_app_bl/debug/nrf9151dk_asset_tracker_v2_debug_2024-05-08_eef645c4.hex   ?

    Kind regards,
    Øyvind

  • Hello,
    1) Cellular Monitor version : I tried 2.4.1 (Official) and 2.3.0, and the same result.
    2) What configurations did I add to my prj.conf?
        - Is this question about what I added to my prj.conf for lesson 4-2? 
        - I added

                CONFIG_NRF_MODEM_LIB_TRACE=y
                CONFIG_AT_HOST_LIBRARY=y
        - I used the solution of Lesson 7-1 which already has these configurations in its prj.conf.
    3) I just tried precompiled image : nrf9151dk_asset_tracker_v2_debug_2024-05-08_eef645c4.hex
        - The result is like the below. It seems to work after sending the AT%XMODEMTRACE=1,2

    So, it looks like cellular monitor, Wireshark and precompiled image seem to work.
    Then can I consider that images on exercise 1 of lesson 7-1 are outdated?
    And my tracing result only shows the IP when I tried lesson 7-1. Can you confirm that is correct?
    (I wonder if anyone can try lesson 7-1 solution and let me know if you have the different result)
  • So, it is not my personal project, but it is from the Devacademy
    cellfund_less7_exer1_solution.
    (As I said, I followed the course and got the strange results, so I also tried the SOLUTION project, and I also got the same results)

    I don't know how to attach the zip file here, but the result that I got is from this example, so you can get it from github : NordicDeveloperAcademy/cell-fund .

    "cellfund_less7_exer1_solution" is a completed project, so I just did the build and flashed it to my nRF9151-DK, then I tested based on the instruction from that lesson.
    As that is the education course, I have to rely on the information on the courses, so I just want to make sure that I am following the right direction and get the right understanding.

    Thank you.

  • I have reported to team about this. 

    I was finally able to test the solution copying the SOLUTION project as you point out. Building for nrf9151dk_nrf9151_ns I got the following output in the Cellular Monitor:

    Here is the my .mtrace and wireshark ouput

    trace-2024-11-01T14-02-42.863Z.mtracedevzone335190_lesson71.pcapng

    Kind regards,
    Øyvind

  • Thank you for checking this.
    I still have the same result - only IP is traced, but your result has the LTE RRC protocol and AT command as well.

    so I would like to know if you did any other thing with the solution code or any other options for build?
    If you don't mind, could you also share the screenshot of the terminal?

  • Here is the termninal, only from today and not from the modem trace was taken.

     
     

  • Thank you for sharing the terminal as well.

    I don't know why, but my dev kit doesn't send +CSCON: 0 and +CSCON: 1, but yours is sending.
    I really didn't change anything in the example code, so still wondering why we have the different result...
    Anyhow, thank you for the support.

Reply Children
No Data
Related