Post Reply 
libhpcalcs: portable (Windows / MacOS X / Linux) connectivity kit library
02-09-2014, 09:41 AM (This post was last modified: 02-09-2014 09:42 AM by Cristian Arezzini.)
Post: #68
RE: libhpcalcs: portable (Windows / MacOS X / Linux) connectivity kit library
I just tried the whole procedure again after installing a fresh Ubuntu system.
I followed the README in libhpcalc's page here.
The whole process went without errors or warnings, and at the first test (with sudo) I got the menu with the choices. I tried receiving a screenshot, but the process hung halfway.
Now when I try receiving a screenshot, these are the last lines I see:
Code:
hpcalcs DEBUG: Dumping IN packet with size 64
hpcalcs DEBUG:     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
hpcalcs DEBUG:     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
hpcalcs DEBUG:     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
hpcalcs DEBUG:     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
hpcalcs INFO: prime_recv_data: breaking because the expected size was reached (2)
hpcalcs INFO: prime_recv_data: shortening packet from 98595 to 98567
hpcalcs DEBUG: read_vtl_pkt: command matches returned data
hpcalcs INFO: calc_prime_r_recv_screen: embedded=DA63 computed=D15F
hpcalcs ERROR: calc_prime_r_recv_screen: CRC mismatch
hpcalcs WARN: calc_prime_r_recv_screen: unknown marker at beginning of image
hpcalcs ERROR: calc_prime_recv_screen: r_recv_screen failed
hpcalcs ERROR: hpcalcs_calc_recv_screen: recv_screen failed
hpcalcs_calc_recv_screen failed
hpcalcs INFO: Unhandled packet format

388 Unhandled packet format

or sometimes I get this:
Code:
Choose a format (for Prime, usually 8 to 11):8

8
Enter output filename: /home/cristian/prova

/home/cristian/prova
hpcalcs INFO: prime_send_data: q:0      r:2
hpcalcs DEBUG: Dumping OUT packet with size 3
hpcalcs DEBUG:     00 00 FC 
hpcables INFO: cable_prime_hid_send: wrote 0 bytes
hpcalcs INFO: prime_send: send succeeded
hpcalcs INFO: prime_send_data: send remaining succeeded
hpcables INFO: cable_prime_hid_recv: read 0bytes
hpcalcs INFO: prime_recv_data: breaking due to short packet (1)
hpcalcs INFO: prime_recv_data: shortening packet from 0 to 0
hpcalcs INFO: read_vtl_pkt: empty packet
hpcalcs INFO: calc_prime_r_recv_screen: packet is too short: 0bytes
hpcalcs ERROR: calc_prime_recv_screen: r_recv_screen failed
hpcalcs ERROR: hpcalcs_calc_recv_screen: recv_screen failed
hpcalcs_calc_recv_screen failed
hpcalcs INFO: Unhandled packet format

388 Unhandled packet format

or this:
Code:
Choose a format (for Prime, usually 8 to 11):8

8
Enter output filename: /home/cristian/prova

/home/cristian/prova
hpcalcs INFO: prime_send_data: q:0      r:2
hpcalcs DEBUG: Dumping OUT packet with size 3
hpcalcs DEBUG:     00 00 FC 
hpcables ERROR: cable_prime_hid_send: write failed (null)
hpcables WARN: hpcables_cable_send: send failed
hpcalcs ERROR: prime_send: send failed
hpcalcs INFO: prime_send_data: send remaining failed
hpcalcs ERROR: calc_prime_recv_screen: s_recv_screen failed
hpcalcs ERROR: hpcalcs_calc_recv_screen: recv_screen failed
hpcalcs_calc_recv_screen failed
hpcables INFO: Error writing to cable

259 Error writing to cable
and so on. Basically it's very unstable, I haven't been able to successfully transfer anything yet...

Sometimes the program doesn't even start and I get this:
Code:
cristian@cristian-notebook:~/lpg/hplp/hplp/libhpcalcs/tests$ ./test_hpcalcs
Entering program
hpfiles INFO: hpfiles library version 0.0.1 compiled on Feb  9 2014 10:12:41
hpfiles INFO: hpfiles_init: init succeeded
hpcables INFO: hpcables library version 0.0.1 compiled on Feb  9 2014 10:12:42
hpcables INFO: hpcables_init: init succeeded
hpcalcs INFO: hpcalcs library version 0.0.1 compiled on Feb  9 2014 10:12:42
hpcalcs INFO: hpcalcs_init: init succeeded
hpopers INFO: hpopers library version 0.0.1 compiled on Feb  9 2014 10:12:43
hpopers INFO: hpopers_init: init succeeded
Initialized libraries
hpcables INFO: hpcables_handle_new: handle allocation succeeded
hpcalcs INFO: hpcalcs_handle_new: calc handle allocation succeeded
hpcables ERROR: cable_prime_hid_open: cable open failed
hpcables ERROR: hpcables_cable_open: open failed
hpcalcs ERROR: hpcalcs_cable_attach: cable open failed
hpcalcs INFO: hpcalcs_handle_del: calc handle deletion succeeded
hpcables INFO: hpcables_handle_del: handle deletion succeeded
Exiting program
hpopers INFO: hpopers_exit: exit succeeded
hpcalcs INFO: hpcalcs_exit: exit succeeded
hpcables INFO: hpcables_exit: exit succeeded
hpfiles INFO: hpfiles_exit: exit succeeded
Goodbye world!


The last lines of dmesg are these:
Code:
[ 8575.872096] usb 1-5: new high-speed USB device number 18 using ehci-pci
[ 8576.005143] usb 1-5: New USB device found, idVendor=03f0, idProduct=0441
[ 8576.005162] usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 8576.005171] usb 1-5: Product: HP Prime Calculator
[ 8576.005179] usb 1-5: Manufacturer: Hewlett-Packard
[ 8586.004409] hid-generic 0003:03F0:0441.000B: timeout initializing reports
[ 8586.004885] hid-generic 0003:03F0:0441.000B: hiddev0,hidraw1: USB HID v1.01 Device [Hewlett-Packard HP Prime Calculator] on usb-0000:00:02.1-5/input0
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: libhpcalcs: portable (Windows / MacOS X / Linux) connectivity kit library - Cristian Arezzini - 02-09-2014 09:41 AM



User(s) browsing this thread: 1 Guest(s)