USER GUIDE. Wireless Production Test Reference Protocol Specification Document. Atmel MCU Wireless. Description

Similar documents
Hardware Prerequisites Atmel Xplained Pro Evaluation Kit Atmel WINC1500 extension USB Micro Cable (TypeA / MicroB)

APPLICATION NOTE. AT03324: Atmel REB212BSMA-EK Quick Start Guide. Atmel MCU Wireless. Introduction

APPLICATION NOTE. Atmel AVR2131: Lightweight Mesh Getting Started Guide. Atmel MCU Wireless. Features. Description

APPLICATION NOTE. Atmel AT03304: SAM D20 I 2 C Slave Bootloader SAM D20. Description. Features

APPLICATION NOTE. Atmel AVR1638: XMEGA RTC Calibration. 8-bit Atmel Microcontrollers. Features. Introduction

APPLICATION NOTE. Atmel AT01080: XMEGA E Schematic Checklist. Atmel AVR XMEGA E. Features. Introduction

APPLICATION NOTE. Atmel AT03160: Migrating Bootloader from ATxmega128A1 to other Atmel XMEGA Devices. Atmel AVR XMEGA. Features.

Atmel AVR1619: XMEGA-B1 Xplained Demonstration. 8-bit Atmel Microcontrollers. Application Note. Features. 1 Introduction

Atmel AVR32847: Migration from/to the UC3L0 64/32/16 from/to the UC3L0 256/ bit Atmel Microcontrollers. Application Note.

APPLICATION NOTE. Atmel AT02260: Driving AT42QT1085. Atmel QTouch. Features. Description

APPLICATION NOTE. Atmel AVR3009: Driving QTouch Device with I 2 C Interface. Atmel QTouch. Introduction

Section 5 SERCOM. Tasks SPI. In this section you will learn:

APPLICATION NOTE. Atmel AVR057: Internal RC Oscillator Calibration for ATtiny4/5/9/10/20/40. 8-bit Atmel Microcontrollers. Features.

APPLICATION NOTE. Atmel AVR536: Migration from ATmega644 to ATmega644A. 8-bit Atmel Microcontrollers. Introduction

OLED display with pixels resolution Ambient light sensor CPU load Analog filter Quadrature Encoder with push button Digital I/O

Atmel QT600 Quick Start Guide Touch Solutions

AVR1518: XMEGA-A1 Xplained Training - XMEGA Clock System. 8-bit Atmel Microcontrollers. Application Note. Prerequisites.

STK521. User Guide B AVR 01/12

Atmel ATMXT143E touchscreen controller Capacitive touch ITO 320 x 240 pixel LCD display with SPI interface LED backlight

Atmel LF-RFID Kit Comparison Chart. Application Note. Atmel LF-RFID Kit Comparison Chart. 1. Description

APPLICATION NOTE. Atmel AT03782: Using Low Power Modes in SAM4N Microcontroller. Atmel 32-bit Microcontroller. Features.

Atmel AT697F. Rad-Hard 32-bit SPARC v8 Processor ERRATA SHEET. Active Errata List

Atmel AVR ATxmega384C3 microcontroller OLED display with 128x32 pixels resolution Analog sensors. Ambient light sensor Temperature sensor

USER GUIDE. ZigBit USB Stick User Guide. Introduction

APPLICATION NOTE. Atmel AVR116: Wear Leveling on DataFlash. 32-bit Atmel Microcontrollers. Features. Description. Wear leveling

Atmel CryptoAuthentication Starter Kit

AVR4018: Inertial Two (ATAVRSBIN2) Hardware User's Guide. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

32Kbytes on-chip SRAM. Viterbi decoding and CRC PRIME compliant 128-bit AES encryption Channel sensing and collision pre-detection

Atmel AT697F. Rad-Hard 32-bit SPARC v8 Processor ERRATA SHEET. Active Errata List

USER GUIDE EDBG. Description

OLED display Sensors readout. Light sensor Temperature sensor

AVR42789: Writing to Flash on the New tinyavr Platform Using Assembly

AVR1503: Xplain training - XMEGA Programmable Multi Interrupt Controller 8-bit Microcontrollers Application Note Prerequisites

AVR1922: Xplain Board Controller Firmware 8-bit Microcontrollers Application Note Features 1 Introduction

EDBG. Description. Programmers and Debuggers USER GUIDE

AT03975: Getting Started with SAM L21. Descripton. Features. SMART ARM-Based Microcontroller APPLICATION NOTE

Atmel AVR1924: XMEGA-A1 Xplained Hardware User's Guide. 8-bit Atmel Microcontrollers. Application Note. Preliminary. Features.

AVR32917: picopower Board getting started. 32-bit Microcontrollers. Application Note. Preliminary. Features. 1 Introduction

Getting Started with the SAM4L-EK Demo

a clock signal and a bi-directional data signal (SCL, SDA)

Native route discovery algorithm

Atmel AVR1926: XMEGA-B1 Xplained Getting Started Guide. 8-bit Atmel Microcontrollers. Application Note. Features. 1 Introduction

One-channel Toggle-mode Touch Sensor IC with Power Management Functions AT42QT1012. Summary

AT60142H/HT. Rad-Hard 512Kx8 Very Low Power CMOS SRAM ERRATA-SHEET. Active Errata List. Errata History. Abbreviations. 1.

Atmel AVR ATxmega384C3 microcontroller OLED display with pixels resolution Analog sensors. Ambient light sensor Temperature sensor

Atmel AT32UC3A3256 microcontroller 64MBit SDRAM Analog input (to ADC) Temperature sensor RC filter

Atmel AVR473: ATAVRSB202 Hardware User Guide. 8-bit Atmel Microcontrollers. Application Note. Features. 1 Introduction

Ethernet1 Xplained Pro

AVR32752: Using the AVR32 UC3 Static Memory Controller. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR532: Migration from ATmega48/88/168 to ATmega48A/88A/168A. 8-bit Microcontrollers. Application Note. 1 Introduction

AVR1315: Accessing the XMEGA EEPROM. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR1501: Xplain training XMEGA Timer/Counter 8-bit Microcontrollers Application Note Prerequisites 1 Introduction

ATZB-SAMR21-XPRO. Preface. SmartConnect USER GUIDE

AVR134: Real Time Clock (RTC) Using the Asynchronous Timer. Features. Introduction. AVR 8-bit Microcontrollers APPLICATION NOTE

ATAES132A Firmware Development Library. Introduction. Features. Atmel CryptoAuthentication USER GUIDE

AVR1303: Use and configuration of IR communication module. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

USER GUIDE. Atmel Segment LCD1 Xplained Pro. Preface

AT06467: Getting started with SAM D09/D10/D11. Features. Description. SMART ARM-based Microcontrollers APPLICATION NOTE

Smart RF Device Family - Getting Started Guide. Features. Description. References ATAN0115 APPLICATION NOTE

AVR1512: XMEGA-A1 Xplained training - XMEGA Basics. 8-bit Atmel Microcontrollers. Application Note. Prerequisites. 1 Introduction

8-bit Microcontroller with 16K Bytes In-System Programmable Flash. ATtiny87 ATtiny167 Automotive

AVR1508: Xplain training - XMEGA DAC 8-bit Microcontrollers Application Note Features 1 Introduction

APPLICATION NOTE. AT6486: Using DIVAS on SAMC Microcontroller. SMART ARM-Based Microcontroller. Introduction. Features

Asynchronous SRAM Operating Voltage: 5V Read Access Time: 40 ns Write Cycle Time: 30 ns Very Low Power Consumption (Pre-RAD)

USER GUIDE. Atmel QT1 Xplained Pro. Preface

QT2 Xplained Pro. Preface. Atmel QTouch USER GUIDE

USER GUIDE. Atmel OLED1 Xplained Pro. Preface

USER GUIDE. ATWINC1500 Xplained Pro. Preface

WINC1500 Software. Release Notes VERSION : DATE : JULY Abstract

AT697E. Application Note. Checking AT697E Code for Occurrence of LDF/FPOPd Instructions Sequence with a dependency on an Odd-Numbered Register

QT3 Xplained Pro. Preface. Atmel QTouch USER GUIDE

8-megabyte, 4-megabyte, and 2-megabyte 2.7-volt Only DataFlash Cards AT45DCB008D AT45DCB004D AT45DCB002D. Not Recommended for New Design

Non Volatile Rad Hard Reprogrammable FPGA. ATF280 SRAM-based FPGA AT69170 Serial EEPROM. 2x SRAM-based FPGA designed for Space use - ATF280

APPLICATION NOTE. AT11008: Migration from ATxmega16D4/32D4 Revision E to Revision I. Atmel AVR XMEGA. Introduction. Features

AVR32901: EVKLCD100/EVKLCD101 Hardware User's Guide. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR42772: Data Logger Demo Application on XMEGA A1U Xplained Pro. Introduction. Features. AVR XMEGA Microcontrollers APPLICATION NOTE

USER GUIDE. Atmel QT6 Xplained Pro. Preface

APPLICATION NOTE. Atmel QT4 Xplained Pro User Guide ATAN0114. Preface

AVR097: Migration between ATmega128 and ATmega1281/ATmega bit Microcontrollers. Application Note. Features. 1 Introduction

AT91 ARM Thumb Microcontrollers. Application Note. Using the ECC Controller on AT91SAM9260/9263 and AT91SAM7SE Microcontrollers. 1.

I/O1 Xplained Pro. Preface. Atmel MCUs USER GUIDE

AT09381: SAM D - Debugging Watchdog Timer Reset. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE

ATECC108/ATSHA204 USER GUIDE. Atmel Firmware Library. Features. Introduction

QTouch 8-key Touch Sensor IC AT42QT1085. Summary

USER GUIDE. Atmel PROTO1 Xplained Pro. Preface

AVR based 125kHz RFID Evaluation Kit (Re)Programming Guide ATA2270-EK1. Overview. Fuse Settings: ISP Programming

APPLICATION NOTE. AT03498: Low Power Modes in SAM3 Family. Atmel AT91 ARM Cortex Microcontrollers. Introduction

AVR32401: AVR32 AP7 Linux Interfacing DataFlash. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AT11512: SAM L Brown Out Detector (BOD) Driver. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE

CAN Microcontrollers. Application Note. Migrating from T89C51CC01 to AT89C51CC03. Feature Comparison

USER GUIDE. ATmega168 Xplained Mini User Guide. Introduction

APPLICATION NOTE. CryptoAuthentication Personalization Guide. ATSHA204A and ATECC508A. Introduction. Features

32Kbytes on-chip SRAM Up to 256Kbytes external SRAM

Embedded AVR Microcontroller Including RF Transmitter and Immobilizer LF Functionality for Remote Keyless Entry ATA5795. Summary.

CAN, 80C51, AVR, Microcontroller. Application Note

ED1021 I/O Expander with UART interface & analog inputs

AT88CK101 HARDWARE USER GUIDE. Atmel CryptoAuthentication Development Kit. Atmel CryptoAuthentication AT88CK101 Daughterboard

8-bit Microcontroller. Application Note. AVR320: Software SPI Master

ATDH2200E Programming Kit... User Guide

AT21CS Series Reset and Discovery. Introduction. Serial EEPROM APPLICATION NOTE

Transcription:

USER GUIDE Wireless Production Test Reference Protocol Specification Document Atmel MCU Wireless Description This document explains the serial protocol used for communication between various blocks of the Wireless Production Test Reference setup. This setup is targeted to run production tests on Atmel Wireless devices.

Table of Contents 1. Terms and Abbreviations... 3 2. Document Overview... 3 3. Protocol Format... 3 3.1 Messages for Communication between Test PC (pdt_runner) and ATmega256RFR2 Xplained PRO... 4 3.2 Messages for Communication between Test PC (pdt_runner) and ZigBit USB10 3.3 Messages for Communication between ATmega256RFR2 Xplained PRO and DUT Containing MCU+Transceiver or SoC... 12 3.4 Messages for Communication between ATmega256RFR2 Xplained PRO and ATmega1284P of Production XPRO... 15 4. Error Codes... 19 5. Example Test Sequence... 20 6. Reference... 20 7. Revision History... 21 2

1. Terms and Abbreviations DUT: Device Under Test. SoC: System on Chip. 2. Document Overview The following sections explain the protocol used for communication between various blocks in a typical WPTR production system such as: TEST PC Command Line Tool: pdt_runner.exe ATmega256RFR2 Xplained PRO Production XPRO containing: ATmega1284P DUT ZigBit USB Stick: ATZB-X-233-USB ATZB-X-212B-USB 3. Protocol Format WPTR uses a common message format for all the communications in the test setup, similar to Atmel Performance Analyzer protocol. Between Test PC and ATmega256RFR2-XPRO Between Test PC and ZigBit USB Between ATmega256RFR2-XPRO and DUT Between ATmega256RFR2-XPRO and ATmega1284P (on Production XPRO) RX/TX message format: SOT Msg. length Protocol ID Msg. ID Msg. payload EOT (1 byte) (1 byte) (1 byte) (1 byte) (Msg. length 2) bytes (1 byte) The details of message format are as below: Field Size Values Description SOT 1 byte 0x01 Start of the Transmission Msg. length 1 byte 0-255 Length of the message including Protocol ID, Msg. ID and Msg. Payload Protocol ID 1 byte 0x00-0xFF Protocol usage based on the Application for WPTR 0xF0 Msg. ID 1 byte 0x00-0xFF Identification of Message Msg. payload (Msg. length 2) bytes Payload for the message. This does not includes Protocol ID and Msg. ID EOT 1 byte 0x04 End of Transmission 3

3.1 Messages for Communication between Test PC (pdt_runner) and ATmega256RFR2 Xplained PRO FIXTURE_STATUS_REQ: Message used to request the status of Test Fixture s Lid, if it is open or close. Message ID: <0x51> FIXTURE_STATUS_CONFIRM: Message ID: <0x71> Fixture Status unsigned integer / 1 byte 0x00-0xFF 0x00- FIXTURE OPEN 0x01- FIXTURE CLOSE PWRM_REQ: Message used to read the registers of current sensor, INA226. Message ID: <0x52> PWRM_CONFIRM: Message ID: <0x72> Bus Voltage 2 byte 0x0000-0xFFFF Bus voltage measurement data. Actual bus Voltage = 1.25mV * value Shunt Voltage 2 byte 0x0000-0xFFFF Shunt voltage measurement data. Actual Shunt Voltage = 2.5µV * value Current Measured 2 byte 0x0000-0xFFFF Current measured value with MSB first, Actual Current = (value * 100)µA Power 2 byte 0x0000-0xFFFF Power delivered to load= 2.5mW * value Calib. 2 byte 0x0000-0xFFFF Calibration register Mask Enable 2 byte 0x0000-0xFFFF Alert configuration For more details of these parameters refer to INA226 datasheets. 4

PWR_STATUS_REQ: Message used to check if the DUT caused an over current. If return value is failure, the power supply for the DUT was automatically stopped. Message ID: <0x53> PWR_STATUS_CONFIRM: Message ID: <0x73> DUT Power Status unsigned integer / 1 byte 0x00-0xFF 0x00- DUT Powered On 0x01- Over Current by DUT PWRC_REQ: Message used to clear the over current protection and switch the DUT off. Message ID: <0x54> Note: It is not possible to switch on a DUT, when the error bit is set. It s recommended to clear the bit, before switch on the DUT. PWRC_CONFIRM: Message ID: <0x74> XPRO_FIRMWARE_VERSION_REQ: Message used to get the firmware version of the ATmega256RFR2 Xplained PRO Firmware. Message ID: <0x55> 5

XPRO_FIRMWARE_VERSION_CONFIRM Message ID: <0x75> FW Version unsigned integer / 1 byte 0x00-0xFF Firmware version PWR_REQ Message used to enable the power to the DUT. Message ID: <0x56> PWR_CONFIRM: Message ID: <0x76> ZBDUT_REQ: Message used to indicate the type of DUT to the Xplained PRO. Message ID: <0x57> Type of DUT unsigned integer / 1 byte 0x00-0xFF 0x01: SOC DUT 0x02: 2.4 GHz Transceiver 0x03: Sub GHz Transceiver ZBDUT_CONFIRM: Message ID: <0x77> 6

GPIOTEST_REQ: Message used to run the GPIO Test involving Pin Short Test and Continuity test on required pins. The command is implemented only in case of DUT containing MCU+ Transceivers or SoC. Message ID: <0x58> GPIOTEST_CONFIRM: Message ID: <0x78> String unsigned char ASCII Characters Gives the pins shorted. First byte gives the number of char in the string HWTEST_REQ: Message used to run the UART, TWI, and 32kHz tests in case of DUTs containing MCU+Transceiver or SoC. Message ID: <0x59> HWTEST_CONFIRM: Message ID: <0x79> Test ID unsigned integer / 1 byte 0x00-0xFF 0x00: SUCCESS 0x01: UART Test failed 0x02: TWI Test failed 0x04: 32kHz Crystal Test failed 7

XTALCALIB_REQ: Message used to run the Crystal Calibration using ATmega1284P and DUT. The DUT should generate a 4MHz clock output to the ATmega1284P. Message ID: <0x5A> XTALCALIB_CONFIRM: Message ID: <0x7A> XTAL_TRIM_VALUE unsigned integer / 1 byte 0x00-0x0F XTAL_TRIM value after calibration FREQUENCY Unsigned integer/4 bytes 0x00000000 0xFFFFFFFF Actual frequency = value * Calibration Trim Factor measured. By default Trim Factor = 1.000065 RF_PARAM_REQ: Message used to set the transmit power level and the operating channel of the transceiver for RF Tests. Message ID: <0x5B> POWER unsigned integer / 1 byte 0x00-0xFF Set the Transmit Power level CHANNEL unsigned integer / 1 byte 0x00-0xFF Set the Transceiver Channel RF_PARAM_CONFIRM: Message ID: <0x7B> 8

RFTEST_REQ: Message used to start the RF Transmission Test. Message ID: <0x5C> RFTEST_CONFIRM: Message ID: <0x7C> TX_RSSI_VALUE unsigned integer / 1 byte 0x00-0x54 PHY_ED_LEVEL register value from ZigBit USB indicating TX level RX_RSSI_VALUE unsigned integer / 1 byte 0x00-0x54 PHY_ED_LEVEL register value from DUT indicating reception REGISTER_WRITE_REQ: Message used to write the given Transceiver Register Address with the given Parameter value. Message ID: <0x5D> REG_ADDR unsigned integer / 2 byte 0x0000-0xFFFF Register Address to be written REG_VALUE unsigned integer / 1 byte 0x00-0xFF Parameter Value to be written REGISTER_WRITE_CONFIRM: Message ID: <0x7D> REG_ADDR unsigned integer / 2 byte 0x0000-0xFFFF Register Address written REG_VALUE unsigned integer / 1 byte 0x00-0xFF Parameter Value read back from DUT REGISTER_READ_REQ: Message used to read the given Transceiver Register Address. Message ID: <0x5E> REG_ADDR unsigned long / 2 byte 0x0000-0xFFFF Register Address to be read 9

REGISTER_READ_CONFIRM: Message ID: <0x7E> REG_ADDR unsigned long / 2 byte 0x0000-0xFFFF Register Address read REG_VALUE unsigned integer / 1 byte 0x00-0xFF Parameter Value read back from DUT CRYSTAL_FREQ_READ_REQ: Message used to measure the frequency of the signal given as input to CLKO pin of the Production XPRO board. Message ID: <0x5F> CRYSTAL_FREQ_READ_REQ: Message ID: <0x7F> Crystal frequency unsigned integer / 4 byte 0x00000000-0xFFFFFFFF Actual frequency = Calibration Trim Factor * value. Default calibration trim factor = 1.000065 3.2 Messages for Communication between Test PC (pdt_runner) and ZigBit USB ZIGBITUSB_RF_PARAM_REQ: Message used to set the Transmit Power level and the channel of operation in the ZigBit USB used for RF Test. Message ID: <0x5B> POWER unsigned integer / 1 byte 0x00-0xFF Set the Transmit Power level CHANNEL unsigned integer / 1 byte 0x00-0xFF Set the Transceiver Channel ZIGBITUSB_RF_PARAM_CONFIRM: Message ID: <0x7B> 10

ZIGBITUSB_RFTEST_REQ: Message used to put ZigBit USB to receive mode in a particular channel. Message ID: <0x5C> ZIGBITUSB_RFTEST_CONFIRM: Message ID: <0x7C> ZIGBITUSB_REGISTER_WRITE_REQ: Message used to write to the ZigBit Transceiver Register with the given value. Message ID: <0x5D> REG_ADDR unsigned integer / 2 byte 0x0000-0xFFFF Register Address to be written REG_VALUE unsigned integer / 1 byte 0x00-0xFF Parameter Value to be written ZIGBITUSB_REGISTER_WRITE_CONFIRM: Message ID: <0x7D> REG_ADDR unsigned integer / 2 byte 0x0000-0xFFFF Register Address written REG_VALUE unsigned integer / 1 byte 0x00-0xFF Parameter Value read back ZIGBITUSB_REGISTER_READ_REQ: Read the transceiver register value. Message ID: <0x5E> REG_ADDR unsigned integer / 2 byte 0x0000-0xFFFF Register Address to be read 11

ZIGBITUSB_REGISTER_READ_CONFIRM: Message ID: <0x7E> REG_ADDR unsigned integer / 2 byte 0x0000-0xFFFF Register Address to be read REG_VALUE unsigned integer / 1 byte 0x00-0xFF Parameter Value read back ZIGBITUSB_INFO_REQ: Message used to check whether the ZigBit USB is of correct part number. Message ID: <0x5F> ZIGBITUSB_INFO_CONFIRM: Message ID: <0x7F> DUT_PART_NUM BER unsigned integer / 1 byte 0x00-0xFF PART_NUM register value from Transceiver 3.3 Messages for Communication between ATmega256RFR2 Xplained PRO and DUT Containing MCU+Transceiver or SoC RUN_LOOPTEST_REQ: Message used to run the GPIO Test involving Pin Short Test and Continuity test on required pins. Message ID: <0x01> 12

RUN_LOOPTEST_CONFIRM: Message ID: <0x11> Pin Combination Unsigned char[n] ASCII Characters String giving the pin shorted. First byte gives the number of char in the string START_PERF_TEST_REQ: Message used to start the RF Transmission Test. Message ID: <0x02> START_PERF_TEST_CONFIRM: Message ID: <0x12> TX_RSSI_VALUE unsigned integer / 1 byte 0x00-0x54 PHY_ED_LEVEL register value from ZigBit USB indicating TX RSSI RX_RSSI_VALUE unsigned integer / 1 byte 0x00-0x54 PHY_ED_LEVEL register value from DUT indicating RX RSSI RUN_HWTEST_REQ: Message used to run the UART, TWI, and 32kHz tests in case of DUTs containing MCU+Transceiver or SoC. Message ID: <0x03> RUN_HWTEST_CONFIRM: Message ID: <0x13> Status unsigned integer / 1 byte 0x00-0xFF 0x00: SUCCESS 0x01: FAILURE 13

SET_RFPARAM_REQ: Message used to set the transmit power level and the operating channel of the transceiver for RF Tests. Message ID: <0x04> POWER unsigned integer / 1 byte 0x00-0xFF Set the Transmit Power level CHANNEL unsigned integer / 1 byte 0x00-0xFF Set the Transceiver Channel SET_RFPARAM_CONFIRM: Message ID: <0x14> CRYSTAL_CALIB_REQ: Message used to set the XTAL TRIM value of DUT. Message ID: <0x05> XTAL Trim unsigned integer / 1 byte 0x00-0xFF XTAL TRIM to be assigned; Allowed values depends on DUT. Usually from 0x00-0x0F CRYSTAL_CALIB_CONFIRM: Message ID: <0x15> REG_WRITE_REQ: Message used to write the given Transceiver Register Address with the given Parameter value. Message ID: <0x06> REG_ADDR unsigned integer / 2 byte 0x0000-0xFFFF Register Address to be written REG_VALUE unsigned integer / 1 byte 0x00-0xFF Parameter Value to be written 14

REG_WRITE_CONFIRM: Message ID: <0x16> REG_ADDR unsigned integer / 2 byte 0x0000-0xFFFF Register Address written REG_VALUE unsigned integer / 1 byte 0x00-0xFF Parameter Value read back from DUT REG_READ_REQ: Message used to read the given Transceiver Register Address. Message ID: <0x07> REG_ADDR unsigned integer / 2 byte 0x0000-0xFFFF Register Address to be read REGISTER_READ_CONFIRM: Message ID: <0x17> REG_ADDR unsigned integer / 2 byte 0x0000-0xFFFF Register Address read REG_VALUE unsigned integer / 1 byte 0x00-0xFF Parameter Value read back from DUT 3.4 Messages for Communication between ATmega256RFR2 Xplained PRO and ATmega1284P of Production XPRO CURRENT_CONSUMPTION_REQ: Message used to read the registers of current sensor, INA226 from ATmega1284P. Message ID: <0x08> 15

CURRENT_CONSUMPTION_CONFIRM: Message ID: <0x18> Status unsigned integer / 1 byte 0x0000-0xFFFF 0x00- SUCCESS Bus Voltage 2 byte 0x0000-0xFFFF Bus voltage measurement data. Actual bus Voltage = 1.25mV * value Shunt Voltage 2 byte 0x0000-0xFFFF Shunt voltage measurement data. Actual Shunt Voltage = 2.5µV * value Current Measured 2 byte 0x0000-0xFFFF Current measured value with MSB first, Actual Current = (value * 100)µA Power 2 byte 0x0000-0xFFFF Power delivered to load= 2.5mW * value Calib. 2 byte 0x0000-0xFFFF Calibration register Mask Enable 2 byte 0x0000-0xFFFF Alert configuration ENABLE_DUTPWR_REQ: Message ID: <0x09> Message used to enable the DUT Power from ATmega1284P: ENABLE_DUTPWR_CONFIRM: Message ID: <0x19> RUN_CRYSTAL_CALIB_REQ: Xplained PRO commands the ATmega1284P to run the crystal calibration routine. ATmega1284P runs the calibration routine, chooses an appropriate XTAL TRIM value and responds back. This XTAL TRIM value is then used to change the XOSC_CTRL in DUT. Message ID: <0x0A> 16

RUN_CRYSTAL_CALIB_CONFIRM: Message ID: <0x1A> XTAL_TRIM unsigned integer / 1 byte 0x00-0xFF XTAL Trim value to be assigned to DUT next START_CRYSTAL_CALIB_REQ: Message used to command ATmega1284P to initialize for calibration. Message ID: <0x0B> START_CRYSTAL_CALIB_CONFIRM: Message ID: <0x1B> READ_CRYSTAL_FREQ_REQ: Message used to read the frequency of the clock signal given to CLKO pin of Production XPRO. Message ID: <0x0C> READ_CRYSTAL_FREQ_CONFIRM: Message ID: <0x1C> Crystal frequency unsigned integer / 4 byte 0x00000000-0xFFFFFFFF Actual frequency = Calibration Trim Factor * value. Default calibration trim factor = 1.000065 17

READ_FREQ_CALIB_REQ: Message used to read the crystal calibration results from ATmega1284P of Production XPRO. Message ID: <0x0D> READ_FREQ_CALIB_CONFIRM: Message ID: <0x1D> XTAL_TRIM_VALUE unsigned integer / 1 byte 0x00-0x0F XTAL_TRIM register value after calibration FREQUENCY Unsigned integer/4 bytes 0x00000000 0xFFFFFFFF Actual frequency = value * Calibration Trim Factor measured. Default Trim factor = 1.000065 CLEAR_POWER_ERROR_FLAG_REQ: Message used to clear the error flag due to over current of DUT in ATmega1284P. It also switches the DUT to OFF state. Message ID: <0x0E> CLEAR_POWER_ERROR_FLAG_CONFIRM: Message ID: <0x1E> GET_JIG_STATUS_REQ: Message used to get the status of the fixture lid from the ATmega1284P. Message ID: <0x0F> 18

GET_JIG_STATUS_CONFIRM: Message ID: <0x1F> Status unsigned integer / 1 byte 0x00-0x01 0x00- SUCCESS Fixture Status unsigned integer / 1 byte 0x00-0x01 0x00- FIXTURE OPEN 0x01- FIXTURE CLOSE GET_POWER_ERROR_FLAG_REQ: Message used to get DUT power status from ATmega1284P. Message ID: <0x10> GET_POWER_ERROR_FLAG_CONFIRM: Message ID: <0x20> DUT Power Status unsigned integer / 1 byte 0x00-0xFF 0x00- DUT Powered On 0x01- Over Current by DUT 4. Error Codes Error code Value Description SUCCESS 0x00 Requested Operation has completed successfully FAILURE 0x01 Requested Operation has failed INVALID_CMD 0x02 Invalid Message ID INVALID_ARGUMENT 0x03 Arguments in the request command are wrong VALUE_OUT_OF_RANGE 0x04 Parameter value is out of range TRANSMISSION_FAILURE 0x05 Transmission to ZigBit USB has failed ERR_BAD_DATA 0xFC Data integrity check failed ERR_BUSY 0xF6 Power error flag is set 19

5. Example Test Sequence SI no. Test name Request to be executed Comments 1 Set DUT Type ZBDUT_REQ DUT type needs to be set before conducting any test 2 Enable DUT Power PWR_REQ Power to the DUT should be enabled before conducting the tests 3 Measure the current consumed PWRM_REQ Verify the current consumed by DUT 4 GPIO Test GPIOTEST_REQ Run pin short and continuity tests on the pins configured in DUT firmware 5 HW Test HWTEST_REQ Check UART, SPI, TWI, 32kHz crystal. Not implemented in DUTs containing only RF transceivers 6 Crystal calibration XTALCALIB_REQ Run the 16MHz crystal calibration. DUT should generate a 4MHz CLKO to Production XPRO 7 RF Test ZIGBITUSB_INFO_REQ ZIGBITUSB_RF_PARAM_REQ ZIGBITUSB_RFTEST_REQ RFTEST_REQ RF_PARAM_REQ Check the ZigBit USB. Configure channel and power in ZigBit USB and DUT. Conduct RF Test. Select the DUT based on the Tx and Rx RSSI values 6. Reference WPTR User Guide INA226 Current/Power Monitor: http://www.ti.com/lit/ds/sbos547/sbos547.pdf 20

7. Revision History Doc. Rev. Date Comments 42265A 03/2014 Initial document release 21

Atmel Corporation 1600 Technology Drive San Jose, CA 95110 USA Tel: (+1)(408) 441-0311 Fax: (+1)(408) 487-2600 www.atmel.com Atmel Asia Limited Unit 01-5 & 16, 19F BEA Tower, Millennium City 5 418 Kwun Tong Road Kwun Tong, Kowloon HONG KONG Tel: (+852) 2245-6100 Fax: (+852) 2722-1369 Atmel Munich GmbH Business Campus Parkring 4 D-85748 Garching b. Munich GERMANY Tel: (+49) 89-31970-0 Fax: (+49) 89-3194621 Atmel Japan G.K. 16F Shin-Osaki Kangyo Building 1-6-4 Osaki, Shinagawa-ku Tokyo 141-0032 JAPAN Tel: (+81)(3) 6417-0300 Fax: (+81)(3) 6417-0370 2014 Atmel Corporation. All rights reserved. / Rev.: Atmel, Atmel logo and combinations thereof, Enabling Unlimited Possibilities, ZigBit, and others are registered trademarks or trademarks of Atmel Corporation or its subsidiaries. Other terms and product names may be trademarks of others. Disclaimer: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN THE ATMEL TERMS AND CONDITIONS OF SALES LOCATED ON THE ATMEL WEBSITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS AND PROFITS, BUSINESS INTERRUPTION, OR LOSS OF INFORMATION) ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Atmel makes no representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to make changes to specifications and products descriptions at any time without notice. Atmel does not make any commitment to update the information contained herein. Unless specifically provided otherwise, Atmel products are not suitable for, and shall not be used in, automotive applications. Atmel products are not intended, authorized, or warranted for use as components in applications intended to support or sustain life.