CN111209020A - Equipment control method and device - Google Patents

Equipment control method and device Download PDF

Info

Publication number
CN111209020A
CN111209020A CN201911417549.XA CN201911417549A CN111209020A CN 111209020 A CN111209020 A CN 111209020A CN 201911417549 A CN201911417549 A CN 201911417549A CN 111209020 A CN111209020 A CN 111209020A
Authority
CN
China
Prior art keywords
sensor
preset
acceleration
updating
control chip
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.)
Granted
Application number
CN201911417549.XA
Other languages
Chinese (zh)
Other versions
CN111209020B (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, a function program is arranged in the control chip, and the method comprises the following steps: acquiring a first movement amount of the sealing equipment acquired by a sensor; and if the first motion amount is determined to be within the preset motion amount range, updating the functional program in the control chip. The method and the device are used for improving the flexibility of updating the functional programs in the control chip.

Description

Equipment control method and device
Technical Field
The present application relates to the field of device update technologies, and in particular, to a device control method and apparatus.
Background
Application software can be generally arranged in waterproof, dustproof and anti-disassembly closed equipment (the closed equipment does not comprise any control and key and cannot receive the operation of a user on the closed equipment through the control and key).
In practical use, if the application software set in the sealed equipment needs to be updated, the shell of the sealed equipment needs to be removed, and the external upgrading equipment and the sealed equipment are connected through the data line, so that the external upgrading equipment can upgrade the application software in the sealed equipment. In the above process, when the application software set in the sealed device is updated, the shell of the sealed device needs to be removed, so that the external package of the sealed device is damaged.
Disclosure of Invention
The application provides a device control method and device, which are used for improving the flexibility of updating a functional 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 in the sealing apparatus, the control chip is connected to the sensor, and a function program is disposed in the control chip, the method including:
acquiring a first movement amount of the sealing equipment acquired by a sensor;
and if the first motion amount is determined to be within the preset motion amount range, updating the functional program in the control chip.
In one possible design of the system, the system may be,
the sensor is an acceleration sensor, the first motion amount is a first acceleration, and the preset motion amount range is a preset acceleration range; or the like, or, alternatively,
the sensor is a speed sensor, the first motion amount is a first speed, and the preset motion amount range is a preset speed range; or the like, or, alternatively,
the sensor is a displacement sensor, the first motion amount is first displacement, and the motion amount range is a preset displacement range.
In another possible design, the sensor is an acceleration sensor, the first motion amount is a first acceleration, and the preset motion amount range is a preset acceleration range; if the first motion amount is determined to be within the preset motion amount range, updating the functional 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 acquired by the acceleration sensor within a first preset time after the current moment;
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 at least one second acceleration has a plurality of preset second accelerations within a preset acceleration range;
if yes, the functional program in the control chip is updated.
In another possible design, the sealing device is connected with an external updating device; updating the functional program in the control chip, comprising:
receiving updating information sent by external updating 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 identifier and an update program, and the functional program includes at least one program segment; according to the updating information, the functional program in the control chip is updated, and the method comprises the following steps:
determining a target program segment in at least one program segment according to the updating 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, which is applied to a sealing apparatus, wherein a control chip and a sensor are arranged in the sealing apparatus, the control chip is connected with the sensor, a function program is arranged in the control chip, and the apparatus includes: an acquisition module and an update module, wherein,
the acquisition module is used for acquiring a first motion amount 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 motion amount is determined to be within the preset motion amount range.
In one possible design of the system, the system may be,
the sensor is an acceleration sensor, the first motion amount is a first acceleration, and the preset motion amount range is a preset acceleration range; or the like, or, alternatively,
the sensor is a speed sensor, the first motion amount is a first speed, and the preset motion amount range is a preset speed range; or the like, or, alternatively,
the sensor is a displacement sensor, the first motion amount is first displacement, and the preset motion amount range is a preset displacement range.
In another possible design, the sensor is an acceleration sensor, the first amount of motion is a first acceleration, and the preset amount of motion range is a preset acceleration range;
the acquisition module is further used for acquiring at least one second acceleration of the sealing equipment acquired by the acceleration sensor within a first preset time after the current moment if the first acceleration is determined to be within a 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.
In another possible design, the update module is specifically configured to:
judging whether at least one second acceleration has a plurality of preset second accelerations within a preset acceleration range;
if yes, the functional program in the control chip is updated.
In another possible design, the sealing device is connected with an external updating device; the device also includes: a receiving module for receiving, wherein,
the receiving module is used for receiving the updating information sent by the external updating equipment;
and 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 identifier and an update program, and the functional program includes at least one program segment; the update module is specifically configured to:
determining a target program segment in the at least one program segment according to the updating identification;
and updating the target program segment according to the updating program.
In another possible design, the apparatus further includes: a sending module for sending, wherein,
the sending module is used for broadcasting an updating instruction to the external updating equipment before receiving the updating information sent by the external updating equipment, and the updating instruction indicates the external updating equipment to send the updating information.
In a third aspect, the present application provides an apparatus control device, comprising: a processor and a memory;
the memory stores computer-executable instructions;
the processor executes the computer-executable instructions stored by the memory, causing the processor to perform the device control method of any one of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the processor executes the computer-executable instructions, the device control method as above is implemented.
The application provides a device control method and a device, and the method comprises the following steps: acquiring a first movement amount of the sealing equipment acquired by a sensor; and if the first motion amount is determined to be within the preset motion amount range, updating the functional program in the control chip. In the method, the functional program in the control chip is updated when the first motion amount is determined to be within the preset motion amount range, so that the functional program in the control chip can be updated on the basis of not damaging the external package of the sealing equipment, and the flexibility of updating the functional program in the control chip is improved.
Drawings
In order to more clearly illustrate the technical solutions in the present application or the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
Fig. 1 is a schematic view of an application scenario of a device control method provided in the present application;
FIG. 2 is a flowchart illustrating a device control method according to the present application
Fig. 3 is a second flowchart illustrating an apparatus control method provided in the present application;
FIG. 4 is a first schematic structural diagram of an apparatus control device 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 of a device control apparatus provided in the present application;
fig. 7 is a schematic diagram of a hardware structure of the device control apparatus provided in the present application.
Detailed Description
To make the purpose, technical solutions and advantages of the present application clearer, 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 obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation 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 view of an application scenario of the device control method provided in the present application. As shown in fig. 1, includes: a sealing device 11 and an external refreshing device 12. The sealing device 11 is provided with a control chip 101 and a sensor 102, and the control chip 101 and the sensor 102 are connected.
Wherein, the sealing device 11 can be connected with the external updating device 12 through a wired network or a wireless network. Alternatively, the wired network may be coaxial cable, twisted pair, fiber optics, and the like. Optionally, the Wireless network may be a 2G network, a 3G network, a 4G network, a 5G network, a Wireless Fidelity (WIFI) network, or bluetooth.
Alternatively, the sealing device 11 is a waterproof, dustproof, and anti-detachment sealing device (for example, a mobile terminal disposed on a vehicle, an article, or the like for positioning and tracking the vehicle, the article, or the like), and may also be other devices that need to be updated and upgraded. The sealing device 101 does not include any control and/or key, and cannot receive the operation of the sealing device by the user through the control and/or key.
Specifically, the control chip 101 is provided with a function program. In practical applications, the functional programs in the control chip 101 usually need to be updated. When the functional program in the control chip 101 needs to be updated, the user can control the sealing device 11 to move. During the movement (e.g., free-fall movement) of the sealing device 11, the sensor 102 may acquire an amount of movement (e.g., acceleration, speed, displacement) of the sealing device 11, the control chip 101 may acquire the amount of movement acquired by the sensor 102, and when the control chip 101 determines that the amount of movement of the sealing device 11 belongs to a preset amount of movement range, the sealing device 11 may receive update information sent by the external updating device 12, and then update the function program in the control chip 101 according to the update information. In the above process, the updating of the functional program in the control chip 101 is controlled by the amount of movement of the sealing device 11, so that the problem that the external package of the sealing device is damaged due to the updating of the functional program in the control chip 101 by removing the shell of the sealing device in the prior art can be avoided, and the flexibility of updating the functional program in the control chip 101 in the sealing device 11 is improved.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 2 is a first flowchart of an apparatus control method provided in the present application. As shown in fig. 2, the apparatus control method includes:
s201: and acquiring a first movement amount of the sealing equipment acquired by the sensor.
Optionally, an execution main body of the device control method provided by the present application may be a control chip, or may also be a device control apparatus disposed 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 the description thereof is omitted.
Alternatively, the sensor may be an acceleration sensor, a velocity sensor, a displacement sensor.
Alternatively, the first amount of movement 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 capture the first speed of the sealing apparatus in real time.
For example, when the sensor is a displacement sensor (e.g., a GPS sensor), the displacement sensor may acquire a first displacement of the sealing device in real time.
S202: and if the first motion amount is determined to be within the preset motion amount range, updating the functional program in the control chip.
Optionally, a preset motion amount range is pre-stored in the control chip, and if it is determined that the first motion amount belongs to the preset motion amount range, the function program in the control chip is updated. Or, a preset acceleration threshold is stored in the control chip in advance, and if the first motion amount is greater than or equal to the preset motion amount threshold, the functional 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, the functional 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, updating the functional 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 belongs to the preset speed range, the functional 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, updating the functional program in the control chip.
For example, a preset displacement range or a preset displacement threshold is stored in the control chip 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, updating the functional program in the control chip.
The device control method provided by the application comprises the following steps: acquiring a first movement amount of the sealing equipment acquired by a sensor; and if the first motion amount is determined to be within the preset motion amount range, updating the functional program in the control chip. In the method, the functional program in the control chip is updated when the first motion amount is determined to be within the preset motion amount range, so that the functional program in the control chip can be updated on the basis of not damaging the external package of the sealing equipment, and the flexibility of updating the functional program in the control chip is improved.
On the basis of the above embodiment, referring to fig. 3, the following takes a sensor as an acceleration sensor, a first motion amount as a first acceleration, and a preset motion amount range as a preset acceleration range as an example, to further describe the apparatus control method provided by the present application in detail, specifically, please refer to the embodiment in fig. 3.
Fig. 3 is a flowchart illustrating a second method for controlling a plant. As shown in fig. 3, the device control method includes:
s301: the sealing equipment normally works, the acceleration sensor collects the first acceleration of the sealing equipment in real time, and the sealing equipment is internally provided with a functional program which comprises at least one program segment.
Specifically, after the sealing device leaves a factory, a sensor in the sealing device acquiesces to acquire a first acceleration of the sealing device in real time.
It should be noted that each program segment may provide a function to the sealing device. For example, the program segments are a temperature program segment for timing acquisition, a temperature program segment for timing uploading, a position program segment for timing acquisition and a position program segment for timing uploading.
For example, the timed acquisition temperature program segment is used for acquiring the temperature when the timed 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 timed moment is reached.
Further, the timing acquisition position program segment is used for acquiring the position when the timing moment arrives; and the timing uploading position program segment is used for uploading the acquired position to the service corresponding to the sealing equipment when the timing moment is reached.
S302: and judging whether the first acceleration is within a preset acceleration range.
If not, S301 is executed.
If yes, go to S303.
S303: and starting a timer, enabling the timing duration of the timer to be a first preset duration, and acquiring at least one second acceleration of the sealing equipment acquired by the sensor within the first preset duration after the current moment.
Optionally, a timer is set in the control chip, and after the first acceleration is determined to be within the preset acceleration range, the customizer is started, wherein the timing duration of the timer is a first preset duration after the current time. Wherein, 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 the sensor acquires at least one second displacement within a first preset time period.
S304: and judging whether a plurality of preset second accelerations exist in the at least one second acceleration within a preset acceleration range.
If not, S301 is executed.
If yes, S305 is performed.
Optionally, whether a preset number of second accelerations exist in the at least one second acceleration, and the preset number of second accelerations is larger than or equal to a preset acceleration threshold value, may also be adopted.
Alternatively, the preset number of times may be 1, 2, 3, etc. In practical application, the specific value of the preset times can be determined according to actual requirements.
Optionally, when the sensor is a speed sensor, it may be further determined whether a second speed exists in the at least one second speed within the 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 executed.
Optionally, when the sensor is a displacement sensor, it may be further 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 executed.
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 the external update device, wherein the update information comprises an update identifier and an update program.
Optionally, the update identifier may be an ID corresponding to the program segment, or may be other identifiers capable of distinguishing different program segments.
For example, the update identification for the first program segment may be A01 and the update identification for the second program segment may be B02.
S307: and determining a target program segment in at least one program segment according to the updating 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 method comprises the steps that the sealing equipment normally works, an acceleration sensor collects 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 duration of the timer to be a first preset duration, and acquiring at least one second acceleration of the sealing equipment acquired by the acceleration sensor within the first preset duration after the current moment; judging whether at least one second acceleration has a plurality of preset second accelerations within a preset acceleration range; if so; broadcasting an update instruction to the external update device, wherein the update instruction instructs the external update device 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 segment in at least one program segment according to the updating identification; and updating the target program segment according to the updating program. In the method, a target program segment is determined in at least one program segment according to the updating identification; and updating the target program segment according to the updating program, so that the accuracy of updating the functional program in the control chip can be improved.
Fig. 4 is a first structural schematic diagram of the device control apparatus provided in the present application. This equipment controlling means 10 is applied to sealing device, is provided with control chip and sensor in the sealing device, and control chip and sensor are connected, are provided with the function program in the control chip, and equipment controlling means 10 includes: an acquisition module 11 and an update module 12, wherein,
the acquisition module 11 is configured to acquire a first amount of motion of the sealing device acquired by the sensor;
the updating module 12 is configured to update the functional program in the control chip if it is determined that the first amount of motion is within the preset amount of motion.
The device control apparatus provided in the present application may implement the technical solutions shown in the above method embodiments, and the implementation principles and beneficial effects thereof are similar, and are not described herein again.
In one possible design of the system, the system may be,
the sensor is an acceleration sensor, the first motion amount is a first acceleration, and the preset motion amount range is a preset acceleration range; or the like, or, alternatively,
the sensor is a speed sensor, the first motion amount is a first speed, and the preset motion amount range is a preset speed range; or the like, or, alternatively,
the sensor is a displacement sensor, the first motion amount is first displacement, and the preset motion amount range is a preset displacement range.
In another possible design, the sensor is an acceleration sensor, the first amount of motion is a first acceleration, and the preset amount of motion range is a preset acceleration range;
the acquisition module is further used for acquiring at least one second acceleration of the sealing equipment acquired by the acceleration sensor within a first preset time after the current moment if the first acceleration is determined to be within a 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.
In another possible design, the update module is specifically configured to:
judging whether at least one second acceleration has a plurality of preset second accelerations within a preset acceleration range;
if yes, the functional program in the control chip is updated.
Fig. 5 is a schematic structural diagram of a device control apparatus provided in the present application. The appliance control apparatus 10 is applied to a sealing appliance connected to an external renewal appliance, and on the basis of fig. 4, as shown in fig. 5, the appliance control apparatus 10 includes: the reception module 13 is adapted to receive, among other things,
the receiving module 13 is configured to receive update information sent by an external update device;
the updating module 12 is configured to update the functional program in the control chip according to the update information.
The device control apparatus provided in the present application may implement the technical solutions shown in the above method embodiments, and the implementation principles and beneficial effects thereof are similar, and are not described herein again.
In another possible design, the update information includes an update identifier and an update program, and the functional program includes at least one program segment; the update module is specifically configured to:
determining a target program segment in the at least one program segment according to the updating identification;
and updating the target program segment according to the updating program.
Fig. 6 is a schematic structural diagram of a device control apparatus provided in the present application. In addition to fig. 5, as shown in fig. 6, the appliance control device 10 includes: a sending module 14 for sending, among other things,
the sending 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 implement the technical solutions shown in the above method embodiments, and the implementation principles and beneficial effects thereof are similar, and are not described herein again.
Fig. 7 is a schematic diagram of a hardware structure of the device control apparatus provided in the present application, and as shown in fig. 7, the device control apparatus 20 includes: the processor 21 and the memory 22 are connected,
the processor 21 and the memory 22 are connected by a bus 23.
In particular implementations, processor 21 executes computer-executable instructions stored by memory 22, causing processor 21 to perform the device control methods described above.
For a specific implementation process of the processor 21, reference may be made to the above method embodiments, which implement similar principles and technical effects, and this embodiment is not described herein again.
In the embodiment shown in fig. 7, it should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. 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, or in a combination of the hardware and software modules within the processor.
The memory may comprise high speed RAM memory and may also include non-volatile storage NVM, such as disk storage.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The application also provides a computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, and when the processor executes the computer-executable instructions, the device control method is realized.
The computer-readable storage medium 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 or optical disk. Readable storage media can be any available media 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. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the readable storage medium may also reside as discrete components in the apparatus.
The division of the unit is only a logical division, and other division ways are possible in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The 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 such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to 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), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. The equipment control method is applied to sealing equipment, a control chip and a sensor are arranged in the sealing equipment, the control chip is connected with the sensor, a functional program is arranged in the control chip, and the method comprises the following steps:
acquiring a first movement amount of the sealing equipment acquired by the sensor;
and if the first motion amount is determined to be within the preset motion amount range, updating the functional program in the control chip.
2. The method of claim 1,
the sensor is an acceleration sensor, the first motion amount is a first acceleration, and the preset motion amount range is a preset acceleration range; or the like, or, alternatively,
the sensor is a speed sensor, the first motion amount is a first speed, and the preset motion amount range is a preset speed range; or the like, or, alternatively,
the sensor is a displacement sensor, the first motion amount is a first displacement, and the preset motion amount range is a preset displacement range.
3. The method according to claim 1 or 2, wherein the sensor is an acceleration sensor, the first motion amount is a first acceleration, and the preset motion amount range is a preset acceleration range; if the first motion amount is determined to be within the preset motion amount range, updating the functional program in the control chip, and further comprising:
if the first acceleration is determined to be within a preset acceleration range, acquiring at least one second acceleration of the sealing equipment, acquired by the acceleration sensor, within a first preset time after the current moment;
and updating the functional program in the control chip according to the at least one second acceleration.
4. The method of claim 3, wherein said updating a functional program in said control chip based on said at least one second acceleration comprises:
judging whether a plurality of preset second accelerations exist in the at least one second acceleration within the preset acceleration range;
and if so, updating the functional program in the control chip.
5. The method of claim 4, wherein the sealing device is connected to an external updating device; the updating of the functional program in the control chip includes:
receiving the updating information sent by the external updating equipment;
and updating the functional program in the control chip according to the updating information.
6. The method of claim 5, wherein the update information includes an update identification and an update program, and the functional program includes at least one program segment; according to the update information, updating the functional program in the control chip, including:
determining a target program segment in the at least one program segment according to the updating identification;
and updating the target program segment according to the updating program.
7. The method according to claim 5, wherein before receiving the update information sent by the external update device, further comprising:
broadcasting an update instruction to the external update device, the update instruction instructing the external update device to send update information.
8. The device control device is applied to sealing equipment, a control chip and a sensor are arranged in the sealing equipment, the control chip is connected with the sensor, a functional program is arranged in the control chip, and the device comprises: an acquisition module and an update module, wherein,
the acquisition module is used for acquiring a first motion amount 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 motion amount is determined to be within a preset motion amount range.
9. The apparatus of claim 8,
the sensor is an acceleration sensor, the first motion amount is a first acceleration, and the preset motion amount range is a preset acceleration range; or the like, or, alternatively,
the sensor is a speed sensor, the first motion amount is a first speed, and the preset motion amount range is a preset speed range; or the like, or, alternatively,
the sensor is a displacement sensor, the first motion amount is a first displacement, and the preset motion amount range is a preset displacement range.
10. The apparatus according to claim 8 or 9, wherein 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 obtaining module is further configured to obtain at least one second acceleration, which is acquired by the acceleration sensor and is within a first preset time after the current time, of the sealing device if it is determined that the first acceleration is within the preset acceleration range;
the updating module is further configured to update the functional program in the control chip according to the at least one second acceleration.
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 true CN111209020A (en) 2020-05-29
CN111209020B 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)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050190070A1 (en) * 2001-03-07 2005-09-01 Telezygology Inc. Closure with concertina element and processing means
US20090293612A1 (en) * 2008-05-30 2009-12-03 Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd. Gravity sensor and electronic device using the same
US20130318516A1 (en) * 2011-04-29 2013-11-28 Edward D. Knapton Computer system firmware update

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050190070A1 (en) * 2001-03-07 2005-09-01 Telezygology Inc. Closure with concertina element and processing means
US20090293612A1 (en) * 2008-05-30 2009-12-03 Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd. Gravity sensor and electronic device using the same
US20130318516A1 (en) * 2011-04-29 2013-11-28 Edward D. Knapton Computer system firmware update

Also Published As

Publication number Publication date
CN111209020B (en) 2023-07-04

Similar Documents

Publication Publication Date Title
CN104410665B (en) A kind of method for down loading and equipment upgrading bag
CN110704202B (en) Multimedia recording data sharing method and terminal equipment
CN105988805B (en) Application program management method and mobile terminal
CN105988841A (en) Update method of application program, and mobile terminal
CN103634668A (en) System upgrading method and device in smart television
CN109246304B (en) Mobile terminal, calibration method and related product
CN108170211B (en) Camera power-on driving method and electronic terminal
CN111209020A (en) Equipment control method and device
CN103716695A (en) System software upgrading method and smart television
CN112486733A (en) System restoring method, device, terminal and storage medium
KR20210088252A (en) Server for reconfiguring tariff of terminal and operating method thereof
CN111464688B (en) Working mode switching method and device
CN110701737B (en) Air conditioner temperature compensation setting method, computer device and computer readable storage medium
CN113721961A (en) Equipment upgrading method and device, storage medium and electronic equipment
CN109240790B (en) Multi-window management method and system and android terminal
CN113430773B (en) Washing machine control method and device
CN106775881B (en) System upgrading method and device
CN112464095B (en) Message pushing method, device, terminal and storage medium
CN110795722A (en) Deployment method and device of security authentication model and electronic equipment
CN104683594A (en) SIM card-oriented method for loading mobile phone operating system
CN110489013B (en) Touch detection method, touch detection device and display panel
CN108829412B (en) Application updating method and device
CN108897697B (en) Method and device for configuring mask ROM data, chip and electronic equipment
CN115562466B (en) Unmanned aerial vehicle hardware reset control method and device and electronic equipment
CN110770724A (en) Method and device for determining brushing amount resources

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