Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] rfcomm0 interface missing
Date: Fri, 06 Dec 2013 16:29:11
Message-Id: 201312061628.49930.michaelkintzios@gmail.com
In Reply to: Re: [gentoo-user] rfcomm0 interface missing by Daniel Frey
1 On Friday 06 Dec 2013 00:21:24 Daniel Frey wrote:
2 > On 12/05/2013 03:04 PM, Mick wrote:
3 > > The connection bails out. I don't understand what the message "Serial
4 > > line is looped back." means. Any ideas?
5 >
6 > This usually means the host is just echoing everything back to the
7 > client. Most times this means the host is not starting the session or is
8 > waiting for something before it starts the session.
9
10 Yes! It was my phone's way of telling me that whatever I was sending, it was
11 not what it was expecting, echoing back the same information.
12
13 So, I experimented with the relevant /etc/ppp/ip-up.d/45-mySIP_connect.sh by
14 removing all entries but this:
15
16 #!/bin/sh
17 exec /usr/sbin/chat -v '' ATZ OK ATDT*99# CONNECT ''
18
19 It now works! :-)
20 =================================================================
21 Dec 6 12:40:21 pppd[5644]: pppd 2.4.5 started by michael, uid 0
22 Dec 6 12:40:21 chat[5647]: send (ATZ^M)
23 Dec 6 12:40:21 chat[5647]: expect (OK)
24 Dec 6 12:40:21 chat[5647]: ATZ^M^M
25 Dec 6 12:40:21 chat[5647]: OK
26 Dec 6 12:40:21 chat[5647]: -- got it
27 Dec 6 12:40:21 chat[5647]: send (ATDT*99#^M)
28 Dec 6 12:40:21 chat[5647]: expect (CONNECT)
29 Dec 6 12:40:21 chat[5647]: ^M
30 Dec 6 12:40:23 chat[5647]: ATDT*99#^M^M
31 Dec 6 12:40:23 chat[5647]: CONNECT
32 Dec 6 12:40:23 chat[5647]: -- got it
33 Dec 6 12:40:23 chat[5647]: send (^M)
34 Dec 6 12:40:23 pppd[5644]: Serial connection established.
35 Dec 6 12:40:23 pppd[5644]: Using interface ppp0
36 Dec 6 12:40:23 pppd[5644]: Connect: ppp0 <--> /dev/rfcomm0
37 Dec 6 12:40:26 pppd[5644]: PAP authentication succeeded
38 Dec 6 12:40:27 pppd[5644]: local IP address XX.XXX.XX.XX
39 Dec 6 12:40:27 pppd[5644]: remote IP address XX.X.X.XX
40 Dec 6 12:40:27 pppd[5644]: primary DNS address XXX.XX.XXX.X
41 Dec 6 12:40:27 pppd[5644]: secondary DNS address XXX.XX.XXX.X
42 Dec 6 12:40:27 chat[5652]: Can't get terminal parameters: Inappropriate
43 ioctl for device
44 =================================================================
45
46 Not sure what the last error is. I suspect something to do with certain
47 characters that need to be escaped in the terminal by bash? Grateful for any
48 pointers.
49
50 Otherwise, kppp still hangs being able to complete the connection. I have not
51 been able to troublshoot that further.
52 --
53 Regards,
54 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature