Bus Pirate binmode Perl test script

Posted on Monday, October 12th, 2009 in binmode, Bus Pirate by Ian


Here’s a Perl script that demonstrates the new Bus Pirate binary bitbang mode. You’ll need Perl with Win32::SerialPort or Device::SerialPort, and a Bus Pirate with firmware v2.4 or later. Edit the script to use the correct serial port number and device.

We chose Perl because we had never used it before, and we weren’t in the mood for a strongly typed language like Python. Perl’s serial port situation isn’t as clean or universal as Python’s pySerial. Since the Bus Pirate already uses a Python firmware updater, using Python for binmode scripts seems preferable. Hopefully we’ll have some Python examples soon, but if you come up with something first, please share it in the forum.

This entry was posted on Monday, October 12th, 2009 at 8:12 am and is filed under binmode, Bus Pirate. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

Leave a Reply

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Recent Comments

  • Drone: The LM7171 used in this very simple design can be simulated in LTspice with reasonable results at 10MHz using the non-encrypted PSPICE model from TI...
  • Jon Jackson: I would be interested in 1 or 2 of your circuit boards. Jon
  • Max: An actual Saturday "detector" built with the same hardware would use the precisely timed slightly varying length of the day (and some built-in astronomy data)...
  • KH: In the old days, these things remained on paper forever as whimsical scrawls. Today, they are brandished about on blogs for the entire world to...
  • KH: So he doesn't really know what he's doing. Yawn. It's sensor-controlled. It's not an oscillator. A leaf covers the window, you're toast. TLV3702? Overkill. The...