Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

XML protocol allows adding connectivity with POS - Intellect operation control system to POS software developers if data of POS operations is sending sent as XML packages. This format allows transferring of any number of significant parameters to a system and organizing their displaying on a video image and saving in a transaction database.

XML package has the <TransactionBlock> basic tag. Separate xml package is sent to the Intellect for each POS operation. Each package should have the <TransactionBlock>  start tag and the </TransactionBlock> end tag. So each POS operation has its presentation as XML package. Example of a sent package is followsshown in the figure.

All parameters are presented in as a text view.   It's possible to use point a period or a comma to separate a fractional part of a number. Converting to the required type is performed automatically.

POS program should send data to TCP, UDP or RS232 port (is specified in the settings). Separate port is in use used for each POS.

ItWhen the TCP protocol is used, it's required to foresee an automatic connection repairing recovery in case of disconnecting when the TCP protocol is in useconnection loss.

Required tags of xml-package:

  1. FunctionNumber – number number of a function.
  2. TransactionTimestamp  (conditionally required tag) event time specified in the yyyy-mm-ddThh:nn:ss.fff format. It is specified in the UTC+0 time zone. If the TransactionTimestamp tag tag is missing in the package, than the time of the package receipt is recording written to the database except instead of event time.
    The following symbols are in useused:
    yyyy - year as four-digit number.
    mm- month, in the range from 01 to 12.
    dd - day of the month, in the range from 01 to 31.
    hh - hour in 24-hours format from 00 to 23.
    nn - minutes, in the range from 00 to 59.
    ss - seconds, in the range from 00 to 59.
    fff - second thousandths thousandths of a second (millisecond) in value of date and time values.

Separate elements The element of the XML package must be separated by line separators (consecutive 0xD, 0xA symbolscharacters).  ItIt's more convenient to do when debugging the system debugging (when using the xml_test.exe utility, see the Конфигурирование файла настроек Configuring xml_titles.txt sectionsettings file).

Total The total number of parameters is not limited. Parameter names are without must not contain spaces. Received data are displaying in displayed on the screen as captions and recording recorded to a database for further analysis.

The Intellect\Modules\Pos\xml_titles.txt file is intended used for settings (see the Format of xml_titles.xml settings file section).

All received data are recording recorded to the POS_LOG_MASTER and POS_LOG_DETAIL tables.

Default The default name of the receipts database is pos, MS SQL Server 2008 is in useused.