CN108446131B - ATM firmware upgrading method, device, equipment and storage medium - Google Patents

ATM firmware upgrading method, device, equipment and storage medium Download PDF

Info

Publication number
CN108446131B
CN108446131B CN201810226512.8A CN201810226512A CN108446131B CN 108446131 B CN108446131 B CN 108446131B CN 201810226512 A CN201810226512 A CN 201810226512A CN 108446131 B CN108446131 B CN 108446131B
Authority
CN
China
Prior art keywords
control module
upgrading
firmware
module
atm
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
CN201810226512.8A
Other languages
Chinese (zh)
Other versions
CN108446131A (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.)
Shenzhen Yihua Computer Co Ltd
Shenzhen Yihua Time Technology Co Ltd
Shenzhen Yihua Financial Intelligent Research Institute
Original Assignee
Shenzhen Yihua Computer Co Ltd
Shenzhen Yihua Time Technology Co Ltd
Shenzhen Yihua Financial Intelligent Research Institute
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 Shenzhen Yihua Computer Co Ltd, Shenzhen Yihua Time Technology Co Ltd, Shenzhen Yihua Financial Intelligent Research Institute filed Critical Shenzhen Yihua Computer Co Ltd
Priority to CN201810226512.8A priority Critical patent/CN108446131B/en
Publication of CN108446131A publication Critical patent/CN108446131A/en
Application granted granted Critical
Publication of CN108446131B publication Critical patent/CN108446131B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F19/00Complete banking systems; Coded card-freed arrangements adapted for dispensing or receiving monies or the like and posting such transactions to existing accounts, e.g. automatic teller machines
    • G07F19/20Automatic teller machines [ATMs]
    • G07F19/206Software aspects at ATMs

Abstract

The invention discloses an ATM firmware upgrading method, device, equipment and storage medium. The method comprises the following steps: when an ATM firmware upgrading event is triggered, monitoring a control module currently accessed to a Powerlink network through an upgrading module in the ATM, and identifying preset information of the control module; the control module comprises at least one of a main control module and a sub-control module; and downloading the upgrading firmware corresponding to the control module through the upgrading module according to the preset information of the control module, and sending the upgrading firmware to the corresponding control module so that the control module finishes upgrading operation according to the upgrading firmware. The embodiment of the invention solves the problems of low data transmission efficiency and insufficient use flexibility in the upgrading process of the ATM firmware in the prior art, and improves the data transmission efficiency and the firmware upgrading efficiency.

Description

ATM firmware upgrading method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to an embedded technology, in particular to an ATM firmware upgrading method, device, equipment and storage medium.
Background
The ATM (Automatic Teller Machine) is more and more commonly used in people's daily life, and the requirement for convenience of its function is higher and higher, and in addition, for the ATM itself, the loophole that exists also needs to be repaired regularly. This results in the need for frequent firmware upgrades to the ATM machine.
In the prior art, for an ATM, which is an embedded device, when a system is upgraded, forwarding is usually performed by relying on an Ethernet network, and then upgrading of each module is performed by using a Powerlink network, which requires that a master control module performing forwarding has both an Ethernet function and a Powerlink function, resulting in high cost and low real-time performance.
Disclosure of Invention
The invention provides an ATM firmware upgrading method, device, equipment and storage medium, which are used for reducing firmware upgrading cost and improving data transmission efficiency and firmware upgrading efficiency.
In a first aspect, an embodiment of the present invention provides an ATM firmware upgrading method, where the method includes:
when an ATM firmware upgrading event is triggered, monitoring a control module currently accessed to a Powerlink network through an upgrading module in the ATM, and identifying preset information of the control module; the control module comprises at least one of a main control module and a sub-control module;
and downloading the upgrading firmware corresponding to the control module through the upgrading module according to the preset information of the control module, and sending the upgrading firmware to the corresponding control module so that the control module finishes upgrading operation according to the upgrading firmware.
Further, the downloading, by the upgrade module, the upgrade firmware corresponding to the control module according to the preset information of the control module, and sending the upgrade firmware to the corresponding control module, so that after the control module completes the upgrade operation according to the upgrade firmware, the method further includes:
receiving feedback information sent by the control module through the upgrading module;
and when the upgrading module receives the feedback information, switching the ATM from an upgrading working mode to a normal working mode.
Further, the switching the ATM from the upgrade operating mode to the normal operating mode includes:
and taking the upgrading module as a slave station of the Powerlink network and taking the main control module as an active master station of the Powerlink network, so that the ATM is switched from an upgrading working mode to a normal working mode.
Further, when the firmware upgrading event of the ATM is triggered, monitoring a control module currently accessed to a Powerlink network through an upgrading module in the ATM, and identifying preset information of the control module; wherein, the control module includes at least one in master control module and branch control module, includes:
when an ATM firmware upgrading event is triggered, taking the upgrading module in the ATM as an active master station in the Powerlink network to periodically monitor the control module currently accessed into the Powerlink network, and identifying preset information of the control module; the control module comprises at least one of the main control module and the sub-control modules;
the main control module is used as a standby main station in the Powerlink network;
correspondingly, the step of using the upgrade module as a slave station in the Powerlink network and using the main control module as an active master station of the Powerlink network so as to switch the ATM from an upgrade working mode to a normal working mode includes:
and switching the working mode of the active master station in the Powerlink network to the working mode of the slave station of the upgrading module, and switching the working mode of the standby master station in the Powerlink network to the working mode of the active master station of the main control module, so that the ATM is switched from the upgrading working mode to the normal working mode.
Further, before the downloading, in the upgrade mode, the upgrade firmware corresponding to the control module according to the preset information of the control module and sending the upgrade firmware to the corresponding control module, so that the control module completes an upgrade operation according to the upgrade firmware, the method further includes:
counting the number of the control modules accessed to the Powerlink network through the upgrading modules;
adjusting the adaptation parameters of the Powerlink network through the upgrading module according to the number of the control modules; wherein the adaptation parameters include a cycle period, a Preq timeout time, and a Pres timeout time;
correspondingly, the downloading, by the upgrade module, the upgrade firmware corresponding to the control module according to the preset information of the control module, and sending the upgrade firmware to the corresponding control module, so that the control module completes an upgrade operation according to the upgrade firmware, including:
the upgrading module downloads the upgrading firmware corresponding to the control module according to the preset information of the control module based on the adjusted adaptive parameters, and sends the upgrading firmware to the corresponding control module, so that the control module finishes upgrading operation according to the upgrading firmware.
Further, the preset information of the control module includes a node number, a device type, and a device version.
In a second aspect, an embodiment of the present invention further provides an ATM firmware upgrading apparatus, where the apparatus includes:
the system comprises a preset information identification module, a control module and a management module, wherein the preset information identification module is used for monitoring the control module currently accessed to a Powerlink network through an upgrading module in the ATM when an ATM firmware upgrading event is triggered, and identifying preset information of the control module; the control module comprises at least one of a main control module and a sub-control module;
and the upgrading firmware sending module is used for downloading upgrading firmware corresponding to the control module according to the preset information of the control module through the upgrading module and sending the upgrading firmware to the corresponding control module so that the control module finishes upgrading operation according to the upgrading firmware.
Further, the apparatus further comprises:
the feedback information receiving module is used for receiving the feedback information sent by the control module through the upgrading module;
and the working mode switching module is used for switching the ATM from the upgrading working mode to the normal working mode when the upgrading module receives the feedback information.
In a third aspect, an embodiment of the present invention further provides an apparatus, where the apparatus includes:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the ATM firmware upgrade method as described above.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the ATM firmware upgrading method as described above.
According to the method and the device, when the ATM firmware upgrading event is triggered, the upgrading module in the ATM monitors the control module currently accessed to the Powerlink network, the preset information of the control module is identified, the upgrading firmware corresponding to the control module is downloaded through the upgrading module according to the preset information of the control module, and is sent to the corresponding control module, so that the control module finishes upgrading operation according to the upgrading firmware, the problems of low data transmission efficiency and insufficient use flexibility in the upgrading process of the ATM firmware in the prior art are solved, and the data transmission efficiency and the firmware upgrading efficiency are improved.
Drawings
FIG. 1 is a flow chart of a method for upgrading firmware of an ATM in accordance with one embodiment of the present invention;
fig. 2 is a flowchart of an ATM firmware upgrading method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an ATM firmware upgrading apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus in the fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of an ATM firmware upgrading method according to an embodiment of the present invention, where the present embodiment is applicable to the case of ATM firmware upgrading, the method may be executed by an ATM firmware upgrading apparatus, the apparatus may be implemented in software and/or hardware, and the apparatus may be configured in a device, such as, typically, an ATM, a computer, and the like. As shown in fig. 1, the method specifically includes the following steps:
step 110, when the firmware upgrading event of the ATM is triggered, monitoring a control module currently accessed to a Powerlink network through an upgrading module in the ATM, and identifying preset information of the control module; the control module comprises at least one of a main control module and a sub-control module.
In particular embodiments of the present invention, the modes of operation of an ATM can be divided into two categories: when the ATM is in different working modes, the functions executed by each part in the ATM are correspondingly converted, and the purpose of the conversion is to better utilize the current network environment, wherein the network environment can comprise a Powerlink network or an Ethernet network and the like. It should be noted that, in particular, the network environment in which the ATM operates is referred to as Powerlink network, in which the ATM operates. Correspondingly, the firmware upgrading operation performed on the ATM is also completed based on the Powerlink network. Among them, Powerlink is a three-layer communication network that defines a physical layer, a data link layer, and an application layer. The physical layer of the Powerlink adopts standard Ethernet, the application layer follows CANopen standard, CANopen is an application layer protocol, and provides a uniform interface for application programs, so that different devices and application programs have uniform access modes, the data link layer is the core of the Powerlink, the Powerlink network is a master-slave structure, and the Powerlink layer mainly completes the functions of data construction and analysis, network synchronization, data frame receiving and transmitting sequence control, flow control, original data encapsulation and the like. The Powerlink network communication mode is as follows: isochronous synchronous data and asynchronous data use dedicated time slots, ensuring that only one network device can access the network medium at all times. In this way, the transmission of isochronous synchronous data and asynchronous data never collides, and accurate communication timing is ensured. This mechanism is called slotted communication network management. Timeslot communication management is managed by a special network device, the active master, and all other nodes are called slaves. The method can be understood that only one active master station can access other nodes at the same time, the other nodes are used as slave stations, the active master station coordinates each slave station, the Powerlink bus use right is reasonably distributed, conflicts are avoided, and real-time communication is achieved. Each slave station device has a unique node number, the node number range is 1-239, and the active master station node number is 240. The timeslot communication network management described above has two communication mechanisms: request/response based mode and timed reporting based mode.
The ATM may be composed of a mechanical unit, a power unit, a sensor unit, an execution unit, a driving unit, a control and information processing unit, an interface unit, and the like, and more specifically, the ATM may be composed of a housing, a cash box, a host Computer of a Personal Computer (PC), a display screen, a deposit and withdrawal port, a keyboard, a card reader, a receipt printer, a line printer, and the like. According to the membership relationship among the functions executed by the parts, the ATM can be classified into two parts, namely a PC and a control module, the control module can also comprise a main control module and a sub-control module, and when the ATM is in an upgrading working mode, the PC can be understood as an upgrading module. Firmware may be understood as flash memory written into an application specific integrated circuit or an editable logic device, or as a program in an EROM or EPROM, or as solidified software. Generally, the software that serves as the most basic and underlying layer of a device may be referred to as firmware, and more specifically, for independently operable devices, the firmware may generally refer to its operating system; for a device that is not independently operable, firmware may refer to the lowest level of program code that ensures that it can function properly. It will of course be appreciated that the firmware in the ATM machine is meant to be the same as described above.
The ATM firmware upgrading event is triggered, where the triggering condition may be a firmware upgrading instruction input to the ATM by a user according to an actual operating condition of the ATM, a firmware upgrading instruction sent by a server received by the ATM, or a firmware upgrading instruction generated by the ATM according to a setting of the ATM, and of course, the triggering condition may be determined according to an actual condition, and is not specifically limited herein. When the firmware upgrading event of the ATM is triggered, the upgrading module in the ATM monitors the control module currently accessed into the Powerlink network and identifies the preset information of the control module, wherein the control module also belongs to the components of the ATM, the control module comprises at least one of a main control module and a sub-control module, the number of the main control module is one, and the number of the sub-control module is at least one. The preset information of the control module may include a node number, a device type, a device version, and the like.
In addition, it should be noted that, when the ATM is in the normal operation mode, the main control module may respond to an operation instruction input by a user, and control each sub-control module to execute its respective function according to the operation instruction, so as to ensure the normal operation of the ATM. However, when the ATM is in the upgrade mode, the main control module and the sub-control module do not perform data interaction, that is, the main control module and the sub-control module are independent modules, and each performs firmware upgrade operation under the control of the upgrade module.
And 120, downloading the upgrading firmware corresponding to the control module through the upgrading module according to the preset information of the control module, and sending the upgrading firmware to the corresponding control module so that the control module finishes upgrading operation according to the upgrading firmware.
In a specific embodiment of the present invention, the preset information of the control module may include information such as a node number, a device type, a device version, and the like, the device type may represent a type to which the control module belongs, the device version may represent a current firmware version of the control module, and the node number of each control module is different and unique, so that the upgrade module may download, from the server, a firmware that is matched with the device type and is higher than the current device version as an upgrade firmware according to the device type and the device version, and send the upgrade firmware to the corresponding control module according to the node number, thereby enabling the control module to complete an upgrade operation according to the received upgrade firmware.
In addition, it needs to be explained that the upgrading operation performed on different control modules is performed simultaneously, so that the flow of the upgrading operation of the firmware of the ATM is simplified, and the convenience is improved.
According to the technical scheme of the embodiment, when the ATM firmware upgrading event is triggered, the upgrading module in the ATM monitors the control module currently accessed into the Powerlink network, the preset information of the control module is identified, the upgrading firmware corresponding to the control module is downloaded through the upgrading module according to the preset information of the control module, and the upgrading firmware is sent to the corresponding control module, so that the control module finishes upgrading operation according to the upgrading firmware, the problems of low data transmission efficiency and insufficient use flexibility in the upgrading process of the ATM firmware in the prior art are solved, and the data transmission efficiency and the firmware upgrading efficiency are improved.
Optionally, on the basis of the above technical solution, the upgrading module downloads the upgrading firmware corresponding to the control module according to the preset information of the control module, and sends the upgrading firmware to the corresponding control module, so that after the control module finishes the upgrading operation according to the upgrading firmware, the method may specifically further include:
and receiving feedback information sent by the control module through the upgrading module.
And when the upgrading module receives the feedback information, the ATM is switched from the upgrading working mode to the normal working mode.
In the specific embodiment of the invention, after the control module in the ATM finishes the upgrading operation, corresponding feedback information is generated and sent to the upgrading module in the ATM, the feedback information is used for indicating that the upgrading operation is finished, when the upgrading module receives the feedback information, the ATM can be switched from the upgrading working mode to the normal working mode, which indicates that the upgrading operation is finished by the control module, and the ATM can enter the normal working mode. The premise of switching the ATM from the upgrade operation mode to the normal operation mode is that the upgrade module receives the feedback information sent by all the control modules, but the presentation manner of the feedback information is not particularly limited, that is, the presentation manner is a total feedback information presentation manner or a plurality of feedback information presentation manners, and the case where the number of the control modules is at least two is particularly addressed here. Specifically, when the number of the control modules is at least two, the case that the number of the feedback information is one may be: each control module generates a feedback message after finishing the upgrading operation; the case where the number of feedback information may be plural is: and each control module correspondingly generates one piece of feedback information after finishing the upgrading operation, and at the moment, the number of the feedback information is consistent with that of the control modules.
Optionally, on the basis of the above technical solution, switching the ATM from the upgrade operating mode to the normal operating mode may specifically include:
and the upgrading module is used as a slave station of the Powerlink network and the main control module is used as an active master station of the Powerlink network, so that the ATM is switched from the upgrading working mode to the normal working mode.
In the specific embodiment of the present invention, the switching of the ATM from the upgrade operating mode to the normal operating mode by using the upgrade module as the slave station of the Powerlink network and using the main control module as the active master station of the Powerlink network is mainly accomplished based on the following three points: firstly, when the ATM is in a normal working mode, because the load of an active master station in the Powerlink network is higher, a module needing to be used as the active master station has higher working efficiency; secondly, because the upgrading module is a PC, and the PC generally runs a non-real-time operating system such as a Windows system, the working efficiency is not high, and the main control module has higher relative working efficiency; third, the Powerlink network requires that only one active master station exists at the same runtime. Based on the above, the main control module is selected as the active master station of the Powerlink network, and the upgrading module is selected as the slave station of the Powerlink network, so that the switching of the ATM from the upgrading working mode to the normal working mode is completed.
The upgrading module is used as a slave station of the Powerlink network and the main control module is used as an active master station of the Powerlink network to complete the switching of the ATM from the upgrading working mode to the normal working mode, so that the instantaneity of the Powerlink network is ensured.
Optionally, on the basis of the above technical solution, when an ATM firmware upgrade event is triggered, monitoring a control module currently accessed to a Powerlink network through an upgrade module in the ATM, and identifying preset information of the control module; the control module includes at least one of a main control module and a sub-control module, and specifically may include:
when an ATM firmware upgrading event is triggered, an upgrading module in the ATM is used as an active master station in a Powerlink network to periodically monitor a control module currently accessed to the Powerlink network, and preset information of the control module is identified; the control module comprises at least one of a main control module and a sub-control module.
And the main control module is used as a standby main station in the Powerlink network.
In the specific embodiment of the invention, in order to ensure the unicity of the communication network, that is, avoid introducing other networks for transfer, and improve the efficiency of firmware upgrade, a mode that when the ATM is in an upgrade working mode, an upgrade module in the ATM is used as an active master station in the Powerlink network is adopted, that is, when the ATM is in the upgrade working mode, the active master station in the Powerlink network is the upgrade module, and the upgrade module is also a PC. The upgrading module executing the active master station function in the Powerlink network can periodically monitor the control module accessed into the current Powerlink network and identify the preset information of the control module, wherein the control module comprises at least one of a main control module and a sub-control module. Meanwhile, when the ATM is in the upgrading working mode, the main control module can be used as a standby main station in the Powerlink network. It should be noted that the periodicity described herein may refer to a cycle period of the Powerlink network.
Correspondingly, the step of using the upgrade module as a slave station of the Powerlink network and the step of using the main control module as an active master station in the Powerlink network so as to switch the ATM from the upgrade working mode to the normal working mode may specifically include:
and the working mode of the standby main station in the Powerlink network of the main control module is switched to the working mode of the active main station, so that the ATM is switched to a normal working mode from the upgrading working mode.
In the specific embodiment of the invention, in order to complete the switching of the ATM from the upgrading working mode to the normal working mode, the mode of switching the upgrading module from the working mode of the active master station in the Powerlink network to the working mode of the slave station is adopted, and meanwhile, the mode of switching the main control module from the working mode of the standby master station in the Powerlink network to the working mode of the active master station is adopted, so that the real-time performance of the Powerlink network is ensured.
Optionally, on the basis of the above technical solution, before the upgrading module downloads the upgrading firmware corresponding to the control module according to the preset information of the control module, and sends the upgrading firmware to the corresponding control module, so that the control module finishes the upgrading operation according to the upgrading firmware, the method may further include:
and counting the number of control modules accessed to the Powerlink network through the upgrading module.
Adjusting the adaptation parameters of the Powerlink network through the upgrading module according to the number of the control modules; wherein the adaptation parameters include a loop period, a Preq timeout time and a Pres timeout time.
In a specific embodiment of the present invention, when the ATM is in the upgrade operating mode, the upgrade module in the ATM monitors the control module currently accessed to the Powerlink network, and identifies the preset information of the control module, meanwhile, the upgrade module may also count the number of the control modules accessed to the Powerlink network, and then adjust the adaptation parameters of the Powerlink network based on the counted number of the control modules, where the adaptation parameters may include a cycle period, a Preq timeout time, and a Pres timeout time, and in addition, may include a Gap time slot, etc.
Correspondingly, the upgrade firmware corresponding to the control module is downloaded through the upgrade module according to the preset information of the control module, and the upgrade firmware is sent to the corresponding control module, so that the control module finishes the upgrade operation according to the upgrade firmware, which specifically includes:
the upgrading module downloads upgrading firmware corresponding to the control module according to preset information sent by the control module based on the adjusted adaptive parameters, and sends the upgrading firmware to the corresponding control module, so that the control module finishes upgrading operation according to the upgrading firmware.
In a specific embodiment of the present invention, the upgrade module may download, in the Powerlink network with the adjusted adaptive parameters, the upgrade firmware corresponding to the control module according to the preset information sent by the control module, and send the upgrade firmware to the corresponding control module, so that the control module may complete the upgrade operation according to the upgrade firmware.
It can be understood that, since the Powerlink network itself operates with a fixed cycle and a fixed packet length, that is, the adaptation parameters are fixed, if the adaptation parameters of the Powerlink network are not adjusted according to actual conditions, data transmission efficiency and use flexibility are easily low. The above operation process is completed in the Powerlink network based on the adjusted adaptive parameters, so that the data transmission efficiency is improved, and the use flexibility is also increased.
Optionally, on the basis of the above technical solution, the preset information of the control module may include a node number, a device type, a device version, and the like.
In the specific embodiment of the invention, the upgrading module can download the upgrading firmware corresponding to the control module according to the node number, the equipment type and the equipment version of the control module, so that the self-adaption matching of different control modules is realized.
In addition, it should be noted that, if the Powerlink network communication connection between the upgrading module and the control module that needs firmware upgrading fails, the upgrading operation to be performed on the control module may be skipped and the related information may be recorded at the same time, so that the control module may be upgraded again after the reason for the communication connection failure is analyzed and solved.
In addition, it should be noted that, no matter whether the ATM is in the upgrade operation mode or the normal operation mode, the network environment is the Powerlink network. That is, the above firmware upgrading operation and the switching operation of the working mode for the ATM are all completed in the Powerlink network environment.
Example two
Fig. 2 is a flowchart of an ATM firmware upgrading method according to a second embodiment of the present invention, where this embodiment is applicable to the case of ATM firmware upgrading, and the method may be executed by an ATM firmware upgrading apparatus, which may be implemented in software and/or hardware, and may be configured in a device, such as an ATM, a computer, and the like. As shown in fig. 2, the method specifically includes the following steps:
step 210, when an ATM firmware upgrading event is triggered, taking an upgrading module in the ATM as an active master station in a Powerlink network to periodically monitor a control module currently accessed into the Powerlink network, and identifying preset information of the control module; the control module comprises at least one of a main control module and a sub-control module; and the main control module is used as a standby main station in the Powerlink network.
And step 220, counting the number of control modules accessed to the Powerlink network through the upgrading modules.
Step 230, adjusting adaptation parameters of the Powerlink network through the upgrading module according to the number of the control modules; wherein the adaptation parameters include a loop period, a Preq timeout time and a Pres timeout time.
And 240, the upgrading module downloads upgrading firmware corresponding to the control module according to the preset information of the control module based on the adjusted adaptive parameters, and sends the upgrading firmware to the corresponding control module, so that the control module finishes upgrading operation according to the upgrading firmware.
And step 250, receiving feedback information sent by the control module through the upgrading module.
And step 260, when the upgrading module receives the feedback information, switching the working mode of the upgrading module from the working mode of the active main station of the Powerlink network to the working mode of the slave station, and switching the working mode of the main control module from the working mode of the standby main station in the Powerlink network to the working mode of the active main station, so that the ATM is switched from the upgrading working mode to the normal working mode.
In the specific embodiment of the invention, when the firmware upgrading event of the ATM is triggered, the system is powered on and initialized, the upgrading module is set as an active master station, the main control module is set as a standby master station and the sub-control modules are set as slave stations. When the ATM is in an upgrading working mode, the upgrading module is used as an active master station, and the main control equipment is used as a standby master station; when the ATM finishes firmware upgrading, the ATM is switched from the upgrading working mode to the normal working mode by switching the upgrading module from the working mode of the active master station of the Powerlink network to the working mode of the slave station and switching the working mode of the main control module from the working mode of the standby master station in the Powerlink network to the working mode of the active master station. The scheme can be called a dual-primary redundancy technical scheme based on a Powerlink network.
The technical solution of this embodiment is that when an ATM firmware upgrade event is triggered, an upgrade module in the ATM is used as an active master station in the Powerlink network to periodically monitor a control module currently accessed to the Powerlink network, and identify preset information of the control module, count the number of the control modules accessed to the Powerlink network through the upgrade module, and adjust an adaptation parameter of the Powerlink network according to the number, the upgrade module downloads upgrade firmware corresponding to the control module according to the preset information of the control module based on the adjusted adaptation parameter, and sends the upgrade firmware to the corresponding control module, so that the control module completes upgrade operation according to the upgrade firmware, on this basis, when the upgrade module receives feedback information, the upgrade module is switched from a working mode of the active master station to a working mode of a slave station, and the master control module is switched from a working mode of a standby master station in the Powerlink network to a working mode of the active master station, the upgrading method and the upgrading device have the advantages that the ATM is switched from the upgrading working mode to the normal working mode, the problems of high cost, low data transmission efficiency and insufficient use flexibility in the upgrading process of the firmware of the ATM in the prior art are solved, the data transmission efficiency and the firmware upgrading efficiency are improved, and the cost is reduced.
EXAMPLE III
Fig. 3 is a schematic structural diagram of an ATM firmware upgrading apparatus according to a third embodiment of the present invention, where this embodiment is applicable to the case of upgrading ATM firmware, the apparatus may be implemented in software and/or hardware, and the apparatus may be configured in a device, such as typically an ATM and a computer. As shown in fig. 3, the apparatus specifically includes:
the preset information identification module 310 is used for monitoring a control module currently accessed to a Powerlink network through an upgrading module in the ATM when an ATM firmware upgrading event is triggered, and identifying preset information of the control module; the control module comprises at least one of a main control module and a sub-control module;
and an upgrade firmware sending module 320, configured to download, by the upgrade module, the upgrade firmware corresponding to the control module according to the preset information of the control module, and send the upgrade firmware to the corresponding control module, so that the control module completes an upgrade operation according to the upgrade firmware.
According to the technical scheme of the embodiment, when an ATM firmware upgrading event is triggered through the preset information identification module 310, the control module currently accessed into the Powerlink network is monitored through the upgrading module in the ATM, the preset information of the control module is identified, the upgrading firmware sending module 320 downloads the upgrading firmware corresponding to the control module according to the preset information of the control module through the upgrading module, and sends the upgrading firmware to the corresponding control module, so that the control module finishes upgrading operation according to the upgrading firmware, the problems of low data transmission efficiency and insufficient use flexibility in the ATM firmware upgrading process in the prior art are solved, and the data transmission efficiency and the firmware upgrading efficiency are improved.
Optionally, on the basis of the above technical solution, the apparatus may further include:
the feedback information receiving module is used for receiving the feedback information sent by the control module through the upgrading module;
and the working mode switching module is used for switching the ATM from the upgrading working mode to the normal working mode when the upgrading module receives the feedback information.
Optionally, on the basis of the above technical solution, the working mode switching module may specifically include:
and the working mode switching unit is used for taking the upgrading module as a slave station of the Powerlink network and taking the main control module as an active master station of the Powerlink network so as to switch the ATM from the upgrading working mode to the normal working mode.
Optionally, on the basis of the foregoing technical solution, the upgrading the firmware sending module 320 may specifically include:
the upgrading firmware module sending unit is used for taking the upgrading module in the ATM as an active master station in a Powerlink network to periodically monitor the control module currently accessed into the Powerlink network and identifying the preset information of the control module when the firmware upgrading event of the ATM is triggered; the control module comprises at least one of a main control module and a sub-control module;
and the main control module is used as a standby main station in the Powerlink network.
Correspondingly, the working mode switching unit may specifically include:
and the working mode switching subunit is used for switching the working mode of the active master station in the Powerlink network of the upgrading module to the working mode of the slave station, and switching the working mode of the standby master station in the Powerlink network of the main control module to the working mode of the active master station, so that the ATM is switched to the normal working mode from the upgrading working mode.
Optionally, on the basis of the above technical solution, the apparatus may further include:
the control equipment quantity counting module is used for counting the quantity of the control equipment accessed to the Powerlink network through the upgrading module;
the adaptation parameter adjusting module is used for adjusting the adaptation parameters of the Powerlink network through the upgrading module according to the number of the control modules; wherein, the adaptive parameters comprise a cycle period, a Preq timeout time and a Pres timeout time;
correspondingly, the upgrade firmware sending module 310 may specifically include:
and the upgrading firmware sending unit is used for downloading upgrading firmware corresponding to the control module according to the preset information of the control module by the upgrading module based on the adjusted adaptive parameters and sending the upgrading firmware to the corresponding control module so that the control module finishes upgrading operation according to the upgrading firmware.
Optionally, on the basis of the above technical solution, the preset information of the control module may include a node number, a device type, and a device version.
The ATM firmware upgrading device configured on the equipment provided by the embodiment of the invention can execute the ATM firmware upgrading method applied to the equipment provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 4 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention. The device shown in fig. 4 is only an example and should not bring any limitation to the function and the scope of use of the embodiments of the present invention. As shown in fig. 4, the apparatus provided in the third embodiment of the present invention includes a processor 41, a memory 42, an input device 43, and an output device 44; the number of the processors 41 in the device may be one or more, and one processor 41 is taken as an example in fig. 4; the processor 41, the memory 42, the input device 43 and the output device 44 in the apparatus may be connected by a bus or other means, which is exemplified in fig. 4.
The memory 42 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the device display method in the embodiment of the present invention (for example, the preset information identification module 310 and the upgrade firmware transmission module 320 in the ATM firmware upgrade apparatus are used). The processor 41 executes various functional applications and data processing by executing software programs, instructions and modules stored in the memory 42, for example, implementing the ATM firmware upgrade method applied to the device provided by the embodiment of the present invention.
The memory 42 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the device, and the like. Further, the memory 42 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 42 may further include memory located remotely from processor 41, which may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 43 may be used to receive numeric or character information input by a user to generate key signal inputs relating to user settings and function controls of the apparatus. The output device 44 may include a display device such as a display screen.
EXAMPLE five
The fifth embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements an ATM firmware upgrading method provided in the fifth embodiment of the present invention, where the method includes:
when an ATM firmware upgrading event is triggered, monitoring a control module currently accessed to a Powerlink network through an upgrading module in the ATM, and identifying preset information of the control module; the control module comprises at least one of a main control module and a sub-control module.
And downloading the upgrading firmware corresponding to the control module through the upgrading module according to the preset information of the control module, and sending the upgrading firmware to the corresponding control module so that the control module finishes upgrading operation according to the upgrading firmware.
Of course, the computer-readable storage medium provided by the embodiment of the present invention has computer-executable instructions that are not limited to the operations of the method described above, and may also perform related operations in the ATM firmware upgrading method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the above embodiment of the ATM upgrading apparatus, the included units and modules are only divided according to the functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (6)

1. An ATM firmware upgrade method is characterized by comprising the following steps:
when an ATM firmware upgrading event is triggered, monitoring a control module currently accessed to a Powerlink network through an upgrading module in the ATM, and identifying preset information of the control module; the control module comprises at least one of a main control module and a sub-control module;
downloading an upgrading firmware corresponding to the control module through the upgrading module according to preset information of the control module, and sending the upgrading firmware to the corresponding control module so that the control module finishes upgrading operation according to the upgrading firmware;
the method comprises the following steps that the upgrading module downloads upgrading firmware corresponding to the control module according to preset information of the control module and sends the upgrading firmware to the corresponding control module, so that after the control module finishes upgrading operation according to the upgrading firmware, the method further comprises the following steps:
receiving feedback information sent by the control module through the upgrading module;
when the upgrading module receives the feedback information, the ATM is switched from an upgrading working mode to a normal working mode;
the step of switching the ATM from the upgrading working mode to the normal working mode comprises the following steps:
the upgrading module is used as a slave station of the Powerlink network and the main control module is used as an active master station of the Powerlink network, so that the ATM is switched from an upgrading working mode to a normal working mode;
when the firmware upgrading event of the ATM is triggered, monitoring a control module currently accessed to a Powerlink network through an upgrading module in the ATM, and identifying preset information of the control module; wherein, the control module includes at least one in master control module and branch control module, includes:
when an ATM firmware upgrading event is triggered, taking the upgrading module in the ATM as an active master station in the Powerlink network to periodically monitor the control module currently accessed into the Powerlink network, and identifying preset information of the control module; the control module comprises at least one of the main control module and the sub-control modules;
the main control module is used as a standby main station in the Powerlink network;
correspondingly, the step of using the upgrade module as a slave station of the Powerlink network and using the main control module as an active master station of the Powerlink network so as to switch the ATM from an upgrade working mode to a normal working mode includes:
and switching the working mode of the active master station in the Powerlink network to the working mode of the slave station of the upgrading module, and switching the working mode of the standby master station in the Powerlink network to the working mode of the active master station of the main control module, so that the ATM is switched from the upgrading working mode to the normal working mode.
2. The method according to claim 1, wherein before the downloading, by the upgrade module, the upgrade firmware corresponding to the control module according to the preset information of the control module and sending the upgrade firmware to the corresponding control module, so that the control module completes an upgrade operation according to the upgrade firmware, the method further comprises:
counting the number of the control modules accessed to the Powerlink network through the upgrading modules;
adjusting the adaptation parameters of the Powerlink network through the upgrading module according to the number of the control modules; wherein the adaptation parameters include a cycle period, a Preq timeout time, and a Pres timeout time;
correspondingly, the downloading, by the upgrade module, the upgrade firmware corresponding to the control module according to the preset information of the control module, and sending the upgrade firmware to the corresponding control module, so that the control module completes an upgrade operation according to the upgrade firmware, including:
the upgrading module downloads the upgrading firmware corresponding to the control module according to the preset information of the control module based on the adjusted adaptive parameters, and sends the upgrading firmware to the corresponding control module, so that the control module finishes upgrading operation according to the upgrading firmware.
3. The method of claim 2, wherein the preset information of the control module comprises a node number, a device type, and a device version.
4. An ATM firmware upgrade apparatus, comprising:
the system comprises a preset information identification module, a control module and a management module, wherein the preset information identification module is used for monitoring the control module currently accessed to a Powerlink network through an upgrading module in the ATM when an ATM firmware upgrading event is triggered, and identifying preset information of the control module; the control module comprises at least one of a main control module and a sub-control module;
the upgrading firmware sending module is used for downloading upgrading firmware corresponding to the control module through the upgrading module according to the preset information of the control module and sending the upgrading firmware to the corresponding control module so that the control module finishes upgrading operation according to the upgrading firmware;
the feedback information receiving module is used for receiving the feedback information sent by the control module through the upgrading module;
the working mode switching module is used for switching the ATM from an upgrading working mode to a normal working mode when the upgrading module receives the feedback information;
the working mode switching module comprises: the working mode switching unit is used for taking the upgrading module as a slave station of the Powerlink network and taking the main control module as an active master station of the Powerlink network so as to switch the ATM from an upgrading working mode to a normal working mode;
the upgrade firmware sending module includes: the upgrading firmware module sending unit is used for taking the upgrading module in the ATM as an active master station in a Powerlink network to periodically monitor the control module currently accessed into the Powerlink network and identifying preset information of the control module when an ATM firmware upgrading event is triggered; the control module comprises at least one of the main control module and the sub-control modules;
the main control module is used as a standby main station in the Powerlink network;
correspondingly, the working mode switching unit comprises:
and the working mode switching subunit is used for switching the working mode of the active master station in the Powerlink network from the upgrading module to the working mode of the slave station, and switching the working mode of the standby master station in the Powerlink network from the main control module to the working mode of the active master station, so that the ATM is switched to a normal working mode from the upgrading working mode.
5. An apparatus, comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the ATM firmware upgrade method of any one of claims 1-3.
6. A computer-readable storage medium having stored thereon a computer program, wherein the program, when executed by a processor, implements the ATM firmware upgrade method according to any one of claims 1 to 3.
CN201810226512.8A 2018-03-19 2018-03-19 ATM firmware upgrading method, device, equipment and storage medium Active CN108446131B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810226512.8A CN108446131B (en) 2018-03-19 2018-03-19 ATM firmware upgrading method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810226512.8A CN108446131B (en) 2018-03-19 2018-03-19 ATM firmware upgrading method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108446131A CN108446131A (en) 2018-08-24
CN108446131B true CN108446131B (en) 2021-10-08

Family

ID=63195751

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810226512.8A Active CN108446131B (en) 2018-03-19 2018-03-19 ATM firmware upgrading method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108446131B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045474A (en) * 2009-10-15 2011-05-04 佳能株式会社 Image forming apparatus including firmware and method of controlling the same
CN203689622U (en) * 2013-12-31 2014-07-02 深圳市证通电子股份有限公司 ATM and password keyboard supporting remote firmware upgrading

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4827445B2 (en) * 2005-06-30 2011-11-30 キヤノン株式会社 PERIPHERAL DEVICE CONTROL SYSTEM, ITS CONTROL METHOD, INFORMATION PROCESSING DEVICE, AND COMPUTER PROGRAM
US8201161B2 (en) * 2008-01-07 2012-06-12 Lenovo (Singapore) Pte. Ltd. System and method to update device driver or firmware using a hypervisor environment without system shutdown
CN106325929B (en) * 2016-08-22 2020-02-07 合肥美的智能科技有限公司 Firmware upgrading method, firmware upgrading device, refrigerator and server
CN106201439B (en) * 2016-09-09 2019-09-20 深圳怡化电脑股份有限公司 A kind of method and device of abnormality processing
CN106980511B (en) * 2017-05-09 2020-12-11 深圳市乐得瑞科技有限公司 Firmware upgrading method, device and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045474A (en) * 2009-10-15 2011-05-04 佳能株式会社 Image forming apparatus including firmware and method of controlling the same
CN203689622U (en) * 2013-12-31 2014-07-02 深圳市证通电子股份有限公司 ATM and password keyboard supporting remote firmware upgrading

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Ethernet Powerlink调度机制与实时通信剖析;江杰等;《自动化仪表》;20130403;第34卷(第02期);84-88 *

Also Published As

Publication number Publication date
CN108446131A (en) 2018-08-24

Similar Documents

Publication Publication Date Title
US10429092B2 (en) Asynchronous reporting system
WO2020192733A1 (en) Timed task configuration method, server, system and computer-readable storage medium
US20180248968A1 (en) Remote access gateway configurable control system
US10992494B2 (en) Gateway round-robin system
RU2716560C2 (en) Radio base station and system having radio base station
CN112398714B (en) Backboard bus master station, system and data communication method thereof
CN109862123A (en) Data processing method, Internet of Things module and equipment
US20140082068A1 (en) Mailbox data storage system
CN101751265B (en) Updating system of basic input/output system of server and method thereof
CN1960276B (en) Remote control system and method
CN101136756B (en) Electric self-checking method, system and BMC chip on network long-range control host machine
CN108446131B (en) ATM firmware upgrading method, device, equipment and storage medium
CN109361653A (en) A kind of POWERLINK main website
CN112637370B (en) Data processing method, device, equipment and storage medium
CN108337285B (en) Communication system and communication method
EP2677693B1 (en) Communication system
CN101739115A (en) Simplified type host computer and method for wakening same
CN111385169B (en) Master-slave question-answer polling communication method and system
CN210780847U (en) EtherCAT bus clock distribution system
CN103281322B (en) A kind of middleware system for satellite test data collection Yu control
CN111858561A (en) Data storage management system based on GPON router
CN114390083B (en) Distributed modular electrical safety control terminal
CN205829706U (en) Data cluster storage device
CN117439838B (en) Edge computing gateway master-slave machine-oriented self-adaptive rapid networking method
CN110139398A (en) Home intranet method for parameter configuration, home gateway and home intranet terminal

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
GR01 Patent grant
GR01 Patent grant