通訊協定
RemoteControl
定義於 fuchsia.developer.remotecontrol/remote-control.fidl
EchoString
傳回輸入內容。
要求
| 名稱 | 類型 | 
|---|---|
| value | string[255] | 
回應
| 名稱 | 類型 | 
|---|---|
| response | string[255] | 
GetTime
要求
<EMPTY>
回應
| 名稱 | 類型 | 
|---|---|
| time | int64 | 
IdentifyHost
要求
<EMPTY>
回應
| 名稱 | 類型 | 
|---|---|
| payload | RemoteControl_IdentifyHost_Result | 
LogMessage
這個外掛程式能將字串寫入裝置的 syslog。
要求
| 名稱 | 類型 | 
|---|---|
| tag | string | 
| message | string | 
| severity | fuchsia.diagnostics/Severity | 
回應
<EMPTY>
OpenCapability
要求
| 名稱 | 類型 | 
|---|---|
| moniker | string[4096] | 
| capability_set | fuchsia.sys2/OpenDirType | 
| capability_name | fuchsia.component/name | 
| server_channel | handle<channel> | 
| flags | fuchsia.io/OpenFlags | 
回應
| 名稱 | 類型 | 
|---|---|
| payload | RemoteControl_OpenCapability_Result | 
結構化
CompatibilityInfo
定義於 fuchsia.developer.remotecontrol/host-identity.fidl
目標的相容性資訊
| 欄位 | 類型 | 說明 | 預設 | 
|---|---|---|---|
| state | CompatibilityState | 主機工具與目標之間的相容性狀態。 | 無預設 | 
| platform_abi | uint64 | 目標平台的 ABI 修訂版本。 | 無預設 | 
| message | string | 適合向英文閱讀使用者顯示的狀態訊息字串。 | 無預設 | 
RemoteControl_IdentifyHost_Response
定義於 fuchsia.developer.remotecontrol/remote-control.fidl
| 欄位 | 類型 | 說明 | 預設 | 
|---|---|---|---|
| response | IdentifyHostResponse | 無預設 | 
RemoteControl_OpenCapability_Response
定義於 fuchsia.developer.remotecontrol/remote-control.fidl
<EMPTY>
ENUMS
CompatibilityState 彈性
類型:uint32
定義於 fuchsia.developer.remotecontrol/host-identity.fidl
主機工具與目標之間的相容性狀態。
| 名稱 | 值 | 說明 | 
|---|---|---|
| 錯誤 | 0 | 判斷相容性狀態時發生錯誤。 | 
| 已繳交 | 1 | 沒有相容性資訊。 | 
| 支援 | 2 | 支援 ABI 修訂版本 | 
| 不明 | 3 | 無法識別 ABI 修訂版本。 | 
| 不支援 | 4 | 系統不支援 ABI 修訂版本。 | 
ConnectCapabilityError 彈性
類型:uint32
定義於 fuchsia.developer.remotecontrol/service-discovery.fidl
| 名稱 | 值 | 說明 | 
|---|---|---|
| INVALID_MONIKER | 1 | |
| NO_MATCHING_CAPABILITIES | 2 | |
| NO_MATCHING_COMPONENT | 3 | |
| CAPABILITY_CONNECT_FAILED | 4 | 
MarkHostError 彈性
類型:uint32
定義於 fuchsia.developer.remotecontrol/host-identity.fidl
| 名稱 | 值 | 說明 | 
|---|---|---|
| LIST_INTERFACES_FAILED | 1 | |
| GET_DEVICE_NAME_FAILED | 2 | |
| PROXY_CONNECTION_FAILED | 3 | 
TunnelError 彈性
類型:uint32
定義於 fuchsia.developer.remotecontrol/remote-control.fidl
| 名稱 | 值 | 說明 | 
|---|---|---|
| CONNECT_FAILED | 1 | |
| SOCKET_FAILED | 2 | |
| CALLBACK_ERROR | 3 | 
資料表
IdentifyHostResponse
定義於 fuchsia.developer.remotecontrol/host-identity.fidl
| 序數 | 欄位 | 類型 | 說明 | 
|---|---|---|---|
| 2 | nodename | string[255] | |
| 3 | boot_timestamp_nanos | uint64 | |
| 4 | serial_number | string[255] | |
| 5 | ids | vector<uint64> | |
| 6 | product_config | string[100] | |
| 7 | board_config | string[100] | |
| 8 | addresses | vector<fuchsia.net/Subnet> | 
聯合國
RemoteControl_IdentifiHost_Result 嚴格
定義於 fuchsia.developer.remotecontrol/remote-control.fidl
| 序數 | Variant | 類型 | 說明 | 
|---|---|---|---|
| 1 | response | RemoteControl_IdentifyHost_Response | |
| 2 | err | IdentifyHostError | |
| 3 | framework_err | internal | 
RemoteControl_OpenCapability_Result 嚴格
定義於 fuchsia.developer.remotecontrol/remote-control.fidl
| 序數 | Variant | 類型 | 說明 | 
|---|---|---|---|
| 1 | response | RemoteControl_OpenCapability_Response | |
| 2 | err | ConnectCapabilityError | |
| 3 | framework_err | internal | 
業者
| 名稱 | 值 | 類型 | 說明 | 
|---|---|---|---|
| MAX_CONNECT_MATCHES | 5 | uint16 | |
| MAX_NUM_MATCHES | 250 | uint16 | |
| NODE_NAME_MAX | 255 | uint32 |