CN114500454A - Method and device for detecting geographical position change of electronic equipment - Google Patents

Method and device for detecting geographical position change of electronic equipment Download PDF

Info

Publication number
CN114500454A
CN114500454A CN202111565619.3A CN202111565619A CN114500454A CN 114500454 A CN114500454 A CN 114500454A CN 202111565619 A CN202111565619 A CN 202111565619A CN 114500454 A CN114500454 A CN 114500454A
Authority
CN
China
Prior art keywords
detected
equipment
positioning result
determining
result
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.)
Granted
Application number
CN202111565619.3A
Other languages
Chinese (zh)
Other versions
CN114500454B (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.)
Chengdu Luyi Technology Co ltd
Original Assignee
Chengdu Luyi Technology 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 Chengdu Luyi Technology Co ltd filed Critical Chengdu Luyi Technology Co ltd
Priority to CN202111565619.3A priority Critical patent/CN114500454B/en
Publication of CN114500454A publication Critical patent/CN114500454A/en
Application granted granted Critical
Publication of CN114500454B publication Critical patent/CN114500454B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/106Mapping addresses of different types across networks, e.g. mapping telephone numbers to data network addresses
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0645Rental transactions; Leasing transactions

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Finance (AREA)
  • Marketing (AREA)
  • Signal Processing (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application discloses a method and a device for detecting the change of the geographical position of electronic equipment, wherein the method comprises the following steps: reading a last positioning result of the equipment to be detected; acquiring an IP address of equipment to be detected; determining a second positioning result of the equipment to be detected according to the IP address; determining a geographical position change result of the equipment to be detected according to the consistency of the second positioning result and the first positioning result; and updating the first positioning result according to the geographical position change result. The IP address of the equipment to be detected is fully utilized, automatic detection of the change of the geographic position of the electronic equipment is achieved, the detection method is simple, the calculated amount is small, the detection accuracy is high, and great convenience is provided for asset management of enterprises.

Description

Method and device for detecting geographical position change of electronic equipment
Technical Field
The application relates to the technical field of asset safety management, in particular to a method and a device for detecting geographical position change of electronic equipment.
Background
In the fixed asset security management of enterprises, especially large enterprises, due to the large number and the complex variety of electronic devices, great challenges are brought to the secure use and management of the electronic devices.
For example, for a leasing company, electronic devices such as computers need to be rented to various enterprises for use, risks such as theft and transfer of the electronic devices need to be borne in the process, and the geographic positions of the electronic devices are changed in the process.
Disclosure of Invention
In view of the foregoing problems, embodiments of the present application provide a method and an apparatus for detecting a change in a geographic location of an electronic device, so as to make up for the deficiencies of the prior art.
In a first aspect, an embodiment of the present application provides a method for detecting a change in a geographic location of an electronic device, including:
reading a last positioning result of the equipment to be detected;
acquiring an IP address of equipment to be detected;
determining a second positioning result of the equipment to be detected this time according to the IP address;
determining a geographical position change result of the equipment to be detected according to the consistency of the second positioning result and the first positioning result;
and updating the first positioning result according to the geographical position change result.
In a second aspect, an embodiment of the present application further provides an apparatus for detecting a change in a geographic location of an electronic device, where the apparatus includes:
the reading unit is used for reading a last first positioning result of the equipment to be detected;
the acquisition unit is used for acquiring the IP address of the equipment to be detected;
the positioning unit is used for determining a second positioning result of the equipment to be detected this time according to the IP address;
the judging unit is used for determining a geographical position change result of the equipment to be detected according to the consistency of the second positioning result and the first positioning result;
and the updating unit is used for updating the first positioning result according to the geographical position changing result.
In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor; and a memory arranged to store computer executable instructions that, when executed, cause the processor to perform any of the methods described above.
In a fourth aspect, this application embodiment also provides a computer-readable storage medium storing one or more programs which, when executed by an electronic device including a plurality of application programs, cause the electronic device to perform any of the methods described above.
The embodiment of the application adopts at least one technical scheme which can achieve the following beneficial effects:
according to the method and the device, the IP address of the equipment to be detected is obtained, the equipment to be detected is positioned according to the IP address, the positioning result detected at this time is compared with the positioning result of the previous round, whether the geographic position of the equipment to be detected is changed or not is determined according to the consistency of the positioning result and the positioning result, and the first positioning result is updated according to the geographic position changing result obtained at this time so as to serve as the basis of the detection of the next round. The IP address of the equipment to be detected is fully utilized, automatic detection of the change of the geographic position of the electronic equipment is achieved, the detection method is simple, the calculated amount is small, the detection accuracy is high, and great convenience is provided for asset management of enterprises.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 shows a flow diagram of a method of detecting a change in a geographical location of an electronic device according to an embodiment of the application;
FIG. 2 shows a schematic structural diagram of a detection system for geographical location change of an electronic device according to another embodiment of the present application;
FIG. 3 shows a flow diagram of a method for detecting a change in a geographic location of an electronic device according to another embodiment of the present application;
FIG. 4 is a schematic structural diagram of a device for detecting a change in the geographic location of an electronic device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
The method comprises the following steps of determining the change condition of the geographical position of the electronic equipment by utilizing the consistency of the IP address of the electronic equipment in two detection processes. The detection method is simple, small in calculation amount, high in practicability and wide in application range.
Fig. 1 is a schematic flowchart illustrating a method for detecting a change in a geographic location of an electronic device according to an embodiment of the present application, and as can be seen from fig. 1, the present application at least includes steps S110 to S150:
step S110: and reading the last first positioning result of the equipment to be detected according to a preset period.
The method is mainly designed for an electronic device terminal, in some embodiments of the present application, a detection tool for geographical location change can be formed by the method of the present application, and installed on an electronic device at a user side in the form of software, which is referred to as a client, and steps S110 to S150 can be directly executed locally by the detection tool at the client; in other embodiments of the present application, the client may be connected to the server, the method of the present application forms a detection tool deployed at the server, and the steps S110 to S150 are executed by the server, which is not limited in the present application and can be selected as needed.
Fig. 2 shows a schematic structural diagram of a system for detecting a change in a geographic location of an electronic device according to an embodiment of the present application, and as can be seen from fig. 2, a detection system 200 for detecting a change in a geographic location of an electronic device according to this embodiment includes a server 210 and a plurality of clients 220, i.e., clients that are electronic devices to be detected. The apparatus 400 (fig. 4) capable of implementing the method for detecting a change in the geographical position of an electronic device according to the present application is provided in the server 210. It should be noted that the present application is not limited to the detection system for detecting a change in the geographical position of the electronic device shown in fig. 2, and any system capable of implementing the present application may be used.
Taking the server 210 in the detection of the change of the geographic location of the electronic device in fig. 2 as an example to execute the present application, a storage area may be set in the server 210 for storing the detection result of the change of the geographic location of the electronic device, and when a new round of detection is performed, the server 210 first reads the last first positioning result of the device to be detected from the storage area, where the positioning result may be, but is not limited to, the country or region, province, city, county, and district where the electronic device is located, or even a more detailed geographic location, such as being accurate to a certain internet cafe, machine room, or school, etc.
The detection method can be executed periodically, namely according to the preset period, and can be executed once when the preset period starts or when the preset period ends. It can also be understood that, in the present application, the monitoring of the geographic location of the electronic device may be performed in real time, that is, the IP address uploaded by the device to be detected is received according to a preset period, and then the subsequent steps are performed to implement real-time monitoring, and the setting of the preset period may be set according to the monitoring requirement, where the smaller the first preset period is, the greater the monitoring frequency is; the larger the first preset period is set, the smaller the monitoring frequency is, and for example, the first preset period can be set to be uploaded once in 60 s.
Step S120: and acquiring the IP address of the equipment to be detected.
The method comprises the steps of obtaining an IP Address of a device to be detected, wherein the IP Address (Internet Protocol Address) refers to an Internet Protocol Address and is translated into the Internet Protocol Address, the IP Address is a uniform Address format provided by an IP Protocol and distributes a logic Address for each network and each host computer on the Internet, and because each computer and other devices on the Internet have a unique IP Address, a user can efficiently and conveniently select a required object from millions of computers when operating on networked computers.
In some embodiments of the present application, the obtaining an IP address of a device to be detected according to a preset period includes: and receiving the IP address uploaded by the equipment to be detected according to a preset period.
In the present application, the device to be detected includes any type of electronic device that can be connected to the internet, such as a desktop computer, a notebook computer, a personal computer, and the like.
The "obtaining" here may be actively uploading the electronic device to be detected, that is, the client 220 to the server 210, or actively reading or pulling the relevant operation information of the client 220 by the server 210, which is not limited in this application.
It should be noted that the IP address of the device to be detected cannot be obtained by many detections, and if the device to be detected returns an IP address and the return is "empty", it indicates that the device to be detected is in an untestable state, and at this time, the process is directly ended to wait for the next detection period.
Step S130: and determining a second positioning result of the equipment to be detected according to the IP address.
And then, according to the IP address, the geographic position of the equipment to be detected, including the country/region, the city, even a certain internet bar, a machine room or a school and the like, can be determined, and the geographic position of the equipment to be detected is used as a second positioning result.
Step S140: and determining a geographical position change result of the equipment to be detected according to the consistency of the second positioning result and the first positioning result.
Specifically, in some embodiments of the present application, the determining a result of changing the geographic position of the device to be detected according to the consistency between the second positioning result and the first positioning result includes: if the second positioning result is consistent with the first positioning result, determining that the geographic position of the equipment to be detected is not changed; if the second positioning result is inconsistent with the first positioning result, determining the moving speed of the equipment to be detected according to the second positioning result and the first positioning result; and determining a geographical position change result of the equipment to be detected according to the moving speed.
After the second positioning result of the current detection of the equipment to be detected is determined, the second positioning result of the current detection can be compared with the first positioning result of the last detection, and if the second positioning result of the current detection is consistent with the first positioning result of the last detection, the geographic position of the equipment to be detected is not changed.
If the two are not consistent, the electric geographic position of the device to be detected is possibly changed. Therefore, the change of the geographic position of the device to be detected cannot be directly determined through the positioning results of the two detections, because sometimes, in order to achieve the purposes of establishing a private network on a public network, performing encrypted communication, and the like, proxy tools such as VPN (virtual private network) and the like may be used, which causes the change of the geographic position of the electronic device, and such a situation is not counted as the change of the geographic position. Therefore, when it is determined that the first positioning result and the second positioning result of the device to be detected are inconsistent, it is also necessary to exclude whether or not a proxy tool such as a VPN is used so that the positioning result is changed.
For the elimination of the above situation, the speed can be determined according to the moving speed of the device to be detected, and for the real geographical position change, the fastest speed cannot exceed the flying speed of a normal airplane, such as 500 km/h; and for proxy tools such as VPN, the moving speed can be very fast, so a speed threshold can be set, and the influence of the proxy tool technology such as VPN can be eliminated by judging the relation between the moving speed of the device to be detected and the speed threshold.
Step S150: and updating the first positioning result according to the geographical position change result.
Finally, updating the first positioning result as a basis for the next detection, in some embodiments of the present application, the updating the first positioning result according to the geographic location change result includes: if the geographical position of the equipment to be detected is not changed, the first positioning result is not updated; and if the geographical position of the equipment to be detected is changed, covering the first positioning result with the second positioning result.
Specifically, if the geographic position of the device to be detected is judged to be changed, the first positioning result is updated to be the second positioning result; if the geographic position of the device to be detected is judged not to be changed, updating is not carried out, namely the step is not required to be carried out.
As can be seen from the method shown in fig. 1, in the present application, the IP address of the device to be detected is obtained, the device to be detected is positioned according to the IP address, the positioning result of the current detection is compared with the positioning result of the previous round, whether the geographic position of the device to be detected is changed is determined according to the consistency of the positioning result and the positioning result, and the first positioning result is updated according to the geographic position change result obtained this time, so as to serve as the basis for the detection of the next round. The IP address of the equipment to be detected is fully utilized, automatic detection of the change of the geographic position of the electronic equipment is achieved, the detection method is simple, the calculated amount is small, the detection accuracy is high, and great convenience is provided for asset management of enterprises.
In some embodiments of the present application, the determining, according to the IP address, a second positioning result of the device to be detected this time includes: calling a third party positioning service through a service interface so that the third party positioning service determines the longitude and latitude information of the equipment to be detected according to the IP address, determines the geographical position of the equipment to be detected according to the longitude and latitude information, and returns the geographical position in a specified format; and receiving the geographic position returned by the third party positioning service as the second positioning result.
The determination of the positioning result of the device to be detected through the IP address can be realized by calling a third party positioning service, and in the prior art, the determination of the geographic position through the IP address or the back check of the IP address through the geographic position can be realized. Specifically, in the application, a service interface of a third party can be set, the third party service can be called through the service interface, and the third party positioning service can be directly called to be realized when positioning is carried out. After the third party positioning service receives the IP address of the equipment to be detected, the longitude and latitude corresponding to the IP address can be determined through the IP address, and then the positioning result is determined according to the longitude and latitude.
In some embodiments of the present application, the latitude and longitude corresponding to the IP address may also be returned for subsequent use.
In order to compare the first positioning result with the second positioning result, the format of the positioning result may be specified, for example, the blank spaces between countries, provinces, cities and districts in the geographic location are removed, and then the positioning result in the specified format is obtained by splicing.
In some embodiments of the present application, determining the moving speed of the device to be detected according to the second positioning result and the first positioning result includes: determining the movement displacement of the equipment to be detected according to the longitude and latitude information corresponding to the first positioning result and the longitude and latitude information corresponding to the second positioning result; determining the movement duration of the equipment to be detected according to the movement starting time and the movement stopping time of the equipment to be detected, wherein the first time when the IP address of the equipment to be detected is obtained last time is used as the movement starting time of the equipment to be detected, and the second time when the IP address of the equipment to be detected is obtained this time is used as the movement stopping time of the equipment to be detected; determining the moving speed of the equipment to be detected according to the moving displacement and the moving duration; according to the moving speed, determining the geographical position change result of the device to be detected comprises the following steps: if the moving speed is greater than or equal to a set speed threshold value, determining that the geographic position of the device to be detected is changed; otherwise, determining that the geographic position of the equipment to be detected is not changed.
When the moving speed of the device to be detected is determined, the device can be determined according to the fact that the moving speed is equal to the quotient of the moving distance and the moving time, and the key point is the determination of the moving distance and the moving time, wherein the moving distance can be determined according to the first positioning result and the second positioning result, and for example, the straight-line distance between the first positioning result and the second positioning result is determined through the longitude and latitude corresponding to the second positioning result and the longitude and latitude corresponding to the second positioning result; for the determination of the movement time, taking the first moment of last obtaining the IP address of the equipment to be detected as the initial moment of movement of the equipment to be detected, taking the second moment of this obtaining of the IP address of the equipment to be detected as the termination moment of movement of the equipment to be detected, and subtracting the initial moment from the termination moment to obtain the movement time; after the moving distance and the moving time are determined, the moving speed of the device to be detected can be determined, and codes for determining the moving distance of the device to be detected according to the latitude and longitude information of the first positioning result and the second positioning result according to one embodiment of the application are given below for reference:
Figure BDA0003421873320000071
in the application, the method is not limited to the method for determining the moving distance of the device to be detected, and all the reasonable and feasible means can be adopted, for example, when the device to be detected is moved, the first positioning result can be used as a starting point, the second positioning result can be used as an end point, the paths of various moving modes are determined by adopting a navigation technology in a self-driving mode, a high-speed rail mode, an airplane mode and other modes, and the determined moving distance is used as the maximum value in the multiple paths.
In some embodiments of the present application, before the step of reading the last first positioning result of the device to be detected, the method further includes: determining the equipment type of the equipment to be detected; and if the determined equipment type is consistent with the specified equipment type, entering the step of reading the last first positioning result of the equipment to be detected.
That is, the user can set the device type of the device to be detected, taking the device to be detected as a computer as an example, the desktop computer is generally not moved, and the probability that the desktop computer is abnormal if the desktop computer is moved is relatively high; the notebook computer is often carried by people, so that the probability of abnormal conditions is small even if the notebook computer is moved, and a user can specify the type of the equipment, so that the detection is more targeted.
If the computer type with the changed geographic position is made into a parameter and placed in a setting, enumerated values can be only a desktop computer, a notebook computer and the like, and after a user selects only the desktop computer, when the detection method of the application is executed, firstly, whether the type of the device to be detected is the desktop computer or not is determined, if yes, the detection is started, and if not, the flow is ended; after checking a desktop computer and a notebook computer, a user first determines whether the type of the device to be detected is the desktop computer or the notebook computer, if so, the detection is started, and if not, the flow is ended.
In some embodiments of the present application, the method further comprises: and if the change of the geographical position of the equipment to be detected is determined, generating alarm information according to the geographical position change result.
In some embodiments of the application, an alarm system may be further configured, and after determining that the geographic position of the device to be detected is changed, an alarm message is generated and sent to a relevant worker, for example, an alarm notification of a short message or an email is performed through an administrator contact manner set by a user. After receiving the alarm, the administrator can quickly inquire the risk item in the front-end interface of the user terminal, and can clearly record the information of which equipment sends the geographical position change, the provincial and urban positions before and after the change, the distance between two places and the like at what time point in the detailed information of the risk item.
Fig. 3 is a flowchart illustrating a method for detecting a change in a geographic location of an electronic device according to another embodiment of the present application, and as can be seen from fig. 3, the present embodiment includes:
firstly, determining whether the equipment to be detected is of an appointed type, and if not, directly ending the process; and if so, reading the last first positioning result of the equipment to be detected in the memory.
Judging whether the first positioning result is empty, if so, ending the process; if not, receiving the IP address uploaded by the equipment to be detected this time; and calling a third party positioning service so that the third party positioning service determines a second positioning result of the current detection of the device to be detected according to the IP address.
Judging whether the second positioning result is empty, if so, ending the process; if not, whether the second positioning result is consistent with the first positioning result is judged.
If so, indicating that the geographic position of the equipment to be detected is not changed, and ending the process; if not, calculating the distance between the first positioning result and the second positioning result and the uploading time of the IP addresses corresponding to the two positioning results, and accordingly determining the moving distance and the moving time of the equipment to be detected and determining the moving speed of the equipment to be detected.
Judging whether the moving speed of the equipment to be detected is greater than a preset speed threshold value or not, if so, indicating that the geographical position of the equipment to be detected is not changed, and ending the process; and if not, changing the geographic position, and covering the first positioning result with the second positioning result.
It should be noted that the above steps are steps executed in one detection period, and when one detection period ends, the preset period time is waited for, and the next detection period is entered, and the process is performed in a loop.
Fig. 4 is a schematic structural diagram of an apparatus for detecting a change in a geographic location of an electronic device according to an embodiment of the present application, and as can be seen from fig. 4, the apparatus 400 includes:
a reading unit 410, configured to read a last first positioning result of the device to be detected;
an obtaining unit 420, configured to obtain an IP address of the device to be tested;
the positioning unit 430 is configured to determine a second positioning result of the device to be detected this time according to the IP address;
the determining unit 440 is configured to determine a geographic position change result of the device to be detected according to consistency between the second positioning result and the first positioning result;
the updating unit 450 is configured to update the first positioning result according to the geographic position change result.
In some embodiments of the present application, in the above apparatus, the positioning unit 430 is configured to invoke a third party positioning service through a service interface, so that the third party positioning service determines longitude and latitude information of the device to be detected according to the IP address, determines the geographic position of the device to be detected according to the longitude and latitude information, and returns the geographic position in a specified format; and receiving the geographic position returned by the third party positioning service as the second positioning result.
In some embodiments of the present application, in the above apparatus, the determining unit 440 is configured to determine that the geographic location of the device to be detected has not changed if the second positioning result is consistent with the first positioning result; if the second positioning result is inconsistent with the first positioning result, determining the moving speed of the equipment to be detected according to the second positioning result and the first positioning result; and determining a geographical position change result of the equipment to be detected according to the moving speed.
In some embodiments of the present application, in the above apparatus, the determining unit 440 is configured to determine the movement displacement of the device to be detected according to the longitude and latitude information corresponding to the first positioning result and the longitude and latitude information corresponding to the second positioning result; determining the movement duration of the equipment to be detected according to the movement starting time and the movement stopping time of the equipment to be detected, wherein the first time when the IP address of the equipment to be detected is obtained last time is used as the movement starting time of the equipment to be detected, and the second time when the IP address of the equipment to be detected is obtained this time is used as the movement stopping time of the equipment to be detected; determining the moving speed of the equipment to be detected according to the moving displacement and the moving duration; the updating unit 450 is configured to determine that the geographic position of the device to be detected changes if the moving speed is greater than or equal to a set speed threshold; otherwise, determining that the geographic position of the equipment to be detected is not changed.
In some embodiments of the present application, the apparatus further comprises: the type distinguishing unit is used for determining the equipment type of the equipment to be detected; and if the determined equipment type is consistent with the specified equipment type, entering the step of reading the last first positioning result of the equipment to be detected.
In some embodiments of the present application, the apparatus further comprises: and the alarm unit is used for generating alarm information according to the geographical position change result if the geographical position of the equipment to be detected is determined to be changed.
In some embodiments of the present application, in the above apparatus, the updating unit 450 is configured to not update the first positioning result if the geographic location of the device to be detected is not changed; and if the geographical position of the equipment to be detected is changed, covering the first positioning result with the second positioning result.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application. Referring to fig. 5, at a hardware level, the electronic device includes a processor, and optionally further includes an internal bus, a network interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, the network interface, and the memory may be connected to each other via an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 5, but this does not indicate only one bus or one type of bus.
And the memory is used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory may include both memory and non-volatile storage and provides instructions and data to the processor.
The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to form a detection device for the geographical position change of the electronic equipment on a logic level. The processor is used for executing the program stored in the memory and is specifically used for executing the following operations:
reading a last positioning result of the equipment to be detected;
acquiring an IP address of equipment to be detected;
determining a second positioning result of the equipment to be detected according to the IP address;
determining a geographical position change result of the equipment to be detected according to the consistency of the second positioning result and the first positioning result;
and updating the first positioning result according to the geographical position change result.
The method performed by the apparatus for detecting a change in a geographic location of an electronic device as disclosed in the embodiment shown in fig. 4 of the present application may be applied to or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in ram, flash, rom, prom, or eprom, registers, etc. as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
The electronic device may further execute the method executed by the apparatus for detecting a change in a geographic location of the electronic device in fig. 4, and implement the functions of the apparatus for detecting a change in a geographic location of the electronic device in the embodiment shown in fig. 4, which are not described herein again in this embodiment of the present application.
An embodiment of the present application further provides a computer-readable storage medium storing one or more programs, where the one or more programs include instructions, which, when executed by an electronic device including multiple application programs, enable the electronic device to perform a method performed by the apparatus for detecting a change in a geographic location of an electronic device in the embodiment shown in fig. 4, and are specifically configured to perform:
reading a last positioning result of the equipment to be detected;
acquiring an IP address of equipment to be detected;
determining a second positioning result of the equipment to be detected according to the IP address;
determining a geographical position change result of the equipment to be detected according to the consistency of the second positioning result and the first positioning result;
and updating the first positioning result according to the geographical position change result.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method for detecting a change in a geographic location of an electronic device, comprising:
reading a last positioning result of the equipment to be detected;
acquiring an IP address of equipment to be detected;
determining a second positioning result of the equipment to be detected according to the IP address;
determining a geographical position change result of the equipment to be detected according to the consistency of the second positioning result and the first positioning result;
and updating the first positioning result according to the geographical position change result.
2. The method according to claim 1, wherein the determining, according to the IP address, a second positioning result of the current time of the device to be detected includes:
calling a third party positioning service through a service interface so that the third party positioning service determines longitude and latitude information of the equipment to be detected according to the IP address, determines the geographic position of the equipment to be detected according to the longitude and latitude information, and returns the geographic position in a specified format;
and receiving the geographic position returned by the third party positioning service as the second positioning result.
3. The method according to claim 1, wherein the determining the result of the change of the geographic position of the device to be detected according to the consistency of the second positioning result and the first positioning result comprises:
if the second positioning result is consistent with the first positioning result, determining that the geographic position of the equipment to be detected is not changed;
if the second positioning result is inconsistent with the first positioning result, determining the moving speed of the equipment to be detected according to the second positioning result and the first positioning result;
and determining a geographical position change result of the equipment to be detected according to the moving speed.
4. The method according to claim 3, wherein determining the moving speed of the device to be tested according to the second positioning result and the first positioning result comprises:
determining the movement displacement of the equipment to be detected according to the longitude and latitude information corresponding to the first positioning result and the longitude and latitude information corresponding to the second positioning result;
determining the movement duration of the equipment to be detected according to the movement starting time and the movement stopping time of the equipment to be detected, wherein the first time when the IP address of the equipment to be detected is obtained last time is used as the movement starting time of the equipment to be detected, and the second time when the IP address of the equipment to be detected is obtained this time is used as the movement stopping time of the equipment to be detected;
determining the moving speed of the equipment to be detected according to the moving displacement and the moving duration;
according to the moving speed, determining the geographical position change result of the device to be detected comprises the following steps:
if the moving speed is greater than or equal to a set speed threshold value, determining that the geographic position of the device to be detected is changed; otherwise, determining that the geographic position of the equipment to be detected is not changed.
5. The method according to claim 1, characterized in that before the step of reading the last first positioning result of the device under test, it further comprises:
determining the equipment type of the equipment to be detected;
and if the determined equipment type is consistent with the specified equipment type, entering the step of reading the last first positioning result of the equipment to be detected.
6. The method of claim 1, further comprising:
and if the change of the geographical position of the equipment to be detected is determined, generating alarm information according to the geographical position change result.
7. The method of claim 1, wherein the updating the first positioning result according to the geographic location change result comprises:
if the geographical position of the equipment to be detected is not changed, the first positioning result is not updated; and if the geographical position of the equipment to be detected is changed, covering the first positioning result with the second positioning result.
8. An apparatus for detecting a change in a geographic location of an electronic device, the apparatus comprising:
the reading unit is used for reading a last first positioning result of the equipment to be detected;
the acquisition unit is used for acquiring the IP address of the equipment to be detected;
the positioning unit is used for determining a second positioning result of the equipment to be detected this time according to the IP address;
the judging unit is used for determining a geographical position change result of the equipment to be detected according to the consistency of the second positioning result and the first positioning result;
and the updating unit is used for updating the first positioning result according to the geographical position changing result.
9. An electronic device, comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to perform the method of claims 1 to 7.
10. A computer readable storage medium storing one or more programs which, when executed by an electronic device comprising a plurality of application programs, cause the electronic device to perform the method of claims 1-7.
CN202111565619.3A 2021-12-20 2021-12-20 Method and device for detecting geographic position change of electronic equipment Active CN114500454B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111565619.3A CN114500454B (en) 2021-12-20 2021-12-20 Method and device for detecting geographic position change of electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111565619.3A CN114500454B (en) 2021-12-20 2021-12-20 Method and device for detecting geographic position change of electronic equipment

Publications (2)

Publication Number Publication Date
CN114500454A true CN114500454A (en) 2022-05-13
CN114500454B CN114500454B (en) 2024-01-23

Family

ID=81493712

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111565619.3A Active CN114500454B (en) 2021-12-20 2021-12-20 Method and device for detecting geographic position change of electronic equipment

Country Status (1)

Country Link
CN (1) CN114500454B (en)

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102819571A (en) * 2012-07-19 2012-12-12 腾讯科技(深圳)有限公司 Content acquisition method and device
CN103259877A (en) * 2013-04-15 2013-08-21 北京百度网讯科技有限公司 IP address geographic position determination method and system
CN103327133A (en) * 2013-05-31 2013-09-25 青岛海信传媒网络技术有限公司 Method and device for updating geographic position information
CN104427466A (en) * 2013-08-28 2015-03-18 高德软件有限公司 Terminal device positioning method and terminal device
CN104935676A (en) * 2014-03-17 2015-09-23 阿里巴巴集团控股有限公司 Method and device for determining IP address fields and corresponding latitude and longitude
CN104994185A (en) * 2015-06-25 2015-10-21 小米科技有限责任公司 Method and apparatus for processing IP address database
CN105516392A (en) * 2015-12-30 2016-04-20 小米科技有限责任公司 Method and device for updating IP address information base
CN105516241A (en) * 2015-11-24 2016-04-20 上海斐讯数据通信技术有限公司 Device and method for obtaining user geographical position information
CN105527641A (en) * 2014-09-29 2016-04-27 宇龙计算机通信科技(深圳)有限公司 Positioning method, positioning system and terminal
CN107613043A (en) * 2017-09-26 2018-01-19 小草数语(北京)科技有限公司 The regional information searching method and its device of IP address
CN108337368A (en) * 2018-01-16 2018-07-27 维沃移动通信有限公司 A kind of update method and mobile terminal of location data
CN108965318A (en) * 2018-08-02 2018-12-07 杭州安恒信息技术股份有限公司 Detect the method and device of unauthorized access device IP in industrial control network
CN109493447A (en) * 2018-09-26 2019-03-19 中国平安财产保险股份有限公司 Start method, apparatus, computer equipment and the storage medium of driving recording
CN109756530A (en) * 2017-11-02 2019-05-14 北京金山安全软件有限公司 Target application server and method and device for determining geographic position information
CN110247989A (en) * 2019-07-05 2019-09-17 四川长虹电器股份有限公司 The geographical position information acquisition method and system of smart home device
CN110488329A (en) * 2019-08-20 2019-11-22 Oppo(重庆)智能科技有限公司 A kind of positioned update method and device, storage medium
CN110769079A (en) * 2019-10-30 2020-02-07 杭州迪普科技股份有限公司 Method and device for retrieving geographic position corresponding to IP
CN113254569A (en) * 2021-07-06 2021-08-13 武汉依迅北斗时空技术股份有限公司 Positioning deviation rectifying method and device

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102819571A (en) * 2012-07-19 2012-12-12 腾讯科技(深圳)有限公司 Content acquisition method and device
CN103259877A (en) * 2013-04-15 2013-08-21 北京百度网讯科技有限公司 IP address geographic position determination method and system
CN103327133A (en) * 2013-05-31 2013-09-25 青岛海信传媒网络技术有限公司 Method and device for updating geographic position information
CN104427466A (en) * 2013-08-28 2015-03-18 高德软件有限公司 Terminal device positioning method and terminal device
CN104935676A (en) * 2014-03-17 2015-09-23 阿里巴巴集团控股有限公司 Method and device for determining IP address fields and corresponding latitude and longitude
CN105527641A (en) * 2014-09-29 2016-04-27 宇龙计算机通信科技(深圳)有限公司 Positioning method, positioning system and terminal
CN104994185A (en) * 2015-06-25 2015-10-21 小米科技有限责任公司 Method and apparatus for processing IP address database
CN105516241A (en) * 2015-11-24 2016-04-20 上海斐讯数据通信技术有限公司 Device and method for obtaining user geographical position information
CN105516392A (en) * 2015-12-30 2016-04-20 小米科技有限责任公司 Method and device for updating IP address information base
CN107613043A (en) * 2017-09-26 2018-01-19 小草数语(北京)科技有限公司 The regional information searching method and its device of IP address
CN109756530A (en) * 2017-11-02 2019-05-14 北京金山安全软件有限公司 Target application server and method and device for determining geographic position information
CN108337368A (en) * 2018-01-16 2018-07-27 维沃移动通信有限公司 A kind of update method and mobile terminal of location data
CN108965318A (en) * 2018-08-02 2018-12-07 杭州安恒信息技术股份有限公司 Detect the method and device of unauthorized access device IP in industrial control network
CN109493447A (en) * 2018-09-26 2019-03-19 中国平安财产保险股份有限公司 Start method, apparatus, computer equipment and the storage medium of driving recording
CN110247989A (en) * 2019-07-05 2019-09-17 四川长虹电器股份有限公司 The geographical position information acquisition method and system of smart home device
CN110488329A (en) * 2019-08-20 2019-11-22 Oppo(重庆)智能科技有限公司 A kind of positioned update method and device, storage medium
CN110769079A (en) * 2019-10-30 2020-02-07 杭州迪普科技股份有限公司 Method and device for retrieving geographic position corresponding to IP
CN113254569A (en) * 2021-07-06 2021-08-13 武汉依迅北斗时空技术股份有限公司 Positioning deviation rectifying method and device

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
SUN, YUKUN: "A High-Precision Rotor Position and Displacement Prediction Method Specially for Bearingless Permanent Magnet Synchronous Motor", MATHEMATICAL PROBLEMS IN ENGINEERING *
王闯;: "Web资源地理位置分类与检测", 计算机工程与科学, no. 09 *
郭立轩;卓子寒;何跃鹰;李强;李舟军;: "基于邻近序列的IP地址地理定位方法", 计算机科学, no. 01 *
韩晶;赵锡成;黄文良;: "运营商电商业务安全防护体系研究", 邮电设计技术, no. 04 *

Also Published As

Publication number Publication date
CN114500454B (en) 2024-01-23

Similar Documents

Publication Publication Date Title
US20130326607A1 (en) Method, Apparatus and System of Controlling Remote Login
CN111104664B (en) Risk identification method of electronic equipment and server
US11012339B2 (en) Web site reachability management for content browsing
US8549597B1 (en) Temporary virtual identities in a social networking system
BR112017003489B1 (en) METHOD, DEVICE AND POSITIONING SYSTEM BASED ON WI-FI SIGNAL, AND STORAGE MEDIA
CN107682336B (en) Geographic position-based identity authentication method and device
CN107426693B (en) Positioning method and device
WO2021254261A1 (en) Device positioning method and apparatus
CN104734860A (en) Conference management method and system
CN108282843B (en) Network query method, device and server
CN104244174A (en) Method for obtaining geographical location information of terminals and server
CN106658568A (en) Method and device for providing information of available wireless access point
CN110913038B (en) IP address determination method, device, server and computer readable storage medium
CN112977685A (en) Method and device for detecting intelligent electric vehicle geo-fence
CN114500454A (en) Method and device for detecting geographical position change of electronic equipment
CN109284833B (en) Method, apparatus and storage medium for obtaining feature data for machine learning model
CN111212153A (en) IP address checking method, device, terminal equipment and storage medium
US20150169695A1 (en) Location based event identification
CN113609111A (en) Big data testing method and system
CN114416442A (en) Hardware change detection method and device, electronic equipment and readable storage medium
CN111082977B (en) Method and device for acquiring IP address and terminal equipment
CN110971578B (en) User identity confirmation method and device
CN111181809A (en) Monitoring method and device for reference station in network RTK center resolving software
CN114567855B (en) Long short message processing method and device and electronic equipment
CN110807885A (en) Alarm method and alarm device based on WeChat

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