Shop OBEX P1 Docs P2 Docs Learn Events
Alter Serial number — Parallax Forums

Alter Serial number

grungegrunge Posts: 5
edited 2009-02-09 16:57 in BASIC Stamp
HI...i want to kwon how can i change the serial number of a datalogger?!

Comments

  • grungegrunge Posts: 5
    edited 2009-02-09 11:57
    so...i have somethig like this


    READ 2044,Word z, Word y
    STORE 0
    SEROUT 16,baudmode,[noparse][[/noparse]"Serial_Number:",HEX4 y,HEX4 z,CR]


    ...and i want to change the serial number
  • Tracy AllenTracy Allen Posts: 6,662
    edited 2009-02-09 16:57
    It sounds like you may be using the OWL2pe data logger from EME Systems, because its serial number is in fact stored in slot 15 as two words occupying locations 2044 through 2047.

    STORE 15   ' serial # stored in slot 15
    READ 2044,Word z, Word y
    SEROUT 16,baudmode,[noparse][[/noparse]"Serial_Number:",HEX4 y,HEX4 z,CR,"Enter new number: "]
    SERIN 16,baudmode, [noparse][[/noparse]HEX4 y, HEX4 z]    ' to be new serial number, 8 digits
    SEROUT 16,baudmode, [noparse][[/noparse]CR,"Okay ",HEX4 y, HEX4 z,CR]
     WRITE 2044,WORD z,WORD y
    STORE 0    ' if this is where the store pointer needs to be
    



    You can put anything you want in those locations, however, it is something that EME Systems puts there for the purpose of tracking, and it supposed to match the serial number printed on the circuit board. The high 4 digits are the hardware revision number and the lower 4 digits are the sequence number. If you need to track your own project information, slot 15 is a good place to write it.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tracy Allen
    www.emesystems.com
Sign In or Register to comment.