2011-05-27 13:02:41 +03:00
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2011-05-18 20:25:54 +03:00
|
|
|
<HTML>
|
2011-05-27 13:02:41 +03:00
|
|
|
<TITLE>Production and testing: Functional test</TITLE>
|
|
|
|
<BODY bgcolor="#ffffff" link="#000000" vlink="#404040">
|
|
|
|
|
|
|
|
<INCLUDE file="style.inc">
|
|
|
|
|
|
|
|
<PAGE_BAR title="Production and testing">
|
|
|
|
<PAGE_ITEM href="setup.html">Software setup</PAGE_ITEM>
|
|
|
|
<PAGE_ITEM href="flash.html">Flashing</PAGE_ITEM>
|
|
|
|
<PAGE_CURR href="test.html">Functional test</PAGE_CURR>
|
|
|
|
<PAGE_ITEM href="analysis.html">Fault analysis</PAGE_ITEM>
|
|
|
|
</PAGE_BAR>
|
|
|
|
|
|
|
|
<SECTION_BAR>
|
|
|
|
<SECTION_ITEM href="#atben">atben setup</SECTION_ITEM>
|
|
|
|
<SECTION_ITEM href="#atusb">atusb setup</SECTION_ITEM>
|
|
|
|
<SECTION_ITEM href="#procedure">Test procedure</SECTION_ITEM>
|
|
|
|
</SECTION_BAR>
|
2011-05-18 20:25:54 +03:00
|
|
|
|
|
|
|
|
2011-05-18 20:43:45 +03:00
|
|
|
<!-- ====================================================================== -->
|
2011-05-18 20:25:54 +03:00
|
|
|
|
|
|
|
|
2011-05-27 13:02:41 +03:00
|
|
|
<SECTION ref="atben" title="Test setup for atben">
|
2011-05-18 20:25:54 +03:00
|
|
|
|
2011-05-27 01:42:57 +03:00
|
|
|
To test an <B>atben</B> board, place a reference <B>atusb</B> board into
|
2011-05-28 00:52:53 +03:00
|
|
|
the PC, insert the <B>atben</B> board into the Ben, and place both devices
|
|
|
|
at the same location and with the same orientation used when acquiring the
|
|
|
|
signal strength profile.
|
2011-05-18 20:25:54 +03:00
|
|
|
<P>
|
2011-05-29 16:37:17 +03:00
|
|
|
The two devices should be about 1 m apart. Their vicinity should be free
|
|
|
|
from obstructions and items that can reflect or absorb RF signals. Such
|
|
|
|
items include metal chairs and human bodies.
|
|
|
|
Location and orientation should
|
2011-05-28 19:19:45 +03:00
|
|
|
be easily reproducible, e.g., by marking the device's edges on the table
|
|
|
|
with tape. Other transmitters in the 2.4 GHz band will interfere with
|
|
|
|
measurements and should be kept as far away and as inactive as possible.
|
|
|
|
<P>
|
2011-05-18 20:25:54 +03:00
|
|
|
<IMG src="setup-A.png">
|
|
|
|
<P>
|
|
|
|
|
2011-05-18 20:43:45 +03:00
|
|
|
|
|
|
|
<!-- ====================================================================== -->
|
2011-05-18 20:25:54 +03:00
|
|
|
|
|
|
|
|
2011-05-27 13:02:41 +03:00
|
|
|
<SECTION ref="atusb" title="Test setup for atusb">
|
2011-05-18 20:25:54 +03:00
|
|
|
|
2011-05-28 00:52:53 +03:00
|
|
|
The test setup is the same as for <B>atben</B> testing, except that the
|
|
|
|
DUT and reference device roles are reversed.
|
2011-05-18 20:25:54 +03:00
|
|
|
<P>
|
|
|
|
<IMG src="setup-B.png">
|
|
|
|
<P>
|
|
|
|
|
2011-05-18 20:43:45 +03:00
|
|
|
|
|
|
|
<!-- ====================================================================== -->
|
2011-05-18 20:25:54 +03:00
|
|
|
|
|
|
|
|
2011-05-27 13:02:41 +03:00
|
|
|
<SECTION ref="procedure" title="Test procedure">
|
2011-05-18 20:25:54 +03:00
|
|
|
|
2011-05-29 16:37:17 +03:00
|
|
|
The test process is started from the directory <SAMP>ben-wpan/prod/</SAMP>
|
|
|
|
with
|
2011-05-27 01:42:57 +03:00
|
|
|
<PRE>
|
|
|
|
make ben
|
|
|
|
</PRE>
|
|
|
|
for an <B>atben</B> DUT and with
|
|
|
|
<PRE>
|
|
|
|
make usb
|
|
|
|
</PRE>
|
|
|
|
for an <B>atusb</B> DUT. It performs the following steps:
|
|
|
|
<UL>
|
|
|
|
<LI>Enumeration (<B>atusb</B> only)
|
|
|
|
<LI>LED (<B>atusb</B> only; not yet implemented)
|
|
|
|
<LI>GPIO scan (not yet implemented)
|
|
|
|
<LI>Identification
|
|
|
|
<LI>Crystal frequency (only implemented on <B>atben</B>)
|
|
|
|
<LI>Spectrum
|
|
|
|
<LI>Receive
|
|
|
|
<LI>Send
|
|
|
|
</UL>
|
|
|
|
|
|
|
|
Of these tests, only "LED" and "Spectrum" require operator input. The
|
|
|
|
other tests run without interaction.
|
|
|
|
<P>
|
|
|
|
The test scripts log the commands they execute and their output in the
|
2011-05-29 16:04:13 +03:00
|
|
|
file <SAMP>_log</SAMP>.
|
2011-05-27 01:42:57 +03:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ---------------------------------------------------------------------- -->
|
|
|
|
|
|
|
|
|
2011-05-27 13:02:41 +03:00
|
|
|
<SUBSECTION title="Enumeration (atusb only)">
|
2011-05-27 01:42:57 +03:00
|
|
|
|
|
|
|
The enumeration test verifies that the <B>atusb</B> board has been
|
|
|
|
identified by the PC's USB stack. If this test fails, the board may
|
|
|
|
not be plugged in correctly or it may be missing the firmware. A
|
|
|
|
board that has passed both stages of the firmware flashing process
|
|
|
|
should always pass the enumeration test.
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ---------------------------------------------------------------------- -->
|
|
|
|
|
|
|
|
|
2011-05-27 13:02:41 +03:00
|
|
|
<SUBSECTION title="LED (atusb only)">
|
2011-05-27 01:42:57 +03:00
|
|
|
|
|
|
|
@@@
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ---------------------------------------------------------------------- -->
|
|
|
|
|
|
|
|
|
2011-05-27 13:02:41 +03:00
|
|
|
<SUBSECTION title="GPIO scan">
|
2011-05-27 01:42:57 +03:00
|
|
|
|
|
|
|
@@@
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ---------------------------------------------------------------------- -->
|
|
|
|
|
|
|
|
|
2011-05-27 13:02:41 +03:00
|
|
|
<SUBSECTION title="Identification">
|
2011-05-27 01:42:57 +03:00
|
|
|
|
|
|
|
This test reads the transceiver's registers that contain values identifying
|
|
|
|
the manufacturer, the chip's part number, and the chip revision. If an
|
|
|
|
<B>atusb</B> board fails this test, this probably means that the MISO signal
|
|
|
|
between transceiver and the microcontroller has a problem.
|
|
|
|
<P>
|
|
|
|
On <B>atben</B>, failure may simply indicate an improperly
|
|
|
|
inserted board. Eject the board, re-insert, and try again. If the test
|
|
|
|
keeps on failing, this may indicate a problem with MOSI, MISO, nSEL,
|
|
|
|
SCLK, the power supply, the crystal oscillator, or possibly the position
|
|
|
|
of the transceiver chip.
|
|
|
|
<P>
|
|
|
|
Note: this test is meant as a higher level test. The GPIO test should
|
|
|
|
eventually provide more detailed results for problems with the SPI interface.
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ---------------------------------------------------------------------- -->
|
|
|
|
|
|
|
|
|
2011-05-27 13:02:41 +03:00
|
|
|
<SUBSECTION title="Crystal frequency (atben only)">
|
2011-05-27 01:42:57 +03:00
|
|
|
|
|
|
|
This test measures the frequency of the crystal oscillator in the DUT.
|
|
|
|
On <B>atben</B>, it does this by transmitting packets, and measuring
|
|
|
|
the time between the SLP_TR pulse that starts the transmission and the
|
|
|
|
interrupt signaling the end of the transmission.
|
|
|
|
<P>
|
|
|
|
If this test fails, this may indicate that the load capacitors of the
|
|
|
|
crystal are missing, badly soldered, or have the wrong value. It could
|
|
|
|
also mean that the crystal itself is defective. Another possible cause
|
|
|
|
of oscillator malfunction could be flux residues bridging traces.
|
|
|
|
<P>
|
|
|
|
The <A href="fault.html">fault analysis page</A> has more details on
|
|
|
|
testing the crystal oscillator.
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ---------------------------------------------------------------------- -->
|
|
|
|
|
|
|
|
|
2011-05-27 13:02:41 +03:00
|
|
|
<SUBSECTION title="Spectrum">
|
2011-05-27 01:42:57 +03:00
|
|
|
|
|
|
|
The spectrum test measures the reception of a signal sent from the
|
|
|
|
reference device to the DUT. It does this across the entire frequency
|
|
|
|
range in which the WPAN boards operate, allowing the detection of
|
|
|
|
frequency-dependent anomalies.
|
|
|
|
<P>
|
|
|
|
This test depends on numerous external factors, like the exact position
|
|
|
|
and orientation of the two devices with respect to each other, and the
|
2011-05-29 16:37:17 +03:00
|
|
|
presence of obstacles and conductive items (metal, people, etc.).
|
|
|
|
Because of the test's sensitivity
|
2011-05-27 01:42:57 +03:00
|
|
|
to environmental factors, the operator needs to decide when the result
|
|
|
|
represents a valid measurement and then confirm the result shown.
|
|
|
|
<P>
|
|
|
|
The image below shows the typical display during the spectrum test:
|
|
|
|
the white line is the measured signal strength. The red lines indicate
|
|
|
|
the minimum and maximum allowed values. The green circle in the upper
|
|
|
|
right corner indicates that the signal strength is within the limits.
|
|
|
|
A downward-pointing red triangle would indicate that the signal is too
|
|
|
|
weak, an upward-pointing yellow triangle would indicate that the signal
|
|
|
|
is too strong.
|
|
|
|
<P>
|
|
|
|
<A href="atrf-path.png"><IMG src="atrf-path-small.png"</A>
|
|
|
|
<P>
|
|
|
|
To finish the test, the operator must type either <B>P</B>, <B>F</B>,
|
|
|
|
or <B>Q</B> in the window shown. <B>P</B> means "pass" and can only be
|
|
|
|
entered if the measurement is within the limits. <B>F</B> means "fail"
|
|
|
|
and can only be entered if the measurements is outside the limits.
|
|
|
|
<B>Q</B>, quit, can be entered at any time and also fails the test.
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ---------------------------------------------------------------------- -->
|
|
|
|
|
|
|
|
|
2011-05-27 13:02:41 +03:00
|
|
|
<SUBSECTION title="Receive">
|
2011-05-27 01:42:57 +03:00
|
|
|
|
|
|
|
In the receive test, the reference device sends a number of frames to the
|
|
|
|
DUT. The test program verifies correct reception of all the frames. A
|
|
|
|
device that has passed all the preceding tests should not encounter
|
|
|
|
problems in the receive test. If it does, there may be a problem with
|
|
|
|
the bypassing of the transceiver's 1.8 V supplies.
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ---------------------------------------------------------------------- -->
|
|
|
|
|
|
|
|
|
2011-05-27 13:02:41 +03:00
|
|
|
<SUBSECTION title="Send">
|
2011-05-27 01:42:57 +03:00
|
|
|
|
|
|
|
The send test is like the receive test, but with the DUT acting as the
|
|
|
|
sender and the reference acting as the receiver. If a device passes the
|
|
|
|
receive test but fails the send test, there is probably an issue with
|
|
|
|
the bypass capacitors of the analog 1.8 V supply.
|
|
|
|
<P>
|
|
|
|
Another possible cause could a problem with the SLP_TR signal. The
|
|
|
|
GPIO test should eventually catch this issue, but it may currently
|
|
|
|
remain undetected until the send test.
|
2011-05-18 20:25:54 +03:00
|
|
|
|
2011-05-27 19:14:32 +03:00
|
|
|
<END author="Werner Almesberger" date="<GEN_DATE>">
|
2011-05-18 20:25:54 +03:00
|
|
|
</BODY>
|
|
|
|
</HTML>
|