Jump to content

Template:1-Wire Accessory: Difference between revisions

From Teltonika Telematics Wiki
No edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 202: Line 202:
==Converting IO values to IDs==
==Converting IO values to IDs==
This short guide explains how to convert the iButton value in "I/O" menu to an ID usable in the iButton list in "1-Wire" menu.
This short guide explains how to convert the iButton value in "I/O" menu to an ID usable in the iButton list in "1-Wire" menu.
''Note! For FMx6 trackers, you do not need to convert these values.''
''Note! For FMx6 trackers, you do not need to convert these values.''
# Connect your 1-Wire accessory to the tracker according to the wiring scheme.
# Connect your 1-Wire accessory to the tracker according to the wiring scheme.
Line 209: Line 210:
# Take the value (here: 01437829000700CF) and convert it using the method shown below - then you will be able to use it in the iButton List.
# Take the value (here: 01437829000700CF) and convert it using the method shown below - then you will be able to use it in the iButton List.
[[File:iButton_ID_decoding.png|center|600px]]
[[File:iButton_ID_decoding.png|center|600px]]
# Excel algorithm (copy-paste to a sheet):
'''Excel algorithm (copy-paste to a sheet):'''
## Column names: A-iButton I/O, B-Removed Ox string, C-Final ID
# Column names:
## A1-iButton I/O
## B1-Removed Ox string
## C1-Final ID
#Column values:
## A2=<code>0x01437829000700CF</code>
## A2=<code>0x01437829000700CF</code>
## B2=<code>=MID(A2; 3; LEN(A2) - 2)</code>
## B2=<code>=MID(A2; 3; LEN(A2) - 2)</code>
## C2=<code>=MID(B2; 15; 2) & MID(B2; 13; 2) & MID(B2; 11; 2) & MID(B2; 9; 2) & MID(B2; 7; 2) & MID(B2; 5; 2) & MID(B2; 3; 2) & MID(B2; 1; 2)</code>
## C2=<code>=MID(B2; 15; 2) & MID(B2; 13; 2) & MID(B2; 11; 2) & MID(B2; 9; 2) & MID(B2; 7; 2) & MID(B2; 5; 2) & MID(B2; 3; 2) & MID(B2; 1; 2)</code>

Latest revision as of 13:50, 30 January 2026

Introduction

1-Wire data protocol, implemented in many Teltonika devices, can be used to read

1-Wire {{{accessory}}} readers are a convenient way to implement driver authorization and other functionalities.

Use cases:

  • Immobilizer - prevent the starting of a vehicle without first scanning an
  • Authorized driving - keep track of who is driving the vehicle according to the they use to authenticate themselves.
  • Auto Geofencing - get notified when a vehicle leaves a pre-defined area without authorization.









Specifications

Installation

Note! This chapter describes the installation of an accessory supplied by Teltonika. Accessories from other manufacturers may require different steps.
To connect the accessory to your system:

  1. Connect the ground wire to the same grounding used for the device.
  2. Connect the 1-Wire Signal wire from the reader to the 1-Wire Data pin on the device.


Tracker Configuration

The reader works as soon as it is connected, but the iButton isn't used anywhere other than displayed in the iButton I/O element. In order to use it for the Immobilizer scenario, the device must have the scenario enabled. Then, iButton check can be enabled to only accept iButtons specified in the iButton list under the 1-Wire tab.

Converting IO values to IDs

This short guide explains how to convert the iButton value in "I/O" menu to an ID usable in the iButton list in "1-Wire" menu.

Note! For FMx6 trackers, you do not need to convert these values.

  1. Connect your 1-Wire accessory to the tracker according to the wiring scheme.
  2. Connect the tracker to a PC, run Teltonika Configurator.
  3. Open the "I/O" menu and find the "iButton" parameter.
  4. Scan the 1-Wire accessory on the reader. The value in Configurator will shortly change.
  5. Take the value (here: 01437829000700CF) and convert it using the method shown below - then you will be able to use it in the iButton List.

Excel algorithm (copy-paste to a sheet):

  1. Column names:
    1. A1-iButton I/O
    2. B1-Removed Ox string
    3. C1-Final ID
  2. Column values:
    1. A2=0x01437829000700CF
    2. B2==MID(A2; 3; LEN(A2) - 2)
    3. C2==MID(B2; 15; 2) & MID(B2; 13; 2) & MID(B2; 11; 2) & MID(B2; 9; 2) & MID(B2; 7; 2) & MID(B2; 5; 2) & MID(B2; 3; 2) & MID(B2; 1; 2)