Disclosure of Invention
The problem of among the prior art for solve, if the biggest live time that all adopts the wax motor in order to open the door in the prior art promptly for solving, can cause the waste of time, open the door inefficiency to live time overlength also can influence the life of wax motor's problem.
In a first aspect, the present invention provides a wax motor control method, wherein the wax motor is connected to a door opening device, the door opening device includes a spring for pushing a door structure, and the wax motor control method includes:
acquiring type information of a door body structure;
inputting the type information into a wax motor driving model to obtain a stroke parameter corresponding to the door body structure type; the wax motor driving model is obtained by training according to pressure signals of springs corresponding to different types of door body structures and stroke parameters of the wax motor;
and starting the wax motor according to the stroke parameters so that the wax motor drives the door body to be opened.
In a preferred embodiment of the wax motor control method, before inputting the type information into a wax motor drive model to obtain a stroke parameter corresponding to the door body structure type, the method further includes:
acquiring a sample set to be trained; the sample set comprises at least one type of gate structure, and each type comprises at least one gate structure;
aiming at each door body structure in the sample set, acquiring the type information of the door body structure, a pressure signal of a spring corresponding to the door body structure and a stroke parameter of a wax motor; and training a wax motor driving model to be trained according to the type information of the door body structure, the pressure signal and the stroke parameter to obtain the wax motor driving model.
In a preferred technical solution of the wax motor control method, the spring is provided with a pressure sensor, and acquiring a pressure signal of the spring corresponding to the door body structure includes:
and acquiring a pressure signal of the spring in the door opening process of the door body structure through the pressure sensor.
In a preferred technical solution of the wax motor control method, the wax motor is provided with a distance sensor, and acquiring a stroke parameter of the wax motor corresponding to the door body structure includes:
and acquiring the stroke parameter of the wax motor when the pressure signal jumps through the distance sensor.
In a preferred embodiment of the wax motor control method, before the obtaining, by the distance sensor, a stroke parameter of the wax motor when the pressure signal jumps, the method further includes:
determining a pressure curve according to the pressure signal, and acquiring the slope of the pressure curve;
and judging the moment when the change value of the slope is greater than a preset threshold value as the moment when the pressure signal jumps.
In a preferred embodiment of the wax motor control method, the starting a wax motor according to the stroke parameter to open a door body driven by the wax motor includes:
determining the power-on time of the wax motor according to the stroke parameter;
and inputting the electrifying time into a wax motor so that the wax motor drives a door body to be opened according to the electrifying time.
In a preferred embodiment of the wax motor control method, the determining the energization time of the wax motor based on the stroke parameter includes:
acquiring actual power-on time required by the wax motor to complete the stroke parameter according to the stroke parameter;
and summing the actual power-on time and the reserved power-on time to obtain the power-on time of the wax motor.
In a second aspect, the present invention provides a wax motor comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executes computer-executable instructions stored by the memory to cause the at least one processor to perform the method as set forth in the first aspect above and in various possible designs of the first aspect.
In a third aspect, the present invention provides an automatic door comprising: a door body structure, a door opening device and a wax motor as described above in relation to the second aspect;
the wax motor is connected with the door body structure through the door opening device and used for driving the door opening device to enable the door opening device to open the door body structure.
In a fourth aspect, the present invention provides a computer-readable storage medium having stored thereon computer-executable instructions that, when executed by a processor, perform the method as set forth in the first aspect above and in various possible designs of the first aspect.
As can be understood by those skilled in the art, in the wax motor control method, the wax motor and the automatic door provided in this embodiment, the method obtains the type information of the door body structure, inputs the type information into the wax motor driving model to obtain the stroke parameter corresponding to the door body structure type, the wax motor driving model is obtained by training according to the pressure signal of the spring corresponding to the door body structures of different types and the stroke parameter of the wax motor, starts the wax motor according to the stroke parameter to open the wax motor driving door body, the wax motor driving model obtained by training can identify the door body structures of different types and obtain the corresponding stroke parameter, thereby realizing self-adaptation to the door body structures of different types, and enabling the wax motor to heat wax and drive the door body structure with reasonable power-on time, and for each time, adopting the maximum power-on time, the service life of the wax motor is prolonged, the door body structure can be opened in time, and the door opening efficiency is improved.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, 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.
Fig. 1 is a schematic structural diagram of a wax motor according to an embodiment of the present invention. The wax motor includes: the temperature sensing device comprises a thermistor 101, a wax motor 102, a spiral spring 103 and a transmission rod 104, wherein the thermistor 101 is arranged on the wax motor 102, the wax motor 102 comprises wax and a probe, and the transmission rod 104 is used for being connected with a door opening device and driving the door opening device to open a door structure connected with the door opening device.
Use the automatically-controlled door to open as the example, the wax motor is connected with door opener, door opener and door body structural connection, the wax motor provides drive power for door opener, drive door opener opens door body structure, at concrete realization in-process, the wax motor starts, thermistor 101 circular telegram generates heat, wax inside of wax motor 102 is heated the inflation, lead to the probe in the wax motor to outwards remove, promote transfer line 104 outwards to drive door opener opens door body structure, treat that wax cools off the back, coil spring 103 can return transfer line 104.
It can be seen that, in the process, the longer the power-on time of the thermistor 101 is, the larger the stroke parameter of the outward movement of the transmission rod 104 is, that is, whether the door structure can be opened in place is related to the power-on time of the thermistor 101, and when the power-on time is long enough, the larger the stroke parameter of the outward movement of the transmission rod 104 is, the door structure can be opened in place. In the prior art, in order to ensure that a door body structure can be opened in place, the energization time of a thermistor 101 of a wax motor is usually set as the maximum energization time of the wax motor, however, if the wax motor reaches the maximum energization time and can be opened at a design angle, the wax motor can be opened, but the wax motor is heated for too long time to affect the service life of the wax motor, and the door body structure always needs to be opened for the next operation after waiting for the maximum energization time, which wastes time and is not beneficial to improving the working efficiency.
In the present embodiment, a wax motor drive model is obtained by different types of door body structure training, and the wax motor drive model is used to control the energization time of the wax motor. In this embodiment, adopt the drive of reasonable circular telegram chronology wax heating and door body structure, for all adopting maximum circular telegram time at every turn, prolonged the life of wax motor to can make door body structure in time open, improve the efficiency of opening the door.
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 flow chart of wax motor drive model training according to yet another embodiment of the present invention. As shown in fig. 2, the method includes:
201. acquiring a sample set to be trained; the sample set includes at least one type of gate structure, each type including at least one gate structure.
The execution main body of the embodiment may be a control board of the wax motor, and specifically, may be a processor provided on the control board.
In this embodiment, the type of the door body structure is determined by parameters of the door body structure, such as weight, size, door lock structure, material, and the like, and if the parameters of the two door body structures are the same, the two door body structures belong to the same type of door body structure.
In practical application, different types of door body structures can lead to different door body opening in place and further different electrifying time of the thermistor of the wax motor. Therefore, different types of door body structures can be trained respectively in the embodiment. A training set is constructed for each type, each training set comprising a plurality of samples. I.e. the sample set is divided into a plurality of training sets.
Specifically, according to the type information of each door body structure, the door body structures with the same type information in the sample set are divided into the same training set, and a plurality of training sets are obtained.
202. Aiming at each door body structure in the sample set, acquiring the type information of the door body structure, a pressure signal of a spring corresponding to the door body structure and a stroke parameter of a wax motor; and training a wax motor driving model to be trained according to the type information of the door body structure, the pressure signal and the stroke parameter to obtain the wax motor driving model.
Optionally, training sets obtained by dividing according to the type information of the door body structure may be trained respectively. And aiming at each door body structure in each training set, acquiring a pressure signal of a spring and a stroke parameter of a wax motor corresponding to the door body structure, and training a wax motor driving model to be trained according to the running information of the door body structure, the pressure signal and the forming parameter. And obtaining the wax motor driving model after finishing the training of each sample of each training set. The wax motor can drive the door body structure to different types of door body structures by adopting different power-on time under the control of the processor comprising the wax motor driving model, so that the door body structure can be driven to be opened in place in a short time, the door body structure is driven by adopting the maximum power-on time of the wax motor, the door opening efficiency can be improved, and the service life of the wax motor can be prolonged.
In this embodiment, the pressure signal of spring can adopt pressure sensor to acquire, optionally, the spring is provided with pressure sensor, acquire the pressure signal of the spring that this door body structure corresponds, include:
and acquiring a pressure signal of the spring in the door opening process of the door body structure through the pressure sensor.
Specifically, the pressure sensor is arranged on the spring or arranged at two ends of the spring, so long as the pressure sensor can sense the pressure applied to the spring.
Optionally, the pressure signal may be acquired in various ways, such as continuously acquiring or periodically and discretely acquiring.
For example, when the wax motor is started, the pressure signals of the springs can be collected in a period T, and in the whole door opening process, the sequentially collected pressure signals are gradually increased, so that the door is indicated to be opened in place when the pressure signals are instantaneously changed, namely the pressure signals are suddenly decreased in the sudden increasing process. The instantaneous change can be understood as the jump of the pressure signal, and the jump moment corresponds to the moment when the door body is opened in place.
And determining the jumping moment by judging the slope of a curve fitted by each acquired pressure signal, and determining the moment when the pressure signal jumps when the change value of the slope is greater than a preset threshold value.
In this embodiment, the stroke parameter of the wax motor refers to a distance that the transmission rod of the wax motor moves outward, that is, a distance that the transmission rod pushes the door opener to move, and the stroke parameter can be obtained by using a distance sensor. Optionally, the wax motor is provided with a distance sensor, the obtaining of the stroke parameter of the wax motor corresponding to the door body structure includes:
and acquiring the stroke parameter of the wax motor when the pressure signal jumps through the distance sensor.
In particular, the distance sensor may be disposed between the wax motor and the door opener to sense a distance between the door opener and the wax motor, i.e., a distance that the transmission rod of the wax motor pushes outward.
Fig. 3 is a schematic structural diagram of an automatic door according to another embodiment of the present invention, and the whole training process is illustrated below with reference to fig. 3, as shown in fig. 3, the automatic door includes a wax motor 31, a door opener 32 and a door structure (not shown), the wax motor 31 includes a thermistor (not shown) disposed in a housing, a wax motor 311, a coil spring 312 for returning the transmission rod 313, and a transmission rod 313, the door opener 32 includes a push rod 321 and a spring 323 disposed in the housing at an end of the push rod 321 away from the contact with the door structure. When the wax motor driving model training is performed, for each door body structure, it is necessary to acquire a distance parameter of the wax motor and a pressure signal of the spring corresponding to the door body structure, so that a pressure sensor 322 may be provided on the spring 323, and a distance sensor 314 may be provided outside a housing of the wax motor, and the distance sensor may sense a distance between the door opening device 32 and the wax motor, that is, a distance X of movement of the transmission rod 313 of the wax motor. Point a is the initial position of the end of the push rod 321 (distance H from the top surface of the door opener's housing), and the push rod moves the same stroke X as the drive rod under the push of the drive rod 313 and the spring 323. The pressure sensor 322 and the distance sensor 314 are both connected with a processor for controlling the wax motor, and respectively send the acquired pressure signal and distance signal to the processor. To train a wax motor drive model provided in the processor.
In the specific implementation process, the wax motor is started, the thermistor starts to heat, wax in the wax motor 311 expands due to heating, the transmission rod 313 is pushed to move outwards, the spring 323 is pushed by the transmission rod 313 to push the push rod 321 to move outwards, and the push rod 321 pushes the door body structure to open. In the process, the pressure sensor 322 obtains the stress condition of the spring, optionally, periodic sampling may be performed to obtain discrete pressure sampling values, the processor receives the pressure sampling values and monitors the pressure jump time, when a sudden change of the slope of a curve fitted to the pressure sampling values is detected, it is determined that the time is the jump time, and at this time, the stroke parameter obtained by the distance sensor 314 is recorded. And aiming at the door body structure of the sample, training a wax motor driving model by utilizing the pressure signal and the stroke parameter. A plurality of samples are set for the same type to train the wax motor driving model, so that the wax motor driving model can output the stroke parameters corresponding to the door body structure of the type, and further appropriate power-on time is obtained according to the stroke parameters, so that the door opening time is shortened, and the service life of the wax motor is prolonged.
According to the wax motor driving model, the type information, the pressure signal and the stroke parameter of each door body structure sample are obtained, and the wax motor driving model is obtained according to the type information, the pressure signal and the stroke parameter training, so that the wax motor driving model can give the stroke parameter capable of enabling the door body structure to be opened in place according to the type of the door body structure, the door opening efficiency is improved, and the service life of the wax motor is prolonged.
Fig. 4 is a flowchart illustrating a wax motor control method according to another embodiment of the present invention. As shown in fig. 4, the wax motor is connected to a door opener including a spring for urging a door body structure, the method comprising:
401. and acquiring the type information of the door body structure.
The execution body of the present embodiment may be a processor of a wax motor.
402. Inputting the type information into a wax motor driving model to obtain a stroke parameter corresponding to the door body structure type; the wax motor driving model is obtained by training according to pressure signals of springs corresponding to different types of door body structures and stroke parameters of the wax motor.
In this embodiment, the training process of the wax motor driving model may refer to the specific description of the embodiment shown in fig. 2, and is not described herein again.
In practical application, after the type information of the door body structure to be driven by the wax motor is input into the wax motor driving model, the trained wax motor driving model can give a stroke parameter corresponding to the type information according to the type information of the door body structure, and the stroke parameter is the stroke parameter of the wax motor for opening the door body structure in place. And then the wax motor can be controlled according to the stroke parameter, so that the wax motor reaches the stroke parameter, and the door body structure is opened in place. The shortening of the service life of the wax motor caused by controlling the wax motor to open the door body structure within the longest power-on time is avoided.
403. And starting the wax motor according to the stroke parameters so that the wax motor drives the door body to be opened.
Optionally, the starting the wax motor according to the stroke parameter to make the wax motor drive the door body to open includes:
determining the power-on time of the wax motor according to the stroke parameter;
and inputting the electrifying time into a wax motor so that the wax motor drives a door body to be opened according to the electrifying time.
Specifically, the determining the energization time of the wax motor according to the stroke parameter includes:
acquiring actual power-on time required by the wax motor to complete the stroke parameter according to the stroke parameter;
and summing the actual power-on time and the reserved power-on time to obtain the power-on time of the wax motor.
In practical application, after the wax motor driving model is trained, the stroke parameters corresponding to different types of door structures can be obtained, and then the corresponding actual power-on time can be determined according to the stroke parameters. And (2) sampling the pressure signals of the pressure sensors in the reserved power-on time, if the obtained pressure sampling value is in a pressure range (the pressure range is the pressure variation range of the door body structure in the opening process from the wax motor starting to the door body opening in place, the pressure range can be obtained by recording in the training process), continuing to perform memorial heating until the wax motor reaches the maximum stroke, and if the obtained pressure sampling value is smaller than the pressure range, indicating that the door body structure is opened in place. The reserved power-on time may be determined through a number of experiments.
The wax motor control method provided by this embodiment obtains the type information of the door body structure, inputs the type information into the wax motor drive model to obtain the stroke parameter corresponding to the door body structure type, the wax motor drive model is obtained by training according to the pressure signal of the spring corresponding to the door body structures of different types and the stroke parameter of the wax motor, starts the wax motor according to the stroke parameter to open the wax motor drive door body, the wax motor drive model obtained by training can identify the door body structures of different types and obtain the corresponding stroke parameter, thereby realizing self-adaptation to the door body structures of different types, enabling the wax motor to heat the wax and drive the door body structures by adopting reasonable power-on time, prolonging the service life of the wax motor and enabling the door body structures to be opened in time relative to adopting the maximum power-on time each time, the door opening efficiency is improved.
Fig. 5 is a schematic structural diagram of a wax motor control apparatus according to still another embodiment of the present invention. As shown in fig. 5, the wax motor control apparatus 50 includes: an acquisition module 501, an input module 502 and a start module 503.
An obtaining module 501, configured to obtain type information of a door structure;
the input module 502 is used for inputting the type information into a wax motor driving model to obtain a stroke parameter corresponding to the door body structure type; the wax motor driving model is obtained by training according to pressure signals of springs corresponding to different types of door body structures and stroke parameters of the wax motor;
and the starting module 503 is configured to start the wax motor according to the stroke parameter, so that the wax motor drives the door body to open.
The wax motor control device provided by the embodiment of the invention obtains the type information of the door body structure through the obtaining module 501, the input module 502 inputs the type information into the wax motor driving model to obtain the stroke parameter corresponding to the type of the door body structure, the wax motor driving model is obtained through training according to the pressure signal of the spring corresponding to the door body structures of different types and the stroke parameter of the wax motor, the starting module 503 starts the wax motor according to the stroke parameter to open the wax motor driving door body, the wax motor driving model obtained through training can identify the door body structures of different types and obtain the corresponding stroke parameter, thereby realizing self-adaptation of the door body structures of different types, enabling the wax motor to adopt reasonable power-on time to heat wax and drive the door body structure, and prolonging the service life of the wax motor compared with the maximum power-on time adopted each time, and can make the door body structure in time open, improve the efficiency of opening the door.
Fig. 6 is a schematic structural diagram of a wax motor control apparatus according to still another embodiment of the present invention. As shown in fig. 6, the wax motor control device 60 further includes: a training module 504.
Optionally, the apparatus further comprises:
a training module 504 for obtaining a sample set to be trained; the sample set comprises at least one type of gate structure, and each type comprises at least one gate structure;
aiming at each door body structure in the sample set, acquiring the type information of the door body structure, a pressure signal of a spring corresponding to the door body structure and a stroke parameter of a wax motor; and training a wax motor driving model to be trained according to the type information of the door body structure, the pressure signal and the stroke parameter to obtain the wax motor driving model.
Optionally, the spring is provided with a pressure sensor, and the training module 504 is specifically configured to:
and acquiring a pressure signal of the spring in the door opening process of the door body structure through the pressure sensor.
Optionally, the wax motor is provided with a distance sensor, and the training module 504 is specifically configured to:
and acquiring the stroke parameter of the wax motor when the pressure signal jumps through the distance sensor.
Optionally, the training module 504 is further configured to:
determining a pressure curve according to the pressure signal, and acquiring the slope of the pressure curve;
and judging the moment when the change value of the slope is greater than a preset threshold value as the moment when the pressure signal jumps.
Optionally, the starting module 503 is specifically configured to:
determining the power-on time of the wax motor according to the stroke parameter;
and inputting the electrifying time into a wax motor so that the wax motor drives a door body to be opened according to the electrifying time.
Optionally, the starting module 503 is specifically configured to:
acquiring actual power-on time required by the wax motor to complete the stroke parameter according to the stroke parameter;
and summing the actual power-on time and the reserved power-on time to obtain the power-on time of the wax motor.
The wax motor control device provided by the embodiment of the invention can be used for executing the method embodiment, the implementation principle and the technical effect are similar, and the embodiment is not described again.
Fig. 7 is a schematic hardware structure diagram of a wax motor according to another embodiment of the present invention. As shown in fig. 7, the present embodiment provides a wax motor 70 including: at least one processor 701 and a memory 702. The wax motor control device 70 also includes a communication component 703. The processor 701, the memory 702, and the communication section 703 are connected by a bus 704.
In particular implementations, the at least one processor 701 executes computer-executable instructions stored by the memory 702 to cause the at least one processor 701 to perform a wax motor control method as performed by the wax motor control apparatus 70.
When the wax motor driving model of the present embodiment is installed at the server side, the communication part 703 may transmit the acquired door type to the server.
For a specific implementation process of the processor 701, reference may be made to the above method embodiments, which implement principles and technical effects similar to each other, and details of this embodiment are 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 at least one disk memory.
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.
As shown in fig. 8, the present application also provides an automatic door 80 including: door structure 803, door opener 802 and wax motor 801 as shown in fig. 7.
The wax motor 801 is connected to the door structure 803 through the door opener 802, and is configured to drive the door opener 802 so that the door opener 802 opens the door structure 803.
The automatic door provided by the application obtains the type information of the door body structure 803 through the wax motor 801, inputs the type information into the wax motor driving model to obtain the stroke parameter corresponding to the door body structure type, the wax motor driving model is obtained according to the pressure signal of the spring corresponding to the door body structures 803 of different types and the stroke parameter training of the wax motor, the wax motor is started according to the stroke parameter to open the wax motor driving door body, the wax motor driving model obtained through training can identify the door body structures of different types and obtain the corresponding stroke parameter, the self-adaption to the door body structures of different types is realized, the wax motor adopts reasonable power-on time to carry out wax heating and driving of the door body structures, the maximum power-on time is adopted for each time, the service life of the wax motor is prolonged, and the door body structure can be opened in time, the door opening efficiency is improved.
The present application also provides a computer-readable storage medium having stored therein computer-executable instructions that, when executed by a processor, implement a wax motor control method as performed by a wax motor control apparatus.
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.
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.
So far, the technical solutions of the present invention have been described in connection with the preferred embodiments shown in the drawings, but it is easily understood by those skilled in the art that the scope of the present invention is obviously not limited to these specific embodiments. Equivalent changes or substitutions of related technical features can be made by those skilled in the art without departing from the principle of the invention, and the technical scheme after the changes or substitutions can fall into the protection scope of the invention.