119 Commits

Author SHA1 Message Date
matthias.ringwald
b8a8478375 react on logging toggle on iOS 2012-02-07 22:22:00 +00:00
matthias.ringwald
05bea2a4d2 register for logging enabled changes 2012-02-07 21:11:27 +00:00
matthias.ringwald
11d1946b65 avoid crash caused by reentrant call to socket_connection_retry_parked 2012-02-05 15:46:06 +00:00
matthias.ringwald
4f4fc1df43 use const for remote_device_db pointers 2011-11-09 15:43:28 +00:00
matthias.ringwald
fe868c3f89 don't block l2cap credits intended for the client if rfcomm send blocks temporarily - creates deadlock otherwise 2011-11-02 09:41:15 +00:00
matthias.ringwald
c8901d41d6 use 'config.h' instead of '../config.h' to make standalone builds easier 2011-09-25 14:14:10 +00:00
matthias.ringwald
e16a73262b hanlde rfcomm flow control commands in daemon 2011-09-11 21:01:09 +00:00
matthias.ringwald
488ced2711 generalize iOS enforce wake approach 2011-08-28 19:10:54 +00:00
matthias.ringwald
7d67539f26 renamed log_err into log_error 2011-07-22 18:34:18 +00:00
matthias.ringwald
7b5fbe1fe3 replace all log_dbg with log_info 2011-07-22 18:31:02 +00:00
matthias.ringwald
226b4bd38c log_err goes to stdout now 2011-07-22 18:28:58 +00:00
matthias.ringwald
ed7e0985ab use '// MARK:' instead of the non portable '#pragma mark' 2011-06-23 18:28:19 +00:00
matthias.ringwald
9735c6f8e1 retry blocked connections on DAEMON_EVENT_NEW_RFCOMM_CREDITS, too 2011-06-18 21:17:20 +00:00
matthias.ringwald
bc804351d8 retry also on RFCOMM_EVENT_CREDITS 2011-06-18 12:45:22 +00:00
matthias.ringwald
b06a83cf1f block all new l2cap credits if a connection gets blocked 2011-06-18 11:07:53 +00:00
matthias.ringwald
549e6ebe45 more compiler warning fixes 2011-06-06 14:34:29 +00:00
matthias.ringwald
40d1c7a481 more -Wstrict-prototypes fixes 2011-06-06 14:12:38 +00:00
matthias.ringwald
8b3e57c885 update to provide baudrate_init 2011-06-05 09:55:32 +00:00
matthias.ringwald
41549c8143 move BTstack run loop to separate thread on iOS and start CFRunLoop on main thread - fixes broken reception of Darwin notifications 2011-06-03 21:34:00 +00:00
matthias.ringwald
05bbbaabf4 fix compiler warnings 2011-05-27 20:47:31 +00:00
matthias.ringwald
ee709849fc also register BTdaemon as packet handler for SDP 2011-05-12 19:15:43 +00:00
matthias.ringwald
7392f586da remembered to close all RFCOMM channels and unregister RFCOMM services - close channels not implemented yet 2011-05-05 22:18:39 +00:00
matthias.ringwald
9cfcc54d6f replaced printf and fprintf(\stderr with log_dbg and log_err 2011-05-05 18:45:28 +00:00
matthias.ringwald
933d8a8084 manage RFCOMM channel services by name for iOS platform, rework RFCOMM service registration 2011-05-03 21:14:41 +00:00
matthias.ringwald
a7c3dae54a also forgot to add rfcomm.c, fix include path for rfcomm.h, update source code boilerplate 2011-05-01 11:36:12 +00:00
matthias.ringwald
e115bf24db Added RFCOMM 2011-04-30 20:30:05 +00:00
matthias.ringwald
3c4d4b9093 support for prefsbundle, bug fixes, other stuff 2011-04-30 20:11:20 +00:00
matthias.ringwald
16d01b5338 don't use cocoa run loop. BTdaemon was loosing bytes from /dev/tty.Bluetooth on iOS 2011-03-19 17:37:09 +00:00
matthias.ringwald
33871ba6fd register for SpringBoardDidLaunch notifications and wait up to ten seconds for SpringBoardAccess server before adding BTstack icon again 2011-02-02 21:37:40 +00:00
matthias.ringwald
c30257d4f4 check control before using it 2011-01-12 19:36:27 +00:00
matthias.ringwald
381fbed89a add, track, and handle btstack_set_disoverable 2011-01-10 21:11:58 +00:00
matthias.ringwald
8dd2fb2c4b add compile flag for delayed power off 2011-01-09 22:22:12 +00:00
matthias.ringwald
ca7336dc02 provide per client information: connection, power mode 2011-01-09 14:48:03 +00:00
matthias.ringwald
8ebcfd8dd8 move IOKIT power event code to bt_control_iphone.m 2011-01-08 22:45:27 +00:00
matthias.ringwald
a8d66173c1 keep list of clients that requested Blueooth to be active, Bluetooth is on iff at least one client did request it. delay off by 10 seconds 2011-01-08 22:01:06 +00:00
matthias.ringwald
e1aafbfb72 use shorter Bluetooth timeout, use cocoa run loop if available 2011-01-07 22:21:25 +00:00
matthias.ringwald
b375c84fc7 power down Bluetooth on sleep notifcation / turn on, if clients are connected 2011-01-07 21:34:50 +00:00
matthias.ringwald
720d0070fa power down Bluetooth on sleep notifcation / turn on, if clients are connected 2011-01-07 21:03:58 +00:00
matthias.ringwald
fe19fafb3a don't stop BTdaemon on power down/client disconnect 2011-01-07 20:34:53 +00:00
matthias.ringwald
56a25c4cef don't enable power notification handling in SVN, work-around compile issue with 4.2 headers (fix for #110) 2011-01-06 21:17:32 +00:00
matthias.ringwald
f8315ac151 add experimental power management detection code 2010-12-24 00:22:04 +00:00
matthias.ringwald
ddda00fc84 assert timer is not removed before being added to run loop, deamon compatible with run_loop_cocoa 2010-12-23 20:21:21 +00:00
matthias.ringwald
2992c13168 allow to specify max nr of packets in hci_dump log 2010-12-05 22:22:46 +00:00
matthias.ringwald
9ddb5534ef correct reporting of daemon timeouts 2010-11-22 17:33:51 +00:00
matthias.ringwald
80ce979a27 don't start SDP server without HAVE_SDP 2010-10-02 15:40:31 +00:00
matthias.ringwald
cf6f02ed7f reorder includes a bit 2010-09-24 21:01:07 +00:00
matthias.ringwald
404843c191 added hci_close() that trigger remote device db close, added remote device db parameter to hci_init(), implemented NSUserDefaults backed link key storage 2010-08-30 20:10:51 +00:00
matthias.ringwald
15470d2718 allow specify MTU for outgoing l2cap connections (was 150 before) 2010-08-10 20:43:55 +00:00
matthias.ringwald
8ea03fa513 flow control working, disable some dbg msgs 2010-07-31 09:07:48 +00:00
matthias.ringwald
6218e6f12b add counters for flow control, channel credits event, return -1 if no space in BT module 2010-07-29 19:35:34 +00:00