Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.hardware > #2871
| From | Moe Trin <ibuprofin@painkiller.example.tld.invalid> |
|---|---|
| Newsgroups | comp.os.linux.hardware |
| Subject | Re: Talk to modem with USB to serial adapter: fail |
| Date | 2015-08-16 20:10 +0000 |
| Organization | Senator Claghorn's Regional Office |
| Message-ID | <slrnmt1rle.psv.ibuprofin@planck.phx.az.us> (permalink) |
| References | (2 earlier) <8737zn3bb5.fsf@bogus.nodomain.nowhere> <slrnmsq2ef.c6h.ibuprofin@planck.phx.az.us> <87wpwx86lf.fsf@bogus.nodomain.nowhere> <slrnmsvnbl.8de.ibuprofin@planck.phx.az.us> <8737zjg7zz.fsf@bogus.nodomain.nowhere> |
On 16 Aug 2015, in the Usenet newsgroup comp.os.linux.hardware, in article
<8737zjg7zz.fsf@bogus.nodomain.nowhere>, Mike Spencer wrote:
>Got it!
GREAT!
>In my chat(8) script, the initial expect sequence was:
>
> '' '\rATZ'
>
>No recollection of why I have the '\r' there -- lost in the mists of
>time and it has worked that way on sevral versions of Slackware and
>different computers.
I was going to say that's Al Longyear (the guy who adapted ppp for
Linux), but I think that actually came from the original PPP-HOWTO by
Robert Hart from the mid-90s.
>Changed it to:
>
> '' 'ATZ'
>
>and everything proceeds as it should,
Great! Mentioned - I'd recommend making that 'AT&F1'
>I have *no* *idea* why '\r' works on bogus (desktop) but not on
>roadgrime (laptop) with the same model of modem.
It's likely the adapter, but not a big deal. \r is a carriage return
likely left in the UART from a previous command. Not a good thing to
be looking for, as what you are actually looking for is "" (nothing)
before sending the first command.
>Now I have another problem but it's nothing to do with hardware. It's
>something to do with my route setup. I've had no trouble with routes
>using the laptop on my LAN, on cabled broadband at a friend's or at
>wifi points. But successful connection of ppp0 to my ISP's host
>leaves me cut off from all the net but the machine that hosts the
>other end of ppp.
Yup, there should be an error message - "pppd not replacing an existing
default route". The "ANU" version of PPP was written by people with
paranoia, and having a default route when an existing local network is
present is often a security issue (back-door around the firewall on the
LAN). Some versions of pppd have a "replacedefaultroute" option, but
it's very distribution dependent, and the ANU authors (Paul Mackerras
and James Carlson) declined to have anything to do with that idea. My
way "around" this is
[planck ~]$ head -6 /usr/local/bin/dialin
#!/bin/bash
/sbin/route | /bin/grep -q "default"
if [ $? -eq 0 ] ; then
echo "Pre-existing default route - delete that"
exit 1
fi
[planck ~]$
(I was a network admin before I retired, so I appreciate the security
concerns of the pppd authors). It's even more of a mess, because the
way the routing code in the kernel works. When there are two or more
routes to the "same" place with equal metrics and network mask, it uses
the "last" one declared, under the philosophy that the admin had screwed
up the first route command, and was correcting the mistake (and failed
to delete the mistake in the hurry to get things working).
The concept is something like if you have an existing default route,
why are you wasting time/effort to create a second using pppd, and if
the existing default doesn't lead to the world, why is it there? ;-)
I'm old fashioned here, and use static addressing on my lan, and the
box with the modem is a firewall. Hosts on the LAN all have that box
as their default route. Two of the laptops also have modem setups,
which is not used that often (but that's the reason for those six lines
above) as they usually are connected with Ethernet to the LAN.
Old guy
Back to comp.os.linux.hardware | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Talk to modem with USB to serial adapter: fail Mike Spencer <mds@bogus.nodomain.nowhere> - 2015-08-12 03:03 -0300
Re: Talk to modem with USB to serial adapter: fail Jerry Peters <jerry@example.invalid> - 2015-08-12 20:36 +0000
Re: Talk to modem with USB to serial adapter: fail Mike Spencer <mds@bogus.nodomain.nowhere> - 2015-08-13 04:19 -0300
Re: Talk to modem with USB to serial adapter: fail Moe Trin <ibuprofin@painkiller.example.tld.invalid> - 2015-08-13 21:17 +0000
Re: Talk to modem with USB to serial adapter: fail Mike Spencer <mds@bogus.nodomain.nowhere> - 2015-08-15 02:26 -0300
Re: Talk to modem with USB to serial adapter: fail Moe Trin <ibuprofin@painkiller.example.tld.invalid> - 2015-08-16 00:45 +0000
Re: Talk to modem with USB to serial adapter: fail Mike Spencer <mds@bogus.nodomain.nowhere> - 2015-08-16 00:43 -0300
Re: Talk to modem with USB to serial adapter: fail Moe Trin <ibuprofin@painkiller.example.tld.invalid> - 2015-08-16 20:09 +0000
Re: Talk to modem with USB to serial adapter: fail Mike Spencer <mds@bogus.nodomain.nowhere> - 2015-08-16 01:41 -0300
Re: Talk to modem with USB to serial adapter: fail Moe Trin <ibuprofin@painkiller.example.tld.invalid> - 2015-08-16 20:10 +0000
Re: Talk to modem with USB to serial adapter: fail Mike Spencer <mds@bogus.nodomain.nowhere> - 2015-08-16 22:28 -0300
Re: Talk to modem with USB to serial adapter: fail Michael Black <et472@ncf.ca> - 2015-08-16 22:48 -0400
Re: Talk to modem with USB to serial adapter: fail Mike Spencer <mds@bogus.nodomain.nowhere> - 2015-08-17 03:35 -0300
Re: Talk to modem with USB to serial adapter: fail Mike Spencer <mds@bogus.nodomain.nowhere> - 2015-08-17 03:22 -0300
Re: Talk to modem with USB to serial adapter: fail Moe Trin <ibuprofin@painkiller.example.tld.invalid> - 2015-08-17 23:50 +0000
Re: Talk to modem with USB to serial adapter: fail Mike Spencer <mds@bogus.nodomain.nowhere> - 2015-08-18 16:16 -0300
Re: Talk to modem with USB to serial adapter: fail Moe Trin <ibuprofin@painkiller.example.tld.invalid> - 2015-08-21 03:31 +0000
Re: Talk to modem with USB to serial adapter: fail Mike Spencer <mds@bogus.nodomain.nowhere> - 2015-08-25 01:58 -0300
Re: Talk to modem with USB to serial adapter: fail Moe Trin <ibuprofin@painkiller.example.tld.invalid> - 2015-08-27 02:28 +0000
All better now (Re: Talk to modem with USB to serial adapter: fail) Mike Spencer <mds@bogus.nodomain.nowhere> - 2015-09-03 18:53 -0300
Re: All better now (Re: Talk to modem with USB to serial adapter: fail) Moe Trin <ibuprofin@painkiller.example.tld.invalid> - 2015-09-04 20:00 +0000
Re: All better now (Re: Talk to modem with USB to serial adapter: fail) Richard Kettlewell <rjk@greenend.org.uk> - 2015-09-04 21:09 +0100
Re: All better now (Re: Talk to modem with USB to serial adapter: fail) Mike Spencer <mds@bogus.nodomain.nowhere> - 2015-09-04 23:14 -0300
Re: All better now (Re: Talk to modem with USB to serial adapter: fail) Richard Kettlewell <rjk@greenend.org.uk> - 2015-09-05 10:08 +0100
Re: All better now (Re: Talk to modem with USB to serial adapter: fail) Moe Trin <ibuprofin@painkiller.example.tld.invalid> - 2015-09-05 18:08 +0000
Re: All better now (Re: Talk to modem with USB to serial adapter: fail) Mike Spencer <mds@bogus.nodomain.nowhere> - 2015-09-06 01:31 -0300
Re: All better now (Re: Talk to modem with USB to serial adapter: fail) Moe Trin <ibuprofin@painkiller.example.tld.invalid> - 2015-09-06 19:17 +0000
Re: All better now (Re: Talk to modem with USB to serial adapter: fail) Mike Spencer <mds@bogus.nodomain.nowhere> - 2015-09-17 01:26 -0300
Re: All better now (Re: Talk to modem with USB to serial adapter: fail) Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2015-09-17 05:53 +0000
Re: All better now (Re: Talk to modem with USB to serial adapter: fail) Mike Spencer <mds@bogus.nodomain.nowhere> - 2015-09-17 04:02 -0300
Re: All better now (Re: Talk to modem with USB to serial adapter: fail) Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2015-09-17 18:02 +0000
Re: All better now (Re: Talk to modem with USB to serial adapter: fail) Mike Spencer <mds@bogus.nodomain.nowhere> - 2015-09-18 02:05 -0300
Re: All better now (Re: Talk to modem with USB to serial adapter: fail) Moe Trin <ibuprofin@painkiller.example.tld.invalid> - 2015-09-17 19:14 +0000
Re: All better now (Re: Talk to modem with USB to serial adapter: fail) Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2015-09-18 01:55 +0000
Re: All better now (Re: Talk to modem with USB to serial adapter: fail) Moe Trin <ibuprofin@painkiller.example.tld.invalid> - 2015-09-18 21:22 +0000
Re: All better now (Re: Talk to modem with USB to serial adapter: fail) Moe Trin <ibuprofin@painkiller.example.tld.invalid> - 2015-09-17 19:12 +0000
csiph-web