diff --git a/NOTICE b/NOTICE index 0729ebc..a984a7b 100644 --- a/NOTICE +++ b/NOTICE @@ -32,3 +32,13 @@ license terms for direct third-party dependencies are listed in THIRD-PARTY-LICENSES.md. Preserve this file with every distributed build. ==== End of Notices ==== + +==== Compatibility and Trademarks ==== + +MyLink and MyLife are OpenXPlay’s own connection methods. Some features happen to work with the built-in CarLink and CarLife connectivity features on some head units. Compatibility is partial, and the experience falls well short of native support on Android phones. OpenXPlay is an independent project. It has no affiliation with the manufacturers or organizations behind these features and has received no endorsement or certification from them. Names such as CarLink and CarLife belong to their respective rights holders. + +Trademark notice. Apple, iPhone, CarPlay, AirPlay, Siri, TestFlight, Apple Music, Bonjour, Mac, Safari, and Xcode are trademarks of Apple Inc., registered in the U.S. and other countries and regions. App Store is a registered service mark of Apple Inc. iOS is a trademark or registered trademark of Cisco. Android and Google are trademarks of Google LLC. CarLink, CarLife, Tesla, DLNA, Bluetooth, Wi-Fi, WeChat, WeChat Pay, Telegram, NetEase Cloud Music, Amap, NIO, Leapmotor, Honda, Roewe, XPeng, MG, GWM, Geely, Mazda, Zeekr, and any other vehicle brands, model names, app names, and third-party marks mentioned here are trademarks or registered trademarks of their respective owners. OpenXPlay is an independent project. It has no affiliation with these companies or organizations and has received no endorsement, sponsorship, or certification from them. These names are used solely to describe compatibility. + +MyLink 和 MyLife 是 OpenXPlay 自己的连接方式,只有一部分功能恰好能和部分车机自带的 CarLink、CarLife 互联功能配合使用,属于部分兼容,并非完整支持,效果也远不如安卓手机上的原生支持。OpenXPlay 是独立项目,与这些功能的厂商和组织没有任何关联,也未获得其认可或认证。CarLink、CarLife 等名称归各自权利人所有。 + +商标声明:Apple、iPhone、CarPlay、AirPlay、Siri、TestFlight、Apple Music、Bonjour、Mac、Safari 和 Xcode 是 Apple Inc. 在美国及其他国家和地区注册的商标。App Store 是 Apple Inc. 的注册服务商标。iOS 是 Cisco 的商标或注册商标。Android 和 Google 是 Google LLC 的商标。CarLink、CarLife、特斯拉(Tesla)、DLNA、Bluetooth、Wi-Fi、微信、微信支付、Telegram、网易云音乐、高德地图、蔚来、零跑、本田、荣威、小鹏、名爵、长城汽车、吉利、马自达、极氪,以及文中提到的其他汽车品牌、车型名称、App 名称和第三方标识,均为其各自权利人的商标或注册商标。OpenXPlay 是独立项目,与上述公司和组织没有任何关联,也未获得其认可、赞助或认证;文中提及这些名称仅用于说明兼容性。 diff --git a/README-zh.md b/README-zh.md index 5c26728..d8edc9f 100644 --- a/README-zh.md +++ b/README-zh.md @@ -7,7 +7,7 @@ | 输出 | 车机使用 | 触控 | 状态 | | --- | --- | --- | --- | | Web | 车机浏览器:H.264 经安全 WebSocket 传输,由 WebCodecs 解码 | 支持 | 开发中 | -| Carlink | 车机的 Carlink 应用,经 Wi-Fi 连接 | 支持 | 实验性 | +| MyLink | 部分车机内置的互联功能,经 Wi-Fi 连接 | 支持 | 实验性 | | Cast | 投屏接收端(DLNA) | 不支持 | 计划中 | 每个输出只与 OXP-Stream 模型交互,或在进程内,或通过 Stream 传输协议。输入与输出互不依赖,因此同一套输出可服务所有中继。CarPlay 输入由 [OpenXPlay Relay](https://github.com/OpenXPlay/OpenXPlay-Relay) 提供。 @@ -18,8 +18,8 @@ | 目录 | 语言 | 内容 | 使用方 | | --- | --- | --- | --- | -| [`kotlin/`](kotlin) | Kotlin/JVM(Gradle) | `core`(会话模型和 hub)、`wire`(传输协议编解码)、`web-server`、`clink`(Carlink 输出)、`tools/`(回放、开发用中继、模拟车机) | Android 中继应用 | -| [`rust/`](rust) | Rust(Cargo) | `oxp-core`、`oxp-wire`、`oxp-web`、`oxp-clink`、`oxp-media`、`oxp-link-linux`(通过 BlueZ 和 NetworkManager 建立 Carlink Wi-Fi 连接)、`oxp-bin`(`oxp-relay` 输出进程) | Linux 中继 | +| [`kotlin/`](kotlin) | Kotlin/JVM(Gradle) | `core`(会话模型和 hub)、`wire`(传输协议编解码)、`web-server`、`clink`(MyLink 输出)、`tools/`(回放、开发用中继、模拟车机) | Android 中继应用 | +| [`rust/`](rust) | Rust(Cargo) | `oxp-core`、`oxp-wire`、`oxp-web`、`oxp-clink`、`oxp-media`、`oxp-link-linux`(通过 BlueZ 和 NetworkManager 建立 MyLink Wi-Fi 连接)、`oxp-bin`(`oxp-relay` 输出进程) | Linux 中继 | | [`web/`](web) | TypeScript(Vite) | `receiver/`(车机浏览器打开的页面)、`protocol/`、`shared/`、`probe/`(解码器能力探测) | 由两种中继提供 | | [`spec/vectors/`](spec/vectors) | 数据 | 传输协议和 Web 协议的测试向量 | 三套实现的测试 | @@ -46,4 +46,6 @@ Android 中继打包 `kotlin/web-receiver/dist`,Linux 中继打包 `rust/web-r 如果贵组织的政策不允许使用 AGPLv3 许可的软件,或你希望免于履行 AGPLv3 的开源义务,请联系:[support@openxplay.org](mailto:support@openxplay.org) -CarPlay 为 Apple Inc. 的商标。OpenXPlay 为独立项目,与 Apple 不存在隶属、认可或认证关系。 +MyLink 和 MyLife 是 OpenXPlay 自己的连接方式,只有一部分功能恰好能和部分车机自带的 CarLink、CarLife 互联功能配合使用,属于部分兼容,并非完整支持,效果也远不如安卓手机上的原生支持。OpenXPlay 是独立项目,与这些功能的厂商和组织没有任何关联,也未获得其认可或认证。CarLink、CarLife 等名称归各自权利人所有。 + +商标声明:Apple、iPhone、CarPlay、AirPlay、Siri、TestFlight、Apple Music、Bonjour、Mac、Safari 和 Xcode 是 Apple Inc. 在美国及其他国家和地区注册的商标。App Store 是 Apple Inc. 的注册服务商标。iOS 是 Cisco 的商标或注册商标。Android 和 Google 是 Google LLC 的商标。CarLink、CarLife、特斯拉(Tesla)、DLNA、Bluetooth、Wi-Fi、微信、微信支付、Telegram、网易云音乐、高德地图、蔚来、零跑、本田、荣威、小鹏、名爵、长城汽车、吉利、马自达、极氪,以及文中提到的其他汽车品牌、车型名称、App 名称和第三方标识,均为其各自权利人的商标或注册商标。OpenXPlay 是独立项目,与上述公司和组织没有任何关联,也未获得其认可、赞助或认证;文中提及这些名称仅用于说明兼容性。 diff --git a/README.md b/README.md index 406b52f..345d99f 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ The output side of an [OpenXPlay](https://github.com/OpenXPlay/OpenXPlay) relay. | Output | Head unit uses | Touch | Status | | --- | --- | --- | --- | | Web | Its browser: H.264 over a secure WebSocket, decoded with WebCodecs | Yes | In development | -| Carlink | Its Carlink app, over Wi-Fi | Yes | Experimental | +| MyLink | Built-in connectivity on some head units, over Wi-Fi | Yes | Experimental | | Cast | Screen-casting receivers (DLNA) | No | Planned | Every output talks only to the OXP-Stream model, either in process or over the Stream wire protocol. Inputs and outputs never depend on each other, so the same outputs serve every relay. The [OpenXPlay Relay](https://github.com/OpenXPlay/OpenXPlay-Relay) provides the CarPlay input. @@ -18,8 +18,8 @@ The model and the outputs are implemented three times, one per runtime. Shared p | Directory | Language | Contents | Used by | | --- | --- | --- | --- | -| [`kotlin/`](kotlin) | Kotlin/JVM (Gradle) | `core` (session model and hub), `wire` (wire codec), `web-server`, `clink` (Carlink output), `tools/` (replay, a development relay, a simulated head unit) | The Android relay app | -| [`rust/`](rust) | Rust (Cargo) | `oxp-core`, `oxp-wire`, `oxp-web`, `oxp-clink`, `oxp-media`, `oxp-link-linux` (Carlink Wi-Fi link through BlueZ and NetworkManager), `oxp-bin` (the `oxp-relay` output process) | The Linux relay | +| [`kotlin/`](kotlin) | Kotlin/JVM (Gradle) | `core` (session model and hub), `wire` (wire codec), `web-server`, `clink` (MyLink output), `tools/` (replay, a development relay, a simulated head unit) | The Android relay app | +| [`rust/`](rust) | Rust (Cargo) | `oxp-core`, `oxp-wire`, `oxp-web`, `oxp-clink`, `oxp-media`, `oxp-link-linux` (MyLink Wi-Fi link through BlueZ and NetworkManager), `oxp-bin` (the `oxp-relay` output process) | The Linux relay | | [`web/`](web) | TypeScript (Vite) | `receiver/` (the page the head-unit browser opens), `protocol/`, `shared/`, `probe/` (a decoder capability probe) | Served by both relays | | [`spec/vectors/`](spec/vectors) | Data | Wire and web protocol test vectors | Tests in all three implementations | @@ -54,5 +54,6 @@ If your organization's policies do not permit the use of AGPLv3-licensed softwar to avoid the open-source obligations of AGPLv3, please contact us at: [support@openxplay.org](mailto:support@openxplay.org) -CarPlay is a trademark of Apple Inc. OpenXPlay is an independent project and is not affiliated with, -endorsed or certified by Apple. +MyLink and MyLife are OpenXPlay’s own connection methods. Some features happen to work with the built-in CarLink and CarLife connectivity features on some head units. Compatibility is partial, and the experience falls well short of native support on Android phones. OpenXPlay is an independent project. It has no affiliation with the manufacturers or organizations behind these features and has received no endorsement or certification from them. Names such as CarLink and CarLife belong to their respective rights holders. + +Trademark notice. Apple, iPhone, CarPlay, AirPlay, Siri, TestFlight, Apple Music, Bonjour, Mac, Safari, and Xcode are trademarks of Apple Inc., registered in the U.S. and other countries and regions. App Store is a registered service mark of Apple Inc. iOS is a trademark or registered trademark of Cisco. Android and Google are trademarks of Google LLC. CarLink, CarLife, Tesla, DLNA, Bluetooth, Wi-Fi, WeChat, WeChat Pay, Telegram, NetEase Cloud Music, Amap, NIO, Leapmotor, Honda, Roewe, XPeng, MG, GWM, Geely, Mazda, Zeekr, and any other vehicle brands, model names, app names, and third-party marks mentioned here are trademarks or registered trademarks of their respective owners. OpenXPlay is an independent project. It has no affiliation with these companies or organizations and has received no endorsement, sponsorship, or certification from them. These names are used solely to describe compatibility. diff --git a/kotlin/clink/src/main/kotlin/org/openxplay/stream/clink/ClinkHevcMode.kt b/kotlin/clink/src/main/kotlin/org/openxplay/stream/clink/ClinkHevcMode.kt index e77d525..6634ecd 100644 --- a/kotlin/clink/src/main/kotlin/org/openxplay/stream/clink/ClinkHevcMode.kt +++ b/kotlin/clink/src/main/kotlin/org/openxplay/stream/clink/ClinkHevcMode.kt @@ -4,5 +4,5 @@ package org.openxplay.stream.clink -/** ICCOA HEVC modes, enabled only for peers advertising support. Stored settings use these names. */ +/** Head-unit HEVC modes, enabled only for peers advertising support. Stored settings use these names. */ public enum class ClinkHevcMode { STREAM_ONLY, OFF, SIGNAL } diff --git a/kotlin/tools/devrelay/src/main/kotlin/org/openxplay/stream/devrelay/RelayOptions.kt b/kotlin/tools/devrelay/src/main/kotlin/org/openxplay/stream/devrelay/RelayOptions.kt index 7514bd7..90abde6 100644 --- a/kotlin/tools/devrelay/src/main/kotlin/org/openxplay/stream/devrelay/RelayOptions.kt +++ b/kotlin/tools/devrelay/src/main/kotlin/org/openxplay/stream/devrelay/RelayOptions.kt @@ -42,9 +42,9 @@ data class RelayOptions( require(clinkHeadUnit == null || ipv4(clinkHeadUnit) && ipv4(clinkLocal!!)) { "Clink requires numeric IPv4 addresses" } require(clinkPin == null || clinkPin.isNotEmpty() && clinkPin.all { it in '0'..'9' }) { "Clink PIN must contain digits" } require(clinkPin == null || clinkHeadUnit != null) { "Clink PIN requires Clink addresses" } - require(carlifeHeadUnit == null || ipv4(carlifeHeadUnit)) { "CarLife requires a numeric head-unit IPv4 address" } - require(ipv4(carlifeBind)) { "CarLife requires a numeric bind IPv4 address" } - require(carlife || carlifeHeadUnit == null && carlifeBind == "0.0.0.0") { "CarLife addresses require --carlife" } + require(carlifeHeadUnit == null || ipv4(carlifeHeadUnit)) { "MyLife requires a numeric head-unit IPv4 address" } + require(ipv4(carlifeBind)) { "MyLife requires a numeric bind IPv4 address" } + require(carlife || carlifeHeadUnit == null && carlifeBind == "0.0.0.0") { "MyLife addresses require --carlife" } } companion object { @@ -62,9 +62,9 @@ data class RelayOptions( --clink-head-unit Enable Clink with the head unit's IPv4 address --clink-local Local IPv4 address on the same network --clink-pin Pairing PIN (preserves leading zeros) - --carlife Enable CarLife UDP discovery and TCP output (H.264 only) + --carlife Enable MyLife UDP discovery and TCP output (H.264 only) --carlife-head-unit Send discovery directly to this receiver - --carlife-bind Bind CarLife listeners (default 0.0.0.0) + --carlife-bind Bind MyLife listeners (default 0.0.0.0) --audio-media AAC-LC 48 kHz stereo ADTS file --audio-voice PCM S16LE mono/stereo WAV at 8–48 kHz --audio-voice-every Play one voice turn every s seconds diff --git a/rust/oxp-bin/src/bin/oxp-relay.rs b/rust/oxp-bin/src/bin/oxp-relay.rs index 8a95a74..dc1a27a 100644 --- a/rust/oxp-bin/src/bin/oxp-relay.rs +++ b/rust/oxp-bin/src/bin/oxp-relay.rs @@ -31,7 +31,7 @@ use std::{ }, time::{Duration, Instant}, }; -const USAGE: &str = "oxp-relay (--unix PATH | --stdio) [--relay-name NAME --relay-version VERSION] [--web-port N --web-root DIR [--web-bind ADDR] [--web-transcode auto|off] [--plugins-root DIR --plugins-enabled IDS --plugins-state-dir DIR [--plugins-topics a,b,c]] [--advertise-address IPV4] [--pairing] [--token T] [--source-url URL] (--tls-cert PEM --tls-key PEM [--tls-name NAME --tls-self-signed STATE_DIR [--tls-san NAME]... [--tls-default-cert PEM --tls-default-key PEM]] | --tls-self-signed STATE_DIR [--tls-san NAME]... [--tls-default-cert PEM --tls-default-key PEM] | --no-tls)] [--clink-link static|ble --state-dir DIR [--pin DIGITS | --pin-file PATH] [--port k=v,...] [--clink-transcode auto|off] [--clink-hevc auto|off|signal] [--clink-vehicle-data on|off] [--clink-trace DIR]] [--control-stdin]\nStatic (default): --clink-head-unit IP --clink-local IP. BLE: [--clink-adapter NAME (hci0)] [--clink-interface NAME (wlan0)] [--clink-address MAC] [--clink-name NAME] [--clink-model MODEL] [--clink-id ID] [--clink-band 0|1] [--clink-p2p-reserved on|off]. --clink-state-dir DIR saves handoff choices in DIR/carlink/ble-peers.json; absent keeps in-memory choices. --clink-scan window|continuous defaults to an 8 s window; continuous waits for the first match and renews discovery every 10 min. --clink-phone-mac MAC sends a validated unicast Bluetooth address instead of the Wi-Fi MAC. --clink-identity ble|legacy defaults to ble for BLE links: ble uses --clink-id/name for AUTH and keeps separate car trust; legacy restores the original AUTH defaults and pairing. BLE forbids static addresses. --clink-p2p-reserved defaults to off; the host must pass on while CarPlay reserves Wi-Fi Direct. Otherwise P2P requires supplicant D-Bus access, iw-confirmed interface/channel capacity and BusyBox udhcpc/ifconfig/mv; failures clean up before infrastructure fallback. --pin-file clears stale input and waits up to 120 seconds per request. Replacement pairing requires explicit approval through --control-stdin. Incorrect PINs emit type=clink-pin, result=incorrect; session diagnostics emit type=diagnostic. Events use stdout with --unix, stderr with --stdio.\n--clink-trace DIR records Carlink JSONL and enables TS capture; --control-stdin reads JSON clear/capture, web-tls, clink-restart and clink-pairing commands and requires --unix.\nweb-tls replaces the trusted identity and self-signed SANs for new handshakes without disconnecting clients; requires --tls-self-signed at startup. Send one JSON line (4096 bytes maximum): {\"type\":\"web-tls\",\"id\":\"revision\",\"trusted\":{\"name\":\"relay.example\",\"cert\":\"/cert.pem\",\"key\":\"/key.pem\"},\"sans\":[\"192.168.1.1\"]}. trusted:null removes trusted TLS; optional default:{\"cert\":\"/user-cert.pem\",\"key\":\"/user-key.pem\"} replaces IP/nonmatching SNI TLS, default:null restores generated TLS, omission keeps the installed default. sans is required (at most 24 DNS/IP names). Replies echo id with type=web-tls, applied=true and the served fingerprint/trustedName/trustedFingerprint/defaultFingerprint, or error (tls_update_failed for invalid PEM); defaultFingerprint is null without a user default; advertise the new name only after success.\n--clink-hevc auto (default) uses H.265 for head units advertising iccoa_support_hevc: supported; off uses H.264; signal also sends the M4 support flag. The session codec stays fixed until reconnect.\nclink-restart replaces only Carlink and keeps web running; omitted picture/hevc/vehicleData settings retain their current choices. phoneMac is a unicast Bluetooth address validated like --clink-phone-mac: a string replaces the override before the next BLE link/handshake, null clears it to the Wi-Fi MAC, and absence retains the current choice. Invalid settings reject the command before retiring Carlink. clink-pairing answers the matching request with approve, pin or cancel. --clink-vehicle-data on|off defaults to off.\n--clink-transcode auto (default) uses a suitable V4L2 M2M encoder for Carlink codec/profile conversion and active-area crop/stretch with touch remapping. A clink-restart picture fixes the outgoing frame size (for example 1280x720), independently of the input canvas. H.264 input can become H.265 for an HEVC Carlink session while web keeps H.264. off forwards unchanged.\n--web-transcode auto (default) converts incompatible iPhone codecs/profiles (including H.265 to H.264) for the browser when a suitable encoder exists; off forwards unchanged. Without an encoder both outputs retain passthrough behavior. type=transcode-capabilities events at web startup and each Carlink generation (including off) report output, enabled, available, decode, encode (codec/maxWidth/maxHeight), scaling and description; null maxima mean unknown; available reports a usable hardware pair, with actual conversion validated at runtime.\nBrowser socket termination emits type=receiver-disconnected with client, code and reason (closed, timeout or error), using the receiver-info client ID. code retains the received/server close code; 1005 means no received code, 1006 means abnormal closure, 1008/timeout means hello timeout, and 1011/timeout means stalled writing. Peer close text is not reported; established idle pages do not time out.\n--advertise-address overrides the IPv4 address in the pairing URL. Otherwise prefer the default-route interface, then Wi-Fi/Ethernet, then private address range.\n--tls-name requires PEM and self-signed TLS together: matching SNI uses PEM, ignoring ASCII case and a trailing dot; all other clients use the user default, or self-signed TLS when none is installed. NAME must be a DNS name with LDH labels, at most 253 characters. Unloadable trusted PEM falls back to the selected default TLS certificate. Without --tls-name, PEM is served to every client. --tls-default-cert and --tls-default-key must be supplied together with --tls-self-signed; optional trusted PEM also requires --tls-name. Invalid default PEM fails startup. Both startup tls-fingerprint events and web-tls replies report SHA-256 uppercase colon-separated leaf fingerprints: fingerprint identifies IP/nonmatching SNI TLS, defaultFingerprint identifies the user default or null, trustedFingerprint identifies trusted SNI or null. PEM chains must parse and the unencrypted key must match the leaf. Supported keys (rustls/ring): RSA (PKCS#1 or PKCS#8), ECDSA P-256/P-384 (SEC1 or PKCS#8), Ed25519 (PKCS#8).\n--host-ui advertises receiver UI support and forwards one-shot host-ui requests to the recent touch client (5 s), otherwise all clients.\nPairing is off by default. --pairing generates an 8-digit code; --token T enables pairing with T and takes precedence over --pairing."; +const USAGE: &str = "oxp-relay (--unix PATH | --stdio) [--relay-name NAME --relay-version VERSION] [--web-port N --web-root DIR [--web-bind ADDR] [--web-transcode auto|off] [--plugins-root DIR --plugins-enabled IDS --plugins-state-dir DIR [--plugins-topics a,b,c]] [--advertise-address IPV4] [--pairing] [--token T] [--source-url URL] (--tls-cert PEM --tls-key PEM [--tls-name NAME --tls-self-signed STATE_DIR [--tls-san NAME]... [--tls-default-cert PEM --tls-default-key PEM]] | --tls-self-signed STATE_DIR [--tls-san NAME]... [--tls-default-cert PEM --tls-default-key PEM] | --no-tls)] [--clink-link static|ble --state-dir DIR [--pin DIGITS | --pin-file PATH] [--port k=v,...] [--clink-transcode auto|off] [--clink-hevc auto|off|signal] [--clink-vehicle-data on|off] [--clink-trace DIR]] [--control-stdin]\nStatic (default): --clink-head-unit IP --clink-local IP. BLE: [--clink-adapter NAME (hci0)] [--clink-interface NAME (wlan0)] [--clink-address MAC] [--clink-name NAME] [--clink-model MODEL] [--clink-id ID] [--clink-band 0|1] [--clink-p2p-reserved on|off]. --clink-state-dir DIR saves handoff choices in DIR/carlink/ble-peers.json; absent keeps in-memory choices. --clink-scan window|continuous defaults to an 8 s window; continuous waits for the first match and renews discovery every 10 min. --clink-phone-mac MAC sends a validated unicast Bluetooth address instead of the Wi-Fi MAC. --clink-identity ble|legacy defaults to ble for BLE links: ble uses --clink-id/name for AUTH and keeps separate car trust; legacy restores the original AUTH defaults and pairing. BLE forbids static addresses. --clink-p2p-reserved defaults to off; the host must pass on while CarPlay reserves Wi-Fi Direct. Otherwise P2P requires supplicant D-Bus access, iw-confirmed interface/channel capacity and BusyBox udhcpc/ifconfig/mv; failures clean up before infrastructure fallback. --pin-file clears stale input and waits up to 120 seconds per request. Replacement pairing requires explicit approval through --control-stdin. Incorrect PINs emit type=clink-pin, result=incorrect; session diagnostics emit type=diagnostic. Events use stdout with --unix, stderr with --stdio.\n--clink-trace DIR records MyLink JSONL and enables TS capture; --control-stdin reads JSON clear/capture, web-tls, clink-restart and clink-pairing commands and requires --unix.\nweb-tls replaces the trusted identity and self-signed SANs for new handshakes without disconnecting clients; requires --tls-self-signed at startup. Send one JSON line (4096 bytes maximum): {\"type\":\"web-tls\",\"id\":\"revision\",\"trusted\":{\"name\":\"relay.example\",\"cert\":\"/cert.pem\",\"key\":\"/key.pem\"},\"sans\":[\"192.168.1.1\"]}. trusted:null removes trusted TLS; optional default:{\"cert\":\"/user-cert.pem\",\"key\":\"/user-key.pem\"} replaces IP/nonmatching SNI TLS, default:null restores generated TLS, omission keeps the installed default. sans is required (at most 24 DNS/IP names). Replies echo id with type=web-tls, applied=true and the served fingerprint/trustedName/trustedFingerprint/defaultFingerprint, or error (tls_update_failed for invalid PEM); defaultFingerprint is null without a user default; advertise the new name only after success.\n--clink-hevc auto (default) uses H.265 for head units advertising HEVC support; off uses H.264; signal also sends the M4 support flag. The session codec stays fixed until reconnect.\nclink-restart replaces only MyLink and keeps web running; omitted picture/hevc/vehicleData settings retain their current choices. phoneMac is a unicast Bluetooth address validated like --clink-phone-mac: a string replaces the override before the next BLE link/handshake, null clears it to the Wi-Fi MAC, and absence retains the current choice. Invalid settings reject the command before retiring MyLink. clink-pairing answers the matching request with approve, pin or cancel. --clink-vehicle-data on|off defaults to off.\n--clink-transcode auto (default) uses a suitable V4L2 M2M encoder for MyLink codec/profile conversion and active-area crop/stretch with touch remapping. A clink-restart picture fixes the outgoing frame size (for example 1280x720), independently of the input canvas. H.264 input can become H.265 for an HEVC MyLink session while web keeps H.264. off forwards unchanged.\n--web-transcode auto (default) converts incompatible iPhone codecs/profiles (including H.265 to H.264) for the browser when a suitable encoder exists; off forwards unchanged. Without an encoder both outputs retain passthrough behavior. type=transcode-capabilities events at web startup and each MyLink generation (including off) report output, enabled, available, decode, encode (codec/maxWidth/maxHeight), scaling and description; null maxima mean unknown; available reports a usable hardware pair, with actual conversion validated at runtime.\nBrowser socket termination emits type=receiver-disconnected with client, code and reason (closed, timeout or error), using the receiver-info client ID. code retains the received/server close code; 1005 means no received code, 1006 means abnormal closure, 1008/timeout means hello timeout, and 1011/timeout means stalled writing. Peer close text is not reported; established idle pages do not time out.\n--advertise-address overrides the IPv4 address in the pairing URL. Otherwise prefer the default-route interface, then Wi-Fi/Ethernet, then private address range.\n--tls-name requires PEM and self-signed TLS together: matching SNI uses PEM, ignoring ASCII case and a trailing dot; all other clients use the user default, or self-signed TLS when none is installed. NAME must be a DNS name with LDH labels, at most 253 characters. Unloadable trusted PEM falls back to the selected default TLS certificate. Without --tls-name, PEM is served to every client. --tls-default-cert and --tls-default-key must be supplied together with --tls-self-signed; optional trusted PEM also requires --tls-name. Invalid default PEM fails startup. Both startup tls-fingerprint events and web-tls replies report SHA-256 uppercase colon-separated leaf fingerprints: fingerprint identifies IP/nonmatching SNI TLS, defaultFingerprint identifies the user default or null, trustedFingerprint identifies trusted SNI or null. PEM chains must parse and the unencrypted key must match the leaf. Supported keys (rustls/ring): RSA (PKCS#1 or PKCS#8), ECDSA P-256/P-384 (SEC1 or PKCS#8), Ed25519 (PKCS#8).\n--host-ui advertises receiver UI support and forwards one-shot host-ui requests to the recent touch client (5 s), otherwise all clients.\nPairing is off by default. --pairing generates an 8-digit code; --token T enables pairing with T and takes precedence over --pairing."; fn arguments() -> Result<(Args, Vec)> { parse_arguments(std::env::args().skip(1)) }