CN105590377B - Pos terminal apparatus and its method for updating program - Google Patents
Pos terminal apparatus and its method for updating program Download PDFInfo
- Publication number
- CN105590377B CN105590377B CN201410808487.6A CN201410808487A CN105590377B CN 105590377 B CN105590377 B CN 105590377B CN 201410808487 A CN201410808487 A CN 201410808487A CN 105590377 B CN105590377 B CN 105590377B
- Authority
- CN
- China
- Prior art keywords
- script
- pos terminal
- terminal apparatus
- program
- update
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Abstract
The present invention relates to a kind of pos terminal apparatus, include with the single platform of receipts and background terminal communication, the pos terminal apparatus respectively:Communication control unit controls the communication between pos terminal apparatus and background terminal management system, with Download Script more new content;Script resolver unit, connect with communication control unit, for being shell script by script update Context resolution;And business unit, shell script is obtained from script resolver unit, and with the combination of the single Platform communication of receipts and perform script program to realize the business function of pos terminal apparatus.It makes POS terminal program update efficiency significantly improve, and script more new content can also be made to have good versatility.
Description
Technical field
The present invention relates to technical field of electronic commerce, more specifically to a kind of pos terminal apparatus and its program
Update method.
Background technology
With the high speed development of Bank Card Industry, China's point of sales terminal in recent years(Point Of Sale, abbreviation POS)Number
Amount remains annual 35% or more growth rate, has formed the scale of total amount millions, has been the important composition portion of bankcard network
Point.POS terminal due to quantity is more, broad covered area, easily expand the characteristics of, in innovative service pilot under carrying out line, with can not
The advantage of analogy.But the transaction that POS is supported is realized in the same application program at present, program structure is fixed, is lacked flexibly
Property.With being on the increase for business demand, POS terminal program is increasingly huge, and the update hardly possible of POS terminal program, update cycle are long
The problem of become clear day by day, have become the bottleneck problem for restricting and receiving single business fast development.
Conventional POS terminals usually first develop updated program version when newer into line program by POS manufacturers
This, then lays the dedicated POS terminal program more new equipment of onsite application by platform pair to terminal manually by acquirer
POS terminal is updated into line program.This update mode brings great application development cost and manpower to acquirer
Material resources cost, and with the development speed that current payment market is getting faster, the renewal frequency of POS terminal program is also increasingly
Height, above-mentioned tradition update mode are also more and more hard to carry on.
Currently, also occurring a kind of based on remote download and updating the method for POS terminal program in the industry.This method by
Increase in terminal and manages system with background terminal(Terminal Management System, abbreviation TMS)The module of communication, it is real
The remote download of existing POS terminal program and locally-installed update.But this mode is needed complete POS terminal program from rear
Platform is locally downloading to be executed to install, and download success rate can be caused relatively low because application program is larger.In addition, to different model
POS terminal needs the POS terminal program of corresponding exploitation different editions, program development cost higher.
Therefore, those skilled in the art it is expected to obtain a kind of pos terminal apparatus overcoming above-mentioned prior art defect
And its method for updating program.
Invention content
It is an object of the present invention to provide one kind can be remotely into the newer pos terminal apparatus of line program.
To achieve the above object, it is as follows to provide a kind of technical solution by the present invention:
A kind of pos terminal apparatus, it is whole with the single platform of receipts and background terminal communication, point of sale respectively
End device includes:Communication control unit controls the communication between pos terminal apparatus and background terminal management system, below
Carry script more new content;Script resolver unit, connect with communication control unit, for being foot by script update Context resolution
This program;And business unit, obtain shell script from script resolver unit, and with receive single Platform communication, and execute
The combination of shell script is to realize the business function of pos terminal apparatus.
Preferably, communication control unit also controls script resolver unit and obtains program more from background terminal management system
Newly.
Preferably, pos terminal apparatus is established many-to-one telecommunication with background terminal management system and is connect.
Another object of the present invention is to provide a kind of efficient easily pos terminal apparatus method for updating program.
To achieve the above object, it is as follows to provide another technical solution by the present invention:
The application program of a kind of pos terminal apparatus method for updating program, wherein pos terminal apparatus operation includes more
A shell script, update method include the following steps:A) it, receives single platform and judges whether pos terminal apparatus needs into line program
Update;If b), pos terminal apparatus needs to update into line program, pos terminal apparatus is built with background terminal management system
Vertical communication connection;C), pos terminal apparatus manages system Download Script more new content from background terminal;D), point of sales terminal
Script update Context resolution is shell script by device;E), pos terminal apparatus installation and/or perform script program.
Preferably, further include step before step a):Acquirer or trade company pass through scripting editing platform edit script journey
Sequence, and it is uploaded to background terminal management system afterwards after tested;Background terminal management system generates script more new content and notifies to receive
Single platform.
Preferably, background terminal management system carries out data compression for downloading to script more new content.
The pos terminal apparatus and its method for updating program that the embodiment of the present invention is provided, can remotely into line program more
Newly, and by terminal program script resolver unit and several independent shell scripts are converted into.In this way, carrying out POS terminal journey
When sequence updates, only it need to be used as the script more new content of service scenario program increment by communication control unit remote download, and lead to
It crosses script resolver unit resolves and goes out updated shell script, be subsequently mounted and/or execute, you can realize POS terminal business work(
The adjustment of energy, POS terminal program update efficiency significantly improve, and improve the response speed to the market demand.Moreover, script parses
Hardware differences between the maskable different model POS terminal of parsing that device unit carries out so that identical script more new content can
With the POS terminal being updated in various payment platforms, good versatility is realized, and further decrease POS terminal program development
Workload.
Description of the drawings
Fig. 1 shows the module map for the pos terminal apparatus that first embodiment of the invention provides.
Fig. 2 shows the flow diagrams for the pos terminal apparatus method for updating program that second embodiment of the invention provides.
Specific implementation mode
As shown in Figure 1, the pos terminal apparatus 10 that first embodiment of the invention provides is communicated with single platform 30 is received with reality
Existing business function, and communicated with background terminal management system 20 to realize that terminal program updates.The pos terminal apparatus packet
Include communication control unit 101, script resolver unit 102 and business unit 103.
In general, communication control unit 101 controls between pos terminal apparatus and background terminal management system 20
Communication, with Download Script more new content.
Specifically, the opposite increment or difference for updating preceding shell script of shell script after the update of script update content representation.
To obtain the update of POS terminal program, communication control unit 101 need not download entire POS terminal journey from terminal management system 20
Sequence, and its increment or difference are only downloaded, to which download efficiency can be improved.
Script more new content can be generated for example in the following way, and acquirer or trade company pass through scripting editing platform editor
Shell script is uploaded to background terminal management system 20 afterwards after tested to generate shell script after update;Background terminal management
Shell script and shell script before update after the comparison update of system 20, to generate script more new content.
Script resolver unit 102 is connect with communication control unit 101, for being script journey by script update Context resolution
Sequence.
Specifically, script resolver unit 102 parses script more new content, restores and is adapted to fit and/or holds
Capable shell script.Hardware differences in this resolving between also maskable different model POS terminal so that identical
Script more new content can be updated to the POS terminal in various payment platforms, realize good versatility.
" shell script " as referred to herein may include menu class shell script, transaction class shell script, control class script journey
Sequence, resources-type shell script and their arbitrary combination.
Wherein, menu class script is for showing each function menu item, and introduces transaction script;Class script of merchandising corresponds to transaction
Type(Consumption, revocation etc.), transaction script be made of elements such as flow, instruction, data;Control class script is for storing crucial letter
Breath, including standby interface content shows, give tacit consent to and merchandise and systematic parameter etc.;Resources-type script is used to preserve each Template Information, with
For transaction or operation calls;Including data dictionary template, type information template, display information model, Parameter File etc..
Further, shell script includes version number and/or unique identifying number.
Business unit 103 obtains shell script from script resolver unit 102, and is communicated with single platform 30 is received, and holds
The combination of row shell script is to realize the business function of pos terminal apparatus.
Therefore, POS terminal program used in pos terminal apparatus 10 does not cure, but in the form of shell script
It is stored in the device, when realizing related service function, business unit 103 calls these shell scripts temporarily, solves according to priority
It releases and executes.
Skilled in the art realises that business unit 103 can include acquiescently interpreter, for translating into shell script
Executable instruction is to execute.
According to the further improved embodiment of above-described embodiment, communication control unit 101 also controls script resolver list
Member 102 obtains program update from background terminal management system 20.To which script resolver unit 102 itself can also be convenient and efficient
Ground obtains program update, to respond the demand that industry constantly upgrades.
It is further appreciated that according to the above embodiment of the present invention, pos terminal apparatus 10 manages system 20 with background terminal
Establish many-to-one telecommunication connection.That is, same terminal management system 20 can serve more pos terminal apparatus 10.
The pos terminal apparatus 10 that above-described embodiment provides only need to pass through communication when carrying out the update of POS terminal program
Control unit remote download script more new content, and go out new script program by script resolver unit resolves, be subsequently mounted and/
Or execute, you can realize that the adjustment of POS terminal business function, POS terminal program update efficiency significantly improve.
As shown in Fig. 2, second embodiment of the invention provides a kind of pos terminal apparatus method for updating program, wherein selling
The application program of point terminal installation operation does not cure, but is made of multiple shell scripts.The update method includes following step
Suddenly:
Step S10, it receives single platform and judges whether pos terminal apparatus needs to update into line program.
Specifically, when pos terminal apparatus is with single Platform communication is received to carry out e-payment business, single platform root is received
According to the version number or identification number of shell script on the pos terminal apparatus come judge the pos terminal apparatus whether need into
Line program updates.
If step S11, pos terminal apparatus needs to update into line program, pos terminal apparatus and background terminal pipe
Reason system establishes communication connection.
The step establishes communication connection preferably between pos terminal apparatus and background terminal management system, in order to
Script more new content is transmitted by ground, rather than in the form of datagram or other unresponsive modes are transmitted.
Wherein, many-to-one telecommunication connection is established between pos terminal apparatus and background terminal management system.
Step S12, pos terminal apparatus manages system Download Script more new content from background terminal.
Specifically, following mechanism can be used at least during Download Script more new content in pos terminal apparatus
It is a kind of:Breakpoint transmission;Script legitimate verification;Script integrity verification;And multiple connection attempts.
Wherein, such as encounter network failure in transmission process, breakpoint transmission mechanism can since the part downloaded after
It is continuous to download unfinished part;Terminal management system should also sign to script more new content, and POS terminal is in script update
Legitimate verification should be carried out after the completion of carrying to signature by holding;POS terminal should also check the integrality of script more new content, such as find
Imperfect, POS terminal should prompt update to fail, and return back to state before program update;POS terminal updates task execution in program
When failure, current task state should be recorded and continue to attempt to more new task when condition has, up to success or beyond failure
Number limits.
Further, background terminal management system can carry out script more new content data compression for downloading, with into one
Step improves update efficiency.
Step S13, script update Context resolution is shell script by pos terminal apparatus.
Specifically, pos terminal apparatus can be by being set to its internal script resolver unit by script more new content
Shell script is resolved to, this process also helps the hardware differences between shielding different model POS terminal so that identical script
More new content can be updated to the POS terminal in various payment platforms, and further decrease the work of POS terminal program development
Amount.
Step S14, pos terminal apparatus installation and/or perform script program.
The step completes the update to POS terminal program by installation and/or perform script program, and then can be with newest
The program of version realizes the various businesses function of pos terminal apparatus.
Further include following steps before step S10 according to being further improved for above-mentioned second embodiment:Acquirer or
Trade company is by scripting editing platform editor's original shell script and generates new script program, is after tested afterwards uploaded to new script program
Background terminal manages system;Background terminal management system generates script more new content and notifies to receive single platform.
Wherein, former shell script expression runs on the pos terminal apparatus that trade company holds, waits for newer script journey
Sequence, acquirer can retain its backup so as to editing and updating, and trade company also can be after obtaining acquirer license to former shell script
It is editted and updated.Scripting editing platform can provide graphic interface, in order to above-mentioned editing and updating.Background terminal manages system
The script generated more new content may include version number or the identification number of corresponding shell script.
In above-mentioned update method, POS terminal program is realized in the form of several independent script suites, into line program
When update, only need script more new content of the remote download as service scenario program increment, then pass through parsing, installation and/or
It executes, you can realize that the adjustment of POS terminal business function, POS terminal program update efficiency are significantly improved, improved to the market demand
Response speed.In addition, the update method allows identical script more new content to be updated to the POS in various payment platforms
Terminal, and the workload of POS terminal program development can be reduced.
Above description is not lain in and is limited the scope of the invention only in the preferred embodiment of the present invention.It is based on
The thought of the present invention, those skilled in the art can make various modifications design, the thought without departing from the present invention and subsidiary power
Profit requires.
Claims (10)
1. a kind of pos terminal apparatus, respectively with receive single platform and background terminal communication, the point of sale
Terminal installation includes:
Communication control unit controls the communication between the pos terminal apparatus and the background terminal management system, with
Download Script more new content;
Script resolver unit, connect with the communication control unit, for being script by script update Context resolution
Program, wherein the parsing includes the hardware differences between the pos terminal apparatus for shielding different model;And
Business unit obtains the shell script from the script resolver unit, and with receipts list Platform communication, and
The combination of the shell script is executed to realize the business function of the pos terminal apparatus.
2. pos terminal apparatus according to claim 1, which is characterized in that described in the communication control unit also controls
Script resolver unit obtains program update from background terminal management system.
3. pos terminal apparatus according to claim 1, which is characterized in that the shell script includes menu class script
Program, transaction class shell script, control any one of class shell script and resources-type shell script are appointed a variety of.
4. pos terminal apparatus according to claim 1, which is characterized in that the shell script include version number and/
Or unique identifying number.
5. pos terminal apparatus according to any one of claim 1 to 4, which is characterized in that the point of sales terminal
Device is established many-to-one telecommunication with background terminal management system and is connect.
6. a kind of pos terminal apparatus method for updating program, wherein the application program of pos terminal apparatus operation includes
Multiple shell scripts, the update method include the following steps:
A) it, receives single platform and judges whether the pos terminal apparatus needs to update into line program;
If b), the pos terminal apparatus needs to update into line program, the pos terminal apparatus and background terminal pipe
Reason system establishes communication connection;
C), the pos terminal apparatus manages system Download Script more new content from the background terminal;
D), script update Context resolution is the shell script by the pos terminal apparatus, wherein the parsing packet
Include the hardware differences between the pos terminal apparatus of shielding different model;
E), the shell script is installed and/or executed to the pos terminal apparatus.
7. update method as claimed in claim 6, which is characterized in that before the step a) further include step:
Acquirer or trade company are by shell script described in scripting editing platform editor, and it is whole to be uploaded to the backstage afterwards after tested
End pipe manages system;
The background terminal management system generates the script more new content and notifies the single platform of the receipts.
8. update method as claimed in claim 6, which is characterized in that the background terminal management system updates the script
Content carries out data compression for downloading.
9. update method as claimed in claim 6, which is characterized in that in the step b), the pos terminal apparatus
Many-to-one telecommunication is established with background terminal management system to connect.
10. the update method as described in any one of claim 6 to 9, which is characterized in that the step c) provides following mechanism
It is any or appoint it is a variety of:
Breakpoint transmission;
Legitimate verification;
Integrity verification;And
Multiple connection attempts.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410808487.6A CN105590377B (en) | 2014-12-23 | 2014-12-23 | Pos terminal apparatus and its method for updating program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410808487.6A CN105590377B (en) | 2014-12-23 | 2014-12-23 | Pos terminal apparatus and its method for updating program |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105590377A CN105590377A (en) | 2016-05-18 |
CN105590377B true CN105590377B (en) | 2018-09-21 |
Family
ID=55929929
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410808487.6A Active CN105590377B (en) | 2014-12-23 | 2014-12-23 | Pos terminal apparatus and its method for updating program |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105590377B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106846673B (en) * | 2016-12-27 | 2019-04-16 | 艾体威尔电子技术(北京)有限公司 | Multi-language environment TMS system |
CN107729036A (en) * | 2017-11-01 | 2018-02-23 | 深圳市帕思菲特科技有限公司 | Update the method, apparatus and computer-readable recording medium of POS program |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101901152A (en) * | 2009-06-01 | 2010-12-01 | 杨良海 | Method for updating contents in batch |
CN103327108A (en) * | 2013-06-26 | 2013-09-25 | 浙江大学城市学院 | Cross-platform software management platform based on cloud and construction method thereof |
CN103577235A (en) * | 2013-11-14 | 2014-02-12 | 中安消技术有限公司 | Software deploying method, deploying server, computer to be deployed and system |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7571113B2 (en) * | 2004-02-02 | 2009-08-04 | National Information Solutions Cooperative, Inc. | Method and apparatus for providing integrated management of point-of-sale and accounts receivable |
CN201498058U (en) * | 2009-07-30 | 2010-06-02 | 中国工商银行股份有限公司 | POS terminal based script processing device |
CN102707972B (en) * | 2012-05-02 | 2016-03-09 | 银联商务有限公司 | A kind of POS terminal method for updating program and system |
CN102724308A (en) * | 2012-06-13 | 2012-10-10 | 腾讯科技(深圳)有限公司 | Software update method and software update system |
CN102867377B (en) * | 2012-09-20 | 2015-01-28 | 中国农业银行股份有限公司 | Method and system for realizing services on point-of-sale (POS) terminal machine and POS terminal machine |
KR101462114B1 (en) * | 2013-03-28 | 2014-11-17 | 네이버 주식회사 | System, method and computer readable recording medium for synchronous script lazy loading |
-
2014
- 2014-12-23 CN CN201410808487.6A patent/CN105590377B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101901152A (en) * | 2009-06-01 | 2010-12-01 | 杨良海 | Method for updating contents in batch |
CN103327108A (en) * | 2013-06-26 | 2013-09-25 | 浙江大学城市学院 | Cross-platform software management platform based on cloud and construction method thereof |
CN103577235A (en) * | 2013-11-14 | 2014-02-12 | 中安消技术有限公司 | Software deploying method, deploying server, computer to be deployed and system |
Also Published As
Publication number | Publication date |
---|---|
CN105590377A (en) | 2016-05-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11144439B2 (en) | Emulation-based testing of a microservices architecture | |
CN102880532B (en) | Cloud technology-based test system and method | |
US8612947B2 (en) | System and method for remotely compiling multi-platform native applications for mobile devices | |
US9823909B1 (en) | Program code conversion for cross-platform compatibility | |
CN107896244B (en) | Version file distribution method, client and server | |
CN105159833A (en) | Automatic testing device and method | |
CN104363264A (en) | Multi-channel SDK (software development kit) access system and multi-channel SDK access system for mobile terminal software | |
CN104765678A (en) | Method and device for testing applications on mobile terminal | |
US11636016B2 (en) | Cloud simulation and validation system | |
CN103853585A (en) | Method for implementing centralized management of versions through cloud | |
CN104246702A (en) | Workflow compilation | |
CN103401713A (en) | System and method for software release | |
CN105590377B (en) | Pos terminal apparatus and its method for updating program | |
CN110727575B (en) | Information processing method, system, device and storage medium | |
CN108170588B (en) | Test environment construction method and device | |
CN104917633A (en) | Method and device simulating FOTA upgrade | |
FR2958427A1 (en) | METHOD FOR ARRANGING AN APPLICATION SOFTWARE ON COMPUTER EQUIPMENT OF REAL OR VIRTUAL EQUIPMENT AND ARCHITECTURE FOR CONTROLLING EQUIPMENT COMPRISING SUCH SOFTWARE | |
CN113760736A (en) | Test method, device and system | |
US20190155588A1 (en) | Systems and methods for transforming machine language models for a production environment | |
CN105095063A (en) | Application program testing method, apparatus and system | |
CN107247661B (en) | Method and system for supporting automatic verification of installation package of application | |
WO2023124366A1 (en) | Shadow system-based feature comparison method and apparatus, and electronic device | |
US8615751B2 (en) | Seeding product information | |
CN113392002B (en) | Test system construction method, device, equipment and storage medium | |
CN112099814B (en) | System and method for managing vehicle-mounted machine application software installation environment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |