Google is committed to advancing racial equity for Black communities. See how.

fuchsia.factory.lowpan

PROTOCOLS

FactoryDevice

Defined in fuchsia.factory.lowpan/factory.fidl

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().

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.

Request

NameType
command string[2000]

Response

NameType
response string[2000]

FactoryDriver

Defined in fuchsia.factory.lowpan/factory.fidl

Protocol representing a LoWPAN driver instance that can serve FactoryDevice instances.

Not to be confused with FactoryDevice.

This protocol is implemented by LoWPAN drivers and used by the LoWPAN service when handling calls to FactoryLookup.Lookup(). It is registered with the service via a call to FactoryRegister.Register().

GetFactoryDevice

Used to obtain a FactoryDevice protocol instance.

Request

NameType
device_factory request<FactoryDevice>

FactoryLookup

Defined in fuchsia.factory.lowpan/factory.fidl

Protocol for looking up the LoWPAN factory protocol for a LoWPAN interface.

This protocol is implemented by the LoWPAN service and used by client tools that need to issue factory commands.

Lookup

Connects the the associated FactoryDevice API for the given LoWPAN interface name.

Request

NameType
name InterfaceName
device_factory request<FactoryDevice>

Response

NameType
result FactoryLookup_Lookup_Result

FactoryRegister

Defined in fuchsia.factory.lowpan/factory.fidl

Protocol for registering the factory instance of a LoWPAN driver with the LoWPAN service.

This protocol is implemented by the LoWPAN service and used by LoWPAN drivers.

Register

Registers the given LoWPAN device factory API with the LoWPAN Service using the given interface name.

The provided FactoryDriver will be used to connect requests made via FactoryLookup.Lookup() for FactoryDevice.

Request

NameType
name InterfaceName
driver FactoryDriver

Response

NameType
result FactoryRegister_Register_Result

STRUCTS

FactoryLookup_Lookup_Response

Defined in fuchsia.factory.lowpan/factory.fidl

NameTypeDescriptionDefault

FactoryRegister_Register_Response

Defined in fuchsia.factory.lowpan/factory.fidl

NameTypeDescriptionDefault

UNIONS

FactoryLookup_Lookup_Result

Defined in fuchsia.factory.lowpan/factory.fidl

NameTypeDescription
response FactoryLookup_Lookup_Response
err ServiceError

FactoryRegister_Register_Result

Defined in fuchsia.factory.lowpan/factory.fidl

NameTypeDescription
response FactoryRegister_Register_Response
err ServiceError

TYPE ALIASES

NameValueDescription
InterfaceName string
ServiceError fuchsia.lowpan.device/ServiceError