Air leakage detection method, device and equipment for mattress and medium
Through communication between terminals and servers, the air pressure information of smart mattresses is detected in real time, solving the problem of low air leakage detection efficiency of smart mattresses and achieving fast and accurate detection results.
Patent Information
- Application Number
- CN202411212715.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-12-10
AI Technical Summary
During use, smart mattresses may leak due to poor pipe connection or airbag problems. The lack of existing detection tools leads to inefficient detection.
Provide a mattress air leakage detection method and device, through communication between the terminal and the server, obtain equipment codes, request mattress detection information, and determine the air leakage detection result based on the air pressure information obtained multiple times, real-time air leakage detection .
It improves the efficiency of mattress air leakage detection, can quickly obtain detection information and results, and reduces the need for return to the factory to test.
Smart Images

Figure CN119104236A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of smart home technology, and in particular to a mattress leakage detection method, device, equipment and medium. Background Art
[0002] As living standards continue to improve, smart mattresses have attracted people's attention and favor. However, after the product is delivered to the user and installed by the after-sales staff, the mattress may leak after the user has used it for a period of time due to loose pipe connections or problems with the airbag itself. Due to the lack of testing tools, after-sales staff often have to return the mattress to the factory for testing, resulting in low testing efficiency. Summary of the invention
[0003] The embodiments of the present invention provide a mattress air leakage detection method, device, equipment and medium, which can perform real-time air leakage detection on a mattress and improve detection efficiency.
[0004] In a first aspect, an embodiment of the present invention provides a mattress leakage detection method, the method being executed by a terminal and comprising:
[0005] Get the device code of the mattress to be tested from the test record list;
[0006] Requesting mattress detection information corresponding to the device code from a server based on the device code;
[0007] Sending an air leakage detection request to a server based on the mattress detection information, so that the server obtains air pressure information from the mattress multiple times based on the air leakage detection request, and determines an air leakage detection result based on the multiple air pressure information;
[0008] Receive the air leakage detection result sent by the server; wherein the air leakage detection result includes air leakage and no air leakage.
[0009] In a second aspect, an embodiment of the present invention further provides a mattress leakage detection method, the method being executed by a server and comprising:
[0010] Acquire mattress detection information corresponding to the device code, and send the mattress detection information to the terminal, so that the terminal sends a leakage detection request to the server based on the mattress detection information;
[0011] receiving an air leakage detection request sent by a terminal, and acquiring air pressure information from a mattress multiple times based on the air leakage detection request;
[0012] A leakage detection result is determined based on the plurality of air pressure information, and the leakage detection result is sent to a terminal; wherein the leakage detection result includes leakage and no leakage.
[0013] In a third aspect, an embodiment of the present invention further provides a mattress leakage detection device, which is arranged in a terminal and includes:
[0014] A device code acquisition module is used to obtain the device code of the mattress to be tested from the test record list;
[0015] A mattress detection information request module, configured to request, based on the device code, from a server the mattress detection information corresponding to the device code;
[0016] An air leakage detection request sending module, configured to send an air leakage detection request to a server based on the mattress detection information, so that the server obtains air pressure information from the mattress multiple times based on the air leakage detection request, and determines an air leakage detection result based on the multiple air pressure information;
[0017] The air leakage detection result receiving module is used to receive the air leakage detection result sent by the server; wherein the air leakage detection result includes air leakage and no air leakage.
[0018] In a fourth aspect, an embodiment of the present invention further provides a mattress air leakage detection device, the device is arranged in a server, and the device comprises:
[0019] A mattress detection information acquisition module, used to acquire mattress detection information corresponding to the device code, and send the mattress detection information to the terminal, so that the terminal sends a leakage detection request to the server based on the mattress detection information;
[0020] An air leakage detection request receiving module, used to receive an air leakage detection request sent by a terminal, and obtain air pressure information from the mattress multiple times based on the air leakage detection request;
[0021] The air leakage detection result determination module is used to determine the air leakage detection result based on the multiple air pressure information, and send the air leakage detection result to the terminal; wherein the air leakage detection result includes air leakage and no air leakage.
[0022] In a fifth aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:
[0023] at least one processor; and
[0024] a memory communicatively connected to the at least one processor; wherein,
[0025] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the mattress leakage detection method described in the embodiment of the present invention.
[0026] In a sixth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the mattress leakage detection method described in the embodiment of the present invention when executed.
[0027] The embodiment of the present invention discloses a method, device, equipment and medium for detecting air leakage of a mattress, including: obtaining the device code of a mattress to be detected from a detection record list; requesting the mattress detection information corresponding to the device code from a server based on the device code; sending an air leakage detection request to the server based on the mattress detection information, so that the server obtains air pressure information from the mattress multiple times based on the air leakage detection request, and determines the air leakage detection result based on multiple air pressure information; receiving the air leakage detection result sent by the server; wherein the air leakage detection result includes air leakage and no air leakage. The above technical scheme can detect air leakage on the mattress in real time, specifically considering obtaining the device code of the mattress to be detected from the detection record list, requesting the mattress detection information corresponding to the device code from the server based on the device code, and quickly obtaining the mattress detection information; at the same time, it also considers sending an air leakage detection request to the server based on the mattress detection information and receiving the air leakage detection result sent by the server, and quickly obtaining the air leakage detection result. Compared with the prior art, the technical scheme provided by this embodiment can quickly obtain mattress detection information and air leakage detection results, thereby improving the detection efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 is a flow chart of a mattress leakage detection method in Embodiment 1 of the present invention;
[0029] Figure 2 is a flow chart of a mattress leakage detection method in Embodiment 2 of the present invention;
[0030] Figure 3 It is a structural schematic diagram of a mattress air leakage detection device in Embodiment 3 of the present invention;
[0031] Figure 4 It is a structural schematic diagram of a mattress air leakage detection device in Embodiment 4 of the present invention;
[0032] Figure 5 It is a structural schematic diagram of an electronic device in Embodiment 5 of the present invention. DETAILED DESCRIPTION
[0033] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0034] Embodiment 1
[0035] Figure 1 This is a flowchart of a mattress leakage detection method provided in Embodiment 1 of the present invention. The method is executed by a terminal. This embodiment is applicable to the case of performing leakage detection on a mattress. The method can be executed by a mattress leakage detection device, which can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, which can be a mobile terminal, a PC or a server, etc. Specifically, it includes the following steps:
[0036] S110, obtaining the device code of the mattress to be tested from the test record list.
[0037] In this embodiment, the detection record list is stored in the terminal and is used to record the device code of the mattress; the terminal can be understood as a smart phone, and the device code can be understood as a unique identifier of the mattress, such as the MAC address of the mattress. Specifically, the device code of the mattress to be detected is obtained from the detection record list of the terminal.
[0038] S120: Requesting mattress detection information corresponding to the device code from the server based on the device code.
[0039] In this embodiment, the server stores mattress detection information corresponding to the device code; wherein, the mattress detection information can be understood as key information for mattress leakage detection, which can include remaining detection time; when performing leakage detection on the mattress, a detection time is set, such as 30 minutes, and the remaining detection time is the remaining time for leakage detection.
[0040] Continuing with the above description, the terminal requests the mattress detection information corresponding to the device code from the server according to the device code of the mattress to be detected.
[0041] S130: Sending an air leakage detection request to the server based on the mattress detection information, so that the server obtains air pressure information from the mattress multiple times based on the air leakage detection request, and determines the air leakage detection result based on the multiple air pressure information.
[0042] In this embodiment, the air leakage detection request can be understood as a request for performing air leakage detection on the mattress to be detected; the mattress to be detected is divided into a left mattress and a right mattress, and the shoulder position, waist position and hip position of the left mattress are all provided with air bags, and similarly, the shoulder position, waist position and hip position of the right mattress are all provided with air bags; the air pressure information is the air pressure value of the air bag in the mattress. The air leakage detection result includes air leakage and no air leakage.
[0043] Continuing with the above description, the air leakage detection request may be a request for air leakage detection on the left mattress or a request for air leakage detection on the right mattress. When the air leakage detection request is a request for air leakage detection on the left mattress, the terminal sends the air leakage detection request to the server based on the mattress detection information, so that the server obtains air pressure information from the shoulder position, waist position and hip position of the left mattress multiple times based on the air leakage detection request, and determines the air leakage detection results of the shoulder position, waist position and hip position of the left mattress based on the multiple air pressure information; when the air leakage detection request is a request for air leakage detection on the right mattress, the terminal sends the air leakage detection request to the server based on the mattress detection information, so that the server obtains air pressure information from the shoulder position, waist position and hip position of the right mattress multiple times based on the air leakage detection request, and determines the air leakage detection results of the shoulder position, waist position and hip position of the right mattress based on the multiple air pressure information.
[0044] In this embodiment, an air leakage detection request is sent to the server based on the mattress detection information, so that the server obtains air pressure information from the mattress multiple times based on the air leakage detection request. One implementation method can be described as the following steps:
[0045] a1) extracting the first remaining detection time in the mattress detection information;
[0046] Exemplarily, it is assumed that the first remaining detection time is a minutes.
[0047] b1) sending an air leakage detection request to the server based on the first remaining detection time, so that the server obtains air pressure information from the mattress multiple times based on the air leakage detection request.
[0048] In this embodiment, with respect to sending an air leakage detection request to the server based on the first remaining detection time, so that the server obtains air pressure information from the mattress multiple times based on the air leakage detection request, one implementation method can be described as: if the first remaining detection time is greater than or equal to a set threshold, sending a first air leakage detection request to the server, so that the server obtains air pressure information from the mattress multiple times based on the first air leakage detection request within the first remaining detection time.
[0049] Continuing with the above description, the set threshold is a value set in advance; for example, assuming that the set threshold is e, if the first remaining detection time a is greater than or equal to the set threshold e, the terminal sends a first air leakage detection request to the server, so that the server obtains air pressure information from the mattress multiple times based on the first air leakage detection request within a minute. The first air leakage detection request carries the first remaining detection time.
[0050] In this embodiment, for sending an air leakage detection request to the server based on the first remaining detection time, so that the server obtains air pressure information from the mattress multiple times based on the air leakage detection request, another implementation method can be described as: if the first remaining detection time is less than the set threshold, a second air leakage detection request carrying a second remaining detection time is sent to the server, so that the server obtains air pressure information from the mattress multiple times based on the second air leakage detection request within the second remaining detection time.
[0051] The first remaining detection time is the time extracted from the mattress detection information, and the second remaining detection time is a pre-set time, and the second remaining detection time is greater than the first remaining detection time, and the second remaining detection time is greater than a set threshold. Exemplarily, assuming that the second remaining detection time is b minutes, and b>a; if the first remaining detection time a is less than the set threshold e, the terminal sends a second air leakage detection request carrying the second remaining detection time b to the server, so that the server obtains air pressure information from the mattress multiple times based on the second air leakage detection request within b minutes.
[0052] Furthermore, if the first remaining detection time is less than the set threshold, it means that the first remaining detection time is short, but it is not possible to accurately detect whether the mattress is leaking in a short time. Therefore, it is necessary to set a second remaining detection time that is greater than the first remaining detection time, so that when the first remaining detection time is less than the set threshold, the terminal sends a second air leakage detection request carrying the second remaining detection time to the server, thereby avoiding the problem of inaccurate air leakage detection caused by a short detection time and improving the accuracy of air leakage detection.
[0053] S140: Receive the air leakage detection result sent by the server.
[0054] The air leakage detection result may be an air leakage detection result at the shoulder position, waist position and hip position of the left mattress or an air leakage detection result at the shoulder position, waist position and hip position of the right mattress.
[0055] Specifically, the terminal receives the leakage detection results of the shoulder position, waist position and hip position of the left mattress sent by the server, and displays the leakage detection results corresponding to the shoulder position, waist position and hip position of the left mattress, respectively. Exemplarily, the leakage detection results corresponding to the shoulder position, waist position and hip position of the left mattress are leakage, no leakage and no leakage, respectively; or, the terminal receives the leakage detection results of the shoulder position, waist position and hip position of the right mattress sent by the server, and displays the leakage detection results corresponding to the shoulder position, waist position and hip position of the right mattress, respectively. Exemplarily, the leakage detection results corresponding to the shoulder position, waist position and hip position of the right mattress are no leakage, no leakage and no leakage, respectively.
[0056] The technical solution of this embodiment is to obtain the device code of the mattress to be detected from the detection record list; request the mattress detection information corresponding to the device code from the server based on the device code; send a leakage detection request to the server based on the mattress detection information, so that the server obtains air pressure information from the mattress multiple times based on the leakage detection request, and determines the leakage detection result based on the multiple air pressure information; and receive the leakage detection result sent by the server. The above technical solution specifically considers obtaining the device code of the mattress to be detected from the detection record list, and requesting the mattress detection information corresponding to the device code from the server based on the device code, so that the mattress detection information can be quickly obtained; at the same time, it also considers sending a leakage detection request to the server based on the mattress detection information and receiving the leakage detection result sent by the server, so that the leakage detection result can be quickly obtained. The technical solution provided by this embodiment can quickly obtain mattress detection information and leakage detection results, thereby improving detection efficiency.
[0057] Embodiment 2
[0058] Figure 2 This is a flowchart of a mattress leakage detection method provided in Embodiment 2 of the present invention. The method is executed by a server and specifically includes the following steps:
[0059] S210: Acquire mattress detection information corresponding to the device code, and send the mattress detection information to the terminal, so that the terminal sends an air leakage detection request to the server based on the mattress detection information.
[0060] In this embodiment, mattress detection information corresponding to the device code of the mattress to be detected is obtained from the server, and the server sends the mattress detection information to the terminal, so that the terminal sends an air leakage detection request to the server according to the mattress detection information.
[0061] S220: receiving an air leakage detection request sent by the terminal, and acquiring air pressure information from the mattress multiple times based on the air leakage detection request.
[0062] In this embodiment, the server receives the air leakage detection request sent by the terminal, and based on the air leakage detection request, obtains air pressure information from the shoulder position, waist position and hip position of the left mattress or obtains air pressure information from the shoulder position, waist position and hip position of the right mattress multiple times.
[0063] In this embodiment, for the air leakage detection request sent by the receiving terminal, and based on the air leakage detection request, air pressure information is obtained from the mattress multiple times. One implementation method can be described as: the first air leakage detection request carrying a first remaining detection time sent by the receiving terminal, and the air pressure information is obtained from the mattress multiple times based on the first air leakage detection request within the first remaining detection time; or, the second air leakage detection request carrying a second remaining detection time sent by the receiving terminal, and the air pressure information is obtained from the mattress multiple times based on the second air leakage detection request within the second remaining detection time.
[0064] The second remaining detection time is greater than the first remaining detection time.
[0065] Continuing with the above description, exemplarily, the receiving terminal sends a first air leakage detection request carrying a first remaining detection time a, and obtains air pressure information from the shoulder position, waist position and hip position of the left mattress or the shoulder position, waist position and hip position of the right mattress based on the first air leakage detection request within a minute; or, the receiving terminal sends a second air leakage detection request carrying a second remaining detection time b, and obtains air pressure information from the shoulder position, waist position and hip position of the left mattress or the shoulder position, waist position and hip position of the right mattress based on the second air leakage detection request within b minutes.
[0066] S230: Determine a gas leakage detection result based on multiple air pressure information, and send the gas leakage detection result to the terminal.
[0067] The multiple air pressure information includes the first air pressure information and the non-first air pressure information. The first air pressure information can be understood as the air pressure information obtained for the first time, and the non-first air pressure information can be understood as the air pressure information obtained subsequently in addition to the air pressure information obtained for the first time, such as the air pressure information obtained for the second time, the air pressure information obtained for the third time, etc. The air leakage detection result includes air leakage and no air leakage.
[0068] Exemplarily, assuming that the server receives a first air leakage detection request carrying a first remaining detection time a sent by the terminal, and obtains air pressure information from the shoulder position, waist position and hip position of the left mattress multiple times within a minute based on the first air leakage detection request, then the shoulder position of the left mattress corresponds to multiple air pressure information, and similarly, the waist position and hip position also correspond to multiple air pressure information respectively; and, based on the multiple air pressure information corresponding to the shoulder position, waist position and hip position of the left mattress, the air leakage detection results corresponding to these three positions are determined, and the three air leakage detection results are sent to the terminal.
[0069] In this embodiment, for determining the air leakage detection result based on multiple air pressure information, one implementation method can be described as the following steps:
[0070] a2) determining an air pressure threshold based on the initial air pressure information and a preset specific gravity;
[0071] In this embodiment, the preset weight is a percentage set in advance; the air pressure threshold value can be determined based on the initial air pressure information and the preset weight by multiplying the initial air pressure information and the preset weight to obtain the air pressure threshold value. For example, taking the shoulder position of the left mattress as an example, assuming that the initial air pressure information is 5kp and the preset weight is 70%, the air pressure threshold value is 3.5kp.
[0072] b2) whenever non-first-time air pressure information is collected, the non-first-time air pressure information is compared with the air pressure threshold;
[0073] Exemplarily, after the air pressure information at the shoulder position of the left mattress is collected for the second time, the air pressure information is compared with the air pressure threshold value of 3.5 kp.
[0074] c2) If the non-first air pressure information is greater than or equal to the air pressure threshold, the air leakage detection result is no air leakage, and the next non-first air pressure information is continuously collected until the air leakage detection result is a leak, the first remaining detection time reaches the first threshold, or the second remaining detection time reaches the second threshold;
[0075] In this embodiment, the first threshold and the second threshold are pre-set values, such as 0. For example, taking the air pressure information collected for the second time as an example, if the air pressure information is greater than or equal to the air pressure threshold of 3.5 kp, the air leakage detection result is no air leakage, and the next non-first air pressure information is continuously collected until the air leakage detection result at the shoulder position of the left mattress is air leakage, the first remaining detection time reaches 0, or the second remaining detection time reaches 0.
[0076] d2) If the air pressure information is not less than the air pressure threshold value for the first time, the air leakage detection result is air leakage, and the collection of air pressure information is stopped.
[0077] Exemplarily, if the air pressure information collected for the second time is less than the air pressure threshold value of 3.5 kp, the air leakage detection result at the shoulder position of the left mattress is an air leakage, and the collection of air pressure information is stopped at this time.
[0078] The technical solution of this embodiment obtains the mattress detection information corresponding to the device code, and sends the mattress detection information to the terminal, so that the terminal sends a leakage detection request to the server based on the mattress detection information; receives the leakage detection request sent by the terminal, and obtains air pressure information from the mattress multiple times based on the leakage detection request; determines the leakage detection result based on multiple air pressure information, and sends the leakage detection result to the terminal. The above technical solution, receiving the leakage detection request sent by the terminal, and obtaining air pressure information from the mattress multiple times based on the leakage detection request, can quickly obtain air pressure information; determines the leakage detection result based on multiple air pressure information, and can quickly and accurately determine the leakage detection result. The technical solution provided by this embodiment can quickly obtain air pressure information, and then quickly and accurately determine the leakage detection result, thereby improving detection efficiency.
[0079] Embodiment 3
[0080] Figure 3 This is a schematic diagram of the structure of a mattress leakage detection device provided in Embodiment 3 of the present invention. The device is arranged in a terminal. Figure 3 As shown, the device comprises:
[0081] The device code acquisition module 310 is used to acquire the device code of the mattress to be tested from the test record list;
[0082] A mattress detection information request module 320, configured to request, based on the device code, from a server the mattress detection information corresponding to the device code;
[0083] An air leakage detection request sending module 330 is used to send an air leakage detection request to the server based on the mattress detection information, so that the server obtains air pressure information from the mattress multiple times based on the air leakage detection request, and determines the air leakage detection result based on the multiple air pressure information;
[0084] The air leakage detection result receiving module 340 is used to receive the air leakage detection result sent by the server; wherein the air leakage detection result includes air leakage and no air leakage.
[0085] Optionally, the air leakage detection request sending module 330 may specifically include:
[0086] A first remaining detection time extraction unit, used to extract the first remaining detection time in the mattress detection information;
[0087] The request sending unit is used to send an air leakage detection request to the server based on the first remaining detection time, so that the server obtains air pressure information from the mattress multiple times based on the air leakage detection request.
[0088] Optionally, the request sending unit may be specifically configured to:
[0089] If the first remaining detection time is greater than or equal to a set threshold, a first air leakage detection request is sent to the server, so that the server obtains air pressure information from the mattress multiple times based on the first air leakage detection request within the first remaining detection time.
[0090] Optionally, the request sending unit may be further configured to:
[0091] If the first remaining detection time is less than a set threshold, a second air leakage detection request carrying a second remaining detection time is sent to the server, so that the server obtains air pressure information from the mattress multiple times based on the second air leakage detection request within the second remaining detection time; wherein the second remaining detection time is greater than the first remaining detection time.
[0092] Embodiment 4
[0093] Figure 4 This is a schematic diagram of the structure of a mattress leakage detection device provided in Embodiment 4 of the present invention. The device is arranged in a server, such as Figure 4 As shown, the device comprises:
[0094] A mattress detection information acquisition module 410 is used to acquire mattress detection information corresponding to the device code, and send the mattress detection information to the terminal, so that the terminal sends a leakage detection request to the server based on the mattress detection information;
[0095] An air leakage detection request receiving module 420 is used to receive an air leakage detection request sent by a terminal, and obtain air pressure information from the mattress multiple times based on the air leakage detection request;
[0096] The air leakage detection result determination module 430 is used to determine the air leakage detection result based on the multiple air pressure information, and send the air leakage detection result to the terminal; wherein the air leakage detection result includes air leakage and no air leakage.
[0097] Optionally, the air leakage detection request receiving module 420 may be specifically used for:
[0098] receiving a first air leakage detection request carrying a first remaining detection time sent by a terminal, and acquiring air pressure information from the mattress multiple times based on the first air leakage detection request within the first remaining detection time; or,
[0099] A second air leakage detection request carrying a second remaining detection time sent by the receiving terminal is received, and air pressure information is obtained from the mattress multiple times based on the second air leakage detection request within the second remaining detection time; wherein the second remaining detection time is greater than the first remaining detection time.
[0100] Optionally, the air pressure information includes first-time air pressure information and non-first-time air pressure information.
[0101] Optionally, the air leakage detection result determination module 430 may be specifically used to:
[0102] Determining an air pressure threshold based on the first air pressure information and a preset specific gravity;
[0103] Whenever non-first-time air pressure information is collected, the non-first-time air pressure information is compared with the air pressure threshold;
[0104] If the non-first air pressure information is greater than or equal to the air pressure threshold, the air leakage detection result is no air leakage, and the next non-first air pressure information is continuously collected until the air leakage detection result is a leak, the first remaining detection time reaches the first threshold, or the second remaining detection time reaches the second threshold;
[0105] If the non-first air pressure information is less than the air pressure threshold, the air leakage detection result is an air leakage, and the collection of air pressure information is stopped.
[0106] The above device can execute the methods provided by all the above embodiments of the present invention, and has the corresponding functional modules and beneficial effects of executing the above methods. For technical details not described in detail in this embodiment, please refer to the methods provided by all the above embodiments of the present invention.
[0107] Embodiment 5
[0108] Figure 5 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0109] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0110] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0111] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a mattress leakage detection method.
[0112] In some embodiments, the air leakage detection method of the mattress may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the air leakage detection method of the mattress described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the air leakage detection method of the mattress in any other appropriate manner (e.g., by means of firmware).
[0113] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0114] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0115] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0116] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0117] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0118] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0119] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0120] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A mattress leakage detection method, characterized in that: The method is executed by a terminal, and includes: Get the device code of the mattress to be tested from the test record list; Requesting mattress detection information corresponding to the device code from a server based on the device code; Sending an air leakage detection request to a server based on the mattress detection information, so that the server obtains air pressure information from the mattress multiple times based on the air leakage detection request, and determines an air leakage detection result based on the multiple air pressure information; Receive the air leakage detection result sent by the server; wherein the air leakage detection result includes air leakage and no air leakage.
2. The method according to claim 1, characterized in that: Sending an air leakage detection request to a server based on the mattress detection information, so that the server obtains air pressure information from the mattress multiple times based on the air leakage detection request, including: Extracting a first remaining detection time from the mattress detection information; An air leakage detection request is sent to the server based on the first remaining detection time, so that the server obtains air pressure information from the mattress multiple times based on the air leakage detection request.
3. The method according to claim 2, characterized in that Sending an air leakage detection request to a server based on the first remaining detection time, so that the server obtains air pressure information from the mattress multiple times based on the air leakage detection request, includes: If the first remaining detection time is greater than or equal to a set threshold, a first air leakage detection request is sent to the server, so that the server obtains air pressure information from the mattress multiple times based on the first air leakage detection request within the first remaining detection time.
4. The method according to claim 2, characterized in that: Sending an air leakage detection request to a server based on the first remaining detection time, so that the server obtains air pressure information from the mattress multiple times based on the air leakage detection request, includes: If the first remaining detection time is less than a set threshold, a second air leakage detection request carrying a second remaining detection time is sent to the server, so that the server obtains air pressure information from the mattress multiple times based on the second air leakage detection request within the second remaining detection time; wherein the second remaining detection time is greater than the first remaining detection time.
5. A mattress leakage detection method, characterized in that: The method is executed by a server and includes: Acquire mattress detection information corresponding to the device code, and send the mattress detection information to the terminal, so that the terminal sends a leakage detection request to the server based on the mattress detection information; receiving an air leakage detection request sent by a terminal, and acquiring air pressure information from a mattress multiple times based on the air leakage detection request; A leakage detection result is determined based on the plurality of air pressure information, and the leakage detection result is sent to a terminal; wherein the leakage detection result includes leakage and no leakage.
6. The method according to claim 5, characterized in that Receiving an air leakage detection request sent by a terminal, and acquiring air pressure information from a mattress multiple times based on the air leakage detection request, including: receiving a first air leakage detection request carrying a first remaining detection time sent by a terminal, and acquiring air pressure information from the mattress multiple times based on the first air leakage detection request within the first remaining detection time; or, A second air leakage detection request carrying a second remaining detection time sent by the receiving terminal is received, and air pressure information is obtained from the mattress multiple times based on the second air leakage detection request within the second remaining detection time; wherein the second remaining detection time is greater than the first remaining detection time.
7. The method according to claim 5, characterized in that The air pressure information includes the first air pressure information and the non-first air pressure information, and the air leakage detection result is determined based on the plurality of air pressure information, including: Determining an air pressure threshold based on the first air pressure information and a preset specific gravity; Whenever non-first-time air pressure information is collected, the non-first-time air pressure information is compared with the air pressure threshold; If the non-first air pressure information is greater than or equal to the air pressure threshold, the air leakage detection result is no air leakage, and the next non-first air pressure information is continuously collected until the air leakage detection result is a leak, the first remaining detection time reaches the first threshold, or the second remaining detection time reaches the second threshold; If the non-first air pressure information is less than the air pressure threshold, the air leakage detection result is an air leakage, and the collection of air pressure information is stopped.
8. A mattress air leakage detection device, characterized in that: The device is arranged in a terminal and includes: A device code acquisition module is used to obtain the device code of the mattress to be tested from the test record list; A mattress detection information request module, configured to request, based on the device code, from a server the mattress detection information corresponding to the device code; An air leakage detection request sending module, configured to send an air leakage detection request to a server based on the mattress detection information, so that the server obtains air pressure information from the mattress multiple times based on the air leakage detection request, and determines an air leakage detection result based on the multiple air pressure information; The air leakage detection result receiving module is used to receive the air leakage detection result sent by the server; wherein the air leakage detection result includes air leakage and no air leakage.
9. A mattress air leakage detection device, characterized in that: The device is arranged in a server and includes: A mattress detection information acquisition module, used to acquire mattress detection information corresponding to the device code, and send the mattress detection information to the terminal, so that the terminal sends a leakage detection request to the server based on the mattress detection information; An air leakage detection request receiving module, used to receive an air leakage detection request sent by a terminal, and obtain air pressure information from the mattress multiple times based on the air leakage detection request; The air leakage detection result determination module is used to determine the air leakage detection result based on the multiple air pressure information, and send the air leakage detection result to the terminal; wherein the air leakage detection result includes air leakage and no air leakage.
10. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the mattress leakage detection method according to any one of claims 1 to 7.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the mattress leakage detection method according to any one of claims 1 to 7 when executed.
