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.

Sniffer Firmware of CC2540

Other Parts Discussed in Thread: CC2540

Hi all,

I need your help. About the SmartRF Packet Sniffer for CC2540, do you know

1. What's the difference between sniffer_fw_cc2540.hex and sniffer_fw_cc2540_usb.hex (in ...SmartRF Tools\Packet Sniffer\bin\general\firmware)?

2. I can get the advertising packets through Packet Sniffer in Windows environment now, if I'd like to send the advertisting packets received to other devices through UART (not through USB) for further processing , any ways to achieve this?

3. Has TI released the source code of the sniffer firmware for cc2540?

Thank you and best regards,

Fred

  • Hi,

    wnana tf said:
    1. What's the difference between sniffer_fw_cc2540.hex and sniffer_fw_cc2540_usb.hex (in ...SmartRF Tools\Packet Sniffer\bin\general\firmware)?

    sniffer_fw_cc2540.hex is a binary for EM module on top of smartRF05EB, where sniffer_fw_cc2540_usb.hex

    is for the dongle.


    wnana tf said:
    2. I can get the advertising packets through Packet Sniffer in Windows environment now, if I'd like to send the advertisting packets received to other devices through UART (not through USB) for further processing , any ways to achieve this?

    Don't know, may be someone else knows the answer for this.


    wnana tf said:
    3. Has TI released the source code of the sniffer firmware for cc2540?

    Highly doubt about that (need confirmation of TI guys here).
    Do you need the source code to build your own project or is it for something else?

  • Hi,

    2. This may not be what you're looking for, but you can use the Packet Sniffer broadcast function to broadcast the sniffed packets over UDP. This way you can make your own tool for processing the packets as you wish. The Broadcast functionality is documented in the Packet Sniffer User's Guide (swru187).

    3. As Igor correctly answered, the CC2540 sniffer firmware source code is not released.

    Br,
    ABO 

  • I succesfully used the previous link 2) some time ago to get UART data. It is worth trying :)

  • thank you.Could you give me more details?

    Link 2 refer to  sniffer_fw_cc2540_usb.hex   ?

    For the application, we have several tags advertise packets at high speed (eg. 10 tags and 10 packets/tag/second). And in the other side, we want to receive all packets and send them to MCU for further process through UART. 

  • Yes, link 2 refer to that.

    I agree with your application description, should be possible.

  • Hi people.

    I would like to know if anyone could point some fingers as to where to look to achieve this.  I assume 'link 2' refers to Packet Sniffer User's Guide (swru187)..  It seems one could use the CCxx10 hex file to dump the data on UART0, but I don't seem to pick up anything on that port.  How else could one achieve this without having the source code.

    I've been thinking of hacking the HostTestRelease code to do this, but am not entirely sure where to intercept the packets.  I am able to write out to the UART at will.

    Regards

    JD

  • Do you want to capture the USB traffic from the USB CC2540 USB dongle

    without the use of packet sniffer SW?

  • Good evening Igor, thank you for the swift reply.

    I want to use a CC2540 and dump the sniffed data via UART and not USB.

    Basically we need to sniff data between our prototype and the phone to show some real-time data which is not displayed on the phone app for a couple of our research departments.  We only have one sniffer, but we have a number of our own developed dev boards which we can use with UART.   Also, some departments have Macs, so the sniffer front end displaying the specific data will be done in something like Processing which is cross-platform.  I also don't think the CC2540 USB has Mac drivers.

    I hope this clarifies my question.

  • Jan-Dani��l de Villiers said:
    I want to use a CC2540 and dump the sniffed data via UART and not USB.


    Well, i'm not aware of such a capability, however, I can suggest you another way

    to make your life a little bit easier to live.

    You see, the packet sniffer SW has a built in UDP broadcast (broadcast of received packets).

    By default the broadcast IP address is a local host (127.0.0.1), but it can be configured to any

    other addres, means that you can catch packets with the sniffer dongle you have (which is

    attached via USB to a machine running windows OS), then broadcast these packets to

    whom ever you want. :)

  • Hi Igor.

    I've already done that as an temporary solution, but as I mentioned previously, we only have one CC2540 USB dongle and some departments here have Macs.

    The way I see it, ic the CCxx10 can do it, the CC2540 should be able to do it.  Also, it seems that in the case of using the RF05  the conversion to USB happens on the dev board, not the actual board holding the CCxxxx chip (if that makes any sense).  Which means that the data is probably transferred using UART or SPI in any case?  This is a hunch.  Just don't know which protocol and baud rate etc, and even which UART and which alternative.  I only have breakout pins for USART 0 on my dev board.