Shop OBEX P1 Docs P2 Docs Learn Events
Lost program still in stamp, retreivable? — Parallax Forums

Lost program still in stamp, retreivable?

DntGvaShtDntGvaSht Posts: 65
edited 2004-08-17 03:40 in BASIC Stamp
I posted this question in yahoo group, but I am posting it here also b/c yahoo takes hours and hours just to post my message.

I was working on a program when my computer lost power.· Much progress had been made, and starting over from square one makes me want to cry.· The work I had done up to that point had been loaded into the stamp and is still executing.·

Now, seems to me that if I can use the "Memory Map" function and see all the tokens in memory, there must be some peice of software out there that can translate that information back into the source code.

Does anyone know of such software?

Comments

  • KenMKenM Posts: 657
    edited 2004-07-25 18:48
    This question has come up before and the official answer is no.

    However, somebody from the yahoo group has a method it is possible.....I believe some component must be desoldered from the stamp board....but don't quote me on that.
  • DntGvaShtDntGvaSht Posts: 65
    edited 2004-07-25 18:54
    In that case I would like to make a feature request to Parallax:

    auto-save at intervals.

    I think i'm going to cry now, it took me days to decode the signals from the RF remote, conclude what timing constants to use, differentiate between remote command syntax, program command-handling subroutines, time the output routines to coincide with all the other stuff going on, .... sigh
  • KenMKenM Posts: 657
    edited 2004-07-25 19:04
    Yeah,

    That auto save feature is currently Alt S

    I feel your pain!
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-07-25 19:39
    Yes, there's no getting around the rule: "Save early, save often."

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office
  • DntGvaShtDntGvaSht Posts: 65
    edited 2004-07-25 19:47
    Yeah, I just can't believe I forgot to save.· Oh well, live and learn.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "01101000 01100101 01101100 01101100 01101111 00100000 01110111 0110111 01101111 01110010 01101100 01100100 00100001"
  • DonDon Posts: 34
    edited 2004-07-26 04:54
    Hey, Supreme Being.· You dropped a bit in the eighth byte of your signature.
  • DntGvaShtDntGvaSht Posts: 65
    edited 2004-07-26 09:05
    Right you are Don, fixed now.· Thanks

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "01101000 01100101 01101100 01101100 01101111 00100000 01110111 0110111 01101111 01110010 01101100 01100100 00100001"
  • DntGvaShtDntGvaSht Posts: 65
    edited 2004-07-26 09:08
    That's odd... although in my profile it has the eighth bit on the eigth byte... the eighth bit is not showing up in my sig...· possible forum bug?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "01101000 01100101 01101100 01101100 01101111 00100000 01110111 0110111 01101111 01110010 01101100 01100100 00100001"
  • DntGvaShtDntGvaSht Posts: 65
    edited 2004-07-26 09:31
    Posted it as a possible bug, http://forums.parallax.com./forums/default.aspx?f=13&m=333

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "01101000 01100101 01101100 01101100 01101111 00100000 01110111 0110111 01101111 01110010 01101100 01100100 00100001"
  • DonDon Posts: 34
    edited 2004-07-26 15:09
    Not to pick nits, but shouldn't the first byte more properly be 01001000?
  • Mag748Mag748 Posts: 263
    edited 2004-07-26 17:26
    So what is the missing Bit??
  • DonDon Posts: 34
    edited 2004-07-26 17:47
    Actually, it looks like the eighth group (which should be 0x6f, missing the LSB) appears correctly as the ninth group of bits. The eighth group is superfluous.
  • Tracy AllenTracy Allen Posts: 6,657
    edited 2004-07-26 17:53
    I'm not sure if you picked up the reply from Steve Parkis on the Yahoo board, but he did provide a link to a description of his technique and service...

    home.earthlink.net/~parkiss/recovery.txt

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tracy Allen
    www.emesystems.com
  • DntGvaShtDntGvaSht Posts: 65
    edited 2004-07-26 21:03
    Don said...
    Not to pick nits, but shouldn't the first byte more properly be 01001000?
    Yes, it should be... and that's how I entered it, but the forum software keeps jumble-bumbling what I put in.· Seems like a highly-sophisticated graphically-interfaced super-speed peice of equipment could handle a few binary strings lol.gif
    (just picking, i know you mod guys will figure out the bug)

    The correct string is:
    OIOOIOOO OIIOOIOI OIIOIIOO OIIOIIOO OIIOIIII OOIOOOOO OIIIOIII OIIOIIII OIIIOOIO OIIOIIOO OIIOOIOO OOIOOOOI

    Tracy Allen
    Thanks for relaying the message for me, and while I think it's a great service he offers, I don't think it's worth the trouble/money to me personally.

    I have found some information on the net about how to de-tokenize the stamp's memory back into pbasic, and I also could write a program to do just that.· But given the amount of coding necessary to do such a thing, my time would be best spent just re-doing the work I had already done.· Although I now have a neat project for a "rainy day".

    Thanks again

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    00000000000000000000000000000000000000000000000000000000000000000000000000000000000
  • DntGvaShtDntGvaSht Posts: 65
    edited 2004-08-16 19:41
    Update:

    It's been nearly a month since I had to start all over again on this project, and I did finish it.

    However, today I found that my code had been saved after all, and just hadn't shown up in the open file dialog.· The reason is, when I saved the file I gave it the useful name alarmpjct1a.· When I hit save, the Basic Stamp Editor did not automagically give it a file extension like any sensable program would do.

    I found this out because last night I had saved some code.· Today when I went to start working on it again, it was missing in the Open File dialog.· I thought "Now wait a minute, I KNOW I saved that file.".· Looking around in Explorer revealed that I did in fact save it, but the file did not have an extension.· Going back to the Editor's Open File dialog, I selected "All File Types" and BAM! there it was.

    Now... I feel really a little stupid for giving up my search so easily a month ago and wasting days of reprogramming, but I also feel like it's a quasi-bug that the Editor doesn't save files with an extension when you give the file a name.

    Looking at the save file dialog, it says "Save as type...Basic Stamp Files", but when you save it and go to open it again, the file is missing unless you change the file type to "All"·or you remembered from a bad experience that YOU have to give it the .bs2 when you name it. mad.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "OIOOIOOO OIIOOIOI OIIOIIOO OIIOIIOO OIIOIIII OOIOOOOO OIIIOIII OIIOIIII OIIIOOIO OIIOIIOO OIIOOIOO OOIOOOOI"
    schat.jpghttp://68.11.58.106:69/ircchat2/jicra-1.2.2/index-js.html

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2004-08-16 19:58
    DntGvaSht said...

    ---trimmed---

    Looking at the save file dialog, it says "Save as type...Basic Stamp Files", but when you save it and go to open it again, the file is missing unless you change the file type to "All"·or you remembered from a bad experience that YOU have to give it the .bs2 when you name it. mad.gif

    I'm not taking sides here, you may in fact have a problem with your version of the software, however, I myself have never had this happen with the Stamp Editor software.· What I have had happen though is that on MANY applications I have had Windows 98 or Windows Me machines fail to properly save the file through the Windows file system.· This has happened in E-Mail, and more notably in saving picture files.· Since I switched to Windows XP a couple of years ago, the only glitch I get is whever I right-click and select "Save Picture As..." is ALWAYS wants to save it as an Untitled.bmp file.· Remember, it's more likely that it's a Windows problem...It's just that I've never heard of anyone mention this problem before.· To test this, can you duplicate the problem on another computer?


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage

    Knight Designs
    324 West Main Street
    P.O. Box 97
    Montour Falls, NY 14865
    (607) 535-6777

    Business Page:·· http://www.knightdesigns.com
    Personal Page:··· http://www.lightlink.com/dream/chris
    ·
  • DntGvaShtDntGvaSht Posts: 65
    edited 2004-08-16 21:40
    Verified on my laptop, when·I select "File/Save as..." I get the Save File dialog box.· Below where you enter the filename, it says "Save as type...Basic Stamp files (*.BS2,*....)".· The name defaulted to untiltled1, so I changed it to laptoptest.· I hit save.· I went to "File/Open..." and the Open File dialog box came up with the file I just saved missing.· I changed the file type to "All files" and only then did I see the file.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "OIOOIOOO OIIOOIOI OIIOIIOO OIIOIIOO OIIOIIII OOIOOOOO OIIIOIII OIIOIIII OIIIOOIO OIIOIIOO OIIOOIOO OOIOOOOI"
    schat.jpghttp://68.11.58.106:69/ircchat2/jicra-1.2.2/index-js.html

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2004-08-17 03:40
    DntGvaSht said...
    Verified on my laptop, when·I select "File/Save as..." I get the Save File dialog box.· Below where you enter the filename, it says "Save as type...Basic Stamp files (*.BS2,*....)".· The name defaulted to untiltled1, so I changed it to laptoptest.· I hit save.· I went to "File/Open..." and the Open File dialog box came up with the file I just saved missing.· I changed the file type to "All files" and only then did I see the file.
    Weird...· cry.gif


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage

    Knight Designs
    324 West Main Street
    P.O. Box 97
    Montour Falls, NY 14865
    (607) 535-6777

    Business Page:·· http://www.knightdesigns.com
    Personal Page:··· http://www.lightlink.com/dream/chris
    ·
Sign In or Register to comment.