Method and apparatus for acquiring road test GPS data

MYPI2025005466A0Undetermined Publication Date: 2024-10-27ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
MYPI2025005466
Authority / Receiving Office
MY · MY
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-27
Filing Date
2023-11-29
Publication Date
2024-10-27

AI Technical Summary

Technical Problem

When using network optimization tools for drive testing, external GPS devices have problems with unstable connections and high costs, and there are insufficient USB interfaces, making it difficult to effectively obtain GPS data.

Method used

By establishing a communication connection between the drive test device and the mobile device, sending a GPS data request and obtaining the built-in GPS data of the mobile device, GPS data can be obtained without the need for an external GPS device.

Benefits of technology

It reduces dependence on external GPS equipment, saves resources, reduces costs, and improves the stability and efficiency of GPS data acquisition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure PI2025005466_DRAWING_001
    Figure PI2025005466_DRAWING_001
  • Figure PI2025005466_DRAWING_002
    Figure PI2025005466_DRAWING_002
  • Figure PI2025005466_DRAWING_003
    Figure PI2025005466_DRAWING_003
Patent Text Reader

Abstract

The present application discloses a method and apparatus for acquiring road test GPS data and belongs to the field of road test GPS data communications. The method includes: establishing a communication connection between a road test device and a mobile device; sending, by the road test device, a global positioning system (GPS) data request to the mobile device via the communication connection; and acquiring, by the road test device, GPS data sent by the mobile device via the communication connection.
Need to check novelty before this filing date? Find Prior Art

Description

Method and device for obtaining road test GPS data

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to a Chinese patent application filed with the Patent Office of China on April 27, 2023, with application number 202310481024.2 and invention name “Method and Device for Acquiring Road Test GPS Data”. The entire contents of the Chinese patent application are incorporated herein by reference. Technical Field

[0003] The present invention relates to a method and device for obtaining GPS data from a road test. Background Art

[0004] Currently, when using network optimization tools for drive testing, Global Positioning System (GPS) positioning information is crucial. Computers are becoming increasingly convenient, but the number of Universal Serial Bus (USB) interfaces available is limited. Drive testing mobile devices connect to PC drive testing software via USB interfaces. When USB interfaces are insufficient, GPS devices need to be connected to PC drive testing software using a hub.

[0005] However, using an external GPS device has a certain cost and has the problem of unstable connection.

[0006] Summary of the Invention

[0007] In a first aspect, an embodiment of the present application provides a method for obtaining drive test GPS data, including: a drive test device establishes a communication connection with a mobile device; the drive test device sends a global positioning system GPS data request to the mobile device through the communication connection; and the drive test device obtains the GPS data sent by the mobile device through the communication connection.

[0008] In a second aspect, an embodiment of the present application provides a method for obtaining road test GPS data, including: establishing a communication connection between a mobile device and a road test device; receiving a GPS data request sent by the road test device through the communication connection; obtaining GPS data according to the GPS data request; and sending the GPS data to the road test device through the communication connection.

[0009] In a third aspect, an embodiment of the present application provides a device for acquiring road test GPS data, comprising: a first connection module for establishing a communication connection with a mobile device; a first sending module for sending a global positioning system GPS data request to the mobile device through the communication connection; and a first acquisition module for acquiring GPS data sent by the mobile device through the communication connection.

[0010] In a fourth aspect, an embodiment of the present application provides a device for acquiring road test GPS data, comprising: a second connection module for establishing a communication connection with a road test device; a receiving module for receiving a GPS data request sent by the road test device through the communication connection; a second acquisition module for acquiring GPS data according to the GPS data request; and a second sending module for sending the GPS data to the road test device through the communication connection.

[0011] In a fifth aspect, an embodiment of the present application provides an electronic device comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method for acquiring road test GPS data as described in the first aspect or the second aspect.

[0012] In a sixth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method for acquiring road test GPS data as described in the first aspect or the second aspect are implemented.

[0013] In the seventh aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run a program or instruction to implement the method for obtaining road test GPS data as described in the first aspect or the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] FIG1 is a flow chart of a method for acquiring GPS data from a drive test according to an embodiment of the present application;

[0015] FIG2 is a schematic diagram of a communication connection between a drive test software and a mobile terminal APP provided in an embodiment of the present application;

[0016] FIG3 is a flow chart of a method for acquiring GPS data from a drive test according to an embodiment of the present application;

[0017] FIG4 is a schematic diagram of a process for communicating between a PC-side drive test software and a mobile-side App and obtaining GPS data according to an embodiment of the present application;

[0018] FIG5 is a schematic structural diagram of a device for acquiring GPS data from a drive test according to an embodiment of the present application;

[0019] FIG6 is a schematic structural diagram of a device for acquiring GPS data from a drive test according to an embodiment of the present application;

[0020] 7 is a schematic structural diagram of a device for acquiring GPS data from a drive test according to an embodiment of the present application;

[0021] FIG8 is a schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0022] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0023] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.

[0024] The method and apparatus for acquiring GPS data from a drive test provided by the embodiment of the present application will be described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.

[0025] FIG1 is a flow chart illustrating a method for acquiring GPS data from a drive test, according to one embodiment of the present invention. The method may be executed by an electronic device, which may include a terminal device, such as a computer terminal. In other words, the method may be executed by software or hardware installed on the terminal device, and includes the following steps:

[0026] Step 101: The drive test device establishes a communication connection with the mobile device.

[0027] In an embodiment of the present application, the communication connection can be a wireless communication connection or a wired communication connection. For example, a connection can be established between the road test device and the mobile device via USB. For another example, a wireless communication connection can be established between the road test device and the mobile device via short-range communication such as WiFi and Bluetooth.

[0028] In one embodiment, the drive test device may send an Android Debug Bridge (adb) command to the mobile device to notify the mobile device of address information used to establish a communication connection, and establish the communication connection by monitoring the corresponding address information.

[0029] For example, the drive test device can be a personal computer (PC). The drive test device can communicate with the mobile device through locally installed drive test software (i.e., an application), and the mobile device can communicate with the drive test device through a locally installed application. As shown in Figure 2, when the drive test device and the mobile device establish a wireless communication connection via a USB interface or Wireless Fidelity (Wi-Fi), the drive test software (i.e., the application installed on the drive test device) can use the adb forward command (adb includes adbd) to notify the mobile device's app to set port B, and redirect port A of the drive test device and port B of the mobile device through the adb forward command (i.e., adb forward tcp: PC port A tcp: mobile device port B), and then send a connection request to the mobile device to establish a communication connection with the mobile device.

[0030] In one embodiment, an application on the mobile device that communicates with the drive test device may be in an inactive state. Therefore, before establishing a communication connection with the mobile device, the method may further include: the drive test device sending a first command to the mobile device, wherein the first command instructs the mobile device to launch the application that interacts with the drive test device. For example, the mobile device may be connected to the drive test device via a USB, and the drive test device may send the first command to the mobile device via the USB to launch the application on the mobile device that interacts with the drive test device. The first command may be an adb command.

[0031] For example, a possible communication connection establishment process includes the following process: first, the drive test software sends the first adb command (i.e., the first command mentioned above) to the mobile application (Application, APP) (i.e., mobile device). This command is used to start the mobile APP. At this time, the format of the first adb command to start the application can be: adb shell am start--activity-single-top+App package name; after the mobile APP is started, it receives the second adb command (which can be called the second command) sent by the drive test software. The second adb command is used to notify the mobile APP to set the port number (mobile port B). At this time, the format of the second adb command to set the port number can be: adb shell am broadcast-a+package name.setport--ei port+mobile port number; after receiving the command, the mobile APP creates a server socket and listens for client socket connection requests. When the mobile APP receives the third adb command (which can be called the third command), PC port A and mobile port B are redirected. At this time, the format of the third adb command can be: adb forward tcp:PC port A TCP: Mobile port B; After the redirection of PC port A and mobile port B is completed, the drive test software creates a socket and sends a socket connection request to the mobile APP. After the mobile APP listens for the connection request, it receives the connection request, thereby realizing the communication connection between the drive test software and the mobile APP.

[0032] The above communication connection process is only one possible implementation method in this application. In specific applications, it is not limited to the above communication connection establishment process. For example, the drive test can also obtain the Bluetooth physical address of the mobile device through the Bluetooth module scanning, and send a Bluetooth connection request to the mobile device using the Bluetooth physical address to establish a Bluetooth connection with the mobile device.

[0033] Step 102: The drive test device sends a global positioning system (GPS) data request to the mobile device via the communication connection.

[0034] In one embodiment, the drive test device sends a GPS data request to the mobile device through the communication connection. For example, in the implementation shown in FIG. 2 , the drive test device sends a GPS data request to the mobile device through port A, wherein the GPS data request may be a request encapsulated according to a custom protocol.

[0035] For example, the GPS data request is encapsulated according to a custom protocol, including: using the code field as an identification command, consisting of four characters "0000", where the first two characters represent the direction in which the command is sent. When the first two characters are 00, it represents that the road test device sends it to the mobile device; when the first two characters are 01, it represents that the mobile device sends it to the road test device; and the last two characters 00 represent the GPS service. Of course, this is not specifically limited in the embodiment of the present application.

[0036] Step 103: The drive test device obtains GPS data sent by the mobile device through the communication connection.

[0037] In one embodiment, the road test device receives encapsulated data sent by the mobile device through the communication connection, parses the encapsulated data according to a preset format, and obtains the GPS data. Thus, the GPS built into the mobile device is utilized to conveniently obtain the GPS data required for the road test without the need to add an additional interface for obtaining GPS data, thereby achieving the effects of saving resources, reducing costs, and reducing dependence on an external GPS.

[0038] In one achievable manner, the encapsulated data sent by the mobile device through the communication connection may be data encapsulated according to a custom protocol. For example, the mobile device may encapsulate GPS data in the following manner:

[0039] The code field is an identification command consisting of four characters "0000". The first two characters 01 indicate that the mobile device sends data to the drive test device, and the last two characters 00 indicate GPS service. Specifically, the code field is as follows: data field, which identifies the data content; lon field, which identifies longitude; lat field, which identifies latitude; alt field, which identifies altitude; speed field, which identifies speed; and scount field, which identifies the number of satellites.

[0040] After receiving the encapsulated data, the road test equipment can parse the encapsulated data according to the above-mentioned preset format, parse the lon field, lat field, alt field, speed field and scount field, thereby obtaining GPS data including longitude, latitude, altitude, speed and number of satellites. Of course, this is not specifically limited in the embodiment of the present application, and the specific GPS data can be determined according to actual conditions.

[0041] FIG3 is a flow chart illustrating a method for acquiring GPS data from a drive test, provided by one embodiment of the present application. The method may be executed by a mobile device, which may include a terminal device, such as a mobile phone. In other words, the method may be executed by software or hardware installed on the mobile device, and includes the following steps:

[0042] Step 301: The mobile device establishes a communication connection with the drive test device.

[0043] In the embodiment of the present application, the mobile device and the drive test device establish a communication connection, which corresponds to the drive test device and the mobile device establishing a communication connection in the method shown in FIG1 . For details, please refer to the above related description.

[0044] Step 302: The mobile device receives a GPS data request sent by the drive test device through the communication connection.

[0045] In the embodiment of the present application, the mobile device receives the GPS data request sent by the drive test device through the communication connection. The manner in which the drive test device sends the GPS data request can refer to the relevant description of the method described in FIG. 1 above.

[0046] Step 303: Obtain GPS data according to the GPS data request.

[0047] In the embodiment of the present application, the mobile device receives the GPS data request sent by the drive test device, and obtains GPS data based on the GPS data request.

[0048] For example, Android positioning has the following advantages:

[0049] - High positioning success rate: The overall positioning success rate is as high as 99.6%.

[0050] - High positioning accuracy: GPS positioning accuracy reaches 10 meters (depending on the chip).

[0051] -Fast speed: positioning speed reaches millisecond level

[0052] -Stable service: Positioning service stability can reach 99.999%.

[0053] - Low power consumption: memory usage is 15.6MB and CPU usage is 2.2%.

[0054] Therefore, after receiving the GPS data request, the mobile device can start Android positioning to obtain GPS data.

[0055] In a possible implementation, the mobile device may periodically acquire the GPS data according to a preset time interval. For example, the frequency of acquiring GPS data may be set to 1 second, and the mobile device sends the currently acquired GPS data to the drive test device every second.

[0056] In one possible implementation, to prevent the mobile device from acquiring GPS data unnecessarily, the mobile device may stop acquiring GPS data upon receiving a stop command broadcast by the drive test device. For example, the drive test device may send an adb command instructing the mobile device to stop acquiring GPS data. The format of the adb command to stop acquiring GPS data may be: adb shell am broadcast -a + package name.ACTION_GPS_STOP.

[0057] Optionally, the GPS data described in the embodiment of the present application can be obtained by the mobile device from calling the native system application interface, or it can be obtained by the mobile device from a third-party application interface. Of course, this is not specifically limited in the embodiment of the present application.

[0058] Step 304: Send the GPS data to the drive test device via the communication connection.

[0059] In an embodiment of the present application, the mobile device can encapsulate the GPS data in a predetermined format and send the encapsulated GPS data to the road test device through the communication connection. At this point, the built-in GPS of the mobile device is utilized, which greatly facilitates the road test, thereby solving the problem of unstable external GPS connection, achieving the effect of saving resources, reducing costs, and reducing dependence on external GPS.

[0060] The mobile device may encapsulate GPS data in the manner described in the method shown in FIG. 1 . For details, please refer to the above related description.

[0061] The following uses PC-side drive test software and mobile-side APP as examples to illustrate the technical solution provided in the embodiments of this application.

[0062] FIG4 shows another flow chart of a method for acquiring GPS data from a drive test according to an embodiment of the present application. As shown in FIG4 , the method may include the following steps:

[0063] Step 401: The PC drive test software sends an adb command, where the adb command may include a command to start a mobile app and a command to set a port.

[0064] For example, the drive test software sends the first adb command to start the mobile app. The adb command format can be: adb shell am start--activity-single-top+App package name. The second adb command is sent to notify the mobile app to set the port number.

[0065] Step 402: The mobile APP receives the adb command and starts the APP.

[0066] Step 403: The mobile app creates a server socket and listens.

[0067] For example, after receiving the second adb command, the mobile app sets the server socket port number, creates a server socket, and then starts the server socket to listen for client connection requests initiated by the drive test software. The format of the second adb command for setting the port number can be: adb shell am broadcast -a+package name.setport--ei port+mobile port number.

[0068] Step 404: The PC drive test software establishes a communication connection with the mobile APP.

[0069] For example, the PC drive test software can send a third adb command to the mobile app. After the mobile app receives the third adb command sent by the PC drive test software and redirects the mobile app port to the PC drive test software port through the third adb command, the mobile app listens for client connection requests initiated by the drive test software through the server socket. The mobile app then establishes a socket connection with the client socket created by the PC drive test software through the server socket. The format of the third adb command can be: adb forward tcp:PC port A tcp:mobile port B.

[0070] Step 405: The mobile APP starts the GPS positioning function.

[0071] For example, after the mobile APP establishes a communication connection with the PC drive test software, the mobile APP receives a GPS data request sent by the PC drive test software, and the mobile APP starts the GPS positioning function. The communication connection method can be connected through USB or other short-distance communication connection methods.

[0072] Among them, the mobile terminal APP can use the Android system to start the GPS positioning function. Of course, this is not specifically limited in the embodiments of the present application, and the mobile terminal APP can also use other methods to perform GPS positioning.

[0073] Step 406: The mobile APP obtains GPS data.

[0074] For example, a mobile app obtains GPS data by activating the positioning function of the Android system.

[0075] Step 407: The mobile APP sends the GPS data to the PC drive test software.

[0076] For example, the mobile APP sends the GPS data packaged according to the custom protocol to the PC drive test software. The specific format of the custom package can be found in the above description.

[0077] Step 408: The PC-side drive test software analyzes the GPS data.

[0078] For example, the PC-side drive test software parses the GPS data encapsulated according to the custom protocol to obtain the parsed GPS data.

[0079] Step 409: The mobile APP determines whether it has received a stop command sent by the PC drive test software. If so, the drive test is stopped. Otherwise, the mobile APP returns to step 406, continues to obtain GPS data at a preset frequency, and sends the obtained GPS data to the drive test software.

[0080] For example, during a drive test, the frequency of obtaining GPS data can be set to 1 second. The mobile device obtains and sends GPS data to the drive test device every second. When the mobile app receives a stop command sent by the PC drive test software, it stops obtaining GPS data.

[0081] Through the technical solutions provided in the embodiments of this application, when using network optimization tools to conduct drive tests, the mobile device can be connected to the PC drive test software via a USB port. This facilitates drive testing by utilizing the mobile device's built-in GPS, reducing reliance on an external GPS. The drive test software establishes a communication connection with the app and issues a command to obtain GPS data. The app then obtains the GPS data and feeds it back to the drive test software. Using the mobile device's built-in GPS saves resources and reduces costs compared to using an external GPS.

[0082] It should be noted that the method for acquiring drive test GPS data provided in the embodiments of the present application can be executed by a device for acquiring drive test GPS data or a control module within the device for acquiring drive test GPS data that is configured to execute the method. In the embodiments of the present application, the device for acquiring drive test GPS data is used as an example to illustrate the device for acquiring drive test GPS data provided in the embodiments of the present application.

[0083] Figure 5 is a schematic diagram of a device for acquiring drive test GPS data according to an embodiment of the present application. As shown in Figure 5, the device primarily comprises a first connection module 501, a first sending module 502, and a first acquisition module 503. The first sending module 501 is configured to establish a communication connection with a mobile device; the first sending module 502 is configured to send a Global Positioning System (GPS) data request to the mobile device via the communication connection; and the first acquisition module 503 is configured to acquire GPS data sent by the mobile device via the communication connection.

[0084] In one embodiment, the first acquisition module 503 acquires the GPS data sent by the mobile device through the communication connection, including: receiving encapsulated data sent by the mobile device through the communication connection; and parsing the encapsulated data according to a preset format to obtain the GPS data.

[0085] In one embodiment, the communication connection comprises a wireless communication connection.

[0086] In one embodiment, the first sending module 502 is further configured to: send a first command to the mobile device through a wired communication connection, wherein the first command instructs the mobile device to start an application program that interacts with the drive test device.

[0087] The apparatus for acquiring the above-mentioned drive test GPS data provided in the embodiment of the present application can implement each process implemented by the drive test equipment in the method embodiments of Figures 1 to 4 , and will not be described again here to avoid repetition.

[0088] Figure 6 is a schematic diagram of the structure of a device for acquiring drive test GPS data according to an embodiment of the present application. As shown in Figure 6, the device for acquiring drive test GPS data includes: a second connection module 601, a receiving module 602, a second acquisition module 603, and a second sending module 604. The second connection module 601 is configured to establish a communication connection with a drive test device; the receiving module 602 is configured to receive a GPS data request sent by the drive test device via the communication connection; the second acquisition module 603 is configured to acquire GPS data based on the GPS data request; and the second sending module 604 is configured to send the GPS data to the drive test device via the communication connection.

[0089] In one embodiment, the second sending module 604 sends the GPS data to the drive test device, including: encapsulating the GPS data according to a predetermined format; and sending the encapsulated GPS data.

[0090] In one embodiment, the second acquisition module 603 acquires the GPS data, including: periodically acquiring the GPS data according to a preset time interval.

[0091] In one embodiment, the receiving module 602 is further configured to receive a stop command broadcasted by the drive test device; as shown in FIG7 , the apparatus may further include: an execution module 605 configured to instruct the second acquisition module 603 to stop acquiring the GPS data.

[0092] The device for acquiring drive test GPS data in the embodiments of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, network attached storage (NAS), personal computer (PC), etc., which are not specifically limited in the embodiments of the present application.

[0093] The device for acquiring the drive test GPS data in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0094] The device for acquiring drive test GPS data provided in the embodiment of the present application can implement each process implemented by the mobile device in the method embodiments of Figures 1 to 4. To avoid repetition, they are not described here.

[0095] Based on the same technical concept, an embodiment of the present application also provides an electronic device, which is used to execute the above-mentioned method for obtaining road test GPS data. Figure 8 is a structural diagram of an electronic device that implements various embodiments of the present application. The electronic device may have relatively large differences due to different configurations or performances, and may include a processor (processor) 801, a communication interface (Communications Interface) 802, a memory (memory) 803 and a communication bus 804, wherein the processor 801, the communication interface 802, and the memory 803 communicate with each other through the communication bus 804. The processor 801 can call a computer program stored in the memory 803 and can be run on the processor 801. The specific execution steps can refer to the various steps of the above-mentioned embodiment of the method for obtaining road test GPS data, and can achieve the same technical effect. To avoid repetition, they will not be repeated here.

[0096] It should be noted that the electronic devices in the embodiments of the present application include: servers, terminals, or other devices other than terminals.

[0097] The above electronic device structure does not constitute a limitation of the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, the input unit may include a graphics processing unit (GPU) and a microphone, and the display unit may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. to configure the display panel. The user input unit includes a touch panel and at least one of other input devices. The touch panel is also called a touch screen. Other input devices may include but are not limited to a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0098] The memory can be used to store software programs and various data. The memory may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory may include a volatile memory or a non-volatile memory, or the memory may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM) and direct rambus random access memory (DRRAM).

[0099] The processor may include one or more processing units; optionally, the processor may integrate an application processor and a modem processor, wherein the application processor primarily handles operations related to the operating system, user interface, and application programs, and the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into the processor.

[0100] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned embodiment of the method for obtaining road test GPS data is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0101] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (ROM), random access memory (RAM), a magnetic disk, or an optical disk.

[0102] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned embodiment of the method for obtaining road test GPS data, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0103] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0104] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0105] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0106] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.

Claims

1. A method for obtaining road test GPS data, include: The drive test device establishes a communication connection with the mobile device; The drive test device sends a global positioning system GPS data request to the mobile device via the communication connection; The drive test device obtains GPS data sent by the mobile device through the communication connection.

2. The method according to claim 1, in, The drive test device obtains GPS data sent by the mobile device through the communication connection, including: receiving encapsulated data sent by the mobile device via the communication connection; The encapsulated data is parsed according to a preset format to obtain the GPS data.

3. The method according to claim 1, in, The method further comprises: The drive test device receives a wireless parameter indicator sent by the mobile device through a wired communication connection.

4. The method according to any one of claims 1 to 3, in, The communication connection comprises a wireless communication connection.

5. The method according to claim 4, in, Before the drive test device establishes a communication connection with the mobile device, the method further includes: The drive test device sends a first command to the mobile device, wherein the first command instructs the mobile device to start an application that interacts with the drive test device.

6. A method for obtaining road test GPS data, include: The mobile device establishes a communication connection with the drive test device; The mobile device receives a GPS data request sent by the drive test device through the communication connection; Acquire GPS data according to the GPS data request; The GPS data is sent to the drive test device via the communication connection.

7. The method according to claim 6, in, Sending the GPS data to the drive test device includes: Encapsulating the GPS data according to a predetermined format; The encapsulated GPS data is sent.

8. The method according to claim 6 or 7, in, Acquiring GPS data according to the GPS data request includes: The mobile device periodically acquires the GPS data according to a preset time interval.

9. The method according to claim 8, in, Also includes: When receiving a stop command broadcasted by the drive test device, the acquisition of the GPS data is stopped.

10. A device for acquiring road test GPS data, include: A first connection module, used to establish a communication connection with a mobile device; A first sending module, configured to send a global positioning system GPS data request to the mobile device via the communication connection; The first acquisition module is used to acquire GPS data sent by the mobile device through the communication connection.

11. A device for acquiring road test GPS data, include: A second connection module, used to establish a communication connection with the drive test equipment; A receiving module, configured to receive a GPS data request sent by the drive test device via the communication connection; A second acquisition module, used for acquiring GPS data according to the GPS data request; The second sending module is used to send the GPS data to the drive test device through the communication connection.

12. An electronic device comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method according to any one of claims 1 to 5, or the steps of the method according to any one of claims 6 to 9.

13. A computer-readable storage medium storing a program or instruction, wherein the program or instruction, when executed by a processor, implements the steps of the method according to any one of claims 1 to 5, or the steps of the method according to any one of claims 6 to 9.