Export to GitHub

the-bus-pirate - issue #5

"Wait until interrupt" command


Posted on Mar 31, 2009 by Happy Giraffe

A new syntax command that pauses until the state of the AUX pin changes.

Might include: 1. Configurable direction (H->L, L->H). 2. Escape command/timeout to avoid a stuck device.

Comment #1

Posted on Dec 17, 2011 by Happy Elephant

Is this for scripting mode?

Comment #2

Posted on Dec 17, 2011 by Happy Lion

I think it was requested for normal user mode, so you can put in a whole sequence of commands, but some wait for feedback from the device.

Boy have you been busy!

Comment #3

Posted on Dec 17, 2011 by Quick Bird

The application I had in mind concerning this feature is a 802.15.4 sniffer using a Microchip MRF24J40M(A/B/C) module. I was going to implement as a PC side app that used the Bus Pirate's BBIO mode. The MRF24J40MB modules are a nice and low cost ($8 for the 'A' version). It's a SPI module with an interrupt line to announce packet arrivals etc. Problem is that the MRF24J40 radio chip only has buffer space for just one packet. So in a sniffer/debugger app you have to get that packet off the chip asap or you lose packets. Sure, I could high-frequency poll the interrupt register instead of waiting for physical interrupt, but that wastes CPU cycles on the PC and you'll also have some lag. I'm not sure what's the best way to implement this. It would be important that such feature is also available in big bang mode too.

Comment #4

Posted on Dec 17, 2011 by Quick Bird

Oops... "big bang mode" (that would be fun!) ... "bit bang mode" of course :)

Status: Accepted

Labels:
Type-Enhancement Priority-Medium