Lantronix xPico 200 Series Use and care manual

Lantronix, Inc.
7535 Irvine Center Drive
Suite 100
Irvine, CA 92618
Tel: +1 (949) 453-3990
Part Number APP-0001
Revision C March 2019
Application Note:
xPico 200®Certification Firmware Instructions

xPico®200 Certification Firmware Instructions 2
Intellectual Property
© 2019 Lantronix, Inc. All rights reserved. No part of the contents of this publication may be
transmitted or reproduced in any form or by any means without the written permission of
Lantronix.
Lantronix and xPico are registered trademarks of Lantronix, Inc. in the United States and other
countries.
Patented: http://patents.lantronix.com; additional patents pending.
Wi-Fi is a registered trademark of Wi-Fi Alliance Corporation. All other trademarks and trade
names are the property of their respective holders.
Contacts
Lantronix, Inc.
7535 Irvine Center Drive, Suite 100
Irvine, CA 92618, USA
Toll Free: 800-526-8766
Phone: 949-453-3990
Fax: 949-453-3995
Technical Support
Online: www.lantronix.com/support
Sales Offices
For a current list of our domestic and international sales offices, go to the Lantronix web site at
www.lantronix.com/about/contact
Disclaimer
All information contained herein is provided “AS IS.” Lantronix undertakes no obligation to
update the information in this publication. Lantronix does not make, and specifically disclaims,
all warranties of any kind (express, implied or otherwise) regarding title, non-infringement,
fitness, quality, accuracy, completeness, usefulness, suitability or performance of the
information provided herein. Lantronix shall have no liability whatsoever to any user for any
damages, losses and causes of action (whether in contract or in tort or otherwise) in
connection with the user’s access or usage of any of the information or content contained
herein. The information and specifications contained in this document are subject to change
without notice.
This equipment has to be tested and found to comply with the limits for a Class B digital
device, pursuant to Part 15 of the FCC Rules. These limits are designed to provide reasonable
protection against harmful interference in a residential installation. This equipment generates,
uses, and can radiate radio frequency energy and, if not installed and used in accordance with
the instructions, may cause harmful interference to radio communications. However, there is
no guarantee that interference will not occur in a particular installation.

xPico®200 Certification Firmware Instructions 3
If this equipment does cause harmful interference to radio or television reception, which can be
determined by turning the equipment off and on, the user is encouraged to try to correct the
interference by one of the following measures:
1. Reorient or relocate the receiving antenna.
2. Increase the separation between the equipment and receiver.
3. Connect the equipment into an outlet on a circuit different from that to which the receiver
is connected.
4. Consult the dealer or an experienced radio/TV technician for help.
This device complies with Part 15 of the FCC Rules. Operation is subject to the following two
conditions: (1) This device may not cause harmful interference, and (2) this device must accept
any interference received, including interference that may cause undesired operation.
This device is intended only for OEM Integrators. The OEM integrator should be aware of the
following important considerations.
Revision History
Date
Rev.
Comments
April 2018
A
Preliminary Draft.
August 2018
B
Updates for new MFG Loader
March 2019
C
Updates to the Continuous Mode Software Load instructions.
For the latest revision of this product document, please check our online documentation at
www.lantronix.com/support/documentation.

xPico®200 Certification Firmware Instructions 4
Table of Contents
Intellectual Property_________________________________________________________ 2
Contacts__________________________________________________________________ 2
Disclaimer ________________________________________________________________ 2
Revision History____________________________________________________________ 3
Table of Contents __________________________________________________________ 4
Overview _________________________________________________________________ 5
Requirements for Leveraging Lantronix xPico 200 Certificates _______________________ 5
Disqualifications to Leveraging Lantronix xPico 200 Certificates ______________________ 5
Certification Test Modes _____________________________________________________ 6
Hardware Requirements for Continuous Mode Testing _____________________________ 6
Continuous Mode Software Load ______________________________________________ 7
Running the Wi-Fi Continuous Mode Tests_______________________________________ 9
802.11g Transmit Script ____________________________________________________ 10
802.11a Transmit Script ____________________________________________________ 11
802.11n Transmit Script ____________________________________________________ 12
Transmit Stop Command____________________________________________________ 12
802.11 2Ghz Receive Mode Script ____________________________________________ 13
802.11 5Ghz Receive Mode Script ____________________________________________ 14
Bluetooth Continuous Mode Testing ___________________________________________ 15
Running the BT Test Modes _________________________________________________ 15

xPico®200 Certification Firmware Instructions 5
Overview
This document provides instructions on leveraging Lantronix® xPico®certificates. In many
cases, the Lantronix modular transmitter certification can be leveraged without acquiring full re-
certification effort in products that use the Lantronix module.
ThexPico 200 series has modular approval for FCC, IC, EU, Japan, China and Australia/New
Zealand. All xPico certificates can be found in the xPico 200 module documentation at
https://www.lantronix.com/products/xpico-200/#tab-docs-downloads.
It is recommended that you consult with your certification laboratory to develop your
certification plan for your product that includes the xPico 200 series module. The xPico 200
series module certification tests were completed at Bureau Veritas in Hsinchu, Taiwan.
Requirements for Leveraging Lantronix xPico 200 Certificates
The following conditions are required to leverage Lantronix modular transmitter certifications:
Following the antenna and layout instructions in the xPico 200 Series Integration Guide.
Using antennas of similar type and equal or less gain than the antennas listed in the
xPico 200 Series Integration Guide.
Positioning the xPico 200 module at least 20 cm from a human body and the
transmitting antennas at least 20 cm from all other transmitters. Lantronix has not
completed SAR testing on the xPico 200 module.
Running EMC tests including the FCC 15-part B and EN 301 489 -1/-17. When
leveraging the modular certification, the transmitter and receiver-specific tests normally
do not need to be performed.
Placing certifications for the xPico 200 transmitter IDs for various regions on the end-
product label according to conditions listed in the Compliance section of the xPico 200
Series Data Sheet.See https://www.lantronix.com/products/xpico-200/#tab-docs-
downloads.
Running two certification testing modes. See Certification Test Modes.
Disqualifications to Leveraging Lantronix xPico 200 Certificates
The following conditions disqualify the leveraging of Lantronix xPico 200 certifications:
Using a different type of antenna than that shown in the xPico 200 Series Integration
Guide.
Using an antenna with higher gain than the antennas called out in the xPico 200 Series
Integration Guide.
Installing the xPico 200 module antenna in a location where it is expected to be less
than 20 cm from a human body. Under this scenario, SAR testing would need to be
completed.
Installing the xPico 200 module antenna within 20 cm of another transmitter module.
Installing the xPico 200 module in a country or region not referenced in the Compliance
section of the xPico 200 Series Data Sheet. See
https://www.lantronix.com/products/xpico-200/#tab-docs-downloads.

xPico®200 Certification Firmware Instructions 6
Certification Test Modes
Certification testing requires both normal mode testing and continuous mode testing. The number
of units needed for certification testing depends on the regional certifications planned. Consult
with your certification lab prior to testing for their recommendation on the number of normal mode
test units and continuous mode test units.
Normal mode testing is conducted with the xPico 200 module running the base
application software. In this case the unit should be configured to run tests with the
module interfaces both idle and fully exercised. For Ethernet and Wi-Fi interfaces, iperf
or some other network utilization method can be used. Serial and USB ports should
utilize a similar program to exercise the used ports for certification EMC tests.
Continuous mode testing is conducted in cases where full transmitter certification or
re-certification is required. The certification lab will require testing on some units that
run continuous mode transmitter and receiver tests. To run the continuous transmit and
receive mode tests, special firmware needs to be loaded on the xPico 200 module.
Hardware Requirements for Continuous Mode Testing
The following hardware requirements are needed for continuous mode testing. The continuous
mode software can be downloaded at https://www.lantronix.com/products/xpico-200/#tab-docs-
downloads.
To run the xPico 240/250 transmitter and receiver tests for full certification, access to
the module serial port is required.
The serial port connections are required to load a special firmware image that allows
continuous transmit, continuous receive, and other tests required for transmitter
certification.
Lantronix recommends adding test points for the serial port to assist with loading the
certification test code. The current implementation requires that this data is loaded via
the serial interface. It’s recommended to include an option to tristate other devices
connected to the serial port line while the manufacturing test loading is in progress. An
example of the recommended manufacturing test point is shown in the figure below.

xPico®200 Certification Firmware Instructions 7
xPico 240/250 Module
MCU UART or
system serial
transceiver
UART TX
UART RX
UART RTS
UART CTS
JTAG
JTAG Port
UART RX
UART TX
UART CTS
UART RTS
Jumper or SW hook to tristate
MCU serial interface for
xPico module test/ FW load
= PCB Test Point
Manufacturing Tester/Loader
UART Probe
UART RTS
UART CTS
UART TX
UART RX
See the evaluation board schematic and artwork for recommended transceiver, DB9, and port
connections in the xPico 200 Series Evaluation Kit User Guide.
Continuous Mode Software Load
To use the module for continuous mode testing for certification, download and load the Wi-Fi
continuous mode software.
1. Download the xPico 200 continuous mode software from
https://www.lantronix.com/products/xpico-200/#tab-docs-downloads.
2. Extract the files from the archive. The archive contains the xPico200_MFG_Test
directory with the following contents:
a. Wi-Fi-Scripts directory –contains the scripts that can be pasted in Tera
Term.
b. xPico200 directory –contains the rom that is loaded to the device and the Tera
Term macro file.
c. Certification Firmware Instructions –this document.

xPico®200 Certification Firmware Instructions 8
d. xp200-cmd_teraterm –wifi.bat –the batch file that launches Tera Term and
executes the macro.
3. Copy the xPico200_MFG_Test directory to the C:\drive of your PC.
Note: If you copy it to another directory on your PC, you may need to modify the load
scripts to point to a different directory.
4. Install Tera Term on your PC. These instructions were tested with Tera Term 4.73 but
may work with other versions.
Note: The xP200-cmd_teraterm –wifi.bat file contains a link to ttermpro.exe, the Tera
Term executable. You may need to modify this link if the executable is in a different
directory on your PC.
5. Connect the serial port of the module to your PC.
6. Double click the xP200-cmd_teraterm –wifi.bat file in the xPico200_MFG_Test
directory.
7. In the Comport Number window that opens, enter the COM port that’s connected to the
xPico 200 module and click OK.
8. Click OK to start.

xPico®200 Certification Firmware Instructions 9
9. Assert the module default pin and power up the module. The Tera Term window will
display the firmware transfer progress.
10. When the firmware has successfully loaded, a Pass Test window will be displayed.
Note: In some cases, you may need to reset the Tera Term window after loading the
firmware.
11. At the CLI prompt, type cert console to enter continuous mode for running cert scripts.
12. Type ?to list all commands. Type wl -h to list all wl commands.
Running the Wi-Fi Continuous Mode Tests
Wi-Fi continuous mode uses the Cypress WL commands. For more information on WL tool
commands please see the Cypress reference document at
http://www.cypress.com/file/385966/download.
The Wi-Fi scripts directory includes several scripts that can be pasted into the Tera Term
command prompt.
Example scripts are shown below.

xPico®200 Certification Firmware Instructions 10
802.11g Transmit Script
wl down
wl country ALL
wl band b
wl chanspec -c 1 -b 2 -w 20 -s 0
wl mpc 0
wl ampdu 1
wl bi 65000
wl frameburst 1
wl rateset 54b
wl up
wl txant 0
wl antdiv 0
wl nrate -r 54
wl phy_watchdog 0
wl disassoc
wl phy_forcecal 1
wl phy_activecal
wl txpwr1 -1
wl pkteng_start 00:90:4c:aa:bb:cc tx 20 1024 0
In the wl chanspec -c 1 -b 2 -w 20 -s 0 line, -c 1 sets the channel to channel 1. Change the
1parameter to any integer from 1 to 14 to specify the channel.
Use the wl nrate -r 54 line to modify the bit rate. The -r 54 sets the rate to 54Mbps.
wl nrate -m 0 -s 0 is for MCS0.
wl nrate -m 7 -s 0 is for MCS7.
The txant parameter sets the antenna to either antenna 0 or antenna 1

xPico®200 Certification Firmware Instructions 11
802.11a Transmit Script
wl down
wl country ALL
wl band a
wl chanspec -c 100 -b 5 -w 20 -s 0
wl mpc 0
wl ampdu 1
wl bi 65000
wl frameburst 1
wl rateset 54b
wl up
wl txant 0
wl antdiv 0
wl nrate -r 54
wl phy_watchdog 0
wl disassoc
wl phy_forcecal 1
wl phy_activecal
wl txpwr1 -1
wl pkteng_start 00:90:4c:aa:bb:cc tx 20 1024 0
Similar to the 802.11g script above, change the chanspec line to set the channel using the
parameter after the -c parameter and change the nrate line to set the bit rate.
The txant parameter sets the antenna to either antenna 0 or antenna 1.

xPico®200 Certification Firmware Instructions 12
802.11n Transmit Script
wl down
wl mpc 0
wl phy_txpwrctrl 1
wl phy_watchdog 0
wl country ALL
wl PM 0
wl band a
wl 5g_rate -v 7 -s 1 -b 40
wl chanspec -c 38 -b 5 -w 40 -s -1
wl up
wl antdiv 0
wl txant 0
wl txpwr1 -1
wl phy_forcecal 1
wl phy_activecal
wl scansuppress 1
wl pkteng_start 00:90:4c:aa:bb:cc tx 100 2048 0
Similar to the 802.11g script above change the chanspec line to set the channel using the
parameter after the -c parameter and change the 5g_rate line to set the bit rate.
The -b parameter in the 5g_rate line and the -w parameter in the chanspec line sets the
bandwidth. The xPico 200 supports 20Mhz and 40Mhz bandwidth for 802.11n in the 5Ghz band.
The txant parameter sets the antenna to either antenna 0 or antenna 1.
Transmit Stop Command
wl pkteng_stop tx
The wl pkteng_stop tx command stops the transmit test.

xPico®200 Certification Firmware Instructions 13
802.11 2Ghz Receive Mode Script
wl down
wl mpc0
wl country ALL
wl band b
wl scansuppress 1
wl channel 1
wl bi 65535
wl up
wl out
wl channel
wl rateset 11b
wl up
wl txant 0
wl antdiv 0
wl nrate -r 1
wl counters
wl counters
The nrate and channel parameters above work like the parameters from the above transmit
scripts.
The wl counters command will output receive mode statistics. The rxdfrmocast statistic lists
the received frames, which is useful when connected to an external signal generator. Run the wl
counters command before and after sending external frames to the unit and calculate the
difference between the before and after rxdfrmocast number to get the number of received good
frames.

xPico®200 Certification Firmware Instructions 14
802.11 5Ghz Receive Mode Script
wl down
wl mpc 0
wl country ALL
wl band a
wl scansuppress 1
wl chanspec -c 159 -b 5 -w 40 -s 0
wl bi 65535
wl up
wl out
wl channel
wl up
wl txant 0
wl antdiv 0
wl nrate -m 7 -s 0
wl counters
The nrate, channel, and chanspec parameters above work like the parameters from the above
transmit scripts.
The wl counters command will output receive mode statistics. The rxdfrmocast statistic lists
the received frames, which is useful when connected to an external signal generator. Run the wl
counters command before and after sending external frames to the unit and calculate the
difference between the before and after rxdfrmocast number to get the number of received good
frames.

xPico®200 Certification Firmware Instructions 15
Bluetooth Continuous Mode Testing
The steps in http://www.cypress.com/file/298091/download describe how to run the Lantronix
xPico 200 Bluetooth continuous mode scripts. These scripts are based on the Cypress
mybluetool commands for the Cypress processor inside of the xPico 200 module.
Running the BT Test Modes
To run the BT Test Modes, follow these steps:
1. Follow the instructions for each type of test in the Cypress document at
http://www.cypress.com/file/298091/download
2. Load the continuous mode firmware as described in the Continuous Mode Software Load
section.
3. Once the firmware is loaded, run the bt_hci_reset command twice. The second time this
command is run, it should respond with SUCCESS.
4. After the reset command run the bt_download_firwmare command.
5. Table 1 lists the remaining BT commands and syntax. The equivalent commands from
the Cypress document are included.
Note: There are slight differences between the Cypress document command and the
Lantronix command.

xPico®200 Certification Firmware Instructions 16
Table 1: BT Test Commands
BT Test Command
Description
bt_hci_reset
Cypress equivalent command
mbt reset
This command resets the BT device on the module.
Run this prior to running any other certification test.
This can also be used to stop any of the running BT
tests.
bt_download_firmware
Run this command prior to any of the tests below to
load the BT test firmware into the radio.
bt_le_rx_test <rx_channel>
Cypress equivalent command
mbt le_receiver_test
This command runs the LE receiver test.
rx_channel = receive frequency minus 2402 divided
by 2.
Acceptable channels are 0 to 39 where 0 is
2402Mhz and 39 is 2480 Mhz.
bt_le_tx_test <tx_channel>
<data_length> <data_pattern>
Cypress equivalent command
mbt le_transmitter_test
This command runs the LE transmit test.
tx_channel = receive frequency minus 2402 divided
by 2.
Acceptable channels are 0 to 39 where 0 is 2402
Mhz and 39 is 2480 Mhz.
Data_length can be from 0 to 37.
Data_pattern can be from 0 to 7.
Data Pattern Definitions
0: Pseudo-random bit sequence 9
1: Pattern of alternating bits: 11110000
2: Pattern of alternating bits: 10101010
3: Pseudo-random bit sequence 15
4: Pattern of all 1s
5: Pattern of all 0s
6: Pattern of alternating bits: 00001111
7: Pattern of alternating bits: 0101
bt_le_test_end
Cypress equivalent command
mbt le_test_end
The LE test end script stops the LE transmitter or
LE receiver tests.

xPico®200 Certification Firmware Instructions 17
BT Test Command
Description
bt_set_tx_frequency_arm <carrier
On/Off> <tx_frequency> <tx_mode>
<tx_modulation_type> <tx_power>
Cypress equivalent command
mbt tx_frequency_arm
This test turns on or off the transmitter carrier.
carrier on/off:
1: carrier on
0: carrier off
tx_frequency can be from 2402 MHz to 2480 MHz
tx_mode selects unmodulated or modulated with
pattern
0: Unmodulated
1: PRBS9
2: PRBS15
3: All Zeros
4: All Ones
5: Incrementing Symbols
tx_modulation_type selects 1 Mbps, 2 Mbps, or
3 Mbps modulation. This is ignored if mode is
unmodulated.
0: GFSK
1: QPSK
2: 8PSK
3: LE
tx_power can be from –25 dBm to +3 dBm
bt_receive_only <rx_frequency>
Cypress equivalent command
mbt receive_only
This test instructs the BT radio to receive on a
specific frequency.
Rx_frequency can be from 2402 to 2480.

xPico®200 Certification Firmware Instructions 18
BT Test Command
Description
bt_radio_tx_test <bd_addr>
<frequency> <modulation_type>
<logical_channel> <bb_packet_type>
<packet_length> <tx_power>
Cypress equivalent command
mbt radio_tx_test
This command runs the connectionless transmitter
test.
bd_addr is the BD_ADDR of Tx device (6 bytes), for
example 00112233445566.
Frequency can be set to 0 to use a normal
Bluetooth hopping sequence or from 2402 MHz to
2480 MHz to transmit on a specified frequency
without hopping.
modulation_type sets the data pattern.
0: 0x00 8-bit Pattern
1: 0xFF 8-bit Pattern
2: 0xAA 8-bit Pattern
3: 0xF0 8-bit Pattern
4: PRBS9 Pattern
logical_channel sets logical channel to Basic Rate
(BR) or Enhanced Data Rate (EDR) for ACL
packets.
0: EDR
1: BR
bb_packet_type sets the baseband packet type to
use.
3: DM1
4: DH1/2-DH1
8: 3-DH1
10: DM3/2-DH3
11: DH3/3-DH3
14: DM5/2-DH5
15: DH5/3-DH5
packet_length can be from 0 to 65535. The device
will limit the maximum packet length based on the
baseband packet type. For example, if DM1
packets are sent, the maximum packet size is 17
bytes.
tx_power can be from –25 dBm to +3 dBm.

xPico®200 Certification Firmware Instructions 19
BT Test Command
Description
bt_radio_rx_test <bd_addr>
<frequency> <modulation_type>
<logical_channel> <bb_packet_type>
< packet_length> <test duration>
Cypress equivalent command
mbt radio_rx_test
This test sets the BT radio to receive on a specific
frequency and sends reports about received
packets.
bd_addr is the BD_ADDR for the remote Tx device
(6 bytes).
Frequency sets the frequency used to listen from
2402 MHz to 2480 MHz.
modulation_type sets the data pattern to compare
received data.
0: 0x00 8-bit pattern
1: 0xFF 8-bit pattern
2: 0xAA 8-bit pattern
3: 0xF0 8-bit pattern
4: PRBS9 pattern
logical_channel sets the logical channel to BR or
EDR for ACL packets.
0: EDR
1: BR
bb_packet_type sets the packet type of the
expected packets.
3: DM1
4: DH1/2-DH1
8: 3-DH1
10: DM3/ 2-DH3
11: DH3/3-DH3
14: DM5/2-DH5
15: DH5/3-DH5
packet_length can be from 0 to 65535. The device
compares the length of the received packets with
the specified packet_length.
Test duration is the time in seconds from 1 to 200
to run the test.

xPico®200 Certification Firmware Instructions 20
BT Test Command
Description
bt_le_enhanced_tx_test <tx_channel>
<data_length> <data_pattern> <PHY>
Cypress equivalent command
mbt le_enhanced_transmitter_test
This command runs the enhanced LE transmit test.
tx_channel = receive frequency minus 2402 divided
by 2.
Acceptable channels are 0 to 39 where 0 is 2402
Mhz and 39 is 2480 Mhz.
Data_length acceptable values are 0 to 37.
Data_pattern acceptable values are 0 to 7.
Data Pattern Definitions
0: Pseudo-random bit sequence 9
1: Pattern of alternating bits: 11110000
2: Pattern of alternating bits: 10101010
3: Pseudo-random bit sequence 15
4: Pattern of all 1s
5: Pattern of all 0s
6: Pattern of alternating bits: 00001111
7: Pattern of alternating bits: 0101
PHY: (1 - 2)
1: Transmitter set to transmit data at 1Ms/s.
2: Transmitter set to transmit data at 2Ms/s.
bt_le_enhanced_rx_test <rx_channel>
<PHY> <modulation_index>
Cypress equivalent command
mbt le_enhanced_receiver_test
This command runs the enhanced LE receiver test.
rx_channel = receive frequency minus 2402 divided
by 2.
Acceptable channels are 0 to 39 where 0 is
2402Mhz and 39 is 2480 Mhz.
PHY: (1 - 2)
1: Transmitter set to transmit data at 1Ms/s
2: Transmitter set to transmit data at 2Ms/s
modulation_index: (1 - 2)
1: Assume transmitter will have a standard
modulation index.
2: Assume transmitter will have a stable modulation
index.
Other manuals for xPico 200 Series
2
Table of contents