1409 Commits

Author SHA1 Message Date
matthias.ringwald
7b22b9bc7d removed ready paramter from data_source callbacks, added timer management functions to run loop 2009-08-09 13:00:09 +00:00
matthias.ringwald
1b1784d0b0 implemented HCI disconnect command 2009-08-09 11:14:35 +00:00
matthias.ringwald
27a923d075 emit l2cap disconnect events when basedband connection closes 2009-08-08 21:55:55 +00:00
matthias.ringwald
f12adbd6cc only execute POWER_MODE commands when in the right HCI_STATE 2009-08-08 21:39:58 +00:00
matthias.ringwald
f62db1e31a implemented l2cap_disconnect command 2009-08-08 21:29:38 +00:00
matthias.ringwald
dc32489f4e fix l2cap data sending - WiiMote now reports acceleration data 2009-08-02 13:32:55 +00:00
matthias.ringwald
c8e4258af8 improve hci connection handling -> suppress create connection requests for connections already open and just emit connection complete event 2009-08-02 13:20:32 +00:00
matthias.ringwald
fcadd0ca34 streamline event forwarding in BTdaemon stack 2009-08-02 10:51:41 +00:00
matthias.ringwald
1e6aba4769 moved l2cap state machine to l2cap.c. added 'channel' parameter to packet header for socket communications. removed unused functions. dispatch btstack commands in daemon.c. renamed non-HCI commands 2009-07-31 21:41:15 +00:00
matthias.ringwald
31ce42f9cd add l2cap_send function. use source_cid to identify channels on client - dest_cid is choosen by remote side and may not be unique on client 2009-07-30 20:14:54 +00:00
matthias.ringwald
bb53b2914c fix l2cap signaling command dispatching 2009-07-30 19:40:06 +00:00
matthias.ringwald
629ab2647c try WiiMote - not working yet 2009-07-29 21:49:53 +00:00
matthias.ringwald
87ea0ea477 implemented minimal outgoing-only L2CAP state machine, BT HID connection in test.c working 2009-07-29 21:06:04 +00:00
matthias.ringwald
da269baadb start with l2cap implementation 2009-07-28 21:04:16 +00:00
matthias.ringwald
ee8bf225e1 implement power control by client (only single user mode yet) with hci_set_power_mode command 2009-07-24 21:37:45 +00:00
matthias.ringwald
fe1ed1b8b6 keep track of HCI connections 2009-07-24 21:13:53 +00:00
matthias.ringwald
b77926b5ca fix ACL send 2009-07-24 21:13:25 +00:00
matthias.ringwald
06b35ec001 added functions to get connectinon_t for a given connection handle or a bd_addr 2009-07-24 20:17:46 +00:00
matthias.ringwald
95cbd9471c extract l2cap signaling code into l2cap_signaling 2009-07-23 21:55:36 +00:00
matthias.ringwald
ba681a6c12 extract utility functions into utils.c 2009-07-23 21:43:37 +00:00
matthias.ringwald
d8905019be extract code for HCI Command packet construction into hci_cmds.c 2009-07-23 21:25:39 +00:00
matthias.ringwald
dc369792cb use socket_connection also for client, drop duplicate code in BTstack.c 2009-07-22 21:31:35 +00:00
matthias.ringwald
70f86d379d renamed socket_server to socket_connection. it will be used by both client and server 2009-07-22 20:27:00 +00:00
matthias.ringwald
59cc82e457 prepare socket_server to be used by both client and server 2009-07-22 20:21:22 +00:00
matthias.ringwald
ff2d8aacc9 fix l2cap signal packet generation - connection to BT HID working now 2009-07-21 19:14:04 +00:00
matthias.ringwald
0af41d30f6 fixing bugs created while copy \& paste of code without event a single test. example connects, does paring and gets stuck in l2cap statemachine 2009-07-20 21:39:43 +00:00
matthias.ringwald
b7df1c5af1 forgot to add the basic linked_list 2009-07-18 20:43:58 +00:00
matthias.ringwald
b9fa6cb54b use casts also for 16-bit values 2009-07-18 08:06:03 +00:00
matthias.ringwald
31452debc2 client/server: client cmd received, but crash during response 2009-07-16 22:04:11 +00:00
matthias.ringwald
8adf0dda45 work on btstack client/server commands, allow logging to stdout using HCI_DUMP_STDOUT 2009-07-16 20:12:42 +00:00
matthias.ringwald
c13e4b9a30 alloc mem before using... :) 2009-07-16 19:09:17 +00:00
matthias.ringwald
1cd208ad37 untested code for BTstack lib connection to BTdaemon 2009-07-15 22:12:54 +00:00
matthias.ringwald
fd7ed8d4e2 also compile example/test.c - not working otherwise 2009-07-14 20:41:14 +00:00
matthias.ringwald
37ac922291 remove test code from daemon and put into example/test.c - not working yet 2009-07-14 18:29:29 +00:00
matthias.ringwald
498571813b prepare socket_server and hci for client/server use 2009-07-13 22:47:32 +00:00
matthias.ringwald
4918f63ce1 implemented basic linked list and used it for the run loop 2009-07-13 21:51:42 +00:00
matthias.ringwald
855ca3c659 remove hci h4 transport data_source from run_loop before free 2009-07-12 19:42:27 +00:00
matthias.ringwald
71974eda64 add socket server to run_loop 2009-07-12 19:41:30 +00:00
matthias.ringwald
b2ae9e32ee fix bugs introduced yesterday 2009-07-12 15:33:07 +00:00
matthias.ringwald
74aad56003 daemon.h not obsolete 2009-07-11 18:41:14 +00:00
matthias.ringwald
899e4c5326 eliminate main.c in BTdaemon 2009-07-11 17:42:03 +00:00
matthias.ringwald
370399f9f8 correct kernel doesn't detach error handling 2009-07-11 10:54:59 +00:00
matthias.ringwald
c7b9c5599d add sys/stat.h for mode flags 2009-07-11 10:46:17 +00:00
matthias.ringwald
5e0fa50d74 use linux compatible mode flag 2009-07-11 10:45:06 +00:00
matthias.ringwald
a8cd57edc5 added install-iphone target, removed Makefile.iphone 2009-07-11 10:37:48 +00:00
matthias.ringwald
2d231ede68 started use of automake 2009-07-11 09:23:51 +00:00
matthias.ringwald
9bf70ccba9 achitectural change: hci_transport implementations must add itself to the run loop 2009-07-09 18:49:43 +00:00
matthias.ringwald
9320a67b01 adapting usb test code into HCI transport abstraction 2009-07-08 22:21:02 +00:00
matthias.ringwald
23c261e6ac used asynchronous libUSB API 2009-07-06 21:40:30 +00:00
matthias.ringwald
8f29b25e4b add XCode settings for libusb-1.0 in /usr/local/ 2009-07-06 16:37:53 +00:00