1
0
Fork 0
Commit Graph

63 Commits

Author SHA1 Message Date
Shawn Nock 2eebff2717 Reuse main thread for uart_tx 2020-05-02 13:00:02 -04:00
Shawn Nock 54142cda75 bt_uart_isr optimization 2020-04-25 09:49:54 -04:00
Shawn Nock 3ecf65feb1 Removes host_queue, main = k_sleep(K_FOREVER) 2020-01-27 14:25:59 -05:00
Shawn Nock 84c42f5605 Caches buf->len for use in loop condition 2020-01-27 12:48:24 -05:00
Shawn Nock 3a48b0b825 unref tx_thread buffers 2020-01-27 11:16:39 -05:00
Shawn Nock 5887339c44 Fixes bad thread_data for uart_tx_thread 2019-08-03 13:10:22 -05:00
Shawn Nock 3c62d3a209 Refactor uart tx into a single thread 2019-08-03 13:06:11 -05:00
Shawn Nock bf1480abf5 Minor fixups 2019-08-03 10:33:29 -05:00
Shawn Nock 247baf238a Minor cleanups 2019-08-03 04:51:07 -05:00
Shawn Nock 9060e0d140 Fixes ACK number off-by-one 2019-08-03 04:36:45 -05:00
Shawn Nock 70c7a8f590 Works around weird initial rules for H5 state machine (initial ack must be 0?) 2019-08-02 16:05:57 -04:00
Shawn Nock 7597c384e8 Drop out-of-order packets early and ensure we schedule an ack for all reliable packets 2019-08-02 15:55:57 -04:00
Shawn Nock 4e2003d8ea Fixes a bug where last_seen_seq was taken from unreliable packets 2019-08-02 15:41:42 -04:00
Shawn Nock 29c8a3d77b Frees rx_buf if were dropping an unexpected seq'd packet 2019-08-02 15:29:06 -04:00
Shawn Nock 2366c8bcef Reworks seq/ack system and adds additional RX buffers
Also adds logging for too-large packets and removes the non-functional retransmit functions
2019-08-02 15:20:05 -04:00
Shawn Nock 52edd92f00 Fixes problems with oversized H5 packets; ensures logging on alloc failure 2019-08-02 11:45:06 -04:00
Shawn Nock 52dbf7ba41 Adds more HCI_COMMAND_EVT buffers 2019-07-31 15:29:17 -04:00
Shawn Nock 9b2767b3ae Reduce verbosity on BT controller messages 2019-07-31 11:21:40 -04:00
Shawn Nock 86a4b90841 Allocate additional RX buffers for BT Controller 2019-07-31 10:42:01 -04:00
Shawn Nock e9500369a1 Avoid double free in event_thread 2019-07-30 15:06:01 -04:00
Shawn Nock 80df6c90c4 Adds debugging output to RTT 2019-07-30 14:57:24 -04:00
Shawn Nock 503047e171 Adds separate queue and thread to deprioritize event data 2019-07-30 12:38:10 -04:00
Shawn Nock 36138b56fb Adds experiment to keep high-traffic environments from blocking command response by events 2019-07-27 14:19:14 -05:00
Shawn Nock fa622ba910 Increase stack sizes for c3wireless_em_ble target 2019-07-24 23:03:30 -05:00
Shawn Nock 1b33a5cc3a Increases other stack sizes and reduces log churn 2019-07-24 22:39:29 -05:00
Shawn Nock 73e6dfee64 Increases stack sizes and adds stack info 2019-07-24 22:18:17 -05:00
Shawn Nock 468cf8c865 Better header logging 2019-07-24 22:07:10 -05:00
Shawn Nock bd9ffbc8c7 Logging 2019-07-18 15:51:14 -04:00
Shawn Nock dd78877844 How does logging even work 2019-07-18 15:04:55 -04:00
Shawn Nock 2ea3414820 How does logging even work 2019-07-18 14:54:54 -04:00
Shawn Nock 6a1d08daf6 Disable test that turns out to be deprecated 2019-07-18 14:49:08 -04:00
Shawn Nock c119aadf96 Sets thread names and attempts to enable thread-aware info for gdb 2019-07-18 14:45:00 -04:00
Shawn Nock 59f9c69bb4 Re-loggening 2019-07-18 14:33:18 -04:00
Shawn Nock 91b402fc6c Revert logging 2019-07-18 14:28:47 -04:00
Shawn Nock 4f5029ed2e Logging fix 2019-07-18 14:26:20 -04:00
Shawn Nock 6e241ea8c1 Delegate all SYNC/CONFIG link pkts to tx_thread; log incoming headers 2019-07-18 14:16:18 -04:00
Shawn Nock 8797feba2f Start the h5 threads from main instead of via uart device init 2019-07-18 12:28:00 -04:00
Shawn Nock 34a40c8180 Allows tx_thread to respond more quickly to state changes 2019-07-18 12:23:04 -04:00
Shawn Nock b0d6659517 Fixes unintentional passthrough on tx_thread state machine 2019-07-18 11:54:23 -04:00
Shawn Nock 8a8e0ca469 Log tx_thread link packets 2019-07-18 11:35:04 -04:00
Shawn Nock c082d03896 Log tx_thread link packets 2019-07-18 11:15:25 -04:00
Shawn Nock bbc3239491 Ensures ACTIVE link_state before processing non-link packets 2019-07-18 11:04:32 -04:00
Shawn Nock f5890dc474 Supports resyncing SLIP 2019-07-17 16:24:42 -04:00
Shawn Nock 7e78ce0593 Replaces all HDR_SET macros with bitfield struct operations 2019-07-17 15:25:37 -04:00
Shawn Nock 249b882fae Simplifies logic with bitfield struct hdr operations 2019-07-17 15:11:28 -04:00
Shawn Nock b1d071da0d Adds improved REBOOT_IF_NOT macro to report net_buf_alloc failures 2019-07-17 14:21:26 -04:00
Shawn Nock b6ed265eb8 Send sync when transitioning to UNINIT and add logging 2019-07-16 16:09:05 -04:00
Shawn Nock f0b8ff2d24 Removes logging of every packet to host (too much noise) 2019-07-16 16:00:52 -04:00
Shawn Nock 10382d6fd6 Refactor the link state machine to switch statements for clarity 2019-07-16 15:55:50 -04:00
Shawn Nock e0854ae1c9 Fixes bad state transition logic to active 2019-07-16 15:39:30 -04:00