CN110798530A - Improved method based on self-service vending system data uploading - Google Patents

Improved method based on self-service vending system data uploading Download PDF

Info

Publication number
CN110798530A
CN110798530A CN201911082449.6A CN201911082449A CN110798530A CN 110798530 A CN110798530 A CN 110798530A CN 201911082449 A CN201911082449 A CN 201911082449A CN 110798530 A CN110798530 A CN 110798530A
Authority
CN
China
Prior art keywords
data
self
service vending
vending machine
target host
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.)
Pending
Application number
CN201911082449.6A
Other languages
Chinese (zh)
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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201911082449.6A priority Critical patent/CN110798530A/en
Publication of CN110798530A publication Critical patent/CN110798530A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/54Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Control Of Vending Devices And Auxiliary Devices For Vending Devices (AREA)

Abstract

The invention provides an improved method based on self-service vending system data uploading, and belongs to the field of self-service vending machines. The invention comprises the following steps: establishing data connection between the vending machine and the target host; when the self-service vending machine and the target host machine carry out data transmission, judging the current state of the self-service vending machine, if the self-service vending machine is judged to be in an online state, processing the data transmitted by the self-service vending machine and storing the data as an online data file by the target host machine, otherwise, storing the data as an offline data file by the self-service vending machine; when the self-service vending machine is in an off-line state, if data connection with the target host is not recovered, the self-service vending machine stores data as off-line data files, if the data connection with the target host is recovered, whether the off-line data files exist in the target self-service vending machine or not is judged, if the off-line data files exist, the off-line data files are classified and then transmitted to the target host, and if not, real-time on-line data are transmitted to the target host.

Description

Improved method based on self-service vending system data uploading
Technical Field
The invention relates to a self-service vending machine technology, in particular to an improved method based on self-service vending system data uploading.
Background
As society develops, self-service vending systems have become popular in cities. In the existing self-service vending system, under the offline condition of the vending machine, transaction data such as vending information generated by the vending machine cannot be uploaded in a network communication mode, and the current solution is that at the end of an operation day, a worker copies and uploads transaction records to vending equipment by using a mobile storage device. Problems that easily arise with this approach are: manual operation is easy to generate errors, and data can be mistakenly and leaked; if the network of the equipment is interrupted within a period of time and then the network connection is recovered, the data within the interruption time is not uploaded in time, and the real-time performance of the data is influenced.
Due to the pain of the industry, a method for maintaining the integrity and the accuracy of off-line data and automatically uploading the off-line data based on the automatic vending system is urgently needed by the industry.
Disclosure of Invention
The invention aims to provide an improved method based on self-service vending system data uploading, and solves the problems that data loss, data incompleteness, low accuracy, data non-automatic synchronization after network recovery and the like are caused when a vending machine is offline by an automatic vending system.
The invention solves the technical problem, and adopts the technical scheme that: the improvement method based on self-service vending system data uploading comprises the following steps:
step 1, establishing data connection between a self-service vending machine and a target host;
step 2, when the self-service vending machine and the target host machine carry out data transmission, judging the current state of the self-service vending machine, if the self-service vending machine is judged to be in an online state, processing the data transmitted by the self-service vending machine and storing the data as an online data file by the target host machine, and if the self-service vending machine is judged to be in an offline state, storing the data as an offline data file by the self-service vending machine;
step 3, when the self-service vending machine is in an off-line state, if the data connection with the target host is not recovered, the self-service vending machine stores the data as an off-line data file, and if the data connection with the target host is recovered, the step 4 is carried out;
and 4, judging whether the target self-service vending machine has the offline data files or not, if so, classifying the offline data files and transmitting the offline data files to the target host, otherwise, transmitting the real-time online data to the target host.
Specifically, in step 2, when determining the current state of the self-service vending machine, the method includes: the self-service vending machine sends data to the target host, the target host receives and processes the data and judges whether the processing is successful or not, if the processing is successful, the received data is stored into an online data file and sends a confirmation character to the self-service vending machine, if the processing is failed, the self-service vending machine retries, if the processing is still failed after retrying corresponding times, the self-service vending machine enters an offline state, the target host does not send the confirmation character, and the self-service vending machine stores the data into the offline data file.
Further, the number of retries is five.
The self-service vending system data uploading method has the advantages that the self-service vending system data uploading-based improved method can accurately and effectively store the data of the vending machine in an off-line state, automatically upload the data after network recovery, does not need manual intervention, saves labor cost and is beneficial to a manager to manage the vending machine.
Drawings
FIG. 1 is a flow chart of an improved method for uploading data based on a self-service vending system according to the present invention.
Detailed Description
The technical scheme of the invention is described in detail in the following with reference to the accompanying drawings.
The invention relates to an improved method based on self-service vending system data uploading, a flow chart in the specific implementation process of the improved method is shown in a figure 1, wherein the method comprises the following steps:
step 1, establishing data connection between a self-service vending machine and a target host;
step 2, when the self-service vending machine and the target host machine carry out data transmission, judging the current state of the self-service vending machine, if the self-service vending machine is judged to be in an online state, processing the data transmitted by the self-service vending machine and storing the data as an online data file by the target host machine, and if the self-service vending machine is judged to be in an offline state, storing the data as an offline data file by the self-service vending machine;
step 3, when the self-service vending machine is in an off-line state, if the data connection with the target host is not recovered, the self-service vending machine stores the data as an off-line data file, and if the data connection with the target host is recovered, the step 4 is carried out;
and 4, judging whether the target self-service vending machine has the offline data files or not, if so, classifying the offline data files and transmitting the offline data files to the target host, otherwise, transmitting the real-time online data to the target host.
In the above method, in step 2, when the current state of the self-service vending machine is judged, the method includes: the self-service vending machine sends data to the target host, the target host receives and processes the data and judges whether the processing is successful or not, if the processing is successful, the received data is stored into an online data file and sends a confirmation character to the self-service vending machine, if the processing is failed, the self-service vending machine retries, if the processing is still failed after retrying corresponding times, the self-service vending machine enters an offline state, the target host does not send the confirmation character, and the self-service vending machine stores the data into the offline data file. The number of retries is preferably five, the number of retries is the number of processing failures, each processing failure requires the self-service vending machine to send data to the target host, and the target host receives and processes the data once.
In practical application, the principle of the improved method based on the self-service vending system data uploading can be combined by a data backup method and an automatic data detection uploading method.
The above mentioned data backup method is similar to the TCP timeout retransmission mechanism, and is different from the commonly used backup method. The conventional backup only simply copies the file, only simply adds the file, and places where duplication and conflict are possible exist, so that the reliability and the safety are not particularly high. The backup method mentioned here adopts reliable message data transmission technology, so that the reliability and the safety of the backup file are greatly improved, and the purpose of reliable message transmission is to ensure that the message is transmitted to the other side without loss, repetition and conflict.
The current state of the self-service vending machine needs to be judged during message transmission, and an offline state judgment mechanism needs to be used in the judgment process.
The existing self-service vending system offline determines that once the connection is disconnected, the self-service vending machine will try to establish contact with the central host machine until the connection is reestablished, and data in the process cannot be automatically stored. The existing offline judgment mechanism takes whether data is received as a reference to judge the state online and offline, and does not react immediately after the judgment.
The offline state judgment mechanism adopted by the invention takes whether ACK is received as a reference, and stores the offline data immediately after the judgment. The specific process comprises the steps of firstly sending data to a target host, processing the data by the target host, storing a received data file if the processing is successful, and sending ACK (acknowledgement character); and if the processing fails, retrying, and after the retrying is carried out for five times, entering an offline mode, not sending an ACK (acknowledgement character), and storing the data as an offline data file.
The automatic detection uploading method is to detect the system immediately after the network is recovered, read and detect the off-line data again, and then upload the off-line data to the target host again. The existing data detection uploading method only packs and sends data to a central host, and the data received by the host is not classified and needs to be classified and sorted manually.
Different from the traditional data checking and uploading method, the data are firstly identified and classified by adopting an identification technology in the process, the data packet which receives the ACK is identified as online data, and the data which does not receive the ACK is identified as offline data. When data identification is carried out, semantic definition needs to be carried out on the data, and the data is classified. And then the offline data and the online data are respectively packaged and then uploaded, so that the time for data transmission is greatly saved. When uploading, the host receives the classified data, and then analyzes the two data packets by using an analysis technology according to whether the ACK is received, so that the relevant data collection and statistics are facilitated, and the working efficiency is greatly improved.
Therefore, the data backup method can timely backup the system into an offline file when the system is offline, and the backed-up data has safety and reliability. The automatic data detection and uploading method can classify and upload offline data when connection is recovered. The two methods are combined, so that the full-process autonomous system butt joint of automatic off-line data backup and automatic on-line data classified uploading can be realized, manual intervention is not needed, and the problems of data loss, data incompleteness, low accuracy, incapability of automatic synchronization of data after network recovery and the like in an off-line condition can be solved.

Claims (3)

1. An improved method based on self-service vending system data uploading is characterized by comprising the following steps:
step 1, establishing data connection between a self-service vending machine and a target host;
step 2, when the self-service vending machine and the target host machine carry out data transmission, judging the current state of the self-service vending machine, if the self-service vending machine is judged to be in an online state, processing the data transmitted by the self-service vending machine and storing the data as an online data file by the target host machine, and if the self-service vending machine is judged to be in an offline state, storing the data as an offline data file by the self-service vending machine;
step 3, when the self-service vending machine is in an off-line state, if the data connection with the target host is not recovered, the self-service vending machine stores the data as an off-line data file, and if the data connection with the target host is recovered, the step 4 is carried out;
and 4, judging whether the target self-service vending machine has the offline data files or not, if so, classifying the offline data files and transmitting the offline data files to the target host, otherwise, transmitting the real-time online data to the target host.
2. The improvement method based on self-service vending system data uploading according to claim 1, wherein in the step 2, when the judgment on the current state of the self-service vending machine is performed, the method comprises the following steps: the self-service vending machine sends data to the target host, the target host receives and processes the data and judges whether the processing is successful or not, if the processing is successful, the received data is stored into an online data file and sends a confirmation character to the self-service vending machine, if the processing is failed, the self-service vending machine retries, if the processing is still failed after retrying corresponding times, the self-service vending machine enters an offline state, the target host does not send the confirmation character, and the self-service vending machine stores the data into the offline data file.
3. The self-service vending system data upload-based improvement method according to claim 2, wherein the number of retries is five.
CN201911082449.6A 2019-11-07 2019-11-07 Improved method based on self-service vending system data uploading Pending CN110798530A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911082449.6A CN110798530A (en) 2019-11-07 2019-11-07 Improved method based on self-service vending system data uploading

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911082449.6A CN110798530A (en) 2019-11-07 2019-11-07 Improved method based on self-service vending system data uploading

Publications (1)

Publication Number Publication Date
CN110798530A true CN110798530A (en) 2020-02-14

Family

ID=69443259

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911082449.6A Pending CN110798530A (en) 2019-11-07 2019-11-07 Improved method based on self-service vending system data uploading

Country Status (1)

Country Link
CN (1) CN110798530A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101908952A (en) * 2010-08-05 2010-12-08 新太科技股份有限公司 Offline data self-detection retransmission method
US20170063566A1 (en) * 2011-10-04 2017-03-02 Electro Industries/Gauge Tech Internet of things (iot) intelligent electronic devices, systems and methods
CN108922023A (en) * 2018-06-21 2018-11-30 江汉大学 A kind of automatic selling system and Self-help vending machine
CN109062089A (en) * 2018-07-12 2018-12-21 山东科技大学 A kind of automatic vending machine multi-channel control circuit system
CN109362067A (en) * 2018-09-30 2019-02-19 北京未来便利技术有限公司 A kind of automatically vending system
CN110363519A (en) * 2018-03-26 2019-10-22 富士电机(中国)有限公司 The method that automatic vending machine is sold goods offline

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101908952A (en) * 2010-08-05 2010-12-08 新太科技股份有限公司 Offline data self-detection retransmission method
US20170063566A1 (en) * 2011-10-04 2017-03-02 Electro Industries/Gauge Tech Internet of things (iot) intelligent electronic devices, systems and methods
CN110363519A (en) * 2018-03-26 2019-10-22 富士电机(中国)有限公司 The method that automatic vending machine is sold goods offline
CN108922023A (en) * 2018-06-21 2018-11-30 江汉大学 A kind of automatic selling system and Self-help vending machine
CN109062089A (en) * 2018-07-12 2018-12-21 山东科技大学 A kind of automatic vending machine multi-channel control circuit system
CN109362067A (en) * 2018-09-30 2019-02-19 北京未来便利技术有限公司 A kind of automatically vending system

Similar Documents

Publication Publication Date Title
CN103414916B (en) Fault diagnosis system and method
CN108429629A (en) Equipment fault restoration methods and device
CN102143073A (en) Data transmission method and system
WO2005036361A3 (en) Fec-based reliability control protocols
CN111740877B (en) Link detection method and system
CN101504540B (en) Control method for safe and intelligent I/O combination system
CN110798530A (en) Improved method based on self-service vending system data uploading
CN113190385A (en) Data synchronization method for master and standby machines of station application server
CN108400903A (en) A kind of physical layer link status detection method and device
CN116737462A (en) Data processing method, system, device and medium
CN105516255A (en) Method for pushing configuration from MoCA central office to terminal device and corresponding device
CN110677316A (en) Distributed storage server network card detection method and system
CN114697196A (en) Network path switching method in data center, data center network system and equipment
CN114978958A (en) Information processing method based on block chain and big data analysis and big data platform
EP3937467B1 (en) Terminal, server, internet of things data transmission method, and data transmission system
JP5287457B2 (en) Operation mode difference detection program, method and apparatus
CN107241218B (en) Fault detection method and device
CN106789281B (en) Method for realizing disconnection reconnection in OPC protocol communication process
CN109450683A (en) Fault detection method, device and application system and storage medium
JP2528938B2 (en) Communication control system
CN117880061B (en) Operation and maintenance monitoring system for data center
CN108809768B (en) Fault monitoring and recovery system of shared switching platform
JP5168098B2 (en) Detection apparatus, method, and program
CN115203308A (en) Monitoring system and monitoring method of demonstrator
CN115809273A (en) Alarm data acquisition method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200214

RJ01 Rejection of invention patent application after publication