debrouxl / hplp

Windows / MacOS X / Linux third-party connectivity kit library / linking software for the newest HP calculators, targeting the Prime at first. It is strongly derived from libti*, https://github.com/debrouxl/tilibs , which implements communication with all TI graphing calculator families.
42 stars 8 forks source link

Issue running the program #5

Open Marifante opened 6 years ago

Marifante commented 6 years ago

Hi, I tried to run the program un Ubuntu 16.04 and i got this error:

Entering program hpfiles INFO: hpfiles library version 0.0.1 hpfiles INFO: hpfiles_init: init succeeded hpcables INFO: hpcables library version 0.0.1 hpcables INFO: hpcables_init: init succeeded hpcalcs INFO: hpcalcs library version 0.0.1 hpcalcs INFO: hpcalcs_init: init succeeded hpopers INFO: hpopers library version 0.0.1 hpopers INFO: hpopers_init: init succeeded Supported cables: 0x3 Supported calcs: 0x3 hpcables INFO: hpcables_handle_new: handle allocation for model 0 succeeded hpcables INFO: hpcables_cable_probe: probe succeeded hpcables INFO: hpcables_probe_cables: probing cable succeeded hpcables INFO: hpcables_handle_del: handle deletion succeeded hpcables INFO: hpcables_probe_cables: destroy handle for model success hpcables INFO: hpcables_handle_new: handle allocation for model 1 succeeded hpcables ERROR: cable_prime_hid_probe: cable probe failed hpcables ERROR: hpcables_cable_probe: probe failed hpcables ERROR: hpcables_probe_cables: probing cable Prime (HID) failed hpcables INFO: hpcables_handle_del: handle deletion succeeded hpcables INFO: hpcables_probe_cables: destroy handle for model Prime (HID) success NOTE: null cable selected, the program won't do much in the way of useful things ! Initialized libraries hpcables INFO: hpcables_handle_new: handle allocation for model 0 succeeded hpcalcs ERROR: hpcalcs_probe_calc: calc probe failed hpcalcs_probe_calc failed 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!

I do not have much experience in Linux, I followed its installation guide to the letter. But surely I'm failing something.

debrouxl commented 6 years ago

Sorry, I completely forgot about this issue after the e-mail, despite being marked important, fell out of the window of recent e-mails :(

So far, I'm not convinced that you're failing something - it may just be that libhpcalcs supports modern Prime versions even less than I knew about :) Maybe integrating #4 would help, down the road.

What's the output of lsusb when your calculator is plugged into the computer and powered on ? HP changed the USB PID at some point, but the master branch is supposed to contain support for both PIDs that I know about.

metawops commented 4 years ago

Just in case: my G2 HP Prime is listed as Bus 020 Device 001: ID 03f0:2441 Hewlett Packard HP Prime in lsusb. 😉 Oh, and it's got the latest firmware from January 21, 2020 (2.1.14433).

debrouxl commented 4 years ago

Thanks for the information :) I've submitted this PID at https://usb-ids.gowdy.us/read/UD/03F0 , like I submitted a bunch of PIDs for TI graphing calculators and related devices earlier.

parkerlreed commented 4 years ago

So do we just need to manually update the PID in the code and it should work?

parkerlreed commented 4 years ago

Ok so I tried this. Works! But not all of the commands are the same. Some work fine but others like screenshot and the like fail.