2004-05-30 21:25:33

by Toby Fisher

[permalink] [raw]
Subject: [Bluez-users] Problems connecting to Nokia 6310I phone.

Hi.

The subject gives the outline, and a brief scan of the archives didn't
yield anything useful.

I'm using kernel 2.6.6RC1, and I almost have the connecting working with
Gnokii to the phone. However, there are some weird things going on which
lead me to belioeve that something is wrong.

I can, using rfcomm, get a connection to the phone, however tearing it
down has strange results:
1. Once the connection is down, I can no longer ping the phone using
l2ping, though hcitool scan and info still work.
2. The command rfcomm release rfcomm0 yields a device not found error,
whereas the binding works without error.

In addition to this, if I use the gnokii --monitor command I can get a
response from the phone, however it sends one lot of data and then seems
to hang - the only way to end the Gnokii process is to move to another
console and use the kill command, as ctrl-c doesn't work.


I'm puzzled, as I seem almost to be there but somehow seem to be missing
one step.
Oh yes, and one final thing, rfcomm -a gives no output, despite the fact
that I created rfcomm0 and it seems to work,
rfcomm connect rfcomm0 00:60:57:69:CB:18
will get me an rfcomm connection to the phone.

Thanks in advance for any pointers you can offer.


--
Toby Fisher Email: [email protected]
Tel.: +44(0)1480 417272 Mobile: +44(0)7974 363239
ICQ: #61744808


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


2004-05-31 14:10:36

by Nicholas A. Preyss

[permalink] [raw]
Subject: Re: [Bluez-users] Problems connecting to Nokia 6310I phone.

On 0, Toby Fisher <[email protected]> wrote:
> On Mon, 31 May 2004, Nicholas A. Preyss wrote:
> > [..]
> > You need the HCI_USB SCO option for audio transfer, only. For example if
> > you use the Headset or Handsfree profile. For data transfer there is no
> > need for SCO support. You are using RFCOMM which uses ACL links.
> > And >=3D 2.6.6-mh1 there shouldn't be any problems with the SCO
> > support activated.
> >=20
> > Maybe you can run hcidump while your problem appears and provide here
> > the log.
>=20
> Ok, I turned off the SCO options, but have another problem which was, I=
=20
> think, there earlier. Anyway, if I issue the command:
> hciconfig hci0 reset
> it eventually says that it times out initialising the device, the hcidump=
=20
> log is very short.
>=20
> Here it is;
>=20
> =04=00=00=00 1=BB@0k=03=00=01=03=10=00
>=20
> Itseem that it doesn't like being re-initialised.

After reset the device doesn't respind anymore. I have no clue why, but
this is a common error, seems to be a misbehaviour of the dongle. You
can't do much about it then just reinsert the dongle.

nicholas


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-05-31 13:53:04

by Timothy Murphy

[permalink] [raw]
Subject: Re: [Bluez-users] Problems connecting to Nokia 6310I phone.

On Sunday 30 May 2004 22:25, Toby Fisher wrote:

> Thanks in advance for any pointers you can offer.

Here's a log of mine connecting to GPRS through a Nokia 6310 -
don't know if it's any use.

Script started on Mon 31 May 2004 14:35:59 IST
[tim@martha tim]$ su
Password:=20
[root@martha tim]# # Bluetooth switched on on laptop and phone
[root@martha tim]# service bluetooth restart
Shutting down Bluetooth: =1B[60G[ =1B[0;32mOK=1B[0;39m ]=1B
[60G[ =1B[0;32mOK=1B[0;39m ]=0D
Starting Bluetooth: =1B[60G[ =1B[0;32mOK=1B[0;39m ]=1B[60G[ =1B[0;32mOK=
=1B[0;39m ]=0D
[root@martha tim]# rfcomm bind 0 $PHONE 1
[root@martha tim]# rfcomm -a
rfcomm0: 00:02:EE:10:A5:BE channel 1 clean=20
[root@martha tim]# pppd debug call O2
[root@martha tim]# # ctrl-C
[root@martha tim]# tail -30 /var/log/messages
May 31 14:37:44 martha chat[4014]: send (ATD*99#^M^J^M)
May 31 14:37:44 martha chat[4014]: expect (CONNECT)
May 31 14:37:44 martha chat[4014]: ^M
May 31 14:37:44 martha chat[4014]: ^M
May 31 14:37:44 martha chat[4014]: OK^M
May 31 14:38:14 martha chat[4014]: alarm
May 31 14:38:14 martha chat[4014]: send (ATD*99#^M^J^M)
May 31 14:38:15 martha chat[4014]: expect (CONNECT)
May 31 14:38:15 martha chat[4014]: ^M
May 31 14:38:15 martha chat[4014]: CONNECT
May 31 14:38:15 martha chat[4014]: -- got it=20
May 31 14:38:15 martha chat[4014]: send (^M)
May 31 14:38:15 martha pppd[4006]: Serial connection established.
May 31 14:38:15 martha pppd[4006]: Using interface ppp0
May 31 14:38:15 martha pppd[4006]: Connect: ppp0 <--> /dev/rfcomm0
May 31 14:38:18 martha pppd[4006]: PAP authentication succeeded
May 31 14:38:18 martha pppd[4006]: kernel does not support PPP filtering
May 31 14:38:20 martha pppd[4006]: not replacing existing default route to=
=20
eth0 [192.168.3.1]
May 31 14:38:20 martha pppd[4006]: local IP address 62.40.51.4
May 31 14:38:20 martha pppd[4006]: remote IP address 10.6.6.6
May 31 14:38:20 martha pppd[4006]: primary DNS address 62.40.32.33
May 31 14:38:20 martha pppd[4006]: secondary DNS address 62.40.32.34
May 31 14:38:33 martha pppd[4006]: Terminating on signal 2.
May 31 14:38:34 martha pppd[4006]: Connection terminated.
May 31 14:38:34 martha pppd[4006]: Connect time 0.3 minutes.
May 31 14:38:34 martha pppd[4006]: Sent 82 bytes, received 64 bytes.
May 31 14:38:34 martha pppd[4006]: Connect time 0.3 minutes.
May 31 14:38:34 martha pppd[4006]: Sent 82 bytes, received 64 bytes.
May 31 14:38:34 martha pppd[4006]: Exit.
[root@martha tim]# exit
exit
[tim@martha tim]$ exit
Script done on Mon 31 May 2004 14:41:28 IST
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D /etc/ppp/peers/O2 =3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
rfcomm0 115200 crtscts
connect '/usr/sbin/chat -v -f /etc/ppp/O2.chat'
debug
modem
lock
receive-all
nodetach
noipdefault
defaultroute
user gprs
password gprs
usepeerdns
nobsdcomp
nodeflate
logfile "/home/tim/ppp.log"
noauth
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D /etc/ppp/O2.chat =3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
TIMEOUT 5
ABORT '\nBUSY\r'
ABORT '\nERROR\r'
ABORT '\nNO ANSWER\r'
ABORT '\nNO CARRIER\r'
ABORT '\nNO DIALTONE\r'
ABORT '\nRINGING\r\n\r\nRINGING\r'
'' \rAT
TIMEOUT 30
OK ATH
# OK ATE1
OK ATE0
OK ATV1
OK 'AT+CGDCONT=3D1,"IP","open.internet","",0,0'
OK 'ATD*99#\r\n'
CONNECT-ATD*99#\r\n-CONNECT ""
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

=2D-=20
Timothy Murphy =20
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: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-05-31 13:24:40

by Toby Fisher

[permalink] [raw]
Subject: Re: [Bluez-users] Problems connecting to Nokia 6310I phone.

On Mon, 31 May 2004, Nicholas A. Preyss wrote:

> On 0, Toby Fisher <[email protected]> wrote:
> > On Mon, 31 May 2004, Timothy Murphy wrote:
> > > Do you have=20
> > > # CONFIG_BT_HCIUSB_SCO is not set
> > > in .config (or /proc/config.gz) ?
> > > On my machine (a Sony C1VFK Picturebook)
> > > I had more or less your problems when this was set.
> >=20
> > The problem here is that I have a usb bluetooth device, so according to=
=20
> > the kernel help I need this option, so yes, I do have it.
>=20
> You need the HCI_USB SCO option for audio transfer, only. For example if
> you use the Headset or Handsfree profile. For data transfer there is no
> need for SCO support. You are using RFCOMM which uses ACL links.
> And >=3D 2.6.6-mh1 there shouldn't be any problems with the SCO
> support activated.
>=20
> Maybe you can run hcidump while your problem appears and provide here
> the log.

Ok, I turned off the SCO options, but have another problem which was, I=20
think, there earlier. Anyway, if I issue the command:
hciconfig hci0 reset
it eventually says that it times out initialising the device, the hcidump=
=20
log is very short.

Here it is;

=04=00=00=00 1=BB@0k=03=00=01=03=10=00

Itseem that it doesn't like being re-initialised.

Cheers.

--=20
Toby Fisher=09Email: [email protected]
Tel.: +44(0)1480 417272=09Mobile: +44(0)7974 363239
ICQ: #61744808


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-05-31 11:54:24

by Nicholas A. Preyss

[permalink] [raw]
Subject: Re: [Bluez-users] Problems connecting to Nokia 6310I phone.

On 0, Toby Fisher <[email protected]> wrote:
> On Mon, 31 May 2004, Timothy Murphy wrote:
> > Do you have
> > # CONFIG_BT_HCIUSB_SCO is not set
> > in .config (or /proc/config.gz) ?
> > On my machine (a Sony C1VFK Picturebook)
> > I had more or less your problems when this was set.
>
> The problem here is that I have a usb bluetooth device, so according to
> the kernel help I need this option, so yes, I do have it.

You need the HCI_USB SCO option for audio transfer, only. For example if
you use the Headset or Handsfree profile. For data transfer there is no
need for SCO support. You are using RFCOMM which uses ACL links.
And >= 2.6.6-mh1 there shouldn't be any problems with the SCO
support activated.

Maybe you can run hcidump while your problem appears and provide here
the log.

nicholas


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-05-31 10:09:57

by Toby Fisher

[permalink] [raw]
Subject: Re: [Bluez-users] Problems connecting to Nokia 6310I phone.

On Mon, 31 May 2004, Timothy Murphy wrote:

> On Sunday 30 May 2004 22:25, Toby Fisher wrote:
>
> > I'm using kernel 2.6.6RC1, and I almost have the connecting working with
> > Gnokii to the phone. However, there are some weird things going on which
> > lead me to belioeve that something is wrong.
> >
> > I can, using rfcomm, get a connection to the phone, however tearing it
> > down has strange results:
> > 1. Once the connection is down, I can no longer ping the phone using
> > l2ping, though hcitool scan and info still work.
>
> Do you have
> # CONFIG_BT_HCIUSB_SCO is not set
> in .config (or /proc/config.gz) ?
> On my machine (a Sony C1VFK Picturebook)
> I had more or less your problems when this was set.

The problem here is that I have a usb bluetooth device, so according to
the kernel help I need this option, so yes, I do have it.

Cheers.

--
Toby Fisher Email: [email protected]
Tel.: +44(0)1480 417272 Mobile: +44(0)7974 363239
ICQ: #61744808


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-05-31 04:11:49

by Andreas Gaufer

[permalink] [raw]
Subject: Re: [Bluez-users] Problems connecting to Nokia 6310I phone.

On Mon, 31 May 2004 02:13:25 +0100
Timothy Murphy <[email protected]> wrote:

> On Sunday 30 May 2004 22:25, Toby Fisher wrote:
>
> > Oh yes, and one final thing, rfcomm -a gives no output, despite the fact
> > that I created rfcomm0 and it seems to work,
>
> Did you say "rfcomm bind 0 <phoneBTaddress> 1" first?
>
To my understanding you dont have to bind a /dev/rfcommX to connect. Using bind
means that you "prepare" that /dev/rfcommX to connect to the peer when someone uses
the /dev/rfcommX. If you use the rfcomm connect /dev/rfcommX <bd-adress> <channel>
this connection will be made instantly and will be closed after ctrl-c or
dissconect of the peer.
The channel number must be the number of the channel on the phone you want to connect.
To find the channelnumber of a profile use sdptool and its browse or serach command.

Greetings

Andy


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-05-31 01:13:25

by Timothy Murphy

[permalink] [raw]
Subject: Re: [Bluez-users] Problems connecting to Nokia 6310I phone.

On Sunday 30 May 2004 22:25, Toby Fisher wrote:

> I'm using kernel 2.6.6RC1, and I almost have the connecting working with
> Gnokii to the phone. However, there are some weird things going on which
> lead me to belioeve that something is wrong.
>
> I can, using rfcomm, get a connection to the phone, however tearing it
> down has strange results:
> 1. Once the connection is down, I can no longer ping the phone using
> l2ping, though hcitool scan and info still work.

Do you have
# CONFIG_BT_HCIUSB_SCO is not set
in .config (or /proc/config.gz) ?
On my machine (a Sony C1VFK Picturebook)
I had more or less your problems when this was set.

> 2. The command rfcomm release rfcomm0 yields a device not found error,
> whereas the binding works without error.

I give the command "rfcomm release 0".
But if "rfcomm -a" says nothing,
I would have doubts if binding did work.

> Oh yes, and one final thing, rfcomm -a gives no output, despite the fact
> that I created rfcomm0 and it seems to work,

Did you say "rfcomm bind 0 <phoneBTaddress> 1" first?



--
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: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-06-01 12:13:51

by Nicholas A. Preyss

[permalink] [raw]
Subject: Re: [Bluez-users] Problems connecting to Nokia 6310I phone.

On 0, Toby Fisher <[email protected]> wrote:
> On Mon, 31 May 2004, Nicholas A. Preyss wrote:
> > can't do much about it then just reinsert the dongle.
>
> I tried this, but despite having all the hot-plugging options enabled in
> the kernel and starting hot-plugging and making sure all the options look
> right, sometime I can take the device out of the usb socket and the system
> is ok, but even if it is, when I put it back it locks the system hard. I
> wonder if this is because I have everything compiled into the kernel? The
> hot-plugging documentation and script comments only talk of modules, is
> this my problem?

Upgrade to 2.6.6-mh2. The Problem should vanish.

nicholas


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-06-01 01:05:58

by Toby Fisher

[permalink] [raw]
Subject: Re: [Bluez-users] Problems connecting to Nokia 6310I phone.

On Mon, 31 May 2004, Nicholas A. Preyss wrote:

> >=20
> > Itseem that it doesn't like being re-initialised.
>
> After reset the device doesn't respind anymore. I have no clue why, but
> this is a common error, seems to be a misbehaviour of the dongle. You
> can't do much about it then just reinsert the dongle.

I tried this, but despite having all the hot-plugging options enabled in
the kernel and starting hot-plugging and making sure all the options look
right, sometime I can take the device out of the usb socket and the system
is ok, but even if it is, when I put it back it locks the system hard. I
wonder if this is because I have everything compiled into the kernel? The
hot-plugging documentation and script comments only talk of modules, is
this my problem?

Also, my 6310I stops responding after one Gnokii command, this may be a
gnokii problem I'm not sure, I'll put it to that list.

Cheers.

--
Toby Fisher Email: [email protected]
Tel.: +44(0)1480 417272 Mobile: +44(0)7974 363239
ICQ: #61744808


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users