Repository navigation
Releases
mx-remote 14.5.2
A key for an output showing an input of its own unit stays on the output; in step with mx-remote-rust 14.5.2.
Remote control
Bay.send_key()on an output routed to an input of the same unit, as on a matrix or a transmitter's loop output, sends the key to the output again. The unit keys the device on the output with the input's remote type, as its web API did. 14.5.1 sent it to the input, which keyed the source instead.- An output routed to another unit, as a OneIP receiver's is, still has its key sent to that unit's input: the source device.
- The custom CEC and Sky key ranges take the same path as named keys. Actions (
tx_action()) are unchanged and drive the device on an output.
Full Changelog: v14.5.1...v14.5.2
mx-remote 14.5.1
A key for an output reaches its source again; in step with mx-remote-rust 14.5.1.
Remote control
Bay.send_key()on an output sends the key to the source routed to it: as 0x0CTX_RC_KEYto the unit holding that input, for that input. Since 14.4.0 it went to the output's own unit, and OneIP receivers up to firmware 10.12.242 drop a key for an output, so play, pause and stop sent to an output did nothing. The unit's web API used to pass such a key on to the source the same way.- An output with nothing routed to it takes no key:
send_key()returns False and sends nothing. - Keys for inputs, and actions (
tx_action(), 0x0E), are unchanged: an action for an output still drives the display.
Full Changelog: v14.5.0...v14.5.1
mx-remote 14.5.0
A controller's uplink uid taken as plain hex; in step with mx-remote-rust 14.5.0.
Driver proxy
ProxyConfig(uplink_uid=...)takes the uid as the controller keeps it in/data/uplink-uid: 32 hex digits, the uid's bytes in wire order, with surrounding whitespace ignored. The dotted form andMxrDeviceUidstill work.- A malformed uplink uid is refused with
ValueError: a length other than 32 digits, a non-hex digit, or spaces between the bytes.
Full Changelog: v14.4.0...v14.5.0
mx-remote 14.4.0
Driving a mesh through a OneIP controller's driver proxy, and remote-control keys over mx_remote; in step with mx-remote-rust 14.4.0.
Driver proxy
- A hello and a
PROXY ANNOUNCE(0x59) under one uid mark a OneIP controller's driver proxy:DeviceBase.proxy_controller,MxrCallbacks.on_proxy_found()andon_proxy_controller_changed(). It counts as configured with no bays, and the mark lapses 30 s after the last ANNOUNCE. Remote(proxy=ProxyConfig(controller, key, uplink_uid))joins the proxy with its driver key and drives the mesh behind it by unicast on UDP 8813, every frame sealed with AES-256-GCM. No multicast or broadcast goes on the uplink. Needs the newmx_remote[proxy]extra.- The join proves the key both ways. The client joins again by itself after a refusal (10, 20, 40, then 60 s), a controller restart or a lapsed lease, and follows the controller to a new address once the key is proven there.
on_proxy_join_status()reports each answer;Remote.proxyholds the session, including the controller'smesh_uid. - Behind a controller, every unit's
Device.addressis the controller's. Overlay syncs and previews,Device.get_api()andDevice.get_log()are refused, since the proxy carries no HTTP.
Remote control
Bay.send_key()sends 0x0CTX_RC_KEYto the unit rather than calling its web API, so keys pass a driver proxy too.
Full Changelog: v14.2.0...v14.4.0
mx-remote 14.2.0
Port metadata across the mesh, the mesh membership token, overlay previews, and routes made on an output's own unit; in step with mx-remote-rust 14.2.0.
Port metadata (0x57 METADATA, INDEX, REQUEST)
set_port_metadata()stores up to 16 key/value fields per port;port_metadata(),port_metadata_store()andrestore_port_metadata()read and restore what the mesh holds.- As mesh controller this client sends an index of every port's checksum, 1 s after a change and every 45–60 s; members pull what differs and
request_port_metadata()pulls one port. MxrCallbacks.on_port_metadata_changed()andon_port_metadata_generation_changed()report what arrives.
Mesh
MeshOperationMessagecarries a membership token and flags (MeshOperationFlag.PROMOTE_CORRECTIVE), withregister_with_token(),promote_controller_with_token()andreport_membership_with_token();Device.mesh_membership_tokenholds the one a unit reports.CONTROLLER_STATEis no longer sent on announce-only interfaces.
Overlay
send_osd_preview()has one unit show a sync without storing it, from an image server of its own;hold_osd_preview(),commit_osd_preview()andrevert_osd_preview()steer it, withOsdSyncState.PREVIEWINGandREVERTED. The layout is provisional until the firmware confirms it.DeviceBase.osd_message_reportedstamps every overlay message report a unit sends.
Routing
MxrCallbacks.on_own_route_reported()reports a route made on an output's own unit (MX_ROUTE flag bit 0), every time, after its sources are applied.- The announced protocol is now 0x36.
Full Changelog: v13.0.0...v14.2.0
mx-remote 13.0.0
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_STATEhello is marked as a dedicated controller:DeviceBase.controller_hello,dedicated_controller, andMxrCallbacks.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 aton_controller_part_received()or ending aton_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()andsend_mesh_bays(): a controller's numbering (0x57 kind 4/5), withon_mesh_bays_requested()andon_mesh_bays_received().set_member_setup_completed()marks one member's setup (0x57 kind 9);set_setup_completed()sets this client's ownSETUP_COMPLETED.- Lost settings:
MeshConfigDigest.lost,MeshConfig.lost,Device.mesh_membership_lost, andBayStatusMask.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)announcesOSD_SYNC;request_osd_sync(),request_osd_settings()andsend_osd_report()take a sync the way a unit does.keep_osd_sync()holds content without sending it;OsdSync.logo_url()andOsdSyncSetting.entryhelp serve what was taken.
Network
- On Linux, with
local_ipgiven, only datagrams arriving on that interface are taken, and an address no interface holds fails to start. - The overlay logo server listens on
local_ipalone, moving with it. announce_interfaces/set_announce_interfaces()announce the hellos on further interfaces, leaving outMANAGER,MESH_MASTERandOSD_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
mx-remote 12.1.0
Replace an offline unit of a mesh, and read and send the settings each unit keeps for its mesh, in step with mx-remote-rust 12.1.0.
Added
- Replacing a mesh unit (0x56, units on protocol 0x32 and up):
Remote.query_mesh_replaceable()asks every device which offline units this client can replace, at most every 2 s.Remote.mesh_replaceablelists the units offered in the last 30 s, each once, with the device that listed it.Remote.request_mesh_replace()asks that device to replace one with this client. It is refused before sending where a unit would refuse it: the unit was not listed in the last 30 s, this client is in a mesh or has a default serial, or the unit has a OneIP source, OneIP sink or multiviewer feature this client lacks.- As a controller,
send_mesh_replaceable()andsend_mesh_replace_result()answer such a unit.
- Kept settings (0x57, units on protocol 0x33 and up):
device.mesh_config_digestis the length and crc32 a unit announces of its own kept settings.Remote.request_mesh_config()asks a device for a unit's settings, andRemote.mesh_config()reads them once every frame has arrived in order and the crc32 matches.send_mesh_config_hello(),send_mesh_config()andsend_mesh_config_set()send this client's own settings, an answer to a request, or settings a member is to take.
- New types:
MeshReplaceUnit,MeshReplaceUnits,MeshReplaceable,MeshReplaceResult,MeshSetting,MeshConfigDigestandMeshConfig. New limits:MESH_REPLACE_UNITS_MAX,MESH_REPLACE_NAME_MAXandMESH_CONFIG_MAX. - New callbacks on
MxrCallbacks:on_mesh_replace_queried,on_mesh_replace_units_received,on_mesh_replace_requested,on_mesh_replace_answered,on_mesh_config_requested,on_mesh_config_receivedandon_mesh_config_set_requested.
Changed
- The hello announces protocol version 0x33, the version units stamp on 0x57.
Fixed
- Every frame from opcode 0x00 to 0x57 keeps its sender alive and proves its network path, as a unit treats it. That includes an application's 0x55 message, which was treated as past the opcode table.
Full Changelog: v12.0.0...v12.1.0
mx-remote 12.0.0
Read a OneIP unit's locale by name, read and change its remote control settings, and refuse tiling windows a unit ignores, in step with mx-remote-rust 12.0.0.
Added
rc_settingsholds a unit's remote control and CEC settings as anRCSettings, from its own 0x45 report.set_rc_settings()can change one setting: any setting left out, andipleft atKEEP_REPORTED, is sent as the unit last reported it. A unit reports the settings it runs, not the ones it stores, so a setting left out stores what is running.UnitFlag.FIRMWARE_UPGRADE(bit 18): the update service offered the unit a firmware upgrade.UnitFlag.UPGRADE_INSTALLING(bit 19): the unit is writing one to its flash, and its picture is gone until it restarts.OsdCaptionField.DEFAULT_TEXTsends a unit back to its layout's default caption, drawn in its own locale.ONEIP_TILING_X_STEP,ONEIP_TILING_WIDTH_STEPandONEIP_TILING_MIN.
Changed
set_oneip_tiling()refuses, unsent, a window a OneIP output silently ignores. Its values are pixels of the decoded source. A window with a zero width or height shows the whole picture.set_rc_settings()refuses to fill a setting left out from a unit that has not reported its settings yet.
Fixed
- The locale is read and written by name, such as
NL_NL, at byte 248 of the 0x3C settings block, where units send it. A locale write runs to 256 bytes. ONEIP_PREVIEW_PORTis 50024, the port units send their live preview to.- The hello cuts the serial and version to 15 bytes and ends each with a zero byte. A unit reads each field up to its first zero byte, so a full 16-byte value ran on into the next field.
- The docs of
route_oneip_unit_with_arc()give the real reason a route to another unit's audio return plays no audio: OneIP firmware has no ARC support.
Breaking
oneip_localereturnsstr|None, andset_oneip_locale()takes astr. It refuses a name that is empty, longer thanONEIP_LOCALE_MAX(8) bytes, or not printable ASCII.ONEIP_LOCALE_UNKNOWNis removed.ONEIP_PREVIEW_PORTchanges from 5880 to 50024.
Full Changelog: v11.0.0...v12.0.0
mx-remote 11.0.0
Take a mesh's controller role, run both endpoints a unit has, and keep the registry and audio routes as a unit keeps them, in step with mx-remote-rust 11.0.0. This release includes 10.0.0, which was not published separately.
Added
- Mesh controller role:
Remote(mesh_device=True)announces mesh membership, andset_mesh_controller()andset_mesh_bays_mapped()set the role the hello announces.MeshOperationMessageandsend_mesh_operation()send what a controller sends; a controller's report about itself is kept asmesh_controller_report, and any other operation reacheson_mesh_operation().send_oneip_source_list()sends the mesh's source list, in pages of 36 past one frame. - Controller writes, each refused unsent where a unit would drop the frame:
- to one OneIP unit:
set_oneip_mirroring(),set_oneip_source_filter(),set_oneip_tiling(),set_rc_settings(),confirm_oneip_vlan(),set_oneip_locale(),set_oneip_skip_420(),set_oneip_dscp()andrequest_oneip_power_save(); - to every unit:
set_mesh_setup_completed(),set_mesh_installer(),request_all_oneip_power_save(),upgrade_all_video_processors(),send_oneip_detect_bays(),reboot_all(),reboot_mesh()andfactory_reset_all().
- to one OneIP unit:
- OneIP routing as a controller routes:
route_oneip_unit(),route_oneip_unit_with_arc()andunroute_oneip_unit(). - Audio routes across units:
Remote.audio_route()returns the path a unit finds, hop by hop asAudioHop, andselect_audio_endpoint_input()switches every unit on it from the sink's end. - Device registry:
Remote.device_treelists devices as a unit lists them, from peers' topology reports. A device silent for three offline windows is forgotten (on_device_unregistered) until its next hello. - Reads:
oneip_locale,oneip_preview(withONEIP_PREVIEW_PORT),raw_name,raw_version,raw_serial,bays_online,multicast,igmp_querier,audio_endpoints,audio_reported,Bay.status_wordandBay.p8_device(from the 96-byte connect frame);NetworkPortStatus.uplinkandvideo_link; andVideoSignalDetailsgains the active size, interlaced and HDR.
Changed
- The client always opens both endpoints a unit has: the group 224.8.8.8 on 8812 and the subnet broadcast on 8811. Each frame goes out by the endpoints a unit would choose: frames for every unit by both, a frame for one device by the endpoint that device is heard by, and anything else by the group, and by broadcast too while some peer is not heard by multicast. Repeated datagrams within 100 ms are dropped.
- A source's
oneip_privacyis dropped after a hello showing the unit may have restarted, since its new streams use new keys. - A sent audio route or lock is held as the device's state until the unit reports again, and a unit's audio reports are ignored for 500 ms after a command.
set_name("")keeps the bay's name until its unit reports the default.- Every 0x1F source switch carries its 8-byte options block, with power on set.
- A hello under 54 bytes, a ping from an unknown sender, and a ping that is not exactly 16 bytes are ignored.
Fixed
- A multiviewer's audio report no longer crashes the bay mapping and skips its callbacks. A bay now holds the endpoint from its unit's latest audio report, not an earlier one that nothing updates.
Breaking
Remote(broadcast=...),update_config(broadcast=...)andmxr -bare accepted and ignored with a warning, andRemote.broadcastreads False.DeviceRegistry.transmittakes the device a frame is for, andConnectionCallbacks.on_datagram_receivedthe path a frame arrived by.OneIPVideoProcessorFeaturekeepsRTOSalone; its other members are removed because their bits now mean something else.- An audio route that no reported path leads along is refused, and nothing is sent.
OneIPDownmixtakesstatusin place ofstateandchannels. Reading.stateand.channelsstill works with a DeprecationWarning.oneip_privacygoes back to None after a hello that shows a restart.
Full Changelog: v9.4.0...v11.0.0
mx-remote 9.4.0
Read the session description a OneIP output plays, and locate a unit.
Added
request_oneip_sink_description()asks an output for the description it plays, andoneip_sink_descriptionholds it. Outputs from protocol 0x31 report it in pages (0x52 type 5) when they start a stream other than by their controller, and when asked; the request is refused below 0x31. Pages are taken from offset 0, in order, with one length and at most 5 s apart. A status playing nothing clears the description.locate_unit(timed=False)andstop_locating_unit()flash a unit's board-ID LED and show "Locate Device" on its output, for 30 s or until stopped. They are refused until the unit reportsUnitFlag.LOCATE_SUPPORTED, and the cached status takesUnitFlag.LOCATEas soon as the command is sent.UnitCommandKind.LOCATE,UnitCommandFlag.LOCATE_ONandLOCATE_TIMED.
Full Changelog: v9.3.0...v9.4.0