Serial Port Notifier (formerly Serial Port Monitor) sits in your notification tray and monitors the serial ports on your computer. When a port is added or removed, a notification is shown containing the port's COM port name, allowing you to easily keep track of what's been plugged in and out. Program launchers can be defined that allow programs.
This repository contains the Python API for Adafruit's Bluefruit LE Sniffer, and our easy to use API wrapper.
It has been tested on the following platforms using Python 2.7:
- OSX 10.10
- Windows 7 x64
- Ubuntu 14.04
Related Links
Bluefruit LE Sniffer product page: https://www.adafruit.com/product/2269Bluefruit LE Sniffer Learning Guide: https://learn.adafruit.com/introducing-the-adafruit-bluefruit-le-sniffer/introduction
![Sniff Serial Port Os X Sniff Serial Port Os X](/uploads/1/2/5/8/125856930/641835300.jpg)
Running sniffer.py in this folder on the Bluefruit LE Friend Sniffer Edition board will cause the device to scan for Bluetooth LE devices in range, and log any data from the selected device to a libpcap file (in
logs/capture.pcap
) that can be opened in Wireshark.The current example does not enable live streaming of data directly into Wireshark via named pipes since this would require a pre-compiled utility for each platform, but it should be possible to implement this on your platform if required.
Using sniffer.py
To use sniffer.py, simply specify the serial port where the sniffer can be found (ex.
COM14
on Windows, /dev/tty.usbmodem1412311
on OS X, /dev/ttyACM0
or Linux, etc.):Note: You will need to run python with
sudo
on Linux to allow the log file to be created, so sudo python sniffer.py /dev/ttyACM0
, etc..This will create a new log file and start scanning for BLE devices, which should result in the following menu:
Simply select the device you wish to sniff, and it will start logging traffic from the specified device.
Type CTRL+C to stop sniffing and quit the application, closing the libpcap log file.
NOTE: You may need to remove the sniffer and re-insert it before starting a new session if you see any unusual error messages running sniffer.py.
Requirements
This Python script was written and tested on Python 2.7.6, and will require that both Python 2.7 and pySerial are installed on your system.