Articles

UWB production calibration: building the test station

A UWB product usually needs up to four values set on every unit in production: the crystal trim, the transmit power, the antenna delay, and, on angle-of-arrival designs, the phase offset between the two receive paths. Do them in that order, because the later measurements depend on the earlier ones being final. The station that measures them needs a fixture that holds the unit the same way every time, an RF-quiet space, reference units you trust and keep checking, and a record of every value against the serial number.

The values differ from unit to unit because the parts do. Two crystals from the same reel sit a few parts per million apart. Two transmitters at the same setting differ by a decibel or so. Two receive paths add slightly different delays. None of it matters on a bench demo with two boards, and all of it shows up across a few hundred units in a building.

What gets calibrated

Crystal trim. The chip’s clock comes from a crystal, and its frequency error shows up in three places: the carrier frequency, the receiver’s ability to lock to another unit, and the timing of every ranging exchange. Most UWB chips have a trim setting that pulls the crystal frequency a little. Production measures the frequency, sets the trim to bring it close to nominal, and stores the value. Measure it without touching the crystal, which a probe would pull: put the chip in its continuous-carrier test mode and measure the carrier, or read the clock offset a trimmed reference unit reports. It’s one of the cheaper decibels of range available, as Why UWB range falls short of the datasheet covers.

Transmit power. UWB power is capped by regulation, so a product wants to sit just under the limit on every unit, not a few decibels under on most of them to be safe on the hottest one. Measure each unit on each channel it uses, and set its power so it lands just under the limit with a margin you’ve chosen on purpose. On some chips the pulse shape, which sets how wide the spectrum is, has its own setting that varies by unit and is calibrated in the same step. UWB transmit power limits covers what the limit actually is.

Antenna delay. The time a pulse spends inside the unit gets counted as distance, and it differs by channel and radio configuration. Whether one value per design is enough, or each unit needs its own, depends on the accuracy you need; UWB antenna delay calibration, explained has the rule of thumb and the methods.

Phase offset (angle-of-arrival designs only). The two receive paths add different phase, often tens of degrees, and uncorrected it reads as an angle. It’s measured per channel, with a reference unit at a known angle, usually straight ahead. UWB angle of arrival explains why it matters.

Why the order matters

  1. Crystal trim

    Measure the carrier in test mode and set the trim

    Clock error costs sensitivity and biases ranging

  2. Transmit power

    Each channel, set just under the limit

    Reported distance shifts with signal level

  3. Antenna delay

    At the shipping power, against trusted reference units

    Depends on the two steps before it

  4. Phase offset

    Angle-of-arrival designs only: per channel, reference straight ahead

    Nothing else depends on it

  5. Verify

    Range again with the values loaded by the production firmware

    Catches values that never load

Every unitLog each measured and stored value, the limits, the station, the reference units, the temperature and the time against the serial number.

The order of calibration on each unit. Each measurement assumes the values before it are final, so the order matters.

The antenna delay is the measurement that depends on the others.

The crystal comes first. A frequency error makes the other unit’s receiver work harder to lock, which costs sensitivity, and it biases single-sided ranging badly: the error grows with the clock offset times the reply time, and at 20 ppm and a 1 ms reply it’s around 3 m. So the station should range double-sided, or correct for the measured clock offset, against a reference whose own crystal is trimmed.

Transmit power comes before the delay, because the reported distance shifts with received signal level, so a delay measured at one power setting is a little wrong at another. Set the power the unit will ship with, then measure the delay at that power. And mind the level at the station: in a small box the received signal is far stronger than it will be in the field, sometimes strong enough to push the receiver toward overload. The stored delay then carries the bias of that level. Either correct for the bias at the station’s level, or add attenuation so the level matches what the product sees in use.

The phase offset comes last. It depends least on the others, and nothing else depends on it.

Then verify. Range again with the final values loaded the way the production firmware loads them, and check the distance, and the angle if there is one, against the pass limits. A value that’s right in the test firmware and wrong after the production image reads it back is an easy way to ship a batch of uncalibrated units.

The station

A calibration station is mostly about repeatability. Each part is there to make the measurement come out the same on the hundredth unit as on the first.

Start with the fixture. The unit has to sit in the same place and orientation every time, because the delay and the phase both change with angle. A nest that only fits one way, and a way to power and talk to the unit without anyone holding it, are worth more than a better instrument.

Then an RF-quiet space, because reflections move the result. On a production line that usually means a shielded box with absorber inside, with the reference unit or antenna at a fixed distance. A small box has its own reflections and near-field effects, so the box is part of the measurement: its contribution gets calibrated into the reference, and it must not change. A box that gets moved to a new bench, has its absorber replaced or has a cable rerouted needs its reference checked again.

Then the reference units. Antenna delay and phase offset are measured against a reference whose own values are known. I’d keep at least two or three references, check them against each other at the start of every shift, and stop the line if they disagree beyond a set limit. A reference that has been dropped, reworked or quietly drifted calibrates every unit after it wrong, in the same direction, and nothing downstream will catch it.

The instruments are the familiar ones: a frequency counter or a calibrated receiver for the crystal, and, for transmit power, a spectrum analyzer set up the way the regulatory measurement is made, or a power meter correlated to one. The UWB limit is a power density per megahertz, so measure with the frames the product will actually send, since frame length and repetition rate change the reading. Over-the-air measurements need the path loss of the box, the antenna and the cables measured and rechecked, because a decibel of error there is a decibel on every unit.

Last, the software and the records: a test program that runs the sequence the same way every time, applies the limits, writes the values to the unit and logs everything against the serial number: each measured value, the stored value, the limits, the station, the reference units used, the temperature and the time. When a customer reports one unit reading 20 cm long, that record is how you find out whether it’s that unit, that batch or that station.

Over a cable or over the air

Calibrating over a coaxial cable takes the room out of it: no reflections, no fixture angle, very repeatable numbers, as long as the path has enough attenuation and a known delay. It also takes the antenna out. The antenna’s share of the delay, and its share of the phase on an angle-of-arrival design, then has to come from a value measured once over the air for the design and added to every unit. That works when the antenna is a separate part that varies little. It works less well for the phase offset, because a cable also removes the coupling between the two antennas, which is a large part of the real offset. On a product with an antenna printed on the board, or one sitting close to its enclosure, the antenna is a big part of what varies, and I’d calibrate over the air in the finished housing.

Temperature

Everything is calibrated at the factory’s temperature. The crystal, the transmit power and the antenna delay all drift with it, so the power margin has to cover the hot end, and a product that needs centimeters across an outdoor range needs a temperature correction in firmware as well. Record the temperature with every calibration, so the correction has a starting point.

How many measurements

Every ranging measurement is noisy, so the station averages. The noise in the average falls with the square root of the number of measurements: four times as many halves it. So the count comes from the spread you measure on your own station and the accuracy you need, not from a number in an example. Measure the spread on a few units early, and set the count with some margin. Averaging doesn’t remove a reflection or a level error; those are fixed offsets, and only the station’s setup removes them.

The count also sets the cycle time, along with the time to load and unload the fixture, which is often the bigger part. Doing each channel and each antenna path the product uses multiplies it.

Storing the values

Many UWB chips have one-time-programmable memory for calibration values. It survives anything, and it can only be written once, so check every value against its limits before writing, and read it back after. Values kept in flash are easier to correct but can be lost to a bad firmware update if the update doesn’t know to leave them alone. Either way, the production firmware has to load them on every start, and on chips that lose their settings in deep sleep, on every wake as well. The verification step should prove it does. Some chips also need a programming voltage for one-time memory that the station has to supply.

When to calibrate again

Anything that changes the RF path changes the values: a reworked or replaced part in the RF chain, a different antenna, a change to the enclosure near the antenna, potting. So does a firmware change to the transmit power, the channel or the frame settings. A unit that comes back for repair and has had any of that done should go back through the station, not just the functional test.

If you’re planning a UWB product’s production test, or your units agree on the bench and disagree in the field, get in touch.

All articles

Have a project in mind?

Based in southern Indiana. Working with clients anywhere, including companies across the Midwest.