BLE TX pending queue 확장 및 ADC 패킷 재시도 처리, Ver116 업데이트

- BLE TX pending slot을 1개에서 8개로 확장
- dr_binary_tx_safe()에서 TX 결과 반환
- maa_async TX 실패 시 상태 유지 후 TX ready에서 재시도
This commit is contained in:
2026-05-22 17:54:06 +09:00
parent 041201a1d4
commit b81ae1a868
7 changed files with 165 additions and 68 deletions
@@ -43,8 +43,9 @@
* - VBTFW0115 260518 jhChun
* : Added mtb? command (reb:+raa:+rim:, 6ch piezo + ICM42670 FIFO at 25 Hz).
* : rim: packet format and FIFO sample cap/filter options (app_raw).
* - VBTFW0116 260522 jhChun : Expanded BLE TX pending slots from 1 → 8 to reduce ADC data packet loss when the TX queue is full
------------------------------------------------------------------------- */
#define FIRMWARE_VERSION "VBTFW0115"
#define FIRMWARE_VERSION "VBTFW0116"
/*==============================================================================
* Data Length Constants
@@ -141,7 +142,7 @@ void data_tx_handler(char const *p_data_to_send);
/* Safe binary data BLE transmission (CRC16 appended, with retry logic)
* @param ble_bin_buff Binary buffer to transmit
* @param length Data length in uint16_t words (actual bytes = length x 2) */
void dr_binary_tx_safe(uint8_t const *ble_bin_buff, uint16_t length);
uint32_t dr_binary_tx_safe(uint8_t const *ble_bin_buff, uint16_t length);
/* SoftDevice-compatible delay (nrf_delay_ms wrapper) */
void dr_sd_delay_ms(uint32_t ms);