This article needs additional citations for verification. (March 2019)
External Machine Interface (EMI), an extension to Universal Computer Protocol (UCP), is a protocol primarily used to connect to short message service centres (SMSCs) for mobile telephones. The protocol was developed by CMG Wireless Data Solutions, now part of Mavenir.
A typical EMI/UCP exchange looks like this :
The start of the packet is signaled by ^B (STX, hex 02) and the end with ^C (ETX, hex 03). Fields within the packet are separated by / characters.
The first four fields form the mandatory header. the third is the operation type (O for operation, R for result), and the fourth is the operation (here 30, "short message transfer").
The subsequent fields are dependent on the operation. In the first line above, '66677789' is the recipient's address (telephone number) and '68656C6C6F' is the content of the message, in this case the ASCII string "hello". The second line is the response with a matching transaction reference number, where 'A' indicates that the message was successfully acknowledged by the SMSC, and a timestamp is suffixed to the phone number to show time of delivery.
The full specification is available on the LogicaCMG website developers' forum, but registration is required.
The two-digit transaction reference number means that an entity sending text messages can only have 100 outstanding messages (per session); this can limit performance, but only over a slow network and with incorrectly configured applications on one's SMSC (for example one session, with number of windows greater than 100). In practice it does not have any impact on delivery throughput.
The EMI UCP documentation specifies a default alphabet of IRA (eq ASCII on 7bit). In practice users default to the GSM-7 alphabet, which is almost the same as ASCII on 7 bit, except for a few characters - for example '_' (underline).
- Short message peer-to-peer protocol (SMPP) also provides SMS over TCP/IP.
- Computer Interface for Message Distribution (CIMD) developed by Nokia