Skip to content

mx-remote 13.0.0

Choose a tag to compare

@opdenkamp opdenkamp released this 13 Nov 18:45
· 18 commits to master since this release

Dedicated mesh controllers, taking an overlay sync as a unit, lost-settings reporting, and confinement to the selected interface; in step with mx-remote-rust 13.0.0.

Dedicated controllers (0x58 CONTROLLER_STATE)

  • A device sending a CONTROLLER_STATE hello is marked as a dedicated controller: DeviceBase.controller_hello, dedicated_controller, and MxrCallbacks.on_controller_hello_changed().
  • Remote(dedicated_controller=True) sends one after its hello, at most every 10 s; set_controller_role() sets role and primary.
  • set_controller_parts() serves the parts of its state; pull_controller_part() pulls another's, in 8192-byte windows of 1024-byte frames, arriving at on_controller_part_received() or ending at on_controller_part_failed(). allow_controller_state() admits a controller from outside the mesh.
  • The announced protocol is now 0x34.

Mesh

  • request_mesh_bays(), mesh_bays() and send_mesh_bays(): a controller's numbering (0x57 kind 4/5), with on_mesh_bays_requested() and on_mesh_bays_received().
  • set_member_setup_completed() marks one member's setup (0x57 kind 9); set_setup_completed() sets this client's own SETUP_COMPLETED.
  • Lost settings: MeshConfigDigest.lost, MeshConfig.lost, Device.mesh_membership_lost, and BayStatusMask.SETTINGS_LOST, while which a bay keeps its name and hidden flag.
  • send_unit_status() reports this client's own unit status (0x4F).

Overlay sync as a unit

  • Remote(osd_sync=True) announces OSD_SYNC; request_osd_sync(), request_osd_settings() and send_osd_report() take a sync the way a unit does.
  • keep_osd_sync() holds content without sending it; OsdSync.logo_url() and OsdSyncSetting.entry help serve what was taken.

Network

  • On Linux, with local_ip given, only datagrams arriving on that interface are taken, and an address no interface holds fails to start.
  • The overlay logo server listens on local_ip alone, moving with it.
  • announce_interfaces / set_announce_interfaces() announce the hellos on further interfaces, leaving out MANAGER, MESH_MASTER and OSD_SYNC, and take nothing in there.
  • A peer counts towards this client's multicast fault only after a 60 s grace.

Full Changelog: v12.1.0...v13.0.0