Professional Documents
Culture Documents
Eternity PMS Command
Eternity PMS Command
Eternity PMS Command
PMS Interface
Whats this?
The PMS is an application software used in hotels for better hotel administration and efficient customer care. In most
of the cases, it is required to integrate PBX with the PMS. However, to integrate PBX and PMS, a protocol needs to
be defined for exchange of information between the PBX and the PMS.
The Eternity supports following types of PMS protocols viz. None, Matrix Type 1, Matrix Type 2 and Micro Fidelio
PMS. The SE needs to program the system for compatibility with either one. The Eternity provides a well-defined
protocol to communicate with any PMS. This protocol is known as PMS Interface. The PMS Interface supports full
duplex communication over RS232. The PMS can communicate with the PBX by sending and receiving information,
any information that is exchanged between the PMS and the PBX is known as a message.
Micros Fidelio PMS:
The Eternity-ME and Eternity-GE can also be integrated with the Fidelio PMS by using the Matrix Fidelio PMS
integration protocol called 'Micros Fidelio PMS'. The Eternity supports following Micros Fidelio PMS:
Micros Fidelio PMS over RS232 (Communication Port)
Micros Fidelio PMS over TCP/IP (Ethernet Port)
For Micros Fidelio PMS over TCP/IP, SE should configure the PMS server IP Address and Port on which the
messages will be sent.
There are certain features which are defined in different way in Fidelio PMS as compared to other PMS used in
'Eternity-ME/Eternity-GE' Matrix Type1 and 2.
For example:
The Fidelio PMS discards the received Check-In request for the room which has Room Clean status - "Dirty" and
allows check-in only if the room status is 'inspected' and 'clean'. Whereas for Matrix Type1 and Matrix Type2, it is
possible to check-in a guest which has Room clean status - 'Not clean' and subsequently, the room status will be
changed as 'Guest In-Occupied'.
The GI and GO referred in the Fidelio PMS is, Guest Check-In (GI) and Guest Check-Out (GO), instead of usual
meaning as Guest-in and Guest-out.
The Micros Fidelio Protocol supports the 'Date' field in the 'YYDDMM' format. Hence, whenever communicating 'Date'
to the PMS, the PBX will send the dates in the 'YYDDMM' format to the Fidelio PMS. (YY = Year, DD = Date, MM =
Month).
'Data Base Synchronization' is supported for Micros PMS Interface on RS232 and TCP/IP.
Storing the 'Posting messages' rejected by PMS in Fault Log, is supported by Micros Fidelio over RS232 and TCP/IP.
Refer chapter System Fault Log for more information.
Setup for PMS Interface:
Following functional components are needed to make this interface work:
A computer with a spare serial port (not supplied by Matrix).
The PMS (not supplied by Matrix).
The Eternity (supplied by Matrix).
Locate a spare communication port on the PC.
Switch off the Eternity and the PC.
Connect the Eternity and the computer using the Matrix.
communication cable. This cable is supplied by Matrix as an optional item.
Switch on the Eternity and the PC.
Enter SE mode from any station.
Program the communication port of the Eternity for PMS interface using command 3602. For more details, please
refer How to program?.
Also program the communication port of the Eternity for other parameters like Baud rate, Start bit, Stop bit, etc. For
more details, please refer Communication Ports.
Exit SE mode.
The setup required from the Eternity side for the PMS is complete.
The MICROS-Fidelio PMS Interface hardware uses either DB-9 or DB-25 interfaces. DB-9 is the standard connector
interface. Micros Fidelio operates as a DTE (Data Terminal Equipment). If during communication through the COM
port, DSR and CTS signals go 'high', Micros Fidelio PMS will consider that, the Fidelio PMS user is connected for
communication. If these signals go 'low', Micros Fidelio PMS will consider that the Fidelio PMS user is connected.
How it works?
Matrix Type1 Protocol
Following table summarizes the flow of messages between the Eternity and PMS.
PMS to Eternity Eternity to PMS
PMS-Eternity synchronization SMDR OG Call Details
Check-In Mini Bar Details
Check-Out House Keeper ID Information
Guest In (Guest Present) DND
Guest Out (Guest Absent) Data Transfer (in fixed format)
Set/Cancel Alarms Room Status
Set/Cancel Message Wait Alarm Status
Set/Cancel DND Online OG SMDR Report
Alarm Status
Room Occupancy Display
Room Shift
Room Clean Display
Guest Name
Dynamic Lock Level
Guest Group Assignment
Data Transfer Request
SMDR OG Detail Request
Update Room Clean Status
Update Room Occupancy Status
STX
STX stands for start text. It marks the beginning of the message. It is a field of 1 byte identified by character 0X02 (i.e.
Hex 02). Due to this reason, Hex 2 will not be used in any other field except BCC (byte check code).
Feature Code
Feature Code follows the STX. Feature code is a field of 2 bytes. The feature code is a predefined code and unique
for each of the feature like Check-In, Check-Out, Guest In, Guest Out, etc. distinctly. For e.g. the feature code for
Check-In is 10, for Check-out is 11, etc. The length of the message depends on the feature Code. If the receptionist
wants to Check- In a guest, he/she needs to key in the station number as the parameter along with the message to
the PBX, but in case he/she wants to set an alarm at a station they need to pass the station number, the alarm type
and the date/time as the parameters to the PBX. The number of parameters is different in each case, and they
depend on the feature. As the number of parameters vary feature wise, the length of the message varies.
Message Count
Message count follows the feature code. Message Count field is one byte in length. This field is used to eliminate the
chances of execution of duplicate messages. Most of the PMS vendors use message count for the above purpose.
Message Count is incremented on delivery/receipt of ACK/error message/response message. The Eternity also
supports Message Count. The range of message count is 0-9 (mode 10). The message count is kept programmable
match it with that of PMS. In case the PMS does not support the message count, the message count at the PBX can
be also set to zero. However message count =0 might lead to duplication of messages. Consider following cases to
understand the significance of Message Count.
Case 1:
Initially, the Message count in PMS and in PBX is 0.
PMS sends a CheckIn message to the PBX with message count 0. PBX receives the message with message count
0. The received message is found to be of the proper format so the PBX executes it and sends an ACK signal to the
PMS and increments its own message count to 1. On receiving ACK, PMS increments its the count to1.
Now the message count in the PMS and the PBX is 1. The next message to be transferred will have the message
count 1.
Case 2:
Assume that Message count in PMS and in PBX is 0.
PMS sends a Check-In message along with a station number to the PBX with message count 0. PBX receives the
message with message count 0. The message is found to be of improper format by the PBX. It sends NAK signal to
the PMS. The PBX does not increment its the message count to 1. The message count at the PBX is still 0 and
awaiting the message with message count 0 from the PMS. On receiving NAK from PBX, PMS resends the message
with message count 0.
Case 3:
Assume that Message count in PMS and in PBX is 0.
PMS sends a Check-In message along with a station number to the PBX with message count 0. The message is of
proper format. The PBX executes it. PBX sends an ACK signal to the PMS and increments its own message count to
1. But the ACK signal is converted to NAK during transmission. On receiving NAK, PMS resends the message with
message count 0 (normal response to NAK). But the PBX is expecting a message with message count 1, so when it
receives a message with message count 0, it sends an ACK in response but does not go ahead with execution of the
current message since it is a duplicate message. Also it does not increment its message count. On acceptance of
ACK the PMS increments the message count to 1 and the next message to be transferred will be with the message
count 1.
Case 4:
Assume that Message count in PMS and in PBX is 0.
PMS sends a Check-In message along with a station number to the PBX with message count 0. The PBX identifies
message is of proper format and begins execution. During Execution the PBX realizes that the invalid station number
is keyed in. PBX sends an error message to the PMS and increments its own message count to 1. On receiving the
error message the PMS increments the message count to 1. It has to resend the previous message with a valid
station number. However the message count of that message will be 1.
Case 5:
Assume that Message count in PMS and in PBX is 0.
PMS sends an alarm status enquiry for a station to the PBX with message count 0. The PBX identifies message is of
proper format and begins execution. The execution at the PBX is complete. PBX sends a response message to the
PMS with the message count 0 and then increments its own message count to 1. The response message contains all
details about the alarm setting of the station. On receiving the response message the PMS increments the message
count to 1.
Process Code:
Process code follows the message count. Process code is a one byte field in length.
Type of Message Process Code
Original Message 1
Response Message 2
Error Message 0 or 3
When error message with process code 0 indicates there is a wrong parameter in the original message. Consider
messages like Check-In, which requires station number as a parameter. If the received value is not a station number,
the response is an error message with process code 0.
An error message with process code 3 indicates there is an execution error In the original message. Consider
messages like Room Shift which requires a source station number and destination station number. If the source
station is empty or the destination is already occupied, the original message cannot be executed and the error
message will bear the process code 3. Also when a request for alarm is being processed, if the alarm count is
already maximum then the response message is an error message with process code 3.
Message Data:
It is an optional field. The length of this field can vary from 0 to 121 bytes. All the features do not require this field.
Consider the three cases listed below:
If the PMS wants to synchronize itself with PBX, it only requests for synchronization. No additional parameters are
required.
In case of Check-in, the station to be checked-in is the message data.
In case of setting an Alarm at a station, the station number, the alarm type and the alarm day/time are in the
message data.
The number of additional parameters is different for different features. If the feature code requires one or more
parameters they are passed as message data in the message. Since the number of parameters is not fixed the length
of the message data field is also not fixed.
Parameters in the message data are of fixed length. However these parameters may not actually have the value with
the fixed length. In such cases null characters are padded to the values to make them full length fixed.
For e.g. The field length for a station no is 4 characters. Now in case the station number is 101 that is Checked In then
the PMS will pad NULL characters to 101 and send it in message data.
ETX:
ETX stands for end of text. It marks the end of the data. It is a field of 1 byte identified by character 0X03 (i.e. Hex 03).
Due to this reason, Hex 3 will not be used in any other field except BCC. (byte check code).
Messaging Protocols
All the communication between the PBX and the PMS follows a fixed protocol. The exchanged messages follow a fixed
format. The communication between the PMS and the PBX could be originated from either side. In either case one end is
the sending end and the other end is the receiving end. Both the ends are governed by a set of rules called messaging
protocols. The administration parameters like Acknowledge ment timer, Message Count, Retransmission count,
Retransmission request count are taken care by both the ends.
If the length of the data parameters (e.g. station number) is less than the size specified it must be appended with ~ to
match the size. For example, When a request for Check-In is sent the station number is expected as a data parameter.
The size specified for the station number is 4 bytes. If the station number happens to be 3 digits (300), then the PMS will
append a ~ along with the station number to match the specified size.
Following two encoded Signals are used for efficient message exchange.
Encoded Signal Value
ACK Hex 6 (fixed)
NAK Hex 15 (fixed)
Null Hex 00
Message Format
Note:
The station number is expected to be of 5 digits. If it is less than 5, pad it with Space (ASCII 32).
Message Count is of range 0 to 9.
Check-In:
A request by the receptionist for checking in a guest at a particular station.
STX-10-Message Count-1-Station
PMS to PBX
Number-ETX-BCC
PBX to PMS ACK or
NAK or
STX-10-Message Count-0-ETX-BCC or
STX-10-Message Count-3-ETX-BCC
Check-Out:
A request for checking out a guest from a particular station.
PMS to PBX STX-11-Message Count-1-Station Number-ETX-BCC
Please ensure the COM port is assigned for Hotel Report generation before
issuing this command.
PBX to PMS ACK or
NAK or
STX-11-Message Count-0-ETX-BCC or
STX-11-Message Count-3-ETX-BCC
Guest-In:
A request for Guest-In at a particular station by the receptionist.
PMS to PBX STX-12-Message Count-1-Station Number-ETX-BCC
PBX to PMS ACK or
NAK or
STX-12-Message Count-0-ETX-BCC or
STX-12-Message Count-3-ETX-BCC
Guest-Out:
A request for checking out a guest temporarily from a particular station by the receptionist.
PMS to PBX STX-13-Message Count-1-Station Number-ETX-BCC
PBX to PMS ACK or
NAK or
STX-13-Message Count-0-ETX-BCC or
STX-13-Message Count-3-ETX-BCC
Set/Cancel Alarm:
A request for set/cancel an alarm at a station by the receptionist.
PMS to PBX STX-16-Message Count-1-Station Number-Alarm Type-Alarm Parameter-ETX-BCC
Where,
Alarm Type (Alarm Parameter)
0 = Cancel all Alarm (--)
1 = Time Alarm (HHMM)
2 = Daily Alarm (HHMM)
3 = Date and Time Alarm (DDMMYYYYHHMM)
PBX to PMS ACK or
NAK or
STX-16-Message Count-0-ETX-BCC or
STX-16-Message Count-3-ETX-BCC
Guest Name:
A request for associating a guest name at a station by the receptionist.
PMS to PBX STX-17-Message Count-1-Station Number-Guest Name-ETX-BCC
Where,
Guest Name is of max. 12 character, if lessthan 12 terminate with Null.
PBX to PMS ACK or
NAK or
STX-17-Message Count-0-ETX-BCC
Set/Cancel DND:
A request by the receptionist to set or cancel the DND at a station.
PMS to PBX STX-18-Message Count-1-Station Number-Flag-ETX-BCC
Where,
Flag 0 = Cancel, 1 = Set.
PBX to PMS ACK or
NAK or
STX-18-Message Count-0-Station Number-Flag-ETX-BCC
Room Shift:
A request by the receptionist to shift a guest from a source station to a destination station.
PMS to PBX STX-19-Message Count-1-Station Number-Destination Station Number-ETX-BCC
PBX to PMS ACK or
NAK or
STX-19-Message Count-0-ETX-BCC or
STX-19-Message Count-3-ETX-BCC*
* means destination station is occupied or source station is not occupied.
Alarm Status:
A request by the receptionist to know the alarm status of a particular alarm type at a station.
PMS to PBX STX-20-Message Count-1-Station Number-Alarm Type-ETX-BCC
Where,
Alarm Type is of the range 1 to 3.
PBX to PMS ACK or
NAK or
STX-20-Message Count-0-ETX-BCC
(Invalid Parameter or command error)
STX-20-Message Count-2-Station Number-0-ETX-BCC (No alarm is set on the station)
STX-20-Message Count-2-Station Number-Alarm Type-Alarm Parameters-ETX-BCC
(First alarm set on the station is retrieved)
**
Parameter No. Description Size in Byte/s
01 Flexible number of the extension 5
02 Guest Name 12
03 Room Occupancy Status 1
04 Room Clean Status 1
05 Alarm-Time 5
06 Alarm-Daily 5
07 alarm-Date and Time 15
08 Dynamic Lock Level 1
09 Message Wait 1
10 Guest Group 2
11 DND Status 1
##
Parameter No. Description Size in Byte/s
01 OG String 2
02 Check-In Call Status 1
03 Check-Out Call Status 1
Space 4
04 Flexible Number 4
Space 1
05 Trunk Number (Software Port) 3
Space 1
06 Telephone Number 16
Space 1
07 Date 10
Space 1
08 Time 5
Space 1
09 Duration 8
Space 1
10 Pulse Rate (Optional) 6
Space 1
11 Units 4
Space 1
12 Cost 7
Space 1
13 Calls 1
14 Call Type 1
15 Maturity 1
16 Line Feed 1
Mini Bar:
The maid transfers the details of the Mini Bar then the PBX to the PMS by issuing the command 1158-Item Number-Item
Quantity for the station.
PBX to PMS STX-51-Message Count-1-Station Number-Item Number-Item Quantity-ETX-BCC
Item Number is from 00 to 99.
Item Quantity is from 00 to 99.
PMS to PBX ACK or
NAK or
If none of them is received before the acknowledgement timer decreases to zero
the next operation begins.
Maid-In/Maid-Out:
A maid at the station issues Maid-In command when she enters a room and issues Maid-Out command when she exits
the room. (Maid-In: 1054-Flexible Number-Maid ID, Maid-Out: 1055-Flexible Number-Maid Out).
PBX to PMS STX-52-Message Count-1-Station Number-Maid ID-Flag-ETX-BCC
Where,
Maid ID is from 00 to 99.
Flag 0 = Maid-Out, 1 = Maid-In
PMS to PBX ACK or
NAK
Message Wait:
Message wait can be set by the VMS or a station of the PBX. This should be informed to the VMS.
PBX to PMS STX-53-Message Count-1-Station Number-Flag-ETX-BCC
Where,
Flag 0 = Message Wait Cancel,
1 = Message Wait Set,
2 = Message Wait to served.
PMS to PBX ACK or
NAK
Alarm:
Alarm can be set/cancel by the guest. This should be informed to the PMS.
PBX to PMS STX-54-Message Count-1-Station Number-Flag-ETX-BCC
Where,
Flag 0 = Alarm Cancel, 1 = Alarm Set, 2 = Alarm Served,
3 = Alarm Acknowledgement, 4 = Alarm not Answer
PMS to PBX ACK or
NAK
Message Format
The format of the exchanged message is as given below.
STX-Function Code-Status Code-Message Parameters-ETX
STX
STX stands for Start of Text. It marks the Start of data. It is identified by the character 0x02.
Function Code
It always follows the STX. This field is of 3 bytes. The Function Code is a predefined code and unique for each of the
feature. It is combination of alphabets and numbers. If the function code is less than 3 bytes it is padded with ASCII
blank character.
Status Code
This code carries additional information of the message. For e.g. Messages like Check-In and Check Out have the
same function code. The value in the status code field are important to identify whether the message is a check-in
message or checkout message.
Message Parameters
These are additional values required to resolve the message and dependent on the messages. For messages like
Check In/Check Out only the flexible number of the room is sent as the parameter. For messages like guest name
programming the name of the guest and the extension number are sent as parameters.
ETX
ETX stands for End of Text. It marks the end of data. It is identified by the character 0x03.
Messaging Protocols
All the communication between the PBX and the PMS follows a fixed protocol. The communication between the PMS
could be originated from either side. In either case one end is the Sender and the other end is the Receiver. Both the
ends are governed by a set of rules called messaging protocols.
The parameters used in the messages have a definite length. If the length of any parameter is less than the default size
specified then it must be padded with ASCII blank char.
Parameter Length Expected
Extension Number 5 Digits
Name 20 Characters
Status Code 2
Function Code 3
Feature Message
Check-In: A request for checking in a guest.
STX-CHK-1-SP-Extension Number-ETX
Communication Messages
Are You There?
STX-AREYOUTHERE-ETX
General Reset
STX-GRS SP SP SP SP SP SP SP-ETX
End (Message used to indicate the end of the general reset process).
STX-END SP SP SP SP SP SP SP-ETX
Communication Messages
Request to initialize
STX-RQINZ SP SP SP SP SP-ETX
<STX><data><ETX><LRC>
STX (Hex 02) stands for Start of Text. It marks the beginning of the message. It is a field of one byte. It is immediately
followed by the data portion of the record. Due to this reason, Hex 02 will not be used in any other field except
Longitudinal Redundancy Character.
ETX (Hex 03) stands for End of Text. It marks the end of the data portion; however it is not the part of the data. It is a
field of 1 byte. Due to this reason, Hex 03 will not be used in any other field except LRC.
LRC (single ASCII character) stands for Longitudinal Redundancy Character (or Vertical Parity) It is a field of one byte
in length. It always follows an ETX. The LRC is calculated using a seed value of 0, and bitwise XORing each byte,
following the <STX>, including the <ETX>. The LRC is transmitted as a single ASCII character immediately following
the <ETX> as the final character of the message record. It is used for checking the validity of the data transferred.
The receiver end calculates the LRC for the messages and matches it with the received LRC, if both matches the
receiver replies with <ACK> and processes the record; otherwise the receiver replies with <NAK> and discards the
last received record. The LRC may be any of the 256 characters in the ASCII character set, so receiving routines
should be able to distinguish by the LRC's position in a record that it is not a link control byte if the LRC is an <STX>,
<ETX>, etc.
ACK (Hex 06), it is sent by receiver for positive acknowledgement of receipt of a valid transmission.
NAK (Hex 15), sent by the receiver for Negative Acknowledgment. It requests the sender to retransmit the last record
because the receiver detected a transmission error. The records which are responded with <NAK>, are not
processed by the receiver end at higher level.
ENQ (Hex 05) is used to re-inquire for logical layer response when an incorrect [Not <ACK> or <NAK>] or no
response was received. After transmitting a record, the sender should receive a response within 3 seconds. If no
response is received by the end of the timeout, or an unexpected character is received, the sender should transmit an
<ENQ>. The Micros Fidelio PMS retries up to 3 times. If an <ACK>/<NAK> response is never received, the record is
discarded and error is logged.
Messaging Protocols
All the communication between the PBX and the PMS follows a fixed protocol. The exchanged messages follow a
fixed format. Both the ends are governed by a set of rules called 'Messaging Protocols'.
The administration parameters like Acknowledgement timer, Retransmission count, Retransmission request count
shall be programmed in the PBX by considering the settings of the Micros Fidelio PMS.
The communication between the PMS and the PBX could be started once the PMS link is configured successfully
between the PMS and PBX.
Refer topic 'Inform Call Cost to PMS' in this chapter for information regarding Posting Simple and Posting Answer
fields.
Following scenarios (A to D) explain how the PMS link can be activated or ended:
Scenario : A PMS and PBX are started
Scenario : B PBX is restarted and can not know whether the PMS has received 'LR' before.
Scenario : C Link End
Scenario : D Alive Check
STXLS|DA001015|TI123045|ETX
ACK/NAK
On receipt of LS message from PMS, the PBX shall
respond with 'Link Description (LD)' message
STXLD|DA001015|TI123046|V#6|IFPB|ETX
Where,
DA = Date
TI = Time
V# = Vendor's version no. (We shall send Master's
firmware Version No.)
IF = Interface Type
PB = PBX
ACK / NAK
STXLA|DA001015|TI112349|ETX
ACK/NAK
The PMS verifies the LR records received and responds
the LA message with LA message.
STXLA|DA001015|TI112350|ETX
ACK/NAK
Messages can be exchanged between PMS and PBX now
..
Scenario : B PBX is restarted and can not know whether the PMS has received 'LR' before
Fidelio PMS to PBX PBX to Fidelio PMS
PBX shall send the LS message to signal restart:
STXLS |DAYYMMDD| |TIHHMMSS|ETX
In this example, Date is 15-Oct-2000 and Time is 12:30:45
PM, the message would be:
STXLS|DA001015|TI123045|ETX
ACK/NAK
Case - (I) PMS interface will send LS now, in case it has
not received any Link Record (LR) since it was last
restarted:
STXLS|DA001015|TI123045|ETX
ACK/NAK
In this case the PBX has to send the LD and LR records
messages (same as described in scenario A)
Scenario : B PBX is restarted and can not know whether the PMS has received 'LR' before
Fidelio PMS to PBX PBX to Fidelio PMS
After sending all the required LR records, the PBX shall
send the 'Link Active' message to indicate that the link is
now active and PMS may start sending buffered or real
time data.
STXLA|DA001015|TI112349|ETX
ACK/NAK
The PMS verifies the LR records received and responds
the LA message with LA message.
STXLA|DA001015|TI112350|ETX
ACK/NAK
Messages can be exchanged between PMS and PBX now
..
STXLE|DA001015|TI123045|ETX
ACK/NAK
The PMS will respond LE message with LE
STXLE|DA001015|TI123045|ETX
ACK/NAK
Further data record can be exchanged now from either side until Link Active status has been reached again (see
Scenario A and B)
STXLS|DA001015|TI123045|ETX
ACK/NAK
The PMS will respond LS message with LA because link is
already established
STXLA|DA001015|TI123045|ETX
Examples:
1. Normal transmission:
Sender Receiver
<STX><data><ETX><lrc>
<ACK>
Note:
For normal transmission, the receiver should respond with an <ACK> within 3 seconds.
Sender Receiver
<STX><data><ETX><lrc>
<ACK>
Note:
If the receiver does not receive a valid LRC, it should respond with a <NAK> within 3 seconds. The sender then
retransmits the original message. If the message cannot be successfully transmitted after three retries (total of 4
transmission attempts), the message is discarded, and both systems should log a transmission error.
<ENQ>
<previous response>
Note:
If the sender receives an invalid response (not <ACK> or <NAK>), or does not receive any response within '3' second
timeout, it should send an <ENQ> within 3 seconds. The receiver then retransmits the original response.
Feature Message
Alarm (Wakeup)
'Alarm' is referred as 'Wake Up call' in the Micros Fidelio PMS.
Following messages are supported in the Fidelio PMS for the Alarms.
WR - Wakeup request, to set Alarm
WA - Wakeup answer, to notify the Alarm call status to PMS
WC - Wakeup clear, to cancel Alarm
PMS can send the WR and WC record ID with appropriate fields to request or clear the alarm to PBX. Similarly, if
the Alarm is set from the PBX, the PBX will inform the same to PMS.
Message Format
Set Alarm (Wakeup Request)
Following table contains mandatory fields for the Wakeup Request (WR):
Record ID Field ID Description Format Direction
WR DA Date YYMMDD Both
(Wakeup RN Room Number Alpha Numeric, max 8 Both
Request)
TI Time HHMMSS Both
Examples:
Request from the PMS to set a wakeup request (WR) for Room Number (RN) 2781 at 7 AM (TI) on 31 October
2000 (DA):
Alarm is set using the PMS Interface
PMS to PBX PBX to PMS
STXWR|RN2781|DA001031|TI070000|ETX
ACK or NAK
The PBX will response (WA) that the above wakeup call was unsuccessful (AS) because the telephone was busy.
The Time (TI) is the requested wakeup time (NEVER the system time):
Status of alarm call is reported by PBX to PMS
PBX to PMS PMS to PBX
STXWA|RN2781|DA001031|TI070000|ASBY|ETX<lrc>
(in case alarm call failed because of station busy condition)
OR
STXWA|RN2781|DA001031|TI070000|ASNR|ETX<lrc>
(in case alarm call remain unanswered)
ACK or NAK
Cancel Alarm
This is referred as Clear Wakeup call in Micros Fidelio PMS.
The Alarm can be cleared by PBX or PMS.
Following are the mandatory fields to convey the clear wakeup call information.
Message Format
Record ID Field ID Description Format Direction
WC DA Date YYMMDD Both
(Wakeup RN Room Number Alpha Numeric, max 8 Both
clear)
TI Time HHMMSS Both
Example:
The PMS will send following message to PBX, in case the alarm is to be cleared.
Alarm request is cancelled using the PMS Interface
PMS to PBX PBX to PMS
STXWC|RN2781|DA001031|TI070000|ETX
ACK or NAK
Note:
Structure of the TI field is HHMMSS. However, the system will send 'seconds' as they were received in the WR.
This will properly link a wakeup result to the respective wakeup request.
Message Format
Record ID Field ID Description Format Direction
GI GN Guest Name Alpha Numeric (40 chars, max) From PMS
(Guest Check-In) RN Room Number Alpha Numeric, max 8 From PMS
SF Swap Flag No data to be sent with this field, This field will be From PMS
included only while sending GI record for DB swap
Note:
Fidelio PMS supports 40 characters for the guest name, while the PBX supports only 12 characters for the Guest
Name. So, in case the Guest Name string received from PMS is longer than 20 characters, only first 12 characters
will be stored as guest name, while the others will get ignored.
Example:
Guest (Mr. Vivek) checks in room number 2001. The PMS will send following message to give information to PBX.
PMS to PBX PBX to PMS
STXGI|RN2001|GNMr.Roger|ETX
ACK or NAK
Message Format
Record ID Field ID Description Format Direction
Guest Check Out (GO) RN Room Number Alpha Numeric, max 8 From PMS
SF Swap Flag No data to be sent with this field, This field will be From PMS
included only while sending GO record for DB swap
Example:
Guest checks out from room number 2001. The PMS will send following message to give information to PBX.
PMS to PBX PBX to PMS
STXGO|RN2001|ETX
ACK or NAK
Message Format
Record ID Field ID Description Format Direction
Guest Change (GC) RN Room Number (Destination Room) Alpha Numeric, max 8 From PMS
RO Old Room Number (Source Room) Alpha Numeric, max 8 From PMS
Example:
Guest has been moved from room number 2001 to room number 3001.
The PMS will send following message to give information to PBX.
PMS to PBX PBX to PMS
STXGC|RN3001|RO2001|ETX
ACK or NAK
Message Wait
The message wait indication can be set from the PMS.
Fidelio PMS sends message wait indication under "Room Equipment" (RE) record. Following are the required field
ID for the Message wait information.
Message Format
Record ID Field ID Description Format Direction
Room Equipment RN Room Number Alpha Numeric, max 8 From PMS
(RE) ML Message Lamp Status Y/N From PMS
Example:
Message wait indication for room no. 3001 is set/cancel by PMS.
The PMS will send following message to give information to PBX.
Do Not Disturb
Do Not Disturb (DND) feature can be set from the PMS.
Fidelio PMS sends DND information using "Room Equipment" Record ID (RE). Following are the required field ID
for the Message wait information.
Message Format
Record ID Field ID Description Format Direction
Room Equipment RN Room Number Alpha Numeric, max 8 From PMS
(RE) DN Message Lamp Status Y/N From PMS
Example:
PMS requests PBX to Set/Cancel the DND for Room no. 3001.
The PMS will send following message to give information to PBX.
PMS to PBX PBX to PMS
STXRE|RN3001|DNY|ETX (to set DND)
OR
STXRE|RN3001|DYN|ETX (to cancel DND)
ACK or NAK
Message Format
Record ID Field ID Description Format Direction
RE (Room RN Room Number 8 digits max Both
Equipment Status) RS Room Status 1 digit (1 to 6) To PMS
Based on the codes received from the PBX in the RS field, the PMS interprets the room status as shown below:
Code sent Room Maid Status Meaning
by PBX (interpretation of
in RS field PMS)
1 Dirty/Vacant Room is vacant and dirty, so should be cleaned first, and hence can not be
allotted.
2 Dirty/Occupied Room is occupied but dirty and hence requires cleaning.
3 Clean/Vacant Room is Vacant and cleaned but not inspected yet and without inspection can
not be allotted.
4 Clean/Occupied Occupied room has been cleaned and inspection is pending. Without
inspection can not be allotted.
5 Inspected/Vacant Vacant room is cleaned and inspected and hence can be allotted.
6 Inspected/Occupied Occupied room is cleaned and inspected.
The types of Room Clean and Room Occupancy Statuses maintained by the PBX are shown below:
Room Clean Status
Clean
Room is not clean
Clean but inspection pending
Following table shows the mapping of the room statuses between PBX and Fidelio PMS:
Room Status in the PBX referred as, Equivalent Status in the Fidelio PMS is referred as,
Clean Inspected
Room is not clean Dirty
Clean but Inspection Pending Clean
Vacant Vacant
Occupied Guest-In/Guest Out Occupied
PBX will check the 'Room Occupancy' status plus the 'Room Clean' status of the room and will inform to PMS
based on that. Following table explains how the PBX will take the decision about the code to be sent in 'RS' field.
(room clean status) and (Occupancy status) of a room in the Room Status to be sent to PMS in the
PBX 'RS' field
(Room is not clean) and (Vacant) 1
(Room is not clean) and (Occupied Guest in/Guest out) 2
(Clean but inspection pending) and (Vacant) 3
(Clean but inspection pending) and (Occupied Guest in/Guest out) 4
(room clean status) and (Occupancy status) of a room in the Room Status to be sent to PMS in the
PBX 'RS' field
(Clean) and (Vacant) 5
(Clean) and (Occupied Guest in / Guest out) 6
When the above specified combination of status arises for the room, the PBX will inform the PMS by sending the
RE message record.
Example:
In the PBX, the room occupancy status of the room no. 2001 is 'vacant' and room clean status is 'clean'.
The PBX will send following message to notify the PMS.
STXRE|RN2001|RS5|ETX<lrc>
Message Format
Table A
Record ID Field ID Description Format Direction
PS RN Room Number Alphanumeric (8 char. max) To PMS
(Posting Simple) DA Date (when call is made) YYMMDD To PMS
TI Time of call HHMMSS To PMS
PT Posting Type "C" (Direct charge) To PMS
TA Total Amount 15 Chars max. To PMS
DD Dialed Number Numeric (max 22 digits) To PMS
P# Sequence Number (SMDR OG Sr. No) Numeric (max 4 digits) To PMS
SC Service Charge (as programmed) 15 chars max To PMS
The PMS responds this PS message by Posting Answer message with following fields:
Record ID Field ID Description Format Direction
PA (Posting Answer) RN Room Number Alphanumeric (8 char. max) From PMS
DA Date YYMMDD From PMS
TI Time HHMMSS From PMS
AS Answer Status OK (command completed successfully) or NG From PMS
(guest not found, i.e. error)
P# Sequence Number Numeric (max 4 digits) To PMS
Example:
Guest of room No. (RN) 2781 made a call to the number (DD) 004989920920, for which call cost calculated by the
PBX is 10.50, Service charge is 2.00 and the call is stored in the SMDR OG at serial no. 1729. To give this information
to PMS the PBX will send Posting Simple (PS) record and give this information in the relevant fields. (call on 15th
Sept, 2000 at 12:35:45 hours).
PBX to PMS PMS to PBX
STXPS|RN2781|TA10.50|DA000915|TI123545|P#1729
|DD004989920920|PTC|SC2.00|ETX<lrc>
ACK or NAK
When the Posting is accepted by the PMS, PMS replies with PA (Posting Answer) message.
PMS to PBX PBX to PMS
STXPA|RN2781|ASOK|P#1729|DA000915|TI123545|ETX
ACK or NAK
The PBX will use the Posting Simple (PS) record ID for this posting. The list of Field IDs to be sent by the PBX in the
PS message, is listed in the following table (Table B).
Message Format
Table B
Record ID Field ID Description Format Direction
PS (Posting RN Room Number Alphanumeric (8 char. max) To PMS
Simple) DA Date (when call is made) YYMMDD To PMS
TI Time (when call started) HHMMSS To PMS
PT Posting Type "T" (Telephone charge, to be calculated by PMS) To PMS
DU Duration of call HHMMSS To PMS
DD Dialed Number Numeric (max 23 digits) To PMS
P# Sequence Number Numeric (max 4 digits) To PMS
(Sr. No. of SMDR OG)
MP Metering Pulse (no. of units) Numeric (max 10 digits)
The PMS will send application level response using PA record ID.
Record ID Field ID Description Format Direction
PA (Posting RN Room Number Alphanumeric (8 char. max) From PMS
Answer) DA Date YYMMDD From PMS
TI Time HHMMSS From PMS
AS Answer Status OK (command completed successfully) From PMS
/ NG (no guest found, i.e. error)
P# Sequence Number Numeric (max 4 digits) To PMS
Important Point:
The call duration is stored in the PBX in seconds, while the PMS wants it in the HHMMSS format. So while
sending the duration to PMS, the PBX will convert the duration in to HHMMSS format and send it to PMS.
Example:
Telephone posting (PTT, i.e. call to be costed by PMS by duration and dialed digits) to Room (RN) 2781, duration
(DU) 3 minutes, 45 seconds, Metering Pulse (MP) 4, on 15 September 2000 (DA) at 12:42:54 (TI), SMDR OG
sequence number (P#) 1731, dialed digits (DD) 5106850320, the PBX will send following message.
Note:
Posting (both T and C types) of the call charges can be made by the PBX to PMS on call by call basis or at
checkout as programmed in the PBX.
Database(DB) Synchronization Records, are used to request an initialization or refresh of the PBX database, and to
indicate the start or end of that Resync as mentioned below:
DR - Database Resync request
DS - Database Resync start
DE - Database Resync end
These records are used to request an initialization or refresh of the PBX database, and to indicate the start or end of
that Resync. With few exceptions, the PMS considers its databases as the 'master copy'. As the PMS can intermix
database records with real-time records, the DS and DE records ensure that the PBX identifies its request correctly
and that all database resync information has been sent.
'Database swap' (DB-swap) is used to synchronize the current status of guest rooms between the two systems.
The 'database swap' includes only check-in and checkout information.
The records sent as part of the database resync are the same as sent during real-time situations with the addition of
the swap flag field (SF). This allows the PBX to determine the difference between the resync records and real-time
messages.
Resync records will contain the swap flag field (SF), while real-time records will not contain the SF field.
How to Start Database Synchronization?
The database synchronization is initiated from PMS interface. Hence the Eternity does not support DS, DR and DE
messages in the LR records.
However the Eternity supports these database synchronization messages and maintains the Room Status informed
by PMS during database swap process.
Please note that during DB-Swap records should not be sent to the Fidelio interface, as a possible response (e.g. a
PA towards a received PS) may not be returned as next record but only after some further DB-Swap records.
Message Example:
The PMS initiates Database synchronization.
In following example, ACK/NAK is applicable only for serial communication (on TCP/ IP, ACK / NAK is not required).
Note:
In the record (STXGI|RN1003|ETX), the message doesn't contain the SF flag. This means that it is a real time
message received from the PMS and not a part of the database synchronization.
The GI and GO messages contain the SF field. It indicates that the message is part of database synchronization.
How to program?
Use command '1056' to transfer the details of the Mini Bar to PBX. Refer chapter 'Hotel Application'.
Message Format
The Minibar articles consumed information will be sent using the PS record ID with the following fields.
Record ID Field ID Description Format Direction
PS (Posting Simple) RN Room Number Alphanumeric (8 char. max) To PMS
DA Date YYMMDD To PMS
TI Time HHMMSS To PMS
PT Posting Type "M" (Minibar charge) To PMS
MA Minibar Article Numeric (max 4 digits) To PMS
M# Number of Articles Numeric (max 2 digits) To PMS
The PMS responds the PBX by Posting Answer message (PA) with following Field IDs.
Record ID Field ID Description Format Direction
PA (Posting RN Room Number Alphanumeric (8 char. max) From PMS
Answer) DA Date YYMMDD From PMS
TI Time HHMMSS From PMS
AS Answer Status OK (command completed successfully) or NG (no guest, From PMS
i.e. error)
Example:
Minibar posting (PTM) to Room (RN) 2781, guest consumption: article (MA) 1450 2 (M#) times and 1501 3 times,
on 15 September 2000 (DA) at 12:42:54 (TI).
PBX to PMS PMS to PBX
STXPS|RN2781|PTM|MA1450|M#2|MA1501|M#3|
DA000915|TI124254|ETX<lrc>
ACK or NAK
Note:
Posting Type (PT) is sent as M to indicate that the PMS should calculate the charges itself based on article
number (MA)/articles consumed (M#). This will be done even if a pre-calculated charge is sent. If MA is sent but
no M#, the PMS considers the article count (default) to 1. If these fields occur more than once in a record, they
must occur in matched pairs.
MA MUST always be sent right before M#, regardless if one or several pairs are sent, to clearly identify which
count belongs to which article number. The value in M# must be greater than '0'.
Note:
The SA and SE will take care of this.
Message Format
The PMS sends the information in the 'RE' record ID. Following field IDs are used to convey the information.
Record ID Field ID Description Format Direction
RE (Room RN Room Number Alphanumeric 8 digits max. Both
Equipment Status) CS Class of Service 1 digit (0 to 3) From PMS
The PMS refers this facility as 'Class of Service', using which it can ask PBX to make any of the following setting
for particular room's station by sending single digit code (from 0 to 3).
Code sent by PMS in CS field Meaning
0 Barred/hotel internal only
1 Local
2 National
3 No Restriction
In PBX, this requirement can be achieved by using the Dynamic Lock levels and allowed denied lists smartly.
Toll control can be achieved in the PBX by using the allowed-denied number list. The PBX supports 4 different
types of the dynamic toll control lock levels, and each lock level is assigned allowed denied list. You can program
the table as shown below for the lock levels.
Toll Control (Level - 0) Dy. TC Level-1 Dy. TC Level-2 Dy. TC Level-3
WH BH NH
AL DL AL DL AL DL
AL DL AL DL AL DL
1 1 1 1 1 1 1 3 1 4 1 2
Allow all calls Allow Local only Allow Local + STD calls Deny all calls
PBX will associate the codes received from PMS in CS field with the appropriate toll control lock levels as shown
below:
Code sent by PMS Corresponding 'Dynamic Toll Control Lock Level' to
in CS field be set by the PBX for the received CS - Code
0 3
1 1
2 2
3 0
This means, if the PMS sends the CS value '0', the PBX will set dynamic toll control level 3 for that room, and
accordingly for other CS values as shown in above table.
Note:
If SE changes any of default configuration related to number lists assigned in the dynamic toll control levels, he will
do it very carefully by keeping the above mapping (of CS field ID and Toll control level) in mind.
Example:
The PMS informs the PBX to bar all OG calls for Room No.2001.
The PMS sends following message to PBX.
PMS to PBX PBX to PMS
STXRE|RN2001|CS0|ETX
ACK or NAK
On receiving this message, the dynamic toll control lock level 3 will be set for the Room no. 2001.
How to program?
Please note Step 4 to Step 10 are required only if the PMS protocol chosen is Matrix Type1.
Step 1
Use following command to program PMS protocol type:
3604-PMS Protocol Type
Where,
PMS Protocol Type Meaning
0 None
1 Matrix Type 1
2 Matrix Type 2
3 Micros Fidelio
Note:
When 'Micros Fidelio' protocol is used, following configuration parameters are not significant:
Send message count
Receive message count
Step 2
Use the following command to set the communication port for a PMS process:
3602-Communication Port
Where,
Communication Port Meaning
0 None
1 COM Port 1
2 COM Port 2
3 Ethernet Port
By default, Communication Port is 0.
Step 3
Refer chapter Message Wait to assign a message wait group.
This is useful in features like message-wait. The message wait request from the PMS sets a message wait at the guests
station. For the effectiveness of execution of this feature there needs a station that will attend the guest and pass on the
messages when he returns. Generally this station is the receptionists station.
Step 4
Use the following command to program OG SMDR mode:
3605-Mode
Where,
Mode Value Meaning
1 Dont send SMDR data with PMS
2 Send SMDR data on call by call basis
3 Send SMDR data of all the calls done by a guest at the time of checkout
By default, Mode is 1.
Step 5
Use the following command to set the Acknowledgment timer:
3606-Acknowledgment Timer
Where,
Acknowledgment Timer is from 001 to 255 seconds.
By default, Acknowledgment Timer is 003.
Acknowledgment timer is the time for which the sender of the message waits for a response (ACK/NAK/Error Message/
Response Message) from the receiver.
Step 6
Use the following command to set the Send Message Count:
3607-Send Message Count
Where,
Send message count is from 0 to 9.
By default, Send Message Count is 0.
Step 7
Use the following command to set the Receive Message count:
3608-Receive Message Count
Where,
Receive Message Count is from 0 to 9.
By default, Receive Message Count is 0.
Step 8
Use the following command to set Retransmission count:
3609-Retransmissions Count
Where,
Retransmissions Count is from 0 to 9.
Retransmission count is the maximum number of times the message can be retransmitted.
By default, Retransmission Count is 5.
Step 9
Use the following command to set Retransmission Request count:
3610-Retransmission Request Count
Where,
Retransmission Request count is from 0 to 9.
Retransmission request count is the maximum number of times the NAK signal can be sent.
By default, Retransmission Request Count is 5.
Step 10
Use the following command to assign default PMS parameters:
3601
On issuing this command the following parameters are set to their default values:
Parameter Value
Acknowledgement Timer 005 sec.
Send Message Count 0
Receive Message Count 0
Retransmission Count 5
Retransmission Request Count 5
OG SMDR Mode 3
This command should be used only if required.
Step 11
Use the command to start/abort PMS process from the port:
3603-Code
Where,
Code Meaning
0 Abort
1 Start
By default, Code is 0.
On issuing command 3603-1, the data transfer between PMS and port (based on command 3605 begins). Now no other
process can use the port. On issuing 3603-0, the port is free from the PMS process and any other process can use it.
Example:
Hotel Ashoka wants to use Matrix Type 2 PMS with Eternity. Following are the constraints.
Communication port 2 of the Eternity is free.
The Operator station is 101. (DKP: S/w port number = 001).
Outgoing calls should be printed as and when they are made.
Response time for a message should not be greater than 10 seconds.
The PMS is programmed for following constraints:
Send message count = 3.
Receive message count = 8.
Retransmission count = 4.
Retransmission request count = 5.
Solution:
3604-2
3602-2
3605-2
3606-010
3607-3
3608-8
3609-4
3610-5
Listening Port
Program the port number on which the Eternity would listen for messages sent by PMS server. The Eternity will also use
this as Source Port while sending the messages to the PMS server.
SE should not program the Listening Port for web server same as Listening port of Eternity for PMS. If SE tries to
program same port he will get error tone.
Important Point:
When PMS type is Micros Fidelio, the Hotel application features: Minibar and Room Clean Status will not work in the
condition mentioned below:
PMS Type = Micros Fidelio, and
PMS Process = Start, and
Destination Port = COM1/COM2/Ethernet, and
When PMS Status = Down, i.e. Link End is received from PMS server or Link configuration is not yet completed
successfully.
Relevant Topics:
1. CAS Interface 188
2. Communication Ports 231
3. Hotel Application 398
=X=X=