62 Commits

Author SHA1 Message Date
matthias.ringwald
176ffe5c52 added checks to prevent calling libusb functions after libusb_close() was called 2014-06-12 12:22:51 +00:00
matthias.ringwald@gmail.com
253ec883b1 disable use of pollfds until further investigation as it doesn't work 2014-05-15 10:45:53 +00:00
matthias.ringwald@gmail.com
bde315ce6c renamed btstack config.h to btstack-config.h to allow for better integration with other projects 2014-01-19 16:45:57 +00:00
matthias.ringwald@gmail.com
214dfbe8e5 fix comment 2014-01-08 08:27:05 +00:00
matthias.ringwald@gmail.com
b36cf1a947 send DAEMON_EVENT_HCI_PACKET_SENT as valid HCI Event - fixes issue #360 2013-12-20 19:22:19 +00:00
matthias.ringwald@gmail.com
eb984d877b added Asus BT400 to list of known Bluetooth USB dongles 2013-12-19 14:24:58 +00:00
mila@ringwald.ch
ce6765104d send correct DAEMON_EVENT_HCI_PACKET_SENT from libusb 2013-11-22 12:48:47 +00:00
matthias.ringwald@gmail.com
faca6cd47a add white list to use USB Bluetooth dongles that don't have Bluetooth class 2013-09-16 18:57:33 +00:00
matthias.ringwald@gmail.com
3aa94ed346 avoid starving by sending DAEMON_EVENT_HCI_PACKET_SENT up the stack 2013-09-02 19:56:51 +00:00
matthias.ringwald@gmail.com
c27624e0be less debug output 2013-09-02 19:36:28 +00:00
matthias.ringwald@gmail.com
c733a3cd10 avoid starving by sending DAEMON_EVENT_HCI_PACKET_SENT up the stack 2013-09-02 19:34:21 +00:00
matthias.ringwald@gmail.com
ca6fe75681 get check for fixed USB vendor/product ID to work 2013-06-04 10:10:50 +00:00
matthias.ringwald@gmail.com
e2571acd98 fixed c++ compile issues with casting 2013-05-21 12:40:09 +00:00
matthias.ringwald@gmail.com
44e5422c78 fixed c++ compile issue 2013-05-21 12:10:36 +00:00
matthias.ringwald@gmail.com
b8b6afaf59 log actual length for USB transfers 2013-03-07 17:26:03 +00:00
matthias.ringwald@gmail.com
941fd279e0 don't give error for correct async control transfer 2013-03-07 14:57:09 +00:00
matthias.ringwald@gmail.com
75375c8e99 extracted handle_completed_transfer 2013-03-06 18:40:47 +00:00
matthias.ringwald@gmail.com
4a4906b5db use async transfer for command packets 2013-03-06 18:06:22 +00:00
matthias.ringwald@gmail.com
c9810d4de6 cleaning up 2013-03-06 17:47:50 +00:00
matthias.ringwald@gmail.com
0008e038dc use async api for acl send 2013-03-06 13:24:04 +00:00
matthias.ringwald@gmail.com
c44833c27f more deubg output 2013-03-05 16:04:53 +00:00
matthias.ringwald
3d188d63f7 use 0 (never) for incoming transfers - fixes lost packets, decrease polling interval for non-pollfds to 3 ms to achieve same throughput as pollfds on Bluetooth 2.1+EDR 2013-02-24 19:59:57 +00:00
matthias.ringwald
9e427613ca reset Bluetooth module on open, fix double debug newlines, extract queue_completed_transfer 2013-02-24 18:13:16 +00:00
matthias.ringwald
5515192db3 use AYSNC_POLLING_INTERVAL_MS to specify polling interval 2013-02-18 14:58:29 +00:00
matthias.ringwald
09da5c0ba4 use AYSNC_POLLING_INTERVAL_MS to specify polling interval, disable debug output 2013-02-18 14:54:36 +00:00
matthias.ringwald
22f8b3cca7 use fixed timeout of 10 ms sec to poll usb, free descriptor. start appyling patches from issue #211, thanks to Alan 2013-02-18 14:07:34 +00:00
matthias.ringwald
6b64433e6a added non-commerical clause and contact email 2012-05-07 21:54:09 +00:00
matthias.ringwald
23357bd3d1 Use correct USB dev_handle at close (name collision). - thanks to alan for debugging this 2011-11-09 15:57:15 +00:00
matthias.ringwald
069c1f50bb use %p instead of cast to int 2011-11-09 15:39:53 +00:00
matthias.ringwald
515670b793 use LIBUSB_CALL necessary for cygwin 2011-11-09 15:36:16 +00:00
matthias.ringwald
39f5baa59a more compile fixes from Simon 2011-10-08 16:58:36 +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
8066861888 forgot to adapt log_error macro use 2011-09-11 16:07:40 +00:00
matthias.ringwald@gmail.com
d2fe945c6b use memset(addr, 0, len) instead of bzero(addr, len) to increase portability 2011-08-18 16:43:15 +00:00
matthias.ringwald
8f8108aabc replaced HCI_ACL_3DH5_SIZE with HCI_ACL_BUFFER_SIZE, add packet_types to hci_stack, set packet_types based on HCI_ACL_BUFFER_SIZE and Bluetooth module ACL buffer size, specify usable packet_types when creating connections 2011-07-26 21:18:45 +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
912a5b0c23 added can_send_packet_now to HCI transport interface 2011-07-12 20:09:07 +00:00
matthias.ringwald
a22f364722 'USB transport working well' version - THANKS Simon 2011-06-23 18:52:07 +00:00
matthias.ringwald
7ba356d267 query interface description for bluetooth endpoints 2011-01-12 20:43:27 +00:00
matthias.ringwald
60085dbc01 also include config.h 2011-01-12 19:48:08 +00:00
matthias.ringwald
95e4feb291 use Vendor/Product ID as specified by config.h 2011-01-12 19:47:07 +00:00
matthias.ringwald
aac0272b3e handle no USB BT found 2011-01-12 19:45:29 +00:00
matthias.ringwald
a8709ccb96 fix transport usb compilation 2010-09-21 17:18:50 +00:00
matthias.ringwald
622d0de9a0 streamline hci_transport interface: only have single send_packet(type,data,size) 2010-08-16 17:23:22 +00:00
matthias.ringwald
11c41d51ae use buffers of size 1021 to fit 3-DH5 ACL packets, check buffer for SDP responses 2010-07-25 12:28:23 +00:00
matthias.ringwald
10e830c982 use single packet handler per protocol layer: hci_transport 2010-07-18 16:14:55 +00:00
matthias.ringwald
f34a2da101 inlined hci_transport_usb.h 2010-06-04 18:10:12 +00:00
matthias.ringwald
1713bcea3a prepend all source files with 'new BSD' copyright header 2009-10-29 20:25:42 +00:00
matthias.ringwald
f57a4e829f playing with the usb code 2009-10-18 21:06:57 +00:00