CN111309348B - Firmware upgrading method of electronic equipment and electronic equipment - Google Patents

Firmware upgrading method of electronic equipment and electronic equipment Download PDF

Info

Publication number
CN111309348B
CN111309348B CN201910444382.XA CN201910444382A CN111309348B CN 111309348 B CN111309348 B CN 111309348B CN 201910444382 A CN201910444382 A CN 201910444382A CN 111309348 B CN111309348 B CN 111309348B
Authority
CN
China
Prior art keywords
control unit
version
firmware version
firmware
latest
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
CN201910444382.XA
Other languages
Chinese (zh)
Other versions
CN111309348A (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 Honghe Innovation Information Technology Co Ltd
Original Assignee
Shenzhen Honghe Innovation Information 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 Shenzhen Honghe Innovation Information Technology Co Ltd filed Critical Shenzhen Honghe Innovation Information Technology Co Ltd
Priority to CN201910444382.XA priority Critical patent/CN111309348B/en
Publication of CN111309348A publication Critical patent/CN111309348A/en
Application granted granted Critical
Publication of CN111309348B publication Critical patent/CN111309348B/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
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a firmware upgrading method of electronic equipment and the electronic equipment, wherein the electronic equipment comprises an OPS computer and a non-intelligent equipment body; the OPS computer is used for acquiring the current firmware version of the electronic equipment, acquiring the latest firmware version provided by the server through the Internet, and judging whether the latest firmware version is the same as the current firmware version or not; if not, downloading and transmitting the latest firmware version; the device body includes: the first control unit reads the latest firmware version information for upgrading; the second control unit receives the latest firmware version and stores the latest firmware version into the firmware storage unit; and controlling the connection and disconnection of the first gating end and the second gating end with the connecting end respectively. The invention can improve the working efficiency of the whole electronic equipment while ensuring the upgrading efficiency of the whole electronic equipment, and does not affect other functions of the equipment body as much as possible.

Description

Firmware upgrading method of electronic equipment and electronic equipment
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a firmware upgrade method for an electronic device and an electronic device.
Background
In the prior art, non-intelligent electronic devices such as interactive tablets often require firmware upgrades as technology is updated. In practical application, the interactive panel is provided with an OPS and a non-intelligent display control main board, the display control main board cannot be upgraded through a network, and only local upgrading is supported, for example, upgrading is performed through connection modes such as a USB (universal serial bus) and a serial port, so that users are required to inquire whether a manufacturer has new firmware or not at irregular intervals, user time is wasted, customer experience is influenced, and especially when the manufacturer needs to upgrade electronic equipment which is delivered in batches, manual field operation is required, and working hours are wasted.
Disclosure of Invention
Based on the above-mentioned current situation, the main objective of the present invention is to provide a firmware upgrade method for an electronic device and an electronic device, so as to improve the efficiency of a manufacturer or a user during upgrade.
In order to achieve the above purpose, the technical scheme adopted by the invention is as follows:
the first aspect of the present invention provides an electronic device, including an OPS computer and a non-intelligent device body capable of signal connection;
the OPS computer includes:
the version acquisition unit is used for acquiring the current firmware version of the electronic equipment and acquiring the latest firmware version provided by the server through the Internet;
the OPS control unit is in signal connection with the version acquisition unit and is used for judging whether the latest firmware version is the same as the current firmware version or not; if not, downloading and sending the latest firmware version to the equipment body;
the device body includes: the system comprises a first control unit, a second control unit, a firmware storage unit and a switch circuit, wherein the first control unit and the second control unit are in signal connection with the OPS control unit; the first gating end of the switch circuit is connected with the first control unit, the second gating end of the switch circuit is connected with the second control unit, the connecting end of the switch circuit is connected with the firmware storage unit, and the control end of the switch circuit is connected with the second control unit;
the first control unit is used for reading the latest firmware version information to upgrade;
the second control unit is used for receiving the latest firmware version and storing the latest firmware version into the firmware storage unit; and controlling the connection and disconnection of the first gating end and the second gating end with the connecting end respectively.
Preferably, the latest firmware version and the current firmware version each comprise a bootstrap version and an application version;
the OPS control unit judges whether the latest firmware version is the same as the current firmware version by judging whether the latest firmware version is the same as the bootstrap version and the application version in the current firmware version respectively;
the second control unit is further configured to control connection and disconnection of the first end gating end and the second gating end with the connection end respectively according to a judgment result of the OPS control unit, and control connection of the first gating end with the connection end when receiving the latest firmware version is completed.
Preferably, the switching circuit comprises a four-way 2:1 analog switching chip with a power-off protection function.
Preferably, the device body further comprises an and circuit, and the and circuit comprises a first input end, a second input end and an output end;
the first input end is connected with the transmitting end of the first control unit; the second input end is connected with the transmitting end of the second control unit; the output end is connected with the receiving end of the OPS control unit.
Preferably, the method comprises the steps of,
and the transmitting end of the OPS control unit is directly connected with the receiving end of the first control unit and the receiving end of the second control unit through signals.
Preferably, in a default state, the first gate terminal is connected to the connection terminal, and the first control unit is further configured to send the current firmware version.
Preferably, the first control unit is further configured to determine whether to upgrade.
Preferably, the electronic equipment is a multimedia integrated machine, a touch integrated machine, an electronic blackboard, an electronic whiteboard, an intelligent interaction large screen or an intelligent tablet.
The second aspect of the present invention provides a firmware upgrade method for an electronic device, where the electronic device includes an OPS computer capable of signal connection and a non-intelligent device body; the OPS computer comprises a version acquisition unit and an OPS control unit, and the equipment body comprises: the system comprises a first control unit, a second control unit, a firmware storage unit and a switch circuit, wherein the first control unit and the second control unit are in signal connection with the OPS control unit; the first gating end of the switch circuit is connected with the first control unit, the second gating end of the switch circuit is connected with the second control unit, the connecting end of the switch circuit is connected with the firmware storage unit, and the control end of the switch circuit is connected with the second control unit;
the firmware upgrading method comprises the following steps:
s1: acquiring a current firmware version of the electronic equipment, and acquiring an latest firmware version provided by a server through an Internet network;
s2: judging whether the latest firmware version is the same as the current firmware version; if not, executing S3;
s3: downloading the latest firmware version, controlling the switch circuit to enable the second control unit to be connected with the firmware storage unit, and storing the latest firmware version into the firmware storage unit through the second control unit;
s4: and controlling the switch circuit to enable the first control unit to be connected with the firmware storage unit, and enabling the first control unit to read the latest firmware version for upgrading.
Preferably, in step S1, the current firmware version and the latest firmware version are acquired at a predetermined interval.
Preferably, in step S1, the Internet is connected through a wireless network or a wired network.
Preferably, the first control unit is connected with the firmware storage unit through the switch circuit by default;
the step S1 of obtaining the current firmware version of the electronic device specifically includes:
s111: transmitting an instruction for transmitting the current firmware version;
s112: transmitting the current firmware version according to the instruction;
s113: and acquiring the current firmware version.
Preferably, the step S3 includes:
s311: downloading the latest firmware version;
s312: judging whether to upgrade or not; if the upgrade is performed, S313 is performed;
s313: and controlling the switching circuit to enable the second control unit to be connected with the firmware storage unit, and storing the latest firmware version into the firmware storage unit through the second control unit.
Preferably, the step S3 includes:
s321: judging whether to upgrade or not; if the upgrade is performed, S322 is performed;
s322: downloading the latest firmware version, controlling the switch circuit to enable the second control unit to be connected with the firmware storage unit, and storing the latest firmware version into the firmware storage unit through the second control unit.
Preferably, the latest firmware version and the current firmware version each include a boot program version and an application program version;
the step S2 specifically comprises the following steps:
judging whether the latest firmware version is the same as a bootstrap version and an application version in the current firmware version or not respectively;
if the bootstrap version and the application version are different, executing S3;
if the application program versions of the two are different; and downloading and transmitting only the application program version in the latest firmware version, and controlling the switch circuit to enable the first control unit to be connected with the firmware storage unit so as to store the latest firmware version into the firmware storage unit through the first control unit, and executing S4.
The electronic equipment provided by the invention is provided with the switch circuit, the first control unit and the second control unit, when the electronic equipment is upgraded, the first control unit and the second control unit can be respectively connected and disconnected with the firmware storage unit through the control switch circuit, and then the electronic equipment is upgraded through the OPS, obviously, the electronic equipment can check the latest firmware version on a manufacturer server through the OPS computer 1 and upgrade the version, a user does not need to spend special time to inquire whether the manufacturer has firmware version update or not, and especially when the manufacturer needs to upgrade the delivered electronic equipment in batches, the electronic equipment can be directly carried out through an Internet network, so that the steps of manual field operation are reduced, and the upgrade efficiency is improved; and the first control unit and the second control unit are cooperated to operate through adding the switch circuit, so that the working efficiency of the whole electronic equipment can be improved while the upgrading efficiency of the whole electronic equipment is ensured, and other functions of the equipment body are not influenced as much as possible.
Drawings
Embodiments of the invention are described below with reference to the accompanying drawings, in which:
FIG. 1 is a system diagram of a preferred embodiment of an electronic device provided in accordance with the present invention;
FIG. 2 is a circuit diagram of a firmware storage unit in a preferred embodiment of an electronic device according to the present invention;
fig. 3 is a circuit diagram of a switching circuit in a preferred embodiment of an electronic device according to the present invention;
fig. 4 is a circuit diagram of a second control unit in a preferred embodiment of the electronic device according to the present invention;
FIG. 5 is a circuit diagram of an OPS computer in a preferred embodiment of an electronic device according to the invention;
FIG. 6 is a circuit diagram of AND gate circuitry in a preferred embodiment of an electronic device according to the present invention;
fig. 7 is a circuit diagram of a first control unit in a preferred embodiment of the electronic device according to the present invention;
FIG. 8 is a flow chart of a preferred embodiment of a method for upgrading firmware of an electronic device according to the present invention;
FIG. 9 is a flow chart of another preferred embodiment of a method for upgrading firmware of an electronic device according to the present invention;
fig. 10 is a flowchart of a further preferred embodiment of a firmware upgrade method of an electronic device according to the present invention.
In the drawing the view of the figure,
1. an OPS computer;
2. an equipment body; 21. a firmware storage unit; 22. a first control unit; 23. a second control unit; 24. a switching circuit; 25. and an AND gate circuit.
Detailed Description
The present invention is described below based on examples, but the present invention is not limited to only these examples. In the following detailed description of the present invention, certain specific details are set forth in order to avoid obscuring the present invention, and in order to avoid obscuring the present invention, well-known methods, procedures, flows, and components are not presented in detail.
Moreover, those of ordinary skill in the art will appreciate that the drawings are provided herein for illustrative purposes and that the drawings are not necessarily drawn to scale.
Unless the context clearly requires otherwise, throughout the description and the claims, the words "comprise", "comprising", and the like are to be construed in an inclusive sense as opposed to an exclusive or exhaustive sense; that is, it is the meaning of "including but not limited to".
In the description of the present invention, it should be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Furthermore, in the description of the present invention, unless otherwise indicated, the meaning of "a plurality" is two or more.
The invention provides an electronic device, which can be a multimedia integrated machine, a touch integrated machine, an electronic blackboard, an electronic whiteboard, an intelligent interaction large screen or an intelligent tablet, as shown in fig. 1, wherein the electronic device comprises an OPS computer 1 and a non-intelligent device body 2 which can be connected by signals, a firmware version of the electronic device is stored in the device body 2, and a control unit (a first control unit 22 and a second control unit 23 which are described below) of the device body 2 does not have an operating system or a networking upgrading function; the OPS computer 1 may provide an operating system, such as a windows operating system, for the device body 2. In practical use, the OPS computer 1 may be mounted on the device body 2, and the two are connected by signal for signal transmission.
Specifically, the OPS computer 1 includes: the system comprises a version acquisition unit and an OPS control unit, wherein the version acquisition unit is used for acquiring the current firmware version of the electronic equipment, namely the existing firmware version of the electronic equipment, and acquiring the latest firmware version provided by a server through an internet network. The OPS control unit is in signal connection with the version acquisition unit and is used for judging whether the latest firmware version is the same as the current firmware version; if not, the latest firmware version is downloaded and sent to the device body 2.
The device body 2 is in signal connection with the OPS control unit for receiving and upgrading the latest firmware version. Referring to fig. 1, the device body 2 includes a firmware storage unit 21, a first control unit 22, a second control unit 23, and a switch circuit 24, where the first control unit 22 and the second control unit 23 are both connected with the OPS control unit by signals, so that signal transmission with the OPS computer 1 is realized by the first control unit 22 and the second control unit 23 respectively. The first gate end of the switch circuit 24 is connected with the first control unit 22, the second gate end is connected with the second control unit 23, the connecting end is connected with the firmware storage unit 21, and the control end is connected with the second control unit 23, namely, the firmware storage unit 21 is connected and disconnected with the first control unit 22 and the second control unit 23 through the switch circuit 24. The first control unit 22 is mainly used for controlling the display function of the device body 2 and reading and upgrading the latest firmware version information; the second control unit 23 is configured to receive the latest firmware version, store the latest firmware version in the firmware storage unit 21, and control connection and disconnection of the first strobe terminal and the second strobe terminal to and from the connection terminal, respectively. The invention also provides a firmware upgrading method of the electronic equipment, the electronic equipment can use the method to upgrade the firmware, and referring to fig. 8, the firmware upgrading method comprises the following steps:
s1: acquiring a current firmware version of the electronic equipment, and acquiring an latest firmware version provided by a server through an Internet network;
s2: judging whether the latest firmware version is the same as the current firmware version; if not, executing S3;
s3: downloading the latest firmware version, and controlling the switch circuit 24 to enable the second control unit 23 to be connected with the firmware storage unit 21, namely controlling the switch circuit 24 to enable the second gating terminal to be connected with the connecting terminal, disconnecting the first gating terminal from the connecting terminal, and storing the latest firmware version into the firmware storage unit 21 through the second control unit 23;
s4: the control switch circuit 24 connects the first control unit 22 to the firmware storage unit 21, i.e. the control switch circuit 24 connects the first gate terminal to the connection terminal, and disconnects the second gate terminal from the connection terminal, so that the first control unit 22 reads the latest firmware version for upgrading.
Specifically, in the above electronic device, a version acquisition unit is provided in the OPS computer 1, the version acquisition unit directly acquires the latest firmware version on the server through the Internet network, then the OPS control unit determines whether the acquired latest firmware version is the same as the current firmware version, if not, downloads the latest firmware version, and then sends the latest firmware version to the device body 2 for upgrading. Obviously, although the control unit of the equipment body 2 does not have a networking upgrading function, the equipment body 2 can be connected with the Internet through the version acquisition unit on the OPS computer 1, that is, the new firmware version on the manufacturer server can be checked and version-upgraded through the OPS computer 1, users do not need to spend special time to inquire whether the manufacturer has firmware version update or not, and especially when the manufacturer needs to upgrade the electronic equipment which is already delivered in batches, the electronic equipment can be directly carried out through the Internet, so that the steps of manual field operation are reduced, and the upgrading efficiency is improved. In addition, considering that the firmware version of the electronic device occupies the control unit of the device body 2 and possibly affects the normal operation of other functions of the device body in the process of checking and upgrading the firmware version of the electronic device by the OPS computer 1, the invention adds the first control unit 22 and the second control unit 23, and controls the connection or disconnection of the communication lines between the first control unit 22, the second control unit 23 and the firmware storage unit 21 by the switch circuit 24, so that the two control units are respectively used for controlling and executing different functions of the device body 2, and the first control unit 22 and the second control unit 23 cooperate to operate, thereby improving the working efficiency of the whole electronic device while ensuring the upgrading efficiency of the whole electronic device and avoiding affecting other functions of the device body 2 as much as possible.
In the step S1, the current firmware version and the latest firmware version may be obtained in real time, and in consideration of that the firmware version of the server is not updated in real time, in order to improve the resource utilization rate of the OPS computer 1, in a preferred embodiment, the step S1 obtains the current firmware version and the latest firmware version at predetermined intervals, that is, the version obtaining unit obtains the current firmware version and the latest firmware version at regular time, for example, the current firmware version and the latest firmware version may be obtained once every one day, three days or a week.
The manner of connecting the Internet in step S1 may be connected to the Internet through a wireless network or a wired network, for example, may be directly connected to the Internet through a network such as 3G, 4G, 5G, or may be connected to the Internet through a wifi2.4 network; or the OPS computer 1 is directly connected with the Internet network through a network cable.
The step S1 of obtaining the current firmware version of the electronic device may specifically be:
s111: transmitting an instruction for transmitting the current firmware version;
s112: transmitting the current firmware version according to the instruction;
s113: the current firmware version is obtained.
That is, the device body 2 passively sends the current firmware version to the version acquisition unit, for example, the version acquisition unit is directly connected with the device body 2 through a signal, or is connected with the device body 2 through the OPS control unit through a signal, the OPS control unit can send an instruction for transmitting the current firmware version to the device body 2; after the device body 2 receives the instruction, the current firmware version is sent to the version acquisition unit (may be directly sent to the version acquisition unit or may be sent to the version acquisition unit through the OPS control unit), and in this way, the current firmware version is sent only when the current firmware version is needed, so that the resource occupation of the device body 2, especially the occupation of the first control unit 22 or the second control unit 23, can be reduced.
Of course, the manner of acquiring the current firmware version in step S1 may also be that the device body 2 periodically transmits the current firmware version to the version acquisition unit, that is, the device body 2 actively transmits the current firmware version to the version acquisition unit.
It will be understood that, even if the current firmware version is different from the latest firmware version, the device body 2 may not be updated, for example, the device body 2 is running an application program, especially an application program with a relatively high requirement on a memory, and if the update is performed at this time, the execution speed of the application program will be affected, so that before the latest firmware version is sent, the step S3 further includes determining whether to perform the update, and specifically, there are several embodiments as follows:
in the first embodiment, as shown in fig. 9, step S3 specifically includes:
s311: downloading the latest firmware version;
s312: judging whether to upgrade or not; if the upgrade is performed, S313 is performed;
s313: the control switch circuit 24 connects the second control unit 23 with the firmware storage unit 21 to store the latest firmware version to the firmware storage unit 21 through the second control unit 23.
That is, regardless of whether the device body 2 is upgraded, the latest firmware version is downloaded whenever the latest firmware version is different from the current firmware version, that is, when the OPS computer 1 determines that the latest firmware version is different from the current firmware version, the latest firmware version is downloaded to the OPS computer 1 first and can be downloaded to the OPS control unit; then inquiring whether the device body 2 is to be upgraded; the device body 2 judges whether to upgrade itself, if upgrade, then sends upgrade instruction to the OPS control unit, and the OPS control unit sends the latest firmware version to the device body 2 after receiving the upgrade instruction. In this way, the OPS computer 1 can update at any time, especially at idle time, even if the device body 2 is not updated at present, so as to improve the utilization rate of the device body 2 resources as long as the OPS computer 1 detects that a new firmware version is downloaded; and this way avoids the bandwidth occupation of the OPS computer 1 caused by downloading the latest firmware version only when the device body 2 is upgraded, and improves the upgrade convenience.
In a second embodiment, as shown in fig. 10, step S3 includes:
s321: judging whether to upgrade or not; if the upgrade is performed, S322 is performed;
s223: the latest firmware version is downloaded, and the switching circuit 24 is controlled to connect the second control unit 23 with the firmware storage unit 21, and the latest firmware version is stored in the firmware storage unit 21 through the second control unit 23.
That is, whether to upgrade is firstly determined, and then whether to download the latest firmware version is determined, namely, when the OPS computer 1 determines that the latest firmware version is different from the current firmware version, the latest firmware version is not downloaded to the OPS computer 1, the OPS computer 1 firstly inquires whether the equipment body 2 is to upgrade, the equipment body 2 determines whether to upgrade itself, and if upgrade is to be performed, an upgrade instruction is sent to the OPS control unit; the OPS control unit 12 downloads the latest firmware version after receiving the upgrade instruction, downloads it to the OPS control unit, and transmits the latest firmware version to the device body 2.
In the second mode, when the device body 2 is not updated, the OPS computer 1 does not download the latest firmware version, so that the space occupation of the OPS computer 1 can be reduced.
In the above embodiments, the first control unit 22 may determine whether to upgrade, and the first control unit 22 may send the current firmware version to the OPS computer 1, that is, in a default state, the first gate terminal of the control switch circuit 24 is connected to the connection terminal, so that the first control unit 22 is connected to the firmware storage unit 21 through the switch circuit 24, thereby transmitting information. Of course, the device body 2 determines whether to upgrade itself and send the current firmware version to the OPS computer 1 can be executed by the second control unit 23, and at this time, the second gate terminal of the control switch circuit 24 is connected to the connection terminal in the default state, that is, the second control unit 23 is connected to the firmware storage unit 21.
In the above various embodiments, the latest firmware version and the current firmware version each include a boot program version and an application program version, and in the above step S2, it is determined whether the latest firmware version is the same as the current firmware version, and if one of the latest firmware version and the current firmware version is different, the latest firmware version is downloaded and transmitted. The method comprises the following steps: judging whether the version of the latest firmware is the same as the version of the bootstrap program and the version of the application program in the current firmware; if the bootstrap version and the application version are different, executing S3 and then S4; if the application program versions of the two are different; only the application version of the latest firmware version is downloaded and transmitted and the switching circuit 24 is controlled to connect the first control unit 22 with the firmware storage unit 21 to store the latest firmware version to the firmware storage unit 21 through the first control unit 22, and then S4 is executed. That is, in the latest firmware version and the current firmware version, if the boot versions of the latest firmware version and the current firmware version are the same, only the application version is different, only the application version may be updated, that is, only the application version in the latest firmware version is downloaded and sent, and in the embodiment in which the default first communication terminal is connected to the connection terminal, the application version in the latest firmware version may be directly stored into the firmware storage unit 21 through the first control unit 22, without increasing the gating of the switching circuit 24; if the boot versions are different and the application versions are the same, only the boot version may be updated, i.e. only the boot version in the latest firmware version may be downloaded and sent, and at this time, the boot version in the latest firmware version may be transferred to the firmware storage unit 21 through the first control unit 22 or the second control unit 23; if the boot version and the application version are different, the complete latest firmware version is downloaded and sent, and the switch circuit 24 needs to be controlled to be turned on at this time, so that the latest firmware version is stored in the firmware storage unit 21 through the second control unit 23. By adopting the mode, the downloading and upgrading efficiency of the latest firmware version can be increased, and the storage space of the equipment body 2 can be saved. In this embodiment, the OPS control unit is configured to determine whether the latest firmware version and the boot version and the application version in the current firmware version are the same, respectively.
The version obtaining unit and the OPS control unit may be separately provided or may be integrally provided, as shown in fig. 5, and they are integrated on one chip.
It should be noted that, the first control unit 22 is further configured to determine whether to upgrade, in an embodiment in which the device body 2 passively sends the current firmware version, the first control unit 22 is further configured to receive an instruction sent by the OPS control unit to transfer the current firmware version, and control the firmware storage unit 21 to send the current firmware version to the OPS computer 1 according to the instruction, where, it can be understood that, at this time, the first control unit 22 is connected to the firmware storage unit through the switch circuit 24; in the embodiment where the device body 2 actively transmits the current firmware version, the firmware storage unit 21 transmits the current firmware version to the OPS computer 1 directly or through the first control unit 22 (the first control unit 22 is connected to the firmware storage unit through the switch circuit 24). After the OPS control unit determines whether the latest firmware version is the same as the boot version and the application version in the current firmware version, the second control unit 23 is configured to control connection and disconnection between itself and the firmware storage unit 21 according to the determination result of the OPS control unit, receive the latest firmware version, store the latest firmware version in the firmware storage unit 21, and determine whether the latest firmware version is received, and if so, control the first control unit 22 to connect with the firmware storage unit 21.
The switch circuit 24 includes four-way 2:1 analog switch chips with power-off protection function, as shown in fig. 3, the second control unit 23 can improve the integration level of the internal circuit of the device body 2 by adopting chips with higher integration level, which is beneficial to the control of the whole electronic device.
With continued reference to fig. 1, the device body 2 further includes an and circuit 25, the and circuit 25 including a first input, a second input, and an output; the first input terminal is connected with the transmitting terminal of the first control unit 22; the second input end is connected with the transmitting end of the second control unit 23; the output end is connected to the receiving end of the OPS control unit, that is, the signals transmitted from the first control unit 22 and the second control unit 23 to the OPS computer 1 are first and-calculated and then transmitted to the OPS computer 1. Since the sending ends of the first control unit 22 and the second control unit 23 are all output of strong driving, if one is high level and the other is low level, the signal is directly transmitted to the receiving end of the OPS1, which may cause the over-current damage of the receiving end of the OPS computer 1, and after the above arrangement, the over-current damage of the receiving end and the sending end of the OPS can be prevented. Of course, the signals transmitted from the first control unit 22 and the second control unit 23 to the OPS computer 1 may be processed in other ways and then transmitted to the OPS computer 1.
Preferably, the transmitting end of the OPS computer 1 (specifically, the OPS control unit) is directly connected with the receiving end of the first control unit 22 and the receiving end of the second control unit 23 through signals, that is, the signals sent by the OPS computer 1 to the first control unit 22 and the second control unit 23 are directly sent to the receiving end of the first control unit 22 and the receiving end of the second control unit 23, and no and operation is needed, so that the efficiency of data transmission is increased.
Alternatively, the first control unit 22 is connected to the firmware storage unit 21 in a default state; in the step S2, if the latest firmware version is different from the current firmware version in terms of the boot version and the application version, the step S3 is specifically:
s331: downloading the latest firmware version, controlling the switch circuit 24 to enable the second control unit 23 to be connected with the firmware storage unit 21, receiving the latest firmware version through the second control unit 23 and storing the latest firmware version into the firmware storage unit 21;
s332: and judging whether the latest firmware version is received to be finished, and if so, executing step S4.
Specifically, in a default state, the second control unit 23 controls the control terminal of the switch circuit 24, so that the first control unit 22 is connected to the firmware storage unit 21 so that the two mutually transmit signals; the second control unit 23 is disconnected from the firmware storage unit 21, and both cannot transmit signals, at this time, the firmware storage unit 21 sends the current firmware version to the OPS computer 1 through the first control unit 22. Then, the OPS computer 1 judges whether the obtained latest firmware version is the same as the current firmware version, if the application program version and the bootstrap program version are different, the second control unit 23 connects the second control unit 23 with the firmware storage unit 21 by controlling the control end of the switch circuit 24 so that the two mutually transmit signals; the first control unit 22 is disconnected from the firmware storage unit 21. Next, the OPS computer 1 sends the latest firmware version to the second control unit 23, and the second control unit 23 receives the latest firmware version and stores it in the firmware storage unit 21; in this process, the second control unit 23 also determines whether the latest firmware version is transferred, and if so, the first control unit 22 is connected to the firmware storage unit 21 by controlling the control end of the switch circuit 24 so that the two mutually transmit signals; the second control unit 23 is disconnected from the firmware storage unit 21, both of which cannot transmit signals. Finally, the first control unit 22 restarts the device body 2 and reads the information in the firmware storage unit 21 for upgrading.
It should be noted that, if only the application program versions are different, the above manner may be adopted, that is, the latest firmware version is received through the second control unit 23.
When the first control unit 22 receives the application program version in the latest firmware version, it is also required to detect whether the transmission is completed in the transmission process, that is, whether the first control unit 22 or the second control unit 23 receives the latest firmware version in the reception process, the specific detection methods of the first control unit 22 or the second control unit 23 are the same, and the second control unit 23 is taken as an example for explanation, specifically, when the OPS computer 1 transmits the latest firmware version, a data end code and a check code are transmitted to inform the second control unit 23 that the transmission is completed; in the process of sending the latest firmware version of the whole OPS computer 1, the second control unit 23 always detects whether the received data has a check code, if so, the check code is judged to be consistent with the check code calculated by the second control unit, and if so, the data transmission is completed; if the received check code is inconsistent with the check code calculated by the OPS computer 1, the OPS computer 1 is informed to resend the latest firmware version.
In a specific embodiment, as shown in fig. 1 to 8, the version acquisition unit and the OPS control unit of the OPS computer 1 are integrated into one chip, and the and circuit 25, the switch circuit 24, the firmware storage unit 21, the first control unit 22 and the second control unit 23 may be integrated into chips respectively, and connected to each other, and the connection relationship between each component of the device body 2 and each component thereof is as follows:
the and circuit 25 may be a 74HC08 chip, the switch circuit 24 may be a SN74CBTLV3257PWR chip, the second control unit 23 may be a STM32F070F6P6 chip, the firmware storage unit 21 may be a MX25L3206E chip, the same network names of the chips are connected to each other, specifically, the SCK pin, the SI pin, the ce# pin, and the SO pin of the firmware storage unit 21 are connected to the connection ends of the switch circuit 24, i.e., the 4A pin, the 3A pin, the 1A pin, and the 2A pin, respectively.
The first gating ends of the switch circuit 24, namely, the 1B1 pin, the 2B1 pin, the 3B1 pin and the 4B1 pin are respectively connected with the SPI_CSN pin, the SPI_DO pin, the SPI_DI pin and the SPI_CLK pin of the first control unit 22, and the second gating ends of the switch circuit 24, namely, the 1B2 pin, the 2B2 pin, the 3B2 pin and the 4B2 pin are respectively connected with the PB1 pin, the PB7 pin, the PB6 pin and the PB5 pin of the second control unit 23; the control end S pin of the switch circuit 24 is connected with the PA4 pin of the second control unit; the GND pin and the OE pin of the switch circuit are respectively grounded.
The first input terminal of the AND gate circuit 25, i.e. the 1A pin, is connected with the PA2/UART2_TX pin of the second control unit 23; the second input end, namely the 1B pin, is connected with the UART 1-TX pin of the first control unit 22; the output end, i.e. the 1Y pin, is connected with the RX pin of the OPS computer 1.
The other pins of each chip are set as required, for example, the VSS pin of the firmware memory unit 21 is directly grounded, wp# is connected to +3.3v voltage through a resistor r31, VDD pin and hold# pin are connected between +3.3v voltage and the capacitor C50, and the other end of the capacitor C50 is grounded. The VCC pin of the switch circuit 24 is connected between the +3.3v voltage and the capacitor C835, and the other end of the capacitor C835 is grounded. The GND pin of the and circuit 25 is grounded, the VCC pin is connected between the +3.3v voltage and the capacitor C835, the other end of the capacitor C835 is grounded, and the remaining pins are suspended. The GND pin of the first control unit 22 is grounded.
Those skilled in the art will appreciate that the above-described preferred embodiments can be freely combined and stacked without conflict.
It will be understood that the above-described embodiments are merely illustrative and not restrictive, and that all obvious or equivalent modifications and substitutions to the details given above may be made by those skilled in the art without departing from the underlying principles of the invention, are intended to be included within the scope of the appended claims.

Claims (13)

1. An electronic device comprises an OPS computer capable of signal connection and a non-intelligent device body; it is characterized in that the method comprises the steps of,
the OPS computer includes:
the version acquisition unit is used for acquiring the current firmware version of the electronic equipment and acquiring the latest firmware version provided by the server through the Internet;
the OPS control unit is in signal connection with the version acquisition unit and is used for judging whether the latest firmware version is the same as the current firmware version or not; if not, downloading and sending the latest firmware version to the equipment body;
the device body includes: the system comprises a first control unit, a second control unit, a firmware storage unit and a switch circuit, wherein the first control unit and the second control unit are in signal connection with the OPS control unit; the first gating end of the switch circuit is connected with the first control unit, the second gating end of the switch circuit is connected with the second control unit, the connecting end of the switch circuit is connected with the firmware storage unit, and the control end of the switch circuit is connected with the second control unit;
the first control unit is used for reading the latest firmware version information to upgrade;
the second control unit is used for receiving the latest firmware version and storing the latest firmware version into the firmware storage unit; and controlling the connection and disconnection of the first gating end and the second gating end with the connecting end respectively;
the latest firmware version and the current firmware version both comprise a bootstrap version and an application version;
the OPS control unit judges whether the latest firmware version is the same as the current firmware version by judging whether the latest firmware version is the same as the bootstrap version and the application version in the current firmware version respectively;
the second control unit is further configured to control connection and disconnection of the first gate end and the second gate end with the connection end respectively according to a determination result of the OPS control unit, and control connection of the first gate end with the connection end when receiving the latest firmware version is completed.
2. The electronic device of claim 1, wherein the switching circuit comprises a four-channel 2:1 analog switch chip with power-off protection.
3. The electronic device of claim 1, wherein the device body further comprises an and circuit comprising a first input, a second input, and an output;
the first input end is connected with the transmitting end of the first control unit; the second input end is connected with the transmitting end of the second control unit; the output end is connected with the receiving end of the OPS control unit.
4. The electronic device of claim 3, wherein the electronic device comprises a plurality of electronic devices,
and the transmitting end of the OPS control unit is directly connected with the receiving end of the first control unit and the receiving end of the second control unit through signals.
5. The electronic device of claim 1, wherein the first gate is connected to the connection terminal in a default state, and the first control unit is further configured to send the current firmware version.
6. The electronic device of claim 1, wherein the first control unit is further configured to determine whether to upgrade.
7. The electronic device of any of claims 1-6, wherein the electronic device is a multimedia all-in-one machine, a touch all-in-one machine, an electronic blackboard, an electronic whiteboard, an intelligent interactive large screen, or an intelligent tablet.
8. A firmware upgrade method of electronic equipment, the said electronic equipment includes OPS computer and non-intelligent apparatus body that can signal connect; the OPS computer is characterized by comprising a version acquisition unit and an OPS control unit, wherein the equipment body comprises: the system comprises a first control unit, a second control unit, a firmware storage unit and a switch circuit, wherein the first control unit and the second control unit are in signal connection with the OPS control unit; the first gating end of the switch circuit is connected with the first control unit, the second gating end of the switch circuit is connected with the second control unit, the connecting end of the switch circuit is connected with the firmware storage unit, and the control end of the switch circuit is connected with the second control unit;
the firmware upgrading method comprises the following steps:
s1: acquiring a current firmware version of the electronic equipment, and acquiring an latest firmware version provided by a server through an Internet network;
s2: judging whether the latest firmware version is the same as the current firmware version; if not, executing S3;
s3: downloading the latest firmware version, controlling the switch circuit to enable the second control unit to be connected with the firmware storage unit, and storing the latest firmware version into the firmware storage unit through the second control unit;
s4: the switching circuit is controlled to enable the first control unit to be connected with the firmware storage unit, and the first control unit reads the latest firmware version for upgrading;
wherein the latest firmware version and the current firmware version both comprise a bootstrap version and an application version;
the step S2 specifically comprises the following steps:
judging whether the latest firmware version is the same as a bootstrap version and an application version in the current firmware version or not respectively;
if the bootstrap version and the application version are different, executing S3;
if the application program versions of the two are different; and downloading and transmitting only the application program version in the latest firmware version, and controlling the switch circuit to enable the first control unit to be connected with the firmware storage unit so as to store the latest firmware version into the firmware storage unit through the first control unit, and executing S4.
9. The firmware upgrade method according to claim 8, wherein the current firmware version and the latest firmware version are acquired at predetermined intervals in the step S1.
10. The firmware upgrade method according to claim 8, wherein in the step S1, the Internet network is connected through a wireless network or a wired network.
11. The firmware upgrade method of claim 8, wherein the first control unit is connected with the firmware storage unit through the switching circuit by default;
the step S1 of obtaining the current firmware version of the electronic device specifically includes:
s111: transmitting an instruction for transmitting the current firmware version;
s112: transmitting the current firmware version according to the instruction;
s113: and acquiring the current firmware version.
12. The firmware upgrade method according to claim 8, wherein the step S3 comprises:
s311: downloading the latest firmware version;
s312: judging whether to upgrade or not; if the upgrade is performed, S313 is performed;
s313: and controlling the switching circuit to enable the second control unit to be connected with the firmware storage unit, and storing the latest firmware version into the firmware storage unit through the second control unit.
13. The firmware upgrade method according to claim 8, wherein the step S3 comprises:
s321: judging whether to upgrade or not; if the upgrade is performed, S322 is performed;
s322: downloading the latest firmware version, controlling the switch circuit to enable the second control unit to be connected with the firmware storage unit, and storing the latest firmware version into the firmware storage unit through the second control unit.
CN201910444382.XA 2019-05-27 2019-05-27 Firmware upgrading method of electronic equipment and electronic equipment Active CN111309348B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910444382.XA CN111309348B (en) 2019-05-27 2019-05-27 Firmware upgrading method of electronic equipment and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910444382.XA CN111309348B (en) 2019-05-27 2019-05-27 Firmware upgrading method of electronic equipment and electronic equipment

Publications (2)

Publication Number Publication Date
CN111309348A CN111309348A (en) 2020-06-19
CN111309348B true CN111309348B (en) 2023-05-02

Family

ID=71148493

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910444382.XA Active CN111309348B (en) 2019-05-27 2019-05-27 Firmware upgrading method of electronic equipment and electronic equipment

Country Status (1)

Country Link
CN (1) CN111309348B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130275956A1 (en) * 2012-04-17 2013-10-17 Hon Hai Precision Industry Co., Ltd. Firmware upgrade method and system and terminal device using the method
CN105653299A (en) * 2014-11-12 2016-06-08 杭州华三通信技术有限公司 Firmware upgrade method device
CN107291516A (en) * 2017-07-12 2017-10-24 珠海格力电器股份有限公司 A kind of firmware upgrade method and system
CN107608701A (en) * 2017-10-20 2018-01-19 深圳市道通科技股份有限公司 A kind of method and apparatus of firmware updating
CN108897560A (en) * 2018-06-27 2018-11-27 北京小米移动软件有限公司 Firmware upgrade method, device and the storage medium of smart machine
CN109144554A (en) * 2018-06-21 2019-01-04 深圳和而泰数据资源与云技术有限公司 Firmware upgrade method, relevant device, system and medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130275956A1 (en) * 2012-04-17 2013-10-17 Hon Hai Precision Industry Co., Ltd. Firmware upgrade method and system and terminal device using the method
CN105653299A (en) * 2014-11-12 2016-06-08 杭州华三通信技术有限公司 Firmware upgrade method device
CN107291516A (en) * 2017-07-12 2017-10-24 珠海格力电器股份有限公司 A kind of firmware upgrade method and system
CN107608701A (en) * 2017-10-20 2018-01-19 深圳市道通科技股份有限公司 A kind of method and apparatus of firmware updating
CN109144554A (en) * 2018-06-21 2019-01-04 深圳和而泰数据资源与云技术有限公司 Firmware upgrade method, relevant device, system and medium
CN108897560A (en) * 2018-06-27 2018-11-27 北京小米移动软件有限公司 Firmware upgrade method, device and the storage medium of smart machine

Also Published As

Publication number Publication date
CN111309348A (en) 2020-06-19

Similar Documents

Publication Publication Date Title
US8195852B2 (en) Configurable connector for system-level communication
US20110302574A1 (en) Update management server, electronic apparatus, update management system, and method therefor
EP3258737B1 (en) Mobile terminal, power supply adapter, and upgrading method thereof
KR101082628B1 (en) Firmware upgrade system of audio/video/navigation(avn) system for vehicle using bluetooth mobile communication terminal and the method
KR20120096864A (en) Wireless charging of mobile device
JP6316536B2 (en) Information processing system, information processing apparatus, information processing program, and information processing method
CN102405649A (en) Remote control device, communication device, remote control method, and program
US20090070500A1 (en) Sharing of data between devices
CN102984209A (en) Distributing method of application program and terminals thereof
JP2014044549A (en) Information processing system, and external device
EP2664988B1 (en) Method, device and system for installing terminal software
US20180206276A1 (en) Bluetooth pairing system and operating method thereof
US8509738B2 (en) Secure device identification protocol with autonomous determination of specific class and capabilities of an electronic device cradle connected to an electronic device
CN111309348B (en) Firmware upgrading method of electronic equipment and electronic equipment
CN110704341A (en) Device and method for upgrading code by serial port single line
KR20180050001A (en) Firmware upgrade system and method for IoT
KR20200053281A (en) Home appliance and mobile terminal connected therewith
WO2007052896A1 (en) Mobile terminal combinable with various types of function module and method for controlling the function module
CN109144554B (en) Firmware upgrading method, related equipment, system and medium
EP2312446A2 (en) Terminal apparatus using a peripheral apparatus of another terminal via the control of one terminal, and interface method thereof
US11381416B2 (en) Appliance control system and server
CN104378403A (en) Terminal and updating method thereof
KR101485156B1 (en) Mobile terminal docking with external device and controlling method thereof
KR100651262B1 (en) Mobile terminal combinable to various function module and method for controlling the function module
CN214042107U (en) Intelligent household equipment control circuit and intelligent household equipment

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