Logic Analysers and the Bus Pirate: Capturing and Decoding UART, SPI, I2C and 1-Wire
Topics: Bus Pirate embedded security hardware hacking I2C logic analysis sigrok SPI uart
- Courses taught
- 189
- Learners reached
- 854
- Reviews received
- 210
Plus opens every Plus course and puts the shield on your name. From USD 5 a month.
Join PlusAlready a member? Sign in
Requirements
- Basic electronics: voltage, ground and reading a pinout
- Comfort with a command line
- Hardware Interfaces, or equivalent knowledge of UART, SPI and I2C, is recommended
- Only hardware you own or are authorised in writing to test, at low voltage
About this course
A KSEC course on the two instruments behind most hardware security work: the logic analyser, which listens to a board’s buses and decodes them, and the Bus Pirate, which talks to chips directly.
You learn how an analyser samples a signal and how to choose a sample rate, capture length and trigger you can trust; how to install and drive PulseView and sigrok-cli; and how to decode UART, SPI, I2C and 1-Wire, with stacked decoders that name SPI flash commands, 24xx EEPROM operations and 1-Wire ROM commands, so you can see what a device reads at start up without dumping anything. With the Bus Pirate 5 you set safe voltages and current limits, send bus commands and check them on the wire, then back up, write, verify and restore an EEPROM and a flash chip you own. The course ends with documenting a capture as evidence, what a capture tells a product maker to lock down, and a capstone on a board you own.
It is tool led and builds on the Hardware Interfaces course, which teaches the bus theory and how to find interfaces on an unknown board. Everything is done on hardware you own or have written permission to test, at low voltage, and the first topic requires an acknowledgement of that before you continue.
Get the kit
The EXPLIoT IoT Security Learning Kit, which includes a logic analyser and a practice board, is sold by KSEC Worldwide, which ships to the UK and worldwide.
What you'll learn
- Explain what a logic analyser records, and how sample rate and threshold decide what a capture can show
- Choose a sample rate, capture length and trigger for UART, I2C, 1-Wire and SPI, and choose a suitable analyser
- Install PulseView and sigrok-cli with the right drivers, and capture, measure and save a session
- Script repeatable captures and decodes with sigrok-cli
- Decode UART in both directions and tell capture faults from decoder faults
- Stack the spiflash, eeprom24xx and 1-Wire network decoders to see what a device reads at start up
- Use the Bus Pirate 5 power supply, pull-ups and bus syntax safely, and check each command on the wire
- Back up, write, verify and restore an I2C EEPROM and an SPI flash chip you own
- Document a capture as evidence, and say what product makers should lock down
Who this course is for
- Hardware tinkerers and makers moving into embedded security testing
- Security students and penetration testers who want confidence with logic analysers and the Bus Pirate
- Embedded and product engineers who want to see what their own boards expose
- Learners who completed Hardware Interfaces and want more depth on the instruments
Reviews of courses you have completed earn 5 points, whatever the rating. How reviews work
No reviews yet. Be the first once you complete the course.
Course discussion
Ask questions, share notes, and chat with other learners. This thread is part of the OnlySecurity community forum, separate from the in-course Q&A so general discussion does not crowd lesson-specific questions.
Open the thread on the OnlySecurity community to take part.
Curriculum
35 lessons across 7 modules
Course Content
Orientation, authorised use and your bench
What this course covers, and how it fits with Hardware Interfaces
Authorised use and safe use
Your bench and a practice target you own
Quiz: Orientation, authorised use and your bench
How a logic analyser sees a signal
sigrok and PulseView in practice
UART with a logic analyser
SPI, I2C and 1-Wire: watching what a device reads
The Bus Pirate workflow
Documenting, defending and the capstone
Earn a certificate
Showcase your dedication by completing this course and earning a certificate that highlights your skills.





