본문 바로가기

개발 이야기/IoT 이야기

실리콘랩스 EFR32 - Zigbee Sniffer 만드는 방법

728x90

 

Turning any EFR32 into a Zigbee or Thread Sniffer

DETAILS

The sniffer configurator tool was introduced in Simplicity Studio V4 after Q4 2018 release. This tutorial will explain how to configure a sniffer in Simplicity Studio V5 using both the sniffer configurator tool and the SoC RAILtest sample application.
 
Introduction:
 
Sniffer nodes can be a very useful tool in debugging and analyzing network traffic. Silicon Labs has made it easy to transform your EFR32 Radio into a sniffer device. You can customize the sniffer's parameters to capture Zigbee traffic on both 2.4 GHz and subGHz, as well as Bluetooth Low Energy. This tool will work with any device that supports the RailTest sample application (modules like the MGM1x or MGM2x are not compatible). 


Creating a Sniffer using the Sniffer Configurator:

1.  Migrate to the Debug Adapter window and select [Sniffer Configurator…] for the desired board.



2.  Select the desired debug adapter you wish to turn into a sniffer & click [Next].


3. Select the checked box for your desired debug adapter and then click [Select and upload sniffer to checked devices…]. Then click [Next].



4. Modify the parameters in the white box to be applicable to your desired sniffer application. Once the parameters are set to your requirements select [Apply EFR32 sniffer Configuration]. Then click [Finish].  You can choose a sniffer configuration between IEEE 802.15.4, Bluetooth Low Energy and IEEE 802.15.4 SubGhz.



To test the sniffer device. If you migrate back to the debug adapters panel and select the same device you made as a sniffer and select [Start Capture].



The Network Analyzer will start a network capture. As you can see the Sniffer is now picking up network traffic.




Creating a Sniffer using RAILtest Sample Application:


1. Create a new Railtest sample application for your desired part using the default Profile and PHY settings (Generate and compile using GCC or IAR)



2. Load the built binary image onto your chosen EFR32 development board.



3. Connect to the console of your EFR32.




4. In order to turn the Railtest image into a sniffer for 802.15.4 protocols like Zigbee and Thread you will need to issue the following commands over the console to configure the sniffer:
    1. > rx 0
      1. This will put the radio into an idle state so that you can configure it.
    2. > config2p4GHz802154
      1. This command configures the radio for the 802.15.4 phy
    3. > enable802154 rx 100 192 864
      1. Puts the radio into the right mode for 802.15.4 capture
    4. > setPromiscuousMode 1
      1. Puts the radio into promiscuous capture mode so it can act as a sniffer
    5. > setChannel <yourChannel, (11 - 26)>
      1. Sets the desired channel you wish to sniff.
    6. > rx 1
      1. Puts the radio back into receive mode.
An example of the console output is below:


 

 

 

 

 

(출처1)

https://community.silabs.com/s/article/turning-any-efr32-into-a-zigbee-or-thread-sniffer?language=en_US 

 

 

그럼,

    공유합니다.