CN103118058B - A kind of method that PC external member transparent transmission and buffer memory are downloaded - Google Patents

A kind of method that PC external member transparent transmission and buffer memory are downloaded Download PDF

Info

Publication number
CN103118058B
CN103118058B CN201210446365.8A CN201210446365A CN103118058B CN 103118058 B CN103118058 B CN 103118058B CN 201210446365 A CN201210446365 A CN 201210446365A CN 103118058 B CN103118058 B CN 103118058B
Authority
CN
China
Prior art keywords
external member
service end
serial ports
pos terminal
buffer memory
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
Application number
CN201210446365.8A
Other languages
Chinese (zh)
Other versions
CN103118058A (en
Inventor
唐胤曦
黄强
林福雄
陈垚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Landi Commercial Equipment Co Ltd
Original Assignee
Fujian Landi Commercial Equipment Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Fujian Landi Commercial Equipment Co Ltd filed Critical Fujian Landi Commercial Equipment Co Ltd
Priority to CN201210446365.8A priority Critical patent/CN103118058B/en
Publication of CN103118058A publication Critical patent/CN103118058A/en
Application granted granted Critical
Publication of CN103118058B publication Critical patent/CN103118058B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present invention relates to network communication technology field, the particularly a kind of method of PC external member transparent transmission and buffer memory download, first serial ports number available on computer is checked, and the serial ports number selecting POS terminal to access, then adopt PC external member transparent transmission downloading mode or buffer memory downloading mode to carry out data download; PC external member transparent transmission downloading mode is: PC external member receives POS communication data from serial ports or SOCKET, and is forwarded to service end; PC external member receives data from service end, and is forwarded on serial ports or SOCKET; PC external member buffer memory downloading mode is: the packet of service end is first downloaded to this locality by PC external member; PC external member receives after the request msg of POS terminal from serial ports or SOCKET, selects local corresponding Packet Generation in POS terminal.The method is not only conducive to realizing the online lower dress of program file between service end and POS terminal, and automaticity is high, and error probability is low.

Description

A kind of method that PC external member transparent transmission and buffer memory are downloaded
Technical field
The present invention relates to network communication technology field, a kind of method of particularly PC external member transparent transmission and buffer memory download.
Background technology
At present, the filling lower holding tool mainly provided by each producer of the program of POS terminal is downloaded.Holding tool under PC uses, is installed under the program file of assigned address in the machine in POS by serial mode.But, along with the extensive use of the platforms such as terminal remote maintaining-managing system (TMS, TemfinalManagementSystem), need provide a kind of can the mode of online lower dress to support the use of these platforms.
In addition, along with the continuous increase of POS terminal quantity and model, corresponding application version is also in continuous growth, the lower holding tool of current use only supports off-line downloading mode, local PC needs the program version One's name is legion managed, maintenance workload is large, easily occurs manual operation mistake.
Summary of the invention
The object of the present invention is to provide a kind of method that PC external member transparent transmission and buffer memory are downloaded, the method is not only conducive to realizing the online lower dress of program file between service end and POS terminal, and automaticity is high, and error probability is low.
For achieving the above object, technical scheme of the present invention is: a kind of method that PC external member transparent transmission and buffer memory are downloaded, first serial ports number available on computer is checked, and the serial ports number selecting POS terminal to access, then adopt PC external member transparent transmission downloading mode or buffer memory downloading mode to carry out data download;
PC external member transparent transmission downloading mode is: described PC external member receives POS communication data from serial ports or SOCKET, and is forwarded to corresponding service end; Described PC external member receives data from service end, and is forwarded on described serial ports or SOCKET;
PC external member buffer memory downloading mode is: the packet of service end is first downloaded to this locality by described PC external member; PC external member receives after the request msg of POS terminal from serial ports or SOCKET, selects local corresponding Packet Generation in POS terminal;
Described method is supported that multiple stage POS terminal accesses simultaneously and is downloaded.
The invention has the beneficial effects as follows and achieve a kind of PC external member transparent transmission downloading mode and buffer memory downloading mode, the transparent transmission downloading mode of the method or buffer memory downloading mode is adopted to carry out data download, the online lower dress of program file between service end and POS terminal can be realized, overcome prior art and cannot meet online lower dress demand, the system platforms such as TMS cannot be applied to, and manual operation easily occurs the problems such as mistake, there is very strong Practical significance and wide application prospect.
Accompanying drawing explanation
Fig. 1 is the PC external member transparent transmission downloading mode implementing procedure figure of the embodiment of the present invention.
Fig. 2 is the PC external member buffer memory downloading mode implementing procedure figure of the embodiment of the present invention.
Embodiment
The method that PC external member transparent transmission of the present invention and buffer memory are downloaded, first checks serial ports number available on computer, and the serial ports number selecting POS terminal to access, then adopt PC external member transparent transmission downloading mode or buffer memory downloading mode to carry out data download;
PC external member transparent transmission downloading mode is: described PC external member receives POS communication data from serial ports or SOCKET, and is forwarded to corresponding service end; Described PC external member receives data from service end, and is forwarded on described serial ports or SOCKET;
PC external member buffer memory downloading mode is: the packet of service end is first downloaded to this locality by described PC external member; PC external member receives after the request msg of POS terminal from serial ports or SOCKET, selects local corresponding Packet Generation in POS terminal;
Described method is supported that multiple stage POS terminal accesses simultaneously and is downloaded.
Below in conjunction with the drawings and specific embodiments, PC external member transparent transmission downloading mode of the present invention and buffer memory downloading mode are further described.
The PC external member transparent transmission downloading mode implementing procedure of the embodiment of the present invention as shown in Figure 1, comprises the following steps:
Step 101: check serial ports number available on PC, and the serial ports number selecting POS terminal to access.
Concrete, search out all available serial ports number on PC, and enumerate in the window, the serial ports number then selecting POS terminal to access in described window, and start the monitoring service of PC external member to this serial ports, the read-write operation of data can be carried out afterwards to this serial ports.
Step 102: receive POS terminal and be sent to the data flow of specifying on serial ports (or SOCKET), after data receiver is complete, waits for and data are mail to service end.
Step 103: whether inspection sets up with the TCP link of service end, if the TCP link of PC external member and service end is not set up, then initiatively creates TCP with service end and is connected.
Concrete, on window, set IP and the port of service end time initial, set up TCP according to the IP arranged with port and service end and be connected.
Step 104: the data that serial ports (or SOCKET) receives are forwarded to service end by TCP mode.
Repeatedly carry out step 102 ~ 104, until close PC external member to the monitoring service (or disconnecting bipartite SOCKET communication link) of this serial ports.
Step 105: the SOCKET packet receiving service end, and be forwarded to described POS terminal.
Repeatedly carry out step 1.5, be connected with the TCP of service end until close PC external member.
Step 106: detect PC external member and be connected with the TCP of service end, if service end chain rupture detected, then disconnects and being connected with the TCP of service end.
In the above embodiment of the present invention, POS gets from service end the bag that downloads by download online mode, and PC external member only uses its transparent transmission function, does not process the data in concrete download file and process.This method ensure that the reliability of the bag that downloads.
The PC external member buffer memory downloading mode implementing procedure of the embodiment of the present invention as shown in Figure 2, comprises the following steps:
Step 201: check serial ports number available on PC, and the serial ports number selecting POS terminal to access.
Concrete, search out all available serial ports number on PC, and enumerate in the window, the serial ports number then selecting POS terminal to access in described window, and start the monitoring service of PC external member to this serial ports, the read-write operation of data can be carried out afterwards to this serial ports.
Step 202: all packets that service end sets are downloaded to this locality by ftp.
Concrete, window sets the path at program file bag place on server and the path of local save routine file bag, and all program packages under described path are synchronized to local described path position of specifying by ftp by PC external member.
Step 203: receive POS terminal and be sent to the data flow of specifying on serial ports (or SOCKET), after data receiver is complete, data are mail to service end.
Step 204: receive the reply data bag that service end returns, analyzes downloading data and wraps in local file road.
Step 205: notice POS terminal starts to enter download, and is downloaded in POS terminal by the local program bag of specifying.
After finding the available program file that local PC is preserved, by serial ports (or SOCKET), this file is sent to POS.
In the above embodiment of the present invention, first all POS program packages are cached to this locality by PC external member.POS terminal is initiated after download request, is determined the program package that will download by service end, and when downloading by PC external member by the document backup of local correspondence to POS.The method increase speed and the stability of download.
Be more than preferred embodiment of the present invention, all changes done according to technical solution of the present invention, when the function produced does not exceed the scope of technical solution of the present invention, all belong to protection scope of the present invention.

Claims (3)

1. a method for PC external member transparent transmission and buffer memory download, is characterized in that: first check serial ports number available on computer, and the serial ports number selecting POS terminal to access, then adopt PC external member transparent transmission downloading mode or buffer memory downloading mode to carry out data download;
PC external member transparent transmission downloading mode is: described PC external member receives POS communication data from serial ports or SOCKET, and is forwarded to corresponding service end; Described PC external member receives data from service end, and is forwarded on described serial ports or SOCKET; The method adopting PC external member transparent transmission downloading mode to carry out data download is:
Step 1.1: the POS communication data sent from serial ports or SOCKET reception POS terminal, waits to be sent to service end;
Step 1.2: described POS communication data is forwarded to service end by TCP mode;
Step 1.3: the tcp data receiving service end, and be forwarded to described POS terminal;
PC external member buffer memory downloading mode is: the packet of service end is first downloaded to this locality by described PC external member; PC external member receives after the request msg of POS terminal from serial ports or SOCKET, selects local corresponding Packet Generation in POS terminal; The method adopting PC external member buffer memory downloading mode to carry out data download is:
Step 2.1: all packets that service end sets are downloaded to this locality by ftp;
Step 2.2: receive the request msg of POS terminal from serial ports or SOCKET and be forwarded to service end by TCP mode;
Step 2.3: the information returned according to described service end, the packet of being specified this locality downloads in POS terminal;
Described method is supported that multiple stage POS terminal accesses simultaneously and is downloaded;
Before the data that the POS terminal received is sent are sent to service end by described PC external member, first check to be connected with the TCP of service end whether exist, if do not exist, then foundation is connected with the TCP of service end;
When described PC external member receives the data that service end sends, connect if service end disconnects TCP, then PC external member is also closed and is connected with the TCP of service end.
2. the method downloaded of a kind of PC external member transparent transmission according to claim 1 and buffer memory, is characterized in that: check that the method for serial ports available on PC number is: search out all available serial ports number on PC, and show in the window; Then the serial ports number selecting POS terminal to access in described window.
3. the method for a kind of PC external member transparent transmission according to claim 1 and buffer memory download, it is characterized in that: multiple stage POS terminal accesses PC external member by different serial ports or SOCKET link simultaneously and carries out data download, the transfer of data in each serial ports or SOCKET link is independent of each other.
CN201210446365.8A 2012-11-09 2012-11-09 A kind of method that PC external member transparent transmission and buffer memory are downloaded Active CN103118058B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210446365.8A CN103118058B (en) 2012-11-09 2012-11-09 A kind of method that PC external member transparent transmission and buffer memory are downloaded

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210446365.8A CN103118058B (en) 2012-11-09 2012-11-09 A kind of method that PC external member transparent transmission and buffer memory are downloaded

Publications (2)

Publication Number Publication Date
CN103118058A CN103118058A (en) 2013-05-22
CN103118058B true CN103118058B (en) 2016-03-23

Family

ID=48416329

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210446365.8A Active CN103118058B (en) 2012-11-09 2012-11-09 A kind of method that PC external member transparent transmission and buffer memory are downloaded

Country Status (1)

Country Link
CN (1) CN103118058B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209888A (en) * 2016-07-25 2016-12-07 银联商务有限公司 A kind of information transferring method and device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104580434B (en) * 2014-12-26 2018-05-08 深圳市海蕴新能源有限公司 The method and system that a kind of firmware is downloaded

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383729A (en) * 2008-10-17 2009-03-11 北京佳讯飞鸿电气股份有限公司 Method for implementing master control board software upgrading by SLIP protocol
CN101394615A (en) * 2007-09-20 2009-03-25 中国银联股份有限公司 Mobile payment terminal and payment method based on PKI technique
CN101820447A (en) * 2010-03-31 2010-09-01 青岛海信宽带多媒体技术有限公司 Software upgrading method and upgrading device
CN102510396A (en) * 2011-10-24 2012-06-20 广东汇卡商务服务有限公司 System and method for remotely and intelligently managing point-of-sale (POS) terminal
CN102707974A (en) * 2012-05-02 2012-10-03 银联商务有限公司 POS (Point Of Sale) terminal program package downloading method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030061603A1 (en) * 2001-09-21 2003-03-27 Chih-Chien Tang Method and device for updating keyboard controller BIOS through serial port

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101394615A (en) * 2007-09-20 2009-03-25 中国银联股份有限公司 Mobile payment terminal and payment method based on PKI technique
CN101383729A (en) * 2008-10-17 2009-03-11 北京佳讯飞鸿电气股份有限公司 Method for implementing master control board software upgrading by SLIP protocol
CN101820447A (en) * 2010-03-31 2010-09-01 青岛海信宽带多媒体技术有限公司 Software upgrading method and upgrading device
CN102510396A (en) * 2011-10-24 2012-06-20 广东汇卡商务服务有限公司 System and method for remotely and intelligently managing point-of-sale (POS) terminal
CN102707974A (en) * 2012-05-02 2012-10-03 银联商务有限公司 POS (Point Of Sale) terminal program package downloading method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209888A (en) * 2016-07-25 2016-12-07 银联商务有限公司 A kind of information transferring method and device
CN106209888B (en) * 2016-07-25 2019-06-04 银联商务有限公司 A kind of information transferring method and device

Also Published As

Publication number Publication date
CN103118058A (en) 2013-05-22

Similar Documents

Publication Publication Date Title
CN105024855B (en) Distributed type assemblies manage system and method
CN108062230B (en) Serial port transparent transmission and program updating system and method in Internet range
CN110752943B (en) Distributed fault diagnosis system and method for power transmission line
CN103634165B (en) Method, terminal device and system for realizing network testing based on reverse proxy
CN102571997A (en) Method, system and device for data access
CN103746783A (en) Extended communication method based on Modbus communication protocol
CN111949456B (en) Automatic serial port protocol testing system and method based on configuration updating
CN107219441A (en) Ultra-high-tension power transmission line fault location system based on mobile phone A PP
CN104754027A (en) Cross-network communication method and communication system
US11956128B2 (en) Test method and device for simulating customer series deployment environment
CN104519129A (en) Data transmission method, device and system
CN102421201A (en) Method for rapidly establishing dual-stack wireless connection and wireless terminal equipment
CN104793612A (en) Unmanned aerial vehicle ground control station testing and data acquiring method and system thereof
CN104469822A (en) Testing method, base station and system
CN103118058B (en) A kind of method that PC external member transparent transmission and buffer memory are downloaded
CN104243589A (en) Operation service platform system and method based on Big Dipper RDSS/RNSS
CN108206829B (en) Method for realizing network communication by GigE Vision protocol based on FPGA
CN104243719A (en) Heartbeat period determining method, system and device for long connection in mobile communication network
CN110535919A (en) Network access method and device of concentrator and power peak regulation system
CN102315981B (en) Equipment and method for testing evolved packet core network equipment
CN102158565A (en) Method and system for configuring Internet protocol (IP) address for remote device
CN102255800A (en) Method for converting data format between IP (Internet Protocol) data packages on CAN (Control Area Network) bus and CAN messages
CN102420809A (en) terminal management system, server and method
CN101945360B (en) Wireless terminal configuration method and system
CN102932208A (en) Site monitoring method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant