Fabrice DELENTE | 19 Dec 2011 16:37
Picon

[obexftp] code for accessing cell phone in bluetooth

Hello.

I'd like to send files from/to my laptop to a Nokia C3 cellphone.

I have setup the bluetooth stack with hciconfig, and I can l2ping the
phone.

When I try to initiate a connection with "obexftp -b <MAC of
cellphone> -l", the cellphone asks me if I want to authorize the
connexion, and then asks me for a code (it seems it must be digits
only).

I tried 0000, 1234, 12345 and 9999, since I saw on the web that it can
be the default code, but none works. I can't find anywhere an option
on the cellphone to set this code.

Any hint?

Thanks!

--

-- 
F. Delente

------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
(Continue reading)

Hendrik Sattler | 19 Dec 2011 20:32
Picon

Re: [obexftp] code for accessing cell phone in bluetooth

Am Montag, 19. Dezember 2011, 16:37:27 schrieb Fabrice DELENTE:
> Hello.
> 
> I'd like to send files from/to my laptop to a Nokia C3 cellphone.
> 
> I have setup the bluetooth stack with hciconfig, and I can l2ping the
> phone.
> 
> When I try to initiate a connection with "obexftp -b <MAC of
> cellphone> -l", the cellphone asks me if I want to authorize the
> connexion, and then asks me for a code (it seems it must be digits
> only).
> 
> I tried 0000, 1234, 12345 and 9999, since I saw on the web that it can
> be the default code, but none works. I can't find anywhere an option
> on the cellphone to set this code.
> 
> Any hint?

Yes, you need to set the Bluetooth Pairing PIN for that device. This can 
easily be achieved using the bluetooth support for e.g. Gnome or KDE or with 
Bluez command line tools. You have to enter it two times, once on each side of 
the connection.

You can possible avoid that PIN by using ObexPush protocol instead of FBS 
protocol, e.g. using -U none.

Regards,

HS
(Continue reading)

Fabrice DELENTE | 19 Dec 2011 20:45
Picon

Re: [obexftp] code for accessing cell phone in bluetooth

> Yes, you need to set the Bluetooth Pairing PIN for that device. This
> can easily be achieved using the bluetooth support for e.g. Gnome or
> KDE or with Bluez command line tools. You have to enter it two
> times, once on each side of the connection.

Thanks for the tip; I looked into that, but it seems that I must use
passkey-agent to set the pairing PIN; however my bluez (4.91) doesn't
have passkey-agent, and bluez-utils seem deprecated for bluez-4.* ?

By the way I'm using a 3.1.5 kernel, if it's any use to know that.

> You can possible avoid that PIN by using ObexPush protocol instead
> of FBS protocol, e.g. using -U none.

I'll look into that too.

Thanks again! :^)

--

-- 
F. Delente

------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
Hendrik Sattler | 20 Dec 2011 06:25
Picon

Re: [obexftp] code for accessing cell phone in bluetooth

Am Montag, 19. Dezember 2011, 20:45:15 schrieb Fabrice DELENTE:
> > Yes, you need to set the Bluetooth Pairing PIN for that device. This
> > can easily be achieved using the bluetooth support for e.g. Gnome or
> > KDE or with Bluez command line tools. You have to enter it two
> > times, once on each side of the connection.
> 
> Thanks for the tip; I looked into that, but it seems that I must use
> passkey-agent to set the pairing PIN; however my bluez (4.91) doesn't
> have passkey-agent, and bluez-utils seem deprecated for bluez-4.* ?

$ bluetooth-agent 
Bluetooth agent ver 4.96
Usage:
   agent [--adapter adapter-path] [--path agent-path] <passkey> [<device>]

HS

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
Fabrice DELENTE | 20 Dec 2011 09:13
Picon

Re: [obexftp] code for accessing cell phone in bluetooth

> $ bluetooth-agent 
> Bluetooth agent ver 4.96
> Usage:
>    agent [--adapter adapter-path] [--path agent-path] <passkey> [<device>]

Thank you very much!

--

-- 
F. Delente

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev

Gmane