The Museum of HP Calculators

HP Forum Archive 09

[ Return to Index | Top of Index ]

HP48sx data transfer via serial port
Message #1 Posted by Stephen on 18 Oct 2002, 11:41 a.m.

I am attempting to transfer data to/from my HP48sx calculator via kermit running under either Windows/DOS or Linux. It does not work.

On a different computer running the same software (in a DOS prompt), the transfer works fine, so I am certain that the HP48 and the cable are not damaged. Instead, it is a problem with my serial port setup on the computer.

On the other computer (the one that works fine), I use a DOS based kermit and the commands:

set port com1

set speed 9600

set parity none

-- then I send the file and all is fine.

It does not work fine on my home computer. However, if I copy a text file to the com port I can see that the data packets will arrive:

HP48: open the connection (I/O -> OPENI)

Linux: cp test /dev/ttyS0

HP48: I/O -> BUFL

HP48: drop

HP48: I/O -> SRECV

-----------------

More information: (in Linux)

setserial -g /dev/ttyS*

/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4

/dev/ttyS1, UART: 16550A, Port: 0x02f8, IRQ: 3

/dev/ttyS2, UART: 16550A, Port: 0x03e8, IRQ: 4

/dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3

ttyS0 = com1, ttyS1= com2, ttyS2 = com3, ttyS3 = com4

I have a modem on com2. Com1 and com3 are physical ports on the back of the computer. There is nothing attached to com3. I do not require the modem, since I use a network card for internet connectivity.

Any ideas on how the get the data transfers via kermit to function properly?

Stephen

      
Re: HP48sx data transfer via serial port
Message #2 Posted by Vieira, Luiz C. (Brazil) on 18 Oct 2002, 3:09 p.m.,
in response to message #1 by Stephen

Hi;

Which port is your mouse connected to? Both pairs Com1/Com3 and Com2/Com4 share the same interruption request (4 and 3 respectively). I had problems with that under Windows, but plain DOS worked fine (no mouse). Try loging in an unused terminal and keep text mode; maybe this will work, too.

Anyway, have you tried to connect two computers using this serial port? I used Kermit under DOS, but I did not run it under Linux; this way you can check for comms under Linux in a diferent way.

Success.

            
Re: HP48sx data transfer via serial port
Message #3 Posted by Stephen on 19 Oct 2002, 11:25 a.m.,
in response to message #2 by Vieira, Luiz C. (Brazil)

My mouse is connected to the PS/2 port. It should nat have any effect upon the COM/ttyS* ports.

I have tried to do the file transfers in Windows, DOS, Linux (X) amd Linux (console mode - no gpm/mouse running). The result does not change... the software and the calculator just keep on retrying until they time out.

                  
Re: HP48sx data transfer via serial port
Message #4 Posted by Vieira, Luiz C. (Brazil) on 20 Oct 2002, 2:38 p.m.,
in response to message #3 by Stephen

Hi;

I have a PC running Linux and another one to run whatever I want to (both are PII 233MHz, 64MRAM, one with a 4GBytes HD, the other wiht an 8GB). Let me know which Linux you are running and, if you can, let me know where to download "Kermit for Linux" from OR send me a zipped file with it. I'll try it from here.

Anyway, if you have success, let us know, too.

Cheers.

                        
Re: HP48sx data transfer via serial port
Message #5 Posted by Glen Kilpatrick on 20 Oct 2002, 8:09 p.m.,
in response to message #4 by Vieira, Luiz C. (Brazil)

There must be *many* places to download kermit from, but I refer you to it's home, Columbia University ---

http://www.columbia.edu/kermit/

However, its unix section reminds me that kermit may be included in "free" distributions. Are you sure you don't already have a "local copy", on your install CDs?

                        
Re: HP48sx data transfer via serial port
Message #6 Posted by Stephen on 20 Oct 2002, 8:12 p.m.,
in response to message #4 by Vieira, Luiz C. (Brazil)

As John has suggested, I think I have an IRQ conflict. Linux is not the problem, nor is the distribution. I have a 486 with the same Linux distribution installed (Debian Woody) and everything works fine on it.

fyi: I'm using ckermit.

I will try to resolve the conflict when I find the time to do so. Thanks for the replies.

      
Re: HP48sx data transfer via serial port
Message #7 Posted by John on 19 Oct 2002, 11:34 a.m.,
in response to message #1 by Stephen

More information: (in Linux)

setserial -g /dev/ttyS*

/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4

/dev/ttyS1, UART: 16550A, Port: 0x02f8, IRQ: 3

/dev/ttyS2, UART: 16550A, Port: 0x03e8, IRQ: 4

/dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3

ttyS0 = com1, ttyS1= com2, ttyS2 = com3, ttyS3 = com4

I have a modem on com2. Com1 and com3 are physical ports on the back of the computer. There is nothing attached to com3. I do not require the modem, since I use a network card for internet connectivity.

Any ideas on how the get the data transfers via kermit to function properly?

I would say you have an IRQ conflict. Go into your BIOS and disable COM3 - ttyS2 and try again.

Cheers


[ Return to Index | Top of Index ]

Go back to the main exhibit hall