All of lore.kernel.org
 help / color / mirror / Atom feed
* LCP terminated by peer [LCP TermReq id=0x1]
@ 2015-06-04 13:54 Gustavo
  2015-06-04 17:37 ` James Carlson
  0 siblings, 1 reply; 2+ messages in thread
From: Gustavo @ 2015-06-04 13:54 UTC (permalink / raw)
  To: linux-ppp

[-- Attachment #1: Type: text/plain, Size: 2025 bytes --]

Hi All.

I am trying to get a mobile scanner Motorola MC32N0 (next generation
in MC3000 Series) working on a PC which is running Ubuntu 8.04, and
another PC with Ubuntu 14.04. But I have not succeeded after trying
and investigating a long time.

I have two oldest models of Motorola mobile scanner working fine:
MC3090 and MC3190.

MC3090 with Windows CE 5.0
MC3190 with Windows Mobile 6.5
MC32N0 with Microsoft Embedded Compact 7.

File PPP options (optionsttyUSB0.ce):

/dev/ttyUSB0
10.1.20.1:10.1.20.2
asyncmap 0
local
lock
lcp-echo-interval 3
lcp-echo-failure 3
lcp-restart 1
lcp-max-terminate 4
unit 0
mtu 168
mru 168
connect "/usr/sbin/chat -v -t 5 'CLIENT' 'CLIENTSERVER\\c'"
noauth
-detach
debug dump
kdebug 7

Command:

/usr/sbin/pppd ttyUSB0 file /etc/ppp/peers/optionsttyUSB0.ce

The output is identical for all models to the time the devices
incorporate its IP address -> (*)

MC3090 output

...
rcvd [IPCP ConfAck id=0x2 <compress VJ 0f 01> <addr 10.1.20.1>]
rcvd [IPCP ConfReq id=0x4 <compress VJ 0f 00> <addr 10.1.20.2>]
sent [IPCP ConfAck id=0x4 <compress VJ 0f 00> <addr 10.1.20.2>]
local  IP address 10.1.20.1
remote IP address 10.1.20.2
rcvd [CCP ConfAck id=0x3]
(*)
sent [LCP EchoReq id=0x1 magic=0x76ec1483]
rcvd [LCP EchoRep id=0x1 magic=0x0]
sent [LCP EchoReq id=0x2 magic=0x76ec1483]
rcvd [LCP EchoRep id=0x2 magic=0x0]


MC32N0 output

...
rcvd [IPCP ConfAck id=0x2 <compress VJ 0f 01> <addr 10.1.20.1>]
rcvd [IPCP ConfReq id=0x4 <compress VJ 0f 00> <addr 10.1.20.2>]
sent [IPCP ConfAck id=0x4 <compress VJ 0f 00> <addr 10.1.20.2>]
Cannot determine ethernet address for proxy ARP
local  IP address 10.1.20.1
remote IP address 10.1.20.2
rcvd [CCP ConfAck id=0x3]
(*)
rcvd [LCP TermReq id=0x1]
LCP terminated by peer
Connect time 0.1 minutes.
Sent 0 bytes, received 825 bytes.
sent [LCP TermAck id=0x1]
Connection terminated.
Modem hangup

No errors in output command. No erros in syslog.
And I have no idea what happens or how to find the cause.
Files involved are attached.

Please !!! Help me.

Gus

[-- Attachment #2: optionsttyUSB0.ce --]
[-- Type: application/octet-stream, Size: 257 bytes --]

/dev/ttyUSB0
10.1.20.1:10.1.20.2
asyncmap 0
local
lock
lcp-echo-interval 3
lcp-echo-failure 3
lcp-restart 1
lcp-max-terminate 4
unit 0
mtu 168
#mru 168
connect "/usr/sbin/chat -v -t 5 'CLIENT' 'CLIENTSERVER\\c'"
#proxyarp
noauth
-detach
debug dump
kdebug 7

[-- Attachment #3: ppp_3090.log --]
[-- Type: application/octet-stream, Size: 3156 bytes --]

root@mesaubu:~$ /usr/sbin/pppd debug ttyUSB0 file /tmp/optionsttyUSB0.ce 
Serial connection established.
using channel 36
Using interface ppp0
Connect: ppp0 <--> /dev/ttyUSB0
rcvd [LCP ConfReq id=0x0 <asyncmap 0x0> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 168> <asyncmap 0x0> <magic 0x76ec1483> <pcomp> <accomp>]
sent [LCP ConfAck id=0x0 <asyncmap 0x0> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <mru 168> <asyncmap 0x0> <magic 0x76ec1483> <pcomp> <accomp>]
sent [LCP EchoReq id=0x0 magic=0x76ec1483]
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 10.1.20.1> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
rcvd [CCP ConfReq id=0x0 <mppe -H -M -S -L -D +C>]
sent [CCP ConfRej id=0x0 <mppe -H -M -S -L -D +C>]
rcvd [IPCP ConfReq id=0x2 <compress VJ 0f 00> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-wins 0.0.0.0> <ms-dns3 0.0.0.0> <ms-wins 0.0.0.0>]
sent [IPCP ConfRej id=0x2 <ms-dns1 0.0.0.0> <ms-wins 0.0.0.0> <ms-dns3 0.0.0.0> <ms-wins 0.0.0.0>]
rcvd [IPV6CP ConfReq id=0x0 <addr fe80::19b1:063e:f9de:f9bf>]
Unsupported protocol 'IPv6 Control Protovol' (0x8057) received
sent [LCP ProtRej id=0x2 80 57 01 00 00 0e 01 0a 19 b1 06 3e f9 de f9 bf]
rcvd [LCP EchoRep id=0x0 magic=0x0]
rcvd [CCP ConfRej id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [CCP ConfReq id=0x2]
rcvd [IPCP ConfRej id=0x1 <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 10.1.20.1>]
rcvd [CCP ConfReq id=0x1]
sent [CCP ConfAck id=0x1]
rcvd [IPCP ConfReq id=0x3 <compress VJ 0f 00> <addr 0.0.0.0>]
sent [IPCP ConfNak id=0x3 <addr 10.1.20.2>]
rcvd [CCP ConfNak id=0x2 <mppe -H -M -S -L -D +C>]
sent [CCP ConfReq id=0x3]
rcvd [IPCP ConfAck id=0x2 <compress VJ 0f 01> <addr 10.1.20.1>]
rcvd [IPCP ConfReq id=0x4 <compress VJ 0f 00> <addr 10.1.20.2>]
sent [IPCP ConfAck id=0x4 <compress VJ 0f 00> <addr 10.1.20.2>]
Cannot determine ethernet address for proxy ARP
local  IP address 10.1.20.1
remote IP address 10.1.20.2
rcvd [CCP ConfAck id=0x3]
sent [LCP EchoReq id=0x1 magic=0x76ec1483]
rcvd [LCP EchoRep id=0x1 magic=0x0]
sent [LCP EchoReq id=0x2 magic=0x76ec1483]
rcvd [LCP EchoRep id=0x2 magic=0x0]
sent [LCP EchoReq id=0x3 magic=0x76ec1483]
rcvd [LCP EchoRep id=0x3 magic=0x0]
sent [LCP EchoReq id=0x4 magic=0x76ec1483]
rcvd [LCP EchoRep id=0x4 magic=0x0]
sent [LCP EchoReq id=0x5 magic=0x76ec1483]
rcvd [LCP EchoRep id=0x5 magic=0x0]
sent [LCP EchoReq id=0x6 magic=0x76ec1483]
rcvd [LCP EchoRep id=0x6 magic=0x0]
sent [LCP EchoReq id=0x7 magic=0x76ec1483]
rcvd [LCP EchoRep id=0x7 magic=0x0]
sent [LCP EchoReq id=0x8 magic=0x76ec1483]
rcvd [LCP EchoRep id=0x8 magic=0x0]
sent [LCP EchoReq id=0x9 magic=0x76ec1483]
rcvd [LCP EchoRep id=0x9 magic=0x0]
sent [LCP EchoReq id=0xa magic=0x76ec1483]
rcvd [LCP EchoRep id=0xa magic=0x0]
sent [LCP EchoReq id=0xb magic=0x76ec1483]
rcvd [LCP EchoRep id=0xb magic=0x0]
sent [LCP EchoReq id=0xc magic=0x76ec1483]
rcvd [LCP EchoRep id=0xc magic=0x0]
sent [LCP EchoReq id=0xd magic=0x76ec1483]
rcvd [LCP EchoRep id=0xd magic=0x0]
Modem hangup
Connect time 0.7 minutes.
Sent 3604 bytes, received 2960 bytes.
Connection terminated.


[-- Attachment #4: ppp_32N0.log --]
[-- Type: application/octet-stream, Size: 2222 bytes --]

root@mesaubu:~$ /usr/sbin/pppd debug ttyUSB0 file /tmp/optionsttyUSB0.ce 
Serial connection established.
using channel 22
Using interface ppp0
Connect: ppp0 <--> /dev/ttyUSB0
rcvd [LCP ConfReq id=0x0 <mru 1500> <asyncmap 0x0> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 168> <asyncmap 0x0> <magic 0xf79c5295> <pcomp> <accomp>]
sent [LCP ConfAck id=0x0 <mru 1500> <asyncmap 0x0> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <mru 168> <asyncmap 0x0> <magic 0xf79c5295> <pcomp> <accomp>]
sent [LCP EchoReq id=0x0 magic=0xf79c5295]
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 10.1.20.1> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
rcvd [CCP ConfReq id=0x0 <mppe -H -M -S -L -D +C>]
sent [CCP ConfRej id=0x0 <mppe -H -M -S -L -D +C>]
rcvd [IPCP ConfReq id=0x2 <compress VJ 0f 00> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-wins 0.0.0.0> <ms-dns3 0.0.0.0> <ms-wins 0.0.0.0>]
sent [IPCP ConfRej id=0x2 <ms-dns1 0.0.0.0> <ms-wins 0.0.0.0> <ms-dns3 0.0.0.0> <ms-wins 0.0.0.0>]
rcvd [IPV6CP ConfReq id=0x0 <addr fe80::4283:deff:fe67:e2aa>]
Unsupported protocol 'IPv6 Control Protovol' (0x8057) received
sent [LCP ProtRej id=0x2 80 57 01 00 00 0e 01 0a 42 83 de ff fe 67 e2 aa]
rcvd [LCP EchoRep id=0x0 magic=0x0]
rcvd [CCP ConfRej id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [CCP ConfReq id=0x2]
rcvd [IPCP ConfRej id=0x1 <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 10.1.20.1>]
rcvd [CCP ConfReq id=0x1]
sent [CCP ConfAck id=0x1]
rcvd [IPCP ConfReq id=0x3 <compress VJ 0f 00> <addr 0.0.0.0>]
sent [IPCP ConfNak id=0x3 <addr 10.1.20.2>]
rcvd [CCP ConfNak id=0x2 <mppe -H -M -S -L -D +C>]
sent [CCP ConfReq id=0x3]
rcvd [IPCP ConfAck id=0x2 <compress VJ 0f 01> <addr 10.1.20.1>]
rcvd [IPCP ConfReq id=0x4 <compress VJ 0f 00> <addr 10.1.20.2>]
sent [IPCP ConfAck id=0x4 <compress VJ 0f 00> <addr 10.1.20.2>]
Cannot determine ethernet address for proxy ARP
local  IP address 10.1.20.1
remote IP address 10.1.20.2
rcvd [CCP ConfAck id=0x3]
rcvd [LCP TermReq id=0x1]
LCP terminated by peer
Connect time 0.1 minutes.
Sent 0 bytes, received 825 bytes.
sent [LCP TermAck id=0x1]
Connection terminated.
Modem hangup


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: LCP terminated by peer [LCP TermReq id=0x1]
  2015-06-04 13:54 LCP terminated by peer [LCP TermReq id=0x1] Gustavo
@ 2015-06-04 17:37 ` James Carlson
  0 siblings, 0 replies; 2+ messages in thread
From: James Carlson @ 2015-06-04 17:37 UTC (permalink / raw)
  To: linux-ppp

On 06/04/15 09:54, Gustavo wrote:
> I am trying to get a mobile scanner Motorola MC32N0 (next generation
> in MC3000 Series) working on a PC which is running Ubuntu 8.04, and
> another PC with Ubuntu 14.04. But I have not succeeded after trying
> and investigating a long time.

I don't have access to a manual for this device, but if it has some kind
of debugging or troubleshooting mode in it, this would probably be a
good reason to try it out.

> No errors in output command. No erros in syslog.
> And I have no idea what happens or how to find the cause.
> Files involved are attached.

The peer system is obviously upset about something; that's why it sent
LCP Terminate-Request.  Unfortunately, it didn't bother to include the
optional text explanation of the problem, a feature of that message
that's all too often ignored, so it's a little hard to see what
happened.  Whoever built that system should probably fix that defect.

One thing that stands out in your log is the pointless haggling over
CCP.  You're asking for compression via the freely available algorithms,
and he's asking for compression via Microsoft's proprietary MPPC.  (It
negotiates MPPE, but Microsoft's encryption algorithm has flags that can
[and in this case do] say "use data compression only" -- which is MPPC.)

Based on that, I'd start by adding "noccp" to the configuration.  It's
certainly not doing you any good, and may be hurting.

It also looks like you're asking him to give you DNS server addresses
using Microsoft's proprietary extensions via the "usepeerdns" option.  I
don't see this option in the configuration you supplied, but sending
IPCP Configure-Request with "ms-dns1" and "ms-dns3" is a giveaway.
That's probably not useful here, assuming that this hand-held scanner is
not going to be used as your connection to the global Internet, but it's
probably not harmful.

The peer is asking for DNS server addresses from you.  If you have some
to offer, it might be nice to do so.  You can do that by adding one or
two "ms-dns" options to your configuration.

The peer pretty obviously doesn't support the Magic Number option.
That's baffling -- why would someone not support it?! -- but that does
prompt at least two questions.  The first is whether "nomagic" has any
effect here.  The second is whether you want to talk to someone who has
design flaws like that -- who knows what else is wrong?

I don't know if an MTU of 168 octets is meaningful (!), but I'm guessing
that's something for you to work out.

For what it's worth, I'd start with the simplest possible configuration,
and disable options as I go on the assumption that an implementation
ought to support at least the defaults.  Then get fancy with VJ Header
Compression and the rest.  :-/

-- 
James Carlson         42.703N 71.076W         <carlsonj@workingcode.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-06-04 17:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-04 13:54 LCP terminated by peer [LCP TermReq id=0x1] Gustavo
2015-06-04 17:37 ` James Carlson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.