2
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CC2531でZigBeeキャプチャを行う方法

Last updated at Posted at 2018-07-09

概要

インストール

$ sudo apt-get install libusb-dev
$ sudo pip install libusb1 PySerial
$ wget https://github.com/mitshell/libmich/archive/master.zip
$ unzip master.zip
$ cd libmich-master
$ sudo python setup.py install
$ wegt https://github.com/mitshell/CC2531/archive/master.zip
$ unzip master.zip
$ cd CC2531-master
$ sudo python setup.py install

パケットキャプチャ実行

$ cd /usr/local/lib/python2.7/dist-packages/CC2531
$ python sniffer.py
[GPS_reader][ERR]?cannot open /dev/ttyUSB0
[CC2531][25238] driving CC2531 USB Dongle @ USB bus 3 & address 5, with serial 25238
[receiver][3:5:25238] start listening on channel(s): [11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26]
[+] frame received (FCS OK): 2018-07-01 22:48:55
channel: 22, 2460 MHz
RSSI: -24
IEEE 802.15.4 frame: 41882e47ffffff61610810ffff00001d1e67b7a34000a2130008e8110005c1e8c935
IEEE 802.15.4 MAC:
[[[ IEEE 802.15.4 ]]]
### [MAC] ###
 <[Res] : 0b0>
 <[IntraPAN] : '1 : True'>
 <[AckReq] : '0 : False'>
 <[FramePending] : '0 : False'>
 <[Security] : '0 : False'>
 <[Type] : '1 : Data'>
 <[SrcAddrMode] : '2 : 16-bit address'>
 <[FrameVers] : 0b00>
 <[DstAddrMode] : '2 : 16-bit address'>
 <[Res] : 0b00>
 <[SeqNum] : 46>
 <[DstPANID] : 0xff47>
 <[DstAddr] : 0xffff>
 <[SrcPANID] : 0x>
 <[SrcAddr] : 0x6161>
        ### [Data] ###
         <[RawData] : 0x0810ffff00001d1e67b7a34000a2130008e8110005c1e8c935>

次やること

  • xbeeプロトコル解析
2
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?