Shop OBEX P1 Docs P2 Docs Learn Events
ID — Parallax Forums

ID

Bill ChennaultBill Chennault Posts: 1,198
edited 2009-03-23 23:30 in General Discussion
All--

Is "ID" meant to be used as an identifier of the program in SX/B? I want to network a few SXs together and need a way to·identify each one. Is ID the answer?

If I am correct, will you show me an example of retrieving the ID? (I bet it is REALLY simple! [noparse]:)[/noparse]

Thanks!

--Bill

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
You are what you write.

Comments

  • BeanBean Posts: 8,129
    edited 2009-03-22 18:43
    Bill,
    ID is simply a string that is readable by the programmer even if the PROTECT bit is set.
    This allows you to determine what is in a chip.

    I've never tried to read it back, but I think it is possible. It would be alot simpler to just create a constant for each device though...

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    There is a fine line between arrogance and confidence. Make sure you don't cross it...

    ·
  • Bill ChennaultBill Chennault Posts: 1,198
    edited 2009-03-22 20:42
    Bean--

    Thanks! CON was and now IS Plan B.

    But, ID sounds like a great place for an identifier that could be written and EASILY read. One could use it as a node ID. Gee. I need to talk to the guy developing the SX/B compiler . . . [noparse]:)[/noparse]

    --Bill

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    You are what you write.
  • BeanBean Posts: 8,129
    edited 2009-03-23 02:18
    Bill,
    The ID is ONLY writable by the SX-Key programmer.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    There is a fine line between arrogance and confidence. Make sure you don't cross it...

    ·
  • Bill ChennaultBill Chennault Posts: 1,198
    edited 2009-03-23 02:40
    Bean--

    Maybe 3.0?

    --Bill

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    You are what you write.
  • BeanBean Posts: 8,129
    edited 2009-03-23 11:17
    Bill,
    No, it is how the SX hardware works. The SX cannot write to it's own flash memory. Only to it's own RAM.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    There is a fine line between arrogance and confidence. Make sure you don't cross it...

    ·
  • Bill ChennaultBill Chennault Posts: 1,198
    edited 2009-03-23 13:33
    Bean--

    Got'cha!

    I was only kinda funnin' ya along, anyway.

    --Bill

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    You are what you write.
  • UghaUgha Posts: 543
    edited 2009-03-23 13:53
    Thanks for this thread Bill and Bean... I was curious about ID myself [noparse]:)[/noparse]

    Bean... only the SX-key or SXBlitz can write to the ID... can the SX read it back in a program?
  • JonnyMacJonnyMac Posts: 9,213
    edited 2009-03-23 15:03
    No. You can store your own ID in a DATA statement and use READ to get it -- I do this with my products all the time.
  • Bill ChennaultBill Chennault Posts: 1,198
    edited 2009-03-23 23:30

    Bean--

    History repeats itself. You have proven it. I stand in awe. "ID" is proof positive.

    Back in the "old days"--Mike Green DOUBTLESS remembers--whenever someone asked what we were building we almost always said, "A write only memory. A WOM." "ID" is a perfect WOM. I'm awestruck. Often, our WOMs weighed (known as WW; this was before WWW) many pounds and took several ounces of solder to produce. What does "ID" weigh? It weighs NOTHING, Dude!

    And, just think of the data security!!! Admittedly, back when I built WOMs, data security was a totally ZERO issue. All I can say to our advantage is that we were ahead of our time . . . and didn't even know it. The SX/B WOM is totally secure! There is NO WAY to read it!

    I think you have created the single 2kewl thing in the universe! Please make sure that GM doesn't steal it like they did the 100 mpg carburetor in 1961.

    --Bill; aka former WOM Builder (bowing to the new generation)

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    You are what you write.
Sign In or Register to comment.