RE: [iPAQ] [Familiar] Serial Issues

From: Lonny Selinger <lonny.a.t.bangtherockstogether.net>
Date: Thu Apr 24 2003 - 12:55:56 EDT

Just in the event that you're running this as a Linux (running iptables) to iPAQ set
up ... here is the script I use to make my serial connection (note I now I have two
lines for the different baud rates now)

#!/bin/sh

# Set up the ppp link
/usr/sbin/pppd /dev/ttyS0 57600 192.168.100.1:192.168.100.2 nodetach local noauth
nocrtscts lock user ppp connect "/usr/sbin/chat -v -t3 ogin--ogin: ppp" &

#/usr/sbin/pppd /dev/ttyS0 115200 192.168.100.1:192.168.100.2 nodetach local noauth
nocrtscts lock user ppp connect "/usr/sbin/chat -v -t3 ogin--ogin: ppp" &

#brief pause
sleep 10

# yeah I should just enable this anyway but ...
echo 1 > /proc/sys/net/ipv4/ip_forward

# start some masq'ing rules
iptables -t nat -I POSTROUTING -j LOG -s 192.168.100.2/32
iptables -I FORWARD -d 192.168.100.2/32 -j LOG
iptables -I FORWARD -s 192.168.100.2/32 -j LOG
iptables -t nat -I POSTROUTING -j MASQUERADE -s 192.168.100.2/32
iptables -I FORWARD -s 192.168.100.2/32 -j ACCEPT
iptables -I FORWARD -d 192.168.100.2/32 -j ACCEPT

#end

--
Lonny
> I read somewhere that the 39xx series (which is what I have) has the
> pins backwards for some type of connection. It may have been USB, I'm
> not sure. There is supposed to be a way to use Linux (via USB) to
> connect to the iPaq. I've been trying (unsuccessfully) to do it. I will
> try and connect serially and let you know how it goes.
>
> Andy
>
> -----Original Message-----
> From: Lonny Selinger [mailto:lonny@bangtherockstogether.net]
> Sent: Thursday, April 24, 2003 9:59 AM
> To: Andrew Thiessen
> Cc: lonny selinger
> Subject: Re: [iPAQ] [Familiar] Serial Issues
>
> I am using a 3970. Here are the general specs:
>
> Linux familiar 2.4.19-rmk6-pxa1-hh11 #1 Fri Apr 18 17:02:07 EDT 2003
> armv5tel un
> known
>
> Opie: unstable
>
> --
> Lonny
>
>> What kind of iPaq do you have?
>>
>> Andy
>>
>>>
>>> A little while back I was having issues with connecting to my iPAQ
> from a Linux
>>> machine. Basically my pppd connect script was failing. After doing a
> little
>>> debugging and getting a hand from someone on IRC (I appologize I
> can't rememebr
>>> for
>>> life of me who), I got the connection established. The problem was
> the baudrate
>>> ...
>>> no *serious* issue, I could still connect at 57600.
>>>
>>> After bringing my iPAQ to work I figured I'd reset the baud rate on
> hyperterminal
>>> (for now I have no choice for O/S at work on desktop) but the
> connection wouldn't
>>> work. I set it to the old values (115200 8N1 etc) and it worked fine,
> however
>>> after
>>> trying this again at home I still can not connect at the higher baud
> rate  :\
>>>
>>> Is there something in either familiar's or Linux's RS232 code thats
> flakey?  I'd
>>> tend to assume its my linux box if hyperterminal worked ok ... just
> curious if
>>> anyone else has noticed this.
>>>
>>> --
>>> Lonny
>
>
>
>
Received on Thu Apr 24 16:59:15 2003

This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:45:02 EDT