|Subject:||L2CAP doesn't seem to be up|
|From:||Maksim Yevmenkin (maks...@gmail.com)|
|Date:||Mar 23, 2007 4:26:14 pm|
After struggling with the pieces of documentation around, I was able to make my cellular phone to pair with the noteboob via a usb bt dongle. Now it is connected. Nevertheless if I--->>>
## 00:12:d2:65:c2:03 My cell phone
NbBSD# l2ping -a 00:12:d2:65:c2:03 0 bytes from e61 seq_no=0 time=2458.346 ms result=0 0 bytes from e61 seq_no=1 time=91.986 ms result=0 0 bytes from e61 seq_no=2 time=55.169 ms result=0
this looks normal. nokia's usually do not return payload in l2cap echo response.
NbBSD# l2control -a 00:12:d2:65:c2:03 read_Channel_List l2control: Could not bind socket, bdaddr=00:12:d2:65:c2:03: Network is down
for the last time, please _read_man_page_
% man l2control
-a BD_ADDR Connect to the local device with the specified BD_ADDR. Example: -a 00:01:02:03:04:05.
the address you specify in the l2control command line is the address of _local_ device. not remote. local means address of your bluetooth dongle.
also l2ping will not create a l2cap connection because l2cap echo request/response go over control l2cap channel.
just try to use
sdpcontrol to query your phone for servies. if you see response - then everything is working.
NbBSD# hccontrol -n ubt0hci create_connection 00:12:d2:65:c2:03 BD_ADDR: e61 Connection handle: 42 Encryption mode: Disabled 
why are you keep doing this? you do not have to use low level (i.e. hci) commands to create connections etc.
NbBSD# hccontrol -n ubt0hci read_connection_list Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State
NbBSD# l2control -a 00:12:d2:65:c2:03 read_Connection_List l2control: Could not bind socket, bdaddr=00:12:d2:65:c2:03: Network is down
If I try
NbBSD# hccontrol -n ubt0hci create_connection e61 BD_ADDR: e61 Connection handle: 42 Encryption mode: Disabled  NbBSD# hccontrol -n ubt0hci read_connection_list Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State
Why is the L2CAP is not up?
_______________________________________________ free...@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth To unsubscribe, send any mail to "free...@freebsd.org"