Shop OBEX P1 Docs P2 Docs Learn Events
3PClient: a console-like program on the Prop for reading/writing i2c-EEPROMs — Parallax Forums

3PClient: a console-like program on the Prop for reading/writing i2c-EEPROMs

Nick MuellerNick Mueller Posts: 815
edited 2009-07-04 20:30 in Propeller 1
Hi!

This is a tool for some WIP I made, so why not share it?

3PClient is a program running on the Propeller that can read and write i2c-EEPROMs. It is of little use when you just want to flash the Prop for normal work. Better use Propeller Tool or such.

The purpose of 3PClient is to write and read from different locations than from base-address 0x0000. As soon as you intend to boot into multiple locations in an EEPROM, you'll have troubles writing the images to those locations. That's exactly what 3PClient is for. Nothing else.


It's called "client", because it needs some server at the other side to receive and send data. I'm using RealTerm for that purpose. But a neat-looking app that first downloads 3PClient to the Prop and then communicates with him, hiding all that ugglyness of HEX-chars and such would be uber-cool. smile.gif
But I don't have the tools at hand and don't intend to invest time into that. If someone wants to write a Server, feel free, I'll help you.

And I don't remember anymore, why I called it "3P". Maybe because it's a 3-decker-Propeller? Means, it helps a bit to get 3 programs into an EEPROM? But only if there is sufficently space left on the EEPROM. Don't expect it to fit more than 32k into a 32k-EEPROM.

For more details, read the readme in the ZIP.

Comments, error-reports, suggestions and volunteers for the 3PServer welcome.

Edit:
Program is written in C. So if you need a i2c-driver (based on Mike Green's work) or a FullDuplexSerial with an adjustable (compile-time) buffer (for example 2k), check the sources.


Nick

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Never use force, just go for a bigger hammer!

The DIY Digital-Readout for mills, lathes etc.:
YADRO

Post Edited (Nick Mueller) : 7/4/2009 12:47:58 PM GMT

Comments

  • Nick MuellerNick Mueller Posts: 815
    edited 2009-07-04 14:05
    Oh, I forgot:
    There's a tool missing (beside the not so urgently required 3PServer) in the chain. I call it 3PConv. It's a command-line program for Win that takes a SPIN-binary and converts it to 3P-hex-format. Or the other direction.
    I'm just writing it, takes some time ...

    Edit:
    3P, not 3D.


    Stay tuned!
    Nick

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Never use force, just go for a bigger hammer!

    The DIY Digital-Readout for mills, lathes etc.:
    YADRO

    Post Edited (Nick Mueller) : 7/4/2009 9:04:15 PM GMT
  • Nick MuellerNick Mueller Posts: 815
    edited 2009-07-04 20:30
    And now the 3PConv...

    A little helper to convert between SPIN-binaries and 3PClient-format.
    See the brief readme-file. A command-line program for Windoze.

    Source included, in case someone wants to code the 3PServer.

    Nick

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Never use force, just go for a bigger hammer!

    The DIY Digital-Readout for mills, lathes etc.:
    YADRO
Sign In or Register to comment.