|
|
|
X64 Wireless Terminals |
|
|
|
|
|
|
|
Restaurants Connection |
|||
|
|
|
|
|
Versão x.9123
3 Change the Configuration A (Enter to visualize options) 5 Change the C Configuration (Enter
to visualize options)
"-<P"+chr(1) Without data Packages, with Header "-->" "-<P"+chr(2) Data Packages, active
Send a special message to put in upload plus mode and clear all the PLUS (version
> 6.918)
Connection with DLL - RIOCOM.DLL
The DLL was programmed using a 32 bits language. Inmediately, all the argumets of int type must be considered a point of 32 bits. The languages that use points of 16 bits must make a functions' prototype using long int instead of int. All the described functions always return a entire error code. 0 --> OK, succeeded
operation
int __stdcall radio_set_entry( int entry_no, char *name)
This function updates the image which the DLL has got about the memory of the radio terminal hardly for a position. This update must be made for all the positions to send using the radio_upload_entries function. (see bellow)
Parameters:
|
|||
|
|
|||
|
|
|
|
0 |
OK |
|
|---|---|---|---|
|
|
1 |
NO_MESSAGE |
there are no messages to read from the buffer |
|
|
2 |
INVALID_COM_PORT |
nonexistent port or port already in use by another program |
|
|
3 |
GENERIC_ERROR |
generic error |
|
|
4 |
NO_RESPONSE |
the DLL did not obtain an answer from the antenna |
|
|
|
|
|
|
|
|
int __stdcall radio_set_entry( int entry_no, char *name)
This function updates the image that the DLL has about the memory of the radio terminal hardly for a position. This update must be made for all the positions to send by using the function radio_upload_entries. (see bellow) Function:
Parameters:
|
|
|
0->9 |
Reserved |
|
|
10->13 |
NOT USED |
|
|
14 |
"Table" |
|
|
15 |
"Dish Quantity" |
|
|
16 |
"Sending" |
|
|
17 |
NOT USED |
|
|
18 |
NOT USED |
|
|
19 |
"Number of People" or "PLACE" |
|
|
20 |
"Other" |
|
|
21->27 |
Name of the "Other" Functions |
|
|
28->29 |
"Reserved" |
|
|
30 |
Payment Methods |
|
|
31 |
"Print Y/N" |
|
|
32 |
Warning "?" ( By default ) |
|
|
33->3071 |
Articles from 1 -> (3071-32) |
|
|
3072 |
1 - Order |
|
|
3073 |
2 - Cancellation |
|
|
3074 |
3 - Subtotal |
|
|
3075 |
4 - Amount |
|
|
3076 |
5 - Transfer |
|
|
3077 |
6 - Partial Payment |
|
|
3078 |
7 - Other |
|
|
3079 |
8 - Discount |
|
|
3080 |
1 - Control |
|
|
3081 |
2 - Licensing |
|
|
3082 |
3 - Hardware |
|
|
3083 |
4 - Configuration |
|
|
3084 |
5 – Receive PLU |
|
|
3085 |
|
|
|
3086 |
|
|
|
3087 |
|
|
|
|
|
|
|
Description :
This function sends all the entries (previously entered with radio_set_entry) to the radio terminals. In order to make the terminals receive them, it is necessary to press before 96195 6 when the terminal is on the main menu, in order to set the terminal on the download mode. As an alternative, the terminal can be set on the transference mode sending a message. This function has not got an error correction. It can hapen that the terminal does not receive all the entries. To avoid this, it can be sent twice.
Function
Parameters:
This function
initializes the antenna, making an automatic halting of the version
and setting it on the reception of orders mode. This initialization takes
a second approximately. Function:
Parameters:
com_no: Number of the COM port to wich the antenna is connected.
Description:
This function releases the serial port and returns the antenna to the mode by default, so it will not receive any more transmission from the radio terminals. Function
DATA_PROTOCOL 1
This function sends a text message to a radio terminal. The message can not be longer than 32 characters and it must be entirely composed by international characters. It must be noted that the radio terminal will only receive the message if it is on the main menu, so the sending of the messages must be only done as an answer to an action of the terminal's user. The DLL is charged to transmit the messages not confirmed by the terminal. This retransmision is made approximately every five seconds. If the terminal does not receive a message in 30 seconds, the DLL will ignore this message. The messages are treated by the arrival order (FIFO). It can be verified if a message was sent by using the radio_send_message_get_status function.
Function:
Parameters:
int __stdcall radio_message_clear_upload_plus(int
terminal)
int __stdcall radio_message_clear_upload_plus(int
terminal)
int __stdcall radio_message_hardware_B(int terminal,int value) This function sends a message and forms the B option
of the terminal with the value. int __stdcall radio_message_hardware_C(int terminal,int valor) This function sends a message and forms the C option of the terminal with the value. +1-
When sending the bill ask for the place?
int __stdcall radio_message_hardware_ABC(int terminal,int valorA,int valorB,int ValorC) This function sends a message and forms the option A, B and C of the terminal with the value.
Parameters:
Description: This function
verifies if there is any message sent by a terminal in the entry buffer
to be read by the program. If there is one, the function copies it to
the past variables as parameters.
Description:
This function verifies if there is any message sent by a terminal in the entry buffer to be read by the program. If there is one, the function copies it for msgand returns to OK.
Function:
Parameters:
|
|
|
|
|
|
|
|
|
|
|
|
DATA_PROTOCOL 1 |
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
... |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
|
Type |
Terminal |
Licensing |
Order Number |
Dishes |
Table |
Aux |
1st Article |
1st Quantity |
2nd Article |
2nd Quantity |
|
|
|
|
1B |
2B |
2B |
2B |
2B |
2B |
2B |
2B |
2B |
2B |
2B |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DATA_PROTOCOL 2 |
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
|
|
|
|
Type |
Terminal |
Licensing |
Order Number |
Dishes |
Table |
Aux |
Place 1 |
Place 2 |
1st Article |
1st Quantity |
|
|
|
|
1B |
2B |
2B |
2B |
2B |
2B |
2B |
2B |
2B |
2B |
2B |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DATA_PROTOCOL 3 |
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
|
|
|
Type |
Terminal |
Licensing |
Order Number |
Dishes |
Table |
Aux |
Place 1 |
Place 2 |
Table 1 |
Table 2 |
1st |
|
|
|
1B |
2B |
2B |
2B |
2B |
2B |
2B |
4B |
4B |
4B |
4B |
2B |
|
|
|
Type: It indicates which is the operation executed on the control. The possible types are: ‘P’ Order Terminal: Number of the terminal which sent this transmission. Licensing number: Licensing number of the terminal which sent the transmission. Besides the antenna, the DLL is charged to drive back messages with the wrong licensing number, so this value can be despised by the program. Order number: String number of the received message, normally used to drive back repeated messages. Dishes: It indicates how many detail lines are completed. Table: It indicates which is the table for what the order was carried out. Aux: The function of this
value depends on the type of message. Order Number of People Bill Payment Type or ( It prints shl 3 ) Transfer 2nd Table Discount % Discount
The Emulator with DLL In order to test the restaurant's program with the emulator, it is necessary to make the base emulator and the terminal emulator work. A test program of the DLL with the emulator is available in Download.
|
||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
|
|
|
|
||||||||||||||||
|
|
|
|
|
|
|
|
|
Restaurants |
|
|||||||||||
|
|
|
|
|
|
|
|
|
|
|
|||||||||||
|
|
|
|
|
|
|
|
|
|
|
|||||||||||
|
|
|
|
|
|
|
|
|
|
|
|||||||||||