CN114500454B - Method and device for detecting geographic position change of electronic equipment - Google Patents

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

Info

Publication number
CN114500454B
CN114500454B CN202111565619.3A CN202111565619A CN114500454B CN 114500454 B CN114500454 B CN 114500454B CN 202111565619 A CN202111565619 A CN 202111565619A CN 114500454 B CN114500454 B CN 114500454B
Authority
CN
China
Prior art keywords
equipment
detected
positioning result
determining
geographic position
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
CN202111565619.3A
Other languages
Chinese (zh)
Other versions
CN114500454A (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

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)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a detection method and device for changing the geographic position of electronic equipment, wherein the method comprises the following steps: reading a first positioning result of the equipment to be detected at the last time; 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 geographic 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 geographic position change result. The IP address of the equipment to be detected is fully utilized, so that the automatic detection of the change of the geographic position of the electronic equipment is realized, the detection method is simple, the calculated amount is small, the detection accuracy is high, and great convenience is provided for the asset management of enterprises.

Description

Method and device for detecting geographic position change of electronic equipment
Technical Field
The application relates to the technical field of asset security management, in particular to a detection method and device for changing the geographic position of electronic equipment.
Background
In the security management of fixed assets of enterprises, particularly large enterprises, the number and variety of electronic devices are large, and therefore the security use and management of the electronic devices are very challenging.
If the electronic equipment such as a computer is leased to each enterprise for use by a leasing company, risks such as theft and transfer of the electronic equipment are required to be borne in the process, and the geographic position of the electronic equipment is changed in the process, but in the prior art, a technical means for effectively supervising the geographic position change of the electronic equipment is lacking.
Disclosure of Invention
Aiming at the problems, the embodiment of the application provides a method and a device for detecting the change of the geographic position of electronic equipment, so as to make up for the defects 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 first positioning result of the equipment to be detected at the last time;
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 geographic 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 geographic position change result.
In a second aspect, an embodiment of the present application further provides a device for detecting a change of a geographic location of an electronic device, where the device includes:
the reading unit is used for reading the last first positioning result of the equipment to be detected;
an acquisition unit for acquiring an IP address of the device to be detected;
the positioning unit is used for determining a second positioning result of the equipment to be detected according to the IP address;
the judging unit is used for determining a geographic 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 geographic position change 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 the method of any of the above.
In a fourth aspect, embodiments of the present application also provide a computer-readable storage medium storing one or more programs that, when executed by an electronic device comprising a plurality of application programs, cause the electronic device to perform any of the methods described above.
The above-mentioned at least one technical scheme that this application embodiment adopted can reach following beneficial effect:
according to the method and the device, the IP address of the equipment to be detected is acquired, the equipment 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 equipment to be detected is changed is determined according to the consistency of the positioning result of the current detection and the positioning result of the previous round, and the first positioning result is updated according to the obtained geographic position changing result to serve as a basis of the next round of detection. The IP address of the equipment to be detected is fully utilized, so that the automatic detection of the change of the geographic position of the electronic equipment is realized, the detection method is simple, the calculated amount is small, the detection accuracy is high, and great convenience is provided for the 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 embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
FIG. 1 illustrates a flow diagram of a method of detecting a change in a geographic location of an electronic device according to one embodiment of the present application;
FIG. 2 illustrates a schematic diagram of a detection system for a change in a geographic location of an electronic device according to another embodiment of the present application;
FIG. 3 illustrates a flow diagram of a method of detecting a change in a geographic location of an electronic device according to another embodiment of the present application;
FIG. 4 shows a schematic structural diagram of a detection device for a change in a geographic location of an electronic device according to one 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
For the purposes, technical solutions and advantages of the present application, the technical solutions of the present application will be clearly and completely described below with reference to specific embodiments of the present application and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The following describes in detail the technical solutions provided by the embodiments of the present application with reference to the accompanying drawings.
Aiming at the current situation that whether the geographic position of the electronic equipment is changed or not is lack of an effective detection and supervision method in the prior art, the application provides a detection method for the geographic position change of the electronic equipment. The detection method is simple, small in calculated amount, high in practicality and wide in application range.
Fig. 1 is a flowchart of 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 a last first positioning result of the equipment to be detected according to a preset period.
The application is mainly designed for an electronic equipment terminal, in some embodiments of the application, the method of the application can form a detection tool for changing the geographic position, the detection tool is installed on the electronic equipment of a user side in the form of software, the detection tool is called a client side, and the steps S110 to S150 can be directly executed by the detection tool at the client side; in other embodiments of the present application, the client may be connected to the server, and the method of the present application forms a detection tool to be deployed at the server, and steps S110 to S150 are executed by the server, which is not limited in this application, and may be selected by itself according to the need, where in practice, the latter method is generally adopted to reduce the local hardware resource consumption of the client.
Fig. 2 shows a schematic structural diagram of a detection system for detecting a geographic position change of an electronic device according to an embodiment of the present application, and as can be seen from fig. 2, a detection 200 for a geographic position change of an electronic device according to the present embodiment includes a server 210 and a plurality of clients 220, i.e. electronic devices to be detected. An apparatus 400 (fig. 4) that can implement the method for detecting a change in a geographic location of an electronic device of the present application is provided in the server 210. The present application is not limited to the detection system for changing the geographical position of the electronic device shown in fig. 2, and any system can be used to implement the present application.
Taking the example that the server 210 in the detection of the change of the geographic position of the electronic device in fig. 2 executes the application, a storage area may be set in the server 210, and is used for storing the detection result of the change of the geographic position of the electronic device, when a new round of detection is performed, the server 210 first reads the first positioning result of the device to be detected from the storage area, where the positioning result may be, but is not limited to, a country or region where the electronic device is located, a province, a city, a county, and an even finer geographic position, such as an internet bar, a machine room, a school, or the like.
The present application may be executed periodically, that is, according to a preset period, and the detection method may be executed once when the preset period starts or when the preset period ends. It can be understood that in the present application, the monitoring of the geographic position of the electronic device may be performed in real time, that is, according to a preset period, the IP address uploaded by the device to be detected is received, and then the subsequent steps are performed, so as to implement real-time monitoring, where the setting of the preset period may be set according to the monitoring requirement, and the smaller the setting of the first preset period, the larger the monitored frequency; the larger the first preset period is, the smaller the monitored frequency is, such as may be set to 60s upload.
Step S120: and acquiring the IP address of the equipment to be detected.
The method comprises the steps of acquiring 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 unified address format provided by an IP protocol, and the IP address is used for distributing a logic address to each network and each host on the Internet.
In some embodiments of the present application, the acquiring, according to a preset period, an IP address of a device to be detected includes: and receiving the IP address uploaded by the equipment to be detected according to a preset period.
In this 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 computer all-in-one machine, and the like.
The "obtaining" herein may be that the electronic device to be detected, that is, the client 220 actively uploads to the server 210, or the server 210 actively reads or pulls the relevant operation information of the client 220, which is not limited in this application.
It should be noted that, the IP address of the device to be detected may not be obtained by detecting very often, if the device to be detected returns an IP address, the device to be detected returns to "null", which indicates that the device to be detected is in a state of being unable to be tested, and the process is directly ended at this time, and the arrival of the next detection period is waited.
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 and city, even accurate to a certain internet bar, machine room or 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 geographic 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, according to the consistency between the second positioning result and the first positioning result, the geographic location change result of the device to be detected 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 geographic 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 time, and if the second positioning result is consistent with the first positioning result, the geographical position of the equipment to be detected is not changed.
If the two are inconsistent, the change of the electrical geographic position of the equipment to be detected is possible. The fact that the geographic position of the device to be detected is changed cannot be directly determined through the positioning results of the two detections, because proxy tools such as VPN and the like may be used for achieving the purposes of establishing a private network on a public network, conducting encryption communication and the like, so that the geographic position of the electronic device is changed, and the situation is not considered to be geographic position change. Therefore, in the case where 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 such as VPN is used so that the positioning result is changed.
For the elimination of the above situation, it can be determined according to the moving speed of the device to be detected, and for the real geographic position variation, the fastest speed does not exceed the speed of normal aircraft flight, such as 500km/h; for agents such as VPN, the movement speed may be very fast, so a speed threshold may be set, and the influence of the agent technology such as VPN may be eliminated by determining the relationship between the movement speed of the device to be detected and the speed threshold.
Step S150: and updating the first positioning result according to the geographic position change result.
Finally, updating the first positioning result to serve as a basis for next detection, and in some embodiments of the present application, updating the first positioning result according to the geographic position change result includes: if the geographic position of the equipment to be detected is not changed, the first positioning result is not updated; and if the geographic position of the equipment to be detected is changed, covering the first positioning result by adopting the second positioning result.
Specifically, if the geographic position of the equipment to be detected is judged to be changed, the first positioning result is updated to be a second positioning result; if the geographic position of the equipment to be detected is judged not to be changed, the equipment is not updated, namely the step is not needed to be executed.
As can be seen from the method shown in fig. 1, the present application locates the device to be detected according to the IP address by obtaining the IP address of the device to be detected, compares the location result of the current detection with the location result of the previous round, determines whether the geographic position of the device to be detected is changed according to the consistency of the two results, and updates the first location result according to the obtained geographic position change result to serve as the basis of the next round of detection. The IP address of the equipment to be detected is fully utilized, so that the automatic detection of the change of the geographic position of the electronic equipment is realized, the detection method is simple, the calculated amount is small, the detection accuracy is high, and great convenience is provided for the asset management of enterprises.
In some embodiments of the present application, the determining, according to the IP address, the 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 designated format; and receiving the geographic position returned by the third-party positioning service as the second positioning result.
For the positioning result of the device to be detected through the IP address, the positioning result can be realized by calling a third party positioning service, and in the prior art, the geographic position can be determined through the IP address or the reverse checking of the IP address through the geographic position can be realized. In particular, in the application, a service interface of a third party can be set, and through the service interface, a third party service can be called, and when positioning is performed, a third party positioning service can be directly called. 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 longitude and latitude corresponding to the IP address may also be returned for subsequent use.
In order to facilitate comparing the first positioning result with the second positioning result, the format of the positioning result can be specified, for example, the space between the country, province, city and district in the geographic position is removed, and then splicing is performed, so that the positioning result with the specified format can be obtained.
In some embodiments of the present application, determining the movement 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 time of the equipment to be detected according to the starting time and the ending time of the movement of the equipment to be detected, wherein the first time when the IP address of the equipment to be detected is acquired last time is taken as the starting time of the movement of the equipment to be detected, and the second time when the IP address of the equipment to be detected is acquired this time is taken as the ending time of the movement 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; and determining a geographic position change result of the equipment to be detected according to the moving speed, wherein the geographic position change result comprises the following steps: if the moving speed is greater than or equal to a set speed threshold, determining that the geographic position of the equipment 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 equipment to be detected is determined, the moving speed can be determined according to the quotient of the moving distance and the moving time, and the key is the determination of the moving distance and the moving time, wherein the moving distance can be determined according to a first positioning result and a second positioning result, for example, the straight line distance between the two is determined through the longitude and the latitude corresponding to the second positioning result and the longitude and the latitude corresponding to the second positioning result; for determining the movement time, taking the first moment when the IP address of the equipment to be detected is acquired last time as the starting moment of the movement of the equipment to be detected, taking the second moment when the IP address of the equipment to be detected is acquired this time as the ending moment of the movement of the equipment to be detected, and subtracting the starting moment from the ending moment to obtain the movement time; after determining the movement path and the movement time, the movement speed of the device to be detected can be determined, and the code for determining the movement path of the device to be detected according to the longitude and latitude information of the first positioning result and the second positioning result according to one embodiment of the present application is given below for reference:
in the application, for determining the movement path of the device to be detected is not limited to the method, any reasonable and feasible means can be adopted, if the device to be detected is moved, the device can be driven by a self-driving mode, a high-speed rail riding mode, an airplane riding mode and the like, when the movement path is determined, the first positioning result can be used as a starting point, the second positioning result can be used as an end point, the navigation technology is adopted to determine the paths of various movement modes, and the maximum value of the determined paths is used as the movement distance.
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; if the determined equipment type is consistent with the designated equipment type, the step of reading the last first positioning result of the equipment to be detected is entered.
That is, the user can set the type of the device to be detected, taking the device to be detected as a computer as an example, the desktop is not moved under the general condition, and if the movement is possible to be abnormal, the probability is relatively high; the notebook computer is often carried by people, so even if the notebook computer moves, the probability of abnormal situations is small, and therefore, a user can specify the type of equipment, so that the detection is more targeted.
If the computer type with the changed geographic position is made into a parameter, the parameter is placed in the setting, the enumerated values can be only a desktop computer, a notebook computer and the like, after the user selects the only desktop computer, when the detection method is executed, whether the type of the equipment to be detected is the desktop computer is firstly determined, if so, the detection is started, and if not, the flow is ended; after the user selects the desktop machine and the notebook computer, firstly, determining whether the type of the equipment to be detected is the desktop machine or the notebook computer, if so, starting detection, and if not, ending the flow.
In some embodiments of the present application, the method further comprises: and if the geographic position of the equipment to be detected is determined to be changed, generating alarm information according to the geographic position change result.
In some embodiments of the present application, an alarm system may be further set, and after determining that the geographic location of the device to be detected is changed, alarm information is generated and sent to related staff, for example, through an administrator contact manner set by the user, to perform alarm notification of a short message or a mail. After receiving the alarm, the manager can quickly inquire the risk item in the front end interface of the user terminal, and can clearly record which equipment is in the detailed information of the risk item, and at what time point, geographic position change occurs, and information such as the position of the province district before change, the position of the province district after change, the distance between the two places and the like.
Fig. 3 is a flowchart of a method for detecting a geographic location change of an electronic device according to another embodiment of the present application, and as can be seen from fig. 3, the embodiment includes:
firstly, determining whether the equipment to be detected is of a specified type, and if not, directly ending the flow; if yes, reading a 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 flow; if not, receiving the IP address uploaded by the equipment to be detected; and calling a third party positioning service to enable the third party positioning service to determine a second positioning result of the current detection of the equipment to be detected according to the IP address.
Judging whether the second positioning result is empty, if so, ending the flow; if not, judging whether the second positioning result is consistent with the first positioning result.
If yes, the geographical position of the equipment to be detected is not changed, and the process is ended; if not, calculating the distance between the first positioning result and the second positioning result and the IP address uploading time corresponding to the two positioning results, so as to determine the moving path and the moving time of the equipment to be detected and determine 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, if so, indicating that the geographic position of the equipment to be detected is not changed, and ending the flow; if not, the geographic position is changed, and the first positioning result is covered by the second positioning result.
It should be noted that, the above steps are executed in one detection period, and when one detection period ends, the process waits for the arrival of the preset period time, and then enters the next detection period, and the process is performed cyclically.
Fig. 4 shows a schematic structural diagram of a detection device for a geographic position change of an electronic device according to an embodiment of the present application, and as can be seen from fig. 4, the device 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 a device to be detected;
a positioning unit 430, configured to determine a second positioning result of the device to be detected according to the IP address;
a determining unit 440, configured to determine a geographic location change result of the device to be detected according to the consistency of the second positioning result and the first positioning result;
and an updating unit 450, configured to update the first positioning result according to the geographic location change result.
In some embodiments of the present application, in the foregoing 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 latitude and longitude information of the device to be detected according to the IP address, determines the geographic location of the device to be detected according to the latitude and longitude information, and returns the geographic location 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 foregoing apparatus, the determining unit 440 is configured to determine that the geographic location of the device to be detected is 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 geographic position change result of the equipment to be detected according to the moving speed.
In some embodiments of the present application, in the foregoing apparatus, the determining unit 440 is configured to determine the movement displacement of the device to be detected according to latitude and longitude information corresponding to the first positioning result and latitude and longitude information corresponding to the second positioning result; determining the movement time of the equipment to be detected according to the starting time and the ending time of the movement of the equipment to be detected, wherein the first time when the IP address of the equipment to be detected is acquired last time is taken as the starting time of the movement of the equipment to be detected, and the second time when the IP address of the equipment to be detected is acquired this time is taken as the ending time of the movement 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; an updating unit 450, configured to determine that the geographic location of the device to be detected is changed 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: a type discriminating unit for determining the equipment type of the equipment to be detected; if the determined equipment type is consistent with the designated equipment type, the step of reading the last first positioning result of the equipment to be detected is entered.
In some embodiments of the present application, the apparatus further comprises: and the alarm unit is used for generating alarm information according to the geographic position change result if the geographic position of the equipment to be detected is determined to be changed.
In some embodiments of the present application, in the foregoing 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 geographic position of the equipment to be detected is changed, covering the first positioning result by adopting 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 the hardware level, the electronic device includes a processor, and optionally 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 (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, network interface, and memory may be interconnected by an internal bus, which may be an ISA (Industry Standard Architecture ) bus, a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus, or EISA (Extended Industry Standard Architecture ) bus, among others. The buses may be classified as address buses, data buses, control buses, etc. For ease of illustration, only one bi-directional arrow is shown in FIG. 5, but not only one bus or type of bus.
And the memory is used for storing programs. In particular, the program may include program code including computer-operating instructions. The memory may include memory and non-volatile storage and provide instructions and data to the processor.
The processor reads the corresponding computer program from the nonvolatile memory to the memory and then runs the computer program to form a detection device for the geographic position change of the electronic equipment on a logic level. The processor is used for executing the programs stored in the memory and is specifically used for executing the following operations:
reading a first positioning result of the equipment to be detected at the last time;
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 geographic 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 geographic position change result.
The method executed by the apparatus for detecting a change in a geographic location of an electronic device according to the embodiment shown in fig. 4 of the present application may be applied to a processor 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 by instructions in the form of software. The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The disclosed methods, steps, and logic blocks 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 a method disclosed in connection with the embodiments of the present application may be embodied directly in hardware, in a decoded processor, or in a combination of hardware and software modules in a decoded processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor reads the information in the memory and, in combination with its hardware, performs the steps of the above method.
The electronic device may further execute the method executed by the device for detecting the change of the geographic position of the electronic device in fig. 4, and implement the function of the device for detecting the change of the geographic position of the electronic device in the embodiment shown in fig. 4, which is not described herein.
The embodiments of the present application also provide 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 a plurality of application programs, enable the electronic device to perform a method performed by a detection apparatus for a geographic location change of an electronic device in the embodiment shown in fig. 4, and specifically are configured to perform:
reading a first positioning result of the equipment to be detected at the last time;
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 geographic 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 geographic position change result.
It will be appreciated by those skilled in the art that 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 flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
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 storage media for a computer 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, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
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 one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
It will be appreciated by those skilled in the art that 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 foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (8)

1. A method for detecting a change in a geographic location of an electronic device, comprising:
reading a first positioning result of the equipment to be detected at the last time;
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 geographic position change result of the equipment to be detected according to the consistency of the second positioning result and the first positioning result;
updating the first positioning result according to the geographic position change result;
and determining a second positioning result of the equipment to be detected according to the IP address, wherein the second positioning result comprises:
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 designated format;
receiving a geographic position returned by the third party positioning service as the second positioning result;
determining a geographic position change result of the device to be detected according to the consistency of the second positioning result and the first positioning result, including:
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;
determining a geographic position change result of the equipment to be detected according to the moving speed;
the determining the moving speed of the equipment to be detected according to the second positioning result and the first positioning result comprises the following steps:
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 time of the equipment to be detected according to the starting time and the ending time of the movement of the equipment to be detected, wherein the first time when the IP address of the equipment to be detected is acquired last time is taken as the starting time of the movement of the equipment to be detected, and the second time when the IP address of the equipment to be detected is acquired this time is taken as the ending time of the movement 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 determining 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 includes:
using the first positioning result as a starting point, using the second positioning result as an end point, determining the routes of multiple moving modes by adopting a navigation technology, and using the maximum value of the determined multiple routes as moving displacement; wherein, the multiple moving modes include: a self-driving mode, a high-speed rail mode and an airplane mode;
and determining a geographic position change result of the equipment to be detected according to the moving speed, wherein the geographic position change result comprises the following steps:
if the moving speed is greater than or equal to a set speed threshold, determining that the geographic position of the equipment to be detected is changed; otherwise, determining that the geographic position of the equipment to be detected is not changed.
2. The method of claim 1, wherein the determining the geographic location change result of the device to be detected based on the consistency of the second positioning result and the first positioning result comprises:
and 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.
3. The method according to claim 1, further comprising, prior to the step of reading the last first positioning result of the device to be detected:
determining the equipment type of the equipment to be detected;
if the determined equipment type is consistent with the designated equipment type, the step of reading the last first positioning result of the equipment to be detected is entered.
4. The method according to claim 1, wherein the method further comprises:
and if the geographic position of the equipment to be detected is determined to be changed, generating alarm information according to the geographic position change result.
5. The method of claim 1, wherein updating the first positioning result based on the geographic location change result comprises:
if the geographic position of the equipment to be detected is not changed, the first positioning result is not updated; and if the geographic position of the equipment to be detected is changed, covering the first positioning result by adopting the second positioning result.
6. A device for detecting a change in a geographic location of an electronic device, the device comprising:
the reading unit is used for reading the last first positioning result of the equipment to be detected;
an acquisition unit for acquiring an IP address of the device to be detected;
the positioning unit is used for determining a second positioning result of the equipment to be detected according to the IP address;
the judging unit is used for determining a geographic position change result of the equipment to be detected according to the consistency of the second positioning result and the first positioning result;
the updating unit is used for updating the first positioning result according to the geographic position change result;
the positioning unit is used for 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; receiving a geographic position returned by the third party positioning service as the second positioning result;
the judging unit is used for 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 time of the equipment to be detected according to the starting time and the ending time of the movement of the equipment to be detected, wherein the first time when the IP address of the equipment to be detected is acquired last time is taken as the starting time of the movement of the equipment to be detected, and the second time when the IP address of the equipment to be detected is acquired this time is taken as the ending time of the movement 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 determining 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 includes:
using the first positioning result as a starting point, using the second positioning result as an end point, determining the routes of multiple moving modes by adopting a navigation technology, and using the maximum value of the determined multiple routes as moving displacement; wherein, the multiple moving modes include: a self-driving mode, a high-speed rail mode and an airplane mode;
the updating unit is used for determining that the geographic position of the equipment to be detected is changed if the moving speed is greater than or equal to a set speed threshold value; otherwise, determining that the geographic position of the equipment to be detected is not changed.
7. An electronic device, comprising:
a processor; and
a memory arranged to store computer executable instructions which, when executed, cause the processor to perform the method of claims 1 to 5.
8. 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-5.
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 CN114500454A (en) 2022-05-13
CN114500454B true 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
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
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
A High-Precision Rotor Position and Displacement Prediction Method Specially for Bearingless Permanent Magnet Synchronous Motor;Sun, Yukun;MATHEMATICAL PROBLEMS IN ENGINEERING;全文 *
Web资源地理位置分类与检测;王闯;;计算机工程与科学(09);全文 *
基于邻近序列的IP地址地理定位方法;郭立轩;卓子寒;何跃鹰;李强;李舟军;;计算机科学(01);全文 *
运营商电商业务安全防护体系研究;韩晶;赵锡成;黄文良;;邮电设计技术(04);全文 *

Also Published As

Publication number Publication date
CN114500454A (en) 2022-05-13

Similar Documents

Publication Publication Date Title
KR101971676B1 (en) System and method to utilize geo-fences
US10812314B2 (en) Methods and apparatuses for pushing a message
US20210042756A1 (en) Blockchain-based Security Management Method, Related Device and Storage Medium
CN107426693B (en) Positioning method and device
US9355005B2 (en) Detection apparatus and detection method
WO2019085641A1 (en) Method and apparatus for friend recommendation
CN109560976B (en) Message delay monitoring method and device
CN106658568B (en) Method and equipment for providing available wireless access point information
CN105373460A (en) Monitoring message alarming method and system
US8196151B1 (en) Detecting queue problems using messages entering and leaving a queue during a time period
CN112165517B (en) Return source detection method and device, storage medium and electronic equipment
CN109982034B (en) Access request processing method and device in video monitoring system
CN110913038B (en) IP address determination method, device, server and computer readable storage medium
CN114363334A (en) Network configuration method, device and equipment for cloud system and cloud desktop virtual machine
CN112732560B (en) Method and device for detecting leakage risk of file descriptor
CN114500454B (en) Method and device for detecting geographic position change of electronic equipment
CN110875832A (en) Abnormal service monitoring method, device and system and computer readable storage medium
CN108234196B (en) Fault detection method and device
CN116737710A (en) Data processing method and device and electronic equipment
US20180309622A1 (en) System and method for generating an alert associated with a device consuming a resource
CN109286539B (en) Method, device, communication equipment and readable storage medium for detecting transmission abnormity
CN113609111A (en) Big data testing method and system
CN112699009A (en) Data detection method and device, server and storage medium
CN115604708A (en) User account protection method and device, electronic equipment and readable storage medium
CN113067713B (en) Method and device for adding engineering identification to alarm network element

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