Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Nov 2008 11:17:00 -0700
From:      "Maksim Yevmenkin" <maksim.yevmenkin@gmail.com>
To:        "Guido Falsi" <mad@madpilot.net>
Cc:        freebsd-bluetooth@freebsd.org
Subject:   Re: RFComm behaviour with nokia mobiles
Message-ID:  <bb4a86c70811041017g7b6822fej492caa56157fada3@mail.gmail.com>
In-Reply-To: <1225821264.107584.759.nullmailer@galant.ukfsn.org>
References:  <20081104111947.GB62907@megatron.madpilot.net> <1225799105.807983.1164.nullmailer@galant.ukfsn.org> <20081104135107.GA64776@megatron.madpilot.net> <1225821264.107584.759.nullmailer@galant.ukfsn.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11/4/08, Iain Hibbert <plunky@rya-online.net> wrote:
> On Tue, 4 Nov 2008, Guido Falsi wrote:
>
>  > On Tue, Nov 04, 2008 at 11:45:05AM +0000, Iain Hibbert wrote:
>  > > On Tue, 4 Nov 2008, Guido Falsi wrote:
>  > >
>  > > > I completed the gnokii adaption to talk to freebsd sdp and it tries
>  > > > to connwect to rf channel 15 on both phnes, the same rfcomm_sppd
>  > > > tries. It loooks like the correct one in fact, but even after
>  > > > associating the phone with hcsecd I can't really connect.
>  > >
>  > > can you show what the output of sdpcontrol is when examining this service?
>  > >
>  > > (try search for protocol 0x0003 should give all RFCOMM channels)
>  >
>  > I'm attaching the output from the 6233.
>  >
>  > The problem is not finding the channel, but that the only channel which
>  > looks correct is not acting the way it should(ie. accept at commands...)
>
>
> btw my 6103 also has similar ports on similar channels:
>
>  Record Handle: 0x00010000
>  Service Class ID List:
>         Dial-Up Networking (0x1103)
>         Generic Networking (0x1201)
>  Protocol Descriptor List:
>         L2CAP (0x0100)
>         RFCOMM (0x0003)
>                 Protocol specific parameter #1: u/int8/bool 1
>  Bluetooth Profile Descriptor List:
>         Dial-Up Networking (0x1103) ver. 1.0
>  Service Name:
>         "Dial-up networking"
>
>  Record Handle: 0x00010001
>  Service Class ID List:
>         Serial Port (0x1101)
>  Protocol Descriptor List:
>         L2CAP (0x0100)
>         RFCOMM (0x0003)
>                 Protocol specific parameter #1: u/int8/bool 15
>  Service Name:
>         "Nokia PC Suite"
>
>  Record Handle: 0x00010002
>  Service Class ID List:
>         Serial Port (0x1101)
>  Protocol Descriptor List:
>         L2CAP (0x0100)
>         RFCOMM (0x0003)
>                 Protocol specific parameter #1: u/int8/bool 3
>  Service Name:
>         "COM 1"
>
>  and I see that connecting to DUN gives me an AT command interpreter as
>  does SP on 3 (COM 1) but connecting to the SP on 15 (Nokia PC Suite)
>  doesn't. Thats using NetBSD though the program is not much different.
>
>  can you connect to channel 1 (Dialup Networking) with rfcomm_sppd?  That
>  should definitely take AT commands..
>
>  btw, didn't you say before that gnokii is supposed to be discarding "Nokia
>  PC Suite" ?  (actually, that was why I added the "Service Name" handling,
>  so I could see what my phone had :)

could you please run hcidump and see what is going on after you
connect to the "pc suite" service. some (most/simbian-based?)  nokia
phones have some sort of the callback mechanism, i.e. pc suite
connects to the phone service and then immediately disconnects. this
somehow tells the phone to initiate connection back to the pc on
serial port service. rfcomm_pppd(8) man page has a little notes on
that.

Iain is right, using dun service is the best bet to get "modem" serial port.

thanks,
max



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bb4a86c70811041017g7b6822fej492caa56157fada3>