Bus Pirate user interface

From DP

Jump to: navigation , search
Language: English  • Русский


Talk to the Bus Pirate from a serial terminal set to 115200bps, 8/N/1.

* Syntax error, type ? for help
HiZ>

Press enter to show the command prompt if your terminal is blank.

HiZ>m <<<set mode command
1. HiZ
...
10. LCD
(1) ><<<press enter to select default option (1)
Mode selected
HiZ>

Most configuration and option prompts have a default value shown in (). Press enter to select the default option.

Read more in the Bus Pirate 101 tutorial.

Contents

Configuration Menus

Menu options are single character commands that configure the Bus Pirate. Type a letter, followed by <enter>, to access the menu. Some options are unavailable in some modes and on some hardware. See the Bus Pirate menu options guide for detailed explanations.

Bus Interaction Syntax

A simple syntax is used to interact with chips. Syntax characters have the same general function in each bus mode, such as 'R' to read a byte of data.

[0x31 r:5]

This example syntax sends a bus start , the value 0x31, and then reads 5 bytes, followed by bus stop. Up to 255 characters of syntax may be entered into the Bus Pirate terminal at once, press enter to execute the syntax.

Macros

I2C>(0)
0.Macro menu
1.7bit address search
2.I2C sniffer
I2C>(1)

Macros perform complex actions, like scanning for I2C addresses, interrogating a smart card, or probing a JTAG chain. Macros are numbers entered inside (). Macro (0) always displays a list of macros available in the current bus mode.

Terminal Control

The Bus Pirate understands some VT-100 (ANSI C0) terminal emulation.

Keyboard KeyCtrl-KeyAction
 [left arrow]   ^BMoves the cursor left one character
 [right arrow]   ^FMoves the cursor right one character
 [up arrow]   ^PCopies the previous command in the command history buffer to the command line
 [down arrow]   ^NCopies the next command in the command history buffer to the command line
   ^AMoves the cursor to the beginning of the line
   ^EMoves the cursor to the end of the line
 [backspace]   ^HErases the character to the left of the cursor and moves the cursor left one character
 [delete]   ^DErases the character under (or to the right of) the cursor and moves the cursor left one character

For more information see this thread in the Bus Pirate forum.