TLV is the short for Type Length Value. It is a technique mostly used to encode optional information within data communication protocols.
Questions tagged [tlv]
109 questions
33
votes
6 answers
What is TLV (tag-length-value)?
What is TLV?
To put hooks (functions) in the code instead of if/else?
If I have one piece of code running on different platforms, at different places in code, I can put TLV function hooks to identify what platform I am on and do accordingly? Or…

hari
- 9,439
- 27
- 76
- 110
9
votes
7 answers
Is there a Java parser for BER-TLV?
I'm new to Java, so I would like to use the standard solution for, I think, the standard task. The length of tags and values are not known.

Zharro
- 819
- 1
- 11
- 23
8
votes
1 answer
Preparing data in TLV8
I'm writing a HomeKit (so perhaps Bluetooth) characteristic in TLV8 format. Apple doc says
The value is an NSData object containing a set of one or more TLV8's,
which are packed type-length-value items with an 8-bit type, 8-bit
length, and…

huggie
- 17,587
- 27
- 82
- 139
7
votes
1 answer
How to interpret NDEF content on Mifare Classic 1K
I write a text to a Mifare Classic 1K tag using the NFC Tools app on my Android device (through the built-in NFC reader). This text is "moretto" (my last name).
Then, I'm trying to read this text (NDEF format) using the NFC reader ACR1255U with the…

Lucas Moretto
- 404
- 1
- 6
- 18
7
votes
1 answer
Parsing PDOL for GET PROCESSING OPTIONS command in EMV transaction
I am trying to build a correctly formatted GET PROCESSING OPTIONS command to be sent to a contactless EMV card. This post has been very helpful but I just need to know a little more detail.
When parsing the PDOL, is it safe to assume that each tag…

Scott Condron
- 1,902
- 16
- 20
6
votes
4 answers
EMV TLV Java Function
I'm looking for a way to translate an EMV response with Java like with this online option:
http://www.emvlab.org/tlvutils/
where you put something like this EMV…

JuanD
- 301
- 1
- 5
- 11
6
votes
2 answers
BER-TLV open source library for Objective-C
I intend to parse BER-TLV format from smart card response to interpret the data.
it similar like JACCAL, but in Objective-C or C++
Can anyone give reference any open source project or any reference to do this?

HelmiB
- 12,303
- 5
- 41
- 68
5
votes
4 answers
How to create and parse Tag, Length, Value (TLV) in PHP and encode it in Base64
There is a new regulation from the Government asking all VAT registered companies to implement QR CODE in the new E-Invoice.
The QR code fields shall be encoded in Tag-Length-Value (TLV) format with the tag values specified in the “Tag” column of…

Taha Khan
- 164
- 3
- 16
5
votes
2 answers
Parsing EMV 9F10 Token
I received the the following IAD after processing the GPO command, my question then, how is the 9F10 EMV token constructed? Here is the token.
06010A03A020000F04000000000000000000006232E4F9
I am required to send only the CVR portion to the…

Blackbox First
- 67
- 1
- 1
- 7
5
votes
2 answers
How can I decode/encode a cable modem configuration file?
I'm currently looking into some of the inner workings of DOCSIS and related. One thing I'm struggling a bit with is how cable modem config files are made.
From what I've gathered:
CM configs are binary files based on a TLV format.
These configs are…

Magnus Bull
- 1,027
- 1
- 10
- 21
4
votes
2 answers
EMV Smart Card TLV Format Error?
I am developing a smartcard reader for reading EMV cards. I am working on a Mastercard card, and I was trying to read a specific record. The result showed the reading was fine, but when I parse the results, they do not seem to follow the TLV…

Peter
- 648
- 7
- 26
4
votes
1 answer
TLV encoding and Decoding
I'm new to TLV encoding format. Could someone please provide some pointers for how to encode and decode SNMP PDU's in TLV.
I have a requirement to decode the TLV encoded smspdu and I'm really lost where to start.

Nithu
- 83
- 1
- 6
4
votes
2 answers
ISO8583: Appropriate value for Field 43 Card acceptor name/location
Hey In 43'th field of ISO-8583 package which is Card acceptor name/location (1-23 address 24-36 city 37-38 state 39-40 country), should I assign value ? and what is the proper value?

Siavash
- 2,813
- 4
- 29
- 42
4
votes
1 answer
how to convert C structure into TLV format or flat memory buffer
I need to convert one C structure into TLV format and send it across. Can someone help me with same? My structure is a really nested structure with lot of in-directions (pointers) to different structures and lot of void *. So, i am stuck and could…

puzzled confused
- 151
- 2
- 6
- 12
3
votes
2 answers
Onlinecity SMPP - add new tlv parameters
I am using the OnlineCity SMPP client lib for sending SMS. It was working fine. But as per the new guideline of TRAI, we need to add the following new TLV parameters while sending SMS
group = smpp-tlv
name = EntityID
tag = 0x1400
type =…

sinpleguy
- 33
- 5