For models:KDT750-XXXX
KDT750 APL Guide2 - 1APLThis chapter describes the AML PriceLookup (APL) protocol, which providescommunication between AML kioskdevices and a database
KDT750 APL Guide2 - 2Transaction OverviewAPL is a packet based, connection oriented protocol. For each lookup to the server, a newconnection is create
KDT750 APL Guide2 - 3Lookup Request from Client to ServerA general request from a client device will have a single item/value pair. The ITEM (left ofe
KDT750 APL Guide2 - 4Example APL Client to Server EventsA user scans a bar code with data of “1234567890” with the internal bar code reader:A user swi
KDT750 APL Guide2 - 5Lookup Reply from Server to ClientIn response to a lookup request, the server should reply with meaningful data. In the mostbasic
KDT750 APL Guide2 - 6output). These action pairs will tell the client device to act on some hardware, and will notresult in any data being drawn on th
KDT750 APL Guide2 - 7
KDT750 APL Guide2 - 8Formatting Text OutputTo define a format for any given text output field, a special '@ITEM=VALUE' pair is used. Thename
KDT750 APL Guide2 - 9Example Field Format PairThe DES field will be located at x=70, y=200, width=500, height=150, foreground color is 0and background
KDT750 APL Guide3 - 1Using APL Over HTTPThis chapter describes how to implementAPL via HTTP POST.
KDT750 APL GuidePRE-1Revision HistorySeptember 2008 - Initial revisionNovember 2008 - Add POST documentation, reformat and restructure
KDT750 APL Guide3 - 2OverviewHTTP (Hypertext Transfer Protocol) is the most common of all Internet protocols. Although it isused primarily to fetch pa
KDT750 APL Guide3 - 3URL Encoding DataAPL will URL encode data being sent to the server-side script, and the server should URLencode all replies. That
KDT750 APL Guide3 - 4Example Server Source Codeimport osimport cgiimport urllibform = cgi.FieldStorage()inputdata = ""### Note that urllib.q
KDT750 APL Guide4 - 1Using APL Over a TCP SocketThis chapter describes using APL over a rawTCP socket connection.
KDT750 APL Guide4 - 2Packet FormatTo use APL over a TCP socket, the following general packet format is used:NOTE: All wireless SECURITY settings are c
KDT750 APL Guide4 - 3Lookup Request Example PacketsA user scans a bar code with data of “1234567890” with the internal bar code reader:A user swipes a
KDT750 APL Guide4 - 4The server responds to a magnetic stripe read with a screen containing three fields: anemployee’s name, their employee number and
KDT750 APL Guide4 - 5Example APL Server DesignAs a general case, the host server application can be realized very simply:Figure 4.1 - Sample Server Fl
KDT750 APL Guide4 - 6Server-side Source Code# Use threads and socketsimport socketimport thread# Lookup thread function to be called when a client con
KDT750 APL Guide5 - 1PCDemo - APL ClientApplicationThis chapter describes the KDT750 APLclient application PCDemo.
KDT750 APL GuidePRE-2© 2009 American Microsystems, Ltd. All rights reserved.American Microsystems, Ltd. reserves the right to make changes in specific
KDT750 APL Guide5 - 2OverviewPCDemo is a versatile client application designed to run natively on the AML KDT750 pricechecking unit. PCDemo handles da
KDT750 APL Guide5 - 3When the device is idle (i.e., No input device is being utilized), PCDemo displays a slideshow of images. In the most general cas
KDT750 APL Guide5 - 4Command Line InterfacePCDemo is normally located at /usr/bin/pcdemo of the KDT750 Linux file system. Note that theapplication bin
KDT750 APL Guide5 - 5< > - Denotes mandatory flag argument[ ] - Denotes optional flag argumentLocal Image Slide ShowPCDemo will display a slide
KDT750 APL Guide5 - 6Lookup Screen BasicsWhen displaying a server response to a lookup request, the lookup screen of PCDemo willcontain a basic backgr
KDT750 APL Guide5 - 7Special Text FieldsTwo special field names exist: the PRC field and the DES field. These fields are predefinedwith certain enhanc
KDT750 APL Guide5 - 8Default PRC Numeral Images
KDT750 APL Guide5 - 9ColorsThe foreground text color and the field background color can be selected from a 256 colorpalette.Figure 5.4 - Color MapExam
KDT750 APL Guide5 - 10Figure 5.5 - Example SD Card ContentsWith this SD card installed into a KDT750 unit, the autorun.sh script will be executed upon
KDT750 APL GuideA - 1Appendix APacket Examples with Screenshots
KDT750 APL GuidePRE-3Table of ContentsAbout This DocumentIntroductionChapter DescriptionsChapter 1 – Getting StartedTransaction OverviewProtocol Overv
KDT750 APL GuideA - 2Example 1 – Price Lookup via HTTP PostClient Lookup POST:BAR=1641-115Server Reply:Content-type: text/htmlPRC=0.187DES=Screw. Torx
KDT750 APL GuideA - 3Example 2 – MSR Read via HTTP POSTClient Lookup POST:MSR=;0000003075393868=0408799?Server Reply:Content-type: text/htmlFIELD1=Emp
KDT750 APL GuidePRE-4Chapter 5 – PCDemoIntroduction to PCDemoPCDemo Operational LoopCommand Line InterfaceLocal Image Slide ShowLookup ScreenLookup Sc
KDT750 APL GuidePRE-5About this DocumentIntroductionThis document describes the software interface protocol and system requirements for use of theAML
KDT750 APL Guide1 - 1Getting StartedThis chapter gives a brief overview of APL and its intended uses.
KDT750 APL Guide1 - 2Theory of OperationAPL was designed as a network based protocol for use in price verification and data lookupenvironments. It is
KDT750 APL Guide1 - 3APL via TCPAPL can utilize a standard raw TCP stream socket connection initiated by the client device(KDT750) to a database serve
Kommentare zu diesen Handbüchern