[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bluetooth-dev] Problem in SDP client



hi Marcus,

            When i using the inq.c to connect to sdp server , the
program will no respone while running this part:

/* Issue the ioctl. */
  if ( ioctl(bt_cfd, BT_SDP_REQUEST, &sdpRequestData) < 0 )
    {
         perror("SDP request error");
         exit(-1);
      }
     else
     {
         fprintf(stderr, "Successful in sdp request\n");
      }



debug message:

Mar 31 17:05:36 localhost kernel: BT (driver) bt_open on line 7
Mar 31 17:05:36 localhost kernel: BT SYS: Registering tty on line 7
Mar 31 17:05:36 localhost kernel: BT SYS: Now 2 open fd:s for ttyBTC
Mar 31 17:05:36 localhost kernel: BT (driver) bt_ioctl: forwarding ioctl
0x540b
to serial driver
Mar 31 17:05:36 localhost kernel: BT (driver) bt_flush_buffer
Mar 31 17:05:41 localhost kernel: BT (driver) bt_ioctl: BTCONNECT
Mar 31 17:05:41 localhost kernel: BT (driver) bt_connect : The conID =
0x10200
Mar 31 17:05:41 localhost kernel: BT (driver) bt_connect : Connecting
SDP on lin
e 2
Mar 31 17:05:41 localhost kernel:
Mar 31 17:05:41 localhost kernel: Remote BD :  (6)
Mar 31 17:05:41 localhost kernel:    0x00 0xd0 0xb7 0x03 0x31 0x51
Mar 31 17:05:41 localhost kernel:
Mar 31 17:05:41 localhost kernel: bd (6)
Mar 31 17:05:41 localhost kernel:    0x51 0x31 0x03 0xb7 0xd0 0x00
Mar 31 17:05:41 localhost kernel: sleep on line 2
Mar 31 17:05:41 localhost kernel:
Mar 31 17:05:41 localhost kernel: bt_write_lower_driver : (17)
Mar 31 17:05:42 localhost kernel:    0x02 0x01 0x20 0x0c 0x00 0x08 0x00
0x01 0x0
0 0x02 0x08 0x04 0x00 0x01 0x00 0x43
Mar 31 17:05:42 localhost kernel:    0x00
Mar 31 17:05:42 localhost kernel:
Mar 31 17:05:42 localhost kernel: bt_receive_lower_stack : (21)
Mar 31 17:05:42 localhost kernel:    0x02 0x01 0x20 0x10 0x00 0x0c 0x00
0x01 0x0
0 0x03 0x08 0x08 0x00 0x52 0x00 0x43
Mar 31 17:05:42 localhost kernel:    0x00 0x00 0x00 0x00 0x00
Mar 31 17:05:42 localhost kernel: BT SYS: bt_register_sdp : line 2
Mar 31 17:05:42 localhost kernel:
Mar 31 17:05:42 localhost kernel: l2cap options :  (0)
Mar 31 17:05:42 localhost kernel:
Mar 31 17:05:42 localhost kernel: bt_write_lower_driver : (17)
Mar 31 17:05:42 localhost kernel:    0x02 0x01 0x20 0x0c 0x00 0x08 0x00
0x01 0x0
0 0x04 0x09 0x04 0x00 0x52 0x00 0x00
Mar 31 17:05:42 localhost kernel:    0x00
Mar 31 17:05:42 localhost kernel:
Mar 31 17:05:42 localhost kernel: bt_receive_lower_stack : (32)
Mar 31 17:05:42 localhost kernel:    0x02 0x01 0x20 0x0e 0x00 0x0a 0x00
0x01 0x0
0 0x05 0x09 0x06 0x00 0x43 0x00 0x00
Mar 31 17:05:42 localhost kernel:    0x00 0x00 0x00 0x02 0x01 0x20 0x0c
0x00 0x0
8 0x00 0x01 0x00 0x04 0x13 0x04 0x00
Mar 31 17:05:42 localhost kernel: BT SYS: Still haven't replied pos on
other sid
es conf req
Mar 31 17:05:42 localhost kernel:
Mar 31 17:05:42 localhost kernel: bt_receive_lower_stack : (4)
Mar 31 17:05:42 localhost kernel:    0x43 0x00 0x00 0x00
Mar 31 17:05:42 localhost kernel: BT SYS: l2cap channel (67,82) [SDP]
connected
Mar 31 17:05:42 localhost kernel: BT (driver) bt_connect_cfm, line 2
[SDP]
Mar 31 17:05:42 localhost kernel: wake up line 2
Mar 31 17:05:42 localhost kernel:
Mar 31 17:05:42 localhost kernel: bt_write_lower_driver : (19)
Mar 31 17:05:42 localhost kernel:    0x02 0x01 0x20 0x0e 0x00 0x0a 0x00
0x01 0x0
0 0x05 0x13 0x06 0x00 0x52 0x00 0x00
Mar 31 17:05:42 localhost kernel:    0x00 0x00 0x00
Mar 31 17:05:42 localhost kernel: BT (driver) bt_connect : Wake up -
line 2
Mar 31 17:05:42 localhost kernel: BT (driver) bt_ioctl: Copying
arguments from u
ser to kernel space
Mar 31 17:05:42 localhost kernel: BT (driver) bt_ioctl: Executing
bt_execute_sdp
_request
Mar 31 17:05:42 localhost kernel: BT (driver) bt_execute_sdp_request:
line 2 SDP
 index 0
Mar 31 17:05:42 localhost kernel: BT SYS: sdpStartRequest: Client
finished sendi
ng data.
Mar 31 17:05:42 localhost kernel: bt_execute_sdp_request: sleep on line
2
Mar 31 17:05:42 localhost kernel:
Mar 31 17:05:42 localhost kernel: bt_write_lower_driver : (19)
Mar 31 17:05:42 localhost kernel:    0x02 0x01 0x20 0x0e 0x00 0x0a 0x00
0x52 0x0
0 0x02 0xd9 0x42 0x00 0x05 0x35 0x03
Mar 31 17:05:42 localhost kernel:    0x19 0x10 0x02
Mar 31 17:05:42 localhost kernel:
Mar 31 17:05:42 localhost kernel: bt_receive_lower_stack : (8)
Mar 31 17:05:42 localhost kernel:    0x04 0x13 0x05 0x01 0x01 0x00 0x05
0x00

I can't get any output respone after "ioctl ", Did you face this problem
before?
Thanks a lot

from ,
Eric

-
To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to majordomo@xxxxxxx.com