Elevator door opening and closing detection method and device, equipment and storage medium

By using ultrasonic output and receiving devices in electronic equipment to detect the opening and closing status of elevator doors, the problem of high cost and low efficiency of electromagnetic wave or microwave detection methods in the existing technology is solved, and efficient and accurate elevator door status detection is achieved.

CN118771124AInactive Publication Date: 2024-10-15REALME MOBILE TELECOMM SHENZHEN CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410918625.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-10-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the existing technology, the method of detecting the opening and closing status of elevator doors relies on electromagnetic waves or microwaves. Electronic devices such as mobile phones usually do not have the ability to emit electromagnetic waves or microwaves, which results in the need for additional hardware, increased costs, and low timeliness and accuracy of detection results.

Method used

Using ultrasonic output and receiving devices, by sending target ultrasonic waves and receiving reflected waves, the opening and closing status of the elevator door is determined based on energy changes and time differences. This is achieved using audio-related devices such as speakers and microphones, without the need for additional hardware.

Benefits of technology

It achieves accurate detection of the elevator door opening and closing status, improves the timeliness and accuracy of detection, avoids an increase in hardware costs, and is suitable for electronic devices such as mobile phones and tablet computers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118771124A_ABST
    Figure CN118771124A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an elevator door opening and closing detection method and device, equipment and a storage medium, the method is applied to electronic equipment, the electronic equipment is provided with an ultrasonic output device and an ultrasonic receiving device, and the method comprises the steps that target ultrasonic waves are sent through the ultrasonic output device, receiving a target reflected wave corresponding to the target ultrasonic wave through an ultrasonic receiving device; determining ultrasonic transmission data according to the target ultrasonic wave and the target reflected wave, wherein the ultrasonic transmission data comprises at least one of the following: an energy change condition of the target ultrasonic wave and the target reflected wave, and a time difference from sending of the target ultrasonic wave to receiving of the target reflected wave; and determining the opening-closing state of the elevator door based on the ultrasonic transmission data. According to the embodiment, the opening-closing state of the elevator door can be determined.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to ultrasonic technology, and relate to but are not limited to an elevator door opening and closing detection method and device, equipment, and storage medium. Background Art

[0002] When a user is using an elevator, in order to ensure that the network status of the electronic device is updated in a timely manner, the electronic device usually needs to obtain the switch status of the elevator door to determine whether the elevator is running.

[0003] In the related art, the elevator door determination method adopted is to set up electromagnetic waves for detection. However, electronic devices such as mobile phones usually do not have the ability to emit electromagnetic waves, so additional hardware adjustments are required, resulting in poor detection of the switch status of the elevator door, and low timeliness and accuracy of the detection. Summary of the invention

[0004] In view of this, the elevator door opening and closing detection method, device, equipment, and storage medium provided in the embodiments of the present application can determine the opening and closing state of the elevator door. The elevator door opening and closing detection method, device, equipment, and storage medium provided in the embodiments of the present application are implemented as follows:

[0005] In one aspect of an embodiment of the present application, a method for detecting an elevator door opening and closing is provided. The method is applied to an electronic device, the electronic device having an ultrasonic output device and an ultrasonic receiving device, and the method comprises:

[0006] Sending a target ultrasonic wave through an ultrasonic output device, and receiving a target reflected wave corresponding to the target ultrasonic wave through an ultrasonic receiving device;

[0007] Determine ultrasonic transmission data according to the target ultrasonic wave and the target reflected wave, the ultrasonic transmission data including at least one of the following: energy change of the target ultrasonic wave and the target reflected wave, and time difference between sending the target ultrasonic wave and receiving the target reflected wave;

[0008] The open and closed state of the elevator door is determined based on the ultrasonic transmission data.

[0009] In another aspect of the embodiment of the present application, there is also provided an elevator door opening and closing detection device, which is applied to an electronic device, the electronic device having an ultrasonic output device and an ultrasonic receiving device, the device comprising: a sound wave detection module, a data processing module and a state determination module;

[0010] The acoustic wave detection module is used to send a target ultrasonic wave through an ultrasonic wave output device and receive a target reflected wave corresponding to the target ultrasonic wave through an ultrasonic wave receiving device;

[0011] A data processing module, used to determine ultrasonic transmission data according to the target ultrasonic wave and the target reflected wave, wherein the ultrasonic transmission data includes at least one of the following: energy changes of the target ultrasonic wave and the target reflected wave, and a time difference between sending the target ultrasonic wave and receiving the target reflected wave;

[0012] The state determination module is used to determine the open and close state of the elevator door based on the ultrasonic transmission data.

[0013] The computer device provided in the embodiment of the present application includes a memory and a processor. The memory stores a computer program that can be run on the processor. When the processor executes the program, the method of the embodiment of the present application is implemented.

[0014] The computer-readable storage medium provided in the embodiment of the present application has a computer program stored thereon, and when the computer program is executed by a processor, the method provided in the embodiment of the present application is implemented.

[0015] In the elevator door opening and closing detection method, device, equipment, and storage medium provided in the embodiments of the present application, a target ultrasonic wave can be sent through an ultrasonic output device, and a target reflected wave corresponding to the target ultrasonic wave can be received through an ultrasonic receiving device; ultrasonic transmission data can be determined based on the target ultrasonic wave and the target reflected wave; and the opening and closing state of the elevator door can be determined based on the ultrasonic transmission data. Among them, the ultrasonic transmission data can include at least one of the following: energy changes of the target ultrasonic wave and the target reflected wave, and the time difference between sending the target ultrasonic wave and receiving the target reflected wave. Since the ultrasonic wave is sent and received by the ultrasonic output device and the ultrasonic receiving device, and can be implemented by audio-related devices such as speakers and microphones for electronic devices, there is no need to set up other devices, and after processing the acquired ultrasonic transmission data, the opening and closing state of the elevator door can be determined. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1 A schematic diagram of an application scenario provided in an embodiment of the present application;

[0018] Figure 2 A schematic diagram of a flow chart of a method for detecting an elevator door opening and closing provided in an embodiment of the present application;

[0019] Figure 3 A schematic diagram of the relationship between the detection conditions provided in the embodiments of the present application;

[0020] Figure 4 A schematic diagram of the workflow of the state detection model provided in the embodiments of the present application;

[0021] Figure 5 A schematic diagram of the location of the ultrasonic output device provided in an embodiment of the present application;

[0022] Figure 6 A schematic diagram of the location of the ultrasonic receiving device provided in an embodiment of the present application;

[0023] Figure 7 A flowchart of the steps to be performed after determining the opening and closing of the elevator door provided in an embodiment of the present application;

[0024] Figure 8 This is a schematic diagram of the overall process of the elevator door opening and closing detection method provided in an embodiment of the present application;

[0025] Fig. 9 This is a schematic diagram of the structure of the elevator door opening and closing detection device provided in an embodiment of the present application;

[0026] Fig.10 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the specific technical solution of the present application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application, but are not used to limit the scope of the present application.

[0028] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0029] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0030] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present application are used to distinguish similar or different objects, and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0031] When using an elevator, in order to ensure that the network status of the electronic device is updated in time, the user usually needs to obtain the switch status of the elevator door by the electronic device to determine whether the user is in the elevator. For example, when the elevator door is in the open state, it can be determined that the elevator is not in the running state; when the elevator door is in the closed state, it can be determined that the elevator is about to be in or is in the running state.

[0032] In the related art, there are many methods for determining the switch status of elevator doors, for example: determining the switch status of elevator doors based on videos or images, but videos or images require high power consumption and pose privacy compliance risks, and are not suitable for use in public places.

[0033] For another example, the switch status of an elevator door can be determined based on electromagnetic waves or microwaves. However, electronic devices such as mobile phones or tablets usually do not have the ability to emit electromagnetic waves or microwaves, and additional corresponding hardware results need to be set up, which in turn increases hardware costs.

[0034] That is to say, there is currently no suitable solution in the relevant technology to determine the switch status of the elevator door. On this basis, in order to solve the above problems existing in the relevant technology, an elevator door switch status detection method is provided in an embodiment of the present application. The actual application scenario of this method is explained below.

[0035] Figure 1 This is a schematic diagram of the application scenario provided in the embodiment of this application, please refer to Figure 1 The scenario may be a scenario in which a user carries the electronic device 110 in an elevator.

[0036] The electronic device 110 may include but is not limited to a mobile phone, a wearable device (such as a smart watch, a smart bracelet, smart glasses, etc.), a tablet computer, a laptop computer, a portable terminal, a PC (Personal Computer), etc. The function implemented by the method can be implemented by calling a program code by a processor in the electronic device 110. Of course, the program code can be stored in a computer storage medium. It can be seen that the electronic device 110 includes at least a processor and a storage medium.

[0037] It should be noted that in this scenario, the elevator can be any type of box-type elevator, such as a passenger elevator, a freight elevator, etc., and there is no specific requirement for the size of the interior space of the elevator. Users can stand or sit facing the elevator door in the elevator.

[0038] Optionally, the electronic device 110 may be an electronic device having an ultrasonic output device and an ultrasonic receiving device, wherein the ultrasonic output device may be, for example, a speaker, a receiver or other device for emitting sound; and the ultrasonic receiving device may be, for example, a microphone or other device for collecting sound.

[0039] In this scenario, the opening and closing state of the elevator door can be determined by the electronic device 110. The implementation process of the elevator opening and closing door detection method provided in the embodiment of the present application is explained below.

[0040] Figure 2 This is a flow chart of the elevator door opening and closing detection method provided in the embodiment of the present application, please refer to Figure 2 , the method comprising:

[0041] S210: Sending a target ultrasonic wave through an ultrasonic output device, and receiving a target reflected wave corresponding to the target ultrasonic wave through an ultrasonic receiving device.

[0042] It should be noted that the execution subject of the method may be the above-mentioned electronic device.

[0043] The electronic device can send a target ultrasonic wave after determining that the user has entered the elevator. The target ultrasonic wave can be emitted by an ultrasonic output device. The target ultrasonic wave can be a pre-configured ultrasonic wave with preset energy. Different target ultrasonic waves can be set for different electronic devices, and no specific limitation is made here.

[0044] After transmitting the target ultrasonic wave, the electronic device may start to receive the target reflected wave. The target reflected wave may be the ultrasonic wave reflected back after the target ultrasonic wave contacts other objects.

[0045] It should be noted that the target ultrasonic wave and the target reflected wave are both sound waves with a certain duration and corresponding sound wave energy.

[0046] S220: Determine ultrasonic transmission data according to the target ultrasonic wave and the target reflected wave.

[0047] After the ultrasonic receiving device receives the target reflected wave, the ultrasonic transmission data can be determined based on the target ultrasonic wave and the target reflected wave. The ultrasonic transmission data includes at least one of the following: energy changes of the target ultrasonic wave and the target reflected wave, and the time difference between sending the target ultrasonic wave and receiving the target reflected wave.

[0048] It should be noted that the target ultrasonic wave can be a sound wave with energy changes that lasts for a period of time, and the target reflected wave can also be a sound wave with energy changes that lasts for a period of time. The difference in energy changes between the two can be compared, and the difference is the energy lost when the target ultrasonic wave is converted into the target reflected wave. That is, the energy changes of the target ultrasonic wave and the target reflected wave can be determined.

[0049] The energy change is not a simple value but can be multiple change data within a period of time. For example, the duration of the target ultrasonic wave and the target reflected wave are both 1 second. The energy difference of multiple time nodes within this 1 second can be determined. The difference of multiple nodes together constitutes the energy change of the target ultrasonic wave and the target reflected wave.

[0050] Optionally, the electronic device may start timing after sending the target ultrasonic wave, and may stop timing after receiving the target reflected wave, and the timing duration is the time difference between sending the target ultrasonic wave and receiving the target reflected wave.

[0051] Among them, the time difference can be calculated from the complete transmission of the target ultrasonic wave to the complete reception of the target reflected wave, or it can be calculated from the start of sending the target ultrasonic wave to the start of receiving the target reflected wave. There is no specific limitation here, and one of the calculation methods can be selected according to actual needs to obtain the time difference from sending the target ultrasonic wave to receiving the target reflected wave.

[0052] It should be noted that, in the actual implementation process, any one of the above two types of ultrasonic transmission data may be obtained, or both types may be obtained, and no specific limitation is made here.

[0053] S230: Determine the open / closed state of the elevator door based on the ultrasonic transmission data.

[0054] It should be noted that after obtaining the ultrasonic transmission data, the switch state of the elevator door can be determined according to the transmission data.

[0055] For example, the ultrasonic transmission data can be input into the neural network model according to a preset neural network model, and the output of the neural network model can be the switch state of the elevator door. Alternatively, the switch state of the elevator door corresponding to the ultrasonic transmission data can be determined based on a preset relationship between the ultrasonic transmission data and the switch state of the elevator door.

[0056] In the actual implementation process, any one of the above two methods can be selected according to actual needs to determine the open and closed state of the elevator door, and no specific limitation is made here.

[0057] In the elevator door opening and closing detection method provided in the embodiment of the present application, a target ultrasonic wave can be sent through an ultrasonic output device, and a target reflected wave corresponding to the target ultrasonic wave can be received through an ultrasonic receiving device; ultrasonic transmission data can be determined according to the target ultrasonic wave and the target reflected wave; and the opening and closing state of the elevator door can be determined based on the ultrasonic transmission data. Among them, the ultrasonic transmission data can include at least one of the following: energy changes of the target ultrasonic wave and the target reflected wave, and the time difference between sending the target ultrasonic wave and receiving the target reflected wave. Since the ultrasonic wave is sent and received by the ultrasonic output device and the ultrasonic receiving device, and can be implemented by audio-related devices such as speakers and microphones for electronic devices, there is no need to set up other devices, and after processing the acquired ultrasonic transmission data, the opening and closing state of the elevator door can be determined.

[0058] In the actual implementation process, the electronic device itself does not know whether it is in the elevator. Therefore, the electronic device can perform detection to determine whether it is currently in the elevator. The following explains several ways in which the electronic device performs detection.

[0059] Figure 3 Please refer to the schematic diagram of the detection condition relationship provided in the embodiment of this application. Figure 3 , before sending the target ultrasonic wave through the ultrasonic output device and receiving the target reflected wave corresponding to the target ultrasonic wave through the ultrasonic receiving device, the method also includes: determining whether the electronic device meets the detection condition, the detection condition includes at least one of the following: whether the current time is within a preset detection time period, whether the change trend of the wireless network signal of the electronic device conforms to the preset change trend, whether the motion state of the electronic device is a preset motion state, and whether the electronic device is in use; sending the target ultrasonic wave through the ultrasonic output device and receiving the target reflected wave corresponding to the target ultrasonic wave through the ultrasonic receiving device, including: when the electronic device meets the detection condition, sending the target ultrasonic wave through the ultrasonic output device and receiving the target reflected wave corresponding to the target ultrasonic wave through the ultrasonic receiving device.

[0060] That is to say, when the electronic device satisfies at least one of the above four conditions, it can be determined that the electronic device is in the elevator, so that the elevator door opening and closing detection of the above steps S210-S230 can be performed.

[0061] Condition 1: Whether the current time is within the preset detection time period.

[0062] It should be noted that the preset time detection time period may be a time period actively set by the user, or may be a time period determined by the electronic device according to the user's usage habits.

[0063] For example, between 8 and 9 in the morning, you may take the elevator for work or school, and between 6 and 7 in the afternoon, you may take the elevator after get off work or school. The above two time periods can be used as preset detection time periods.

[0064] If the current time is within the preset detection time period, it can be determined that condition 1 is satisfied; if the current time is not within the preset detection time period, it can be determined that condition 1 is not satisfied.

[0065] Condition 2: Whether the change trend of the wireless network signal of the electronic device meets the preset change trend.

[0066] It should be noted that when the user enters the elevator, the electronic device can collect the changing trend of the current wireless network signal. For example, under normal circumstances, the wireless network signal is in a relatively stable change; after the user enters the elevator, the wireless network signal has certain mutations, such as a sudden decrease, etc. By outputting the changing trends of this type of data multiple times, the common characteristics of these data can be obtained, and the preset changing trends can be determined.

[0067] During actual use, if the wireless network signal change trend of the electronic device is similar to the preset change trend, it can be determined that condition 2 is met; if the wireless network signal change trend of the electronic device is too different from the preset change trend, it can be determined that condition 2 is not met.

[0068] Condition 3: Whether the motion state of the electronic device is a preset motion state.

[0069] It should be noted that the preset motion state can be stopping for a period of time, then moving for a period of time and then continuing to be in a stopped state. For example, when a user uses an elevator, the process may be to wait for the elevator first, at which time the motion state of the electronic device is in a stopped state. After the elevator arrives, the user takes the elevator, at which time the motion state of the electronic device is in a moving state. After the user gets on the elevator, the motion state of the electronic device is in a stopped state.

[0070] Alternatively, in some cases, the preset motion state may also be a state of being stopped after moving for a period of time. For example, the user happens to catch the elevator door opening and can take the elevator without waiting for the elevator. At this time, the motion state of the electronic device is in a moving state. When the user gets on the elevator, the motion state of the electronic device is in a stopped state.

[0071] The motion state of the electronic device may be obtained by a motion sensor or a gyroscope or other device that the electronic device has itself, whether the motion state of the electronic device is stopped or moving, and then it may be determined whether the motion state of the electronic device is a preset motion state.

[0072] In actual use, if the motion state of the electronic device is a preset motion state, it can be determined that condition 3 is satisfied; if the motion state of the electronic device is not a preset motion state, it can be determined that condition 3 is not satisfied.

[0073] Condition 4: Whether the electronic device is in use.

[0074] It should be noted that in actual use, the reason why the switch status of the elevator door needs to be obtained is to allow the electronic device to perform some functions. If the electronic device is not in use at this time, no detection is required, that is, the electronic device does not detect the switch status of the elevator door.

[0075] In one embodiment, a method for determining whether an electronic device is in use includes: determining whether the electronic device is in a handheld state based on a gyroscope of the electronic device; and / or determining whether the electronic device is in a screen-on state based on screen information of the electronic device.

[0076] It should be noted that the information detected by the gyroscope of the electronic device is different when the user holds the electronic device in his hand and when the user carries the electronic device in other carriers such as a pocket or a backpack. In other words, the hand-held state can be determined by the gyroscope of the electronic device. If it is in a hand-held state, it can be determined that the electronic device is in use; if it is not in a hand-held state, it can be determined that the electronic device is not in use.

[0077] In addition to determining the usage status of an electronic device based on whether it is in a handheld state, the usage status of the electronic device can also be determined based on whether the electronic device is in a screen-on state. For example, if the electronic device is in a locked screen state, it can be determined that the electronic device is not in use; if the electronic device is in a screen-on state, it can be determined that the electronic device is in use.

[0078] In actual implementation, any one of the above two determination methods or a combination of the two may be used to determine whether the electronic device is in use.

[0079] If the electronic device is in use, it can be determined that condition 4 is satisfied; if the electronic device is not in use, it can be determined that condition 4 is not satisfied.

[0080] It should be noted that, when all the above four conditions are met, it can be determined that the switch status of the elevator door needs to be detected; or, when any one, two or three of the above four conditions are met, it can be determined that the switch status of the elevator door needs to be detected. There is no specific restriction here, and the conditions that need to be met can be selected according to actual needs.

[0081] In addition to the above four conditions, after entering the elevator, the user can directly set in the electronic device that they are currently in the elevator, so that the elevator door is in the closed state by default, without the need for the electronic device itself to make a determination.

[0082] In the elevator door opening and closing detection method provided in the embodiment of the present application, it can be determined whether the electronic device meets the detection conditions, and the detection conditions include at least one of the following: whether the current time is within the preset detection time period, whether the change trend of the wireless network signal of the electronic device meets the preset change trend, whether the motion state of the electronic device is the preset motion state, and whether the electronic device is in use; when the electronic device meets the detection conditions, the target ultrasonic wave is sent through the ultrasonic output device, and the target reflected wave corresponding to the target ultrasonic wave is received through the ultrasonic receiving device. Among them, by judging through the above multiple conditions, it can be more accurately determined whether the electronic device meets the detection conditions, thereby avoiding additional power consumption when detection is not required and increasing the use time of the electronic device.

[0083] The following is an explanation of the implementation process of determining the switch state of the elevator door through the state detection model provided in the embodiment of the present application.

[0084] Figure 4 Please refer to the working flow diagram of the state detection model provided in the embodiment of this application. Figure 4 , when the ultrasonic transmission data includes energy changes of the target ultrasonic wave and the target reflected wave, determining the switch state of the elevator door based on the ultrasonic transmission data includes: outputting the ultrasonic transmission data to a state detection model to obtain the switch state of the elevator door, the state detection model is a neural network model trained based on pre-input sample data, and the sample data includes: energy changes of the ultrasonic wave and the corresponding switch state of the elevator door.

[0085] It should be noted that the state detection model can be a deep neural network model, and the input of the model can be the above-mentioned ultrasonic transmission data. If the model needs to be used, the ultrasonic transmission data can be only the energy change of the target ultrasonic wave and the target reflected wave, or the ultrasonic transmission data can be the energy change of the target ultrasonic wave and the target reflected wave and the time difference between sending the target ultrasonic wave and receiving the target reflected wave. The output of the model can be the switch state of the elevator door, for example: the elevator door is open or the elevator door is closed.

[0086] In one embodiment, the state detection model can be obtained by training the initial model. During the training of the initial model, the energy change of the ultrasonic wave in the sample data can be input into the initial model, wherein the energy change of the ultrasonic wave in the sample data can be based on sample data collected from different types of elevators and can include multiple data. After the data is input into the model, the actual output of the model can be obtained, and then it can be determined whether the actual output is the same as the switch state of the elevator door corresponding to the energy change of the ultrasonic wave.

[0087] During the training process, a large amount of sample data can be input. When the accuracy of the actual output of the sample data is greater than a preset threshold, the model can be determined to have converged, that is, the initial model can be used as the above-mentioned state detection model.

[0088] For example, 100 sets of sample data can be input, and if the accuracy is greater than 95%, the initial model can be used as a state detection model.

[0089] It should be noted that the neural network model can extract data features by itself and determine the output based on the extraction results, thereby eliminating the need for the electronic device to extract features itself and reducing processing time to a certain extent.

[0090] In the elevator door opening and closing detection method provided in the embodiment of the present application, the ultrasonic transmission data can be output to the state detection model to obtain the opening and closing state of the elevator door, and the state detection model is a neural network model trained based on pre-input sample data, and the sample data includes: the energy change of the ultrasonic wave and the corresponding opening and closing state of the elevator door. Through this state detection model, the detection result can be obtained more quickly and accurately, that is, the opening and closing state of the elevator door can be determined more quickly and accurately.

[0091] It should be noted that, in the actual implementation process, in addition to using the above-mentioned state detection model, other methods can also be used to determine the open and close state of the elevator door.

[0092] In one embodiment, when the ultrasonic transmission data is the time difference between sending a target ultrasonic wave and receiving a target reflected wave, determining the switch state of the elevator door based on the ultrasonic transmission data includes: determining the switch state of the elevator door based on the time difference between sending a target ultrasonic wave and receiving a target reflected wave and a mapping relationship between the time difference and the switch state of the elevator door.

[0093] Optionally, if the ultrasonic transmission data only includes the time difference between sending the target ultrasonic wave and receiving the target reflected wave, it can be determined based on a mapping relationship.

[0094] It should be noted that the time difference between sending the target ultrasonic wave and receiving the target reflected wave can be a numerical value representing the length of time, for example: 1s, 1.5s, etc. Different time lengths can correspond to different switch states of the elevator door. For example: a comparison value can be set. When the time difference is greater than the comparison value, the switch state of the elevator door can be determined to be the open state; when the time difference is less than or equal to the comparison value, the switch state of the elevator door can be determined to be the closed state, and a mapping relationship between different time periods and the switch state of the elevator door is established, that is, the mapping relationship between the above-mentioned time difference and the switch state of the elevator door.

[0095] In the actual implementation process, after determining the time difference between sending the target ultrasonic wave and receiving the target reflected wave, the open / closed state of the elevator door can be determined based on the mapping relationship.

[0096] In the embodiment of the present application, the electronic device may have multiple ultrasonic output devices and ultrasonic receiving devices, and the device for sending and receiving ultrasonic waves can be determined from the multiple devices to complete the detection work. The selection of ultrasonic output devices and ultrasonic receiving devices in the embodiment of the present application is explained below.

[0097] Figure 5 This is a schematic diagram of the ultrasonic output device provided in the embodiment of the present application. Please refer to Figure 5 If the electronic device includes a plurality of ultrasonic output devices, before sending the target ultrasonic wave through the ultrasonic output device, the method further includes: using the ultrasonic output device disposed on the back of the electronic device as the ultrasonic output device for sending the target ultrasonic wave.

[0098] It should be noted that when using an electronic device, the user usually faces the elevator door, that is, the back of the electronic device faces the elevator door. In the actual implementation process, the ultrasonic output device set on the back of the electronic device can be selected as the ultrasonic output device for sending the target ultrasonic wave, so that the transmission of the ultrasonic wave can be achieved more appropriately and accurately.

[0099] If the back of the electronic device has multiple ultrasonic output devices, one of them, or multiple or even all of the speakers, receivers, etc., can be selected to transmit ultrasonic waves.

[0100] Accordingly, in addition to selecting an ultrasonic output device, an ultrasonic receiving device may also be selected. Optionally, the selection may be made in the following manner:

[0101] Figure 6 This is a schematic diagram of the ultrasonic receiving device provided in the embodiment of the present application. Please refer to Figure 6If the electronic device includes multiple ultrasonic receiving devices, before receiving the target reflected wave corresponding to the target ultrasonic wave through the ultrasonic receiving device, the method also includes: using the ultrasonic receiving device closest to the ultrasonic output device as the ultrasonic receiving device for receiving the target reflected wave; or using the ultrasonic receiving device in the same direction as the ultrasonic output device as the ultrasonic receiving device for receiving the target reflected wave.

[0102] It should be noted that an ultrasonic receiving device disposed on the back of the electronic device may also be used as the ultrasonic receiving device for receiving the target reflected wave. If there is no ultrasonic receiving device disposed on the back of the electronic device, or if there are multiple ultrasonic receiving devices disposed on the back of the electronic device, further selection may be made, for example: the ultrasonic receiving device closest to the ultrasonic output device may be used as the ultrasonic receiving device for receiving the target reflected wave; or the ultrasonic receiving device facing the same direction as the ultrasonic output device may be used as the ultrasonic receiving device for receiving the target reflected wave.

[0103] The closer the distance to the ultrasonic output device is, the better the received target reflected wave is. Correspondingly, the ultrasonic receiving device facing the same direction as the ultrasonic output device can also receive better target reflected waves.

[0104] It should be noted that after selecting the corresponding ultrasonic receiving device in the above manner, ultrasonic reception can be achieved more appropriately and accurately.

[0105] In one embodiment, if the electronic device includes multiple ultrasonic receiving devices, before receiving the target reflected wave corresponding to the target ultrasonic wave through the ultrasonic receiving device, the method further includes: using all the ultrasonic receiving devices as ultrasonic receiving devices for receiving the target reflected wave.

[0106] It should be noted that if multiple ultrasonic receiving devices are provided, the quality of the received target reflected waves can also be improved. If the performance of the electronic equipment permits, multiple, for example all microphones, handsets, etc. can be turned on to achieve the reception of the target reflected waves.

[0107] In the elevator door opening and closing detection method provided in the embodiment of the present application, by selecting ultrasonic output devices and ultrasonic receiving devices in different positions and quantities, more appropriate and accurate ultrasonic output and reception can be achieved, the accuracy of the received target ultrasonic wave can be improved, and the accuracy and effectiveness of the above-mentioned ultrasonic transmission data can be further improved.

[0108] The following explains some steps that the electronic device can perform when determining that the elevator door is in a closed state in an embodiment of the present application.

[0109] Figure 7This is a flowchart of the steps to be performed after determining the elevator door opening and closing provided in the embodiment of the present application. Please refer to Figure 7 After determining the open / closed state of the elevator door based on the ultrasonic transmission data, the method further includes:

[0110] S710: When the switch state of the elevator door is closed, S720: Switch the network of the electronic device from the wireless communication WIFI network to the mobile data network; and / or, S730: Switch the near field communication access card of the electronic device to the target access card.

[0111] Figure 7 The left sub-figure A shows the process of implementing network switching. Figure 7 The right sub-figure B shows the process of switching the target access card.

[0112] It should be noted that after determining the switch state of the elevator door, if it is in a closed state, it can be determined that the user is in the elevator at this time, and the electronic device can perform partial processing.

[0113] For example: when an electronic device is in an elevator, the wireless communication network is usually unavailable and is prone to interruption or message transmission failure. When it is determined that the switch state of the elevator door is in the closed state, the network of the electronic device can be switched from the WIFI network to the mobile data network, that is, the cellular network, thereby ensuring the normal network connection of the electronic device.

[0114] For another example, when the electronic device is in an elevator, it can be determined that the user will pass through a certain access control next, and the near field communication (NFC) access control card in the electronic device can be switched to the corresponding target access control card in advance, thereby improving the efficiency of access control card swiping.

[0115] It should be noted that the above two situations are only examples that can be implemented. In actual applications, if it is determined that the electronic device is in the elevator, there are many solutions that can be implemented. For example, the electronic device obtains public transportation information through the Internet, controls the lights and air conditioners in the home to turn on or off through the Internet, etc., so as to provide users with preparations for corresponding services in advance.

[0116] In the elevator door opening and closing detection method provided in the embodiment of the present application, after determining that the elevator door is in the closed state, the network of the electronic device can be switched from the wireless communication WIFI network to the mobile data network in advance; and / or the near-field communication access card of the electronic device can be switched to the target access card. This allows the network communication of the electronic device to remain normal and improves the efficiency of access card swiping.

[0117] The following is an example to explain the overall process of the elevator door opening and closing detection method.

[0118] Figure 8 This is a schematic diagram of the overall process of the elevator door opening and closing detection method provided in the embodiment of the present application. Please refer to Figure 8 First, the electronic device can determine whether the detection conditions are met. If the detection conditions are not met, the detection can be ended directly; if the detection conditions are met, the target ultrasonic wave can be sent by the determined ultrasonic output device, and then the target reflected wave can be received by the determined ultrasonic receiving device. The electronic device determines the ultrasonic transmission data based on the target reflected wave and the target ultrasonic wave, and then inputs the ultrasonic transmission data into the state detection model to determine the switch state of the elevator door.

[0119] It should be understood that, although the steps in the above-mentioned flowcharts are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above-mentioned flowcharts may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0120] Based on the foregoing embodiments, an embodiment of the present application provides an elevator door opening and closing detection device, which includes the modules included and the units included in the modules, which can be implemented by a processor; of course, it can also be implemented by a logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.

[0121] Fig. 9 This is a schematic diagram of the structure of the elevator door opening and closing detection device provided in the embodiment of the present application. Please refer to Fig. 9 , the device includes: an acoustic wave detection module 910, a data processing module 920 and a state determination module 930;

[0122] The sound wave detection module 910 is used to send a target ultrasonic wave through an ultrasonic output device and receive a target reflected wave corresponding to the target ultrasonic wave through an ultrasonic receiving device;

[0123] The data processing module 920 is used to determine the ultrasonic transmission data according to the target ultrasonic wave and the target reflected wave, and the ultrasonic transmission data includes at least one of the following: the energy change of the target ultrasonic wave and the target reflected wave, and the time difference between sending the target ultrasonic wave and receiving the target reflected wave;

[0124] The state determination module 930 is used to determine the open and close state of the elevator door based on the ultrasonic transmission data.

[0125] In one embodiment, the sound wave detection module 910 is also specifically used to determine whether the electronic device meets the detection conditions, and the detection conditions include at least one of the following: whether the current time is within a preset detection time period, whether the change trend of the wireless network signal of the electronic device conforms to the preset change trend, whether the motion state of the electronic device is a preset motion state, and whether the electronic device is in use; when the electronic device meets the detection conditions, a target ultrasonic wave is sent through an ultrasonic output device, and a target reflected wave corresponding to the target ultrasonic wave is received through an ultrasonic receiving device.

[0126] In one embodiment, in the device, in the process of determining the usage status of the electronic device, it can be determined whether the electronic device is in a handheld state based on the gyroscope of the electronic device; and / or, it can be determined whether the electronic device is in a bright screen state based on the screen information of the electronic device.

[0127] In one embodiment, when the ultrasonic transmission data includes energy changes of the target ultrasonic wave and the target reflected wave, the state determination module 930 is specifically used to output the ultrasonic transmission data to the state detection model to obtain the switch state of the elevator door. The state detection model is a neural network model trained based on pre-input sample data. The sample data includes: the energy change of the ultrasonic wave and the corresponding switch state of the elevator door.

[0128] In one embodiment, when the ultrasonic transmission data is the time difference between sending the target ultrasonic wave and receiving the target reflected wave, the state determination module 930 is specifically used to determine the switch state of the elevator door based on the time difference between sending the target ultrasonic wave and receiving the target reflected wave and the mapping relationship between the time difference and the switch state of the elevator door.

[0129] In one embodiment, if the electronic device includes a plurality of ultrasonic wave output devices, the sound wave detection module 910 is further configured to use the ultrasonic wave output device disposed on the back of the electronic device as the ultrasonic wave output device for transmitting the target ultrasonic wave.

[0130] In one embodiment, if the electronic device includes multiple ultrasonic receiving devices, the sound wave detection module 910 is also used to use the ultrasonic receiving device closest to the ultrasonic output device as the ultrasonic receiving device for receiving the target reflected wave; or, use the ultrasonic receiving device in the same direction as the ultrasonic output device as the ultrasonic receiving device for receiving the target reflected wave.

[0131] In one embodiment, if the electronic device includes a plurality of ultrasonic receiving devices, the sound wave detection module 910 is further configured to use all the ultrasonic receiving devices as ultrasonic receiving devices for receiving target reflected waves.

[0132] In one embodiment, the state determination module 930 is also used to: switch the network of the electronic device from the wireless communication WIFI network to the mobile data network when the switch state of the elevator door is closed; and / or switch the near-field communication access card of the electronic device to the target access card.

[0133] In the elevator door opening and closing detection device provided in the embodiment of the present application, a target ultrasonic wave can be sent through an ultrasonic output device, and a target reflected wave corresponding to the target ultrasonic wave can be received through an ultrasonic receiving device; ultrasonic transmission data can be determined according to the target ultrasonic wave and the target reflected wave; and the opening and closing state of the elevator door can be determined based on the ultrasonic transmission data. Among them, the ultrasonic transmission data can include at least one of the following: energy changes of the target ultrasonic wave and the target reflected wave, and the time difference between sending the target ultrasonic wave and receiving the target reflected wave. Since the ultrasonic wave is sent and received by the ultrasonic output device and the ultrasonic receiving device, and can be implemented by audio-related devices such as speakers and microphones for electronic devices, there is no need to set up other devices, and after processing the acquired ultrasonic transmission data, the opening and closing state of the elevator door can be determined.

[0134] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0135] It should be noted that in the embodiments of this application Fig. 9 The division of modules in the elevator door opening and closing detection device shown is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of a software functional unit. It may also be implemented in the form of a combination of software and hardware.

[0136] It should be noted that in the embodiment of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.

[0137] Fig.10 For a schematic diagram of the structure of the computer device provided in the embodiment of the present application, please refer to Fig.10 , an embodiment of the present application provides a computer device, which may be the above-mentioned electronic device, and its internal structure diagram may be as shown in Fig.10 As shown. The computer device includes a processor 1020, a memory and a network interface 1040 connected via a system bus 1010. Among them, the processor 1020 of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium 1031 and an internal memory 1032. The non-volatile storage medium 1031 stores an operating system, a computer program and a database. The internal memory 1032 provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium 1031. The database of the computer device is used to store data. The network interface 1040 of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor 1020, the above method is implemented.

[0138] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the method provided in the above embodiment are implemented.

[0139] An embodiment of the present application provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the steps of the method provided in the above method embodiment.

[0140] Those skilled in the art will understand that Fig.10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0141] In one embodiment, the elevator door opening and closing detection device provided in the present application can be implemented in the form of a computer program. The computer program can be Fig.10 The computer device shown in the figure can be run. The memory of the computer device can store various program modules constituting the above-mentioned device. The computer program composed of various program modules enables the processor to execute the steps of the method of each embodiment of the present application described in this specification.

[0142] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.

[0143] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in one embodiment" or "in some embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above description of each embodiment tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. For the sake of brevity, this article will not repeat them.

[0144] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist at the same time, and object B exists alone.

[0145] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0146] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or modules can be electrical, mechanical or other forms.

[0147] The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed on multiple network units; some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.

[0148] In addition, all functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may be a separate unit, or two or more modules may be integrated into one unit; the above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0149] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.

[0150] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0151] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0152] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0153] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0154] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for detecting an elevator door opening and closing, characterized in that: Applied to an electronic device, the electronic device has an ultrasonic output device and an ultrasonic receiving device, the method comprises: Sending a target ultrasonic wave through the ultrasonic output device, and receiving a target reflected wave corresponding to the target ultrasonic wave through the ultrasonic receiving device; Determine ultrasonic transmission data according to the target ultrasonic wave and the target reflected wave, wherein the ultrasonic transmission data includes at least one of the following: energy changes of the target ultrasonic wave and the target reflected wave, and a time difference between sending the target ultrasonic wave and receiving the target reflected wave; The open / closed state of the elevator door is determined based on the ultrasonic transmission data.

2. The method according to claim 1, characterized in that: Before sending the target ultrasonic wave by the ultrasonic output device and receiving the target reflected wave corresponding to the target ultrasonic wave by the ultrasonic receiving device, the method further includes: Determine whether the electronic device meets a detection condition, wherein the detection condition includes at least one of the following: whether the current time is within a preset detection time period, whether the change trend of the wireless network signal of the electronic device meets the preset change trend, whether the motion state of the electronic device is a preset motion state, and whether the electronic device is in use; The step of sending a target ultrasonic wave through the ultrasonic output device and receiving a target reflected wave corresponding to the target ultrasonic wave through the ultrasonic receiving device comprises: When the electronic device meets the detection condition, the target ultrasonic wave is sent through the ultrasonic output device, and the target reflected wave corresponding to the target ultrasonic wave is received through the ultrasonic receiving device.

3. The method according to claim 2, characterized in that The method for determining whether the electronic device is in use includes: determining whether the electronic device is in a handheld state according to a gyroscope of the electronic device; and / or, Determine whether the electronic device is in a screen-on state according to screen information of the electronic device.

4. The method according to claim 1 or 2, characterized in that: In a case where the ultrasonic transmission data includes energy changes of the target ultrasonic wave and the target reflected wave, determining the switch state of the elevator door based on the ultrasonic transmission data includes: The ultrasonic transmission data is output to a state detection model to obtain the switch state of the elevator door. The state detection model is a neural network model trained based on pre-input sample data. The sample data includes: energy changes of the ultrasonic wave and the corresponding switch state of the elevator door.

5. The method according to claim 1 or 2, characterized in that: In a case where the ultrasonic transmission data is a time difference between sending the target ultrasonic wave and receiving the target reflected wave, determining the switch state of the elevator door based on the ultrasonic transmission data includes: The switch state of the elevator door is determined according to the time difference between sending the target ultrasonic wave and receiving the target reflected wave and the mapping relationship between the time difference and the switch state of the elevator door.

6. The method according to claim 1, characterized in that If the electronic device includes a plurality of ultrasonic output devices, before sending the target ultrasonic wave through the ultrasonic output device, the method further includes: The ultrasonic wave output device provided on the back side of the electronic device is used as the ultrasonic wave output device for transmitting the target ultrasonic wave.

7. The method according to claim 1, characterized in that If the electronic device includes a plurality of ultrasonic receiving devices, before receiving the target reflected wave corresponding to the target ultrasonic wave by the ultrasonic receiving device, the method further includes: The ultrasonic receiving device closest to the ultrasonic output device is used as the ultrasonic receiving device for receiving the target reflected wave; or, An ultrasonic receiving device facing the same direction as the ultrasonic output device is used as an ultrasonic receiving device for receiving the target reflected wave.

8. The method according to claim 1, characterized in that If the electronic device includes a plurality of ultrasonic receiving devices, before receiving the target reflected wave corresponding to the target ultrasonic wave by the ultrasonic receiving device, the method further includes: All ultrasonic receiving devices are used as ultrasonic receiving devices for receiving the target reflected waves.

9. The method according to claim 1, characterized in that: After determining the open / closed state of the elevator door based on the ultrasonic transmission data, the method further includes: When the switch state of the elevator door is closed: Switching the network of the electronic device from a wireless communication WIFI network to a mobile data network; and / or, Switch the NFC access card of the electronic device to the target access card.

10. An elevator door opening and closing detection device, characterized in that: Applied to electronic equipment, the electronic equipment has an ultrasonic output device and an ultrasonic receiving device, the device comprises: a sound wave detection module, a data processing module and a state determination module; The sound wave detection module is used to send a target ultrasonic wave through the ultrasonic wave output device and receive a target reflected wave corresponding to the target ultrasonic wave through the ultrasonic wave receiving device; The data processing module is used to determine ultrasonic transmission data according to the target ultrasonic wave and the target reflected wave, wherein the ultrasonic transmission data includes at least one of the following: energy changes of the target ultrasonic wave and the target reflected wave, and a time difference from sending the target ultrasonic wave to receiving the target reflected wave; The state determination module is used to determine the open and close state of the elevator door based on the ultrasonic transmission data.

11. A computer device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the program, the steps of the method according to any one of claims 1 to 9 are implemented.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.