cancel
Showing results for 
Search instead for 
Did you mean: 

Note on archived topics.

This topic has been archived. Information and links in this thread may no longer be available or relevant.
If you have a question create a new topic by clicking here and select the appropriate board.
Not applicable
87 46 4 5
Message 1 of 10
2,928
Flag Post
HP Recommended

Solved!

Prime upgrade to 2014.0331 deleted my app data

I first connected the Prime to the PC / Conn kit and did a backup of the calculator.
Then I updated the Conn kit program on the PC.
Then I updated the firmware of the Prime.
That was fine. However, when I checked my "custom" apps (copy of a hard app like the spreadsheet but with my own data). They were void of data. Just the icon is there (and empty spreadsheets).
So I restored the backup I made before this. No change in the apps.
So what is the best way to get MY data back to the calculator within the apps?  Data such as notes or programs are fine -- just the app instance data for copies of built-in apps is "gone".

0 Kudos
9 REPLIES 9
Not applicable
87 46 4 5
Message 2 of 10
2,837
Flag Post
HP Recommended

Solved!

Prime upgrade to 2014.0331 deleted my app data

I haven't seen any replies.  But I got to thinking...

If I could restore my apps from the backup to the virtual prime and then copy from that to the Prime, I might be able to recover.

HOWEVER,...

I did restore the most recent backup to the virtual Prime and found the same problem.  I even tried the backup before that.

Now I am beginning to suspect:

that 'backup' does not backup apps that I copied from the built-in.  I assumed 'backup', by definition, was supposed to get all data (and state info) that is user created.  Isn't it?

It appears that I have lost all the data:  custom spreadsheets filled with data.  It's things like this that make me hesitant to really use the Prime for anything important.

0 Kudos
Level 8
Level 8
735 732 120 180
Message 3 of 10
2,830
Flag Post
HP Recommended

Solved!

Prime upgrade to 2014.0331 deleted my app data

In your backup archive, remove the "calc.settings" file and I beleive everything will reload. Note I haven't tested that and I don't a unit near me to do so, but I suspect it will work.

TW

Although I work for the HP calculator group as a head developer of the HP Prime, the views and opinions I post here are my own.
0 Kudos
Level 6 cyrille
Level 6
214 213 36 66
Message 4 of 10
2,823
Flag Post
HP Recommended

Solved!

Prime upgrade to 2014.0331 deleted my app data

Hello,

 

Unfortunately, I do not think that it will...

 

Normally, the only lost data would be in the .hpapp files that start with an & (ie, the default apps).

If these are the ones that you are loosing, then you can try renaming them (and their associated .hpappprgm / .hpappnotes, if they mater) to another name and they should load (except for geometry, spreadsheet for which the file format has changed).

 

Cyrille

I am an HP Employee
0 Kudos
Not applicable
87 46 4 5
Message 5 of 10
2,778
Flag Post
HP Recommended

Solved!

Prime upgrade to 2014.0331 deleted my app data

Sorry TIm, Cyrille was right.  It did not work to delete that file from the backup zip and retry restore.

 

And sorry Cyrille, unfortunately the app data I am trying to recover are copies of the spreadsheet app.  So if the spreadsheet file format has changed in this 'upgrade', then they can't be recovered?

 

0 Kudos
Highlighted
Level 6 cyrille
Level 6
214 213 36 66
Message 6 of 10
2,772
Flag Post
HP Recommended

Solved!

Prime upgrade to 2014.0331 deleted my app data

Hello,

 

When there is a will, there is a way...

The data is still there and could potentially be extracted...

 

How large is your spreadsheet?

You could for example do the following:

reload an earlier version of the emulator, open the spreadsheet app and type L1:=A:z(-1) in HOME.

This will return a list of list of... lists which contains 99% of your spreadsheet data...

 

go back to the new version of the firmware and you should then be able to store the data back in a new spreadsheet app...

L1 should be kept during this update...

 

I do not think that you can do directly A:z(-1):=L1

however, you should be able to do

for C:=1 to SIZE(L1) do for r:=1 to SIZE(L1(1)) do Cell(R,C,-1):= L1(C,R); END END

to get your data back...

 

You might also be able to modify the binary file and get it to load, but this would require editing the file in hex, which is a little bit more complicated.

 

Cyrille

I am an HP Employee
0 Kudos
Thomas_E
Just joined
1 1 0 0
Message 7 of 10
2,761
Flag Post
HP Recommended

Solved!

Prime upgrade to 2014.0331 deleted my app data

Hello Cyrille,

 

could you please supply informations/documents about the binary file format(s) to the communities? 

I think I can remember that other Prime users  would like to restore their Spreadsheet data.

 

Many thanks in advance!

Thomas

0 Kudos
Not applicable
87 46 4 5
Message 8 of 10
2,721
Flag Post
HP Recommended

Solved!

Prime upgrade to 2014.0331 deleted my app data

Thanks Cyrille,

 

My spreadsheets are not large.  I lean more toward editing the binary file -- as a S/W engr, I've been know to do that sometimes.  And the idea of restoring the firmware back and doesn't appeal to me.  I don't know off hand how I'd would do that.  Where are the old versions kept?

 

So if there is a binary file format document, old and new versions, that would be fine.  If the changes are straight forward, it seems like a quick program (perhaps written for the PC) would be easy to do and would help anyone with similar predicament.  You development folks didn't write one already for your files, did you? <wink>

 

Dave.

0 Kudos
Level 6 cyrille
Level 6
214 213 36 66
Message 9 of 10
2,711
Flag Post
HP Recommended

Solved!

Prime upgrade to 2014.0331 deleted my app data

Hello,

 

Old format is (from the top of my end, in low endian)

int 16

int 3

int stuff[4]

int 0x90 // should be at position 24 in the file if my memory serves me well...

char more_stuff[0x90]

char Some_more_stuff[???]

 

New format is:

int 16

int 6 // change here!!!

int stuff[4] // copy from old

int 0x9C // change here!!!

char more_stuff[0x90] // copy from old file

int Put_0_here[3] // add 12 bytes set at 0 here

char Some_more_stuff[???] // copy end of file here..

 

So, change the 3 into a 6, change the 0x90 into 0x9c, insert 12 bytes in the appropriate location and it should work...

Upgrade at your own risk.

 

Cyrille

 

I am an HP Employee
0 Kudos
Not applicable
87 46 4 5
Message 10 of 10
2,654
Flag Post
HP Recommended

Solved!

Prime upgrade to 2014.0331 deleted my app data

Thanks a million Cyrille!

 

It worked.  The only difficulty was with windows and zip files (I had to install winzip to write the new backup zip file to restore from that had the updated files).  It probably would have been easier just to do everything on my Linux machine but the conn kit was on the windows machine.  I used 'xxd' in a cygwin shell to actually edit the files after some filtering with gawk (to remove ascii fields before text editing and to remove address field before xxd -r -p ... ).  There are probably a hundred ways to edit a file in hex but xxd was something I knew and was a quick fix.

 

Dave

 

0 Kudos

Note on archived topics.

This topic has been archived. Information and links in this thread may no longer be available or relevant.
If you have a question create a new topic by clicking here and select the appropriate board.
† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation