MeCard (QR code)

Last updated

MeCard is a data file similar to vCard but used by NTT DoCoMo in Japan in QR code format for use with Cellular Phones.

Contents

It is largely compatible with most QR-readers for smartphones. It is an easy way to share a contact with the most used fields. Usually, devices can recognize it and treat it like a contact ready to import.

MeCard is based in UTF-8 (which is ASCII compatible); the fields are separated with one semicolon (;), and the tags are separated with a colon (:). Compared to vCard, it needs very few chars due to the size limitation of QR Codes.

QRCode MeCard example using most of the format's fields QRCode MeCard John Doe full.svg
QRCode MeCard example using most of the format's fields
QR Code MeCard example containing the text MECARD:N:Doe,John;TEL:13035551212;EMAIL:john.doe@example.com;; QRCode MeCard John Doe.svg
QR Code MeCard example containing the text MECARD:N:Doe,John;TEL:13035551212;EMAIL:john.doe@example.com;;

Limitations

Compared to vCard, MeCard format only stores one single contact, a few labels, and a few data pieces to be set in a typical phonebook.

There is no place on the web that defines a standard for MeCard. It is not described by the ISO, nor is there an RFC for it. As of 2016, the page at NTT DoCoMo that originally defined the layout returns 404, and searching their web site for "MeCard" turns up only a few unrelated references.

Structure

MeCard format starts with the tag MECARD and it finishes with two semicolons (;;)

The supported tags include:

Tagi-mode compatible bar code recognition functionDescriptionExample
ADR3.0The physical delivery address. The fields divided by commas (,) denote PO box, room number, house number, city, prefecture, postal code and country, in order. (See note below.)ADR:,,123 Main St.,Springfield,IL,12345,USA;
BDAY3.08 digits for date of birth: year (4 digits), month (2 digits) and day (2 digits), in orderBDAY:19700310;
EMAIL1.0The address for electronic mail communicationEMAIL:johndoe@hotmail.com;
N1.0A structured representation of the name of the person. When a field is divided by a comma (,), the first half is treated as the last name and the second half is treated as the first name.N:Doe,John;
NICKNAME3.0Familiar name for the object represented by this MeCardNICKNAME:Johnny;
NOTE1.0Specifies supplemental information to be set as memo in the phonebook.NOTE:I am proficient in Tiger-Crane Style,\nand I am more than proficient in the exquisite art of the Samurai sword.;
SOUND1.0Designates a text string to be set as the kana name in the phonebook. When a field is divided by a comma (,), the first half is treated as the last name and the second half is treated as the first name.
TEL1.0The canonical number string for a telephone number for telephony communicationTEL:(123) 555-5832;
TEL-AV2.0The canonical string for a videophone number communicationTEL-AV:(123) 555-5832;
URL3.0A URL pointing to a website that represents the person in some wayURL:https://www.johndoe.com/

Note on the ADR: field: Although the original NTT DoCoMo page described the format as shown, in practice almost no QRCode apps that recognize MeCards decompose the address as a set of comma separated fields. They instead display the contents of the field directly. This indicates that, in practice, the field should be formatted according to local layout conventions.


Related Research Articles

<span class="mw-page-title-main">S-expression</span> Data serialization format

In computer programming, an S-expression is an expression in a like-named notation for nested list (tree-structured) data. S-expressions were invented for and popularized by the programming language Lisp, which uses them for source code as well as data.

Lexical tokenization is conversion of a text into meaningful lexical tokens belonging to categories defined by a "lexer" program. In case of a natural language, those categories include nouns, verbs, adjectives, punctuations etc. In case of a programming language, the categories include identifiers, operators, grouping symbols and data types. Lexical tokenization is related to the type of tokenization used in Large language models (LLMs), but with two differences. First, lexical tokenization is usually based on a lexical grammar, whereas LLM tokenizers are usually probability-based. Second, LLM tokenizers perform a second step that converts the tokens into numerical values.

vCard, also known as VCF, is a file format standard for electronic business cards. vCards can be attached to e-mail messages, sent via Multimedia Messaging Service (MMS), on the World Wide Web, instant messaging, NFC or through QR code. They can contain name and address information, phone numbers, e-mail addresses, URLs, logos, photographs, and audio clips.

<span class="mw-page-title-main">Near-field communication</span> Radio communication established between devices by bringing them into proximity

Near-field communication (NFC) is a set of communication protocols that enables communication between two electronic devices over a distance of 4 centimetres (1.6 in) or less. NFC offers a low-speed connection through a simple setup that can be used for the bootstrapping of capable wireless connections. Like other proximity card technologies, NFC is based on inductive coupling between two electromagnetic coils present on a NFC-enabled device such as a smartphone. NFC communicating in one or both directions uses a frequency of 13.56 MHz in the globally available unlicensed radio frequency ISM band, compliant with the ISO/IEC 18000-3 air interface standard at data rates ranging from 106 to 848 kbit/s.

In bioinformatics and biochemistry, the FASTA format is a text-based format for representing either nucleotide sequences or amino acid (protein) sequences, in which nucleotides or amino acids are represented using single-letter codes.

<span class="mw-page-title-main">Comma-separated values</span> File format used to store data

Comma-separated values (CSV) is a text file format that uses commas to separate values, and newlines to separate records. A CSV file stores tabular data in plain text, where each line of the file typically represents one data record. Each record consists of the same number of fields, and these are separated by commas in the CSV file. If the field delimiter itself may appear within a field, fields can be surrounded with quotation marks.

Personal Digital Cellular (PDC) was a 2G mobile telecommunications standard used exclusively in Japan.

Ctags is a programming tool that generates an index file of names found in source and header files of various programming languages to aid code comprehension. Depending on the language, functions, variables, class members, macros and so on may be indexed. These tags allow definitions to be quickly and easily located by a text editor, a code search engine, or other utility. Alternatively, there is also an output mode that generates a cross reference file, listing information about various names found in a set of language files in human-readable form.

<span class="mw-page-title-main">QR code</span> Type of matrix barcode

A QR code is a type of two-dimensional matrix barcode, invented in 1994, by Japanese company Denso Wave for labelling automobile parts. A QR code consists of black squares arranged in a square grid on a white background, including some fiducial markers, which can be read by an imaging device, such as a camera, and processed using Reed–Solomon error correction until the image can be appropriately interpreted. The required data are then extracted from patterns that are present in both the horizontal and the vertical components of the QR image.

Javadoc is a documentation generator created by Sun Microsystems for the Java language for generating API documentation in HTML format from Java source code. The HTML format is used for adding the convenience of being able to hyperlink related documents together.

In the macOS, iOS, NeXTSTEP, and GNUstep programming frameworks, property list files are files that store serialized objects. Property list files use the filename extension .plist, and thus are often referred to as p-list files.

A card reader is a data input device that reads data from a card-shaped storage medium and provides the data to a computer. Card readers can acquire data from a card via a number of methods, including: optical scanning of printed text or barcodes or holes on punched cards, electrical signals from connections made or interrupted by a card's punched holes or embedded circuitry, or electronic devices that can read plastic cards embedded with either a magnetic strip, computer chip, RFID chip, or another storage medium.

<span class="mw-page-title-main">Windows Live Barcode</span>

Windows Live Barcode was a part of Microsoft's Windows Live services. It allowed users to transfer information between various media and handsets via Quick Response Code, a two-dimensional matrix barcode. It provided a method for people to exchange information and use various online services on handsets.

Unicode equivalence is the specification by the Unicode character encoding standard that some sequences of code points represent essentially the same character. This feature was introduced in the standard to allow compatibility with preexisting standard character sets, which often included similar or identical characters.

Mobile tagging is the process of providing data read from tags for display on mobile devices, commonly encoded in a two-dimensional barcode, using the camera of a camera phone as the reader device. The contents of the tag code is usually a URL for information addressed and accessible through Internet.

Protocol Buffers (Protobuf) is a free and open-source cross-platform data format used to serialize structured data. It is useful in developing programs that communicate with each other over a network or for storing data. The method involves an interface description language that describes the structure of some data and a program that generates source code from that description for generating or parsing a stream of bytes that represents the structured data.

<span class="mw-page-title-main">SPARQCode</span> Type of barcode

A SPARQCode is a matrix code encoding standard that is based on the physical QR Code definition created by Japanese corporation Denso-Wave.

<span class="mw-page-title-main">Short Payment Descriptor</span>

Short Payment Descriptor is a compact data format for an easy exchange of payment information using modern electronic channels, such as smart phones or NFC devices. Practically, the format is being deployed in the Czech Republic and the Slovak Republic, but the format can be technically used with any bank using IBAN account numbers. That includes currently the majority of European countries, some in the Middle East and a few others.

Mecard may refer to

Barcode library or Barcode SDK is a software library that can be used to add barcode features to desktop, web, mobile or embedded applications. Barcode library presents sets of subroutines or objects which allow to create barcode images and put them on surfaces or recognize machine-encoded text / data from scanned or captured by camera images with embedded barcodes. The library can support two modes: generation and recognition mode, some libraries support barcode reading and writing in the same way, but some libraries support only one mode.