Last modified: Mar, 2015
This tutorial works for Bus Pirate V3 on LinuxMint 13, but should also work for other Linux distributions with or without minor modifications.
UDev can make Bus Pirate show up with a consistent device file under /dev. First find the device information associated with the Bus Pirate device (more details can be found in udev quick reference). Run
and find the related information such as
It means the device is at “/dev/bus/usb/002/009”. And run
Create a udev rule with some information in the output above, such as
Here the serial number attribute is added to the udev rule in case there are other FTDI chips interfacing with the host computer. Save this to “/etc/udev/rules.d/61-buspirate1.rules”, and restart the udev daemon
Reconnect the Bus Pirate to the computer, and it should be associated with “/dev/BusPirate1”, and writable to all.
update, Mar 2015: I found miniterm may send extra characters to Bus Pirate. Using minicom or screen is recommended for now.
Bus Pirate interfaces with host computer with text-based commands via UART link.
It is natural for a Python fan like myself to resort to Python-based tools for almost everything. Here a command-line based Python script called “miniterm.py”, which is a part of pySerial package, is used to interface with Bus Pirate. First install the pySerial package as follows
The usage of miniterm can be found here. According to this post, the UART parameters for Bus Pirate are
Now run
After an “Enter”, the CLI should be very similar to that in this tutorial.
A self-test described in this post is recommended before the first use to see if the Bus Pirate board is in good condition.
In the end, enter “Ctrl+]” to exit.
Another popular UART tool is minicom:
But this is not done yet. I find that one has to disable hardware and software flow control to avoid sending extra characters to Bus Pirate in the UART communication. In this case, the windows may just hang there after the above command. Now press “Ctrl+A” and then “Z” (for help), and then “O” (configure minicom), select “serial port setup”, press “F” (disable hardware flow control), and exit. Or, you can just do
to set up the serial port interactively.
Now you should be able to talk to the Bus Pirate normally.
and you are good to go.
Tutorials are readily available. Here are just a few:
General: Bus Pirate 101, Bus Pirate 102