![Silicon Laboratories ZigBee User Manual Download Page 15](http://html1.mh-extra.com/html/silicon-laboratories/zigbee/zigbee_user-manual_1271900015.webp)
At this time, take your measurements.
plugin mfglib stream stop
When the manufacturing tests are completed, it is important that you disable the manufacturing library delay at bootup with the following
command:
plugin mfglib mfgenable 0
It is not necessary to issue the manufacturing library stop command unless you wish to initiate normal networking activity without a
power cycle as the manufacturing library operation will be reset at the next power cycle.
Manufacturing Library OTA
This plugin implements the manufacturing library custom cluster from Silicon Labs. It provides a means, through radio messages, to put
the device into RF testing mode. In the past, enabling such features on a device required the user to physically alter the device (by
cutting the case, adding a connector, and connecting to a ribbon cable). For some tests, this is practically impossible. For others, it will
alter the results of the test (such as for FCC tests). To overcome these issues, Silicon Labs developed a way to invoke the manufactur-
ing library commands using radio commands.
Theory of operation
Silicon Laboratories has created a custom ZigBee cluster that provides RF commands for the purpose of putting the device receiving
the commands into manufacturing test mode. Specifically, it can force the device to transmit an unmodulated tone, transmit a modula-
ted tone, or receive packets for a short time to check the TX or RX path of the device in the field.
First, the user must obtain a gateway that supports this functionality. Our HaGatewayReference application supports the MFGLIB Clus-
ter, although it is possible to use our development environment to create such a gateway.
After the gateway creates the network and the lighting reference design joins the network, the gateway can send commands to the
reference design to tell it which RF test to perform and which parameters to use, such as channel and TX power. Each of the RF com-
mands also includes a timeout parameter, which sets the amount of time (in milliseconds) to enable the command. Using a timeout
parameter of 0 means that the device will remain in the specified RF test until the next device power cycle.
CLI Commands
Table 7.2. Manufacturing Library Over the Air Commands
OTA Command
Notes
zcl mfg-code 0x1002
Sets the manufacturing code to 0x1002, which is the Silicon Labs
code used for these custom clusters.
zcl mfg-code 0
Unsets the manufacturing code.
zcl mfglib rx-mode <channel> <power> <time>
Put the device into RX mode. Note: when in RX mode, the device
under test will keep track of the number of packets received, the
RSSI and the LQI of the first packet received. It is recommended
to use a non-zero timeout as these parameters are stored in vola-
tile memory and will be reset at power cycle.
zcl mfglib stream <channel> <power> <time>
Set the radio to transmit a modulated carrier. Note: the carrier will
be modulated with a random stream of characters.
zcl mfglib tone <channel> <power> <time>
Set the radio to transmit a modulated carrier.
Note:
The carrier will be modulated with a random stream of char-
acters.
UG171: ZigBee
®
Smart Outlet Reference Design (RD-0051-0201) Kit User's Guide
Firmware
silabs.com
| Smart. Connected. Energy-friendly.
Rev. 0.1 | 14