andrewdodd / pyccsniffer Goto Github PK
View Code? Open in Web Editor NEWPython 802.15.4 packet sniffer for the CC2531 EMK from Texas Instruments
License: GNU General Public License v3.0
Python 802.15.4 packet sniffer for the CC2531 EMK from Texas Instruments
License: GNU General Public License v3.0
I already install the pyusb library but still getting this error
Traceback (most recent call last):
File "C:\Users\670296728\Downloads\pyCCSniffer-master\pyCCSniffer-master\pyCCSniffer.py", line 236, in
snifferDev = CC253xEMK(handler, args.channel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\670296728\Downloads\pyCCSniffer-master\pyCCSniffer-master\cc253xemk.py", line 76, in init
self.initialise()
File "C:\Users\670296728\Downloads\pyCCSniffer-master\pyCCSniffer-master\cc253xemk.py", line 79, in initialise
self.dev, self.vendor_product = _select_device(
^^^^^^^^^^^^^^^
File "C:\Users\670296728\Downloads\pyCCSniffer-master\pyCCSniffer-master\cc253xemk.py", line 26, in _select_device
return usb.core.find(idVendor=vp.idVendor,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\670296728\AppData\Local\Programs\Python\Python311\Lib\site-packages\usb\core.py", line 1309, in find
raise NoBackendError('No backend available')
usb.core.NoBackendError: No backend available
What firmware is supposed to be loaded?
Hi,
could you provide some example on how to use it with wireshark please ?
or should I use another tool for that purpose ?
TIA
When running sudo python pyCCSniffer.py
with Python 2.7.9
The following exception occurs:
Traceback (most recent call last):
File "pyCCSniffer.py", line 520, in <module>
snifferDev = CC2531EMK(handlerDispatcher, args.channel)
File "pyCCSniffer.py", line 293, in __init__
self.name = usb.util.get_string(self.dev, 256, 2) # get name from USB descriptor
File "/usr/local/lib/python2.7/dist-packages/usb/util.py", line 318, in get_string
raise ValueError("The device does not support the specified langid")
ValueError: The device does not support the specified langid
It seems to be related to pyusb
, but I have no real experience with python so I don't really know.
I have the following python modules installed:
RPi.GPIO==0.6.3
argparse==1.2.1
chardet==2.3.0
colorama==0.3.2
future==0.16.0
html5lib==0.999
ndg-httpsclient==0.3.2
pyOpenSSL==0.13.1
pyasn1==0.1.7
python-apt==0.9.3.12
pyusb==1.0.0
requests==2.4.3
six==1.8.0
urllib3==1.9.1
wheel==0.24.0
wsgiref==0.1.2
For pyusb
I have installed libusb
:
libusb-0.1-4/stable,now 2:0.1.12-25 armhf [installed]
libusb-1.0-0/stable,now 2:1.0.19-1 armhf [installed]
libusb-1.0-0-dbg/stable,now 2:1.0.19-1 armhf [installed]
libusb-1.0-0-dev/stable,now 2:1.0.19-1 armhf [installed]
libusb-1.0-doc/stable,now 2:1.0.19-1 all [installed]
Hi. I've been using your code for sniffing 802.15.4 packets using the CC2531 dongle. I would just like to ask, what is the meaning of a series of 4 bytes received from the dongle when there is no activity in the channel.
I also asked this question in the TI forum and I showed there an example of what I'm currently seeing in the terminal when there is no activity.
https://e2e.ti.com/support/wireless-connectivity/zigbee-and-thread/f/158/p/807758/2991556#2991556
I also hope that I can get your email as I would like to ask questions regarding this sniffer code.
Thanks in advance!
I'm trying to use pyCCSniffer on Linux, with the latest walac/pyusb@2e46791.
I'm getting a crash in pyCCSniffer.py, line 332 at bytesteam = self.dev.read(CC2531EMK.DATA_EP, 4096, 0, CC2531EMK.DATA_TIMEOUT)
.
It looks like the signature is (now) usb.core.Device.read(self, endpoint, size_or_buffer, timeout=None)
, so the 0
argument shouldn't be there.
Turns out the interface
parameter was removed in walac/pyusb@6ead753.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.