mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-03 23:47:08 +00:00
added read/write link supervision timeout
This commit is contained in:
parent
a275f2d703
commit
2033929e11
@ -535,12 +535,6 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packe
|
||||
break;
|
||||
case 0x02:
|
||||
imageName = @"smartphone.png";
|
||||
#ifdef LASER_KB
|
||||
// Celluon CL800BT has COD 0x400210
|
||||
if ([dev name] && [[dev name] isEqualToString:@"CL800BT"]){
|
||||
imageName = @"keyboard.png";
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
case 0x05:
|
||||
switch ([dev classOfDevice] & 0xff){
|
||||
@ -558,9 +552,19 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packe
|
||||
break;
|
||||
}
|
||||
}
|
||||
#ifdef LASER_KB
|
||||
// Celluon CL800BT has COD 0x400210
|
||||
if ([dev name] && [[dev name] isEqualToString:@"VKB Keyboard"]){
|
||||
|
||||
#ifdef LASER_KB
|
||||
if ([dev name] && [[dev name] isEqualToString:@"CL800BT"]){
|
||||
imageName = @"keyboard.png";
|
||||
}
|
||||
|
||||
if ([dev name] && [[dev name] isEqualToString:@"CL850"]){
|
||||
imageName = @"keyboard.png";
|
||||
}
|
||||
|
||||
// Celluon CL800BT, CL850 have 00-0b-24-aa-bb-cc, COD 0x400210
|
||||
uint8_t *addr = (uint8_t *) [dev address];
|
||||
if (addr[0] == 0x00 && addr[1] == 0x0b && addr[2] == 0x24){
|
||||
imageName = @"keyboard.png";
|
||||
}
|
||||
#endif
|
||||
|
16
TODO.txt
16
TODO.txt
@ -3,23 +3,15 @@
|
||||
2009-11-08: Release 0.1
|
||||
|
||||
NEXT:
|
||||
- Add BluetoothToggle (shutdown of Apple's stack)
|
||||
- Add improved RFCOMM user-client
|
||||
- use switch on RFCOMM control field in rfcomm.c packet handler
|
||||
- get BD address on init, so it is in the dump
|
||||
- create <btstack/errors.h>
|
||||
- implement rest of L2CAP state machine
|
||||
- incoming connections
|
||||
- list of supported PSM
|
||||
- commands and events-
|
||||
- SpringBoard
|
||||
- commands and events-- Add improved RFCOMM user-client
|
||||
- use switch on RFCOMM control field in rfcomm.c packet handler
|
||||
- add configure option for uart flowcontrol
|
||||
- create <btstack/errors.h>
|
||||
- BUG: bt_close crashes when used in CocoaTouch app
|
||||
- BUG: BTdaemon crashes on iPhone when CocoaTouch app is closed (sometimes)
|
||||
- BUG (non-reproducible): hci_state gets confused.
|
||||
- BlueTool used although hci state should be on (right after quitting example/test)
|
||||
- BlueTool not used although stack not working
|
||||
- more log messages
|
||||
- BlueTool's "I'm not a Bluetooth stack" error message
|
||||
|
||||
== Release 0.2 - Incoming L2CAP supported + improved Inq Dialog
|
||||
- CocoaTouch User Interface Components
|
||||
|
@ -41,6 +41,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include <btstack/btstack.h>
|
||||
#include <btstack/hci_cmds.h>
|
||||
|
||||
// bd_addr_t addr = {0x00, 0x03, 0xc9, 0x3d, 0x77, 0x43 }; // Think Outside Keyboard
|
||||
bd_addr_t addr = {0x00, 0x19, 0x1d, 0x90, 0x44, 0x68 }; // WiiMote
|
||||
|
@ -189,6 +189,7 @@ extern hci_cmd_t hci_pin_code_request_reply;
|
||||
extern hci_cmd_t hci_qos_setup;
|
||||
extern hci_cmd_t hci_read_bd_addr;
|
||||
extern hci_cmd_t hci_read_link_policy_settings;
|
||||
extern hci_cmd_t hci_read_link_supervision_timeout;
|
||||
extern hci_cmd_t hci_remote_name_request;
|
||||
extern hci_cmd_t hci_remote_name_request_cancel;
|
||||
extern hci_cmd_t hci_reset;
|
||||
@ -198,6 +199,7 @@ extern hci_cmd_t hci_write_class_of_device;
|
||||
extern hci_cmd_t hci_write_extended_inquiry_response;
|
||||
extern hci_cmd_t hci_write_inquiry_mode;
|
||||
extern hci_cmd_t hci_write_link_policy_settings;
|
||||
extern hci_cmd_t hci_write_link_supervision_timeout;
|
||||
extern hci_cmd_t hci_write_local_name;
|
||||
extern hci_cmd_t hci_write_page_timeout;
|
||||
extern hci_cmd_t hci_write_scan_enable;
|
||||
|
@ -248,6 +248,7 @@ int main (int argc, const char * argv[]){
|
||||
config.device_name = UART_DEVICE;
|
||||
config.baudrate = UART_SPEED;
|
||||
config.flowcontrol = 1;
|
||||
// config.flowcontrol = 0; // external Bluetooth!
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_TRANSPORT_USB
|
||||
|
@ -246,12 +246,18 @@ hci_cmd_t hci_host_buffer_size = {
|
||||
OPCODE(OGF_CONTROLLER_BASEBAND, 0x33), "2122"
|
||||
// Host_ACL_Data_Packet_Length:, Host_Synchronous_Data_Packet_Length:, Host_Total_Num_ACL_Data_Packets:, Host_Total_Num_Synchronous_Data_Packets:
|
||||
};
|
||||
|
||||
hci_cmd_t hci_read_link_supervision_timeout = {
|
||||
OPCODE(OGF_CONTROLLER_BASEBAND, 0x36), "H"
|
||||
// handle
|
||||
};
|
||||
hci_cmd_t hci_write_link_supervision_timeout = {
|
||||
OPCODE(OGF_CONTROLLER_BASEBAND, 0x33), "H2"
|
||||
// handle, Range for N: 0x0001 – 0xFFFF Time (Range: 0.625ms – 40.9 sec)
|
||||
};
|
||||
hci_cmd_t hci_write_inquiry_mode = {
|
||||
OPCODE(OGF_CONTROLLER_BASEBAND, 0x45), "1"
|
||||
// Inquiry mode: 0x00 = standard, 0x01 = with RSSI, 0x02 = extended
|
||||
};
|
||||
|
||||
hci_cmd_t hci_write_extended_inquiry_response = {
|
||||
OPCODE(OGF_CONTROLLER_BASEBAND, 0x52), "1E"
|
||||
// FEC_Required, Exstended Inquiry Response
|
||||
|
Loading…
Reference in New Issue
Block a user