CN115390865A - Electronic equipment, equipment upgrading method and system - Google Patents

Electronic equipment, equipment upgrading method and system Download PDF

Info

Publication number
CN115390865A
CN115390865A CN202110574327.XA CN202110574327A CN115390865A CN 115390865 A CN115390865 A CN 115390865A CN 202110574327 A CN202110574327 A CN 202110574327A CN 115390865 A CN115390865 A CN 115390865A
Authority
CN
China
Prior art keywords
slave devices
upgrade
master device
upgrading
slave
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110574327.XA
Other languages
Chinese (zh)
Inventor
王汝彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN202110574327.XA priority Critical patent/CN115390865A/en
Publication of CN115390865A publication Critical patent/CN115390865A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

The application discloses an electronic device, a device upgrading method and a device upgrading system. Wherein, this electronic equipment includes: the upgrading method comprises a master device and a plurality of slave devices, wherein the master device is connected with the slave devices through a Serial Peripheral Interface (SPI) bus, the master device sends first signals for instructing the slave devices to start an upgrading process to the slave devices, and second signals for instructing the master device to send upgrading files to the slave devices in response to feedback of the slave devices are sent by the slave devices, and the upgrading files are sent to the slave devices. The method and the device solve the technical problems that when equipment with a topology master-slave structure is upgraded, a plurality of slave devices need to be upgraded one by one, and the upgrading efficiency is low.

Description

Electronic equipment, equipment upgrading method and system
Technical Field
The present application relates to the field of device upgrading technologies, and in particular, to an electronic device, a device upgrading method, and a device upgrading system.
Background
In the related art, the most common burning method is ICP (In Circuit Programming) when an IC chip is upgraded: for example, the JTAG simulator/SWD simulator/J-Link/ST-Link simulator program directly carries out erasing and writing operations on the flash memory area in the chip; or IAP (In Application Programming): a flash memory area in a chip is divided into two parts, wherein an area 1 stores a start loading program, an area 2 stores an application program, and the start loading program is used for guiding upgrading during burning.
For a device with a topological master-slave structure, a master chip is usually connected to multiple slave chips, and the software of the slave chips is compatible (using the same software), and different instructions are distributed by the master chip to execute different actions.
When an ICP method is used for upgrading equipment with a topology master-slave structure, as the simulator needs to be connected to the corresponding pins of the chips during burning, only one chip can be burned at a time, and the burning operation needs to be repeated for a plurality of slave chip burning software, so that the time and the labor are wasted; when an IAP method is used for upgrading equipment with a topology master-slave structure, a Mini USB interface is generally adopted to be respectively connected with a chip and a computer, an upgrading file is selected through computer software and is burned, but the method still can only burn a plurality of slave chips one by one, and the efficiency is low.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the application provides electronic equipment, an equipment upgrading method and an equipment upgrading system, and aims to at least solve the technical problems that when equipment with a topological master-slave structure is upgraded, a plurality of slave equipment need to be upgraded one by one, and upgrading efficiency is low.
According to an aspect of an embodiment of the present application, there is provided an electronic device including: a master device and a plurality of slave devices, wherein: the master device and the plurality of slave devices are connected through an SPI (Serial Peripheral Interface) bus, wherein the master device transmits a first signal for instructing the plurality of slave devices to start an upgrade process to the plurality of slave devices, and transmits an upgrade file to the plurality of slave devices in response to a second signal fed back by the plurality of slave devices for instructing the master device to transmit the upgrade file to the plurality of slave devices.
According to another aspect of the embodiments of the present application, there is also provided an apparatus upgrading method, including: the method comprises the steps that a master device responds to an upgrading instruction from an upper computer and sends first signals to a plurality of slave devices, wherein the master device is connected with the slave devices through a Serial Peripheral Interface (SPI) bus, and the first signals are used for indicating the slave devices to start an upgrading process; the master device responds to second signals fed back by the plurality of slave devices and sends an instruction for requesting the upper computer to send an upgrade file to the master device, wherein the second signals are used for indicating the master device to send the upgrade file to the plurality of slave devices; the master device receives the upgrading file from the upper computer and sends the upgrading file to the plurality of slave devices.
According to another aspect of the embodiments of the present application, there is also provided an apparatus upgrading system, including: the electronic equipment comprises a main device and a plurality of slave devices, wherein the main device is connected with the slave devices through an SPI bus, the main device responds to an upgrading instruction from an upper computer, sends first signals for indicating the slave devices to start an upgrading process to the slave devices, responds to second signals fed back by the slave devices and for indicating the main device to send upgrading files to the slave devices, sends an instruction for requesting the upper computer to send upgrading files to the main device to the upper computer, and forwards the received upgrading files to the slave devices; the upper computer is connected with the main equipment and used for sending an upgrading instruction to the main equipment and sending the upgrading file to the main equipment when receiving an instruction which is used for requesting to send the upgrading file and is from the main equipment.
According to another aspect of the embodiments of the present application, a non-volatile storage medium is further provided, where the non-volatile storage medium includes a stored program, and when the program runs, the device where the non-volatile storage medium is located is controlled to execute the device upgrade method described above.
In the embodiment of the application, by connecting the master device with the multiple slave devices through the SPI bus, after the master device receives an upgrade instruction from the upper computer, the master device sends a first signal for instructing the multiple slave devices to start an upgrade process, responds to a second signal fed back by the multiple slave devices for instructing the master device to send an upgrade file to the multiple slave devices, and sends an instruction for requesting the upper computer to send the upgrade file to the master device to the upper computer, and forwards the received upgrade file to the multiple slave devices, thereby achieving the technical effect of uniformly upgrading the multiple slave devices, and further solving the technical problems that when a device with a topological master-slave structure is upgraded, the multiple slave devices need to be upgraded one by one, and the upgrade efficiency is not high.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a schematic diagram of an alternative electronic device according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an alternative electronic device according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an alternative pull-up circuit module according to an embodiment of the present application;
FIG. 4 is a schematic structural diagram of a device upgrade system according to an embodiment of the present application;
fig. 5 is a flowchart illustrating a device upgrading method according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
In the related art, a device in a topology master-slave structure generally includes a master device and a plurality of slave devices, wherein software running in the plurality of slave devices is compatible with each other, and the master device distributes different instructions to execute different actions. When a plurality of slave devices are upgraded, no matter the ICP method or the IAP method is used, the plurality of slave devices 102 can only be upgraded one by one, which is inconvenient to operate and low in efficiency.
In order to solve the above problem, the present application provides an electronic device capable of performing a unified upgrade on a plurality of slave devices, as shown in fig. 1, where the electronic device 10 includes at least: the system includes a master device 100 and a plurality of slave devices 102 (a to n), wherein the master device 100 and the plurality of slave devices 102 (a to n) are connected by an SPI bus. Specifically, the master device 100 transmits a first signal for instructing the plurality of slave devices 102 (a to n) to start an upgrade process to the plurality of slave devices 102 (a to n), and transmits an upgrade file to the plurality of slave devices 102 (a to n) in response to a second signal for instructing the master device 100 to transmit the upgrade file to the plurality of slave devices 102 (a to n) fed back by the plurality of slave devices 102 (a to n).
Optionally, the Master device and the slave device may also be MCUs (Microcontroller units, also called single-chip microcomputers), that is, the Master single-chip microcomputer (Master MCU) 200 is connected to a plurality of slave single-chip microcomputers (slave MCUs) 202 (a to n) through SPI buses.
The SPI bus is a serial peripheral interface, and adopts a master-slave mode structure, supporting single-master and multi-slave mode applications, and also enabling the single chip to communicate with various peripheral devices in a serial manner to exchange information, and generally has four interfaces, which are MISO, MOSI, SCLK, and CS, respectively, where:
MISO: master input/slave output for data transmission from the slave device to the Master device;
MOSI: master output/slave input for data transmission from the Master to the slave;
SCLK: (SPI Clock) Clock signal, generated only by the master device;
CS: the chip selection signal, also called slave equipment enabling signal, is controlled by the master equipment, and for any slave equipment, the operation of the slave equipment is effective only when the corresponding chip selection signal is the preset enabling signal; in the embodiment of the present application, the CS is enabled for all slave devices, i.e. all slave devices can receive the same data.
The master and slave devices related to the SPI interface are not in correspondence with the master and slave devices in fig. 1, and the master and slave devices of the SPI interface are mainly determined by the clock signal SCLK, and the master device that provides the clock signal SCLK is the master device and the slave device that receives the clock signal SCLK is the slave device.
On the basis of the above electronic device, an embodiment of the present application further provides a structural schematic diagram of an optional electronic device, as shown in fig. 2, the electronic device 20 at least includes: the system includes a master device 200 and a plurality of slave devices 202 (a to n), wherein the master device 200 and the plurality of slave devices 202 (a to n) are connected by an SPI bus.
As shown in fig. 2, the electronic device 20 further includes a pull-up circuit module 204, an optional structure of which is shown in fig. 3, it should be noted that the voltage 5V and the resistor 20k in fig. 3 are only an example, and do not limit specific parameters in the pull-up circuit module actually, and the pull-up circuit module 204 is configured to: when the number of the slave devices is excessive, the I/O driving capability of the master device is prevented from being insufficient. Specifically, the pull-up circuit module 204 is disposed between the master device 200 and the plurality of slave devices 202 (a to n), and is configured to transmit a Start Signal (SS Signal for short) sent by the master device 200 to the plurality of slave devices 202 (a to n); for any slave device, when the SS Signal is in the first state, the slave device does not start an upgrade process, and outputs a preparation completion Signal (Ready Signal, abbreviated as RS Signal) indicating a third state in which the slave device does not complete preparation for upgrade; when the upgrade start signal is in the second state, the slave device starts the upgrade process and outputs a preparation completion signal indicating that the slave device has completed the fourth state of the upgrade preparation.
Normally, the first state of the SS signal is set to high level, and the second state is set to low level; the third state of the RS signal is set to a low level and the fourth state is a high level. When the slave equipment receives a high-level SS signal, the upgrading process is not started, and a low-level RS signal is output to indicate that the slave equipment does not finish upgrading preparation and does not carry out upgrading; when the SS signal of low level is received, the upgrading process is started, for example, when an IAP method is used, the starting loading area is jumped to, and the RS signal of high level is output to indicate that the upgrading preparation is completed, and the upgrading can be carried out.
In some optional embodiments of the present application, after receiving the upgrade instruction from the upper computer, the master device 200 adjusts the SS signal from the initial first state to the second state, obtains the first signal, and sends the first signal to the plurality of slave devices 202 (a to n), and instructs the plurality of slave devices to start the upgrade process. Wherein, the upper Computer can be a PC (Personal Computer), and can also be a Host Computer, a tablet, etc.; the main device 200 performs command and data transmission with the upper computer through a universal transmission interface, wherein the universal transmission interface generally includes one of the following: USB (universal serial bus), UART (universal asynchronous receiver/transmitter).
As shown in fig. 2, the electronic device 20 further includes a line and function module 206, which is disposed between the master device 200 and the plurality of slave devices 202 (a to n), and is configured to receive the RS signals fed back by the plurality of slave devices 202 (a to n), and feed back the second signal to the master device 200 when all the RS signals fed back by the plurality of slave devices 202 (a to n) are in the fourth state.
For example, when the line and function module 206 receives and determines that the RS signals fed back by all the slave devices 202 (a to n) are at a high level, the line and function module sends a high-level RS signal to the master device 200, which indicates that all the slave devices 202 (a to n) have completed preparation for upgrading, and the master device 200 may send an upgrade file and perform upgrading; when the RS signal fed back by any one of the slave devices is at a low level, the RS signal at the low level is sent to the master device 200 to indicate that the slave device has not completed preparation for upgrading, and the master device 200 does not send an upgrade file for the moment.
As shown in fig. 2, the electronic device 20 further includes buffers 208 (a-n), and as shown in fig. 3, the master device 200 and any one of the plurality of slave devices 202 (a-n) are connected via the SPI bus and one of the plurality of buffers 208 (a-n); the buffer is added to buffer the interface signal of the SPI bus, so as to prevent the problem of signal distortion caused by insufficient I/O driving capability of the master device due to too long signal line or too many slave devices.
In the upgrading process, the master device 200 sequentially receives a plurality of upgrading file fragments from an upper computer, and sequentially transmits the upgrading file fragments to a plurality of slave devices 202 (a-n) through the SPI, wherein the upgrading file fragments are obtained by splitting an upgrading file by the upper computer according to a preset length. Specifically, the master device 200 transmits a first segment of the plurality of upgrade file segments to the plurality of slave devices 202 (a to n), and then transmits a next segment of the first segment to the plurality of slave devices 202 (a to n) in response to a continued reception instruction fed back by the plurality of slave devices 202 (a to n).
Optionally, the master device 200 is further configured to send, to the upper computer, a message for prompting an upgrade failure in response to an error message fed back from the multiple slave devices 202 (a to n), where the error message may be a message fed back to the master device 200 by the multiple slave devices 202 (a to n) when checking data after receiving the upgrade file fragment and finding an error, or a message fed back to the master device by the multiple slave devices 202 (a to n) when upgrading fails.
For example, after receiving a certain segment of the upgrade file from the upper computer, the master device 200 sends the certain segment to the multiple slave devices 202 (a to n), and the multiple slave devices 202 (a to n) check the upgrade file segment, for example, the integrity of the upgrade file segment is determined by using parity check, when an error is found in the check of a certain slave device, a file error message is fed back to the master device 200, and at this time, the master device 200 sends a message of upgrade failure to the upper computer, so as to prompt the user that the upgrade fails this time; if all the slave devices 202 (a-n) are verified to be correct, a message of completing receiving is fed back to the master device 200, at this time, the master device 200 sends a command of continuing receiving to the upper computer, and after receiving the next section of upgrading file segment sent by the upper computer, the next section of upgrading file segment is sent to the plurality of slave devices 202 (a-n); when a certain slave device fails to upgrade itself, a message of the upgrade failure is fed back to the master device 200, and at this time, the master device 200 sends a message of the upgrade failure to the upper computer to prompt the user that the upgrade is failed this time.
In the embodiment of the application, the electronic device sends first signals for indicating the plurality of slave devices to start an upgrading process to the plurality of slave devices in a manner that the master device is connected with the plurality of slave devices through an SPI (serial peripheral interface) bus after the master device receives an upgrading instruction from an upper computer, responds to second signals fed back by the plurality of slave devices and used for indicating the master device to send upgrading files to the plurality of slave devices, sends an instruction for requesting the upper computer to send the upgrading files to the master device to the upper computer, and forwards the received upgrading files to the plurality of slave devices, so that the technical effect of uniformly upgrading the plurality of slave devices is achieved, and the technical problem that when the devices with a topological master-slave structure are upgraded, the plurality of slave devices need to be upgraded one by one, and upgrading efficiency is not high is solved.
Example 2
The embodiment of the present application further provides an equipment upgrading system, where the system at least includes an upper computer and electronic equipment, and it should be noted that the structure of the electronic equipment may be the same as that of the electronic equipment in fig. 2, and may also include more or fewer components.
Fig. 4 shows a schematic structural diagram of an optional device upgrading system, which includes an upper computer 40 and an electronic device 42, where:
and the upper computer 40 is connected with the main device 420, and is used for sending an upgrade instruction to the main device 420 and sending the upgrade file to the main device 420 when receiving an instruction from the main device 420 for requesting to send the upgrade file. Wherein, the upper computer can be a PC, and also can be a host, a tablet and the like; the upper computer 40 performs instruction and data transmission with the main device 420 through a universal transmission interface such as USB, UART, or the like.
The electronic device 42 includes a master device 420 and a plurality of slave devices 422 (a to n), and the master device 420 and the plurality of slave devices 422 (a to n) are connected through an SPI bus, wherein the master device 420 transmits a first signal for instructing the plurality of slave devices 422 (a to n) to start an upgrade process in response to an upgrade instruction from the upper computer 40, transmits a second signal for instructing the master device 420 to transmit an upgrade file to the plurality of slave devices 422 (a to n) in response to a feedback of the plurality of slave devices 422 (a to n), transmits an instruction for requesting the upper computer 40 to transmit the upgrade file to the master device 420 to the upper computer 40, and forwards the received upgrade file to the plurality of slave devices 422 (a to n).
Optionally, the electronic device 42 further includes a pull-up circuit module 424 disposed between the master device 420 and the plurality of slave devices 422 (a-n) for transmitting SS signals sent by the master device 420 to the plurality of slave devices 422 (a-n); for any slave device, when the SS is in the first state, the slave device does not start the upgrading process and outputs an RS signal in a third state for indicating that the slave device does not complete the preparation for upgrading; when the SS signal is in the second state, the slave device starts an upgrade process and outputs an RS signal indicating a fourth state in which the slave device has completed preparation for upgrade.
Optionally, the electronic device 42 further includes a wire and function module 426, disposed between the master device 420 and the plurality of slave devices 422 (a to n), for receiving the RS signals fed back by the plurality of slave devices 422 (a to n), and feeding back a second signal to the master device 420 when the RS signals fed back by the plurality of slave devices are all in a fourth state.
In the above operating environment, the embodiments of the present application also provide a device upgrade method, it should be noted that the steps shown in the flowchart of the drawings may be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in an order different from that shown.
A schematic flow diagram of an apparatus upgrading method provided in the embodiment of the present application is shown in fig. 5, where the method includes the following steps:
step S502, the master device responds to an upgrading instruction from the upper computer and sends first signals to the plurality of slave devices, wherein the master device is connected with the plurality of slave devices through a Serial Peripheral Interface (SPI) bus, and the first signals are used for indicating the plurality of slave devices to start an upgrading process.
In some optional embodiments of the present application, a pull-up circuit module is disposed between the master device and the plurality of slave devices, and is configured to transmit SS signals sent by the master device to the plurality of slave devices, where for any slave device, when the SS signals are in a first state, the slave device does not start an upgrade process, and outputs an RS signal in a third state indicating that the slave device does not complete preparation for upgrade; when the SS signal is in the second state, the slave device starts an upgrade process and outputs an RS signal indicating a fourth state in which the slave device has completed preparation for upgrade. For example, when the slave device receives a high-level SS signal, it does not start the upgrade process, and outputs a low-level RS signal indicating that it has not completed upgrade preparation and does not perform upgrade; when the SS signal of low level is received, the upgrading process is started, for example, when an IAP method is used, the starting loading area is jumped to, and the RS signal of high level is output to indicate that the upgrading preparation is completed, and the upgrading can be carried out.
After receiving an upgrading instruction from an upper computer, the master device responds to the upgrading instruction, adjusts the SS signal from an initial first state to a second state, obtains a first signal, and sends the first signal to the plurality of slave devices.
Step S504, the master device sends an instruction for requesting the upper computer to send an upgrade file to the master device in response to second signals fed back by the plurality of slave devices, wherein the second signals are used for indicating the master device to send the upgrade file to the plurality of slave devices.
In some optional embodiments of the present application, a wired and functional module is further disposed between the master device and the multiple slave devices, and is configured to receive RS signals fed back by the multiple slave devices, and feed back, to the master device, a second signal used for instructing the master device to send an upgrade file to the multiple slave devices when the RS signals fed back by the multiple slave devices are all in a fourth state.
And after receiving a second signal fed back by the line and function module, the main equipment responds to the second signal and sends an instruction for requesting the upper computer to send an upgrade file to the main equipment.
Step S506, the master device receives the upgrade files from the upper computer and sends the upgrade files to the plurality of slave devices.
In some optional embodiments of the present application, the master device sequentially receives a plurality of upgrade file fragments from the upper computer, and sends the upgrade file fragments to a plurality of slave devices through the SPI bus, where the plurality of upgrade file fragments are obtained by splitting an upgrade file by the upper computer according to a preset length. Specifically, after transmitting a first segment of the plurality of upgrade file segments to the plurality of slave devices, the master device transmits a next segment of the first segment to the plurality of slave devices in response to a continued reception instruction fed back by the plurality of slave devices.
Optionally, the master device sends a message for prompting an upgrade failure to the upper computer in response to an error message fed back from the multiple slave devices, where the error message is a message fed back to the master device when the multiple slave devices check the data after receiving the upgrade file segments and find an error, or a message fed back to the master device when the multiple slave devices fail to upgrade.
According to the device upgrading method, the embodiment of the application provides a specific MCU batch upgrading process:
1. running PC end (upper computer) upgrading software, selecting bin files to be upgraded, clicking an upgrading button, and then sending an upgrading instruction to a Master MCU by the PC through a USB/UART;
2. after receiving the upgrading instruction, the Master MCU adjusts the SS signal to a low level (a first signal) and indicates the slave MCU to prepare for upgrading;
3. after the slave MCU receives the SS signal of low level, the RS signal of the slave MCU can be adjusted to high level, and after all the slave MCUs adjust the RS to high level, the fact that all the slave MCUs finish upgrading preparation is shown, and the line and module outputs the RS signal (second signal) of high level;
4. when the Master MCU receives the high-level RS signal, an instruction is sent to the PC end software through the USB/UART;
5. after receiving the instruction, the PC splits the bin file into a plurality of sections according to a fixed length and sequentially sends the Master MCU;
6. when a certain section is sent, the Master MCU sends the section to all slave MCUs through the SPI bus after receiving, and after sending is finished, the Master MCU sends a continuous receiving instruction to the PC;
7. the PC sends the next segment after receiving the file until the whole bin file is sent.
In the embodiment of the application, in a manner that a master device is connected with a plurality of slave devices through an SPI bus, after the master device receives an upgrade instruction from an upper computer, a first signal used for instructing the plurality of slave devices to start an upgrade process is sent to the plurality of slave devices, a second signal used for instructing the master device to send an upgrade file to the plurality of slave devices and fed back by the plurality of slave devices is responded, an instruction used for requesting the upper computer to send the upgrade file to the master device is sent to the upper computer, and the received upgrade file is forwarded to the plurality of slave devices, so that the technical effect of uniformly upgrading the plurality of slave devices is achieved, and the technical problems that when the devices with a topology master-slave structure are upgraded, the plurality of slave devices need to be upgraded one by one, and upgrade efficiency is low are solved.
Example 3
According to an embodiment of the present application, a nonvolatile storage medium is further provided, where the nonvolatile storage medium includes a stored program, and when the program runs, the device where the nonvolatile storage medium is located is controlled to execute the device upgrade method.
Optionally, the apparatus in which the non-volatile storage medium is controlled when the program is running executes the following steps: the method comprises the following steps that a master device responds to an upgrading instruction from an upper computer and sends first signals to a plurality of slave devices, wherein the master device is connected with the slave devices through a Serial Peripheral Interface (SPI) bus, and the first signals are used for indicating the slave devices to start an upgrading process; the master device responds to second signals fed back by the plurality of slave devices and sends an instruction for requesting the upper device to send an upgrade file to the master device, wherein the second signals are used for indicating the master device to send the upgrade file to the plurality of slave devices; the master device receives the upgrade file from the upper computer and sends the upgrade file to the plurality of slave devices.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technical content can be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit may be a division of a logic function, and an actual implementation may have another division, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or may not be executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application, or portions or all or portions of the technical solutions that contribute to the prior art, may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make various improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (17)

1. An electronic device, comprising: a master device and a plurality of slave devices, wherein:
the master device and the plurality of slave devices are connected through a Serial Peripheral Interface (SPI) bus, wherein the master device sends first signals for instructing the plurality of slave devices to start an upgrading process to the plurality of slave devices, and sends upgrading files to the plurality of slave devices in response to second signals fed back by the plurality of slave devices for instructing the master device to send upgrading files to the plurality of slave devices.
2. The electronic device of claim 1, further comprising: a pull-up circuit module, wherein:
the pull-up circuit module is arranged between the master device and the plurality of slave devices and is used for transmitting an upgrade starting signal sent by the master device to the plurality of slave devices; for any slave device, when the upgrade starting signal is in a first state, the slave device does not start an upgrade process and outputs a preparation completion signal of a third state for indicating that the slave device does not complete the upgrade preparation; when the upgrade starting signal is in the second state, the slave device starts an upgrade process and outputs a preparation completion signal indicating that the slave device has completed the fourth state of the upgrade preparation.
3. The electronic device of claim 2, wherein the host device is configured to adjust the upgrade start signal from an initial first state to a second state after receiving an upgrade instruction from an upper computer, so as to obtain the first signal.
4. The electronic device of claim 3, further comprising: a wire and a functional module, wherein:
the line and function module is arranged between the master device and the plurality of slave devices, and is used for receiving the preparation completion signals fed back by the plurality of slave devices and feeding back the second signal to the master device when the preparation completion signals fed back by the plurality of slave devices are all in a fourth state.
5. The electronic device of claim 1, further comprising: a plurality of buffers, wherein:
the master device and any one of the plurality of slave devices are connected through the SPI bus and one of the plurality of buffers, and the buffer is used for buffering interface signals of the SPI bus.
6. The electronic device of claim 1, wherein the master device is further configured to sequentially receive a plurality of upgrade file segments from an upper computer, and sequentially send the upgrade file segments to the plurality of slave devices through the SPI bus, where the upgrade file segments are obtained by splitting the upgrade file by the upper computer according to a preset length.
7. The electronic device of claim 6, wherein the master device is further configured to send a next segment of the first segment to the plurality of slave devices in response to a continued receipt instruction fed back by the plurality of slave devices after sending a first segment of the plurality of upgrade file segments to the plurality of slave devices.
8. The electronic device according to claim 6, wherein the master device is further configured to send a message prompting failure of upgrade to the upper computer in response to an error message fed back from the plurality of slave devices, wherein the error message is a message fed back to the master device by the plurality of slave devices when data is checked for errors after receiving the upgrade file segments, or a message fed back to the master device by the plurality of slave devices when upgrade fails.
9. The electronic device according to any one of claims 1 to 8, wherein the main device is further configured to perform instruction and data transmission with an upper computer through a universal transmission interface, where the universal transmission interface includes one of: USB, UART.
10. A method for upgrading a device, comprising:
the method comprises the steps that a master device responds to an upgrading instruction from an upper computer and sends first signals to a plurality of slave devices, wherein the master device is connected with the slave devices through a Serial Peripheral Interface (SPI) bus, and the first signals are used for indicating the slave devices to start an upgrading process;
the master device responds to second signals fed back by the plurality of slave devices and sends an instruction for requesting the upper computer to send an upgrade file to the master device, wherein the second signals are used for indicating the master device to send the upgrade file to the plurality of slave devices;
the master device receives the upgrading file from the upper computer and sends the upgrading file to the plurality of slave devices.
11. The method of claim 10, wherein the master device sending a first signal to the plurality of slave devices in response to an upgrade instruction from the host computer comprises:
the master equipment receives an upgrading instruction from the upper computer;
the master device responds to the upgrading instruction, adjusts an upgrading starting signal from an initial first state to a second state, obtains the first signal, and sends the first signal to the plurality of slave devices; for any slave device, when the upgrade starting signal is in a first state, the slave device does not start an upgrade process and outputs a preparation completion signal of a third state for indicating that the slave device does not complete the upgrade preparation; when the upgrade starting signal is in the second state, the slave device starts an upgrade process and outputs a preparation completion signal indicating that the slave device has completed the fourth state of the upgrade preparation.
12. The method according to claim 11, wherein a wired and functional module is provided between the master device and the plurality of slave devices, and the master device sends, to the upper computer, an instruction for requesting the upper computer to send an upgrade file to the master device in response to a second signal fed back by the plurality of slave devices, including:
the master device receives the second signal fed back by the line and function module, wherein the second signal is fed back to the master device when the signals fed back by the line and function module for completing the preparation are all in a fourth state, and the signals are used for indicating the master device to send the upgrade file signals to the slave devices;
and the main equipment responds to the second signal and sends an instruction for requesting the upper computer to send an upgrading file to the main equipment.
13. The method of claim 10, wherein the master device receives the upgrade file from an upper computer and sends the upgrade file to the plurality of slave devices, comprising:
the master device sequentially receives a plurality of upgrading file fragments from an upper computer and sends the upgrading file fragments to the plurality of slave devices through the SPI bus, wherein the upgrading file fragments are obtained by splitting the upgrading file by the upper computer according to a preset length.
14. The method of claim 13, wherein after the master device receives the upgrade file from an upper computer and sends the upgrade file to the plurality of slave devices, the method further comprises:
the master device sends a message for prompting upgrading failure to the upper computer in response to an error message fed back from the plurality of slave devices, wherein the error message is a message fed back to the master device when the plurality of slave devices check data after receiving the upgrade file segments to find an error, or a message fed back to the master device when the plurality of slave devices fail to upgrade.
15. An equipment upgrade system, comprising:
the electronic equipment comprises a main device and a plurality of slave devices, wherein the main device is connected with the slave devices through an SPI bus, the main device responds to an upgrading instruction from an upper computer, sends first signals for indicating the slave devices to start an upgrading process to the slave devices, responds to second signals fed back by the slave devices for indicating the main device to send upgrading files to the slave devices, sends an instruction for requesting the upper computer to send upgrading files to the main device to the upper computer, and forwards the received upgrading files to the slave devices;
the upper computer is connected with the main equipment and used for sending an upgrading instruction to the main equipment and sending the upgrading file to the main equipment when receiving an instruction for requesting to send the upgrading file from the main equipment.
16. The system of claim 15, wherein the electronic device further comprises:
the pull-up circuit module is arranged between the master device and the plurality of slave devices and used for transmitting an upgrade starting signal sent to the plurality of slave devices by the master device; for any slave device, when the upgrade starting signal is in a first state, the slave device does not start an upgrade process and outputs a preparation completion signal of a third state for indicating that the slave device does not complete the upgrade preparation; when the upgrade starting signal is in a second state, the slave device starts an upgrade process and outputs a preparation completion signal of a fourth state for indicating that the slave device has completed upgrade preparation;
and the line and function module is arranged between the master device and the plurality of slave devices, and is used for receiving the preparation completion signals fed back by the plurality of slave devices and feeding back the second signal to the master device when the preparation completion signals fed back by the plurality of slave devices are all in a fourth state.
17. A non-volatile storage medium, comprising a stored program, wherein the program, when executed, controls a device in which the non-volatile storage medium is located to perform the device upgrade method according to any one of claims 10 to 14.
CN202110574327.XA 2021-05-25 2021-05-25 Electronic equipment, equipment upgrading method and system Pending CN115390865A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110574327.XA CN115390865A (en) 2021-05-25 2021-05-25 Electronic equipment, equipment upgrading method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110574327.XA CN115390865A (en) 2021-05-25 2021-05-25 Electronic equipment, equipment upgrading method and system

Publications (1)

Publication Number Publication Date
CN115390865A true CN115390865A (en) 2022-11-25

Family

ID=84114065

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110574327.XA Pending CN115390865A (en) 2021-05-25 2021-05-25 Electronic equipment, equipment upgrading method and system

Country Status (1)

Country Link
CN (1) CN115390865A (en)

Similar Documents

Publication Publication Date Title
US7433991B2 (en) Selector, selection method, and program product
EP0992000B1 (en) Bus interface system and method
US8386764B2 (en) BIOS architecture
US9747237B2 (en) Methods and apparatus for reliable detection and enumeration of devices
US20110153888A1 (en) Cascade-able serial bus device with clock and management and cascade methods using the same
CN108227613A (en) Electronic device and its operating method
CN102402442B (en) Information processing apparatus, execution control method
CN102339242A (en) Computer system data recovery device
CN108037938B (en) Card opening method of eMMC
CN101398801A (en) Method and device for expanding internal integrate circuit bus
WO2015196479A1 (en) Program data updating method and device
CN103412838B (en) A kind of expanding system, communication means, address configuration method, equipment and device
CN102081526B (en) Basic input/output system architecture
CN113434442A (en) Switch and data access method
CN109101249A (en) A kind of method for burn-recording of CPLD, device and storage card
CN115390865A (en) Electronic equipment, equipment upgrading method and system
CN105095000A (en) BIOS restoring circuit
CN116185512A (en) Drive loading method, device, equipment and medium for PTC driver
CN108052337A (en) A kind of firmware upgrade method and device of eMMC production tools
CN114461286A (en) Server starting method and device and readable storage medium
CN104679123A (en) Mainboard and data burning method thereof
CN114281393A (en) Method and system for simultaneously programming multiple memory devices
CN114594995A (en) Electronic device and starting method thereof
CN106548311B (en) Inventory management setting system
CN115422110B (en) Port configuration method of electronic equipment and PCIE Switch chip

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