Table of Contents
ANPR Whitelist with IP Relay
Automate on-site responses by whitelisting licence plates to trigger IP relays for gate opening and device control.
Step 1: Add Plates to Whitelist

- Open the Plates tab. It lists the camera's ANPR plates, with the Resync Plates button above them

- Below the list, fill in the Add New ANPR Plate form:
- Plate number: Enter the licence plate without spaces (e.g.,
181KE2568not181K E256 8) - Group: Select Whitelist or Blacklist
- Expiry date: Optional - plate deactivates automatically after this date
- Plate number: Enter the licence plate without spaces (e.g.,

Tip: Check how the camera reports the plate in Events or the ANPR export - enter it exactly the same way. The display may show spaces for readability (e.g., 181K E256 8) but the stored value has no spaces.
- Click Create to add the plate
Tip: The Plates tab only appears after your camera detects its first licence plate.
Whitelist vs Blacklist:
- Whitelisted plates trigger relay automation (e.g., open gate)
- Blacklisted plates send notifications to users but do not trigger relays
Step 2: Add a Relay Device
Go to Admin → Cameras → select your ANPR camera → Relays tab
Fill in the Add New Relay Device form:
- Device: Select the IP relay device from your Devices list
- Username and Password: Credentials to access the relay device
- On path: HTTP path to activate relay (see path format below)
- Off path: HTTP path to deactivate relay (see path format below)
- Status path: HTTP path to check relay status
- Number of relays: How many relays (outputs) the board has. Each one can be tested from TetherX, and each camera picks one as its Output Number

- Click Create to add the relay device
Each relay appears in the Available Relay Devices table with test controls, and the result of the last test shows above the table:

Choose an Output, then:
- ON switches that output on until you press OFF
- OFF switches it off
- Pulse sends the same pulse a whitelisted plate sends, for the camera's Duration
The result line shows the relay board's own reply, or why the command failed.
Understanding Relay Path Format
There is no universal standard for IP relay control - each manufacturer uses their own HTTP protocol. The defaults use the Robot Electronics protocol (ETH002, ETH008, ETH484 series):
- On path:
/io.cgi?DOA%1$s=%2$s- DOA = Digital Output Active - Off path:
/io.cgi?DOI%1$s=%2$s- DOI = Digital Output Inactive - Status path:
/status.xml
The %1$s and %2$s are placeholders that TetherX replaces automatically:
%1$s= Output channel number (1, 2, 3, etc.)%2$s= The board's own timer, in tenths of a second. TetherX converts the camera's Duration (seconds) for you: 3 seconds is sent as30.0means no timer, so the output stays on until it is switched off.
If your On path has no %2$s, or the duration is longer than 25.5 seconds (the most a Robot Electronics timer holds), the TetherBox switches the output on and sends the Off path itself when the duration ends.
Testing Your Relay Device
Before configuring automation, test your relay directly by entering these URLs in your browser (replace 192.168.1.100 with your relay's IP). The Robot Electronics example /io.cgi?DOA1=30 holds output 1 on for 3 seconds:
| Manufacturer | Test ON | Test OFF | TetherX On path | TetherX Off path |
|---|---|---|---|---|
| ControlByWeb (recommended) | /state.xml?relay1State=1 |
/state.xml?relay1State=0 |
/state.xml?relay%1$sState=1 |
/state.xml?relay%1$sState=0 |
| Robot Electronics | /io.cgi?DOA1=30 |
/io.cgi?DOI1=0 |
/io.cgi?DOA%1$s=%2$s |
/io.cgi?DOI%1$s=%2$s |
| KMtronic | /relays.cgi?relay=1 |
/relays.cgi?relay=1 |
/relays.cgi?relay=%1$s |
/relays.cgi?relay=%1$s |
| Denkovi | /current_state.xml?relay1=1 |
/current_state.xml?relay1=0 |
/current_state.xml?relay%1$s=1 |
/current_state.xml?relay%1$s=0 |
| Moxa (opens in a new tab) ioLogik | /api/slot/0/io/relay |
/api/slot/0/io/relay |
/api/slot/0/io/relay |
/api/slot/0/io/relay |
| Generic REST | /relay/1/on |
/relay/1/off |
/relay/%1$s/on |
/relay/%1$s/off |
Warning: Hikvision ISAPI requires PUT requests with XML body (<outputState>high</outputState> for on, <outputState>low</outputState> for off) which is not compatible with simple HTTP GET paths. Use a dedicated IP relay board instead.
Tip: If your relay uses a different protocol, consult your device manual for the correct HTTP paths and adjust accordingly.
Step 3: Link Camera to Relay Device
After creating a relay device, configure your camera to use it:
In the same Relays tab, scroll to Camera Relay Configuration
Configure the following settings:
- Relay Device: Select which relay device this camera should control
- Output Number: Which relay output channel to use (1-based)
- Duration (seconds): How long the relay stays on for each whitelisted plate. The default of 3 seconds suits most barrier and gate controllers. Increase it if your controller's manual asks for a longer trigger.

- Settings save automatically when you change them
How Automation Works
When a whitelisted plate is detected:
- The camera reads a licence plate and sends it to your TetherBox
- The TetherBox matches the plate against the camera's whitelist, on site, so the gate does not wait for the internet
- If it matches, the TetherBox pulses the camera's Output Number on the relay board for the camera's Duration
- The relay contact closes for that time, which signals the barrier or gate controller to open
- The relay switches off when the duration ends: the board's own timer ends it, or, for a board without one, the TetherBox sends the Off path
Every read of a whitelisted plate opens the gate, including repeat reads of the same vehicle. TetherX stores a repeat read of the same plate and direction within 5 minutes only once, and stops storing a camera's plates once it passes its hourly plate limit, so the gate can open more often than Last seen and Events show.
Troubleshooting
Barrier Not Opening for Whitelisted Plates
Work through these steps in order. The first one tells you which half of the system to look at: the relay and barrier side, or the plate-matching side.
1. Pulse the Camera's Output From TetherX
Go to Admin → Cameras → select the ANPR camera → Relays tab. In the relay's Test column, choose the camera's Output and press Pulse (the button shows the camera's duration, for example Pulse 3 s). Pulse sends exactly the command a whitelisted plate sends, through the TetherBox, for the camera's Duration.
The result line shows what the relay board replied. A Robot Electronics board replies with one digit per output, output 1 first: relays 01000000 means output 2 is on.
- The barrier opens: the relay side works. Go to step 3.
- The board replies, its output LED lights or the relay clicks, but the barrier stays shut: the TetherBox and the relay board are working, and the fault is between the relay and the barrier. Go to step 2.
- The test fails: the message names the reason. No route to host or timed out means the TetherBox cannot reach the relay board on the network: check its power, cable and IP address. status=401 means the relay Username/Password are wrong.
2. Check the Barrier Wiring and Trigger Length
- The relay output's COM and NO (normally open) terminals must be wired to the barrier or gate controller's open or trigger input. Check which output number each barrier is wired to, and that it matches that camera's Output Number.
- Some controllers ignore a short trigger. Increase the camera's Duration (for example to 5 seconds) and pulse again.
- Some controllers have their own setting that disables or delays the open input. Check the controller's manual.
3. Verify Camera Relay Configuration
In the same Relays tab, scroll to Camera Relay Configuration and confirm:
- A Relay Device is selected (not "None")
- Output Number is the output wired to this camera's barrier. Each camera can use its own output on a shared relay board.
- Duration is at least 1 second. With no duration, the TetherBox does not switch the relay.
Warning: If no relay device is selected in Camera Relay Configuration, the whitelist will detect plates but never trigger the barrier.
4. Check the "Last seen" Column
In the Plates tab, Last seen shows the most recent read TetherX stored for that listed plate on the selected camera. Drive the vehicle past the camera:
- Last seen updates: the plate was read and matched, so the TetherBox sent the pulse from step 1. If Pulse opened the barrier but the vehicle doesn't, the vehicle may have been read on a different camera from the one wired to that barrier. Check which camera's Last seen changed.
- Last seen does not update: check how the camera read the plate in Events, then the next three steps. A repeat read within 5 minutes is not stored again (see How Automation Works above), so wait 5 minutes between test passes.
5. Plate Format Must Match Exactly
The plate number in your whitelist must match exactly how the camera stores it:
- Plates are stored without spaces (e.g.,
181KE2568) - The display adds spaces for readability (e.g.,
181K E256 8) but this is cosmetic only - Export your ANPR data to CSV to see the actual stored format
- Enter plates without spaces to ensure matching works
6. Check TetherBox Connectivity
Go to TetherBoxes and verify your TetherBox is online. The whitelist is matched on the TetherBox, so the gate keeps opening for plates it already holds while the internet is down. Plates you add or change reach it only once it is back online, and the Test buttons need it online.
7. Resync Plates to TetherBox
If plates appear correct in TetherX but the TetherBox isn't recognising them, use the Resync Plates button:
- Go to Admin → Cameras → select your ANPR camera → Plates tab
- Click the Resync Plates button in the top-right corner of the ANPR Plates card
- TetherX replaces the selected camera's plate list on the TetherBox with its current, unexpired entries.
Use this when:
- Plates were added while the TetherBox was offline
- The TetherBox was replaced or rebuilt
- Whitelist matching isn't working despite correct configuration
8. Check Expiry Dates
Plates with past expiry dates are automatically ignored. Remove the expiry date or set a future date.
What to Send TetherX Support
If the barrier still fails to open, send TetherX Support the details of one failed vehicle pass so we can trace it:
- Site and TetherBox: The timeline and site name, and the full TetherBox serial number.
- Camera: Its name as shown in TetherX and its local IP address if known.
- Plate: The registration exactly as the camera read it, plus a link to the event in TetherX if available. If you only saw the read on the camera, mention that.
- Test time: The date, local time and timezone of the failed pass. If you do not have the exact time, give a five-minute window.
- Relay configuration: The relay board name or IP address, the configured Output Number and Duration, and the output the barrier is wired to if you have confirmed it.
- What happened: For the failed pass, say whether the output LED lit, the relay clicked and the barrier opened. Mark anything you could not observe.
- Manual Pulse test: If you ran step 1 above on the same output, include the time, the exact result shown in TetherX and what the LED, relay and barrier did.
If the issue is intermittent, also include one successful test, if available. Give its time and say whether it was a vehicle pass or a manual Pulse. Mention when the fault started and any known changes to the wiring or settings.
Adding Relay Devices via API
Relay devices can also be added programmatically using the TetherX API. Use the address you sign in at, which depends on the region your account is hosted in:
curl -X POST "https://YOUR-TETHERX-DOMAIN/api/v3p/relay_devices" \
-H "Content-Type: application/json" \
-d '{
"username": "admin",
"password": "admin",
"device_id": "YOUR_DEVICE_ID",
"outputs_number": 3
}'
For full API documentation, see the TetherX API Reference.
Related Articles
- Setting Up ANPR Cameras - Configure ANPR on your cameras
- How to Enable ONVIF - Enable ONVIF protocol for camera discovery
- Self Storage - Plate-driven gate entry as part of an unmanned storage site