Re: How to get HP 48G to talk to MacOS X? Message #4 Posted by Bob Blaylock on 24 Mar 2007, 5:10 p.m., in response to message #3 by Thomas Okken
Quote:
To get Kermit to work between my PC and my HP-48G under Linux, I downloaded and compiled C-Kermit, and I use the following settings in my .kermrc file:
set modem type none
set line /dev/ttyUSB0
set carrier-watch off
set speed 9600
set parity none
set flow xon/xoff
set block-check 3
set transfer mode manual
set file type binary
set control prefix all
I expect you'll need something different for the "set line" command...
On my system, the two serial ports (mine was the very last desktop Macintosh model to have built-in serial ports) are /dev/cu.modem and /dev/cu.printer. As I have an actual modem connected to cu.modem, I'm using cu.printer for my HP48G.
OK, now I seem to be getting somewhere. With these settings, I can now send files to the HP48G. I can also do a directory, that shows what the HP48G has at its root directory. I can't seem to CD on the HP48G, nor can I receive files, or do anything else, though.
And with similar settings, I can now also get ZTerm to send files to the HP48G as well; but I can't seem to interact with it in any other way.
All this is with the HP48G set to be in server mode.
On further experiementation, I see that if I type "connect" into kermit, and then go to the TRANSFER menu on the HP48G, I can send files from the HP48G to my Macintosh. But If I try to transfer "Remote Files from PC", I get error messages on both sides. I guess each side agrees on how to send a file from whatever side is being manually operated, but not on how to tell the side that is acting as a server what files to send.
Quote: BTW, you shouldn't have to be root to run Kermit; you can also just change the permissions on the serial port to allow read and write access for everyone: chmod 666 /dev/cu.printer -- or, make the kermit executable setuid root (not recommended).
No, I shouldn't. Other programs don't have this problem, but for some reason, kermit does.
0 [24 Mar 2007 13:52:02 Bob:/tmp] bob% kermit
/var/spool/lock: Permission denied
?SET SPEED has no effect without prior SET LINE
C-Kermit 8.0.211, 10 Apr 2004, for Mac OS X
Copyright (C) 1985, 2004,
Trustees of Columbia University in the City of New York.
Type ? or HELP for help.
(/tmp/) C-Kermit>set line /dev/cu.printer
/var/spool/lock: Permission denied
Sorry, write access to UUCP lockfile directory denied.
*************************
HINT (Use SET HINTS OFF to suppress future hints):
Please read the installation instructions file, ckuins.txt,
or the UNIX appendix of the manual, "Using C-Kermit"
or visit http://www.columbia.edu/kermit/ckuins.html
*************************
(/tmp/) C-Kermit>exit
0 [24 Mar 2007 13:52:19 Bob:/tmp] bob% sudo kermit
Password:
C-Kermit 8.0.211, 10 Apr 2004, for Mac OS X
Copyright (C) 1985, 2004,
Trustees of Columbia University in the City of New York.
Type ? or HELP for help.
(/tmp/) C-Kermit>set line /dev/cu.printer
(/tmp/) C-Kermit>exit
Closing /dev/cu.printer...OK
0 [24 Mar 2007 13:52:37 Bob:/tmp] bob% ls -alg /dev/cu*
crw-rw-rw- 1 root wheel 8, 3 Mar 24 03:16 /dev/cu.modem
crw-rw-rw- 1 root wheel 8, 1 Mar 24 13:51 /dev/cu.printer
0 [24 Mar 2007 13:52:57 Bob:/tmp] bob%
I see now that it's complaining about not having permission to write to /var/spool/lock. Setting permissions on that directory to allow writing to it seems to solve that problem.
Quote: When it comes to using Xmodem, you need to install an Xmodem server on the 48G; in my case, I use the misleadingly-named HP48GII and HP49G+ PC Connectivity Kit (which supports the 48G just fine)
It's not evident that that will help me.
Anyway, I seem to be making progress. There's still obviously quite a bit that I don't yet quite get. Any additonal guidance would be appreciated.
|