Nowadays, Bluetooth Low Energy is one of the most popular protocols designed for low-powered and short-range communication between smart devices. As the Internet of Things is steadily gaining popularity, there are even more reasons to learn how it works from the ground up. At the end of this guide, you will gain the confidence to effortlessly and effectively debug and analyze BLE communication for your project.Bluetooth Low Energy Sniffing in the context of this article is basically a way to analyze packets which are sent between master (Peripheral) and slave (Central Manager). This knowledge is essential to debug critical errors, point out performance bottlenecks or reverse engineer protocol of your interest. I assume you have at least some elementary knowledge of how Bluetooth Low Energy works. My plan is to extend it with the following steps:.
![]() ![]() ![]()
While preparing for my CCNP SWITCH exam I built a laboratory with 4 switches, 3 routers and 2 workstations in order to test almost all layer 2/3 protocols that are related to network management traffic.And because “PCAP or it didn’t happen” I captured 22 of these protocols to further investigate them with Wireshark. Oh oh, I remember the good old times where I merely used unmanaged layer.
Prepare low-cost Bluetooth Low Energy Sniffer setup based on very popular nRF51 or nRF52 boards managed from the Wireshark application. Introduce you to the most common BLE commands, which are used in practice with proper links to specification to extend your knowledge if you are curious.
Analyze the example output from TI CC2541 Sensor Tag. Automate most tedious tasks with Lua scripts in Bluetooth Sniffer Wireshark.SetupThere are a lot of options to choose from if you are looking for Bluetooth Low Energy sniffers.
I decided to base this guide on nRF family boards, as they are easy to use, quite popular, low-cost and have good integration with Wireshark. There are nRF51 DK (PCA10028), nRF52840 DK (PCA10056) and Adafruit Bluefruit LE Friend (nRF51822) at my disposal and I have tested this setup with them. Other nRF51/nRF52 boards should work as well. NRF Sniffer v2To enable the Bluetooth Sniffing functionality, we have to flash our boards with the latest nRF Sniffer v2 firmware. You can find a detailed user guide both for & and follow it if you have any problems with the steps below. I want to include them for reference here:. Download the nRF Sniffer v2 package from Nordic website( website).
In my case, I got the version 2.0.0-1.beta. Extract the downloaded zip file, go to seggerjlink folder and install the driver for your operating system.
All of my below command’s paths assume that seggerjlink is the current directory. Run Jlink.exe (JLink Commander on Windows) or jlinkexe (Linux/MacOS). You should get J-Link command prompt. The controller of the personal data that you are about to provide in the above form will be Polidea sp. With its registered office in Warsaw at ul. Przeskok 2, 00-032 Warsaw, KRS number:, tel.: 0048 795 536 436, email: [email protected] (“Polidea”).
We will process your personal data based on our legitimate interest and/or your consent. Providing your personal data is not obligatory, but necessary for Polidea to respond to you in relation to your question and/or request. If you gave us consent to call you on the telephone, you may revoke the consent at any time by contacting Polidea via telephone or email. You can find detailed information about the processing of your personal data in relation to the above contact form, including your rights relating to the processing, HERE.
![]() Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |