public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] Some queries on using Bluetooth with GPRS
@ 2004-05-17 13:27 Timothy Murphy
  2004-05-17 15:18 ` Marcel Holtmann
  0 siblings, 1 reply; 2+ messages in thread
From: Timothy Murphy @ 2004-05-17 13:27 UTC (permalink / raw)
  To: BlueZ Mailing List

I've been playing with Bluetooth this morning,
linking my Sony C1VFK Picturebook (with in-built Bluetooth)
to my Nokia 6310.

A couple of things puzzle me.

(1) Each time I connect the channel number increases by 1.
Eg on my fourth attemtp I used channel 4:
=======================================
Serial connection established.
using channel 4
Using interface ppp0
Connect: ppp0 <--> /dev/rfcomm0
rcvd [LCP ConfReq id=0x0 <auth pap> <mru 1500> <asyncmap 0xa0000>]
...
rcvd [IPCP ConfAck id=0x3 <addr 62.40.49.216>]
local  IP address 62.40.49.216
remote IP address 10.6.6.6
=======================================

(2) For some reason I only succeed in connecting every other try.
On the odd attempts I get
=======================================
Script /etc/ppp/ip-up started (pid 6584)
Script /etc/ppp/ip-up finished (pid 6584), status = 0x0
Terminating on signal 2.
=======================================

(3) This is not really a Bluetooth query, I guess,
but I'm slightly puzzled by the fact that I cannot ping
the remote address, which is always 10.6.6.6
=======================================
[tim@martha 2004]$ ifconfig ppp0
ppp0      Link encap:Point-to-Point Protocol
          inet addr:62.40.49.19  P-t-P:10.6.6.6  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:86 errors:0 dropped:0 overruns:0 frame:0
          TX packets:108 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:35498 (34.6 Kb)  TX bytes:11851 (11.5 Kb)
=======================================

(4) Also, I'm surprised I don't have to specify any nameservers
(in my /etc/resolv.conf).
Is that normal?

(5) Incidentally, the last obstacle that stopped me connecting
was that I needed "\r" in the ATD line of my chat-sequence
 ========================================
OK              ATE0
OK              ATV1
OK              'AT+CGDCONT=1,"IP","open.internet","",0,0'
OK              'ATD*99#\r\n'
TIMEOUT         60
CONNECT         ""
========================================

Any suggestions or advice gratefully received.

-- 
Timothy Murphy  
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland


-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] Some queries on using Bluetooth with GPRS
  2004-05-17 13:27 [Bluez-users] Some queries on using Bluetooth with GPRS Timothy Murphy
@ 2004-05-17 15:18 ` Marcel Holtmann
  0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2004-05-17 15:18 UTC (permalink / raw)
  To: tim; +Cc: BlueZ Mailing List

Hi Timothy,

> I've been playing with Bluetooth this morning,
> linking my Sony C1VFK Picturebook (with in-built Bluetooth)
> to my Nokia 6310.
> 
> A couple of things puzzle me.
> 
> (1) Each time I connect the channel number increases by 1.
> Eg on my fourth attemtp I used channel 4:
> =======================================
> Serial connection established.
> using channel 4
> Using interface ppp0
> Connect: ppp0 <--> /dev/rfcomm0
> rcvd [LCP ConfReq id=0x0 <auth pap> <mru 1500> <asyncmap 0xa0000>]
> ...
> rcvd [IPCP ConfAck id=0x3 <addr 62.40.49.216>]
> local  IP address 62.40.49.216
> remote IP address 10.6.6.6
> =======================================

this is pppd specific, so you must ask the PPP guys about that.

> (2) For some reason I only succeed in connecting every other try.
> On the odd attempts I get
> =======================================
> Script /etc/ppp/ip-up started (pid 6584)
> Script /etc/ppp/ip-up finished (pid 6584), status = 0x0
> Terminating on signal 2.
> =======================================

This is funny. I haven't seen this before. Maybe it is also a pppd
problem.

> (3) This is not really a Bluetooth query, I guess,
> but I'm slightly puzzled by the fact that I cannot ping
> the remote address, which is always 10.6.6.6
> =======================================
> [tim@martha 2004]$ ifconfig ppp0
> ppp0      Link encap:Point-to-Point Protocol
>           inet addr:62.40.49.19  P-t-P:10.6.6.6  Mask:255.255.255.255
>           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
>           RX packets:86 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:108 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:3
>           RX bytes:35498 (34.6 Kb)  TX bytes:11851 (11.5 Kb)
> =======================================

Can you ping any other address. Maybe your provider don't support the
ICMP protocol.

> (4) Also, I'm surprised I don't have to specify any nameservers
> (in my /etc/resolv.conf).
> Is that normal?

The PPP scripts will replace resolv.conf for your session.

> (5) Incidentally, the last obstacle that stopped me connecting
> was that I needed "\r" in the ATD line of my chat-sequence
>  ========================================
> OK              ATE0
> OK              ATV1
> OK              'AT+CGDCONT=1,"IP","open.internet","",0,0'
> OK              'ATD*99#\r\n'
> TIMEOUT         60
> CONNECT         ""
> ========================================

Looks like a phone specific bug. Check with "hcidump -a" what the chat
script really sends.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

end of thread, other threads:[~2004-05-17 15:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-17 13:27 [Bluez-users] Some queries on using Bluetooth with GPRS Timothy Murphy
2004-05-17 15:18 ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox