pub enum Stick {
Im871a,
Iu891a,
Amb8465,
}Expand description
A supported receiver stick.
Variants§
Im871a
IMST iM871A (868 MHz) and iM170A (169 MHz): WM-Bus HCI 1.x.
Iu891a
IMST iU891A, iM891A, iU893A: the WM-Bus gateway HCI 2.x over SLIP.
Amb8465
Amber/Würth AMB8465 (Metis-I) and AMB8665 (Metis-II), in command mode with RSSI.
Implementations§
Source§impl Stick
impl Stick
Sourcepub fn listen(self, mode: LinkMode) -> Option<Command>
pub fn listen(self, mode: LinkMode) -> Option<Command>
The command that starts reception of mode, until the stick is powered off.
None where the stick cannot receive that mode (S1 on the Amber sticks).
| Stick | Command | Modes |
|---|---|---|
| iM871A | SET_CONFIG_REQ, RAM only, link mode and RSSI on | S1 00, T1 03, C1 07 (C1 format B also receives A), C1+T1 0A (firmware ≥ 1.4) |
| iU891A | Set Active Configuration (RAM): mode, receive notification, recalibration | S 01, T 02, C 05, C/T 03 |
| AMB8465 | CMD_SET_MODE_REQ (RAM) | T2_other 08, C2_other 0E, C2_T2_other 09 |
Sourcepub fn ping(self) -> Command
pub fn ping(self) -> Command
A harmless request whose response shows the stick is there: PING_REQ (iM871A,
iU891A) or CMD_FWV_REQ (Amber).
Sourcepub fn setup(self) -> impl Iterator<Item = Command>
pub fn setup(self) -> impl Iterator<Item = Command>
One-time preparation, written to the stick’s non-volatile memory: for the Amber
sticks, frame received telegrams as CMD_DATA_IND (UART_CMD_Out_Enable = 1),
append the RSSI (RSSI_Enable = 1), then reset. Empty for the IMST sticks.
Flash memory wears: run it once per stick, not on every start.