File transfers over USB



#4

As Lubuntu user I knew it would be no small feat to connect my computer to my HP50G, HP39GS and HP39GII via USB. The Linux Wine emulator won't map the PC's USB port as a phony COM1, despite my best efforts, though somebody out there may have succeeded at this task. This rules out using the software shipped with the calculators, or even Windows Hyperterminal, for file transfers.

However, the wonderful DOSBox emulator for Linux works quite well.

The key is the addition of this line to its configuration file:

serial1= directserial realport:ttyUSB0 rxdelay:60

As long as the calculator is USB attached and switched on, the "ttyUSB0" device pops up in Lubuntu's /dev folder. This is mapped to COM1 by DOSBox (DOSBox needs to have been launched from a terminal window with the "sudo" prefix and administrator password input or it won't be allowed to acquire control of the USB port).

I have had mixed success using the venerable Qmodem Pro terminal software for MSDOS with this arrangement. I can Kermit files to and from the HP50G. I have pulled files off the HP39GS via the Xmodem protocol but I have not managed to push anything across to it. The data will transfer but the HP39GS crashes out at the end without laying the files down to local storage.

The HP39GII puts up the strongest resistance. On connection, its USB port appears as /dev/usb/hidddev0 and won't map as a serial tty type of device (HID class USB ports won't do this, I think).

Of course, the HP39GII emulator runs nicely under Wine but sans USB.

Its along time since I blew 15 hours hacking comms software around trying to make reluctant devices talk to each other. It leaves you kind of giddy!

Edited: 9 Aug 2012, 3:11 p.m.


#5

The 39gII is an HID device. I am a bit surprised it doesn't work for you directly. Turn on the emulator, plug in the calc and try sending a matrix or something.

What specifically are you trying to accomplish with it?

Edited: 9 Aug 2012, 5:07 p.m.


#6

I was trying to establish a single tool for data exchange with all three calculators from a Linux platform.

Under Windows Vista and 7, I can move data between HP39GII and the emulator with no problems, though a cable disconnect and reconnect cycle is usually required to bring up the link. This just doesn't work under Wine and Linux because of incomplete USB support in Wine.

So, I tried the DosBOX alternative. Unfortunately, DosBOX will not open hiddev0 as a serial port.


#7

Ah, that makes more sense now.

TW


#8

Hello,

Where are stocked the program files on the computer ?
I need to know to share programs.

Thank you.


#9

I have noticed that programs created on the HP39GII emulator appear as named files in

/home/owner/.wine/drive_c/users/owner/Application Data/HP39gII

on my Linux PC.

Somewhere similar will apply on a real Windows PC. Thus, the HP39GII emulator should be able act as easily accessible storage for anything you upload off the real calculator via USB.


Possibly Related Threads…
Thread Author Replies Views Last Post
  Gathering USB dumps for Connectivity Kit <-> 39gII communication... debrouxl 2 1,694 12-01-2013, 12:59 PM
Last Post: Marcus von Cube, Germany
  Cannot delete file Les Koller 4 2,082 11-07-2013, 12:17 AM
Last Post: Les Koller
  File Format: hpprgm Thomas Chrapkiewicz 6 2,664 10-30-2013, 09:32 PM
Last Post: Thomas Chrapkiewicz
  HP-Prime File extension Paul D. Fox 6 2,269 10-07-2013, 01:45 AM
Last Post: cyrille de Brébisson
  USB flashing/Li-po boards patryk 6 2,532 09-08-2013, 12:31 PM
Last Post: patryk
  go71b 'lexs' or 'raws' file format? Christoph Giesselink 2 1,434 08-21-2013, 02:53 AM
Last Post: Christoph Giesselink
  USB Chargers for HP calcs Matt Agajanian 3 1,585 08-18-2013, 10:58 PM
Last Post: Craig Ruff
  How to use XnView to create .gro4 file as in OpenFire? arturfeghali 2 1,380 06-27-2013, 05:57 PM
Last Post: jerome ibanes
  41CL :TROUBLE IN FILE TRANsFER aurelio 22 6,264 06-18-2013, 03:44 PM
Last Post: aurelio
  How to save WP34s programs to a file? Harald 9 3,193 04-26-2013, 01:44 PM
Last Post: Walter B

Forum Jump: