Calculator Community > HP Prime

libhpcalcs: a toolkit for communicating with Prime calcs...

<< < (2/6) > >>

Lionel Debroux:
Definitely, like libti*, libhpcalcs aims at being a backend for both CLI programs and GUI programs.

http://desowin.org/usbpcap/tour.html gives some information about capturing USB packets.

Lionel Debroux:
I have fixed several bugs reported on TI-Planet, and performed large changes on error codes, which I had started before the bug reports. The code base doesn't seem to be completely broken, according to critor's tests (upwards propagation of errors was already mostly done).
For now, until further testing, changes were pushed to a new "master2" branch. You need to pull and explicitly checkout the branch to be able to test the new changes.

New Windows binaries + source tarball (hopefully) attached.

Thanks in advance ;)

[EDIT: removing extraneous file, I attached it twice]

DJ Omnimaga:
1: Check ready success

2: Get infos success

3: This one doesn't seem to work: No matter what I type as format choice ("png", "bmp","gif", or fully spelled out or with a dot at the start), It just says "Canceled" ???

4: Haven't tested yet since I don't know the syntax

5: Same

6: After one minute with nothing happening, this is what I got:

--- Quote ---hpcalcs_calc_recv_backup failed
0 TODO human-readable error message
--- End quote ---

7: Not sure how this works, but I typed 1 as ID then it said prime_send_data succeeded


It might be good to include more documentation on how to use this, with examples, as I seemed to have absolutely no clue about what I am doing.

Lionel Debroux:
Thanks.

3: in fact, the calculator produces only PNG images, and one needs to enter 8, 9, 10 or 11 to get screenshots in two resolutions and color depths (all of which need unimplemented color conversion). But only the source code tells that story...

6: could you send me the "trace.txt" file which was created in the same folder ?
Lack of user feedback about operations which are longer than a second or two is a major utilisability no-no, but I haven't implemented any form of progress callbacks yet. When I do, the callback system will be different from that of upstream (EDIT: I mean libticalcs).
Finally, backuping a calculator is slow, due to HID being slow, I can't do anything about that.

In fact, test_hpcalcs is only a test client (derived from test_ticalcs_2), aimed at making small tests and showing how to use the library's functions. If it were to stay the only user-facing tool, it would badly need some documentation indeed. The library aims at being the backend for higher-level GUI and CLI tools; I just hope someone will take on the task of writing a GUI for a backend which largely works...


Offline, I have started implementing error messages and i18n, but I don't think i18n actually works yet, and I think I know why.

DJ Omnimaga:
Ok thanks for the info. I'll e-mail you a copy of my trace.txt file now.

By the way, how long should it take to backup a calculator that has 400 KB of data? (Only a single program, which shows 63 KB, but I'm sure the program menu displays wrong sizes, since it's over 400 KB on the computer in unicode text form)

EDIT: Screenshots works (they are discolored as we know, but at least I got no error)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version