background image

SY-7000 SDK Manual Writing the SDK Application

18

Chapter 4 - Writing the SDK Application

The SY7000 SDK runs give the user the ability to develop an C++/C application which accesses and 
control the S Y7000 functionality terminal like (Keyboard, LEDs, card readers, Buzzer, Relay). 

The SDK is based on the following libraries that are supplied in the CD:

GLibC – GNU C Library 

The C language provides build-in facilities for performing such common operations as input/output, 
memory management, string manipulation and the like. The GNU C library core is an ANSI/ISO standard 
C library.  GNU C also includes extension compatibility with Posix, BSD, SUID, and XPG. 

Interface Library 
Simple and easy to use, the interface library is event driven and multi-threaded. The user application can 
be a single threaded program. The simplicity of the interface library removes the complexity of file and 
event I/O and also removes the need for low level hardware interfacing.

LibNE7000Pik

 – is the high level library, written in C++. The purpose of this library is to extend the low 

level library and give it the ability to manage and control events, and terminal functionality using a simple 
API.
The classes of this library are described below. 

LibNE

 – is the low level library written in C. This library is closer to the hardware and the user rarely 

needs to access the functions of this library because it is extended by the high level functionality of 

LibNE7000Pik

.

Summary of Contents for SY-7000 SDK

Page 1: ...SY 7000 SDK Manual SYnel Industries LTD...

Page 2: ...No patent liability is assumed with respect to the use of the information contained herein While every precaution has been taken in the preparation of this manual Synel Industries Ltd assumes no respo...

Page 3: ...1 2 0 1Configuration Menu 11 2 0 2Dates 12 2 0 2 1Set Date and Time 12 2 0 2 2Daylight Savings 12 2 0 3Communication 12 2 0 3 1Wired 12 2 0 3 2Wireless 13 2 0 4Set Readers 13 2 0 5Accessory Test 13 2...

Page 4: ...ite int row int col const char str 22 virtual void Clear 23 virtual void DisplayContrast int contrast 23 virtual void SetCursorState CursorState state 23 CLASS SOUND 24 void Sound 24 virtual Sound 24...

Page 5: ...en architecture terminal which enables the user to create their own settings and uses for the terminal The unit user defined capabilities are user created using the Linux open source platform This SDK...

Page 6: ...arge Character 4x20 backlit text display 6 5 TA 7500 8 0 Graphical color LCD touch screen 1 1 1 4Readers FPU Finger Print Unit FPU S Capacitance sensor Template size 384 Bytes reducible to 256 bytes T...

Page 7: ...evel interface consisting of a pair of data lines Data0 and Data1 Data input via this interface is typically a small stream of from 26 to 36 bits representing a binary ID number that is broken into tw...

Page 8: ...ult PW130RB4800F01 Note PW130RA modules are not 802 3af compliant You can view the SY 7000 series matrix in Model Matrix on page 44 1 1 2 The Software Development Kit 1 1 2 1Components The following c...

Page 9: ...rt of the Terminal is based on a MPC885 from Freescale Semiconductor It is specifically designed to enable working with for several communication types and is powerful enough to meet several future de...

Page 10: ...IntroductionSY 7000 SDK Manual 10 1 1 3 2Bottom connector panel...

Page 11: ...The terminal is configured using the configuration menu The configuration menu contains a variety of sub menus all of which have their own distinct functions The default keypad code for accessing the...

Page 12: ...gs are standard and can be changed 2 0 3 Communication The communication menu is where the terminal is configured for the different types of communication Wired and Wireless 2 0 3 1Wired Wired communi...

Page 13: ...rity will prompt for the entry of either a 64 bit or 128 bit WEP key After selecting the WEP key type the terminal will prompt for entry 2 0 3 2 3IP Settings The IP settings menu leads to the configur...

Page 14: ...00 Gcc version 3 3 3 2 0 7 2Wired Settings The wired settings menu re displays the information that was configured when setting up the communication If DHCP was selected this menu shows what settings...

Page 15: ...figured for what acceptable methods are available for accessing the clock configuration menu Note that if the badge length changes so must the access configuration The default for entering the configu...

Page 16: ...opening the CygWin window and typing cd and a command such as the one below for a file residing in the C CrossCompiler directory tar xzf cygdrive c CrosCompiler tools 2006 12 15 tar gz Note If your TA...

Page 17: ...lnet you need to set a legal IP in the local network See Chapter 2 Terminal Configuration Instructions for information on how to set an IP for the terminal The recommended IP for the terminal is 10 0...

Page 18: ...ty with Posix BSD SUID and XPG Interface Library Simple and easy to use the interface library is event driven and multi threaded The user application can be a single threaded program The simplicity of...

Page 19: ...mer Proximity Public methods virtual EventManager void RegisterForEvent Event eventId EventCallback callback void userdata void UnRegisterForEvent Event eventId EventCallback callback int InstallNetwo...

Page 20: ...ata_p const unsigned int size void userdata_p where the values passed are as follows event registration event as defined above data_p specific data for each callback as follows keyboard value of key p...

Page 21: ...on ifc interface default eth0 int createLowResTimer long timeoutSeconds Creates a timer Arguments create a timer resolution in seconds Returns Timerid id of timer created void killTimer int timerId ki...

Page 22: ...rtual LCDDisplay This is the destructor for the LCDDisplay class virtual void Write int row int col const char str Write the supplied string to the LCD display Printable ASCII characters are displayed...

Page 23: ...Return r 0Dh Position to column 1 of the current row Form Feed f 0Ch Position to row 1 column 1 Non ASCII character codes in the range of 80h to FFh are sent to the display without further processing...

Page 24: ...virtual Sound void Beep int milliseconds int toneHz Methods description void Sound Creator for the Sound class virtual Sound This is the destructor for Sound class void Beep int milliseconds int toneH...

Page 25: ...l LED void TurnOn Light light void TurnOff Light light Methods description void LED Creator for the LED class virtual LED This is the destructor for LED class void TurnOn Light light This method is us...

Page 26: ...virtual Relay void Set int index int state Methods description void Relay Creator for the Relay class virtual Relay This is the destructor for Relay class void Set int index int state This method is u...

Page 27: ...button in order to return to the previous state unless stated otherwise i e if we have chosen Barcode mode and want to change to the Keyboard input mode press Clear first Demo Program file types The...

Page 28: ...ored Displays Magnetic card number F2 Barcode card reader Displays Swipe a barcode card Waits for Barcode input other inputs will be ignored Displays Barcode number F3 Proximity card reader Displays S...

Page 29: ...isplays Current date and time The date and time are updated every second Note In this mode a one second resolution timer is created and used to display the updated time and the timer killed when we ex...

Page 30: ...in the host computer as defined by the IP address given during initialization F12 Adjust Display Contrast Displays Use up down Arrows to adjust contrast Adjusts the screen contrast in 16 steps If Ente...

Page 31: ...ame or error message if name is not found Saves a record to a file Transact txt The name will be removed after Clear is pressed or after 5 seconds F 5 Department transfer Display Department transfer S...

Page 32: ...Clear is pressed or after 5 seconds 4 1 0 0 3Typical ON Line application Barcode reader F1 ON line query Display IN Swipe your card Wait for card Send the card to host over TCP Display Result to Empl...

Page 33: ...Writing the SDK ApplicationSY 7000 SDK Manual 33...

Page 34: ...Power PC Core that is provided in the SDK CD Step 1 Open the GNU Compiler Collection GCC that is provided in the SDK CD Step 2 Enter a command as in the example below to create the binary file powerpc...

Page 35: ...cute the application Following are the commands used to upload files to the terminal These are provided in TPTP and FTP By TFTP cd home terminal bin tftp g r local_file l remote_file remote_host chmod...

Page 36: ...sed to edit the script Step 1 Enter vi applstart sh to begin editing the script Step 2 To begin editing press the i key on the keyboard Step 3 Move between the rows to edit using the keyboard arrows S...

Page 37: ...Creating and Loading the Application File to the TerminalSY 7000 SDK Manual 37...

Page 38: ...PIK Environment This appendix describes the way in which to set up cygwin to set you Microsoft Windows platform to act similarly to a Unix system See CygWin on page 16 for additional information Step...

Page 39: ...2 Download the file and run the installation Step 3 When the download is complete click Run The Cygwin setup opens Step 4 Click Next until you reach the screen displayed below Step 5 Select Install fr...

Page 40: ...SY 7000 SDK Manual 40 Step 6 Use the default settings on this screen and click Next...

Page 41: ...SY 7000 SDK Manual 41 Step 7 Specify the location to store the installation files and click Next...

Page 42: ...SY 7000 SDK Manual 42 Step 8 Select Direct Connection and click Next...

Page 43: ...SY 7000 SDK Manual 43 Step 9 Pick a mirror to download Cygwin from It is recommended to select a site that is local to your geographic area and click Next...

Page 44: ...SY 7000 SDK Manual 44 Step 10 Click the sign next to Devel to expand it...

Page 45: ...SY 7000 SDK Manual 45 Step 11 Under Devel scroll down to gcc...

Page 46: ...SY 7000 SDK Manual 46 Step 12 Select gcc by clicking on the word Skip once...

Page 47: ...SY 7000 SDK Manual 47 Step 13 Scroll down and select the make and any other packages you want included and click Next...

Page 48: ...SY 7000 SDK Manual 48 Cygwin will now download and install the packages that you selected...

Page 49: ...SY 7000 SDK Manual 49 Step 14 Leave the options checked and click Finish...

Page 50: ...l 50 Step 15 Copy file that was now created to the Cygwin root directory you will need WinZip or similar application installed for this Step 16 Run Cygwin bat Step 17 Type in cd and press ENTER You ca...

Page 51: ...SY 7000 SDK Manual 51...

Page 52: ...SY 7000 SDK Manual 52...

Page 53: ...8 MB 16 MB 16 MB 10 100 Base T Wireless 802 11x option RS 232 RS 485 Modem option USB PCMCIA option Mag Card Bar Code option Wiegand option Digital Out Power over Ethernet option Graphical LCD Extern...

Page 54: ...SY 7000 SDK Manual 45...

Reviews: