|
Home IO Control
ESPHome add-on for IO-Homecontrol devices
|
Snapshot of the last exchange attempt for diagnostics. More...
#include <exchange_engine.h>
Public Attributes | |
| const char * | stage {"idle"} |
| Last recorded stage label. | |
| uint8_t | tries {0} |
| Retry count (1-based). | |
| uint8_t | max_tries {EXCHANGE_RETRY_COUNT} |
| Attempt cap this exchange was budgeted for. | |
| WakeBeliefUse | wake_belief_use {WakeBeliefUse::NOT_LOW_POWER} |
| Whether the tries followed wake_belief, and why not if they did not. | |
| decisions::WakeBelief | wake_belief {decisions::WakeBelief::ASLEEP} |
| Belief the tries followed; only meaningful when wake_belief_use is WakeBeliefUse::APPLIED. | |
| uint16_t | last_try_preamble {0} |
| Preamble (bytes) of the most recent request transmit attempt, 0 = none. | |
| uint8_t | request_cmd {0} |
| Command ID of the original request. | |
| bool | saw_challenge {false} |
| True if a 0x3C was seen during this exchange. | |
| bool | capture_valid {false} |
| True if radio capture is meaningful. | |
| bool | capture_rx_done {false} |
| True if RxDone IRQ fired. | |
| bool | capture_crc_error {false} |
| True if CRC error flagged; see RadioCaptureInfo::crc_error. | |
| uint32_t | capture_freq_hz {0} |
| RF frequency of the captured packet. | |
| uint16_t | capture_irq_status {0} |
| Raw IRQ register value. | |
| uint8_t | capture_packet_status {0} |
| Chip packet-status byte. | |
| uint8_t | capture_reported_len {0} |
| Length reported by radio packet engine. | |
| uint8_t | capture_frame_len {0} |
| Parsed protocol frame length. | |
| int16_t | capture_rssi_dbm {0} |
| RSSI of the captured packet (dBm). | |
| uint8_t | final_waits {0} |
| Final-reply waits run (one per try that got as far as our 0x3D). | |
| uint8_t | final_rx_ignored {0} |
| Frames received during those waits and not accepted as the reply. | |
| uint8_t | final_rx_failed {0} |
| Receptions started during those waits that could not be decoded. | |
| uint16_t | final_rx_irq {0} |
| Radio IRQ status at the most recent of those failed receptions. | |
Snapshot of the last exchange attempt for diagnostics.
Definition at line 326 of file exchange_engine.h.
| bool esphome::home_io_control::ExchangeEngine::DebugInfo::capture_crc_error {false} |
True if CRC error flagged; see RadioCaptureInfo::crc_error.
Definition at line 340 of file exchange_engine.h.
| uint8_t esphome::home_io_control::ExchangeEngine::DebugInfo::capture_frame_len {0} |
Parsed protocol frame length.
Definition at line 345 of file exchange_engine.h.
| uint32_t esphome::home_io_control::ExchangeEngine::DebugInfo::capture_freq_hz {0} |
RF frequency of the captured packet.
Definition at line 341 of file exchange_engine.h.
| uint16_t esphome::home_io_control::ExchangeEngine::DebugInfo::capture_irq_status {0} |
Raw IRQ register value.
Definition at line 342 of file exchange_engine.h.
| uint8_t esphome::home_io_control::ExchangeEngine::DebugInfo::capture_packet_status {0} |
Chip packet-status byte.
Definition at line 343 of file exchange_engine.h.
| uint8_t esphome::home_io_control::ExchangeEngine::DebugInfo::capture_reported_len {0} |
Length reported by radio packet engine.
Definition at line 344 of file exchange_engine.h.
| int16_t esphome::home_io_control::ExchangeEngine::DebugInfo::capture_rssi_dbm {0} |
RSSI of the captured packet (dBm).
Definition at line 346 of file exchange_engine.h.
| bool esphome::home_io_control::ExchangeEngine::DebugInfo::capture_rx_done {false} |
True if RxDone IRQ fired.
Definition at line 339 of file exchange_engine.h.
| bool esphome::home_io_control::ExchangeEngine::DebugInfo::capture_valid {false} |
True if radio capture is meaningful.
Definition at line 338 of file exchange_engine.h.
| uint8_t esphome::home_io_control::ExchangeEngine::DebugInfo::final_rx_failed {0} |
Receptions started during those waits that could not be decoded.
Definition at line 352 of file exchange_engine.h.
| uint8_t esphome::home_io_control::ExchangeEngine::DebugInfo::final_rx_ignored {0} |
Frames received during those waits and not accepted as the reply.
Definition at line 351 of file exchange_engine.h.
| uint16_t esphome::home_io_control::ExchangeEngine::DebugInfo::final_rx_irq {0} |
Radio IRQ status at the most recent of those failed receptions.
Definition at line 353 of file exchange_engine.h.
| uint8_t esphome::home_io_control::ExchangeEngine::DebugInfo::final_waits {0} |
Final-reply waits run (one per try that got as far as our 0x3D).
Definition at line 350 of file exchange_engine.h.
| uint16_t esphome::home_io_control::ExchangeEngine::DebugInfo::last_try_preamble {0} |
Preamble (bytes) of the most recent request transmit attempt, 0 = none.
Definition at line 335 of file exchange_engine.h.
| uint8_t esphome::home_io_control::ExchangeEngine::DebugInfo::max_tries {EXCHANGE_RETRY_COUNT} |
Attempt cap this exchange was budgeted for.
Definition at line 329 of file exchange_engine.h.
| uint8_t esphome::home_io_control::ExchangeEngine::DebugInfo::request_cmd {0} |
Command ID of the original request.
Definition at line 336 of file exchange_engine.h.
| bool esphome::home_io_control::ExchangeEngine::DebugInfo::saw_challenge {false} |
True if a 0x3C was seen during this exchange.
Definition at line 337 of file exchange_engine.h.
| const char* esphome::home_io_control::ExchangeEngine::DebugInfo::stage {"idle"} |
Last recorded stage label.
Definition at line 327 of file exchange_engine.h.
| uint8_t esphome::home_io_control::ExchangeEngine::DebugInfo::tries {0} |
Retry count (1-based).
Definition at line 328 of file exchange_engine.h.
| decisions::WakeBelief esphome::home_io_control::ExchangeEngine::DebugInfo::wake_belief {decisions::WakeBelief::ASLEEP} |
Belief the tries followed; only meaningful when wake_belief_use is WakeBeliefUse::APPLIED.
Definition at line 332 of file exchange_engine.h.
| WakeBeliefUse esphome::home_io_control::ExchangeEngine::DebugInfo::wake_belief_use {WakeBeliefUse::NOT_LOW_POWER} |
Whether the tries followed wake_belief, and why not if they did not.
Definition at line 330 of file exchange_engine.h.