Troubleshooting
Problems in roughly the order you are likely to encounter them.
A device makes no sound on the charger
A healthy device plays four rising tones within a second or two of being placed on a charger.
- Is it charging at all? Reposition it on the pad. Wireless charging alignment is fussier than it looks.
- Is the firmware loaded? A device that has never been flashed does nothing. Redo Getting Started.
- Was it flashed for the right board revision? Firmware built for the wrong revision compiles
cleanly and then drives the wrong pins — a device that looks dead is the usual symptom. Check the
letter silkscreened on the board and reflash with the matching
BOARD_REV. - Is the battery completely dead? Leave it on the charger for an hour and try again.
- Is the buzzer broken? Try to scan for the device using the dashboard. If it shows up when the device is on the charger, but the device makes no sound when removed, the buzzer is broken.
A device doesn’t appear when I scan
It is almost always the charger. Devices only stay awake and reachable while plugged in. An unplugged device that is outside its study window powers itself off and cannot answer a scan.
If it is on a charger and still missing:
- Give it longer. A device that has just been plugged in restarts first.
- Confirm it is charging — listen for the rising tones.
- Move closer. Scanning uses Bluetooth, so aim for a distance of a few feet and a clear path.
A device recorded nothing, or far less than the others
Work through these in order.
1. Was it part of the study? Use Get Scheduled Deployment Details on that device. A device that was not on its charger when you pressed Schedule never learned about the study.
2. Was it on a charger during the study? Look for charging events in its log. A device on a charger is awake but not recording.
3. Did its battery run out? Check the voltage trace. A recording device powers off when its battery falls to 3680 mV, and will not start again below 3750 mV until it is charged.
4. Was it within range? Count how many rounds each peer appears in:
import collections
peers = collections.Counter()
rounds = 0
for r in records:
if 'r' in r:
rounds += 1
peers.update(r['r'].keys())
for uid, n in sorted(peers.items()):
print(hex(uid), f'{100*n/rounds:.0f}% of rounds')
A device seen in nearly every round had a good link. One seen in half had a marginal link — real data, but weaker. One absent entirely was never in the network with this device.
5. Were the groups ever within range of each other? Devices switched on in different places start out as separate networks and merge on their own once they can hear each other. Two clusters that each range internally but never with each other were never within range of each other during the study.
One device is consistently weaker than the others
If a device ranges well with close neighbors but drops out with distant ones while other devices report those same distances fine, that device has a weaker radio link than its peers.
The test that separates “far away” from “weak radio” is to compare links at the same distance. If device A contains 99% of rounds with a peer at 2.4 m but only 58% with another peer at the same 2.4 m, distance is not the explanation.
This is usually a hardware matter — for instance, a faulty antenna connection — rather than anything configurable. Worth identifying before a real study, because a weak device that becomes the network’s coordinator degrades the whole group rather than only itself.
Checking devices on the bench
Both tools do this comparison for you, live over Bluetooth: Live Radio Check in the desktop dashboard, or the Radio check tab in the browser tool.
- Put the devices on their chargers, or leave them running a deployment, so they can be reached.
- In the desktop dashboard, Scan for TotTags, then choose Live Radio Check and select each device. In the browser tool, open Radio check → Live over Bluetooth and add each device. Devices the browser has seen before can be added all at once.
- Choose how long to run, 2 to 10 minutes (2 by default), and start the test. Each device restarts into a radio test mode and starts ranging.
- Put them on a table where they can all see each other, every device at least 2 feet from every other: a circle or a line works. Include at least two devices known to be good. The test carries on while you move them. Note where each one sits if you can. Devices that measure closer than 2 feet are called out, because that close even damaged antennas reach each other.
Verdicts appear within the first minute and update every 15 seconds. They firm up once every device has a minute of data. In the browser tool, a bar at the top of the page counts down to the end of the test, and each verdict reads so far until the test is over; Run another test then sets up another with the same devices. A radio test logs nothing and leaves a device’s deployment as it was. When it ends, or when you stop it, each device restarts into whatever task it would otherwise be doing. A device that was running a deployment picks it up again, with a gap in its log for the test. A device that is off its charger without a scheduled deployment switches off.
The browser tool can also run the same check on the downloaded logs of a deployment that already ran: choose From downloaded logs and open every device’s log.
Both tools apply the same rules. Each device is judged against the others and gives a Pass, Check, or Fail verdict along with the reason. If nothing can be judged against, every verdict is Unknown (see below).
- Receives failed well above the other devices’ rate means a weak receiver, antenna, or connection. Only receptions from devices that were actually transmitting count.
- How well it hears, and how well it is heard, in either tool’s live check, with firmware that counts each receive by who sent it. A failed receive is as much the sender’s fault as the receiver’s, and every device uses the same antenna at the same time, so one device with a damaged antenna also raises every other device’s Receives failed on that antenna. These figures allow for that: each device is judged only against the devices shown healthy, by how well it hears them and how well they hear it. A device is shown healthy when it and another decoded each other at least 95% of the time, both ways and through every antenna. When no two devices manage that, none can be shown healthy, so every verdict is Unknown, and a note at the top says why. Each device’s own counts are still shown, but test again with at least two devices known to be good to get verdicts. The browser tool shows these figures as Fails to hear and Goes unheard, and its Receives grid, like the desktop dashboard’s list of weak receives, shows exactly who missed whom.
- One antenna failing far more than the other two. Each round cycles through all three antennas, so their reception rates should match; a mismatch indicates the faulty antenna. The live checks bracket the antenna each device is using to hear the schedule, and it automatically transitions away from a bad one by itself.
- Ranged in few rounds means the device was rarely taking part in the network activities.
- Typical link and Distance spread are how often a device ranged with a typical partner, and how much its distances to them varied, compared with the other devices. When some devices are shown healthy, only links to them count, so a damaged device does not drag down a good one it ranges with.
- Distance offset, with positions entered, means a device produced ranges that were long or short on every link, so its internal calibration is off.
The Links grid shows how often each pair ranged. A device that is weak on every link indicates a problem with that specific device; a single weak pair is more likely an obstruction between the devices.
With that same firmware, the browser tool’s Receives grid shows how often each device decoded each other device. A row low across the board is a device that hears poorly, or one near something else transmitting, such as a tag running a different deployment; a column low across the board is a device the others cannot hear.
A download reported missing pages
Lines like this during a download are normal:
Requesting 7 of 7 missing page(s), round 1...
The tool noticed a page did not survive the transfer and asked the device to resend it. It is self-correcting and nothing is lost.
This is not normal:
WARNING: log from 31 is incomplete:
transfer ended early: 8 of 10 pages received
Download the device again before clearing it. The data is still on the device — an incomplete download means the transfer failed, not that the recording did. A second attempt usually succeeds.
If it persists, keep the device as-is and note the message, including the sequence numbers. The data remains recoverable.
A device restarted unexpectedly
Restarts are listed in the log:
import datetime
for r in records:
if 'rst' in r:
print(datetime.datetime.fromtimestamp(r['t']), r['rst'])
SW Power-On is normal and expected. A device deliberately restarts every time it is plugged in or
unplugged, so these should match your charging routine. Several per day in a study where devices are
charged nightly is expected.
Anything mentioning Watchdog is a genuine fault — the firmware stopped responding and recovered
itself. The entry names the part that stalled, for example Watchdog + stalled: BLETask. An isolated
one is survivable; several in a short window on the same device is worth reporting, with the log.
Other causes you may see — hard fault, stack overflow, assertion failed — are firmware faults.
Keep the log and report it.
The clock is wrong
Devices run roughly 160–190 ppm slow, about 15 seconds per day. Over a week that is about a minute and a half of drift against wall clock time.
All devices in a deployment share a network clock, so they stay consistent with each other even as the group drifts against real time. Cross-device analysis is unaffected; only alignment against an external record is.
Scheduling a deployment sets the clock, so the drift restarts from zero at the start of each study. The 5-minute housekeeping records carry the device’s own clock alongside the network clock, so drift can be measured and corrected after the fact. See Your Data.
The programmer won’t connect
If a make ... flash stops at Connecting to J-Link via USB... and prints nothing more:
- Is anything else using the J-Link? Close any other terminal holding a connection to it, such as an RTT or GDB debugging session.
- Is your J-Link software older than the probe’s firmware? Whichever computer last used a J-Link updates the firmware on it, and older software on another computer can then fail silently. Update the J-Link Software Pack.
- Still nothing? Occasionally J-Link refuses to connect until the computer is restarted.
Still stuck
Collect, before asking:
- the
.ttgfiles, - the console output from the download,
- the board revision and roughly when the firmware was flashed,
- what you expected to see and what you saw instead.
The .ttg is the file that matters most. It is the original record and almost every question can be
answered from it.