This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LAUNCHXL-CC1352P: Smart Rf Sniffer agent 1.8.0

Part Number: LAUNCHXL-CC1352P
Other Parts Discussed in Thread: CC1352P

Hi,

I am trying to sniff the Contiki 200 kbps GFSK 15.4g mode using a cc1352P launchpad.

I have successfully added the radio configuration, but I see the data is interpreted in LSB format and not in MSB format as used.

I see no option in the sniffer agent nor in the wireshark dissector to select between LSB and MSB mode.

How is this done ??

BR,

Mads

  • Hi Mads, 

    You can add settings for the Sniffer in the sniffer_agent_config.xml file. There you should probably change to use LSB/MSB mode. 

    Thanks, 
    Elin

  • Hi Elin,

    I have added my config, but which config setting should I use for MSB ?

    /Mads

  • Hi.

    When I change the "swap_hdr_bytes" to true the Mac header is interpreted correctly, but FCS is incorrect.

    If set to false the FCS is correct but the Mac header is interpreted wrongly. 

    Is there a way to solve this ?

      <ti802_15_4g_cfg_data>
        <auto_reverse>false</auto_reverse> 
        <fcs_24xx_format>false</fcs_24xx_format> 
        <add_channel>false</add_channel> 
        <swap_hdr_bytes>true</swap_hdr_bytes> 
        <reverse_fcs>true</reverse_fcs> 
      </ti802_15_4g_cfg_data>

  • Hi Mads, 

    Apologies for the delay. 

    I will check with the team and get back to you as soon as possible. 

    Thanks, 
    Elin

  • Hi Mads,

    I am not sure exactly what is wrong here, but I can try help you get some more information about the issue.

    In Sniffer Agent you can enable logging of incoming (from target over UART) and outgoing messages (to Wireshark). In Sniffer Agent select 'Options', then check 'Use Operations Log' and select a file name.

    Also, you can build the firmware with either CCS or IAR, then run it in debugger to see the packet content as received by Sniffer. In function RadioIF_takePacket() (File: radio_if_dataqueue.c) the packet is read out from the radio packet buffer as written by RF Core. In this function also interestingly the CRC bytes are inverted for 15.4g packets with 4 bytes CRC.

    The IAR and CCS project files are found here: sniffer_fw\ide under the installation directory.

    Hope this helps.

    Regards,

    Bjørn

  • Hi Bjørn,

    this is what I have done to add the 200 kbps mode to 1352 (not support out of the box).

    I think the challenge is that wireshark recalculates the FCS based on the swapped header, and this makes it is mismatch.

    Im not sure if this is something the sniffer agent tool or the TI discector should make sure happens correctly ?

    Br,

    Mads

  • Hi,

    Do you have a Wireshark pcap file of this? Then I can have a look at it.

    Regards,

    Bjørn