binmode

You are currently browsing the archive for the binmode category.

will_j posted a Bus Pirate script that controls a Sure Electronics 8×32 LED marquee:

Here’s a quick and dirty perl script to display ‘BPv3′ on a Sure Electronics 8×32 LEd Matrix display.

You can also use a 16×24 display if you change the second command code to 44 from 40.

Any improvements gratefully received – i.e. a nice character lookup table process would be good!

View a copy in the Bus Pirate scripts folder. We demonstrated a slightly different Sure LED matrix a in a demo: post a few weeks ago.

Thanks for the tip!

Tags: , , ,

rawspi

There’s a new Bus Pirate v2.9 nightly that adds several small features and improvements. The primary binary mode now has commands to access the voltage probe and setup pulse-width modulation on the AUX pin. Binmode documentation is updated with these new commands. We also improved the code behind the frequency generator and frequency measurement features in user mode.

Tags:

raw-wire

Raw-wire binary mode provides access to the Bus Pirate’s raw 2- and 3-wire libraries. This new mode will make it easier to script operations on arbitrary serial protocols used by devices like smart cards, shift registers, etc. A completed raw-wire binary mode will be in the next firmware release, for now you can grab the latest v2.9 nightly compile.

Here’s all the binmode documentation so far. Binary raw-wire mode specification follows after the break.

Read the rest of this entry »

Tags: ,

iancable1

For the past week we’ve been collecting your demo scripts for the Bus Pirate’s new binary interface mode. All the entries were excellent. Thank you for participating!

Everyone who submitted a script will get a probe cable kit, courtesy of Seeed Studio.

If you didn’t finish a script in time for the giveaway, we’d still like to host your script in the Bus Pirate project SVN.

Tags:

eepromgui

audiohacked wrote a cross-platform ROM programmer GUI for the Bus Pirate after seeing James’ Windows EEPROM programmer in C. Check out the development here, here, and here.

Tags: , ,

iancable1

We want your scripts! We’ll send Bus Pirate probe cable kits to two authors of binmode scripts posted by the end of the weekend. Any language is fine, but something widely available and cross-platform is best.

The Bus Pirate has five new binary access modes that can be scripted from a PC: 1-Wire, UART, I2C, SPI, and bitbang. We’ve already gotten some excellent demo scripts, and there’s more basic Perl demos in the example scrips folder. If you script something for any of the new modes, in any language, we’d like to host it with the other examples.

Tags:

version-pl2

This Perl script demonstrates a way to get the Bus Pirate hardware and firmware version from binary mode. The approach is pretty simple: enter binary mode, reset from binary mode, parse the version information shown on reset (same as ‘i’ in the user terminal).

Note that the latest firmware, v2.8, changes the order of version info in the display. The current formatting will be retained for the foreseeable future. If this inconsistency with earlier versions is a problem for your script, you could search the output for key words that precede the version strings (“Firmware v” and “Bus Pirate v”) for a more robust identification routine.

Submit your scripts by the end of this weekend for a Bus Pirate probe cable kit.

Tags: , ,

perl-st

Here’s a roundup of the binary mode scripts we’ve collected so far. Submit your scripts by the end of this weekend for a Bus Pirate probe cable kit.

blue.zener wrote a Ruby class to interface the Bus Pirate, and demonstrated it with a Nokia 3310 LCD. audiohacked recently updated pyBusPirate, a comprehensive Python interface library. James wrote an example I2C EEPROM programming script in C for Windows.

There’s also three Perl examples in the demo scripts folder. The binmode test shows how to enter and exit the new modes. The self-test script demonstrates the new binary manufacturing test modes. The binary SPI sample script dumps EEPROMs to a file.

Tags:

jeeprom

James submitted an example binmode script in C for Windows. It programs an ASCII hex file onto an I2C eeprom like the 24FC64. This is an excellent demo for anyone who wants to make a native Windows application that interfaces the Bus Pirate.

Don’t forget that we want your scripts too. We’re giving away two Bus Pirate probe kits to binmode script authors. Here’s all the binmode documentation so far.

Thanks for the tip!

Tags: , , ,

bpproject

Please join us in welcoming audiohacked to the Bus Pirate project. audiohacked wrote the excellent Python wrapper for the new Bus Pirate binary modes, and now he’ll be updating a copy in the project SVN too. pyBusPirate makes Bus Pirate scripting easy for Python developers, and it’s the most complete binmode reference implementation available.

Tags: ,

1w01

The Bus Pirate’s new binary modes provide a consistent, logical way to script actions from Python, Perl, etc. We’ve already introduced the new binary bitbang, SPI, I2C, and UART modes. This post outlines the last planned binmode addition, 1-Wire functions. A completed binary mode will be in the next firmware release, for now you can grab the latest v2.7 nightly compile.

We want your scripts! If you script something for any of the new modes, in any language, we’d like to host it in the example scripts folder. We’ll send Bus Pirate probe cable kits to two authors of Bus Pirate binary mode scripts posted by the end of next week (October 24th, 2009). Here’s all the binmode documentation so far.

Binary 1-Wire mode specification follows after the break.

Read the rest of this entry »

Tags: ,

[vimeo http://vimeo.com/7139826]

blue.zener interfaced a Nokia 3310 LCD using the new Bus Pirate binary mode. He also wrote a general Ruby class for the Bus Pirate binmode. There’s a bit more in the forum, too. The step-by-step overview is excellent, great work!

Don’t forget that we want your scripts too. We’re giving away two Bus Pirate probe kits to binmode script authors. Here’s all the binmode documentation so far.

Thanks for the tip!

Tags: ,

binuart

The Bus Pirate’s new binary modes provide a consistent, logical way to script actions from Python, Perl, etc. We already introduced the new binary bitbang, SPI, and I2C modes. This post outlines the binary UART functions. A UART is like a PC serial port. Binary mode will be complete in the next firmware release, for now you can grab the latest v2.7 nightly compile.

We want your scripts! If you script something for any of the new modes, in any language, we’d like to host it in the example scripts folder. We’ll send Bus Pirate probe cable kits to two authors of Bus Pirate binary mode scripts posted by the end of next week (October 24th, 2009). Here’s all the binmode documentation so far.

Binary UART mode specification follows after the break.

Read the rest of this entry »

Tags: ,

perl-st

Since v2 the Bus Pirate firmware has included a self-test that verifies the function of pins and peripherals. The latest v2.6-nightly build adds a self-test to the binary bitbang mode. This is a useful way for applications to test the Bus Pirate, and for manufacturing quality control.

Self-test details after the break. Don’t forget that we’re giving Bus Pirate probe cables to script authors.

Read the rest of this entry »

Tags: , ,

bppy

Audiohacked developed pyBusPirateLite, a Python interface to the new Bus Pirate binmode. It includes libraries that manage each mode (bitbang, SPI, I2C), and an example SPI EEPROM reader built on the libraries. Download a copy from our example scripts folder, or get the latest code at Audiohacked’s git repository. You’ll also need pySerial if you don’t have it.

Don’t forget that we want your scripts too! We’re giving away two Bus Pirate probe kits to binmode script authors. Here’s all the binmode documentation so far.

Thanks for the tip!

Tags: ,

binic2

The Bus Pirate’s new binary modes provide a consistent, logical way to script actions from Python, Perl, etc. We already introduced the new binary bitbang and SPI modes, today we’ll document the binary I2C mode. Binary I2C will be in the v2.6 firmware release, for now you can grab the v2.6 nightly compile.

We want your scripts! If you script something for any of the new modes, in any language, we’d like to host it in the example scripts folder. We’ll send Bus Pirate probe cable kits to two authors of Bus Pirate binary mode scripts posted by the end of next week (October 24th, 2009).

Binary I2C mode specification follows after the break.

Read the rest of this entry »

Tags: , ,

binmode

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.

Tags: , ,

rawspi

There’s two new binary I/O libraries in the v2.3 Bus Pirate firmware. Raw bitbang mode provides direct control over the Bus Pirate pins and hardware using a simple single-byte protocol. We discussed the new raw SPI mode yesterday.

Hopefully the raw access modes inspire some interesting new Bus Pirate tools using PC software. There’s already a patch for AVRDude AVR programmer in the works.

Full documentation of the raw bitbang binary I/O mode after the break.

Read the rest of this entry »

Tags: ,

rawspi

Raw SPI is a new mode that provides high-speed access to the Bus Pirate SPI hardware. It was developed in conjunction with Michal Ludvig, so that AVRDude can use the  Bus Pirate to program AVR microcontrollers and EEPROMs.

Firmware v2.3 includes two new raw I/O modes that give computer software and scripts direct access to the Bus Pirate hardware. Hopefully this opens the door to a whole new class of Bus Pirate applications, like chip programmers. In this post we describe the raw SPI access mode. We’ll describe the raw bigbang mode in a few days. The protocol is documented below the break.

Read the rest of this entry »

Tags: , ,