Return-Path: Message-ID: <46ADD822.6040302@yandex.ru> Date: Mon, 30 Jul 2007 16:22:58 +0400 From: Irakli Tsagareli MIME-Version: 1.0 To: BlueZ users , dm@belkam.com References: <46ADD0F9.4010501@belkam.com> In-Reply-To: <46ADD0F9.4010501@belkam.com> Subject: Re: [Bluez-users] athentification problem Reply-To: BlueZ users List-Id: BlueZ users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0115263658==" Sender: bluez-users-bounces@lists.sourceforge.net Errors-To: bluez-users-bounces@lists.sourceforge.net --===============0115263658== Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Maybe it is not authentification problem. hcidump says "Connection refused - no resources available". first try to browse GPS device for available channels:

$hcitool scan
Scanning ...
        00:0B:0D:87:14:29       G-Rays2
$sdptool browse 00:0B:0D:87:14:29
Browsing 00:0B:0D:87:14:29 ...
Service Name: SPP slave
Service Description: Bluetooth SPP V1.03
Service RecHandle: 0x10000
Service Class ID List:
  "Serial Port" (0x1101)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 1
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100

so my device has only one channel at all. then try to connect with specified channel number:
$rfcomm connect 0 00:0B:0D:87:14:29 1
Press CTRL-C for hangup

OK, I'm connected. this will connect 00:0B:0D:87:14:29-s channel 1 to /dev/rfcomm0


Dmitry Melekhov wrote:
Hello!

My colleague tries to connect gps device over bluethooth.
He uses ubuntu 7.04

He starts

$ passkey-agent --default 0000

Then

$ sudo rfcomm connect 00:15:7F:00:4F:0C
Can't connect RFCOMM socket: Connection refused

< HCI Command: Create Connection (0x01|0x0005) plen 13
  
HCI Event: Command Status (0x0f) plen 4
HCI Event: Connect Complete (0x03) plen 11
    
< ACL data: handle 1 flags 0x02 dlen 12
   L2CAP(s): Connect req: psm 3 scid 0x0040
< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
  
HCI Event: Command Status (0x0f) plen 4
    
< HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4
  
HCI Event: Command Complete (0x0e) plen 6
    
< HCI Command: Remote Name Request (0x01|0x0019) plen 10
  
HCI Event: Number of Completed Packets (0x13) plen 5
HCI Event: Command Status (0x0f) plen 4
HCI Event: Max Slots Change (0x1b) plen 3
ACL data: handle 1 flags 0x02 dlen 16
    
   L2CAP(s): Connect rsp: dcid 0x01fd scid 0x0040 result 1 status 2
     Connection pending - Authorization pending
  
HCI Event: Connection Packet Type Changed (0x1d) plen 5
HCI Event: Read Remote Supported Features (0x0b) plen 11
HCI Event: Remote Name Req Complete (0x07) plen 255
ACL data: handle 1 flags 0x02 dlen 16
    
   L2CAP(s): Connect rsp: dcid 0x0000 scid 0x0040 result 4 status 0
     Connection refused - no resources available
  
HCI Event: Disconn Complete (0x05) plen 4
    


l2ping works OK.

He also tried to compile latest bluez code and have the same result.

Could you help us?

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

  

--===============0115263658== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ --===============0115263658== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users --===============0115263658==--