Skip to main content

How to Combine TCO Driver ID and CAN Driver ID

This article explains how to parse and combine TCO Driver ID (IO 155–158) and CAN Driver ID (IO 126–129) into a full driver card number in ASCII format.

Updated this week

1 IO Parameter Pairs

The driver card number is split across two IO parameters. You must combine both values to get the full number.

IO Pair

Description

IO 126 + IO 127

CAN first driver ID

IO 128 + IO 129

CAN second driver ID

IO 155 + IO 156

TCO first driver ID

IO 157 + IO 158

TCO second driver ID

⚠ Common mistake: Users often forget to merge both IO values and try to interpret a single IO as the full card number. You must always combine the pair.


2 Step-by-Step Conversion

2.1 Parse the IO Values from the RAW Packet

Start with the RAW device packet (in HEX). Use the Ruptela protocol parser to extract the needed IO values.

After parsing, you will see IO values in both HEX and Decimal:

Parsed IO values showing IOID 155, 156, and 158 with their HEX and Decimal values

For this example, the relevant values are:

IO ID

HEX Value

Decimal Value

IO 155

3030303030303132

3472328296227680562

IO 156

3031373937303032

3472617506557931570

2.2 Combine the HEX Values

Concatenate the HEX values of both IOs in the pair, placing the lower IO number first:

IO 155 HEX:  3030303030303132 
IO 156 HEX: 3031373937303032
Combined: 30303030303031323031373937303032

2.3 Convert Combined HEX to ASCII

  1. Open a HEX-to-ASCII converter such as RapidTables HEX to ASCII.

  2. Set Character encoding to ASCII.

  3. Paste the combined HEX value: 30303030303031323031373937303032

  4. Click Convert.

RapidTables HEX to ASCII converter showing the combined HEX value converted to the driver card number 0000001201797002

Result: 0000001201797002 — this is the driver's card number.

2.4 Alternative Method For Decimal Values

If your data is initially in decimal format:

  1. Take the Decimal value of each IO parameter separately.

  2. Convert each Decimal value to HEX.

  3. Combine both HEX values as shown in 2.2.

  4. Convert the combined HEX to ASCII as shown in 2.3.


3 Summary

Step

Action

Example

1

Parse IO values from RAW packet

IO 155 = 3030303030303132

2

Combine HEX values of the IO pair

3030303030303132 + 3031373937303032

3

Convert combined HEX to ASCII

0000001201797002

Did this answer your question?