MarineCorpsComm
06-05-2010, 10:28 AM
Hello Prop heads... This Marine is looking for some help ... before I go crazy (and we don't want that http://forums.parallax.com/images/smilies/nono.gif )
I am working on debugging traffic on an established circuit that is using I2C between a micro and a... lets just call it slave chip A.
I thought it would be a good idea to lend another Marine my USB <--> I2C adapter and have been trying to decode this traffic for the past 4 hours with a scope and a notepad. Needless to say my eyes (and brain) hurt. So... I decided to dig out my prop and use it to aid in the process. I started to rip apart the objects from exchange, however I have hit a roadblock. (It's always the things that sound so simple in your head that end up taking the most time) My first issue is that I am unsure if I need to use the SCL line, or since I am just trying to "sniff" the traffic, I could just use the SDA and a ground?... I am definitely seeing structured data on the scope, viewport, and EventLogger with just SDA and the ground.
Since the 'read' commands in the objects I have tested assume that you are sending a read request, and know the address of what you are looking for.... I am just lost in the sauce without starting from scratch.
All I want to do is be able to spy on those little bits and dump them out as hex to a term with some sort of deliminator. In my delirious mind something that looks like :
[DeviceID2] XXX Write / Read [DeviceID2] [Data]
PS. For any curious people that dream about the many ways other folks use Parallax products. I use the BS2 and Prop on all sorts of tactical satcom gear while trouble shooting. It saves me having to haul out an a scope, sig gen, cables, power supply to the field. All I need is a 9volt and a small LCD or sometimes just some LEDs and a bunch of jumper wires... and it all fits in my cargo pocket. For things like.... reading external GPS clock rates, verifying a sat modem is in loopback... or even bit bang a simple baseline router config WITHOUT a laptop <Thanks Kye the FAT SD object will work perfectly for storing configs) ... awesome stuff. This forum is great.
I appreciate any help. Just picture a sad Marine with his notepad and dirt covered O-scope http://forums.parallax.com/images/smilies/cool.gif
I am working on debugging traffic on an established circuit that is using I2C between a micro and a... lets just call it slave chip A.
I thought it would be a good idea to lend another Marine my USB <--> I2C adapter and have been trying to decode this traffic for the past 4 hours with a scope and a notepad. Needless to say my eyes (and brain) hurt. So... I decided to dig out my prop and use it to aid in the process. I started to rip apart the objects from exchange, however I have hit a roadblock. (It's always the things that sound so simple in your head that end up taking the most time) My first issue is that I am unsure if I need to use the SCL line, or since I am just trying to "sniff" the traffic, I could just use the SDA and a ground?... I am definitely seeing structured data on the scope, viewport, and EventLogger with just SDA and the ground.
Since the 'read' commands in the objects I have tested assume that you are sending a read request, and know the address of what you are looking for.... I am just lost in the sauce without starting from scratch.
All I want to do is be able to spy on those little bits and dump them out as hex to a term with some sort of deliminator. In my delirious mind something that looks like :
[DeviceID2] XXX Write / Read [DeviceID2] [Data]
PS. For any curious people that dream about the many ways other folks use Parallax products. I use the BS2 and Prop on all sorts of tactical satcom gear while trouble shooting. It saves me having to haul out an a scope, sig gen, cables, power supply to the field. All I need is a 9volt and a small LCD or sometimes just some LEDs and a bunch of jumper wires... and it all fits in my cargo pocket. For things like.... reading external GPS clock rates, verifying a sat modem is in loopback... or even bit bang a simple baseline router config WITHOUT a laptop <Thanks Kye the FAT SD object will work perfectly for storing configs) ... awesome stuff. This forum is great.
I appreciate any help. Just picture a sad Marine with his notepad and dirt covered O-scope http://forums.parallax.com/images/smilies/cool.gif