CN116431182A - Upgrading method and device of portable emergency equipment - Google Patents

Upgrading method and device of portable emergency equipment Download PDF

Info

Publication number
CN116431182A
CN116431182A CN202310411952.1A CN202310411952A CN116431182A CN 116431182 A CN116431182 A CN 116431182A CN 202310411952 A CN202310411952 A CN 202310411952A CN 116431182 A CN116431182 A CN 116431182A
Authority
CN
China
Prior art keywords
processing circuit
firmware
upgraded
packet
upgrading
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
CN202310411952.1A
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.)
Cssc Haishen Medical Technology Co ltd
Original Assignee
Cssc Haishen Medical 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 Cssc Haishen Medical Technology Co ltd filed Critical Cssc Haishen Medical Technology Co ltd
Priority to CN202310411952.1A priority Critical patent/CN116431182A/en
Publication of CN116431182A publication Critical patent/CN116431182A/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The invention relates to an upgrading method and device of portable emergency equipment, wherein the portable emergency equipment comprises a main processor, a main memory, a respiration monitoring processing circuit, an infusion processing circuit, a monitoring processing circuit and a change-over switch circuit; the main processor is respectively connected with the main memory, the respiration monitoring processing circuit, the transfusion processing circuit, the monitoring processing circuit and the change-over switch circuit; the respiration detection processing circuit is connected with the change-over switch circuit, the transfusion processing circuit is connected with the change-over switch circuit, and the monitoring processing module is connected with the change-over switch circuit. According to the method and the device, each functional component in the emergency equipment can be independently firmware-upgraded, and a case is not required to be disassembled in the upgrading process of each component, so that the upgrading efficiency is improved.

Description

Upgrading method and device of portable emergency equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for upgrading portable emergency equipment.
Background
In modern clinical medicine, in order to enable wounded personnel to carry out on-site first aid, transport and then send to a hospital in the golden time, the mortality rate of wounded personnel can be effectively reduced. At present, various medical equipment occupies a large amount of space in the process of rescuing and transferring large-scale wounded, more patients cannot be rescuing, the first-aid equipment is large in volume, the compressed oxygen bottle is short in oxygen supply time, and the compressed oxygen bottle is dangerous. At present, portable emergency equipment integrating various rescuing functions can be adopted, the portable emergency equipment has advanced life support functions, a plurality of functions are needed, a single chip microcomputer with a plurality of functions is integrated in the portable emergency equipment, the use environment is complex, the case shell of the emergency equipment needs to be tightly sealed, the upgrading firmware needs to be disassembled, the number of single chip microcomputer to be upgraded is large, and the upgrading efficiency is low.
Disclosure of Invention
The invention aims to solve the technical problem of providing a network anti-interference performance test method and system combining virtual nodes with real nodes aiming at the defects of the prior art.
The technical scheme for solving the technical problems is as follows:
in a first aspect, the present application provides a method for upgrading a portable emergency device, the portable emergency device including a main processor, a main memory, a respiration monitoring processing circuit, an infusion processing circuit, a monitoring processing circuit, and a switch circuit;
the main processor is respectively connected with the main memory, the respiration monitoring processing circuit, the transfusion processing circuit, the monitoring processing circuit and the change-over switch circuit;
the respiration detection processing circuit is connected with the change-over switch circuit, the transfusion processing circuit is connected with the change-over switch circuit, and the monitoring processing module is connected with the change-over switch circuit;
the method comprises the following steps:
the main processor acquires a firmware upgrade package, analyzes the firmware upgrade package to obtain a firmware upgrade package after checking the firmware upgrade package, and stores the firmware upgrade package to a corresponding position in a volatile storage area in the main memory according to a processing circuit corresponding to the firmware upgrade package;
The main processor respectively sends an upgrade instruction to the respiration monitoring processing circuit, the transfusion processing circuit and the monitoring processing circuit, receives the state instruction of the respiration monitoring processing circuit, the state instruction of the transfusion processing circuit and the state instruction of the monitoring processing circuit, and determines the processing circuit to be upgraded according to the state instruction of the respiration monitoring processing circuit, the state instruction of the transfusion processing circuit and the state instruction of the monitoring processing circuit;
the main processor acquires firmware upgrade sub-packets of a processing circuit to be upgraded from the corresponding position of the volatile memory area, opens a switch circuit corresponding to the processing circuit to be upgraded, and transmits the firmware upgrade sub-packets to the processing circuit to be upgraded through a transmission channel between the switch circuit and the main processor;
the processing circuit to be upgraded confirms that the received data frame of the firmware upgrading sub-packet is the last frame, signature data is obtained from the last frame, a preset signature key and the firmware upgrading sub-packet are utilized to verify the signature data, and if verification is successful, the processing circuit to be upgraded writes the firmware upgrading sub-packet into a nonvolatile storage area of the processing circuit to be upgraded and then upgrades the firmware upgrading sub-packet;
And after the main processor confirms that the upgrade of all the processing circuits to be processed is finished, the main processor performs upgrade to finish the upgrade of the portable emergency equipment.
Further, the respiration monitoring processing circuit comprises a first chip, a first nonvolatile memory and a first volatile memory; the infusion processing circuit comprises a second chip, a second nonvolatile memory and a second volatile memory; the monitoring processing circuit comprises a third chip, a third nonvolatile memory and a third volatile memory;
the public end of the change-over switch circuit is connected with the main processor, the first port of the change-over switch circuit is connected with the first chip, the second port of the change-over switch circuit is connected with the second chip, and the third port of the change-over switch is connected with the third chip.
Further, the main processor analyzes the firmware upgrade package to obtain a firmware upgrade sub-package, and stores the firmware upgrade sub-package to a corresponding position in a volatile storage area in the main memory according to a processing circuit corresponding to the firmware upgrade sub-package, wherein the processing circuit specifically comprises;
the main processor divides a volatile storage area in the main memory into a head storage area, a first storage area, a second storage area and a third storage area, wherein the head storage area stores a firmware writing address of a firmware package of the respiratory monitoring processing circuit, a firmware writing address of the firmware package of the infusion processing circuit and a writing address of the firmware package of the monitoring processing circuit;
The first storage area stores the firmware package of the respiration monitoring processing circuit, the second storage area stores the firmware package of the transfusion processing circuit, and the third storage area stores the firmware package of the monitoring processing circuit;
and the main process analyzes the firmware upgrading packet to obtain the firmware upgrading packet, analyzes the firmware upgrading packet to obtain component description information, stores the firmware upgrading packet in a corresponding storage area according to the firmware description information, and writes an address according to the firmware of the head storage area.
Further, the main processor obtains a firmware upgrade sub-packet of a processing circuit to be upgraded from a corresponding position of the volatile memory area, opens a switch circuit corresponding to the processing circuit to be upgraded, and transmits the firmware upgrade sub-packet to the processing circuit to be upgraded through a transmission channel between the switch circuit and the main processor, which specifically includes:
the main processor acquires a firmware writing address of a firmware upgrading sub-package of the processing circuit to be upgraded from a head storage area;
acquiring a firmware upgrading sub-packet of the processing circuit to be upgraded from a corresponding storage area according to the firmware writing address;
And the main processor opens a port, which is communicated with the switching circuit, of the chip of the processing circuit to be upgraded, opens transmission channels of the main processing chip and the processing circuit to be upgraded, and sends firmware upgrading packets of the processing circuit to be upgraded to the processing circuit to be upgraded through the transmission channels.
Further, the main processor sends upgrade instructions to the respiration monitoring processing circuit, the transfusion processing circuit and the monitoring processing circuit respectively, receives the state instructions of the respiration monitoring processing circuit, the transfusion processing circuit and the monitoring processing circuit, and determines the processing circuit to be upgraded according to the state instructions of the respiration monitoring processing circuit, the transfusion processing circuit and the monitoring processing circuit, which comprises the following steps of;
the main processor respectively sends upgrading instructions to the respiration monitoring processing circuit, the transfusion processing circuit and the monitoring processing circuit;
the respiration monitoring processing circuit, the transfusion processing circuit and the monitoring processing circuit reply version information and state information of the current firmware package to the main processing respectively;
and the main processor determines a processing circuit to be upgraded according to the version information and the state information of the current firmware package.
Further, after the processing circuit to be upgraded writes the firmware upgrading packet into a nonvolatile storage area of the processing circuit to be upgraded, the processing circuit to be upgraded is upgraded, and the method specifically comprises the following steps of;
the processing circuit to be upgraded receives a pin reset signal output by the main processing and resets the pin reset signal, and writes the firmware upgrading sub-package through the transmission channel;
and outputting a confirmation completion signal through the transmission channel after the firmware upgrading sub-package writing of the processing circuit to be processed is completed.
In a second aspect, the present application provides an upgrade apparatus for a portable emergency device, based on the upgrade method for a portable emergency device in the first aspect, the apparatus includes:
the first processing module is used for acquiring a firmware upgrading packet by the main processor, analyzing the firmware upgrading packet to obtain a firmware upgrading sub-packet after checking the firmware upgrading packet, and storing the firmware upgrading sub-packet to a corresponding position in a volatile storage area in the main memory according to a processing circuit corresponding to the firmware upgrading sub-packet;
the second processing module is used for respectively sending upgrading instructions to the respiratory monitoring processing circuit, the infusion processing circuit and the monitoring processing circuit by the main processor, receiving the state instructions of the respiratory monitoring processing circuit, the infusion processing circuit and the monitoring processing circuit, and determining the processing circuit to be upgraded according to the state instructions of the respiratory monitoring processing circuit, the infusion processing circuit and the monitoring processing circuit;
The third processing module is used for acquiring firmware upgrade sub-packets of the processing circuit to be upgraded from the corresponding position of the volatile memory area by the main processor, opening a switching circuit corresponding to the processing circuit to be upgraded, and transmitting the firmware upgrade sub-packets to the processing circuit to be upgraded through a transmission channel between the switching circuit and the main processor;
the fourth processing module is used for confirming that the received data frame of the firmware upgrading sub-packet is the last frame by the processing circuit to be upgraded, obtaining signature data from the last frame, verifying the signature data by using a preset signature key and the firmware upgrading sub-packet, and if the verification is successful, writing the firmware upgrading sub-packet into a nonvolatile storage area of the processing circuit to be upgraded by the processing circuit to be upgraded, and upgrading;
and the fifth processing module is used for the main processor to upgrade after confirming that all the processing circuits to be processed are upgraded, so as to complete the upgrade of the portable emergency equipment.
Further, the respiration monitoring processing circuit comprises a first chip, a first nonvolatile memory and a first volatile memory; the infusion processing circuit comprises a second chip, a second nonvolatile memory and a second volatile memory; the monitoring processing circuit comprises a third chip, a third nonvolatile memory and a third volatile memory;
The public end of the change-over switch circuit is connected with the main processor, the first port of the change-over switch circuit is connected with the first chip, the second port of the change-over switch circuit is connected with the second chip, and the third port of the change-over switch is connected with the third chip.
Further, the first processing module is specifically configured to divide a volatile memory area in the main memory into a header memory area, a first memory area, a second memory area and a third memory area by using the main processor, where the header memory area stores a firmware writing address of a firmware packet of the respiratory monitoring processing circuit, a firmware writing address of a firmware packet of the infusion processing circuit and a writing address of a firmware packet of the monitoring processing circuit;
the first storage area stores the firmware package of the respiration monitoring processing circuit, the second storage area stores the firmware package of the transfusion processing circuit, and the third storage area stores the firmware package of the monitoring processing circuit;
and the main process analyzes the firmware upgrading packet to obtain the firmware upgrading packet, analyzes the firmware upgrading packet to obtain component description information, stores the firmware upgrading packet in a corresponding storage area according to the firmware description information, and writes an address according to the firmware of the head storage area.
Further, the first processing module is specifically configured to obtain, from a header storage area, a firmware writing address of a firmware upgrade package of the processing circuit to be upgraded by the main processor;
acquiring a firmware upgrading sub-packet of the processing circuit to be upgraded from a corresponding storage area according to the firmware writing address;
and the main processor opens a port, which is communicated with the switching circuit, of the chip of the processing circuit to be upgraded, opens transmission channels of the main processing chip and the processing circuit to be upgraded, and sends firmware upgrading packets of the processing circuit to be upgraded to the processing circuit to be upgraded through the transmission channels.
The beneficial effects of the invention are as follows: the portable first-aid equipment comprises a main processor, a main memory, a respiration monitoring processing circuit, an infusion processing circuit, a monitoring processing circuit and a change-over switch circuit; the main processor is respectively connected with the main memory, the respiration monitoring processing circuit, the transfusion processing circuit, the monitoring processing circuit and the change-over switch circuit; the respiration detection processing circuit is connected with the change-over switch circuit, the transfusion processing circuit is connected with the change-over switch circuit, and the monitoring processing module is connected with the change-over switch circuit; the method comprises the following steps: the main processor acquires a firmware upgrade package, analyzes the firmware upgrade package to obtain a firmware upgrade package after checking the firmware upgrade package, and stores the firmware upgrade package to a corresponding position in a volatile storage area in the main memory according to a processing circuit corresponding to the firmware upgrade package; the main processor respectively sends an upgrade instruction to the respiration monitoring processing circuit, the transfusion processing circuit and the monitoring processing circuit, receives the state instruction of the respiration monitoring processing circuit, the state instruction of the transfusion processing circuit and the state instruction of the monitoring processing circuit, and determines the processing circuit to be upgraded according to the state instruction of the respiration monitoring processing circuit, the state instruction of the transfusion processing circuit and the state instruction of the monitoring processing circuit; the main processor acquires firmware upgrade sub-packets of a processing circuit to be upgraded from the corresponding position of the volatile memory area, opens a switch circuit corresponding to the processing circuit to be upgraded, and transmits the firmware upgrade sub-packets to the processing circuit to be upgraded through a transmission channel between the switch circuit and the main processor; the processing circuit to be upgraded carries out upgrading after writing the firmware upgrading packet into a nonvolatile storage area of the processing circuit to be upgraded; and after the main processor confirms that the upgrade of all the processing circuits to be processed is finished, the main processor performs upgrade to finish the upgrade of the portable emergency equipment. According to the method and the device, each functional component in the emergency equipment can be independently firmware-upgraded, and a case is not required to be disassembled in the upgrading process of each component, so that the upgrading efficiency is improved.
Additional aspects of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following description will briefly explain the embodiments of the present invention or the drawings used in the description of the prior art, and it is obvious that the drawings described below are only some embodiments of the present invention, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of an upgrade method of a portable emergency device according to an embodiment of the present invention;
fig. 2 is a schematic block diagram of an upgrade apparatus of a portable emergency device according to another embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
As shown in fig. 1, an upgrade method of a portable emergency device according to an embodiment of the present invention includes a main processor, a main memory, a respiration monitoring processing circuit, an infusion processing circuit, a monitoring processing circuit, and a switch circuit;
the main processor is respectively connected with the main memory, the respiration monitoring processing circuit, the transfusion processing circuit, the monitoring processing circuit and the change-over switch circuit;
the respiration detection processing circuit is connected with the change-over switch circuit, the transfusion processing circuit is connected with the change-over switch circuit, and the monitoring processing module is connected with the change-over switch circuit;
the method comprises the following steps:
110. the main processor acquires a firmware upgrade package, analyzes the firmware upgrade package to obtain a firmware upgrade package after checking the firmware upgrade package, and stores the firmware upgrade package to a corresponding position in a volatile storage area in the main memory according to a processing circuit corresponding to the firmware upgrade package;
120. the main processor respectively sends an upgrade instruction to the respiration monitoring processing circuit, the transfusion processing circuit and the monitoring processing circuit, receives the state instruction of the respiration monitoring processing circuit, the state instruction of the transfusion processing circuit and the state instruction of the monitoring processing circuit, and determines the processing circuit to be upgraded according to the state instruction of the respiration monitoring processing circuit, the state instruction of the transfusion processing circuit and the state instruction of the monitoring processing circuit;
130. The main processor acquires firmware upgrade sub-packets of a processing circuit to be upgraded from the corresponding position of the volatile memory area, opens a switch circuit corresponding to the processing circuit to be upgraded, and transmits the firmware upgrade sub-packets to the processing circuit to be upgraded through a transmission channel between the switch circuit and the main processor;
140. the processing circuit to be upgraded confirms that the received data frame of the firmware upgrading sub-packet is the last frame, signature data is obtained from the last frame, a preset signature key and the firmware upgrading sub-packet are utilized to verify the signature data, and if verification is successful, the processing circuit to be upgraded writes the firmware upgrading sub-packet into a nonvolatile storage area of the processing circuit to be upgraded and then upgrades the firmware upgrading sub-packet;
150. and after the main processor confirms that the upgrade of all the processing circuits to be processed is finished, the main processor performs upgrade to finish the upgrade of the portable emergency equipment.
Specifically, the processing circuit to be upgraded acquires signature data from the last frame, and decrypts the signature data by using the stored public key to obtain a decryption result;
And carrying out hash calculation on the firmware upgrade package to obtain a hash value, comparing a decryption result with the hash value, if the decryption result is consistent with the hash value, checking the signature successfully, otherwise, checking the signature failed.
Based on the above embodiment, further, the respiration monitoring processing circuit includes a first chip, a first nonvolatile memory, and a first volatile memory; the infusion processing circuit comprises a second chip, a second nonvolatile memory and a second volatile memory; the monitoring processing circuit comprises a third chip, a third nonvolatile memory and a third volatile memory;
the public end of the change-over switch circuit is connected with the main processor, the first port of the change-over switch circuit is connected with the first chip, the second port of the change-over switch circuit is connected with the second chip, and the third port of the change-over switch is connected with the third chip.
Based on the above embodiment, further, the main processor parses the firmware upgrade package to obtain a firmware upgrade package, and stores the firmware upgrade package to a corresponding position in a volatile storage area in the main memory according to a processing circuit corresponding to the firmware upgrade package, including;
The main processor divides a volatile storage area in the main memory into a head storage area, a first storage area, a second storage area and a third storage area, wherein the head storage area stores a firmware writing address of a firmware package of the respiratory monitoring processing circuit, a firmware writing address of the firmware package of the infusion processing circuit and a writing address of the firmware package of the monitoring processing circuit;
the first storage area stores the firmware package of the respiration monitoring processing circuit, the second storage area stores the firmware package of the transfusion processing circuit, and the third storage area stores the firmware package of the monitoring processing circuit;
and the main process analyzes the firmware upgrading packet to obtain the firmware upgrading packet, analyzes the firmware upgrading packet to obtain component description information, stores the firmware upgrading packet in a corresponding storage area according to the firmware description information, and writes an address according to the firmware of the head storage area.
Based on the above embodiment, further, the main processor obtains a firmware upgrade packet of a processing circuit to be upgraded from a corresponding position of the volatile memory area, opens a switch circuit corresponding to the processing circuit to be upgraded, and transmits the firmware upgrade packet to the processing circuit to be upgraded through a transmission channel between the switch circuit and the main processor, which specifically includes:
The main processor acquires a firmware writing address of a firmware upgrading sub-package of the processing circuit to be upgraded from a head storage area;
acquiring a firmware upgrading sub-packet of the processing circuit to be upgraded from a corresponding storage area according to the firmware writing address;
and the main processor opens a port, which is communicated with the switching circuit, of the chip of the processing circuit to be upgraded, opens transmission channels of the main processing chip and the processing circuit to be upgraded, and sends firmware upgrading packets of the processing circuit to be upgraded to the processing circuit to be upgraded through the transmission channels.
Based on the above embodiment, further, the main processor sends an upgrade instruction to the respiration monitoring processing circuit, the infusion processing circuit and the monitoring processing circuit, receives a status instruction of the respiration monitoring processing circuit, a status instruction of the infusion processing circuit and a status instruction of the monitoring processing circuit, and determines a processing circuit to be upgraded according to the status instruction of the respiration monitoring processing circuit, the status instruction of the infusion processing circuit and the status instruction of the monitoring processing circuit, which specifically includes;
the main processor respectively sends upgrading instructions to the respiration monitoring processing circuit, the transfusion processing circuit and the monitoring processing circuit;
The respiration monitoring processing circuit, the transfusion processing circuit and the monitoring processing circuit reply version information and state information of the current firmware package to the main processing respectively;
and the main processor determines a processing circuit to be upgraded according to the version information and the state information of the current firmware package.
Based on the above embodiment, further, after the processing circuit to be upgraded writes the firmware upgrade packet into the nonvolatile memory area of the processing circuit to be upgraded, the processing circuit to be upgraded performs upgrade, including specifically;
the processing circuit to be upgraded receives a pin reset signal output by the main processing and resets the pin reset signal, and writes the firmware upgrading sub-package through the transmission channel;
and outputting a confirmation completion signal through the transmission channel after the firmware upgrading sub-package writing of the processing circuit to be processed is completed.
As shown in fig. 2, an upgrade apparatus of a portable emergency device, the apparatus includes:
the first processing module is used for acquiring a firmware upgrading packet by the main processor, analyzing the firmware upgrading packet to obtain a firmware upgrading sub-packet after checking the firmware upgrading packet, and storing the firmware upgrading sub-packet to a corresponding position in a volatile storage area in the main memory according to a processing circuit corresponding to the firmware upgrading sub-packet;
The second processing module is used for respectively sending upgrading instructions to the respiratory monitoring processing circuit, the infusion processing circuit and the monitoring processing circuit by the main processor, receiving the state instructions of the respiratory monitoring processing circuit, the infusion processing circuit and the monitoring processing circuit, and determining the processing circuit to be upgraded according to the state instructions of the respiratory monitoring processing circuit, the infusion processing circuit and the monitoring processing circuit;
the third processing module is used for acquiring firmware upgrade sub-packets of the processing circuit to be upgraded from the corresponding position of the volatile memory area by the main processor, opening a switching circuit corresponding to the processing circuit to be upgraded, and transmitting the firmware upgrade sub-packets to the processing circuit to be upgraded through a transmission channel between the switching circuit and the main processor;
the fourth processing module is used for confirming that the received data frame of the firmware upgrading sub-packet is the last frame by the processing circuit to be upgraded, obtaining signature data from the last frame, verifying the signature data by using a preset signature key and the firmware upgrading sub-packet, and if the verification is successful, writing the firmware upgrading sub-packet into a nonvolatile storage area of the processing circuit to be upgraded by the processing circuit to be upgraded, and upgrading;
And the fifth processing module is used for the main processor to upgrade after confirming that all the processing circuits to be processed are upgraded, so as to complete the upgrade of the portable emergency equipment.
Based on the above embodiment, further, the respiration monitoring processing circuit includes a first chip, a first nonvolatile memory, and a first volatile memory; the infusion processing circuit comprises a second chip, a second nonvolatile memory and a second volatile memory; the monitoring processing circuit comprises a third chip, a third nonvolatile memory and a third volatile memory;
the public end of the change-over switch circuit is connected with the main processor, the first port of the change-over switch circuit is connected with the first chip, the second port of the change-over switch circuit is connected with the second chip, and the third port of the change-over switch is connected with the third chip.
Based on the above embodiment, further, the first processing module is specifically configured to divide, by the main processor, a volatile memory area in the main memory into a header memory area, a first memory area, a second memory area, and a third memory area, where the header memory area stores a firmware write address of a firmware packet of the respiratory monitoring processing circuit, a firmware write address of a firmware packet of the infusion processing circuit, and a write address of a firmware packet of the monitoring processing circuit;
The first storage area stores the firmware package of the respiration monitoring processing circuit, the second storage area stores the firmware package of the transfusion processing circuit, and the third storage area stores the firmware package of the monitoring processing circuit;
and the main process analyzes the firmware upgrading packet to obtain the firmware upgrading packet, analyzes the firmware upgrading packet to obtain component description information, stores the firmware upgrading packet in a corresponding storage area according to the firmware description information, and writes an address according to the firmware of the head storage area.
Based on the above embodiment, further, the first processing module is specifically configured to obtain, from a header storage area, a firmware writing address of a firmware upgrade package of the processing circuit to be upgraded by the main processor;
acquiring a firmware upgrading sub-packet of the processing circuit to be upgraded from a corresponding storage area according to the firmware writing address;
and the main processor opens a port, which is communicated with the switching circuit, of the chip of the processing circuit to be upgraded, opens transmission channels of the main processing chip and the processing circuit to be upgraded, and sends firmware upgrading packets of the processing circuit to be upgraded to the processing circuit to be upgraded through the transmission channels.
The upgrading method of the portable emergency equipment provided based on the embodiment comprises a main processor, a main memory, a respiration monitoring processing circuit, an infusion processing circuit, a monitoring processing circuit and a change-over switch circuit; the main processor is respectively connected with the main memory, the respiration monitoring processing circuit, the transfusion processing circuit, the monitoring processing circuit and the change-over switch circuit; the respiration detection processing circuit is connected with the change-over switch circuit, the transfusion processing circuit is connected with the change-over switch circuit, and the monitoring processing module is connected with the change-over switch circuit; the method comprises the following steps: the main processor acquires a firmware upgrade package, analyzes the firmware upgrade package to obtain a firmware upgrade package after checking the firmware upgrade package, and stores the firmware upgrade package to a corresponding position in a volatile storage area in the main memory according to a processing circuit corresponding to the firmware upgrade package; the main processor respectively sends an upgrade instruction to the respiration monitoring processing circuit, the transfusion processing circuit and the monitoring processing circuit, receives the state instruction of the respiration monitoring processing circuit, the state instruction of the transfusion processing circuit and the state instruction of the monitoring processing circuit, and determines the processing circuit to be upgraded according to the state instruction of the respiration monitoring processing circuit, the state instruction of the transfusion processing circuit and the state instruction of the monitoring processing circuit; the main processor acquires firmware upgrade sub-packets of a processing circuit to be upgraded from the corresponding position of the volatile memory area, opens a switch circuit corresponding to the processing circuit to be upgraded, and transmits the firmware upgrade sub-packets to the processing circuit to be upgraded through a transmission channel between the switch circuit and the main processor; the processing circuit to be upgraded carries out upgrading after writing the firmware upgrading packet into a nonvolatile storage area of the processing circuit to be upgraded; and after the main processor confirms that the upgrade of all the processing circuits to be processed is finished, the main processor performs upgrade to finish the upgrade of the portable emergency equipment. According to the method and the device, each functional component in the emergency equipment can be independently firmware-upgraded, and a case is not required to be disassembled in the upgrading process of each component, so that the upgrading efficiency is improved.
Additional aspects of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other manners. For example, the apparatus/terminal device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium.
Based on such understanding, the present invention may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a Read-only memory (ROM), a random access memory (RAM, randomAccessMemory), an electrical carrier signal, a telecommunication signal, a software distribution medium, and so forth. It should be noted that the computer readable medium may include content that is subject to appropriate increases and decreases as required by jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is not included as electrical carrier signals and telecommunication signals.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention.
The present invention is not limited to the above embodiments, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the present invention, and these modifications and substitutions are intended to be included in the scope of the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (10)

1. The upgrading method of the portable emergency equipment is characterized by comprising a main processor, a main memory, a respiration monitoring processing circuit, an infusion processing circuit, a monitoring processing circuit and a change-over switch circuit;
The main processor is respectively connected with the main memory, the respiration monitoring processing circuit, the transfusion processing circuit, the monitoring processing circuit and the change-over switch circuit;
the respiration detection processing circuit is connected with the change-over switch circuit, the transfusion processing circuit is connected with the change-over switch circuit, and the monitoring processing module is connected with the change-over switch circuit;
the method comprises the following steps:
the main processor acquires a firmware upgrade package, analyzes the firmware upgrade package to obtain a firmware upgrade package after checking the firmware upgrade package, and stores the firmware upgrade package to a corresponding position in a volatile storage area in the main memory according to a processing circuit corresponding to the firmware upgrade package;
the main processor respectively sends an upgrade instruction to the respiration monitoring processing circuit, the transfusion processing circuit and the monitoring processing circuit, receives the state instruction of the respiration monitoring processing circuit, the state instruction of the transfusion processing circuit and the state instruction of the monitoring processing circuit, and determines the processing circuit to be upgraded according to the state instruction of the respiration monitoring processing circuit, the state instruction of the transfusion processing circuit and the state instruction of the monitoring processing circuit;
The main processor acquires firmware upgrade sub-packets of a processing circuit to be upgraded from the corresponding position of the volatile memory area, opens a switch circuit corresponding to the processing circuit to be upgraded, and transmits the firmware upgrade sub-packets to the processing circuit to be upgraded through a transmission channel between the switch circuit and the main processor;
the processing circuit to be upgraded confirms that the received data frame of the firmware upgrading sub-packet is the last frame, signature data is obtained from the last frame, a preset signature key and the firmware upgrading sub-packet are utilized to verify the signature data, and if verification is successful, the processing circuit to be upgraded writes the firmware upgrading sub-packet into a nonvolatile storage area of the processing circuit to be upgraded and then upgrades the firmware upgrading sub-packet;
and after the main processor confirms that the upgrade of all the processing circuits to be processed is finished, the main processor performs upgrade to finish the upgrade of the portable emergency equipment.
2. The method for upgrading a portable emergency device according to claim 1, wherein,
the respiration monitoring processing circuit comprises a first chip, a first nonvolatile memory and a first volatile memory; the infusion processing circuit comprises a second chip, a second nonvolatile memory and a second volatile memory; the monitoring processing circuit comprises a third chip, a third nonvolatile memory and a third volatile memory;
The public end of the change-over switch circuit is connected with the main processor, the first port of the change-over switch circuit is connected with the first chip, the second port of the change-over switch circuit is connected with the second chip, and the third port of the change-over switch is connected with the third chip.
3. The method for upgrading a portable emergency device according to claim 2, wherein the main processor parses the firmware upgrade package to obtain a firmware upgrade package, and stores the firmware upgrade package to a corresponding location in a volatile storage area of the main memory according to a processing circuit corresponding to the firmware upgrade package, specifically comprising;
the main processor divides a volatile storage area in the main memory into a head storage area, a first storage area, a second storage area and a third storage area, wherein the head storage area stores a firmware writing address of a firmware package of the respiratory monitoring processing circuit, a firmware writing address of the firmware package of the infusion processing circuit and a writing address of the firmware package of the monitoring processing circuit;
the first storage area stores the firmware package of the respiration monitoring processing circuit, the second storage area stores the firmware package of the transfusion processing circuit, and the third storage area stores the firmware package of the monitoring processing circuit;
And the main process analyzes the firmware upgrading packet to obtain the firmware upgrading packet, analyzes the firmware upgrading packet to obtain component description information, stores the firmware upgrading packet in a corresponding storage area according to the firmware description information, and writes an address according to the firmware of the head storage area.
4. The upgrade method of portable emergency equipment according to claim 3, wherein the main processor obtains a firmware upgrade package of a processing circuit to be upgraded from a corresponding position of the volatile memory area, opens a switch circuit corresponding to the processing circuit to be upgraded, and transmits the firmware upgrade package to the processing circuit to be upgraded through a transmission channel between the switch circuit and the main processor, specifically comprising:
the main processor acquires a firmware writing address of a firmware upgrading sub-package of the processing circuit to be upgraded from a head storage area;
acquiring a firmware upgrading sub-packet of the processing circuit to be upgraded from a corresponding storage area according to the firmware writing address;
and the main processor opens a port, which is communicated with the switching circuit, of the chip of the processing circuit to be upgraded, opens transmission channels of the main processing chip and the processing circuit to be upgraded, and sends firmware upgrading packets of the processing circuit to be upgraded to the processing circuit to be upgraded through the transmission channels.
5. The upgrade method of portable emergency equipment according to claim 1, wherein the main processor sends upgrade instructions to the respiration monitoring processing circuit, the transfusion processing circuit and the monitoring processing circuit, receives status instructions of the respiration monitoring processing circuit, the transfusion processing circuit and the monitoring processing circuit, and determines a processing circuit to be upgraded according to the status instructions of the respiration monitoring processing circuit, the transfusion processing circuit and the monitoring processing circuit, specifically comprising:
the main processor respectively sends upgrading instructions to the respiration monitoring processing circuit, the transfusion processing circuit and the monitoring processing circuit;
the respiration monitoring processing circuit, the transfusion processing circuit and the monitoring processing circuit reply version information and state information of the current firmware package to the main processing respectively;
and the main processor determines a processing circuit to be upgraded according to the version information and the state information of the current firmware package.
6. The method for upgrading a portable emergency device according to claim 5, wherein the processing circuit to be upgraded performs the upgrade after writing the firmware upgrade packet into a nonvolatile memory area of the processing circuit to be upgraded, and specifically comprises:
The processing circuit to be upgraded receives a pin reset signal output by the main processing and resets the pin reset signal, and writes the firmware upgrading sub-package through the transmission channel;
and outputting a confirmation completion signal through the transmission channel after the firmware upgrading sub-package writing of the processing circuit to be processed is completed.
7. An upgrade apparatus for portable emergency equipment, based on the upgrade method of portable emergency equipment according to any one of claims 1-6, characterized in that the apparatus comprises:
the first processing module is used for acquiring a firmware upgrading packet by the main processor, analyzing the firmware upgrading packet to obtain a firmware upgrading sub-packet after checking the firmware upgrading packet, and storing the firmware upgrading sub-packet to a corresponding position in a volatile storage area in the main memory according to a processing circuit corresponding to the firmware upgrading sub-packet;
the second processing module is used for respectively sending upgrading instructions to the respiratory monitoring processing circuit, the infusion processing circuit and the monitoring processing circuit by the main processor, receiving the state instructions of the respiratory monitoring processing circuit, the infusion processing circuit and the monitoring processing circuit, and determining the processing circuit to be upgraded according to the state instructions of the respiratory monitoring processing circuit, the infusion processing circuit and the monitoring processing circuit;
The third processing module is used for acquiring firmware upgrade sub-packets of the processing circuit to be upgraded from the corresponding position of the volatile memory area by the main processor, opening a switching circuit corresponding to the processing circuit to be upgraded, and transmitting the firmware upgrade sub-packets to the processing circuit to be upgraded through a transmission channel between the switching circuit and the main processor;
the fourth processing module is used for confirming that the received data frame of the firmware upgrading sub-packet is the last frame by the processing circuit to be upgraded, obtaining signature data from the last frame, verifying the signature data by using a preset signature key and the firmware upgrading sub-packet, and if the verification is successful, writing the firmware upgrading sub-packet into a nonvolatile storage area of the processing circuit to be upgraded by the processing circuit to be upgraded, and upgrading;
and the fifth processing module is used for the main processor to upgrade after confirming that all the processing circuits to be processed are upgraded, so as to complete the upgrade of the portable emergency equipment.
8. The apparatus for upgrading a portable emergency device according to claim 7, wherein,
The respiration monitoring processing circuit comprises a first chip, a first nonvolatile memory and a first volatile memory; the infusion processing circuit comprises a second chip, a second nonvolatile memory and a second volatile memory; the monitoring processing circuit comprises a third chip, a third nonvolatile memory and a third volatile memory;
the public end of the change-over switch circuit is connected with the main processor, the first port of the change-over switch circuit is connected with the first chip, the second port of the change-over switch circuit is connected with the second chip, and the third port of the change-over switch is connected with the third chip.
9. The upgrading device of the portable emergency equipment according to claim 8, wherein the first processing module is specifically configured to divide the volatile memory area in the main memory into a head memory area, a first memory area, a second memory area and a third memory area by the main processor, and the head memory area stores a firmware writing address of a firmware packet of the respiratory monitoring processing circuit, a firmware writing address of a firmware packet of the infusion processing circuit and a writing address of a firmware packet of the monitoring processing circuit;
The first storage area stores the firmware package of the respiration monitoring processing circuit, the second storage area stores the firmware package of the transfusion processing circuit, and the third storage area stores the firmware package of the monitoring processing circuit;
and the main process analyzes the firmware upgrading packet to obtain the firmware upgrading packet, analyzes the firmware upgrading packet to obtain component description information, stores the firmware upgrading packet in a corresponding storage area according to the firmware description information, and writes an address according to the firmware of the head storage area.
10. The upgrading device of a portable emergency apparatus according to claim 9, wherein the first processing module is specifically configured to obtain, from a header storage area, a firmware writing address of a firmware upgrading sub-package of the processing circuit to be upgraded by the main processor;
acquiring a firmware upgrading sub-packet of the processing circuit to be upgraded from a corresponding storage area according to the firmware writing address;
and the main processor opens a port, which is communicated with the switching circuit, of the chip of the processing circuit to be upgraded, opens transmission channels of the main processing chip and the processing circuit to be upgraded, and sends firmware upgrading packets of the processing circuit to be upgraded to the processing circuit to be upgraded through the transmission channels.
CN202310411952.1A 2023-04-18 2023-04-18 Upgrading method and device of portable emergency equipment Pending CN116431182A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310411952.1A CN116431182A (en) 2023-04-18 2023-04-18 Upgrading method and device of portable emergency equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310411952.1A CN116431182A (en) 2023-04-18 2023-04-18 Upgrading method and device of portable emergency equipment

Publications (1)

Publication Number Publication Date
CN116431182A true CN116431182A (en) 2023-07-14

Family

ID=87081182

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310411952.1A Pending CN116431182A (en) 2023-04-18 2023-04-18 Upgrading method and device of portable emergency equipment

Country Status (1)

Country Link
CN (1) CN116431182A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106843942A (en) * 2016-12-31 2017-06-13 歌尔科技有限公司 The firmware upgrade method and Wearable of Wearable
CN112748944A (en) * 2020-12-24 2021-05-04 厦门厦华科技有限公司 Upgrading method and upgrading system of intelligent interactive electronic whiteboard
EP3848795A1 (en) * 2020-01-10 2021-07-14 Beijing Xiaomi Mobile Software Co., Ltd. Firmware upgrade method and device, and storage medium
CN114968294A (en) * 2021-02-26 2022-08-30 深圳怡化电脑科技有限公司 Firmware upgrading method and device for equipment, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106843942A (en) * 2016-12-31 2017-06-13 歌尔科技有限公司 The firmware upgrade method and Wearable of Wearable
EP3848795A1 (en) * 2020-01-10 2021-07-14 Beijing Xiaomi Mobile Software Co., Ltd. Firmware upgrade method and device, and storage medium
CN112748944A (en) * 2020-12-24 2021-05-04 厦门厦华科技有限公司 Upgrading method and upgrading system of intelligent interactive electronic whiteboard
CN114968294A (en) * 2021-02-26 2022-08-30 深圳怡化电脑科技有限公司 Firmware upgrading method and device for equipment, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US6259911B1 (en) Network operations center hardware and software design
US7441061B2 (en) Method and apparatus for inter-module communications of an optical network element
CN109976767B (en) Software burning method and device
WO2005114524A2 (en) Personalized remote patient monitoring systems and methods
US20070234136A1 (en) Method and apparatus for detecting the presence of errors in data transmitted between components in a data storage system using an I2C protocol
EP1866780A2 (en) Communication of information between a plurality of network elements
EP2548330B1 (en) Method of conducting safety-critical communications
US7734173B2 (en) Error detection and recovery of an optical network element
CN105743610A (en) Technologies for data integrity of multi-network packet operations
JP2015517267A (en) Bus system subscriber station and method for transmitting messages between bus system subscribers
CN115857983A (en) FPGA remote upgrading method with encryption verification function
CN114826819A (en) Information transmission method, device, equipment and storage medium
CN116431182A (en) Upgrading method and device of portable emergency equipment
CN115129249A (en) SAS link topology identification management method, system, terminal and storage medium
CN113810374B (en) Station equipment linkage method suitable for rail transit under multi-operation scene condition
US8549185B2 (en) Facilitating transport mode input/output operations between a channel subsystem and input/output devices
US11928019B2 (en) Serial management interface with improved reliability
US6826175B1 (en) Signaling link interface for processing signaling information in a telecommunications network
Cisco Product Overview
Cisco Product Overview
Cisco Product Overview
Cisco Product Overview
Cisco Product Overview
Cisco Product Overview
CN111722858A (en) Online upgrading method and terminal 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