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

[bluetooth-dev] SCO data



Hi

Is it possible to send SCO data just by adding a sco connection and then
send a SCO packet like this?
I get a hardware error: unsupported LMP parameter value.

  buff[0]=25;   //packet size
  buff[1]=00;
  buff[2]=00;
  buff[3]=00;
  buff[4]=0x03; //SCO DATA
  buff[5]=0x02; //HCI handle bit 0..7
  buff[6]=0x00; //HCI handle bit 8..12
  buff[7]=21;   //data total length
  for (i=8;i<29;i++)
  {
    buff[i]=i;
  }
  result = ioctl(bt_fd, HCISENDRAWDATA, buff);

log:
##########################################################
<Out packet Length: 17
01 05 04 0D DA 1E 03 B7 D0 00 18 CC 00 00 00 00 00

**HCI:
COMMAND_PACKET (01)
OGF: LINK_CONTROL_COMMANDS (01)
OCF: CREATE_CONNECTION (05)
PARAMETER_TOTAL_LENGTH (0D)
UNKNOWN HCI PARAMETERS: (DA 1E 03 B7 D0 00 18 CC 00 00 00 00 00 )

##########################################################
>In packet Length: 7
04 0F 04 00 01 05 04

**HCI:
EVENT_PACKET (04)
COMMAND_STATUS (0F)
PARAMETER_TOTAL_LENGTH (04)
COMMAND_CURRENTLY_IN_PENDING (00)
NUM_HCI_COMMAND_PACKETS (01)
COMMAND_OPCODE: (05 04)

##########################################################
>In packet Length: 14
04 03 0B 00 01 00 DA 1E 03 B7 D0 00 01 00

**HCI:
EVENT_PACKET (04)
CONNECTION_COMPLETE (03)
PARAMETER_TOTAL_LENGTH (0B)
CONNECTION_COMMAND_COMPLETED_SUCCESSFULLY (00)
CONNECTION_HANDLE: (00 01)
BD_ADDR: (00 D0 B7 03 1E DA)
LINK_TYPE: ACL (01)
ENCRYPTION_MODE: disabled (00)

##########################################################
cut ...

##########################################################
<Out packet Length: 8
01 07 04 04 01 00 E0 00

**HCI:
COMMAND_PACKET (01)
OGF: LINK_CONTROL_COMMANDS (01)
OCF: HCI_ADD_SCO_CONNECTION
UNKNOWN HCI PARAMETERS: (04 01 00 E0 00 )

##########################################################
>In packet Length: 7
04 0F 04 00 01 07 04

**HCI:
EVENT_PACKET (04)
COMMAND_STATUS (0F)
PARAMETER_TOTAL_LENGTH (04)
COMMAND_CURRENTLY_IN_PENDING (00)
NUM_HCI_COMMAND_PACKETS (01)
COMMAND_OPCODE: (07 04)

##########################################################
>In packet Length: 14
04 03 0B 00 02 00 DA 1E 03 B7 D0 00 00 00

**HCI:
EVENT_PACKET (04)
CONNECTION_COMPLETE (03)
PARAMETER_TOTAL_LENGTH (0B)
CONNECTION_COMMAND_COMPLETED_SUCCESSFULLY (00)
CONNECTION_HANDLE: (00 02)
BD_ADDR: (00 D0 B7 03 1E DA)
LINK_TYPE: SCO (00)
ENCRYPTION_MODE: disabled (00)

##########################################################
cut ...
##########################################################
<Out packet Length: 25
03 02 00 15 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17
18 19 1A BF DC

**HCI:
SCO_DATA_PACKET (03)
SCO DATA: (02 00 15 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18
19 1A 1B 1C )

##########################################################
>In packet Length: 4
04 10 01 20

**HCI:
EVENT_PACKET (04)
HARDWARE_ERROR (10)
PARAMETER_TOTAL_LENGTH (01)
ERROR_CODE (20): Unsupported LMP Parameter Value

##########################################################


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