Room positioning method, device and equipment based on mobile equipment and storage medium

By collecting and processing the sequence mean difference of WiFi signal strength by mobile devices, environmental changes in WiFi positioning and static human perception problems are solved, and accurate and rapid judgment of user room location is achieved, laying the foundation for smart home appliance control.

CN119277305APending Publication Date: 2025-01-07QINGDAO HAIER SMART TECH R & D CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310822152.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-05
Publication Date
2025-01-07

AI Technical Summary

Technical Problem

The prior art cannot accurately determine the user's position in the room through WiFi channel status information, especially when the environment changes, and cannot sense the stationary human body.

Method used

Through a mobile device equipped with a WiFi module, the signal strength of the wireless access access point in the room is obtained, the signal sequence is formed, and the sequence mean difference is processed using the preset main time interval to update the device status to determine the room where the user is located.

Benefits of technology

It realizes accurate and fast room positioning based on WiFi, supports smarter intelligent home appliance control, adapts to environmental changes, and does not require static human perception obstacles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119277305A_ABST
    Figure CN119277305A_ABST
Patent Text Reader

Abstract

The invention provides a room positioning method, device and equipment based on mobile equipment and a storage medium, and relates to the technical field of computers. The method comprises the following steps: acquiring an initial indoor state of an initial room where the mobile equipment is located; based on the initial in-room state of the mobile equipment, the mobile equipment is used for collecting the signal intensity of a plurality of wireless access points in a plurality of rooms, and the signal intensity of each wireless access point forms a signal sequence corresponding to the wireless access point; processing the plurality of signal sequences in different time periods by using a preset main time interval to obtain a plurality of sequence mean value differences; and updating the initial indoor state of the mobile device to a target room state of the mobile device in the target room according to the plurality of sequence mean value differences. According to the embodiment provided by the invention, the user and the room where the mobile device is located are accurately and quickly judged by using the existing mobile device carrying the WiFi module, and a better foundation is laid for more intelligently controlling other intelligent household electrical appliances.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a room positioning method, device, equipment and storage medium based on a mobile device. Background Art

[0002] For contactless activity sensing, researchers proposed to use the correlation of the amplitude of the Channel State Information (CSI) in the WiFi device in the time domain to sense and detect whether there are moving objects. When there are people moving in the environment, the amplitude of the channel state information changes significantly, and the correlation in the time domain is low. Using this feature, the difference in the amplitude correlation of the channel state information when there is human movement in the environment can be learned in advance, so as to determine whether there is someone moving based on the correlation of the CSI signal amplitude obtained in the actual test. However, this method requires learning the environment in advance, and when the environment changes, the device parameters need to be recalibrated, and it is impossible to sense and detect stationary human bodies.

[0003] In smart home life, determining the current room location of a person is an important prerequisite for understanding the person's living habits and intelligently adjusting the service facilities in the room. However, most existing technologies use infrared or millimeter waves to determine the user's location, and cannot determine the user's location by WiFi. Therefore, this is a technical problem that needs to be solved urgently. Summary of the invention

[0004] The present invention provides a room positioning method, device, equipment and storage medium based on mobile devices, which accurately and quickly determine the room where the user and his / her mobile device are located by utilizing the existing mobile devices equipped with WiFi modules, thereby laying a good foundation for more intelligent control of other smart home appliances.

[0005] In a first aspect, the present invention provides a room positioning method based on a mobile device, comprising:

[0006] Obtaining the initial room status of the initial room where the mobile device is located;

[0007] Based on the initial in-room state of the mobile device, using the mobile device to collect signal strengths of multiple wireless access points in multiple rooms, and combining the signal strength of each of the wireless access points into a signal sequence corresponding to the wireless access point;

[0008] Processing a plurality of signal sequences in different time periods using a preset main time interval to obtain a plurality of sequence mean difference values;

[0009] The initial in-room state of the mobile device is updated to a target room state of the mobile device in a target room according to a plurality of sequence mean difference values.

[0010] Preferably, according to a room positioning method based on a mobile device provided by the present invention,

[0011] The method of processing the plurality of signal sequences in different time periods by using a preset main time interval to obtain a sequence mean difference comprises:

[0012] Using the main time interval to divide the plurality of signal sequences in different time periods, to obtain a plurality of previous signal sequences and a plurality of current signal sequences;

[0013] Calculating a plurality of the previous signal sequences to obtain a plurality of previous sequence means, and calculating a plurality of the current signal sequences to obtain a plurality of current sequence means;

[0014] A plurality of previous sequence means and a plurality of current sequence means are calculated to obtain the sequence mean difference.

[0015] Preferably, according to a room positioning method based on a mobile device provided by the present invention, the step of calculating a plurality of previous signal sequences to obtain a plurality of previous sequence means includes:

[0016] Determine, according to the main time interval, a sub-time interval that is shorter than the main time interval;

[0017] Determining the number of sequences according to the main time interval and the sub-time interval;

[0018] Processing a plurality of the previous signal sequences according to the sub-time intervals and the number of sequences to obtain previous sub-signal sequences whose number corresponds to the number of sequences;

[0019] Calculation is performed on a plurality of the previous sub-signal sequences to obtain a plurality of previous sequence means.

[0020] Preferably, according to a room positioning method based on a mobile device provided by the present invention, updating the initial in-room state of the mobile device to the target room state of the mobile device in the target room according to the plurality of sequence mean difference values ​​comprises:

[0021] Performing absolute value processing on a plurality of sequence mean differences to obtain a plurality of absolute sequence differences;

[0022] Comparing the plurality of absolute sequence differences with a preset sequence threshold in sequence;

[0023] When all the absolute sequence differences are greater than or equal to the sequence threshold, updating the initial in-room state of the mobile device to the in-and-out room state of the mobile device;

[0024] When the mobile device is in the state of entering or leaving the room, calculating the mean of the previous group sequence;

[0025] The initial in-room state of the mobile device is updated to the target room state of the mobile device in the target room according to the previous group sequence mean.

[0026] Preferably, according to a room positioning method based on a mobile device provided by the present invention, after the step of sequentially comparing the plurality of absolute sequence differences with a preset sequence threshold, the method further comprises:

[0027] In the case that all the absolute sequence difference values ​​are smaller than the sequence threshold, a plurality of the previous sequence means and a plurality of the current sequence means are calculated to obtain a current room sequence steady-state value.

[0028] Preferably, according to a room positioning method based on a mobile device provided by the present invention, the updating of the initial in-room state of the mobile device to the target room state of the mobile device in the target room according to the mean of the previous group of sequences comprises:

[0029] Calculate the difference between the previous group sequence mean and the current room sequence steady-state value to obtain a group mean difference;

[0030] Compare the group mean difference with a preset subsequence threshold;

[0031] In the case that there is at least one group mean difference greater than the subsequence threshold, the target room where the mobile device is located is determined according to the group mean difference, and the initial room state of the mobile device is updated to the target room state of the mobile device in the target room.

[0032] In a second aspect, the present invention further provides a room positioning device based on a mobile device, comprising:

[0033] An acquisition module, used to acquire an initial room state of an initial room where a mobile device is located;

[0034] a composition module, configured to collect signal strengths of multiple wireless access points in multiple rooms using the mobile device based on the initial in-room state of the mobile device, and compose the signal strength of each of the wireless access points into a signal sequence corresponding to the wireless access point;

[0035] A processing module, used for processing a plurality of signal sequences in different time periods using a preset main time interval to obtain a plurality of sequence mean difference values;

[0036] An updating module is used to update the initial in-room state of the mobile device to a target room state of the mobile device in a target room according to a plurality of sequence mean difference values.

[0037] In a third aspect, the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the room positioning method based on a mobile device as described above are implemented.

[0038] In a fourth aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the above-described room positioning methods based on a mobile device.

[0039] In a fifth aspect, the present invention further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of any of the above-mentioned room positioning methods based on a mobile device.

[0040] The present invention provides a room positioning method, device, equipment and storage medium based on mobile devices, which obtains the initial room state of the initial room where the mobile device is located; based on the initial room state of the mobile device, the mobile device is used to collect the signal strengths of multiple wireless access points in multiple rooms, and the signal strengths of each wireless access point are combined into a signal sequence corresponding to the wireless access point; a plurality of signal sequences of different time periods are processed using a preset main time interval to obtain a plurality of sequence mean differences; according to the plurality of sequence mean differences, the initial room state of the mobile device is updated to the target room state of the mobile device in the target room. By using the existing mobile device equipped with a WiFi module to accurately and quickly determine the room where the user and his mobile device are located, a good foundation is laid for more intelligent control of other smart home appliances. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0042] Figure 1It is a flow chart of a room positioning method based on a mobile device provided by the present invention;

[0043] Figure 2 is a structural schematic diagram of a room positioning device based on a mobile device provided by the present invention;

[0044] Figure 3 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0046] Combine the following Figure 1-Figure 3 The present invention describes a room positioning method, device, equipment and storage medium based on a mobile device. The embodiments provided by the present invention use existing mobile devices equipped with WiFi modules to accurately and quickly determine the room where the user and his mobile device are located, laying a good foundation for more intelligent control of other smart home appliances.

[0047] like Figure 1 As shown, it is a schematic diagram of an implementation flow of a room positioning method based on a mobile device provided by an embodiment of the present invention. A room positioning method based on a mobile device may include but is not limited to steps S100 to S400.

[0048] S100, obtaining an initial room state of an initial room where a mobile device is located;

[0049] S200, based on the initial in-room state of the mobile device, using the mobile device to collect signal strengths of multiple wireless access points in multiple rooms, and combining the signal strength of each of the wireless access points into a signal sequence corresponding to the wireless access point;

[0050] S300, processing a plurality of signal sequences in different time periods using a preset main time interval to obtain a plurality of sequence mean differences;

[0051] S400: updating the initial in-room state of the mobile device to a target room state of the mobile device in a target room according to a plurality of sequence mean difference values.

[0052] It should be noted that the execution subject of the room positioning method based on a mobile device in the embodiment of the present application may be a hardware device with data information processing capabilities and / or the necessary software required to drive the hardware device to work.

[0053] Optionally, the execution subject may include but is not limited to workstations, servers, computers, user terminals and other intelligent devices. Among them, user terminals include but are not limited to mobile phones, computers, intelligent voice interaction devices, smart home appliances, vehicle-mounted terminals, etc.

[0054] In step S100 of some embodiments, an initial room state of an initial room where the mobile device is located is obtained.

[0055] It is understandable that the mobile device may at least include but is not limited to smart phones, smart bracelets, smart watches, etc. The mobile device and the user can be regarded as one, that is, the user carries the mobile device with him at all times, and the movement of the mobile device can be regarded as the movement of the user's position, which is the same below and will not be repeated in the following.

[0056] The server obtains the initial room status of the initial room where the mobile device is located. For example, the user's rooms are numbered as Room 1, Room 2, and Room 3. The server obtains the location of the mobile device and determines the corresponding room number. For example, if the mobile device and the corresponding user are both in Room 1, then the initial room is Room 1, and the state of the user staying in Room 1 without leaving is the initial room status.

[0057] In step S200 of some embodiments, based on the initial in-room state of the mobile device, the mobile device is used to collect signal strengths of multiple wireless access points in multiple rooms, and the signal strength of each wireless access point is combined into a signal sequence corresponding to the wireless access point.

[0058] It can be understood that after executing step S100 of acquiring the initial room state of the initial room where the mobile device is located, the specific execution steps may be: based on the initial room state of the mobile device, using the mobile device to collect signal strengths of multiple wireless access points in multiple rooms, and combining the signal strengths of each of the wireless access points into a signal sequence corresponding to the wireless access point.

[0059] A wireless access point is an AP. For example, there is AP1 in room 1, AP2 in room 2, and AP3 in room 3. Taking AP1 in room 1 as an example, the signal strength collected by the mobile device in different time periods varies according to the distance from AP1. For example, the signal strength collected from 8:00 to 10:00 is 5, 10, 15, 16, 14, 15, 20, 18, 14, 5, 10, 15.

[0060] Then 5, 10, 15, 16, 14, 15, 20, 18, 14, 5, 10, 15 form a real-time sequence K1. Correspondingly, the signal strength collected by AP2 can form a real-time sequence K2, and the signal strength collected by AP3 can form a real-time sequence K3.

[0061] In step S300 of some embodiments, a plurality of signal sequences in different time periods are processed using a preset main time interval to obtain a plurality of sequence mean difference values.

[0062] It can be understood that after executing step S200, the specific execution steps may be: using the main time interval to divide the plurality of signal sequences in different time periods to obtain a plurality of previous signal sequences and a plurality of current signal sequences;

[0063] Calculating a plurality of the previous signal sequences to obtain a plurality of previous sequence means, and calculating a plurality of the current signal sequences to obtain a plurality of current sequence means;

[0064] A plurality of previous sequence means and a plurality of current sequence means are calculated to obtain the sequence mean difference.

[0065] Furthermore, assuming that the main time interval is T1, taking the K1 sequence as an example, the K1 sequence is segmented using the main time interval to obtain the previous signal sequence and the current signal sequence.

[0066] Let the previous signal sequence be K11 and the current signal sequence be K12. K11 may include 5, 10, 15, 16, 14, 15, and the K12 sequence may include 20, 18, 14, 5, 10, 15.

[0067] Then if there are K numbers, namely K1, K2, and K3, then the corresponding K2 sequence also includes the previous signal sequence and the current signal sequence, namely the previous signal sequence corresponding to the K2 sequence is K21, and the corresponding current signal sequence is K22. Then the corresponding K3 sequence also includes the previous signal sequence and the current signal sequence, namely the previous signal sequence corresponding to the K3 sequence is K31, and the corresponding current signal sequence is K32.

[0068] Therefore, there are multiple previous signal sequences K11, K21, K31, and multiple current signal sequences K12, K22, K32.

[0069] The specific execution steps of calculating the multiple previous signal sequences to obtain the mean values ​​of the multiple previous sequences may be:

[0070] Determine, according to the main time interval, a sub-time interval that is shorter than the main time interval;

[0071] Determining the number of sequences according to the main time interval and the sub-time interval;

[0072] Processing a plurality of the previous signal sequences according to the sub-time intervals and the number of sequences to obtain previous sub-signal sequences whose number corresponds to the number of sequences;

[0073] Calculation is performed on a plurality of the previous sub-signal sequences to obtain a plurality of previous sequence means.

[0074] For example, if the main time interval T1 is 30 minutes and the sub-time interval T2 is 5 minutes, then the number of K11 sequences a is T1 / T2, which is 6. The average of these 6 values ​​is the previous sequence mean of K11. That is, for 5, 10, 15, 16, 14, and 15 in K11, calculate their average value, that is, (5+10+15+16+14+15) / 6 is the previous sequence mean M11 of K11.

[0075] Similarly, the previous sequence mean M21 corresponding to K21 and the previous sequence mean M31 corresponding to K31 can be calculated.

[0076] The multiple current signal sequences are calculated to obtain the multiple current sequence means. It should be noted that the calculation logic of calculating the current signal sequence to obtain the current sequence mean is the same as the calculation logic of calculating the multiple previous signal sequences to obtain the multiple previous sequence means, which will not be repeated here.

[0077] That is, it can be calculated that the current sequence mean corresponding to the current signal sequence of K12 is M12, the current sequence mean corresponding to the current signal sequence of K22 is M22, and the current sequence mean corresponding to the current signal sequence of K32 is M32.

[0078] Furthermore, a plurality of previous sequence means and a plurality of current sequence means are calculated to obtain the sequence mean difference.

[0079] That is, the difference between the previous sequence means M11, M21, M31 and the current sequence means M12, M22, M32 is calculated to obtain the sequence mean difference.

[0080] That is, M11-M12=P11, M21-M22=P12, M31-M32=P13.

[0081] P11, P12, and P13 are the mean differences of multiple sequences.

[0082] In step S400 of some embodiments, the initial in-room state of the mobile device is updated to a target room state of the mobile device in a target room according to a plurality of sequence mean difference values.

[0083] It is understandable that after executing step S300, the specific execution steps may be:

[0084] Performing absolute value processing on a plurality of sequence mean differences to obtain a plurality of absolute sequence differences;

[0085] Comparing the plurality of absolute sequence differences with a preset sequence threshold in sequence;

[0086] When all the absolute sequence differences are greater than or equal to the sequence threshold, updating the initial in-room state of the mobile device to the in-and-out room state of the mobile device;

[0087] When the mobile device is in the state of entering or leaving the room, calculating the mean of the previous group sequence;

[0088] The initial in-room state of the mobile device is updated to the target room state of the mobile device in the target room according to the previous group sequence mean.

[0089] Furthermore, the absolute value processing is performed on the mean differences of multiple sequences to obtain multiple absolute sequence differences, namely |P11|, |P12|, |P13|.

[0090] The multiple absolute sequence differences are compared with a preset sequence threshold Z.

[0091] If the sequence threshold Z is 15, and |P11| is 16, |P12| is 20, and |P13| is 18, that is, the absolute sequence differences are all greater than or equal to the sequence threshold Z, the initial in-room state of the mobile device is updated to the in-and-out state of the mobile device, that is, walking at the door of the room.

[0092] Of course, when all the absolute sequence differences are smaller than the sequence threshold, a plurality of previous sequence means and a plurality of current sequence means are calculated to obtain a current room sequence steady-state value.

[0093] For example, |P11| is 10, |P12| is 13, |P13| is 14, and the sequence threshold Z is 15. That is, when all the absolute sequence differences are less than the sequence threshold Z, multiple previous sequence means and multiple current sequence means are calculated to obtain the steady-state value of the current room sequence.

[0094] That is, a plurality of previous sequence means M11, M21, M31 and a plurality of current sequence means M12, M22, M32 are averaged to obtain the steady-state value of the current room sequence.

[0095] That is, for (M11+M12) / 2=N11,

[0096] For (M12+M22) / 2=N12,

[0097] For (M31+M32) / 2=N13,

[0098] Then N11, N12, and N13 form a sequence, which is the N1 sequence. This N1 sequence is the steady-state value of the current room sequence.

[0099] When at least one of the absolute sequence difference values ​​is greater than or equal to the sequence threshold, and at least one of the absolute sequence difference values ​​is less than the sequence threshold, the initial in-room state of the mobile device is updated to the in-and-out room state of the mobile device, and a plurality of previous sequence means and a plurality of current sequence means are calculated to obtain a current room sequence steady-state value.

[0100] Assume that |P11| is 10, |P12| is 13, |P13| is 16, and the sequence threshold Z is 15, that is, there is at least one absolute sequence difference greater than or equal to the sequence threshold, and there is at least one absolute sequence difference less than the sequence threshold, then the initial in-room state of the mobile device is updated to the in-and-out room state of the mobile device, and multiple previous sequence means and multiple current sequence means are calculated to obtain the current room sequence steady-state value, which will not be repeated here.

[0101] When the mobile device is in the state of entering and exiting the room, the mean of the previous group of sequences is calculated, that is, sequences with different time intervals are selected, and the steps of processing the multiple signal sequences of different time periods using the preset main time interval are re-executed to obtain the difference of the mean values ​​of multiple sequences, and the mean of the previous group of sequences is calculated to be the Q1 sequence composed of Q11, Q12, and Q13.

[0102] Furthermore, the specific execution steps of updating the initial in-room state of the mobile device to the target room state of the mobile device in the target room according to the previous group sequence mean may be:

[0103] Calculate the difference between the previous group sequence mean and the current room sequence steady-state value to obtain a group mean difference;

[0104] Compare the group mean difference with a preset subsequence threshold;

[0105] In the case that there is at least one group mean difference greater than the subsequence threshold, the target room where the mobile device is located is determined according to the group mean difference, and the initial room state of the mobile device is updated to the target room state of the mobile device in the target room.

[0106] Furthermore, the difference between the previous group sequence mean and the current room sequence steady-state value is calculated to obtain the group mean difference, that is, the Q1 sequence and the current room sequence steady-state value N1 sequence are calculated to obtain the group mean difference B1.

[0107] B1=Q1-N1, further,

[0108] That is, Q11-N11=B11, Q12-N12=B12, Q13-N13=B13.

[0109] The group mean difference B1 is a sequence consisting of B11, B12, and B13.

[0110] The group mean difference is compared with the preset subsequence threshold. Let the subsequence threshold be X. If X is 20, B11 is 15, B12 is 18, and B13 is 16, then at this time, it means that the mobile device and the corresponding user are still in room 1, and no room change occurs.

[0111] If X is 20, B11 is 15, B12 is 18, and B13 is 25, then it means that the mobile device and the corresponding user are no longer in room 1, and the room they are in has changed. B13 is compared with the preset value. For example, if it is determined that the mobile device and the corresponding user are already in room 2, then room 2 is the target room, and the status of the mobile device and the corresponding user is updated from the status in room 1 to the status in room 2.

[0112] The room steady-state value sequence of the user in room 2 is C1, and the calculation steps of C1 are as follows:

[0113] (Q11+N11) / 2=C11, (Q12+N12) / 2=C12, (Q13+N13) / 2=C13,

[0114] The sequence composed of C11, C12, and C13 is the room steady-state value sequence of the user in room 2, which is C1.

[0115] The present invention provides a room positioning method, device, equipment and storage medium based on mobile devices, which obtains the initial room state of the initial room where the mobile device is located; based on the initial room state of the mobile device, the mobile device is used to collect the signal strengths of multiple wireless access points in multiple rooms, and the signal strengths of each wireless access point are combined into a signal sequence corresponding to the wireless access point; a plurality of signal sequences of different time periods are processed using a preset main time interval to obtain a plurality of sequence mean differences; according to the plurality of sequence mean differences, the initial room state of the mobile device is updated to the target room state of the mobile device in the target room. By using the existing mobile device equipped with a WiFi module to accurately and quickly determine the room where the user and his mobile device are located, a good foundation is laid for more intelligent control of other smart home appliances.

[0116] The room positioning device based on a mobile device provided by the present invention is described below. The room positioning device based on a mobile device described below and the room positioning method based on a mobile device described above can be referred to each other.

[0117] like Figure 2 FIG. 1 is a schematic diagram of a room positioning device based on a mobile device provided by the present invention. The room positioning device based on a mobile device comprises:

[0118] An acquisition module 210 is used to acquire an initial room state of an initial room where the mobile device is located;

[0119] A composition module 220 is configured to collect signal strengths of multiple wireless access points in multiple rooms using the mobile device based on the initial in-room state of the mobile device, and compose the signal strength of each of the wireless access points into a signal sequence corresponding to the wireless access point;

[0120] A processing module 230 is used to process a plurality of signal sequences in different time periods using a preset main time interval to obtain a plurality of sequence mean difference values;

[0121] The updating module 240 is configured to update the initial in-room state of the mobile device to a target room state of the mobile device in a target room according to a plurality of sequence mean difference values.

[0122] Optionally, according to a room positioning device based on a mobile device provided by the present invention, the processing module 230 is used to divide the multiple signal sequences of different time periods by using the main time interval to obtain multiple previous signal sequences and multiple current signal sequences;

[0123] Calculating a plurality of the previous signal sequences to obtain a plurality of previous sequence means, and calculating a plurality of the current signal sequences to obtain a plurality of current sequence means;

[0124] A plurality of previous sequence means and a plurality of current sequence means are calculated to obtain the sequence mean difference.

[0125] Optionally, according to a room positioning device based on a mobile device provided by the present invention, the processing module 230 is used to determine a sub-time interval that is smaller than the main time interval according to the main time interval;

[0126] Determining the number of sequences according to the main time interval and the sub-time interval;

[0127] Processing a plurality of the previous signal sequences according to the sub-time intervals and the number of sequences to obtain previous sub-signal sequences whose number corresponds to the number of sequences;

[0128] Calculation is performed on a plurality of the previous sub-signal sequences to obtain a plurality of previous sequence means.

[0129] Optionally, according to a room positioning device based on a mobile device provided by the present invention, the updating module 240 is used to perform absolute value processing on a plurality of sequence mean difference values ​​to obtain a plurality of absolute sequence difference values;

[0130] Comparing the plurality of absolute sequence differences with a preset sequence threshold in sequence;

[0131] When all the absolute sequence differences are greater than or equal to the sequence threshold, updating the initial in-room state of the mobile device to the in-and-out room state of the mobile device;

[0132] When the mobile device is in the state of entering or leaving the room, calculating the mean of the previous group sequence;

[0133] The initial in-room state of the mobile device is updated to the target room state of the mobile device in the target room according to the previous group sequence mean.

[0134] Optionally, according to a room positioning device based on a mobile device provided by the present invention, the device is also used to calculate multiple previous sequence means and multiple current sequence means to obtain a steady-state value of the current room sequence when all the absolute sequence difference values ​​are smaller than the sequence threshold.

[0135] Optionally, according to a room positioning device based on a mobile device provided by the present invention, the updating module 240 is used to calculate the difference between the previous group sequence mean and the current room sequence steady-state value to obtain a group mean difference;

[0136] Compare the group mean difference with a preset subsequence threshold;

[0137] In the case that there is at least one group mean difference greater than the subsequence threshold, the target room where the mobile device is located is determined according to the group mean difference, and the initial room state of the mobile device is updated to the target room state of the mobile device in the target room.

[0138] The present invention provides a room positioning method, device, equipment and storage medium based on mobile devices, which obtains the initial room state of the initial room where the mobile device is located; based on the initial room state of the mobile device, the mobile device is used to collect the signal strengths of multiple wireless access points in multiple rooms, and the signal strengths of each wireless access point are combined into a signal sequence corresponding to the wireless access point; a plurality of signal sequences of different time periods are processed using a preset main time interval to obtain a plurality of sequence mean differences; according to the plurality of sequence mean differences, the initial room state of the mobile device is updated to the target room state of the mobile device in the target room. By using the existing mobile device equipped with a WiFi module to accurately and quickly determine the room where the user and his mobile device are located, a good foundation is laid for more intelligent control of other smart home appliances.

[0139] Figure 3 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 3 As shown, the electronic device may include: a processor 310, a communication interface 320, a memory 330 and a communication bus 340, wherein the processor 310, the communication interface 320 and the memory 330 communicate with each other through the communication bus 340. The processor 310 may call the logic instructions in the memory 330 to execute a room positioning method based on a mobile device, the method comprising: obtaining an initial in-room state of an initial room where the mobile device is located; based on the initial in-room state of the mobile device, using the mobile device to collect signal strengths of multiple wireless access points in multiple rooms, and combining the signal strengths of each wireless access point into a signal sequence corresponding to the wireless access point; using a preset main time interval to process multiple signal sequences of different time periods to obtain multiple sequence mean differences; and updating the initial in-room state of the mobile device to a target room state of the mobile device in a target room according to the multiple sequence mean differences.

[0140] In addition, the logic instructions in the above-mentioned memory 330 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for 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 method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0141] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute a room positioning method based on a mobile device provided by the above methods, the method including: obtaining an initial room state of an initial room where a mobile device is located; based on the initial room state of the mobile device, using the mobile device to collect signal strengths of multiple wireless access points in multiple rooms, and combining the signal strengths of each of the wireless access points into a signal sequence corresponding to the wireless access point; using a preset main time interval to process multiple signal sequences of different time periods to obtain multiple sequence mean differences; and updating the initial room state of the mobile device to a target room state of the mobile device in a target room according to the multiple sequence mean differences.

[0142] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute a room positioning method based on a mobile device provided by the above methods, the method comprising: obtaining an initial in-room state of an initial room in which a mobile device is located; based on the initial in-room state of the mobile device, using the mobile device to collect signal strengths of multiple wireless access points in multiple rooms, and combining the signal strengths of each of the wireless access points into a signal sequence corresponding to the wireless access point; using a preset main time interval to process multiple signal sequences of different time periods to obtain multiple sequence mean differences; and updating the initial in-room state of the mobile device to a target room state of the mobile device in a target room according to the multiple sequence mean differences.

[0143] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0144] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0145] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A room positioning method based on a mobile device, characterized in that: include: Obtaining the initial room status of the initial room where the mobile device is located; Based on the initial in-room state of the mobile device, using the mobile device to collect signal strengths of multiple wireless access points in multiple rooms, and combining the signal strength of each of the wireless access points into a signal sequence corresponding to the wireless access point; Processing a plurality of signal sequences in different time periods using a preset main time interval to obtain a plurality of sequence mean difference values; The initial in-room state of the mobile device is updated to a target room state of the mobile device in a target room according to a plurality of sequence mean difference values.

2. The room positioning method based on mobile device according to claim 1, characterized in that: The method of processing the plurality of signal sequences in different time periods by using a preset main time interval to obtain a sequence mean difference comprises: Using the main time interval to divide the plurality of signal sequences in different time periods, to obtain a plurality of previous signal sequences and a plurality of current signal sequences; Calculating a plurality of the previous signal sequences to obtain a plurality of previous sequence means, and calculating a plurality of the current signal sequences to obtain a plurality of current sequence means; A plurality of previous sequence means and a plurality of current sequence means are calculated to obtain the sequence mean difference.

3. The room positioning method based on mobile device according to claim 2, characterized in that: The step of calculating the plurality of previous signal sequences to obtain a plurality of previous sequence means comprises: Determine, according to the main time interval, a sub-time interval that is shorter than the main time interval; Determining the number of sequences according to the main time interval and the sub-time interval; Processing a plurality of the previous signal sequences according to the sub-time intervals and the number of sequences to obtain previous sub-signal sequences whose number corresponds to the number of sequences; Calculation is performed on a plurality of the previous sub-signal sequences to obtain a plurality of previous sequence means.

4. The room positioning method based on mobile device according to claim 3, characterized in that: The updating of the initial in-room state of the mobile device to a target room state of the mobile device in a target room according to the plurality of sequence mean value differences comprises: Performing absolute value processing on a plurality of sequence mean differences to obtain a plurality of absolute sequence differences; Comparing the plurality of absolute sequence differences with a preset sequence threshold in sequence; When all the absolute sequence differences are greater than or equal to the sequence threshold, updating the initial in-room state of the mobile device to the in-and-out room state of the mobile device; When the mobile device is in the state of entering or leaving the room, calculating the mean of the previous group sequence; The initial in-room state of the mobile device is updated to the target room state of the mobile device in the target room according to the previous group sequence mean.

5. The room positioning method based on mobile device according to claim 4, characterized in that: After the step of sequentially comparing the plurality of absolute sequence differences with a preset sequence threshold, the method further comprises: In the case that all the absolute sequence difference values ​​are smaller than the sequence threshold, a plurality of the previous sequence means and a plurality of the current sequence means are calculated to obtain a current room sequence steady-state value.

6. The room positioning method based on mobile device according to claim 5, characterized in that: The updating, according to the previous group sequence mean, of the initial in-room state of the mobile device to the target room state of the mobile device in the target room comprises: Calculate the difference between the previous group sequence mean and the current room sequence steady-state value to obtain a group mean difference; Compare the group mean difference with a preset subsequence threshold; In the case that there is at least one group mean difference greater than the subsequence threshold, the target room where the mobile device is located is determined according to the group mean difference, and the initial room state of the mobile device is updated to the target room state of the mobile device in the target room.

7. A room positioning device based on a mobile device, characterized in that: include: An acquisition module, used to acquire an initial room state of an initial room where a mobile device is located; a composition module, configured to collect signal strengths of multiple wireless access points in multiple rooms using the mobile device based on the initial in-room state of the mobile device, and compose the signal strength of each of the wireless access points into a signal sequence corresponding to the wireless access point; A processing module, used for processing a plurality of signal sequences in different time periods using a preset main time interval to obtain a plurality of sequence mean difference values; An updating module is used to update the initial in-room state of the mobile device to a target room state of the mobile device in a target room according to a plurality of sequence mean difference values.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps of the room positioning method based on a mobile device are implemented as described in any one of claims 1 to 6.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the room positioning method based on a mobile device are implemented as described in any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the room positioning method based on a mobile device are implemented as described in any one of claims 1 to 6.