Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Date 2015-04-23
Version V2.0
Contents
1 SUMMARY .......................................................................... 2
1
Development Environment Guide for EFT-POS TPS300 Version:V2.0
1 Summary
1.1 Introduction
This article is for TPS300 financial POS terminal SDK based development guide.
1.2 History
Date Version Remark
2014-01-22 1.0 First Release
2015-04-23 2.0 For SDK 2.0
2 Development Environment
2.1 General
Basically we edit source code in Windows system and 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.
System 64M above ram, 200M available hard drive space
requirements Windows2000 or above OS
Compiler arm-brcm-linux-gnueabi-gcc
3 Compiler Installation
3.1 VMware + Ubuntu(Telpo Version)
(1) Install VMWare 9.0
(2) Unzip Ubuntu10.04_Telpo_POS.rar
(3) Open Ubuntu. Please choose File -> Open in Vmware and select Ubuntu LTS.vmx which is in the
package of Ubuntu10.04_Telpo_POS
2
Development Environment Guide for EFT-POS TPS300 Version:V2.0
(4) Run Ubuntu. Please click the button of “Power on this virtual machine” in VMware.
(5) Start Ubuntu and select “Ubuntu LTS”, and password is “123456”.
NOTE: When you want to get priority of root, please use the same password “123456”.
3
Development Environment Guide for EFT-POS TPS300 Version:V2.0
4
Development Environment Guide for EFT-POS TPS300 Version:V2.0
3 Application Compiling
3.1 Compile Demo Project
Telpo has provided Demo_Project. Here we will take it as an example.
(1) There are 4 directories in SDK.
tools: Includes tools for app generating and app downloading.
tpdemo: Source code of Demo_Projcet.
tpinc: Telpo SDK header files.
tplib: Telpo SDK library.
5
Development Environment Guide for EFT-POS TPS300 Version:V2.0
6
Development Environment Guide for EFT-POS TPS300 Version:V2.0
(4) In the demo project, the output app is named “tpdemo_xxxx.tap” as below.
3.2 Tips
7
Development Environment Guide for EFT-POS TPS300 Version:V2.0
(2) Write your own Makefile according to the one in directory “tpdemo”.
8
Development Environment Guide for EFT-POS TPS300 Version:V2.0
a. executed file.
b. file “tap.manifest”.
c. directory “data” (optional). The directory is used to store pre-defined files, which could be
accessed by TPFile APIs.
(5) Change to directory “tools/linux/tapgen” to excute script “create_tap”, the input parameter is the path
of directory “tap”. If success, the final app “xxx.tap” will be generated.
9
Development Environment Guide for EFT-POS TPS300 Version:V2.0
10