Professional Documents
Culture Documents
1.1 Introduction
This article is for TPS300 financial POS terminal SDK based development guide.
1.2 History
2 Development Environment
vapinpad.a
lib3326api_v2_nolcd.a
Note:
( 1 ) Basically we edit source code on Windows system, compile in Linux system. For this
reason, we recommended developer to use Virtual machine with a Windows host / Linux guest.
Below we will take Windows XP / Ubuntu 10.04 as example.
(2)POS terminal connect with Windows PC by Ethernet, please make sure they are in the same
LAN. Linux VM connects with Windows by using NAT (Default connection setting in VM).
Generally speaking we only need to upgrade several file in the system in most cases, in those case
we don’t need to use Ethernet, just serial port is enough.
3 Compiler Setup
We use “arm-brcm-linux-gnueabi-gcc” compile tool-chains, it will been provide with the SDK.
Please follow below instructions to setup the compiler.
cd /home/telpo/BCM5892
Run “sudo vi /etc/environment” to open environment for editing. Append below path
/home/telpo/BCM5892/tools/le_arm11_external_20090506_32bit/bin
Run “cat /etc/environment ” to check the result, if you Ubuntu is a fresh one, you should get
the result as same as the followed one:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/telpo/BC
M5892/tools/le_arm11_external_20090506_32bit/bin"
Open Terminal window, type “arm-brcm-linux-gnueabi-gcc”, then press Enter to run the
compiler.
If you get “command not found”, this means the installation is failed. Please check the file
was extracted successfully. Then check the environment variable is correct or not.
If you get “no input files” this means the installation is success. This error shows because we
didn’t give it an source file to compile.
4 Build Project
5 Burning App
Unless be signed, application could not run in this machine. Please follow the steps below for
application signature.
First, modify AppMsg.txt according to what you need. Please note that the application name in
file AppMsg.txt could be changed. It is suggested that the length of the application name should be
the same as the example.
For example, the application name is 3326demo, so the content of AppMsg.txt is shown as below:
3326demo 3326demo 1.0 ViewAT 1 VPOS306-SAPP
Second, sign to the application. After compiling the application, use the command below to sign.
eg: cat AppMsg.txt >> 3326demo
TPS300
The step is the same with downloading application, just select the different file.
5.4 How To Write SN Into TPS300
As the picture upside, select check box “SN” and input the SN, and the device in the download
interface, then click start to download SN into device.
5.5 How To Rebuild File System Of TPS300
As the picture upside, select check box “Create file system”, and the device in the download
interface, then click start to rebuild file system of device.
6 Note
7 Product Introduction
It is a mobile transaction terminal with build-in thermal printer and battery. It supports processes
of money transfer, airtime top-up, bill payment, ticket booking, online food ordering ,lotteries and
E-shopping. Due to its all-in-one design, TPS300 can help merchant expand the point of sale,
enhance service and increase revenue quickly.