Disclosure of Invention
The embodiment of the application provides a state detection method and device, and aims to solve the problem that the accuracy of state detection of terminal equipment is not high.
In a first aspect, an embodiment of the present application provides a state detection method, including:
acquiring first signals of a serving cell where terminal equipment is located at multiple moments;
acquiring second signals of adjacent cells of the serving cell at a plurality of moments;
and determining the state of the terminal equipment according to the first signal and the second signal, wherein the state of the terminal equipment is a motion state or a static state.
In one possible design, determining the state of the terminal device based on the first signal and the respective second signal includes:
obtaining a target parameter according to the first signal and the second signal;
and determining the state of the terminal equipment according to the target parameters.
In one possible design, deriving the target parameter from the first signal and the second signal includes:
determining a difference value between the first signal and the second signal according to a preset time interval to obtain at least one difference value;
and obtaining a target parameter according to at least one difference value.
In one possible design, the target parameter is any one of the following: variance, mean, standard deviation.
In one possible design, determining the state of the terminal device according to the target parameter includes:
if the target parameter is larger than a first threshold value, determining that the terminal equipment is in a motion state;
and if the target parameter is less than or equal to a second threshold value, determining that the terminal equipment is in a static state.
In one possible design, the signal includes at least one of: received signal strength indication RSSI, reference signal received power RSRP, pilot channel signal strength RSCP.
In a second aspect, an embodiment of the present application provides a state detection apparatus, including:
the terminal equipment comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring first signals of a serving cell where the terminal equipment is located at a plurality of moments;
the obtaining module is further configured to obtain second signals of neighboring cells of the serving cell at multiple times;
and the determining module is used for determining the state of the terminal equipment according to the first signal and the second signal, wherein the state of the terminal equipment is a motion state or a static state.
In one possible design, the determining module is specifically configured to:
obtaining a target parameter according to the first signal and the second signal;
and determining the state of the terminal equipment according to the target parameters.
In one possible design, the determining module is specifically configured to:
determining a difference value between the first signal and the second signal according to a preset time interval to obtain at least one difference value;
and obtaining a target parameter according to at least one difference value.
In one possible design, the target parameter is any one of the following: variance, mean, standard deviation.
In one possible design, the determining module is specifically configured to:
if the target parameter is larger than a first threshold value, determining that the terminal equipment is in a motion state;
and if the target parameter is less than or equal to a second threshold value, determining that the terminal equipment is in a static state.
In one possible design, the signal includes at least one of: received signal strength indication RSSI, reference signal received power RSRP, pilot channel signal strength RSCP.
In a third aspect, an embodiment of the present application provides a status detection apparatus, including:
a memory for storing a program;
a processor for executing the program stored by the memory, the processor being adapted to perform the method of the first aspect as well as any of the various possible designs of the first aspect, when the program is executed.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, comprising instructions which, when executed on a computer, cause the computer to perform the method as described above in the first aspect and any one of the various possible designs of the first aspect.
The embodiment of the application provides a state detection method and a state detection device, wherein the method comprises the following steps: the method comprises the steps of obtaining first signals of a serving cell where the terminal device is located at a plurality of moments. Second signals of neighboring cells of the serving cell at a plurality of time instants are acquired. And determining the state of the terminal equipment according to the first signal and the second signal, wherein the state of the terminal equipment is a moving state or a static state. Because the relationship between the signal of the serving cell and the signal of the neighboring cell may indicate the state of the terminal device, the state of the terminal device may be determined according to the first signal of the serving cell and the second signal of the neighboring cell, and because the first signal and the second signal obtained by the terminal device may ensure accuracy, the state of the terminal device may be determined according to the first signal and the second signal, and the accuracy of the state may also be effectively ensured.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
The method provided in the embodiment of the present application may be applied to an existing communication system, and a scene to which the method of the present application is applied is described below with reference to fig. 1:
fig. 1 is a schematic architecture diagram of a communication system suitable for use in the embodiment of the present invention, and as shown in fig. 1, the communication system includes a network device and a terminal device.
The communication System may be a Global System for Mobile communications (GSM) System, a Code Division Multiple Access (CDMA) System, a Wideband Code Division Multiple Access (WCDMA) System, a Long Term Evolution (LTE) System, or a 5th-Generation (5G) System. Correspondingly, the Base Station may be a Base Transceiver Station (BTS) in a GSM system or a CDMA system, a Base Station (NodeB, NB) in a WCDMA system, an evolved NodeB (eNB) in an LTE system, an Access Point (AP), or a relay Station, or a Base Station in a 5G system, and the like, which is not limited herein.
The terminal device may be a wireless terminal, which may be a device that provides voice and/or data connectivity to a user, a handheld device having wireless connection capability, or other processing device connected to a wireless modem. A wireless terminal may communicate with at least one core Network via a Radio Access Network (RAN). The wireless terminals may be mobile terminals such as mobile telephones (otherwise known as "cellular" telephones) and computers with mobile terminals, such as portable, pocket, hand-held, computer-included, or vehicle-mounted mobile devices, that exchange voice and/or data with a radio access network. The wireless Terminal may also be referred to as a Subscriber Unit (Subscriber Unit), a Subscriber Station (Subscriber Station), a Mobile Station (Mobile Station), a Remote Station (Remote Station), an Access Point (Access Point), a Remote Terminal (Remote Terminal), an Access Terminal (Access Terminal), a User Terminal (User Terminal), a User Equipment (User Equipment, UE for short), or a User Agent (User Agent), which is not limited herein.
Optionally, the Network device may be a Base Transceiver Station (BTS) in a GSM system or a CDMA system, a Base Station (NodeB, NB) in a WCDMA system, an evolved Node B (eNB or eNodeB) in an LTE system, or a wireless controller in a Cloud Radio Access Network (CRAN), or may be a Network device in a Mobile switching center, a relay Station, an Access point, a vehicle-mounted device, a wearable device, a hub, a switch, a bridge, a router, a Network-side device in a 5G Network, or a Network device in a Public Land Mobile Network (PLMN) for future evolution, or the like.
When the communication system is AN NR system, thenetwork device 110 may be a (radio access network (R) AN device in the NR system, and the (R) AN device in the NR system may be: non-3 GPP access networks such as Access Points (APs) of a WiFi network, next generation base stations (which may be collectively referred to as a new generation radio access network node (NG-RAN node), where the next generation base stations include a new air interface base station (NR node b, gNB), a new generation evolved node b (NG-eNB), a Central Unit (CU), a Distributed Unit (DU), a gNB in a separate form, etc.), new radio controllers (NR controllers), radio remote modules, micro base stations, relays (relays), transceiver points (TRPs), transmission Points (TPs), or other nodes.
The embodiments of the present application do not limit the specific technologies and the specific device forms used by the network devices. For convenience of description, in all embodiments of the present application, the above-mentioned apparatus for providing a wireless communication function for a terminal device is collectively referred to as a network device.
In the communication system shown in fig. 1, the network device may be a device that communicates with a terminal device (or referred to as a communication terminal, terminal). A network device may provide communication coverage for a particular geographic area and may communicate with terminal devices located within that coverage area.
Currently, in a communication system, an area covered by a network device, or an area covered by a part of the network device, may be referred to as a cell, and a terminal device may communicate with the network device through a wireless channel in the cell.
For example, referring to fig. 1, assuming that the current terminal device is located in thecell 120 and the network device provides connection for the terminal device, thecell 120 is the serving cell of the terminal device; and, the neighboring cells are cells neighboring to the serving cell, for example, 130 and 110 shown in fig. 1, in an actual implementation process, the number of neighboring cells and the location relationship with the serving cell may depend on the setting of a specific network device, and the specific implementation of the neighboring cells is not particularly limited in this embodiment.
On the basis of the system described above, the following further details are provided for the background art to which the present application relates:
the terminal equipment can be in different states at different moments, wherein the state of the terminal equipment can be a static state or a moving state, for example, and some optimization measures can be taken in a targeted manner by detecting the state of the terminal equipment, so that the use experience and the power consumption performance of the terminal equipment are improved, and the detection of the state of the terminal equipment is particularly important.
At present, when the state of the terminal device is detected in the related art, the state of the terminal device may be detected through a sensor, for example, whether the terminal device is in a static state is detected through a gyroscope in the terminal device, so as to determine the state of the terminal device.
In another possible implementation manner, for example, the positions of the terminal device at different times may be determined by the positioning system, and whether the position of the terminal device changes is determined by determining whether the terminal device is in a moving state or a stationary state.
In view of the above-mentioned problems, the present application proposes the following technical concepts: when the terminal device is in a static state, the relationship between the signal of the serving cell in which the terminal device is located and the signal of the neighboring cell should be relatively stable, and when the terminal device is in a mobile state, the relationship between the signal of the serving cell in which the terminal device is located and the neighboring cell should change relatively greatly, so that the state of the terminal device can be determined according to the signals of the serving cell and the neighboring cell described by the terminal device.
The state detection method provided by the present application is described below with reference to specific embodiments, it should be noted that an execution subject of each embodiment in the present application may be a terminal device, that is, the terminal device may detect its own state by itself, and fig. 2 is a flowchart of the state detection method provided by the embodiment of the present application.
As shown in fig. 2, the method includes:
s201, acquiring first signals of a serving cell where the terminal device is located at multiple moments.
In this embodiment, the first signal may include at least one of the following: received Signal Strength Indication (RSSI), reference Signal Receiving Power (RSRP), pilot Channel Signal Strength (RSCP).
In an actual implementation process, a specific implementation manner of the first signal may be selected according to actual requirements, as long as the first signal is a signal of a serving cell.
In this embodiment, since the terminal device needs to determine whether the relationship between the signal times of the serving cell and the neighboring cells is stable, the terminal device needs to acquire the first signal of the serving cell at multiple times.
In one possible implementation, the terminal device may receive a reference signal sent by the network device, where the reference signal is a signal with known characteristics, and the terminal device determines the first signal of the serving cell by measuring the reference signal.
The network device may send a reference signal to the terminal device, for example, with a preset duration as a period, and then the terminal device performs measurement according to the reference signal, thereby obtaining first signals of the serving cell at multiple times; or, the network device may also send the reference signal to the terminal device at irregular time intervals, so that the terminal device may obtain the first signal of the serving cell at multiple times, and this embodiment does not particularly limit the specific time at which the terminal device obtains the first signal of the serving cell, and may be selected and set according to actual requirements.
S202, second signals of adjacent cells of the serving cell at a plurality of moments are obtained.
The second signal is similar to the first signal described above, except that the second signal is a signal of an adjacent cell, the first signal is a signal of a serving cell, and an implementation manner of acquiring the second signal of the adjacent cell at multiple times is similar to the implementation manner described above in S201, and is not described herein again.
S203, determining the state of the terminal equipment according to the first signal and the second signal, wherein the state of the terminal equipment is a motion state or a static state.
In this embodiment, because the relationship between the signal of the serving cell and the signal of the neighboring cell is different when the terminal device is in the moving state and in the stationary state, the state of the terminal device can be determined according to the first signal and the second signal, and the accuracy of the cell signal acquired by the terminal device can be ensured, so that the state of the terminal device is determined according to the cell signal, and the accuracy can be effectively ensured.
In one possible implementation, for example, a variance may be calculated according to each first signal and each second signal, where the variance may reflect a stable state of data, and therefore, a relationship between a signal of a serving cell and a signal of a neighboring cell may be effectively determined according to the variance, so as to determine a state of the terminal device, and for example, the variance may be compared with a preset threshold value, so as to determine that the state of the terminal device is a moving state or a static state.
Alternatively, for example, a mean, a standard deviation, etc. between the respective first signals and the respective second signals may also be determined, thereby determining the state of the terminal device.
In another possible implementation manner, for example, a preset model may be constructed, where the preset model is used to determine the state of the terminal device according to the first signal and the second signal, and then the first signal and the second signal may be input to the preset model to determine the state of the terminal device, where the preset model may be trained in advance according to the sample signal and the sample state to ensure accuracy of the output state of the terminal device.
The state detection method provided by the embodiment of the application comprises the following steps: the method comprises the steps of obtaining first signals of a serving cell where the terminal device is located at a plurality of moments. Second signals of neighboring cells of the serving cell at a plurality of time instants are acquired. And determining the state of the terminal equipment according to the first signal and the second signal, wherein the state of the terminal equipment is a moving state or a static state. Because the relationship between the signal of the serving cell and the signal of the neighboring cell may indicate the state of the terminal device, the state of the terminal device may be determined according to the first signal of the serving cell and the second signal of the neighboring cell, and because the first signal and the second signal obtained by the terminal device may ensure accuracy, the state of the terminal device may be determined according to the first signal and the second signal, and the accuracy of the state may also be effectively ensured.
Based on the foregoing embodiments, the following describes the state detection method provided by the present application in further detail with reference to a specific embodiment, fig. 3 is a flowchart of the state detection method provided by the present application, and fig. 4 is a schematic diagram of determining a state of a terminal device provided by the present application.
As shown in fig. 3, the method includes:
s301, acquiring first signals of a serving cell where the terminal device is located at multiple moments.
S302, second signals of adjacent cells of the service cell at a plurality of moments are obtained.
The implementation manners of S301 and S302 are similar to the implementation manners of S201 and S202, and are not described herein again.
S303, determining the difference value of the first signal and the second signal according to the preset time interval to obtain at least one difference value.
In a possible implementation manner, the terminal device may determine a difference value between the first signal and the second signal according to a preset time interval, and it is understood that in this implementation, the first signal is at multiple time instants, and the second signal is also at multiple time instants, so that the first signal and the second signal are multiple, and thus multiple difference values may be obtained currently.
The specific setting of the preset time interval may be selected according to actual requirements, which is not limited in this embodiment, that is, in this embodiment, the terminal device may calculate the difference between the first signal and the second signal at intervals.
In a possible implementation manner, the current preset time interval may be the time when the terminal device described above acquires the first signal and the second signal, that is, the terminal device may acquire the first signal and the second signal once every period of time, then calculate the difference value between the currently acquired first signal and the currently acquired second signal, and after a plurality of periods of time, obtain a plurality of difference values.
In another possible implementation manner, the terminal device may calculate, at intervals, a difference value between one or more first signals and one or more second signals acquired during the intervals.
That is, in this embodiment, the time for acquiring the first signal and the second signal and the time for calculating the difference between the signals may be the same or different, and this embodiment does not limit this.
It should be noted that, in this embodiment, when determining the difference between the first signal and the second signal, the first signal and the second signal are the same type of signal, for example, the first signal is RSSI, and then the second signal is RSSI, and the other implementation manners are similar, because only the same type of signal calculates the difference, the stability of the finally determined state can be ensured.
And S304, obtaining a target parameter according to the at least one difference value.
The target parameter in this embodiment is a parameter for indicating whether the first signal of the serving cell and the second signal of the neighboring cell are stable, where the target parameter may be any one of the following: in an actual implementation process, what target parameters are specifically obtained according to differences between the first signals and the second signals may be selected according to actual requirements as long as the target parameters may indicate whether the first signal of the serving cell and the first signal of the neighboring cell are stable, which is not particularly limited in this embodiment.
The following describes an implementation manner of obtaining the target parameter according to at least one difference value by taking the variance as an example.
Assuming that n difference values are obtained currently according to each first signal and each second signal, where each time corresponds to one difference value, where n is an integer greater than or equal to 1, the target parameter may satisfy the following formula one, for example:
where n is the number of differences, Δ ti Is ti The difference value of time, σ, is a variance, that is, the target parameter in this embodiment, and μ is an average value of the difference values, where μmay satisfy the following formula two:
the above description is to obtain the variance according to at least one difference, and if the target parameter is the rest of the parameters, the implementation manner is similar, and details are not described here.
S305, determining the state of the terminal equipment according to the target parameters.
After obtaining the target parameter, the state of the terminal device may be determined according to the target parameter, for example, referring to fig. 4, the target parameter may be determined according to the first signal and the second signal.
In a possible implementation manner, if the target parameter is greater than the first threshold, it is determined that the terminal device is in a motion state.
For example, the target parameter is a variance, it can be understood that when the variance of the first signal and the second signal is greater than the first threshold, the relationship between the signal representing the serving cell and the signal representing the neighboring cell is unstable, and the change is large, and it may be determined that the terminal device is in a motion state.
In another possible implementation manner, if the target parameter is less than or equal to the second threshold, it is determined that the terminal device is in a stationary state.
For example, the target parameter is a variance, it can be understood that when the variance of the first signal and the second signal is less than or equal to the second threshold, the relationship between the signal representing the serving cell and the signal of the neighboring cell is stable, and the change is not large, and it can be determined that the terminal device is in a stationary state.
The setting of the first threshold and the second threshold may be selected according to actual requirements, where the first threshold and the second threshold may be equal or unequal, and this embodiment does not limit this.
In a possible implementation manner of this embodiment, for example, there may be a plurality of neighboring cells of the serving cell, and the foregoing operations may be performed for each neighboring cell, so as to obtain a target parameter corresponding to each neighboring cell, and then, the target parameter and the threshold are compared according to each cell, so as to determine the state of the terminal device.
In a possible implementation manner, if it is determined that the target parameter of any one neighboring cell is greater than the first threshold, it may be determined that the terminal device is in a motion state;
and if the target parameter of any one adjacent cell is determined to be less than or equal to the second threshold, determining that the terminal device is in a static state.
In another possible implementation manner, if it is determined that the target parameters of each neighboring cell are all greater than the first threshold, it may be determined that the terminal device is in a motion state;
and if the target parameters of all the adjacent cells are smaller than or equal to the second threshold, determining that the terminal equipment is in a static state.
In this embodiment, when there are multiple neighboring cells, the implementation manner for determining the state of the terminal device is not particularly limited, and may be selected according to actual requirements.
The state detection method provided by the embodiment of the application comprises the following steps: the method comprises the steps of obtaining first signals of a serving cell where the terminal device is located at a plurality of moments. Second signals of neighboring cells of the serving cell at a plurality of time instants are acquired. And determining the difference value of the first signal and the second signal according to the preset time interval to obtain at least one difference value. And obtaining the target parameter according to the at least one difference value. And determining the state of the terminal equipment according to the target parameters. The difference value of the first signal and the second signal is determined according to the preset time interval, so that the target parameter obtained according to the difference value can be ensured, whether the first signal and the second signal are stable within a period of time can be effectively indicated, and the accuracy of the finally determined state of the terminal equipment is effectively ensured.
Fig. 5 is a schematic structural diagram of a state detection device according to an embodiment of the present application. As shown in fig. 5, the apparatus 50 includes: anacquisition module 501 and adetermination module 502.
An obtainingmodule 501, configured to obtain first signals of a serving cell where a terminal device is located at multiple times;
the obtainingmodule 501 is further configured to obtain second signals of neighboring cells of the serving cell at multiple time instants;
a determiningmodule 502, configured to determine a state of the terminal device according to the first signal and the second signal, where the state of the terminal device is a moving state or a static state.
In one possible design, the determiningmodule 502 is specifically configured to:
obtaining a target parameter according to the first signal and the second signal;
and determining the state of the terminal equipment according to the target parameters.
In one possible design, the determiningmodule 502 is specifically configured to:
determining a difference value between the first signal and the second signal according to a preset time interval to obtain at least one difference value;
and obtaining a target parameter according to at least one difference value.
In one possible design, the target parameter is any one of the following: variance, mean, standard deviation.
In one possible design, the determiningmodule 502 is specifically configured to:
if the target parameter is larger than a first threshold value, determining that the terminal equipment is in a motion state;
and if the target parameter is less than or equal to a second threshold value, determining that the terminal equipment is in a static state.
In one possible design, the signal includes at least one of: received signal strength indication RSSI, reference signal received power RSRP, pilot channel signal strength RSCP.
The apparatus provided in this embodiment may be used to implement the technical solutions of the above method embodiments, and the implementation principles and technical effects are similar, which are not described herein again.
Fig. 6 is a schematic diagram of a hardware structure of a state detection device according to an embodiment of the present application, and as shown in fig. 6, a state detection device 60 according to the present embodiment includes: aprocessor 601 and amemory 602; wherein
Amemory 602 for storing computer-executable instructions;
theprocessor 601 is configured to execute computer-executable instructions stored in the memory to implement the steps performed by the state detection method in the foregoing embodiments. Reference may be made in particular to the description relating to the method embodiments described above.
Alternatively, thememory 602 may be separate or integrated with theprocessor 601.
When thememory 602 is separately provided, the state detection apparatus further includes abus 603 for connecting thememory 602 and theprocessor 601.
An embodiment of the present application further provides a computer-readable storage medium, where a computer executing instruction is stored in the computer-readable storage medium, and when a processor executes the computer executing instruction, the state detection method executed by the above state detection device is implemented.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules is only one logical division, and other divisions may be realized in practice, for example, a plurality of modules may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The integrated module implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present application.
It should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile storage NVM, such as at least one disk memory, and may also be a usb disk, a removable hard disk, a read-only memory, a magnetic or optical disk, etc.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The storage medium may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.