From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <42244C4D.3030109@futurlink.com> From: Pedro Monjo Florit MIME-Version: 1.0 To: bluez-users@lists.sourceforge.net Subject: Re: [Bluez-users] OBEX Push without pairing References: <42242BAB.7080406@futurlink.com> <1109667687.17256.140.camel@pegasus> <42244089.7010906@futurlink.com> <200503011150.57455.bluez-user@schaettgen.de> In-Reply-To: <200503011150.57455.bluez-user@schaettgen.de> Content-Type: multipart/alternative; boundary="------------070801020809010006020500" Sender: bluez-users-admin@lists.sourceforge.net Errors-To: bluez-users-admin@lists.sourceforge.net Reply-To: bluez-users@lists.sourceforge.net List-Unsubscribe: , List-Id: BlueZ users List-Post: List-Help: List-Subscribe: , List-Archive: Date: Tue, 01 Mar 2005 12:04:45 +0100 This is a multi-part message in MIME format. --------------070801020809010006020500 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi Fred: Fred Schaettgen wrote: >On Tuesday 01 March 2005 11:14, Pedro Monjo Florit wrote: > >>but still no success. With the same computer and configuration and as a >>normal user, if I send a file from KDE using kbtobexclient, it works as >>expected (no PIN requested, just the confirmation for receiving the >>message), so I believe that there is some other things to do. I guess >>that it should be a library call or somthing similar. Any suggestions? >> > >Are you sure that you are connecting to the rfcomm channel of the obex push >service? All others require authentication usually. Maybe you should have a >look at hcidump's output to see the difference and at which point the phone >is requesting authentication. > >Fred > > Thank you very much for your suggestion. It was indeed what you said. I was sending the data to the service "OBEX File Transfer" instead of "OBEX Object Push". Now it works exactly as expected. Cheers, Pedro --------------070801020809010006020500 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi Fred:

Fred Schaettgen wrote:
On Tuesday 01 March 2005 11:14, Pedro Monjo Florit wrote:
  
but still no success. With the same computer and configuration and as a
normal user, if I send a file from KDE using kbtobexclient, it works as
expected (no PIN requested, just the confirmation for receiving the
message), so I believe that there is some other things to do. I guess
that it should be a library call or somthing similar. Any suggestions?
    

Are you sure that you are connecting to the rfcomm channel of the obex push 
service? All others require authentication usually. Maybe you should have a 
look at hcidump's output to see the difference and at which point the phone 
is requesting authentication.

Fred

  
Thank you very much for your suggestion. It was indeed what you said. I was sending the data to the service "OBEX File Transfer" instead of "OBEX Object Push". Now it works exactly as expected.

Cheers,

Pedro
--------------070801020809010006020500-- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Fred Schaettgen To: bluez-users@lists.sourceforge.net Subject: Re: [Bluez-users] OBEX Push without pairing References: <42242BAB.7080406@futurlink.com> <1109667687.17256.140.camel@pegasus> <42244089.7010906@futurlink.com> In-Reply-To: <42244089.7010906@futurlink.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Message-Id: <200503011150.57455.bluez-user@schaettgen.de> Sender: bluez-users-admin@lists.sourceforge.net Errors-To: bluez-users-admin@lists.sourceforge.net Reply-To: bluez-users@lists.sourceforge.net List-Unsubscribe: , List-Id: BlueZ users List-Post: List-Help: List-Subscribe: , List-Archive: Date: Tue, 1 Mar 2005 11:50:57 +0100 On Tuesday 01 March 2005 11:14, Pedro Monjo Florit wrote: > but still no success. With the same computer and configuration and as a > normal user, if I send a file from KDE using kbtobexclient, it works as > expected (no PIN requested, just the confirmation for receiving the > message), so I believe that there is some other things to do. I guess > that it should be a library call or somthing similar. Any suggestions? Are you sure that you are connecting to the rfcomm channel of the obex push service? All others require authentication usually. Maybe you should have a look at hcidump's output to see the difference and at which point the phone is requesting authentication. Fred -- Fred Schaettgen bluez-devel@schaettgen.de ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [Bluez-users] OBEX Push without pairing From: Marcel Holtmann To: BlueZ Mailing List In-Reply-To: <42244089.7010906@futurlink.com> References: <42242BAB.7080406@futurlink.com> <1109667687.17256.140.camel@pegasus> <42244089.7010906@futurlink.com> Content-Type: text/plain Message-Id: <1109674076.17256.143.camel@pegasus> Mime-Version: 1.0 Sender: bluez-users-admin@lists.sourceforge.net Errors-To: bluez-users-admin@lists.sourceforge.net Reply-To: bluez-users@lists.sourceforge.net List-Unsubscribe: , List-Id: BlueZ users List-Post: List-Help: List-Subscribe: , List-Archive: Date: Tue, 01 Mar 2005 11:47:56 +0100 Hi Pedro, > > it seems that your device is working in security mode 3 and then > > actually every ACL connection requests the authentication. The simple > > answer is to use security mode 1/2. > > > Thank you for your fast answer. > > I am not quite sure about the security mode the device is. How can I > get it? In any case, I have executed (as root): > > $ hciconfig hci0 noencrypt > $ hciconfig hci0 noauth > > but still no success. With the same computer and configuration and as > a normal user, if I send a file from KDE using kbtobexclient, it works > as expected (no PIN requested, just the confirmation for receiving the > message), so I believe that there is some other things to do. I guess > that it should be a library call or somthing similar. Any suggestions? run "hcidump -X -V" as root at the same time and show us the result. Regards Marcel ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <42244089.7010906@futurlink.com> From: Pedro Monjo Florit MIME-Version: 1.0 To: bluez-users@lists.sourceforge.net Subject: Re: [Bluez-users] OBEX Push without pairing References: <42242BAB.7080406@futurlink.com> <1109667687.17256.140.camel@pegasus> In-Reply-To: <1109667687.17256.140.camel@pegasus> Content-Type: multipart/alternative; boundary="------------080304070001050107050407" Sender: bluez-users-admin@lists.sourceforge.net Errors-To: bluez-users-admin@lists.sourceforge.net Reply-To: bluez-users@lists.sourceforge.net List-Unsubscribe: , List-Id: BlueZ users List-Post: List-Help: List-Subscribe: , List-Archive: Date: Tue, 01 Mar 2005 11:14:33 +0100 This is a multi-part message in MIME format. --------------080304070001050107050407 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi Marcel, Marcel Holtmann wrote: >Hi Pedro, > > >>I am writing an applications that, among other things, sends an OBEX >>Push to a device (e.g. a mobile phone). This is working fine, except for >>one thing: whenever I send something to the device, the first time it >>always asks for the PIN. I have seen that, for example, kbluetooth (the >>KDE Bluetooth framework) and Impronto can send a file without pairing >>first. How can I do that? >> >>I am sure that I am missing something, but still have not found what. In >>my application, I call to socket(), bind() to a local address >>(BDADDR_ANY) and then connect(). It is at the connect stage that the >>pairing takes place. I have been following the code of kbluetooth and >>all I can see is that I am doing essentially the same. >> > >it seems that your device is working in security mode 3 and then >actually every ACL connection requests the authentication. The simple >answer is to use security mode 1/2. > Thank you for your fast answer. I am not quite sure about the security mode the device is. How can I get it? In any case, I have executed (as root): $ hciconfig hci0 noencrypt $ hciconfig hci0 noauth but still no success. With the same computer and configuration and as a normal user, if I send a file from KDE using kbtobexclient, it works as expected (no PIN requested, just the confirmation for receiving the message), so I believe that there is some other things to do. I guess that it should be a library call or somthing similar. Any suggestions? Thanks, Pedro --------------080304070001050107050407 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi Marcel,

Marcel Holtmann wrote:
Hi Pedro,

  
I am writing an applications that, among other things, sends an OBEX 
Push to a device (e.g. a mobile phone). This is working fine, except for 
one thing: whenever I send something to the device, the first time it 
always asks for the PIN. I have seen that, for example, kbluetooth (the 
KDE Bluetooth framework) and Impronto can send a file without pairing 
first. How can I do that?

I am sure that I am missing something, but still have not found what. In 
my application, I call to socket(), bind() to a local address 
(BDADDR_ANY) and then connect(). It is at the connect stage that the 
pairing takes place. I have been following the code of kbluetooth and 
all I can see is that I am doing essentially the same.
    

it seems that your device is working in security mode 3 and then
actually every ACL connection requests the authentication. The simple
answer is to use security mode 1/2.
  
Thank you for your fast answer.

I am not quite sure about the security mode the device is. How can I get it? In any case, I have executed (as root):

$ hciconfig hci0 noencrypt
$ hciconfig hci0 noauth

but still no success. With the same computer and configuration and as a normal user, if I send a file from KDE using kbtobexclient, it works as expected (no PIN requested, just the confirmation for receiving the message), so I believe that there is some other things to do. I guess that it should be a library call or somthing similar. Any suggestions?

Thanks,

Pedro
--------------080304070001050107050407-- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [Bluez-users] OBEX Push without pairing From: Marcel Holtmann To: BlueZ Mailing List In-Reply-To: <42242BAB.7080406@futurlink.com> References: <42242BAB.7080406@futurlink.com> Content-Type: text/plain Message-Id: <1109667687.17256.140.camel@pegasus> Mime-Version: 1.0 Sender: bluez-users-admin@lists.sourceforge.net Errors-To: bluez-users-admin@lists.sourceforge.net Reply-To: bluez-users@lists.sourceforge.net List-Unsubscribe: , List-Id: BlueZ users List-Post: List-Help: List-Subscribe: , List-Archive: Date: Tue, 01 Mar 2005 10:01:27 +0100 Hi Pedro, > I am writing an applications that, among other things, sends an OBEX > Push to a device (e.g. a mobile phone). This is working fine, except for > one thing: whenever I send something to the device, the first time it > always asks for the PIN. I have seen that, for example, kbluetooth (the > KDE Bluetooth framework) and Impronto can send a file without pairing > first. How can I do that? > > I am sure that I am missing something, but still have not found what. In > my application, I call to socket(), bind() to a local address > (BDADDR_ANY) and then connect(). It is at the connect stage that the > pairing takes place. I have been following the code of kbluetooth and > all I can see is that I am doing essentially the same. it seems that your device is working in security mode 3 and then actually every ACL connection requests the authentication. The simple answer is to use security mode 1/2. Regards Marcel ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <42242BAB.7080406@futurlink.com> From: Pedro Monjo Florit MIME-Version: 1.0 To: bluez-users@lists.sourceforge.net Content-Type: text/plain; charset=ISO-8859-1; format=flowed Subject: [Bluez-users] OBEX Push without pairing Sender: bluez-users-admin@lists.sourceforge.net Errors-To: bluez-users-admin@lists.sourceforge.net Reply-To: bluez-users@lists.sourceforge.net List-Unsubscribe: , List-Id: BlueZ users List-Post: List-Help: List-Subscribe: , List-Archive: Date: Tue, 01 Mar 2005 09:45:31 +0100 Hi Marcel and everybody else in the list, I am writing an applications that, among other things, sends an OBEX Push to a device (e.g. a mobile phone). This is working fine, except for one thing: whenever I send something to the device, the first time it always asks for the PIN. I have seen that, for example, kbluetooth (the KDE Bluetooth framework) and Impronto can send a file without pairing first. How can I do that? I am sure that I am missing something, but still have not found what. In my application, I call to socket(), bind() to a local address (BDADDR_ANY) and then connect(). It is at the connect stage that the pairing takes place. I have been following the code of kbluetooth and all I can see is that I am doing essentially the same. Any help would be appreciated. Cheers, Pedro Monjo ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users