[ltp] Serial Ports on A22p

Tod Harter linux-thinkpad@www.bm-soft.com
Fri, 26 Apr 2002 15:17:14 -0400


Well, I have an A20p, and a SmartPhone, which I have been able to get to sync 
via IRDA. There seem to be a few little things you need to do (and I'm not 
100% sure your hardware is the same as mine, but some of this should be of 
some help).

I have
# IRDA
alias char-major-161 ircomm-tty
alias irda0 nsc-ircc
options nsc-ircc dongle_id=0x09

in my modules.conf file. I guess the dongle_id and maybe name of the chip 
driver (nsc-ircc) might be different for you.

Next I have a script that fires up IRDA for me:

        # Start up irda FIR services, this will
        # bring up the irda0 interface with irLaP
        # discipline, which will allow the use of ircomm
        # on ircomm0 (this is all defined in /etc/modules.conf,
        # it can be different...). I assume but have not tested
        # that other line disciplines can also be set up in a
        # similar fashion.
        # First make sure ttyS1 is not initialized, this assumes we are using 
comm1 settings for ir, change as needed.
        setserial /dev/ttyS1 uart none
        # install the irda module and the nsc uart chip driver, this is 
device specific (see modules.conf)
        modprobe irda
        modprobe nsc-ircc
        # bring up the irda0 interface
        /sbin/ifconfig irda0 up
        # put the stupid device node back where it should be...
        mknod /dev/ircomm0 c 161 0
        # let user space proggies have at it
        chmod 666 /dev/ircomm0
        # start ir discovery
        echo 1 > /proc/sys/net/irda/discovery

I think one key part of that is the "setserial /dev/ttyS1 uart none" which 
forces your RS232 driver to give up control of that port.

And that was about it. From there the Smartphone would be discovered by the 
kernel and its just a matter of application software. I use coldsync, which 
is a totally command-line thing that just backs up your Palm and can restore 
ets, but has no GUI. On the other hand you can script it with perl, so its 
pretty cool for me 'cause it will let me move data back and forth to MySQL 
:o).

On Friday 26 April 2002 14:32, you wrote:
> I'm running RH7.2 (KRUD really) on an A22p.  All is good, and has been
> good.  The power management related lockups are annoying and TightVNC seems
> to lock the whole machine, hard.
>
> My problem today is with serial ports.
>
> "setserial -g /dev/ttyS*" shows the following
>
> /dev/ttyS0, UART: Unknown, Port: 0x03f8, IRQ: 4
> /dev/ttyS1, UART: Unknown, Port: 0x02f8, IRQ: 3
>
> "stty -F /dev/ttyS1 -a" shows the following
>
> stty: /dev/ttyS1: Input/output error.
>
> I assume my serial ports are not on standard IRQs and Ports, but the driver
> thinks they are.  I have never needed to use the modem, IRDA or serial
> ports on this machine since I started running Linux full time on it.
>
> I'm trying to sync my Kyocera SmartPhone via the serial port on the back of
> the machine.
>
> I guess my question is, are my assumptions correct, and if so, how to I
> move these serial ports around or find out where they are so I can adjust
> the drivers.
>
> Thanks
>
> -JeffR
>
>
> ----- The Linux ThinkPad mailing list -----
> The linux-thinkpad mailing list home page is at:
> http://www.bm-soft.com/~bm/tp_mailing.html

----- The Linux ThinkPad mailing list -----
The linux-thinkpad mailing list home page is at:
http://www.bm-soft.com/~bm/tp_mailing.html