CN112328515B - Equipment detection method and device - Google Patents

Equipment detection method and device Download PDF

Info

Publication number
CN112328515B
CN112328515B CN202011215618.1A CN202011215618A CN112328515B CN 112328515 B CN112328515 B CN 112328515B CN 202011215618 A CN202011215618 A CN 202011215618A CN 112328515 B CN112328515 B CN 112328515B
Authority
CN
China
Prior art keywords
positioning data
accuracy
condition
positioning
timer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011215618.1A
Other languages
Chinese (zh)
Other versions
CN112328515A (en
Inventor
黄锐
卫驰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Didi Infinity Technology and Development Co Ltd
Original Assignee
Beijing Didi Infinity Technology and Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Didi Infinity Technology and Development Co Ltd filed Critical Beijing Didi Infinity Technology and Development Co Ltd
Priority to CN202011215618.1A priority Critical patent/CN112328515B/en
Publication of CN112328515A publication Critical patent/CN112328515A/en
Application granted granted Critical
Publication of CN112328515B publication Critical patent/CN112328515B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)

Abstract

The embodiment of the application provides a device detection method and a device, wherein the method comprises the following steps: and acquiring positioning data of the terminal equipment, and determining the accuracy of the positioning data. If the accuracy of the positioning data meets the first condition, determining the duration that the accuracy of the positioning data meets the first condition. If the duration time is longer than or equal to the preset duration time, the fact that the terminal equipment is connected with the external positioning equipment is determined. In this embodiment, by detecting whether the accuracy of the positioning data meets the first condition, when it is determined that the duration time when the accuracy of the positioning data meets the first condition reaches the preset duration time, it may be determined that the terminal device is connected with the external positioning device, because the accuracy of the virtual positioning data transmitted by the external positioning device is generally lower, that is, the accuracy of the virtual positioning data may meet the first condition, so based on the detection of the accuracy of the positioning data, the accuracy of the detection of the external positioning device may be effectively ensured.

Description

Equipment detection method and device
Technical Field
The embodiment of the application relates to a computer technology, in particular to a device detection method and device.
Background
At present, the terminal equipment can realize the positioning function, and when the terminal equipment is connected with the external positioning equipment, the virtual positioning of the terminal equipment can also be realized.
When a user performs virtual positioning through a terminal device, some illegal operations may be performed, so that detection on whether the terminal device is connected with an external positioning device is particularly important, wherein the external positioning device is usually connected with the terminal device through bluetooth or universal serial bus (universal serial bus, USB), so that at present, when the external positioning device is detected, the connection state of bluetooth or USB of the terminal device is usually detected.
However, there are many types of devices connected to the terminal device through bluetooth or USB, and they are not necessarily external positioning devices, so the accuracy of detecting the external positioning devices through bluetooth or USB is low.
Disclosure of Invention
The embodiment of the application provides a device detection method and device, which are used for solving the problem of low accuracy in detecting external positioning devices.
In a first aspect, an embodiment of the present application provides a device detection method, including:
Acquiring positioning data of terminal equipment, and determining the accuracy of the positioning data;
If the accuracy of the positioning data meets the first condition, determining the duration that the accuracy of the positioning data meets the first condition;
and if the duration time is longer than or equal to the preset duration time, determining that the terminal equipment is connected with external positioning equipment.
In one possible design, the determining the duration for which the accuracy of the positioning data satisfies the first condition includes:
starting a timer when the accuracy of the positioning data is determined to meet a first condition;
Closing the timer when the positioning data meets a second condition or when the timer meets a third condition;
And acquiring the starting time length of the timer, and determining the starting time length of the timer as the time length of the accuracy of the positioning data meeting the first condition.
In one possible design, the positioning data satisfying the second condition includes at least one of: the accuracy of the positioning data does not meet the first condition, and the positioning data is lost.
In one possible design, the timer meeting the third condition includes: and the starting time of the timer reaches the preset time.
In one possible design, the determining the accuracy of the positioning data includes:
acquiring decimal numbers in the positioning data, wherein the decimal numbers are data digits after decimal points of the positioning data;
And determining the accuracy of the positioning data according to the decimal places.
In one possible design, the accuracy of the positioning data satisfies a first condition, comprising: the decimal place in the positioning data is a first preset digit.
In one possible design, the accuracy of the positioning data satisfies a first condition, comprising: the decimal place in the positioning data is less than a first threshold.
In one possible design, the positioning data includes: horizontal accuracy, altitude, direction angle.
In a second aspect, an embodiment of the present application provides an apparatus detecting device, including:
The acquisition module is used for acquiring positioning data of the terminal equipment and determining the accuracy of the positioning data;
The determining module is used for determining duration time for the accuracy of the positioning data to meet the first condition if the accuracy of the positioning data meets the first condition;
and the determining module is further used for determining that the terminal equipment is connected with external positioning equipment if the duration time is longer than or equal to a preset duration time.
In one possible design, the determining module is specifically configured to:
starting a timer when the accuracy of the positioning data is determined to meet a first condition;
Closing the timer when the positioning data meets a second condition or when the timer meets a third condition;
And acquiring the starting time length of the timer, and determining the starting time length of the timer as the time length of the accuracy of the positioning data meeting the first condition.
In one possible design, the positioning data satisfying the second condition includes at least one of: the accuracy of the positioning data does not meet the first condition, and the positioning data is lost.
In one possible design, the timer meeting the third condition includes: and the starting time of the timer reaches the preset time.
In one possible design, the determining module is specifically configured to:
acquiring decimal numbers in the positioning data, wherein the decimal numbers are data digits after decimal points of the positioning data;
And determining the accuracy of the positioning data according to the decimal places.
In one possible design, the accuracy of the positioning data satisfies a first condition, comprising: the decimal place in the positioning data is a first preset digit.
In one possible design, the accuracy of the positioning data satisfies a first condition, comprising: the decimal place in the positioning data is less than a first threshold.
In one possible design, the positioning data includes: horizontal accuracy, altitude, direction angle.
In a third aspect, an embodiment of the present application provides an apparatus detecting 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 and any of the various possible designs of the first aspect as described above when the program is executed.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium comprising instructions which, when run on a computer, cause the computer to perform the method of the first aspect above and any of the various possible designs of the first aspect.
The embodiment of the application provides a device detection method and a device, wherein the method comprises the following steps: and acquiring positioning data of the terminal equipment, and determining the accuracy of the positioning data. If the accuracy of the positioning data meets the first condition, determining the duration that the accuracy of the positioning data meets the first condition. If the duration time is longer than or equal to the preset duration time, the fact that the terminal equipment is connected with the external positioning equipment is determined. In this embodiment, by detecting whether the accuracy of the positioning data meets the first condition, when it is determined that the duration time when the accuracy of the positioning data meets the first condition reaches the preset duration time, it may be determined that the terminal device is connected with the external positioning device, because the accuracy of the virtual positioning data transmitted by the external positioning device is generally lower, that is, the accuracy of the virtual positioning data may meet the first condition, so based on the detection of the accuracy of the positioning data, the accuracy of the detection of the external positioning device may be effectively ensured.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions of the prior art, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it will be obvious that the drawings in the following description are some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort to a person skilled in the art.
Fig. 1 is a schematic diagram of implementing virtual positioning of a terminal device according to an embodiment of the present application;
Fig. 2 is a schematic implementation diagram of a terminal device connected to an external positioning device through a USB according to an embodiment of the present application;
fig. 3 is a schematic implementation diagram of a terminal device connected to an external positioning device through bluetooth according to an embodiment of the present application;
FIG. 4 is a flowchart of a device detection method according to an embodiment of the present application;
FIG. 5 is another flowchart of a device detection method according to an embodiment of the present application;
FIG. 6 is a schematic diagram of implementation of virtual positioning data according to an embodiment of the present application;
FIG. 7 is a schematic diagram of implementation of real positioning data according to an embodiment of the present application;
FIG. 8 is a schematic diagram illustrating an implementation of timer timing according to an embodiment of the present application;
Fig. 9 is a schematic structural diagram of an apparatus detection device according to an embodiment of the present application;
Fig. 10 is a schematic hardware structure of a device detection device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
For better understanding of the technical solution of the present application, first, the background art related to the present application is described in further detail:
The terminal device can typically implement a positioning function, and many applications rely on the positioning function of the terminal device to implement corresponding service processing.
However, the terminal device may perform a normal positioning function, and may also connect with an external positioning device to implement virtual positioning, where virtual positioning refers to that the actual position of the current terminal device is in position a, but after virtual positioning by means of the external positioning device, the positioning data of the terminal device may be modified to position B.
Some users are connected with external positioning equipment through terminal equipment to perform virtual positioning, possibly some illegal operations are performed, here, an implementation manner of performing the illegal operations based on the virtual positioning is described by taking a scene of receiving a ticket from a network taxi driver as an example in conjunction with fig. 1, and fig. 1 is a schematic diagram of implementing the virtual positioning of the terminal equipment provided by the embodiment of the present application.
As shown in fig. 1, for example, a driver of a network bus may connect an external positioning device through a terminal device, and a virtual positioning application program may be installed in the terminal device, where the virtual positioning application program may be, for example, a black product application program, and the virtual positioning application program may falsify positioning data and send the falsified positioning data to the external positioning device, and then the external positioning device sends the falsified positioning data to the terminal device, so as to implement virtual positioning of the terminal device.
The network taxi driver can then take the travel order of the black product and carry out virtual track roadways, wherein the virtual track roadways can be understood that the network taxi driver does not actually carry out the trip, but based on virtual positioning, the terminal equipment can send fake positioning data to the network taxi application program, so that the trip can be completed in a false way, and then the network taxi taking platform is cheated to carry out order fee payment so as to obtain illegal benefits.
And in other application scenes, users can realize various illegal operations based on virtual positioning, thus resulting in obtaining benefits of the user illegal, damaging related systems or platforms and possibly reducing the security of the related systems or platforms.
Therefore, it is important to detect whether the terminal device has a virtual positioning action, and at present, different terminal devices of different systems have a certain difference in implementation manners of the virtual positioning detection.
In the android system, on the basis of user consent, the terminal device can analyze an application program list installed on the terminal device, so as to determine a suspected virtual positioning order, and determine whether the terminal device performs virtual positioning. However, in the apple mobile device operating system (iPhone Operation System, IOS) system, since rights are strictly managed, features that are available on the application are few, and thus it is impossible to determine whether the terminal device is virtually located based on the information of the application.
The terminal device is usually connected to the external positioning device through USB or bluetooth, so as to implement virtual positioning, so in one possible implementation, for example, for the terminal device of the IOS system, the connection state of bluetooth or USB may be detected, so as to determine whether the terminal device is connected to the external positioning device.
For example, an implementation manner of connecting a terminal device to an external positioning device through USB and bluetooth may be described with reference to fig. 2 and fig. 3, fig. 2 is a schematic implementation diagram of connecting a terminal device to an external positioning device through USB, and fig. 3 is a schematic implementation diagram of connecting a terminal device to an external positioning device through bluetooth.
In one possible implementation, as shown in fig. 2, the terminal device may be connected to the external positioning device through, for example, a USB, and then the virtual positioning of the terminal device is implemented based on the external positioning device, and then the connection state of the USB of the terminal device may be detected, so as to determine whether the external positioning device is connected to the terminal device.
In another possible implementation manner, as shown in fig. 3, the terminal device may be connected to the external positioning device through bluetooth, and then virtual positioning of the terminal device is implemented based on the external positioning device, and then the connection state of bluetooth of the terminal device may be detected, so as to determine whether the external positioning device is connected to the terminal device.
The external positioning device may be, for example, a vehicle-mounted positioning service (carrlay) of the apple system, or may also be a positioning cheater, and the specific implementation manner of the external positioning device is not limited in this embodiment, so long as the external positioning device may be connected with the terminal device, and virtual positioning of the terminal device may be achieved.
However, there may be many devices connected to the terminal device through bluetooth or USB, for example, the terminal device may be connected to the charger through USB, or the terminal device may be connected to a speaker, a headset, a television, etc. through bluetooth, so the accuracy of detecting the external device based on the connection state of bluetooth or USB is low.
Moreover, at present, after the permission of the IOS is further strict, the connection state of bluetooth or USB may not be detected, so that whether the terminal device of the IOS system is connected with the external positioning device may not be obtained.
Aiming at the problems in the prior art, the application provides the following technical conception: through carrying out a large amount of data analysis on normal positioning data and virtual positioning data, it is found that the accuracy of the virtual positioning data transmitted by the external positioning device is generally lower, so that the accuracy of the positioning data of the current terminal device can be detected, when the accuracy of the positioning data of the terminal device is lower, the external positioning device is determined to be connected with the terminal device, and the accuracy of the positioning data transmitted by the IOS system is strictly limited, so that the accuracy of the virtual positioning data cannot be improved by the external positioning device, the external positioning device is detected based on the accuracy of the positioning data, and the detection of the external positioning device can be simply and accurately realized, so that the detection accuracy of the external positioning device is improved.
The method for detecting a device according to the present application will be described in detail with reference to specific embodiments, and fig. 4 is a flowchart of the method for detecting a device according to the embodiment of the present application.
As shown in fig. 4, the method includes:
s401, acquiring positioning data of the terminal equipment, and determining the accuracy of the positioning data.
In this embodiment, the positioning data of the terminal device may include, for example: horizontal accuracy, altitude, direction angle. The horizontal precision refers to the distance error between the positioning data and the actual position, the direction angle is used for indicating the current direction position of the terminal equipment, and the elevation refers to the height difference between the current position and the sea level.
In the actual implementation process, the positioning data of the terminal device may be selected and expanded according to the actual requirement, and the implementation manner of the positioning data of the terminal device is not particularly limited in this embodiment, so long as the positioning data can indicate the position information of the terminal device.
In one possible implementation, when acquiring the positioning data of the terminal device, for example, the positioning data may be acquired on an application installed in the terminal device, so as to obtain the positioning data of the terminal device. The method for acquiring the positioning data of the terminal device may be, for example, acquiring the positioning data in real time, or may also be acquiring the positioning data at regular time according to a preset period, for example, acquiring the positioning data once every 5 seconds, which is not particularly limited in the embodiment.
The accuracy of each data in the positioning data may be determined according to the present embodiment, where the accuracy of the data may be, for example, the decimal place of the data.
S402, if the accuracy of the positioning data meets the first condition, determining the duration that the accuracy of the positioning data meets the first condition.
After the positioning data of the terminal device is acquired, it may be determined whether the positioning data of the terminal device satisfies the first condition, which is a condition for determining whether the accuracy of the positioning data is low, because the accuracy of the virtual positioning data is generally low.
In one possible implementation, the first condition may be, for example, that the accuracy of the positioning data is equal to a first predetermined accuracy, wherein the first predetermined accuracy may be, for example, a lower accuracy; or the first condition may be that the accuracy of the positioning data is smaller than a second preset accuracy, where the second preset accuracy may be, for example, the accuracy of the normal positioning data, and the implementation manner of the first condition is not particularly limited in this embodiment.
In one possible implementation manner, if it is determined that the accuracy of the positioning data meets the first condition, it may be determined that the accuracy of the current positioning data is not high, so it may be determined that the current positioning data is virtual positioning data, and it may be initially determined that the terminal device is suspected of being connected to the external positioning device. In order to accurately judge the external positioning device, the duration of time that the accuracy of the positioning data meets the first condition can be determined, wherein the positioning data of the terminal device meets the first condition within the duration of time.
In another possible implementation manner, if it is determined that the accuracy of the positioning data does not meet the first condition, it may be determined that the accuracy of the current positioning data is not low, so that it may be determined that the current positioning data is real positioning data, and then a determination may be continuously made as to whether the positioning meets the first condition.
S403, if the duration time is longer than or equal to the preset duration time, determining that the terminal equipment is connected with the external positioning equipment.
Wherein, whether the duration that the accuracy of the positioning data meets the first condition is greater than or equal to the preset duration can be judged.
In one possible implementation manner, if the duration is determined to be greater than or equal to the preset duration, it may be determined that the accuracy of the positioning data is within the preset duration, and the first condition is satisfied, that is, the positioning data of the terminal device is virtual data within the preset duration, so that it may be determined that the terminal device is connected with the external positioning device.
In another possible implementation manner, if the duration is determined to be less than the preset duration, it is indicated that the duration in which the accuracy of the positioning data meets the first condition does not reach the preset duration, and in order to avoid false detection, it may be determined that the current terminal device is not connected to the external positioning device, and then the judgment is continued.
The device detection method provided by the embodiment of the application comprises the following steps: and acquiring positioning data of the terminal equipment, and determining the accuracy of the positioning data. If the accuracy of the positioning data meets the first condition, determining the duration that the accuracy of the positioning data meets the first condition. If the duration time is longer than or equal to the preset duration time, the fact that the terminal equipment is connected with the external positioning equipment is determined. In this embodiment, by detecting whether the accuracy of the positioning data meets the first condition, when it is determined that the duration time when the accuracy of the positioning data meets the first condition reaches the preset duration time, it may be determined that the terminal device is connected with the external positioning device, because the accuracy of the virtual positioning data transmitted by the external positioning device is generally lower, that is, the accuracy of the virtual positioning data may meet the first condition, so based on the detection of the accuracy of the positioning data, the accuracy of the detection of the external positioning device may be effectively ensured.
On the basis of the foregoing embodiments, the method for detecting a device according to the present application will be described in further detail with reference to a specific embodiment, fig. 5 is another flowchart of the method for detecting a device according to the embodiment of the present application, fig. 6 is a schematic implementation diagram of virtual positioning data according to the embodiment of the present application, fig. 7 is a schematic implementation diagram of real positioning data according to the embodiment of the present application, and fig. 8 is a schematic implementation diagram of timer timing according to the embodiment of the present application.
As shown in fig. 5, the method includes:
S501, acquiring positioning data of the terminal equipment.
The implementation of S501 is similar to that of S401, and will not be described here again.
S502, acquiring decimal places in the positioning data, wherein the decimal places are data digits after decimal points of the positioning data.
S503, determining the accuracy of the positioning data according to the decimal places.
S502 and S503 are described together as follows:
in this embodiment, the accuracy of the positioning data may be determined according to the decimal places in the positioning data, for example, so that the decimal places in each positioning data may be obtained, where the decimal places of the positioning data are the data digits after the decimal point of the positioning data.
After determining the decimal places in the positioning data, the accuracy of the respective positioning data may be determined from the decimal places, which in one possible implementation may be the accuracy of the positioning data, e.g. may represent that the accuracy of a certain positioning data is several decimal places.
For example, if there is currently one positioning data 45.489212, the decimal number of the current positioning data is 6 bits, and the corresponding accuracy of the current positioning data is 6 bits after the decimal point; if there is currently one positioning data of 67.23, the decimal number of the current positioning data is 2 bits, and the accuracy of the corresponding current positioning data is 2 bits after the decimal point.
The accuracy of the positioning data is not limited in this embodiment, and depends on the specific implementation of the acquired positioning data.
S504, judging whether the accuracy of the positioning data meets the first condition, if so, executing S505, and if so, executing S504.
After determining the accuracy of the positioning data, it may be determined whether the accuracy of the positioning data satisfies a first condition, thereby determining whether the accuracy of the positioning data is low, thereby determining whether the positioning data is virtual data.
In one possible implementation, the first condition may be, for example, that the decimal number of the positioning data is a first preset number of digits, wherein after data analysis of the virtual positioning data, it is found that the accuracy of the virtual positioning data is typically 1 digit after the decimal point. For example, as can be understood with reference to fig. 6, the accuracy of the altitude, the direction angle, and the horizontal accuracy is 1 bit after the decimal point, and because of the limitation of the IOS system, there is a strict data accuracy requirement on the externally transmitted positioning data, so the external positioning device cannot improve the accuracy of the positioning data transmitted to the terminal device.
In this embodiment, therefore, it may be determined whether the accuracy of the positioning data is the first preset number of bits, so as to determine whether the accuracy of the positioning data is low, for example, in the example of fig. 6, it may be determined whether the accuracy of the positioning data is 1 bit after the decimal point.
In another possible implementation, the first condition may be, for example, that the decimal number of the positioning data is less than or equal to a first threshold, wherein it is found that, after data analysis of the real positioning data, the accuracy of the real positioning data is typically at least 6 bits after the decimal point. For example, as can be understood with reference to fig. 7, as shown in fig. 7, the accuracy of the altitude, the direction angle, and the horizontal accuracy is 6 bits after the decimal point.
In this embodiment, therefore, it may also be determined whether the accuracy of the positioning data is smaller than the first threshold value, so as to determine whether the accuracy of the positioning data is lower, for example, in the example of fig. 7, it may be determined whether the accuracy of the positioning data is smaller than 6 bits after the decimal point, for example, when the accuracy of the positioning data is 2 bits after the decimal point, or 3 bits after the decimal point, it may be determined that the accuracy of the current positioning data satisfies the first condition, that is, the accuracy of the positioning data is lower.
S505, starting a timer.
In one possible implementation manner, when determining that the accuracy of the positioning data meets the first condition, the duration that the accuracy of the positioning data meets the first condition may be further determined, for example, refer to fig. 7, and the timer in this embodiment is used to time the duration that the accuracy of the positioning data meets the first condition by starting the timer at the moment when determining that the accuracy of the positioning data meets the first condition.
In this embodiment, the positioning data may include at least one, for example, the positioning data may include at least one of altitude, direction angle, and horizontal accuracy, and then when determining whether the accuracy of the positioning data satisfies the first condition.
In one possible implementation, the accuracy of the positioning data may be determined to meet the first condition, for example, when the accuracy of each positioning data is determined to meet the first condition, for example, the altitude, the direction angle, and the horizontal accuracy are all met.
In another possible implementation, the accuracy of the positioning data may be determined to meet the first condition, for example, in determining that the accuracy of any one of the respective positioning data meets the first condition, for example, any one of altitude, direction angle, and horizontal accuracy.
The implementation manner of determining that the accuracy of the positioning data meets the first condition is not limited in this embodiment, and may be selected according to actual requirements.
S505, when the positioning data meets the second condition or the timer meets the third condition, the timer is closed.
After the timer is started, whether the accuracy of the positioning data meets the first condition can be continuously judged, if the accuracy of the positioning data meets the first condition, the timer can be continuously timed, it can be understood that the timer in the embodiment is started only when the accuracy of the positioning data is determined to meet the first condition for the first time, after the timer is started, if the accuracy of the positioning data is determined to meet the first condition again, the timer is not repeatedly started, that is, when the timer is in the started state, the timer is not started again.
In the process that the timer keeps counting, when certain conditions are met, the timer stops counting, so that the duration that the accuracy of the positioning data meets the first condition is determined.
In one possible implementation, for example, the timer may be turned off when the accuracy of the positioning data does not meet the first condition, which indicates that the accuracy of the current positioning data is already high, and the current positioning data is not virtual positioning data, so the timer may be turned off.
In another possible implementation, for example, the timer may be turned off when the positioning data is lost, and it is necessary to turn off the timer because the positioning data is lost at this time, and it is no longer possible to determine whether the accuracy of the positioning data satisfies the first condition.
In another possible implementation manner, for example, the timer may be turned off when the on duration of the timer reaches the preset duration, in this embodiment, after the duration is determined, the duration is compared with the preset duration, so as to finally determine whether the positioning data is virtual positioning data, so if in this embodiment, when it is determined that the duration of the current timer reaches the preset duration, it may already be determined that the current positioning data is virtual positioning data, so that it is not necessary to count time any more, and the timer may be turned off at this time, thereby effectively saving system resources.
S506, acquiring the starting time length of the timer, and determining the starting time length of the timer as the time length when the accuracy of the positioning data meets the first condition.
S507, if the duration time is longer than or equal to the preset duration time, determining that the terminal equipment is connected with external positioning equipment.
After the timer is closed, the opening time length of the timer can be acquired, the opening time length of the timer is used for determining the duration time length of the positioning data with accuracy meeting the first condition, and then whether the duration time length is larger than or equal to the preset time length is judged, wherein the specific implementation of the preset time length can be selected according to actual requirements, for example, the preset time length can be set to be 10 seconds, and when the duration time length is larger than or equal to 10 seconds, it can be determined that the external positioning device is connected to the terminal device.
If the duration time is determined to be longer than or equal to the preset duration time, determining that the positioning data of the current terminal equipment is virtual positioning data, so that the terminal equipment is connected with external positioning equipment; if the duration is determined to be less than the preset duration, in order to avoid false detection, it may be determined that the terminal device is not connected to the external device at present, and then the accuracy of the positioning data of the terminal device is continuously determined.
The device detection method provided by the embodiment of the application comprises the following steps: and acquiring positioning data of the terminal equipment. The accuracy of the positioning data is determined from the decimal places. And judging whether the accuracy of the positioning data meets a first condition, and if so, starting a timer. The timer is turned off when the positioning data satisfies the second condition or when the timer satisfies the third condition. Acquiring the starting time length of the timer, and determining the starting time length of the timer as the time length of the accuracy of the positioning data meeting the first condition. If the duration time is longer than or equal to the preset duration time, the fact that the terminal equipment is connected with the external positioning equipment is determined. Whether the accuracy of the positioning data meets the first condition or not is judged, the accuracy of the detection of the external positioning equipment can be effectively ensured, the external positioning equipment is determined to be connected when the accuracy of the positioning data meets the first condition, the detection is effectively avoided, and the accuracy of the detection of the external positioning equipment is further effectively ensured.
Fig. 9 is a schematic structural diagram of an apparatus detecting device according to an embodiment of the present application. As shown in fig. 9, the apparatus 90 includes: an acquisition module 901 and a determination module 902.
An acquisition module 901, configured to acquire positioning data of a terminal device, and determine accuracy of the positioning data;
A determining module 902, configured to determine a duration for which the accuracy of the positioning data meets the first condition if the accuracy of the positioning data meets the first condition;
the determining module 902 is further configured to determine that the terminal device is connected with an external positioning device if the duration is greater than or equal to a preset duration.
In one possible design, the determining module 902 is specifically configured to:
starting a timer when the accuracy of the positioning data is determined to meet a first condition;
Closing the timer when the positioning data meets a second condition or when the timer meets a third condition;
And acquiring the starting time length of the timer, and determining the starting time length of the timer as the time length of the accuracy of the positioning data meeting the first condition.
In one possible design, the positioning data satisfying the second condition includes at least one of: the accuracy of the positioning data does not meet the first condition, and the positioning data is lost.
In one possible design, the timer meeting the third condition includes: and the starting time of the timer reaches the preset time.
In one possible design, the determining module 902 is specifically configured to:
acquiring decimal numbers in the positioning data, wherein the decimal numbers are data digits after decimal points of the positioning data;
And determining the accuracy of the positioning data according to the decimal places.
In one possible design, the accuracy of the positioning data satisfies a first condition, comprising: the decimal place in the positioning data is a first preset digit.
In one possible design, the accuracy of the positioning data satisfies a first condition, comprising: the decimal place in the positioning data is less than a first threshold.
In one possible design, the positioning data includes: horizontal accuracy, altitude, direction angle.
The device provided in this embodiment may be used to implement the technical solution of the foregoing method embodiment, and its implementation principle and technical effects are similar, and this embodiment will not be described herein again.
Fig. 10 is a schematic hardware structure diagram of an apparatus detection apparatus according to an embodiment of the present application, as shown in fig. 10, an apparatus detection apparatus 100 according to the present embodiment includes: a processor 1001 and a memory 1002; wherein the method comprises the steps of
Memory 1002 for storing computer-executable instructions;
the processor 1001 is configured to execute computer-executable instructions stored in the memory, so as to implement the steps executed by the device detection method in the above embodiment. Reference may be made in particular to the relevant description of the embodiments of the method described above.
Alternatively, the memory 1002 may be separate or integrated with the processor 1001.
When the memory 1002 is provided separately, the device detection apparatus further comprises a bus 1003 for connecting the memory 1002 and the processor 1001.
The embodiment of the application also provides a computer readable storage medium, wherein computer execution instructions are stored in the computer readable storage medium, and when a processor executes the computer execution instructions, the device detection method executed by the device detection device is realized.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple modules may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical, mechanical, or other forms.
The integrated modules, which are implemented in the form of software functional modules, may be stored in a computer readable storage medium. The software functional module is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (english: processor) to perform some of the steps of the methods according to the embodiments of the application.
It should be understood that the above Processor may be a central processing unit (english: central Processing Unit, abbreviated as CPU), or may be other general purpose processors, a digital signal Processor (english: DIGITAL SIGNAL Processor, abbreviated as DSP), an Application-specific integrated Circuit (english: application SPECIFIC INTEGRATED Circuit, abbreviated as ASIC), or the like. 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 for execution, or in a combination of hardware and software modules in a processor for execution.
The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile memory NVM, such as at least one magnetic disk memory, and may also be a U-disk, a removable hard disk, a read-only memory, a magnetic disk or optical disk, etc.
The bus may be an industry standard architecture (Industry Standard Architecture, ISA) bus, an external device interconnect (PERIPHERAL COMPONENT, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, the buses in the drawings of the present application are not limited to only one bus or to one type of bus.
The storage medium may be implemented by any type or combination of volatile or nonvolatile 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 disk. 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 appreciate that: all or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a computer readable storage medium. The program, when executed, performs steps including the method embodiments described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the application.

Claims (12)

1. A device detection method, comprising:
Acquiring positioning data of terminal equipment, and determining the accuracy of the positioning data;
If the accuracy of the positioning data meets the first condition, determining the duration that the accuracy of the positioning data meets the first condition;
If the duration is longer than or equal to the preset duration, determining that the terminal equipment is connected with external positioning equipment;
Wherein said determining the accuracy of said positioning data comprises:
acquiring decimal numbers in the positioning data, wherein the decimal numbers are data digits after decimal points of the positioning data;
determining the accuracy of the positioning data according to the decimal places;
the accuracy of the positioning data satisfies a first condition, comprising:
the decimal place in the positioning data is a first preset digit; or the decimal place in the positioning data is less than or equal to a first threshold.
2. The method of claim 1, wherein the determining a duration for which the accuracy of the positioning data satisfies a first condition comprises:
starting a timer when the accuracy of the positioning data is determined to meet a first condition;
Closing the timer when the positioning data meets a second condition or when the timer meets a third condition;
And acquiring the starting time length of the timer, and determining the starting time length of the timer as the time length of the accuracy of the positioning data meeting the first condition.
3. The method of claim 2, wherein the positioning data satisfying a second condition comprises at least one of: the accuracy of the positioning data does not meet the first condition, and the positioning data is lost.
4. A method according to claim 3, wherein the timer meeting a third condition comprises: and the starting time of the timer reaches the preset time.
5. The method of any of claims 1-4, wherein the positioning data comprises: horizontal accuracy, altitude, direction angle.
6. A device detection apparatus, comprising:
The acquisition module is used for acquiring positioning data of the terminal equipment and determining the accuracy of the positioning data;
The determining module is used for determining duration time for the accuracy of the positioning data to meet the first condition if the accuracy of the positioning data meets the first condition;
The determining module is further configured to determine that the terminal device is connected with an external positioning device if the duration is longer than or equal to a preset duration;
the determining module is specifically configured to:
acquiring decimal numbers in the positioning data, wherein the decimal numbers are data digits after decimal points of the positioning data;
determining the accuracy of the positioning data according to the decimal places;
the accuracy of the positioning data satisfies a first condition, comprising:
The decimal place in the positioning data is a first preset digit; or the decimal number in the positioning data is less than or the first threshold.
7. The apparatus of claim 6, wherein the determining module is specifically configured to:
starting a timer when the accuracy of the positioning data is determined to meet a first condition;
Closing the timer when the positioning data meets a second condition or when the timer meets a third condition;
And acquiring the starting time length of the timer, and determining the starting time length of the timer as the time length of the accuracy of the positioning data meeting the first condition.
8. The apparatus of claim 7, wherein the positioning data satisfying a second condition comprises at least one of: the accuracy of the positioning data does not meet the first condition, and the positioning data is lost.
9. The apparatus of claim 8, wherein the timer meeting a third condition comprises: and the starting time of the timer reaches the preset time.
10. The apparatus according to any of claims 6-9, wherein the positioning data comprises: horizontal accuracy, altitude, direction angle.
11. A device detection apparatus, characterized by comprising:
A memory for storing a program;
a processor for executing the program stored by the memory, the processor being for performing the method of any one of claims 1 to 5 when the program is executed.
12. A computer readable storage medium comprising instructions which, when run on a computer, cause the computer to perform the method of any one of claims 1 to 5.
CN202011215618.1A 2020-11-04 2020-11-04 Equipment detection method and device Active CN112328515B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011215618.1A CN112328515B (en) 2020-11-04 2020-11-04 Equipment detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011215618.1A CN112328515B (en) 2020-11-04 2020-11-04 Equipment detection method and device

Publications (2)

Publication Number Publication Date
CN112328515A CN112328515A (en) 2021-02-05
CN112328515B true CN112328515B (en) 2024-05-07

Family

ID=74324684

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011215618.1A Active CN112328515B (en) 2020-11-04 2020-11-04 Equipment detection method and device

Country Status (1)

Country Link
CN (1) CN112328515B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114510656A (en) * 2022-01-17 2022-05-17 广州市玄武无线科技股份有限公司 Method, device, terminal and storage medium for detecting virtual positioning data of equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012137423A (en) * 2010-12-27 2012-07-19 Fujitsu Ltd Movement path estimation method, terminal device, server and program
WO2017161475A1 (en) * 2016-03-21 2017-09-28 华为技术有限公司 Method and device for generating electronic map, and method and device for planning route
CN109995934A (en) * 2019-02-27 2019-07-09 维沃移动通信有限公司 Reminding method and terminal device
CN110231039A (en) * 2019-06-27 2019-09-13 维沃移动通信有限公司 A kind of location information modification method and terminal device
CN110488330A (en) * 2019-08-26 2019-11-22 广州小鹏汽车科技有限公司 A kind of vehicle positioning method, device, vehicle and computer readable storage medium
CN110730416A (en) * 2018-07-17 2020-01-24 北京京东尚科信息技术有限公司 Vehicle safety management method and device based on positioning data
WO2020082900A1 (en) * 2018-10-25 2020-04-30 北京嘀嘀无限科技发展有限公司 Order service security detection apparatus and method
CN111198875A (en) * 2019-12-26 2020-05-26 深圳市元征科技股份有限公司 Vehicle positioning data screening method and device, vehicle-mounted equipment and storage medium
CN111343582A (en) * 2020-02-27 2020-06-26 腾讯科技(深圳)有限公司 Method and device for preventing mileage cheating
CN111857113A (en) * 2019-04-12 2020-10-30 北京地平线机器人技术研发有限公司 Positioning method and positioning device for movable equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10346495B2 (en) * 2013-02-19 2019-07-09 Digitalglobe, Inc. System and method for large scale crowdsourcing of map data cleanup and correction
US9500486B2 (en) * 2013-02-28 2016-11-22 Here Global B.V. Method and apparatus for formulating a positioning extent for map matching

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012137423A (en) * 2010-12-27 2012-07-19 Fujitsu Ltd Movement path estimation method, terminal device, server and program
WO2017161475A1 (en) * 2016-03-21 2017-09-28 华为技术有限公司 Method and device for generating electronic map, and method and device for planning route
CN110730416A (en) * 2018-07-17 2020-01-24 北京京东尚科信息技术有限公司 Vehicle safety management method and device based on positioning data
WO2020082900A1 (en) * 2018-10-25 2020-04-30 北京嘀嘀无限科技发展有限公司 Order service security detection apparatus and method
CN109995934A (en) * 2019-02-27 2019-07-09 维沃移动通信有限公司 Reminding method and terminal device
CN111857113A (en) * 2019-04-12 2020-10-30 北京地平线机器人技术研发有限公司 Positioning method and positioning device for movable equipment
CN110231039A (en) * 2019-06-27 2019-09-13 维沃移动通信有限公司 A kind of location information modification method and terminal device
CN110488330A (en) * 2019-08-26 2019-11-22 广州小鹏汽车科技有限公司 A kind of vehicle positioning method, device, vehicle and computer readable storage medium
CN111198875A (en) * 2019-12-26 2020-05-26 深圳市元征科技股份有限公司 Vehicle positioning data screening method and device, vehicle-mounted equipment and storage medium
CN111343582A (en) * 2020-02-27 2020-06-26 腾讯科技(深圳)有限公司 Method and device for preventing mileage cheating

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种基于手机传感器的定位伪造检测方案;姚维芊;武汉大学学报(理学版);第65卷(第2期);165-177 *

Also Published As

Publication number Publication date
CN112328515A (en) 2021-02-05

Similar Documents

Publication Publication Date Title
CN110830986B (en) Method, device, equipment and storage medium for detecting abnormal behavior of Internet of things card
WO2020019484A1 (en) Simulator recognition method, recognition device, and computer readable medium
WO2020019483A1 (en) Emulator identification method, identification device, and computer readable medium
CN106604362B (en) A kind of Wireless Fidelity Wi-Fi scan method and mobile terminal
US10395033B2 (en) System, apparatus and method for performing on-demand binary analysis for detecting code reuse attacks
CN109145590B (en) Function hook detection method, detection equipment and computer readable medium
CN103440456A (en) Method and device for evaluating safety of application program
CN111968625A (en) Sensitive audio recognition model training method and recognition method fusing text information
CN109815702B (en) Software behavior safety detection method, device and equipment
CN112328515B (en) Equipment detection method and device
CN113240880A (en) Fire detection method and device, electronic equipment and storage medium
CN106301979B (en) Method and system for detecting abnormal channel
CN111353138A (en) Abnormal user identification method and device, electronic equipment and storage medium
CN115965913A (en) Security monitoring method, device and system and computer readable storage medium
CN117872166A (en) Method and device for detecting thermal runaway of energy storage battery and electronic equipment
CN109145821B (en) Method and device for positioning pupil image in human eye image
US9449158B2 (en) Expiration time authentication system, expiration time authentication device, and expiration time authentication method for applications
CN114265813A (en) Snapshot query method, device, equipment and storage medium
CN114610577A (en) Target resource locking method, device, equipment and medium
CN109214212B (en) Information leakage prevention method and device
CN112822166A (en) Abnormal process detection method, device, equipment and medium
CN113709159B (en) Access data detection method, device, equipment and storage medium
CN106021127B (en) Cache sharing method and system based on mobile terminal
CN110801630A (en) Cheating program determining method, device, equipment and storage medium
CN111597959B (en) Behavior detection method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant