Nothing Special   »   [go: up one dir, main page]

CN108415715A - Method for upgrading software based on scene analysis suitable for automatic vending machine - Google Patents

Method for upgrading software based on scene analysis suitable for automatic vending machine Download PDF

Info

Publication number
CN108415715A
CN108415715A CN201810146516.5A CN201810146516A CN108415715A CN 108415715 A CN108415715 A CN 108415715A CN 201810146516 A CN201810146516 A CN 201810146516A CN 108415715 A CN108415715 A CN 108415715A
Authority
CN
China
Prior art keywords
vending machine
automatic vending
software
upgrading
mode
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
CN201810146516.5A
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 Ai Chuang Technology Co Ltd
Original Assignee
Sichuan Ai Chuang Technology 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 Ai Chuang Technology Co Ltd filed Critical Sichuan Ai Chuang Technology Co Ltd
Priority to CN201810146516.5A priority Critical patent/CN108415715A/en
Publication of CN108415715A publication Critical patent/CN108415715A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0793Remedial or corrective actions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F9/00Details other than those peculiar to special kinds or types of apparatus
    • G07F9/006Details of the software used for the vending machines

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Quality & Reliability (AREA)
  • Control Of Vending Devices And Auxiliary Devices For Vending Devices (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention relates to automatic vending machine fields, do not consider the problems of that the scene of automatic vending machine causes software upgrading to affect automatic vending machine efficiency of operation when for software upgrading, a kind of method for upgrading software based on scene analysis suitable for automatic vending machine is proposed, is included the following steps:Upgrading configuration is periodically obtained, this document includes at least software version, software download path and upgrade mode;If the software version software version current higher than automatic vending machine obtains according to software download path and download file and store to automatic vending machine, into next step, otherwise terminate epicycle processing;When upgrade mode is waiting mandatory upgrade pattern, the scene mode and operating status of current automatic vending machine are periodically obtained if software upgrading does not complete, when scene mode is busy condition to sell pattern and operating status, temporarily without software upgrading, software upgrading is otherwise carried out.The present invention is suitable for the software upgrading of automatic vending machine.

Description

Method for upgrading software based on scene analysis suitable for automatic vending machine
Technical field
The present invention relates to automatic vending machine field, more particularly to it is a kind of suitable for automatic vending machine based on scene analysis Method for upgrading software.
Background technology
The software upgrading mode of automatic vending machine is more flexible at present, can both be downloaded new software version by network Get off to be upgraded, can also be upgraded by the new software package of the vector copies such as USB flash disk, local liter can be both carried out to software Grade can also carry out software whole upgrading.Previous method for upgrading software is mainly studied and how to carry out software upgrading and just may be used By being not in failure, but after automatic vending machine rises, user has more demands to software upgrading, for example wishes soft Part upgrading avoids carrying out software upgrading when someone buys commodity as possible, or in emergency circumstances for example finds existing software version Software discovery serious bug when need to carry out state etc. of the mandatory upgrade without comprehending automatic vending machine.
Invention content
The technical problem to be solved by the present invention is to:Overcome and does not consider that the scene of automatic vending machine is led when existing software upgrading Cause software upgrading the problem of affecting the efficiency of operation of automatic vending machine, propose it is a kind of suitable for automatic vending machine based on scene The method for upgrading software of analysis.
The present invention solves above-mentioned technical problem, the technical solution adopted is that:
Suitable for the method for upgrading software based on scene analysis of automatic vending machine, include the following steps:
Step 1, the upgrading configuration for periodically obtaining server end, the upgrading configuration include at least software version Originally, software download path and upgrade mode;
The software version of step 2, the software version and current automatic vending machine, if the software version is higher than certainly The current software version of dynamic vending machine then obtains according to the software download path and downloads file and store to automatic vending machine, 3 are entered step, epicycle software upgrading processing is otherwise terminated;
Step 3, the upgrade mode include waiting mandatory upgrade pattern, when the upgrade mode is waiting mandatory upgrade mould When formula, then the scene mode and operating status of automatic vending machine are monitored, the scene mode includes selling pattern, the operation shape State includes idle state and busy condition, when scene mode is that sell pattern and operating status be busy condition, temporarily not into Row software upgrading waits for and carries out software upgrading again after scene mode or operating status change, otherwise carries out software liter at once Grade.
Further, the scene mode further includes power on mode and debugging mode.
Specifically, in the step 3, the scene mode is determined by user interface where judging automatic vending machine, The operating status is determined by monitoring touch-screen event and key-press event.
It needs to carry out mandatory upgrade as the serious bug of the software discovery in emergency circumstances for example finding existing software version When state without comprehending automatic vending machine, further, the upgrade mode further includes mandatory upgrade pattern at once, described In step 3, when the upgrade mode is mandatory upgrade pattern at once, no matter the scene mode where automatic vending machine and operation State carries out software upgrading at once.
When updated contents only relate to the software of some areas, it is only necessary to which the administrator of automatic vending machine judges whether It needs to upgrade, further, the upgrade mode further includes optional upgrade pattern, in the step 3, when the upgrade mode is When optional upgrade pattern, the scene mode of automatic vending machine is monitored, when scene mode is to sell pattern, is not then popped up pair temporarily Frame is talked about, dialog box is popped up when scene mode being waited for change again and decides whether to carry out software upgrading by artificially selecting, otherwise directly Pop-up dialog box decides whether to carry out software upgrading by artificially selecting.
To ensure that the software upgrading file downloaded is complete and correct, further, the upgrading configuration further includes the One eap-message digest further includes carrying out calculating acquisition second to the downloads file using Message Digest 5 disappearing in the step 2 Breath abstract compares first message abstract and second message abstract, if inconsistent by the download file from automatic vending machine It deletes and sends upgrade file error message to server, step terminates.
The beneficial effects of the invention are as follows:
1) scene that automatic vending machine is considered when software upgrading improves the efficiency of operation of automatic vending machine;
2) processing that emergency is considered when software upgrading improves the stability of software;
3) special circumstances are considered when software upgrading if you need to artificial to determine whether upgrading, improves the spirit of software upgrading Activity;
4) integrality that upgrade file is considered when software upgrading ensure that the integrality and correctness of software upgrading.
Description of the drawings
Fig. 1 is the software upgrading flow chart of the embodiment of the present invention.
Specific implementation mode
The invention will be further described with reference to the accompanying drawings and embodiments.
Do not consider that the scene of automatic vending machine causes software upgrading to affect when the present invention is directed to overcome existing software upgrading The problem of efficiency of operation of automatic vending machine, proposes a kind of software upgrading side based on scene analysis suitable for automatic vending machine Method includes the following steps:
Step 1, the upgrading configuration for periodically obtaining server end, the upgrading configuration include at least software version Originally, software download path and upgrade mode;
The software version of step 2, the software version and current automatic vending machine, if the software version is higher than certainly The current software version of dynamic vending machine then obtains according to the software download path and downloads file and store to automatic vending machine, 3 are entered step, epicycle software upgrading processing is otherwise terminated;
Step 3, the upgrade mode include waiting mandatory upgrade pattern, when the upgrade mode is waiting mandatory upgrade mould When formula, then the scene mode and operating status of automatic vending machine are monitored, the scene mode includes selling pattern, the operation shape State includes idle state and busy condition, when scene mode is that sell pattern and operating status be busy condition, temporarily not into Row software upgrading waits for and carries out software upgrading again after scene mode or operating status change, otherwise carries out software liter at once Grade.
Embodiment:
XML format can be used in upgrading configuration in the present embodiment, as follows.
Wherein, software version V1.4.5, first message abstract are 193dd0fec383a9d9ac94051538b8c9c5, The download path of upgrade file is http://changhong.com/version/app/Juice.apk can define upgrade mode Waiting mandatory upgrade pattern is indicated for 1, and upgrade mode is 2 and indicates mandatory upgrade pattern at once, and upgrade mode indicates for 3 can Select upgrade mode.
As shown in Figure 1, to ensure that the software upgrading file downloaded is complete and correct, in the step 2, if the software version This software version current higher than automatic vending machine then obtains according to the software download path and downloads file and store to automatic Vending machine further uses Message Digest 5 to carry out calculating acquisition second message abstract to the download file, compares first Eap-message digest and second message abstract, 3 are entered step if consistent, if it is inconsistent by the download file from automatic vending machine Middle deletion simultaneously sends upgrade file error message to server, terminates epicycle software upgrading processing.
According to the unattended duration of automatic vending machine, automatic vending machine can be divided into busy and idle two kinds of shapes State, such as with 1 minute for boundary, automatic vending machine is more than 1 minute unattended, then the automatic vending machine is in idle condition, Judge machine whether in the free time by monitoring touch-screen event and key-press event.
The scene mode is determined by user interface where judging automatic vending machine, when automatic vending machine is in booting When waiting picture, scene mode is power on mode at this time, and automatic vending machine Yet-have does not have the condition of operation, and operating status is inevitable It is in idle condition;When automatic vending machine is in administrator's operation interface, as administrator checks automatic vending machine state and debugging When automatic vending machine, scene mode is debugging mode at this time;Operation interface is bought when automatic vending machine is in user, at this time scene Pattern is to sell pattern.Scene mode, operating status and the upgrade mode of automatic vending machine constitute the scene of automatic vending machine.
As shown in table 1 below, upgrade mode includes waiting mandatory upgrade pattern, at once mandatory upgrade pattern and optional upgrade mould Formula, in the step 3, when upgrade mode is waiting mandatory upgrade pattern, then the scene mode of monitoring automatic vending machine in real time And operating status, the scene mode include selling pattern, the operating status includes idle state and busy condition, works as scene When pattern is that sell pattern and operating status be busy condition, temporarily without software upgrading, wait for until scene mode or fortune Row state carries out software upgrading again after changing, and otherwise carries out software upgrading at once;When upgrade mode is mandatory upgrade pattern at once When, no matter the scene mode where automatic vending machine and operating status, carry out software upgrading at once;When upgrade mode is optional liter When grade pattern, the scene mode of automatic vending machine is monitored in real time, when scene mode is to sell pattern, does not then temporarily pop up dialogue Frame pops up dialog box and decides whether to carry out software upgrading by artificially selecting, otherwise direct bullet again when scene mode being waited for change Go out dialog box to decide whether to carry out software upgrading by artificially selecting.
1 step 3 of table upgrades rule list

Claims (6)

1. the method for upgrading software based on scene analysis suitable for automatic vending machine, which is characterized in that include the following steps:
Step 1, the upgrading configuration for periodically obtaining server end, the upgrading configuration include at least software version, soft Part download path and upgrade mode;
The software version of step 2, the software version and current automatic vending machine, if the software version is higher than automatic selling The current software version of cargo aircraft then obtains according to the software download path and downloads file and store to automatic vending machine, enters Step 3, otherwise terminate epicycle software upgrading processing;
Step 3, the upgrade mode include waiting mandatory upgrade pattern, when the upgrade mode is waiting mandatory upgrade pattern When, then the scene mode and operating status of automatic vending machine are monitored, the scene mode includes selling pattern, the operating status Including idle state and busy condition, when scene mode is that sell pattern and operating status be busy condition, temporarily without Software upgrading waits for and carries out software upgrading again after scene mode or operating status change, otherwise carries out software upgrading at once.
2. being suitable for the method for upgrading software based on scene analysis of automatic vending machine as described in claim 1, feature exists In the scene mode further includes power on mode and debugging mode.
3. being suitable for the method for upgrading software based on scene analysis of automatic vending machine as described in claim 1, feature exists In in the step 3, the scene mode is determined by judging user interface where automatic vending machine, passes through and monitors touch screen Event and key-press event determine the operating status.
4. being suitable for the method for upgrading software based on scene analysis of automatic vending machine as described in claim 1, feature exists In, the upgrade mode further include mandatory upgrade pattern at once, in the step 3, when the upgrade mode is to force to rise at once When grade pattern, no matter the scene mode where automatic vending machine and operating status, carry out software upgrading at once.
5. being suitable for the method for upgrading software based on scene analysis of automatic vending machine as described in claim 1, feature exists In, the upgrade mode further include optional upgrade pattern, in the step 3, when the upgrade mode is optional upgrade pattern, The scene mode for monitoring automatic vending machine does not pop up dialog box temporarily then, waits for scene mould when scene mode is to sell pattern Formula pops up dialog box and decides whether to carry out software upgrading by artificially selecting again when changing, otherwise directly pop-up dialog box passes through people Decide whether to carry out software upgrading for selection.
6. being suitable for the method for upgrading software based on scene analysis of automatic vending machine as described in claim 1, feature exists In the upgrading configuration further includes that first message is made a summary, and further includes using Message Digest 5 to institute in the step 2 It states download file to carry out calculating acquisition second message abstract, compares first message abstract and second message abstract, if inconsistent The download file is deleted from automatic vending machine and sends upgrade file error message to server, terminates epicycle software liter Grade processing.
CN201810146516.5A 2018-02-12 2018-02-12 Method for upgrading software based on scene analysis suitable for automatic vending machine Pending CN108415715A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810146516.5A CN108415715A (en) 2018-02-12 2018-02-12 Method for upgrading software based on scene analysis suitable for automatic vending machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810146516.5A CN108415715A (en) 2018-02-12 2018-02-12 Method for upgrading software based on scene analysis suitable for automatic vending machine

Publications (1)

Publication Number Publication Date
CN108415715A true CN108415715A (en) 2018-08-17

Family

ID=63128566

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810146516.5A Pending CN108415715A (en) 2018-02-12 2018-02-12 Method for upgrading software based on scene analysis suitable for automatic vending machine

Country Status (1)

Country Link
CN (1) CN108415715A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377318A (en) * 2019-07-25 2019-10-25 四川爱创科技有限公司 Commodity identification model dynamic updating method for Intelligent cargo cabinet
CN110750283A (en) * 2019-10-15 2020-02-04 青岛易触科技有限公司 Remote upgrading method and system for vending machine driving program

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010115036A3 (en) * 2009-04-03 2011-01-13 Seaga Manufacturing, Inc. Improved currency validator and method of updating data stored in cash transacting machine's control via input through currency validator
CN102789389A (en) * 2012-08-01 2012-11-21 深圳市茁壮网络股份有限公司 Plug-in version detecting and upgrading method and plug-in detector
US20130247022A1 (en) * 2012-03-13 2013-09-19 International Business Machines Corporation Identifying optimal upgrade scenarios in a networked computing environment
CN104317607A (en) * 2014-09-27 2015-01-28 昆明钢铁集团有限责任公司 Enterprise In-house IOS APP automatic update system and method
US20150043388A1 (en) * 2012-04-28 2015-02-12 Huawei Technologies Co., Ltd. Online upgrade processing method, associated apparatus and system
CN105573789A (en) * 2015-09-07 2016-05-11 武汉精测电子技术股份有限公司 FPGA (Field Programmable Gate Array) multi-mirror upgrading-loading method and device based on soft-core processor
CN105589697A (en) * 2016-03-17 2016-05-18 广州杰赛科技股份有限公司 Method and device for upgrading cloud platform
CN105867941A (en) * 2016-04-18 2016-08-17 深圳市永兴元科技有限公司 Software upgrading system and realization method thereof
CN107577473A (en) * 2017-08-24 2018-01-12 苏州汇川联合动力系统有限公司 The multi-point remote method for burn-recording and system of a kind of electric automobile software upgrading

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010115036A3 (en) * 2009-04-03 2011-01-13 Seaga Manufacturing, Inc. Improved currency validator and method of updating data stored in cash transacting machine's control via input through currency validator
US20130247022A1 (en) * 2012-03-13 2013-09-19 International Business Machines Corporation Identifying optimal upgrade scenarios in a networked computing environment
US20150043388A1 (en) * 2012-04-28 2015-02-12 Huawei Technologies Co., Ltd. Online upgrade processing method, associated apparatus and system
CN102789389A (en) * 2012-08-01 2012-11-21 深圳市茁壮网络股份有限公司 Plug-in version detecting and upgrading method and plug-in detector
CN104317607A (en) * 2014-09-27 2015-01-28 昆明钢铁集团有限责任公司 Enterprise In-house IOS APP automatic update system and method
CN105573789A (en) * 2015-09-07 2016-05-11 武汉精测电子技术股份有限公司 FPGA (Field Programmable Gate Array) multi-mirror upgrading-loading method and device based on soft-core processor
CN105589697A (en) * 2016-03-17 2016-05-18 广州杰赛科技股份有限公司 Method and device for upgrading cloud platform
CN105867941A (en) * 2016-04-18 2016-08-17 深圳市永兴元科技有限公司 Software upgrading system and realization method thereof
CN107577473A (en) * 2017-08-24 2018-01-12 苏州汇川联合动力系统有限公司 The multi-point remote method for burn-recording and system of a kind of electric automobile software upgrading

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377318A (en) * 2019-07-25 2019-10-25 四川爱创科技有限公司 Commodity identification model dynamic updating method for Intelligent cargo cabinet
CN110750283A (en) * 2019-10-15 2020-02-04 青岛易触科技有限公司 Remote upgrading method and system for vending machine driving program
CN110750283B (en) * 2019-10-15 2023-05-02 青岛易触科技有限公司 Remote upgrade method and system for vending machine driver

Similar Documents

Publication Publication Date Title
US9262153B2 (en) Firmware update discovery and distribution
US20130067459A1 (en) Order-Independent Deployment Collections with Dependency Package Identifiers
CN106959866A (en) A kind of log collection client and its upgrade method
CN101719073A (en) Intelligent client-based on-demand downloading realization method
CN106557347B (en) Software updating method and device
CN107809324A (en) A kind of OBD equipment and its upgrade method
CN109885332A (en) Image quality chip software upgrade method, device, display equipment and storage medium
WO2017186066A1 (en) Software management method and apparatus
CN108415715A (en) Method for upgrading software based on scene analysis suitable for automatic vending machine
CN107577510A (en) One kind quickly pre-installs method and system automatically without hardware driving under disk ring border
CN106656622A (en) Method and device for configuring interface call tasks
CN102520975A (en) Intelligent updating method of external equipment driver, device and system
CN112764772A (en) Pre-downloading method, loading method, device, equipment and medium for updating file
CN103164326A (en) Detecting method and detecting system for game operating environment
CN114896027A (en) Method, terminal, medium, and program for pipeline cross-cluster deployment application
CN110321143A (en) Method for upgrading software, display panel and the readable storage medium storing program for executing of display panel
CN111679842A (en) Application program hot update processing method, device and system
JP2009037589A (en) Program determining apparatus, program determining method and program
CN111679850A (en) Application program hot update processing method, device and system
JP5013999B2 (en) Image forming apparatus, program control method, and control program
WO2024207889A1 (en) Sim card information loading method and apparatus, storage medium, and electronic device
CN108170605A (en) Submission method, client and the computer readable storage medium of bug information
CN112379904B (en) Automatic application updating method based on cloud mobile phone
CN117311764A (en) Firmware upgrading and restoring method, device, equipment and storage medium
CN112667491B (en) Function test method and device for virtual machine

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: 20180817

RJ01 Rejection of invention patent application after publication