CN111209020B - Equipment control method and device - Google Patents

Equipment control method and device Download PDF

Info

Publication number
CN111209020B
CN111209020B CN201911417549.XA CN201911417549A CN111209020B CN 111209020 B CN111209020 B CN 111209020B CN 201911417549 A CN201911417549 A CN 201911417549A CN 111209020 B CN111209020 B CN 111209020B
Authority
CN
China
Prior art keywords
acceleration
sensor
preset
update
range
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911417549.XA
Other languages
Chinese (zh)
Other versions
CN111209020A (en
Inventor
王鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Queclink Wireless Solutions Co Ltd
Original Assignee
Queclink Wireless Solutions 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 Queclink Wireless Solutions Co Ltd filed Critical Queclink Wireless Solutions Co Ltd
Priority to CN201911417549.XA priority Critical patent/CN111209020B/en
Publication of CN111209020A publication Critical patent/CN111209020A/en
Application granted granted Critical
Publication of CN111209020B publication Critical patent/CN111209020B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • 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
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

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

Abstract

The application provides a device control method and a device, which are applied to sealing equipment, wherein a control chip and a sensor are arranged in the sealing equipment, the control chip is connected with the sensor, and a functional program is arranged in the control chip, and the method comprises the following steps: acquiring a first motion quantity of the sealing equipment acquired by a sensor; if the first movement amount is determined to be within the preset movement amount range, updating the function program in the control chip. For improving the flexibility of updating the functional programs in the control chip.

Description

Equipment control method and device
Technical Field
The present disclosure relates to the field of device updating technologies, and in particular, to a device control method and apparatus.
Background
Application software can be generally arranged in the waterproof, dustproof and anti-disassembly airtight equipment (the airtight equipment does not comprise any control and buttons, and the operation of a user on the airtight equipment cannot be received through the control and buttons).
In practical use, if the application software set in the closed equipment needs to be updated, the shell of the closed equipment needs to be removed, and the external upgrading equipment and the closed equipment are connected through the data line, so that the external upgrading equipment upgrades the application software in the closed equipment. In the above process, when the application software set in the sealed equipment is updated, the shell of the sealed equipment needs to be removed, so that the external package of the sealed equipment is damaged.
Disclosure of Invention
The application provides a device control method and device, which are used for improving the flexibility of updating a function program in a control chip.
In a first aspect, the present application provides an apparatus control method applied to a sealing apparatus, in which a control chip and a sensor are disposed, the control chip is connected to the sensor, and a functional program is disposed in the control chip, the method includes:
acquiring a first motion quantity of the sealing equipment acquired by a sensor;
if the first movement amount is determined to be within the preset movement amount range, updating the function program in the control chip.
In one possible design of the device,
the sensor is an acceleration sensor, the first motion quantity is first acceleration, and the preset motion quantity range is a preset acceleration range; or alternatively, the first and second heat exchangers may be,
the sensor is a speed sensor, the first movement amount is a first speed, and the preset movement amount range is a preset speed range; or alternatively, the first and second heat exchangers may be,
the sensor is a displacement sensor, the first movement amount is first displacement, and the movement amount range is a preset displacement range.
In another possible design, the sensor is an acceleration sensor, the first movement amount is a first acceleration, and the preset movement amount range is a preset acceleration range; if the first motion amount is determined to be within the preset motion amount range, updating the function program in the control chip, and further comprising:
if the first acceleration is determined to be within the preset acceleration range, acquiring at least one second acceleration of the sealing equipment in a first preset time period after the current moment, wherein the second acceleration is acquired by an acceleration sensor;
and updating the functional program in the control chip according to the at least one second acceleration.
In another possible design, updating the functional program in the control chip according to the at least one second acceleration includes:
judging whether the second acceleration of the preset times exists in at least one second acceleration or not within a preset acceleration range;
if yes, updating the functional program in the control chip.
In another possible design, the sealing device is connected with an external updating device; updating a functional program in a control chip, comprising:
receiving update information sent by external update equipment;
and updating the functional program in the control chip according to the updating information.
In another possible design, the update information includes an update identification and an update program, the functional program including at least one program segment; according to the update information, updating the functional program in the control chip, including:
determining a target program section in at least one program section according to the update identification;
and updating the target program segment according to the updating program.
In another possible design, before receiving the update information sent by the external update device, the method further includes:
and broadcasting an update instruction to the external update device, wherein the update instruction instructs the external update device to send update information.
In a second aspect, the present application provides an apparatus control device, applied to a sealing apparatus, in which a control chip and a sensor are provided, the control chip is connected to the sensor, and a functional program is provided in the control chip, the device comprising: the device comprises an acquisition module and an updating module, wherein,
the acquisition module is used for acquiring a first motion quantity of the sealing equipment acquired by the sensor;
the updating module is used for updating the functional program in the control chip if the first movement amount is determined to be within the range of the preset movement amount.
In one possible design of the device,
the sensor is an acceleration sensor, the first motion quantity is first acceleration, and the preset motion quantity range is a preset acceleration range; or alternatively, the first and second heat exchangers may be,
the sensor is a speed sensor, the first movement amount is a first speed, and the preset movement amount range is a preset speed range; or alternatively, the first and second heat exchangers may be,
the sensor is a displacement sensor, the first movement amount is first displacement, and the preset movement amount range is a preset displacement range.
In another possible design, the sensor is an acceleration sensor, the first amount of movement is a first acceleration, and the preset amount of movement is a preset acceleration range;
the acquisition module is further used for acquiring at least one second acceleration of the sealing equipment in a first preset time period after the current moment, wherein the second acceleration is acquired by the acceleration sensor if the first acceleration is determined to be in a preset acceleration range;
the updating module is also used for updating the functional program in the control chip according to at least one second acceleration.
In another possible design, the update module is specifically configured to:
judging whether the second acceleration of the preset times exists in at least one second acceleration or not within a preset acceleration range;
if yes, updating the functional program in the control chip.
In another possible design, the sealing device is connected with an external updating device; the apparatus further comprises: a receiving module, wherein,
the receiving module is used for receiving the update information sent by the external update equipment;
the updating module is used for updating the functional program in the control chip according to the updating information.
In another possible design, the update information includes an update identification and an update program, and the function program includes at least one program segment; the updating module is specifically configured to:
determining a target program segment in the at least one program segment according to the update identification;
and updating the target program segment according to the updating program.
In another possible design, the apparatus further comprises: a transmitting module, wherein,
the sending module is used for broadcasting an update instruction to the external update equipment before receiving the update information sent by the external update equipment, and the update instruction indicates the external update equipment to send the update information.
In a third aspect, the present application provides an apparatus control device, including: a processor and a memory;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory, causing the processor to perform the device control method according to any one of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium having stored therein computer-executable instructions that, when executed by a processor, implement the apparatus control method as above.
The application provides a device control method and a device, wherein the method comprises the following steps: acquiring a first motion quantity of the sealing equipment acquired by a sensor; if the first movement amount is determined to be within the preset movement amount range, updating the function program in the control chip. In the method, when the first movement amount is determined to be within the preset movement amount range, the function program in the control chip is updated, and the function program in the control chip can be updated on the basis of not damaging the external package of the closed equipment, so that the flexibility of updating the function program in the control chip is improved.
Drawings
For a clearer description of the technical solutions of the present application or of the prior art, the drawings that are used in the description of the embodiments or of the prior art will be briefly described, it being obvious that the drawings in the description below are some embodiments of the invention, and that other drawings can be obtained from them without inventive effort for a person skilled in the art.
Fig. 1 is a schematic application scenario diagram of an apparatus control method provided in the present application;
fig. 2 is a schematic flow chart of a device control method provided in the present application
FIG. 3 is a second schematic flow chart of the device control method provided in the present application;
fig. 4 is a schematic structural diagram of the device control apparatus provided in the present application;
fig. 5 is a schematic structural diagram of a device control apparatus provided in the present application;
fig. 6 is a schematic structural diagram III of the device control apparatus provided in the present application;
fig. 7 is a schematic hardware structure of the device control apparatus provided in the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the present application more apparent, the technical solutions in the present application will be clearly and completely described below with reference to the drawings in the present application, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented, for example, in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations 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.
Fig. 1 is a schematic application scenario diagram of an apparatus control method provided in the present application. As shown in fig. 1, includes: a sealing device 11 and an external updating device 12. Wherein, the sealing device 11 is provided with a control chip 101 and a sensor 102, and the control chip 101 is connected with the sensor 102.
Wherein the sealing device 11 may be connected to the external update device 12 via a wired network or a wireless network. Alternatively, the wired network may be coaxial cable, twisted pair, fiber optic, and the like. Alternatively, the wireless network may be a 2G network, a 3G network, a 4G network, a 5G network, a wireless fidelity (Wireless Fidelity, abbreviated WIFI) network, or bluetooth, etc.
Alternatively, the sealing device 11 is a waterproof, dustproof, and anti-disassembly sealing device (for example, a mobile terminal disposed on a vehicle, an article, or the like and used for positioning and tracking the vehicle, the article, or the like), and may be other devices that need updating and upgrading. The sealing device 101 does not include any controls and/or buttons, and cannot receive the operation of the sealing device by the user through the controls and/or buttons.
Specifically, a functional program is provided in the control chip 101. In practical applications, it is generally necessary to update the functional programs in the control chip 101. When it is necessary to update the function program in the control chip 101, the user can control the movement of the sealing device 11. During the movement (e.g., free falling movement) of the sealing device 11, the sensor 102 may acquire the movement amount (e.g., acceleration, speed, displacement) of the sealing device 11, the control chip 101 may acquire the movement amount acquired by the sensor 102, and when the control chip 101 determines that the movement amount of the sealing device 11 belongs to the preset movement amount range, the sealing device 11 may receive update information sent by the external update device 12, and update the functional program in the control chip 101 according to the update information. In the above process, the update of the function program in the control chip 101 is controlled by the movement amount of the sealing device 11, so that the problems of the prior art that the update of the function program in the control chip 101 by removing the shell of the sealing device and the damage to the external package of the sealing device are avoided, and the flexibility of updating the function program in the control chip 101 in the sealing device 11 is improved.
The technical scheme of the invention is described in detail below by specific examples. The following embodiments may be combined with each other, and some embodiments may not be repeated for the same or similar concepts or processes.
Fig. 2 is a schematic flow chart of a device control method provided in the present application. As shown in fig. 2, the device control method includes:
s201: the first movement amount of the sealing device acquired by the sensor is acquired.
Alternatively, the execution body of the device control method provided in the application may be a control chip, or may be a device control apparatus provided in the control chip, where the device control apparatus may be implemented by a combination of software and/or hardware.
It should be noted that, the connection relationship between the control chip and the sensor is shown in fig. 1, and will not be described here again.
Alternatively, the sensor may be an acceleration sensor, a speed sensor, a displacement sensor.
Alternatively, the first movement amount may be a first acceleration, a first velocity, a first displacement.
For example, when the sensor is an acceleration sensor, the acceleration sensor may acquire the first acceleration of the sealing device in real time.
For example, where the sensor is a speed sensor, the speed sensor may acquire the first speed of the sealing device in real time.
For example, where the sensor is a displacement sensor (e.g., a GPS sensor), the displacement sensor may acquire the first displacement of the sealing device in real time.
S202: if the first movement amount is determined to be within the preset movement amount range, updating the function program in the control chip.
Optionally, the control chip stores a preset motion range in advance, and if it is determined that the first motion belongs to the preset motion range, the function program in the control chip is updated. Or, the control chip stores a preset acceleration threshold value in advance, and if the first motion quantity is greater than or equal to the preset motion quantity threshold value, the function program in the control chip is updated.
For example, a preset acceleration range or a preset acceleration threshold is stored in the control chip in advance, and when the sensor is an acceleration sensor, if the first acceleration of the sealing device acquired by the acceleration sensor belongs to the preset acceleration range, a function program in the control chip is updated. And/or if the first acceleration of the sealing equipment acquired by the acceleration sensor is greater than or equal to a preset acceleration threshold value, updating a function program in the control chip.
For example, a preset speed range or a preset speed threshold is stored in the control chip in advance, and when the sensor is a speed sensor, if the first speed of the sealing device acquired by the speed sensor is within the preset speed range, a function program in the control chip is updated. And/or if the first speed of the sealing equipment acquired by the speed sensor is greater than or equal to a preset speed threshold value, updating a function program in the control chip.
For example, the control chip stores a preset displacement range or a preset displacement threshold in advance, and when the sensor is a displacement sensor, if the first displacement of the sealing device acquired by the displacement sensor belongs to the preset displacement range, the functional program in the control chip is updated. And/or if the first displacement of the sealing equipment acquired by the displacement sensor is greater than or equal to a preset displacement threshold value, updating a functional program in the control chip.
The equipment control method provided by the application comprises the following steps: acquiring a first motion quantity of the sealing equipment acquired by a sensor; if the first movement amount is determined to be within the preset movement amount range, updating the function program in the control chip. In the method, when the first movement amount is determined to be within the preset movement amount range, the function program in the control chip is updated, and the function program in the control chip can be updated on the basis of not damaging the external package of the closed equipment, so that the flexibility of updating the function program in the control chip is improved.
On the basis of the above embodiment, referring to fig. 3, a further detailed description of the device control method provided in the present application will be given with reference to the embodiment of fig. 3, where the sensor is taken as an acceleration sensor, the first movement amount is a first acceleration, and the preset movement amount range is a preset acceleration range.
Fig. 3 is a second flow chart of the device control method provided in the present application. As shown in fig. 3, the device control method includes:
s301: the sealing equipment works normally, the acceleration sensor acquires first acceleration of the sealing equipment in real time, and a functional program is arranged in the sealing equipment and comprises at least one program section.
Specifically, after the sealing device leaves the factory, the sensor in the sealing device defaults to collect the first acceleration of the sealing device in real time.
It should be noted that each program segment may enable the sealing device to have a single function. For example, the program segments are a timing acquisition temperature program segment, a timing uploading temperature program segment, a timing acquisition position program segment and a timing uploading position program segment.
For example, the timing acquisition temperature program segment is used for acquiring temperature when the timing moment arrives; and the timed uploading temperature program section is used for uploading the acquired temperature to the service corresponding to the sealing equipment when the timing moment arrives.
Further, the timing acquisition position program section is used for acquiring a position when the timing moment arrives; and the timed uploading position program section is used for uploading the acquired position to the service corresponding to the sealing equipment when the timing moment arrives.
S302: judging whether the first acceleration is within a preset acceleration range.
If not, S301 is performed.
If yes, S303 is executed.
S303: starting a timer, enabling the timing time length of the timer to be a first preset time length, and acquiring at least one second acceleration of the sealing equipment in the first preset time length after the current time acquired by the sensor.
Optionally, a timer is set in the control chip, and after the first acceleration is determined to be within the preset acceleration range, the customization is started, wherein the timing duration of the timer is a first preset duration after the current moment. The current time is the starting time of the timer.
For example, when the sensor is a speed sensor, the speed sensor acquires at least one second speed within a first preset time period.
For example, when the sensor is a displacement sensor, the displacement plus sensor acquires at least one second displacement within a first preset time period.
S304: judging whether the second acceleration of the preset times exists in the at least one second acceleration or not within a preset acceleration range.
If not, S301 is performed.
If yes, S305 is executed.
Alternatively, whether the preset number of second accelerations is greater than or equal to the preset acceleration threshold value may also be included in the at least one second acceleration.
Alternatively, the preset number of times may be 1, 2, 3, or the like. In practical application, the specific value of the preset times can be determined according to the practical requirement.
Optionally, when the sensor is a speed sensor, it may also be determined whether a second speed exists in the at least one second speed within a preset speed range, or whether the second speed is greater than or equal to a preset speed threshold, and if not, S301 is executed; if not, S305 is performed.
Optionally, when the sensor is a displacement sensor, it may also be determined whether a second displacement exists in the at least one second displacement within a preset displacement range, or whether the second displacement is greater than or equal to a preset displacement threshold, and if not, S301 is executed; if not, S305 is performed.
S305: and broadcasting an update instruction to the external update device, wherein the update instruction instructs the external update device to send update information.
S306: and receiving update information sent by external update equipment, wherein the update information comprises an update identifier and an update program.
Alternatively, the update identifier may be an ID corresponding to the program segment, or may be another identifier capable of distinguishing different program segments.
For example, the update identification of the first program segment may be a01 and the update identification of the second program segment may be B02.
S307: and determining the target program section in the at least one program section according to the update identification.
For example, if the received update is identified as A01, the first program segment may be determined to be the target program segment.
S308: and updating the target program segment according to the updating program.
The device control method provided by the embodiment of the application comprises the following steps: the sealing equipment works normally, the acceleration sensor acquires first acceleration of the sealing equipment in real time, and a functional program is arranged in the sealing equipment and comprises at least one program section; judging whether the first acceleration is within a preset acceleration range, if so, starting a timer to enable the timing time length of the timer to be the first preset time length, and acquiring at least one second acceleration of the sealing equipment in the first preset time length after the current time acquired by the acceleration sensor; judging whether the second acceleration of the preset times exists in at least one second acceleration or not within a preset acceleration range; if yes; broadcasting an update instruction to external update equipment, wherein the update instruction indicates the external update equipment to send update information; receiving update information sent by external update equipment, wherein the update information comprises an update identifier and an update program; determining a target program section in at least one program section according to the update identification; and updating the target program segment according to the updating program. In the method, determining a target program segment in at least one program segment according to the update identification; according to the update program, the target program segment is updated, so that the accuracy of updating the functional program in the control chip can be improved.
Fig. 4 is a schematic structural diagram of the device control apparatus provided in the present application. The device control apparatus 10 is applied to a sealing device, a control chip and a sensor are provided in the sealing device, the control chip is connected with the sensor, a function program is provided in the control chip, and the device control apparatus 10 includes: an acquisition module 11 and an update module 12, wherein,
the acquisition module 11 is used for acquiring a first motion quantity of the sealing equipment acquired by the sensor;
the updating module 12 is configured to update the function program in the control chip if the first motion amount is determined to be within the preset motion amount range.
The device control apparatus provided in the present application may execute the technical solution shown in the foregoing method embodiment, and its implementation principle and beneficial effects are similar, and will not be described herein again.
In one possible design of the device,
the sensor is an acceleration sensor, the first motion quantity is first acceleration, and the preset motion quantity range is a preset acceleration range; or alternatively, the first and second heat exchangers may be,
the sensor is a speed sensor, the first movement amount is a first speed, and the preset movement amount range is a preset speed range; or alternatively, the first and second heat exchangers may be,
the sensor is a displacement sensor, the first movement amount is first displacement, and the preset movement amount range is a preset displacement range.
In another possible design, the sensor is an acceleration sensor, the first amount of movement is a first acceleration, and the preset amount of movement is a preset acceleration range;
the acquisition module is further used for acquiring at least one second acceleration of the sealing equipment in a first preset time period after the current moment, wherein the second acceleration is acquired by the acceleration sensor if the first acceleration is determined to be in a preset acceleration range;
the updating module is also used for updating the functional program in the control chip according to at least one second acceleration.
In another possible design, the update module is specifically configured to:
judging whether the second acceleration of the preset times exists in at least one second acceleration or not within a preset acceleration range;
if yes, updating the functional program in the control chip.
Fig. 5 is a schematic structural diagram of a device control apparatus provided in the present application. The device control apparatus 10 is applied to a sealing device connected to an external update device, and as shown in fig. 5, the device control apparatus 10 includes: a receiving module 13, wherein,
the receiving module 13 is configured to receive update information sent by an external update device;
the updating module 12 is used for updating the functional program in the control chip according to the updating information.
The device control apparatus provided in the present application may execute the technical solution shown in the foregoing method embodiment, and its implementation principle and beneficial effects are similar, and will not be described herein again.
In another possible design, the update information includes an update identification and an update program, and the function program includes at least one program segment; the updating module is specifically configured to:
determining a target program segment in the at least one program segment according to the update identification;
and updating the target program segment according to the updating program.
Fig. 6 is a schematic structural diagram of the device control apparatus provided in the present application. On the basis of fig. 5, as shown in fig. 6, the device control apparatus 10 includes: the transmitting module 14, wherein,
the transmitting module 14 is configured to broadcast an update instruction to the external update device before receiving the update information sent by the external update device, where the update instruction instructs the external update device to send the update information.
The device control apparatus provided in the present application may execute the technical solution shown in the foregoing method embodiment, and its implementation principle and beneficial effects are similar, and will not be described herein again.
Fig. 7 is a schematic hardware structure of the device control apparatus provided in the present application, as shown in fig. 7, the device control apparatus 20 includes: the processor 21 and the memory 22 are arranged,
the processor 21 and the memory 22 are connected by a bus 23.
In a specific implementation, the processor 21 executes computer-executable instructions stored in the memory 22, so that the processor 21 executes the device control method as described above.
The specific implementation process of the processor 21 can be referred to the above method embodiment, and its implementation principle and technical effects are similar, and this embodiment will not be described herein again.
In the embodiment shown in fig. 7, it should be understood that the processor may be a central processing unit (english: central Processing Unit, abbreviated as CPU), or may be other general purpose processors, digital signal processors (english: digital Signal Processor, abbreviated as DSP), application specific integrated circuits (english: application Specific Integrated Circuit, abbreviated as ASIC), or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in a processor for execution.
The memory may comprise high speed RAM memory or may also comprise non-volatile storage NVM, such as disk memory.
The bus may be an industry standard architecture (Industry Standard Architecture, ISA) bus, an external device interconnect (Peripheral Component, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, the buses in the drawings of the present application are not limited to only one bus or one type of bus.
The present application also provides a computer-readable storage medium in which computer-executable instructions are stored, which when executed by a processor, implement the apparatus control method as above.
The computer readable storage medium described above may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk. A readable storage medium can be any available medium that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. In the alternative, the readable storage medium may be integral to the processor. The processor and the readable storage medium may reside in an application specific integrated circuit (Application Specific Integrated Circuits, ASIC for short). The processor and the readable storage medium may reside as discrete components in a device.
The division of units is merely a logical function division, and there may be another division manner in actual implementation, 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 not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
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 over 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 functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method of the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a computer readable storage medium. The program, when executed, performs steps including the method embodiments described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: 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 or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.

Claims (5)

1. A device control method, characterized in that it is applied to a sealing device, in which a control chip and a sensor are provided, the control chip is connected with the sensor, the sealing device is connected with an external update device, and in which a functional program is provided, the method comprising:
acquiring a first motion quantity of the sealing equipment acquired by the sensor; the sensor is an acceleration sensor, the first movement amount is a first acceleration, and the preset movement amount range is a preset acceleration range;
if the first acceleration is determined to be within a preset acceleration range, acquiring at least one second acceleration of the sealing equipment in a first preset time period after the current moment, wherein the second acceleration is acquired by the acceleration sensor;
judging whether a preset number of second accelerations exist in the at least one second acceleration or not within the preset acceleration range;
if yes, receiving update information sent by the external update equipment; the update information comprises an update identifier and an update program;
determining a target program segment in at least one program segment according to the update identification;
and updating the target program segment according to the updating program.
2. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the sensor is an acceleration sensor, the first movement amount is a first acceleration, and the preset movement amount range is a preset acceleration range; or alternatively, the first and second heat exchangers may be,
the sensor is a speed sensor, the first movement amount is a first speed, and the preset movement amount range is a preset speed range; or alternatively, the first and second heat exchangers may be,
the sensor is a displacement sensor, the first movement amount is first displacement, and the preset movement amount range is a preset displacement range.
3. The method of claim 1, wherein prior to receiving the update information sent by the external update device, further comprising:
and broadcasting an update instruction to the external update device, wherein the update instruction instructs the external update device to send update information.
4. An apparatus control device, characterized in that it is applied to sealing equipment, be provided with control chip and sensor in the sealing equipment, control chip with the sensor is connected, sealing equipment is connected with outside update device, be provided with functional program in the control chip, the apparatus includes: the device comprises an acquisition module and an updating module, wherein,
the acquisition module is used for acquiring a first motion quantity of the sealing equipment acquired by the sensor; the sensor is an acceleration sensor, the first movement amount is a first acceleration, and the preset movement amount range is a preset acceleration range;
the updating module is used for updating the functional program in the control chip if the first movement amount is determined to be within the range of the preset movement amount;
the acquisition module is further used for acquiring at least one second acceleration of the sealing equipment in a first preset time period after the current moment, acquired by the acceleration sensor, if the first acceleration is determined to be in the preset acceleration range;
the updating module is further used for updating the functional program in the control chip according to the at least one second acceleration;
the updating module is specifically configured to: judging whether the second acceleration of the preset times exists in at least one second acceleration or not within a preset acceleration range;
if yes, updating a functional program in the control chip;
the receiving module is used for receiving the update information sent by the external update equipment;
the updating module is used for updating the functional program in the control chip according to the updating information;
the update information comprises an update identifier and an update program; the updating module is specifically configured to: determining a target program segment in at least one program segment according to the update identification; and updating the target program segment according to the updating program.
5. The apparatus of claim 4, wherein the device comprises a plurality of sensors,
the sensor is an acceleration sensor, the first movement amount is a first acceleration, and the preset movement amount range is a preset acceleration range; or alternatively, the first and second heat exchangers may be,
the sensor is a speed sensor, the first movement amount is a first speed, and the preset movement amount range is a preset speed range; or alternatively, the first and second heat exchangers may be,
the sensor is a displacement sensor, the first movement amount is first displacement, and the preset movement amount range is a preset displacement range.
CN201911417549.XA 2019-12-31 2019-12-31 Equipment control method and device Active CN111209020B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911417549.XA CN111209020B (en) 2019-12-31 2019-12-31 Equipment control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911417549.XA CN111209020B (en) 2019-12-31 2019-12-31 Equipment control method and device

Publications (2)

Publication Number Publication Date
CN111209020A CN111209020A (en) 2020-05-29
CN111209020B true CN111209020B (en) 2023-07-04

Family

ID=70789890

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911417549.XA Active CN111209020B (en) 2019-12-31 2019-12-31 Equipment control method and device

Country Status (1)

Country Link
CN (1) CN111209020B (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2002234439B8 (en) * 2001-03-07 2008-09-11 Telezygology Inc. A closure with concertina element and processing means
CN101592536B (en) * 2008-05-30 2012-09-26 鸿富锦精密工业(深圳)有限公司 Gravity sensor and portable electronic equipment applying same
EP2702479A4 (en) * 2011-04-29 2014-10-29 Hewlett Packard Development Co Computer system firmware update

Also Published As

Publication number Publication date
CN111209020A (en) 2020-05-29

Similar Documents

Publication Publication Date Title
JP7206371B2 (en) MAP DATA UPDATE METHOD, MAP DATA UPDATE DEVICE, MAP DATA UPDATE SYSTEM AND COMPUTER-READABLE STORAGE MEDIUM
US10762033B2 (en) Method and apparatus for updating server firmware in server, and server
CN106453730B (en) A kind of smart card and terminal device
US10846124B2 (en) Communication method, apparatus and system for virtual machine and host machine
WO2014014618A2 (en) Concurrent data streaming using various parameters from the same sensor
CN110720096B (en) Multi-sensor state estimation method and device and terminal equipment
CN105988841A (en) Update method of application program, and mobile terminal
CN111209020B (en) Equipment control method and device
CN103634668A (en) System upgrading method and device in smart television
CN109246304B (en) Mobile terminal, calibration method and related product
CN114419536A (en) Alarm method, device, equipment and computer readable storage medium
CN113542225A (en) Data compression method and device, terminal equipment and storage medium
CN114760276B (en) Method and device for downloading data and secure element
CN114793227B (en) Vehicle-mounted software downloading method, electronic equipment and computer readable storage medium
CN111464688B (en) Working mode switching method and device
CN115629875A (en) Memory page processing method and device and electronic equipment
CN113692003A (en) Mode switching method and device of Wi-Fi module
CN111829550B (en) Motion distance determining method, device and equipment
CN110753907B (en) Process control of sensor system
CN104350476A (en) A method and a device for adjusting a version checking period
US20170131946A1 (en) Method and device for formatting storage of mobile terminal
CN107885515A (en) A kind of firmware upgrade method and device
CN112328288A (en) Method, system, equipment and storage medium for updating server component
CN111159244A (en) Data query method and device
CN110688138A (en) Multi-split program upgrading method and device, multi-split system equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant