Skip to content
lategoodbye edited this page Dec 18, 2012 · 2 revisions

M-Bus Context options

Each M-Bus handle has a variety of context-specific options. These options can be changed with the function mbus_context_set_option. Each option is of the enumeration type mbus_context_option.

  • Option: MBUS_OPTION_MAX_RETRY
Range: 0 - 9

Default: 0

Description: This option defines the maximum attempts of retransmission to get data from a M-Bus device. Zero means no attempts of retransmission.

  • Option: MBUS_OPTION_PURGE_FIRST_FRAME
Default: MBUS_FRAME_PURGE_M2S

Range: MBUS_FRAME_PURGE_NONE | MBUS_FRAME_PURGE_M2S | MBUS_FRAME_PURGE_S2M

Description: This option controls the echo cancelation for mbus_recv_frame.

Available values are:

  1. MBUS_FRAME_PURGE_NONE = no echo cancelation
  2. MBUS_FRAME_PURGE_M2S = echo cancelation for first frame from master to slave
  3. MBUS_FRAME_PURGE_S2M = echo cancelation for first frame from slave to master