All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] Problem with rfcomm connect
@ 2005-02-03 10:10 Andrea Benazzo
  2005-02-03 11:09 ` Marcel Holtmann
  0 siblings, 1 reply; 3+ messages in thread
From: Andrea Benazzo @ 2005-02-03 10:10 UTC (permalink / raw)
  To: bluez-users

[-- Attachment #1: Type: text/plain, Size: 5518 bytes --]

Hi everyone!


I own a Belkin F8T001 as a Bluetooth device (=>I installed the related 
firmware), but I get an error during the rfcomm connect command

here is my procedure (since only yesterdy I began playing with it, perhaps 
there is a previous error I make)

1) bluefw usb 001/00X
2) modprobe l2cap
3) modprobe rfcomm
4) mknod /dev/rfcomm0 c 216 0
5) hciconfig hci0 up
6) hciconfig
7) hcitool scan
8) l2ping 00:01:E3:06:FB:AF
9) added the following lines to /etc/bluetooth/rfcomm.conf:

rfcomm0 {
  bind yes;
  # Bluetooth address of the device
  device 00:01:E3:06:FB:AF;
  # RFCOMM channel for the connection
  channel 0;
  # Description of the connection
  comment "S55";
 }
10) rfcomm connect rfcomm0 00:01:E3:06:FB:AF

Everything has worked perfectly till now, but this last command returns "Can't 
connect RFCOMM socket: Resource temporarily unavailable" or "Can't connect 
RFCOMM socket: Function not implemented"

only during the latest command, I launched hcidump -X to get more info of what 
was going on (but I can't decode it's meaning alas):


HCIDump - HCI packet analyzer ver 1.16
device: hci0 snap_len: 1028 filter: 0xffffffff
< HCI Command: Create Connection (0x01|0x0005) plen 13
  0000: af fb 06 e3 01 00 18 cc  02 00 00 00 01           .......
......
> HCI Event: Command Status (0x0f) plen 4
  0000: 00 01 05 04                                       ....
> HCI Event: Connect Complete (0x03) plen 11
  0000: 00 29 00 af fb 06 e3 01  00 01 00                 .).....
....
< ACL data: handle 0x0029 flags 0x02 dlen 12
    L2CAP(s): Connect req: psm 3 scid 0x0040
> HCI Event: Number of Completed Packets (0x13) plen 5
  0000: 01 29 00 01 00                                    .)...
> HCI Event: Max Slots Change (0x1b) plen 3
  0000: 29 00 05                                          )..
> ACL data: handle 0x0029 flags 0x02 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 statu
s 0
< ACL data: handle 0x0029 flags 0x02 dlen 16
    L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 4
    MTU 1024
> HCI Event: Number of Completed Packets (0x13) plen 5
  0000: 01 29 00 01 00                                    .)...
> ACL data: handle 0x0029 flags 0x02 dlen 17
> ACL data: handle 0x0029 flags 0x01 dlen 1
    L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen
4
    MTU 1024
> ACL data: handle 0x0029 flags 0x02 dlen 16
    L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 4
    MTU 339
< ACL data: handle 0x0029 flags 0x02 dlen 14
    L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen
0
< ACL data: handle 0x0029 flags 0x02 dlen 8
    L2CAP(d): cid 0x0040 len 4 [psm 3]
      RFCOMM(s): SABM: cr 1 dlci 0 pf 1 ilen 0 fcs 0x1c
> HCI Event: Number of Completed Packets (0x13) plen 5
  0000: 01 29 00 01 00                                    .)...
> HCI Event: Number of Completed Packets (0x13) plen 5
  0000: 01 29 00 01 00                                    .)...
> ACL data: handle 0x0029 flags 0x02 dlen 8
    L2CAP(d): cid 0x0040 len 4 [psm 3]
      RFCOMM(s): UA: cr 1 dlci 0 pf 1 ilen 0 fcs 0xd7
< ACL data: handle 0x0029 flags 0x02 dlen 18
    L2CAP(d): cid 0x0040 len 14 [psm 3]
      RFCOMM(s): PN CMD: cr 1 dlci 0 pf 0 ilen 10 fcs 0x70 mcc_len 8
      dlci 2 frame_type 0 credit_flow 15 pri 7 ack_timer 0
      frame_size 334 max_retrans 0 credits 7
> HCI Event: Number of Completed Packets (0x13) plen 5
  0000: 01 29 00 01 00                                    .)...
> ACL data: handle 0x0029 flags 0x02 dlen 18
    L2CAP(d): cid 0x0040 len 14 [psm 3]
      RFCOMM(s): PN RSP: cr 0 dlci 0 pf 0 ilen 10 fcs 0xaa mcc_len 8
      dlci 2 frame_type 0 credit_flow 14 pri 0 ack_timer 0
      frame_size 334 max_retrans 0 credits 2
< ACL data: handle 0x0029 flags 0x02 dlen 8
    L2CAP(d): cid 0x0040 len 4 [psm 3]
      RFCOMM(s): SABM: cr 1 dlci 2 pf 1 ilen 0 fcs 0x59
> HCI Event: Number of Completed Packets (0x13) plen 5
  0000: 01 29 00 01 00                                    .)...
> HCI Event: Link Key Request (0x17) plen 6
  0000: af fb 06 e3 01 00                                 ......
< ACL data: handle 0x0029 flags 0x02 dlen 8
    L2CAP(d): cid 0x0040 len 4 [psm 3]
      RFCOMM(s): DISC: cr 1 dlci 2 pf 1 ilen 0 fcs 0xb8
< ACL data: handle 0x0029 flags 0x02 dlen 8
    L2CAP(d): cid 0x0040 len 4 [psm 3]
      RFCOMM(s): DISC: cr 1 dlci 0 pf 1 ilen 0 fcs 0xfd
< ACL data: handle 0x0029 flags 0x02 dlen 12
    L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040
> HCI Event: Number of Completed Packets (0x13) plen 5
  0000: 01 29 00 01 00                                    .)...
> HCI Event: Number of Completed Packets (0x13) plen 5
  0000: 01 29 00 01 00                                    .)...
> HCI Event: Number of Completed Packets (0x13) plen 5
  0000: 01 29 00 01 00                                    .)...
> ACL data: handle 0x0029 flags 0x02 dlen 8
    L2CAP(d): cid 0x0040 len 4 [psm 3]
      RFCOMM(s): UA: cr 1 dlci 2 pf 1 ilen 0 fcs 0x92
> ACL data: handle 0x0029 flags 0x02 dlen 8
    L2CAP(d): cid 0x0040 len 4 [psm 3]
      RFCOMM(s): UA: cr 1 dlci 0 pf 1 ilen 0 fcs 0xd7
> ACL data: handle 0x0029 flags 0x02 dlen 12
    L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040
> HCI Event: Disconn Complete (0x05) plen 4
  0000: 00 29 00 1f                                       .)..


does anyone recognize my error?

thank you very much



Andrea Benazzo

-- 
www.risingphoenix.it

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bluez-users] Problem with rfcomm connect
  2005-02-03 10:10 [Bluez-users] Problem with rfcomm connect Andrea Benazzo
@ 2005-02-03 11:09 ` Marcel Holtmann
  2005-02-03 13:52   ` Andrea Benazzo
  0 siblings, 1 reply; 3+ messages in thread
From: Marcel Holtmann @ 2005-02-03 11:09 UTC (permalink / raw)
  To: BlueZ Mailing List

Hi Andrea,

> I own a Belkin F8T001 as a Bluetooth device (=>I installed the related 
> firmware), but I get an error during the rfcomm connect command
> 
> here is my procedure (since only yesterdy I began playing with it, perhaps 
> there is a previous error I make)
> 
> 1) bluefw usb 001/00X
> 2) modprobe l2cap
> 3) modprobe rfcomm
> 4) mknod /dev/rfcomm0 c 216 0
> 5) hciconfig hci0 up
> 6) hciconfig
> 7) hcitool scan
> 8) l2ping 00:01:E3:06:FB:AF
> 9) added the following lines to /etc/bluetooth/rfcomm.conf:
> 
> rfcomm0 {
>   bind yes;
>   # Bluetooth address of the device
>   device 00:01:E3:06:FB:AF;
>   # RFCOMM channel for the connection
>   channel 0;
>   # Description of the connection
>   comment "S55";
>  }
> 10) rfcomm connect rfcomm0 00:01:E3:06:FB:AF
> 
> Everything has worked perfectly till now, but this last command returns "Can't 
> connect RFCOMM socket: Resource temporarily unavailable" or "Can't connect 
> RFCOMM socket: Function not implemented"

how should RFCOMM channel 0 work? Use the one from the "sdptool browse"
result instead.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bluez-users] Problem with rfcomm connect
  2005-02-03 11:09 ` Marcel Holtmann
@ 2005-02-03 13:52   ` Andrea Benazzo
  0 siblings, 0 replies; 3+ messages in thread
From: Andrea Benazzo @ 2005-02-03 13:52 UTC (permalink / raw)
  To: bluez-users

[-- Attachment #1: Type: text/plain, Size: 1040 bytes --]

Okie, I'll try that as soon as possible.

thank you very much,

Andrea Benazzo


> > 10) rfcomm connect rfcomm0 00:01:E3:06:FB:AF
> >
> > Everything has worked perfectly till now, but this last command returns
> > "Can't connect RFCOMM socket: Resource temporarily unavailable" or "Can't
> > connect RFCOMM socket: Function not implemented"
>
> how should RFCOMM channel 0 work? Use the one from the "sdptool browse"
> result instead.
>
> Regards
>
> Marcel
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> Bluez-users mailing list
> Bluez-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-users

-- 
www.risingphoenix.it

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-02-03 13:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-03 10:10 [Bluez-users] Problem with rfcomm connect Andrea Benazzo
2005-02-03 11:09 ` Marcel Holtmann
2005-02-03 13:52   ` Andrea Benazzo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.