Skip to main content
Topic: Is there a way to pipe the data that was read to a file? (Read 2362 times) previous topic - next topic

Is there a way to pipe the data that was read to a file?

Hi,  I'm brand new to Bus Pirate.  I only started today.  I'm intending to use the device to read a 24AA512 EEPROM.  I've managed to get the tool to read the EEPROM but I want to read the entire EEPROM and I don't have much interest in cut/paste 64K bytes of data.  Is there a way to pipe the data to a file on my pc as I read it?

I'm also interested to know if there is a way to read/write to specific addresses.

Thanks in advance.

Re: Is there a way to pipe the data that was read to a file?

Reply #1
so far as I know there is no eeprom dumper over i2c.
You could try this: https://github.com/Hashcode/i2c-tools/t ... r/eepromer with a rpi.
Or this: https://gist.github.com/cutaway/5c9538c5b80ce794c2a4
Maybe you have to tweak this python script.
Yes, you can read specific addresses. Look at the datasheets.

Re: Is there a way to pipe the data that was read to a file?

Reply #2
Thanks. This device makes as much sense as a fighter jet with a 10 gallon fuel tank.  Just enough to take off and land at the same airport to refuel.

Re: Is there a way to pipe the data that was read to a file?

Reply #3
Hi Aileyus.
You can try with I2CEEPROMWIN (viewtopic.php?f=4&t=8763).
Use it to collect and save the whole content of the chip.
Since I2CEEPROMWIN fails in read the starting address you must read its content using the terminal or whatever you prefer and add the read in the start of the file saved with I2CEEPROMWIN paying attention to shift one byte down the whole previous content.
Read carefully what is explain in the link I wrote above.
Of course the same thing can also be done with Buccaneer's Den, Pirateconsole and many other GUI, though you have to write a bit of scripting.

Be seeing you.

U.Sb

Re: Is there a way to pipe the data that was read to a file?

Reply #4
[quote author="suchende"]so far as I know there is no eeprom dumper over i2c.
You could try this: https://github.com/Hashcode/i2c-tools/t ... r/eepromer with a rpi.
Or this: http://www.slimmingpillsreview.com/
Maybe you have to tweak this python script.
Yes, you can read specific addresses. Look at the datasheets.[/quote]

This is EXACTLY what I was looking for - thank you! I also agree with trying it with I2CEEPROMWIN