pub enum FactoryDeviceRequest {
SendMfgCommand {
command: String,
responder: FactoryDeviceSendMfgCommandResponder,
},
SetupOtCli {
server_socket: Socket,
responder: FactoryDeviceSetupOtCliResponder,
},
}
Expand description
Protocol for sending factory commands to a LoWPAN device.
Not to be confused with FactoryDriver
.
This protocol is implemented by LoWPAN drivers and used by client tools that need to issue
factory commands. It is obtained from calling FactoryLookup.Lookup()
.
Variants§
SendMfgCommand
Send a proprietary manufacturing command to the device and return the response.
This method is intended to be used to facilitate device testing on the assembly line and is typically only used during device manufacturing.
Commands are given as strings (command + arguments) and the response is also a string. The usage and format of the commands is dependent on the firmware on the LoWPAN device.
When finished sending manufacturing commands, call fuchsia.lowpan.test.DeviceTest.reset()
to return the device to normal behavior.
SetupOtCli
Send proprietary manufacturing commands to the device and return the response.
This method is intended to send the exact same set of commands as SendMfgCommand(), but
instead of sending one command at a time, this method opens an opens an interactive shell
operated over server_socket
.
Implementations§
Source§impl FactoryDeviceRequest
impl FactoryDeviceRequest
pub fn into_send_mfg_command( self, ) -> Option<(String, FactoryDeviceSendMfgCommandResponder)>
pub fn into_setup_ot_cli( self, ) -> Option<(Socket, FactoryDeviceSetupOtCliResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL