Code Monkey home page Code Monkey logo

Comments (6)

rmhsilva avatar rmhsilva commented on August 28, 2024

Hey Liam, thanks for this! I've been meaning to start on I2C for ages, just haven't had the time. I need to get some more testing going for UART and SPI too.

To add I2C mode you'll just have to create the I2C.js file in lib/, using uart.js or spi.js as a template for the first parts, and then code up the I2C specific data handling stuff.

from node-buspirate.

LiamKarlMitchell avatar LiamKarlMitchell commented on August 28, 2024

I have used SPI as a template, looks like sniffing is done with slightly different bits on i2c I will have to learn more about them.

Then of course I have to find a way to attach the probe's too the chip I have...

ATMEL G
24RF08CN
 0336

The pins on the chip are so tiny though I can't get the hook around it. Any suggestions? I was thinking of getting thin sewing needles and bluetack and trying to bluetack them in place then attach probes to the needles, or thread copper wire around the pins somehow with tweezers.

I suppose I should buy a chip or two to test on as well. Or find some old device I can rip apart to play with before trying to use it on the thing I want to read as I Don't want to accidentally fry the chip or write over the memory lol.

from node-buspirate.

rmhsilva avatar rmhsilva commented on August 28, 2024

Yeah the sniffing will definitely be different, as will start / stop, and probably a few other things I haven't looked into.

I'd recommend plugging it into some breadboard, and using some solid core wire to help probe (I'm assuming your eeprom is a DIP). Or if you have any kind of microcontroller (arduino, etc) you could write some code to talk over I2C.

from node-buspirate.

LiamKarlMitchell avatar LiamKarlMitchell commented on August 28, 2024

Well I have it setting the options and speed. Onto sniff. It seems to just be 0x0F.

I am a little confused about this part.

// If it's already started, interperet this as a restart request
if (this.sniffer) {
  this.bp.write('r');
  return;
}

If you have the time to look its here for now, https://github.com/LiamKarlMitchell/node-buspirate

I will do a pull request when I get more implemented and can test it :).

from node-buspirate.

LiamKarlMitchell avatar LiamKarlMitchell commented on August 28, 2024

Tried to sniff some traffic from a chip when it should of been getting read.
It seems a bit odd that i keep getting 5d 5b 5c ff 2d 5c I ended up holding the probes onto the pins on the chip with two hands whilst pressing the enter key with my nose hahaha.

BP: receive \?-[5cff2d]
BP: receive \?-\?-[5cff2d5cff2d]
BP: receive \?-[5cff2d]
BP: receive \?-\?-[5cff2d5cff2d]

I brought some chips and bread board to test on but have to wait a week or two for them to get here gah. I will be able to work out more then :).

from node-buspirate.

rmhsilva avatar rmhsilva commented on August 28, 2024

Hey man, cool stuff. Unfortunately I don't have access to my electronics kit right now, but will have a look asap!

from node-buspirate.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.