Other Parts Discussed in Thread: CC2540
Hi All,
I am writing a software for controlling a CC2540 with Hosttestrelase from PC (similar to Linuxhosttest2). The TI BLE Vendor Specific HCI Reference Guide 1.2.1 says that the general command format is:
- 0x01 (command),
- opcode in 2 octets,
- param_len in 1 octet,
- parameters in param_len octet(s).
However, the format of the ATT and GATT commands is:
- opcode in 2 octets,
- connectionHandle in 2 octets,
- command parameters.
The LinuxHostTest seems to create command in the following format:
- 0x01 (command),
- opcode in 2 octets,
- data_length in 1 octet,
- connection handle in 2 octets,
- parameters in (data_length-2) octets.
Does anyone know, which is the correct way of creating such commands?
Thanks,
Gergo