Detection method, device and equipment for mattress action recognition and judgment and medium
By setting sensors on the smart mattress and transmitting data to the cloud to generate action test reports, the error and time waste caused by manual statistics are solved, and efficient and accurate sleep action recognition and judgment are achieved.
Patent Information
- Application Number
- CN202410809244.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-09-27
AI Technical Summary
Existing smart mattresses rely on manual statistics for sleep action detection, which is prone to errors and errors, and the statistics are long.
By setting sensors in the mattress, obtaining timing data and transmitting it to the cloud, generating an action test report, and achieving automated mattress motion recognition and determination, reducing manual intervention.
It improves the accuracy and efficiency of sleep action recognition, reduces the error rate, saves manual statistics time, and reduces costs.
Smart Images

Figure CN118713950A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a detection method, device, equipment and medium for mattress action recognition and determination. Background Art
[0002] Existing smart mattresses have motion detection functions, which can record sleep movements based on the detection data obtained by motion detection to assist in monitoring and judging sleep movement scenes. However, most of them currently rely on engineers to manually review the original log data to determine whether the sleep movement scene is effective, and then record and count them item by item in a table. In the process of manual statistics, errors and failure rates are prone to occur, and the statistics take a long time. Summary of the invention
[0003] The main purpose of the embodiments of the present invention is to provide a detection method, device, equipment and medium for mattress motion recognition and determination, in order to solve at least one problem of the prior art. The present invention can efficiently perform mattress motion recognition and determination detection.
[0004] To achieve the above-mentioned purpose, one aspect of an embodiment of the present invention provides a detection method for mattress motion recognition and determination, the method comprising:
[0005] In response to a first detection instruction of the detection object, first log data of a target mattress is acquired; a plurality of sensors are arranged in the target mattress, and the first log data includes time series data of all sensors;
[0006] Transmitting the first log data to the cloud to obtain second log data;
[0007] In response to a second detection instruction of the detection object, obtaining second log data of the target mattress from the cloud;
[0008] In response to a third detection instruction of the detection object, an action test report of the target mattress is generated according to the second log data; the action test report includes an action record generated on the target mattress, and the action record is generated based on the time series data of all sensors in the target mattress.
[0009] In some embodiments, the method further comprises the following steps:
[0010] The sensor in the target mattress senses the operation action of the target object at each time point to generate the sensor data of the sensor at the corresponding time point;
[0011] The sensor data generated at all time points within the preset time period are sorted in chronological order to obtain the time series data corresponding to the sensor.
[0012] In some embodiments, the first detection instruction includes detecting a serial port click action and a serial port selection action; in response to the first detection instruction of the detection object, obtaining first log data of the target mattress includes the following steps:
[0013] In response to the detection serial port click action of the detection object, a serial port list is displayed; the serial port list includes serial port information corresponding to multiple mattresses authorized for detection;
[0014] In response to the serial port selection action of the detection object, target serial port information is determined from the serial port list, and first log data of the target mattress is acquired by serial port reading based on the target serial port information.
[0015] In some embodiments, transmitting the first log data to the cloud to obtain the second log data includes the following steps:
[0016] The first log data is transmitted to the cloud, and then the first log data is stored in a preset database in the cloud according to a preset table structure to obtain second log data;
[0017] The table structure includes log identifier, time point and sensor data.
[0018] In some embodiments, in response to a second detection instruction of the detection object, obtaining second log data of the target mattress from the cloud includes the following steps:
[0019] In response to a second detection instruction of the detection object, second log data of the target mattress obtained from the cloud is printed to a preset display panel.
[0020] In some embodiments, the time series data includes sensing data of the sensor at each time point; generating an action test report of the target mattress according to the second log data includes the following steps:
[0021] Collecting sensor data of all sensors at each time point from the second log data, and generating action records at corresponding time points according to the sensor data of all sensors based on preset rules;
[0022] The motion test report of the target mattress is obtained based on the motion records at all time points.
[0023] In some embodiments, the method further comprises the following steps:
[0024] In response to a fourth detection instruction of the detection object, a data row corresponding to the target action record is derived from the second log data.
[0025] To achieve the above-mentioned purpose, another aspect of an embodiment of the present invention provides a detection device for mattress motion recognition and determination, the device comprising:
[0026] The first module is used to obtain first log data of a target mattress in response to a first detection instruction of a detection object; a plurality of sensors are provided in the target mattress, and the first log data includes time series data of all sensors;
[0027] The second module is used to transmit the first log data to the cloud to obtain second log data;
[0028] A third module is used to obtain second log data of the target mattress from the cloud in response to a second detection instruction of the detection object;
[0029] The fourth module is used to generate an action test report of the target mattress according to the second log data in response to the third detection instruction of the detection object; the action test report includes the action record generated on the target mattress, and the action record is generated based on the timing data of all sensors in the target mattress.
[0030] In some embodiments, when the result of the scanning process is failure, the device further includes:
[0031] The fifth module is used to sense the operation action of the target object at each time point through the sensor in the target mattress to generate the sensing data of the sensor at the corresponding time point;
[0032] The sixth module is used to sort the sensor data generated at all time points within a preset time period in a time series order to obtain time series data corresponding to the sensor;
[0033] In some embodiments, the test time includes a start time and an end time; when the number of reconnections is equal to a preset reconnection threshold, the device further includes:
[0034] The seventh module is used to export a data row corresponding to the target action record from the second log data in response to the fourth detection instruction of the detection object.
[0035] To achieve the above objective, another aspect of an embodiment of the present invention provides an electronic device, the electronic device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the above method when executing the computer program.
[0036] To achieve the above objective, another aspect of an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above method is implemented.
[0037] The embodiments of the present invention include at least the following beneficial effects: the present invention provides a detection method, device, equipment and medium for mattress motion recognition and determination, the scheme obtains the first log data of the target mattress by responding to the first detection instruction of the detection object; the target mattress is provided with multiple sensors, and the first log data includes the time series data of all sensors; the first log data is transmitted to the cloud to obtain the second log data; in response to the second detection instruction of the detection object, the second log data of the target mattress is obtained from the cloud; in response to the third detection instruction of the detection object, an action test report of the target mattress is generated according to the second log data; the action test report includes the action record generated on the target mattress, and the action record is generated based on the time series data of all sensors in the target mattress. The embodiment of the present invention collects and counts the corresponding data through different node response identifiers, thereby realizing the detection record of automated mattress motion recognition and determination, and generating the corresponding test report, so that the statistical results are more accurate, the error rate is lower, and the labor time is reduced to save costs. The embodiment of the present invention can efficiently realize the detection of mattress motion recognition and determination. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 is a flow chart of a detection method for mattress motion recognition and determination provided by an embodiment of the present invention;
[0039] Figure 2 is a schematic diagram of an example interface of a serial port reading tool provided in an embodiment of the present invention;
[0040] Figure 3 is a schematic diagram of operation example 1 of the operation panel end provided by an embodiment of the present invention;
[0041] Figure 4 is a schematic diagram of an example of cloud-based analysis of log data provided by an embodiment of the present invention;
[0042] Figure 5 is a schematic diagram of an example of action record recognition provided by an embodiment of the present invention;
[0043] Figure 6 is a schematic diagram of an example of a test report provided by an embodiment of the present invention;
[0044] Figure 7 is a schematic diagram of the overall application process of the detection method for mattress motion recognition and determination provided by an embodiment of the present invention;
[0045] Figure 8 is a schematic diagram of operation example 2 of the operation panel end provided by an embodiment of the present invention;
[0046] Fig. 9 is a schematic diagram of operation example 3 of the operation panel end provided by an embodiment of the present invention;
[0047] Fig.10 It is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present invention. They are only examples of devices and methods consistent with some aspects of the embodiments of the present invention as detailed in the attached claims.
[0049] It is understood that the terms "first", "second", etc. used in the present invention may be used herein to describe various concepts, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another. For example, without departing from the scope of the embodiments of the present invention, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0050] The terms "at least one", "multiple", "each", "any", etc. used in the present invention, at least one includes one, two or more, multiple includes two or more, each refers to each of the corresponding multiple, and any refers to any one of the multiple.
[0051] 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 the present invention belongs. The terms used herein are only for the purpose of describing the embodiments of the present invention and are not intended to limit the present invention.
[0052] The detection method for mattress motion recognition and determination provided by the embodiment of the present invention relates to the field of data processing technology. The detection method for mattress motion recognition and determination provided by the embodiment of the present invention can be applied to a terminal, can also be applied to a server, and can also be software running in a terminal or a server. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and a car terminal, etc., but is not limited to this; the server side can be configured as an independent physical server, or a server cluster or distributed system composed of multiple physical servers, and can also be configured as a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The server can also be a node server in a blockchain network; the software can be an application of the detection method for mattress motion recognition and determination, etc., but is not limited to the above forms.
[0053] The present invention can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present invention can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present invention can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0054] Figure 1 is an optional flow chart of a detection method for mattress motion recognition and determination provided by an embodiment of the present invention. Figure 1 The method may include but is not limited to steps S100 to S400.
[0055] S100, in response to a first detection instruction of a detection object, obtaining first log data of a target mattress;
[0056] Wherein, a plurality of sensors are arranged in the target mattress, and the first log data includes time series data of all sensors;
[0057] In some embodiments, the method may further include the following steps: using the sensor in the target mattress to sense the operating action of the target object at each time point to generate sensor data of the sensor at the corresponding time point; arranging the sensor data generated at all time points within a preset time period in chronological order to obtain the time series data corresponding to the sensor.
[0058] Specifically, the data information cited in the embodiments of the present invention are all obtained with the authorization of the user.
[0059] It should be noted that the first detection instruction includes detecting a serial port click action and a serial port selection action; in some embodiments, step S100 may include: in response to the detection serial port click action of the detection object, displaying a serial port list; the serial port list includes serial port information corresponding to multiple authorized mattresses for detection; in response to the serial port selection action of the detection object, determining the target serial port information from the serial port list, and obtaining the first log data of the target mattress by serial port reading based on the target serial port information.
[0060] For example, in some specific implementations, a serial port reading software tool can be used to obtain the log output of the mattress, and then the real-time log can be printed through the serial port reading software tool, such as Figure 2 As shown, in actual application, by clicking the "Detect Serial Port" button (marked with a blue box), the read serial port list will be displayed, and then after selecting the corresponding serial port, click the "Open Serial Port" button to start receiving data. During this period, there is a method timer to receive data. After receiving the data, the data in the serial port is converted into a national standard code (unicode) string using a preset decoding method. Before each line of the national standard code string, a time string is added based on the real-time time point when the sensor generates the sensor data. In some preferred implementations, the insertPlainText method can be used in the text display component QtWidgets.QTextBrowser to append new data to the display frame of the window.
[0061] S200, transmitting the first log data to the cloud to obtain second log data;
[0062] In some embodiments, step S200 may include: transmitting the first log data to the cloud, and then storing the first log data in a preset database in the cloud according to a preset table structure to obtain second log data; wherein the table structure includes a log identifier, a time point and sensor data.
[0063] For example, in some specific implementations, after obtaining log data through the serial port, the data can be pushed to the server using the requests.post method. Then, the cloud receives the real-time data and stores it in the MySQL database. An example of a table structure used by the MySQL database to store log data is as follows:
[0064] CREATE TABLE `device_message`(
[0065] `id`int(11)NOT NULL AUTO_INCREMENT COMMENT'ID',
[0066] `content`text COMMENT'content',
[0067] `mac`varchar(255)DEFAULT NULL COMMENT'mac number',
[0068] `status` int(1) DEFAULT'1'COMMENT' Status 1 Not viewed 2 Viewed',
[0069] `ctime` int(10) DEFAULT NULL COMMENT 'Creation time',
[0070] PRIMARY KEY (`id`)
[0071] )ENGINE=InnoDB AUTO_INCREMENT=16600 DEFAULT CHARSET=utf8 COMMENT='Device message';
[0072] Specifically, the log identifier is the above table structure, and the content includes time point and sensor data. Based on the above table structure, an example of the storage format for a certain log data is shown in Table 1 below:
[0073] Table 1
[0074]
[0075] S300, in response to a second detection instruction of the detection object, obtaining second log data of the target mattress from the cloud;
[0076] In some embodiments, step S300 may include: in response to a second detection instruction of the detection object, printing second log data of the target mattress obtained from the cloud to a preset display panel.
[0077] For example, in some specific embodiments, Figure 3 As shown, the real-time data from the cloud can be received by responding to the pixel operation of the detection object on the preset operation panel end (web end). Specifically, the data pushed to the cloud through the serial port tool will also be pushed from the cloud to the web end (operation end), where the second detection instruction can be the start action of the operation panel end.
[0078] S400 , in response to a third detection instruction of the detection object, generating an action test report of the target mattress according to the second log data.
[0079] The motion test report includes the motion record generated on the target mattress, and the motion record is generated based on the time series data of all sensors in the target mattress;
[0080] It should be noted that the time series data includes the sensor data of the sensor at each time point; in some embodiments, generating an action test report of the target mattress based on the second log data may include the following steps: collecting the sensor data of all sensors at each time point from the second log data, and generating action records of the corresponding time points based on the sensor data of all sensors based on preset rules; and arranging the action records of all time points to obtain the action test report of the target mattress.
[0081] In some embodiments, the test report also includes the time difference (time difference) between the time point corresponding to the sensor data in the log data and the actual detected action record.
[0082] For example, in some specific implementations, real-time data is analyzed through the cloud to identify the log corresponding to the action (such as Figure 4 In the "message" section), the result (the time difference between the action operation and the detection of the action) will be calculated and returned to the web end. The effect is as follows Figure 4 As shown in the figure, the real-time log contains a time field. If the corresponding rule is matched, the time difference will be obtained by subtracting the specific time of clicking the "action button" from the time of the log. Among them, the cloud analyzes the real-time data, and different recognition actions have corresponding different recognition rules, such as Figure 5 As shown (the first column indicates the name of the mattress; the second column indicates the recognized action record; in the third column, 1 indicates the data of the sensor on the left side of the mattress, and r indicates the data of the sensor on the right side of the mattress; the fourth column indicates the time point of the corresponding sensor data collection), it can be understood that the focus of the technical solution of the present invention is on the overall data statistical process, and the specific action recognition rules can be adjusted differently according to the actual application. The embodiment of the present invention does not limit its specific implementation logic.
[0083] Specifically, after a series of execution actions are completed, you need to click the "End" button (to implement the third detection instruction) to generate a test report. Figure 6The figure shows an example of a test report consisting of some action record examples, where the first column (time) indicates the time point when the corresponding action record is collected, the second column (operation) and the third column (result) represent the action records, the fourth column (time difference) indicates the duration of the corresponding action record, and the fifth column (message) indicates the original data corresponding to the corresponding action record in the log data (for the convenience of inspection personnel to check and review).
[0084] In some embodiments, the method may further include the following steps: in response to a fourth detection instruction of the detection object, deriving a data row corresponding to the target action record from the second log data.
[0085] In order to explain the principle of the technical solution of the present invention in detail, the overall process of the present invention is described below in combination with some specific embodiments. It is easy to understand that the following is an explanation of the technical principle of the present invention and cannot be regarded as a limitation of the present invention.
[0086] The mattress action recognition and determination detection method provided by the embodiment of the present invention can be specifically implemented through the following process:
[0087] First of all, it should be noted that the intelligent mattress detection can output logs through the hardware serial port, and in different sleep action scenarios, different execution actions (such as getting into bed, turning over, getting out of bed, etc.) are generated, and different log outputs are generated. In view of the problems of the prior art, the embodiment of the present invention develops a set of intelligent detection systems to detect different execution actions, count the start time, end time, response time, and automatically generate detection reports, reduce errors caused by manual judgment, make detection more intelligent, systematic, and easier to test and maintain.
[0088] like Figure 7 As shown, the method flow of the embodiment of the present invention can be implemented by the following steps:
[0089] 1. If Figure 2 As shown, the serial port reading tool developed in Python is used to output the mattress logs. The tool prints real-time logs and pushes the logs to the cloud.
[0090] It should be noted that clicking the "Detect Serial Port" button will display the read serial port list, and then after selecting the corresponding serial port, click the "Open Serial Port" button to start receiving data. During this period, there is a method timer to receive data. After receiving the data, use the preset decoding method to convert it into a unicode string, and add a time string before each line of the string. Exemplarily, the preset decoding method can be the data.decode('iso-8859-1') method. Furthermore, in the text display component QtWidgets.QTextBrowser, use the insertPlainText method to append new data to the display box, and use the requests.post method to push the data to the server.
[0091] Among them, specific data examples can be:
[0092] (mix)(L_onbed_leave)0,(R_onbed_leave)0 means there is no one on the left or right side;
[0093] (mix)(L_onbed leave)0,(R_onbed leave)1 means there is someone on the right side but no one on the left side;
[0094] Similarly, (mix)(L_onbed leave)1,(R_onbed leave)0 means there is someone on the left side but no one on the right side.
[0095] 2. The cloud receives real-time data and stores it in the MySQL database.
[0096] After obtaining the log data through the serial port, the requests.post method can be used to push the data to the server. Then, the cloud receives the real-time data and stores it in the MySQL database. The table structure used by the MySQL database to store log data is as follows:
[0097] CREATE TABLE `device_message`(
[0098] `id`int(11)NOT NULL AUTO_INCREMENT COMMENT'ID',
[0099] `content`text COMMENT'content',
[0100] `mac`varchar(255)DEFAULT NULL COMMENT'mac number',
[0101] `status` int(1) DEFAULT'1'COMMENT' Status 1 Not viewed 2 Viewed',
[0102] `ctime` int(10) DEFAULT NULL COMMENT 'Creation time',
[0103] PRIMARY KEY (`id`)
[0104] )ENGINE=InnoDB AUTO_INCREMENT=16600 DEFAULT CHARSET=utf8 COMMENT='Device message';
[0105] Based on the above table structure, an example of a storage format for a certain log data is shown in Table 1 above.
[0106] 3. If Figure 3 As shown, the operation panel (web side) will also receive real-time data from the cloud.
[0107] 4. At this time, the smart mattress action execution test is carried out. Click the operation button (the user starts to perform the corresponding action on the smart mattress). The cloud generates the operation record and time, and displays it on the web end. Figure 8 shown.
[0108] 5. After the operation record is generated, the cloud analyzes the real-time data and identifies the log corresponding to the action (such as Figure 4 "Message"), the result (the time difference between the action operation and the detection of the action) will be calculated and returned to the web end. Figure 4 As shown in the figure, the real-time log contains a time field. If the corresponding rule is matched, the time of the log minus the specific time of clicking the "action button" will be used to get the time difference;
[0109] Among them, the cloud analyzes real-time data, and different recognition actions have corresponding different recognition rules, such as Figure 5 shown.
[0110] 6. If Fig. 9 As shown in the figure, after a series of execution actions are completed, you need to click the "Finish" button on the web to generate a test report.
[0111] 7. Test report header: Figure 6 shown.
[0112] Among them, it should be noted that Figure 7 In the web section, the user clicks the corresponding action button in the panel, which is considered as the update status. The communication method between the web end and the cloud end is to pull the API interface to obtain data every second.
[0113] In summary, the present invention can automatically detect and count the time of executing actions and generate a detection report. The statistical results are more accurate, the error rate is lower, and the labor time is reduced to save costs. In addition, based on the data statistics process of the present invention, historical detection reports are stored in the cloud, which is conducive to archiving and management.
[0114] On the other hand, an embodiment of the present invention further provides a detection device for mattress motion recognition and determination, which can implement the above-mentioned detection method for mattress motion recognition and determination, and the device includes:
[0115] The first module is used to obtain first log data of a target mattress in response to a first detection instruction of a detection object; a plurality of sensors are provided in the target mattress, and the first log data includes time series data of all sensors;
[0116] The second module is used to transmit the first log data to the cloud to obtain second log data;
[0117] A third module is used to obtain second log data of the target mattress from the cloud in response to a second detection instruction of the detection object;
[0118] The fourth module is used to generate an action test report of the target mattress according to the second log data in response to the third detection instruction of the detection object; the action test report includes the action record generated on the target mattress, and the action record is generated based on the timing data of all sensors in the target mattress.
[0119] In some embodiments, when the result of the scanning process is failure, the device may further include:
[0120] A fifth module is used to respond to the authorization instruction of the target object, sense the operation action of the target object at each time point through the sensor in the target mattress to generate the sensing data of the sensor at the corresponding time point;
[0121] The sixth module is used to sort the sensor data generated at all time points within a preset time period in a time series order to obtain time series data corresponding to the sensor;
[0122] In some embodiments, the test time includes a start time and an end time; when the number of reconnections is equal to a preset reconnection threshold, the device may further include:
[0123] The seventh module is used to export a data row corresponding to the target action record from the second log data in response to the fourth detection instruction of the detection object.
[0124] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0125] The embodiment of the present invention also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned mattress action recognition and determination detection method when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.
[0126] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0127] See also Fig.10 , Fig.10 The hardware structure of an electronic device 1000 of another embodiment is illustrated. The electronic device includes:
[0128] The processor 1001 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present invention;
[0129] The memory 1002 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device or a random access memory (RAM). The memory 1002 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1002, and the processor 1001 calls and executes the detection method for mattress motion recognition and determination in the embodiment of the present invention;
[0130] Input / output interface 1003, used to implement information input and output;
[0131] The communication interface 1004 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);
[0132] A bus 1005 , which transmits information between various components of the device (e.g., the processor 1001 , the memory 1002 , the input / output interface 1003 , and the communication interface 1004 );
[0133] The processor 1001 , the memory 1002 , the input / output interface 1003 and the communication interface 1004 are connected to each other in communication within the device via the bus 1005 .
[0134] The embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the detection method for mattress motion recognition and determination is implemented.
[0135] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiments, the functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0136] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0137] The detection method, detection device, equipment and medium for mattress action recognition and determination provided by the embodiment of the present invention, which powers on the target mattress by responding to the test authorization instruction of the target object; the target mattress is provided with a BLE module, and the BLE module includes a Bluetooth module and a WiFi module; the Bluetooth module of the target mattress is scanned and processed, and when the result of the scanning process is successful, the network configuration information is transmitted to the Bluetooth module; the target mattress is network configured according to the network configuration information by using the WiFi module; a test report is generated based on the result of the network configuration process; the test report includes the test result, and the test result is divided into network configuration success and network configuration failure; when the test result is network configuration failure, the test report also includes the reason for failure. The embodiment of the present invention establishes communication with the mattress through relevant instruction data, and then sends the specified network configuration information to realize the automatic network configuration test of the mattress, and generates a test report based on the network configuration process to assist in reviewing the correctness and consistency of the mattress function. The embodiment of the present invention can efficiently realize the test of mattress network configuration.
[0138] The embodiments described in the embodiments of the present invention are intended to more clearly illustrate the technical solutions of the embodiments of the present invention, and do not constitute a limitation on the technical solutions provided by the embodiments of the present invention. Those skilled in the art can appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of the present invention are also applicable to similar technical problems.
[0139] Those skilled in the art will appreciate that the technical solutions shown in the figures do not limit the embodiments of the present invention and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.
[0140] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, 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 solution of this embodiment.
[0141] Those skilled in the art will appreciate that all or some of the steps, devices, and functional modules / units in the above disclosed methods may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0142] The terms "first", "second", "third", "fourth", etc. (if any) in the description of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, device, product or equipment that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0143] It should be understood that in the present invention, "at least one (item)" refers to one or more, and "plurality" refers to two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can represent: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0144] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0145] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0146] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit 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 software functional units.
[0147] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including multiple instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store programs.
[0148] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the embodiments of the present invention is not limited thereby. Any modification, equivalent substitution and improvement made by those skilled in the art without departing from the scope and essence of the embodiments of the present invention shall be within the scope of the rights of the embodiments of the present invention.
Claims
1. A mattress action recognition and determination detection method, characterized in that: The method comprises the following steps: In response to a first detection instruction of the detection object, first log data of a target mattress is acquired; the target mattress is provided with a plurality of sensors, and the first log data includes time series data of all the sensors; Transmitting the first log data to the cloud to obtain second log data; In response to a second detection instruction of the detection object, acquiring the second log data of the target mattress from the cloud; In response to a third detection instruction of the detection object, an action test report of the target mattress is generated according to the second log data; the action test report includes an action record generated on the target mattress, and the action record is generated based on the timing data of all the sensors in the target mattress.
2. The method according to claim 1, characterized in that The method further comprises the following steps: The sensor in the target mattress senses the operation action of the target object at each time point to generate sensing data of the sensor at the corresponding time point; The sensing data generated at all the time points within a preset time period are sorted in time series order to obtain the time series data corresponding to the sensor.
3. The method according to claim 1, characterized in that The first detection instruction includes detecting a serial port click action and a serial port selection action; the first log data of the target mattress is obtained in response to the first detection instruction of the detection object, including the following steps: In response to the detection serial port click action of the detection object, a serial port list is displayed; the serial port list includes serial port information corresponding to multiple mattresses authorized for detection; In response to the serial port selection action of the detection object, target serial port information is determined from the serial port list, and the first log data of the target mattress is acquired by serial port reading based on the target serial port information.
4. The method according to claim 1, characterized in that: The step of transmitting the first log data to the cloud to obtain the second log data includes the following steps: Transmitting the first log data to the cloud, and then storing the first log data in a preset database in the cloud according to a preset table structure to obtain the second log data; The table structure includes log identifier, time point and sensor data.
5. The method according to claim 1, characterized in that The step of obtaining the second log data of the target mattress from the cloud in response to the second detection instruction of the detection object comprises the following steps: In response to the second detection instruction of the detection object, the second log data of the target mattress obtained from the cloud is printed to a preset display panel.
6. The method according to claim 1, characterized in that The time series data includes the sensing data of the sensor at each time point; and generating the action test report of the target mattress according to the second log data includes the following steps: Collecting the sensor data of all sensors at each time point from the second log data, and generating an action record at a corresponding time point according to the sensor data of all sensors based on a preset rule; The action test report of the target mattress is obtained by sorting out the action records at all the time points.
7. The method according to claim 6, characterized in that The method further comprises the following steps: In response to a fourth detection instruction of the detection object, a data row corresponding to the target action record is exported from the second log data.
8. A detection device for mattress motion recognition and determination, characterized in that: The device comprises: A first module is used to obtain first log data of a target mattress in response to a first detection instruction of a detection object; the target mattress is provided with a plurality of sensors, and the first log data includes time series data of all the sensors; A second module is used to transmit the first log data to the cloud to obtain second log data; A third module, configured to obtain the second log data of the target mattress from the cloud in response to the second detection instruction of the detection object; The fourth module is used to generate an action test report of the target mattress according to the second log data in response to the third detection instruction of the detection object; the action test report includes an action record generated on the target mattress, and the action record is generated based on the timing data of all the sensors in the target mattress.
9. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
