Method and device for transmitting positioning data based on Windows 10
By adding a positioning serial port driver to the Windows 10 operating system and using the positioning system driver to obtain positioning device data and send it to the application, the problem of a single positioning data transmission method in the existing technology is solved, and a variety of applications can be realized in Windows 10 without changing the application program. ized data transmission.
Patent Information
- Application Number
- CN202110490365.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-06
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2041-05-06
AI Technical Summary
In the Windows 10 operating system, existing positioning applications need to make major changes to the GNSS driver framework to obtain positioning data through methods other than the DeviceIOControl function, which lacks flexible data transmission methods.
A positioning serial port driver is added to the Windows 10 operating system, and the positioning system driver is connected to the positioning device to obtain positioning data and send it directly to the positioning application, realizing other data transmission methods besides function calling.
Positioning data can be obtained through the serial port under the current positioning system driver framework without modifying existing positioning applications, which improves the flexibility and adaptability of data transmission.
Smart Images

Figure CN113392044B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data transmission, and in particular to a method, apparatus, computer equipment and storage medium for positioning data transmission based on Windows 10. Background Art
[0002] With the development of data transmission technology, positioning data transmission technology has emerged in order to enable the upper-level positioning application in the host computer to obtain the positioning data in the positioning device.
[0003] In traditional technology, with the upgrade of Windows operating system, when it comes to Windows 10 operating system, the upper-level positioning application obtains the positioning data of the positioning system driver (UMDF2.0 framework GNSS driver) through the standard API function - DeviceIOControl function.
[0004] However, the traditional method, for a host computer with Windows 10 operating system, in order for the upper-level positioning application to obtain positioning data through other data transmission methods besides function calls, it is necessary to make major changes to the existing positioning application before it can run under the positioning system driver (GNSS driver framework). Summary of the invention
[0005] Based on this, it is necessary to provide a positioning data transmission method, device, computer equipment and storage medium based on Windows 10 that can obtain positioning data through other data transmission methods under the current positioning system driver framework without making changes to the existing positioning application program in order to solve the above technical problems.
[0006] A positioning data transmission method based on Windows 10, wherein a positioning serial port driver is added to a host computer of the Windows 10 operating system, and the method comprises:
[0007] After the positioning serial port driver is connected to the positioning system driver, the positioning system driver sends a reading request for reading positioning data to the positioning device;
[0008] The positioning system driver receives the positioning data sent by the positioning device in response to the reading request;
[0009] The positioning system driver sends the received positioning data to the positioning serial port driver;
[0010] The positioning serial port driver sends the positioning data directly to the positioning application.
[0011] In one of the embodiments, the positioning serial port driver sends a drive switch opening request to the positioning system driver;
[0012] The positioning system driver receives the drive switch opening request and turns on the positioning serial port driver;
[0013] Wherein, after the positioning serial port driver is turned on, the positioning serial port driver is connected to the positioning system driver.
[0014] In one embodiment, the positioning system drives receiving the positioning data sent by the positioning device in response to the reading request, including:
[0015] The positioning serial port driver sends a data monitoring instruction to the positioning system driver;
[0016] According to the data monitoring instruction and the reading request, the positioning system drives to obtain the positioning data sent by the positioning device.
[0017] In one of the embodiments, before the positioning serial port driver directly sends the positioning data to the positioning application, the method further includes:
[0018] The positioning serial port driver stores the positioning data received from the positioning system driver into a buffer;
[0019] When the positioning serial port driver receives the data acquisition request sent by the positioning application, the positioning data stored in the buffer is directly sent to the positioning application.
[0020] In one embodiment, the method further comprises:
[0021] The positioning serial port driver sends a termination monitoring instruction to the positioning system driver;
[0022] The positioning system driver sends a termination reading instruction to the positioning device, so that the positioning device no longer sends positioning data to the positioning system driver.
[0023] In one embodiment, the method further comprises:
[0024] The positioning serial port driver sends a drive switch closing request to the positioning system driver;
[0025] The positioning system driver receives the request to turn off the drive switch and turns off the positioning serial port driver;
[0026] Wherein, after the positioning serial port driver is closed, the positioning serial port driver is disconnected from the positioning system driver.
[0027] In one embodiment, after the positioning serial port driver stores the positioning data received from the positioning system driver in a buffer, the method further comprises:
[0028] The positioning serial port driver reports the positioning data received from the positioning system driver to the positioning application at preset intervals.
[0029] A positioning data transmission device based on Windows 10, the device comprising:
[0030] A positioning system driver, used for sending a reading request for reading positioning data to a positioning device after the positioning serial port driver is connected to the positioning system driver; receiving positioning data sent by the positioning device in response to the reading request; and sending the received positioning data to the positioning serial port driver;
[0031] The positioning serial port driver is used to send the positioning data directly to the positioning application.
[0032] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0033] After the positioning serial port driver is connected to the positioning system driver, the positioning system driver sends a reading request for reading positioning data to the positioning device;
[0034] The positioning system driver receives the positioning data sent by the positioning device in response to the reading request;
[0035] The positioning system driver sends the received positioning data to the positioning serial port driver;
[0036] The positioning serial port driver sends the positioning data directly to the positioning application.
[0037] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:
[0038] After the positioning serial port driver is connected to the positioning system driver, the positioning system driver sends a reading request for reading positioning data to the positioning device;
[0039] The positioning system driver receives the positioning data sent by the positioning device in response to the reading request;
[0040] The positioning system driver sends the received positioning data to the positioning serial port driver;
[0041] The positioning serial port driver sends the positioning data directly to the positioning application.
[0042] The above-mentioned positioning data transmission method, device, computer equipment and storage medium based on Windows 10, add a positioning serial port driver in the Windows 10 operating system, obtain the positioning data of the positioning device through the positioning system driver, and then the positioning system driver sends the data to the positioning serial port driver, and the positioning serial port driver uploads the positioning data to the upper-level positioning application. By adding a serial port driver in the Windows 10 operating system, the positioning data can be directly given to the upper-level positioning application through the serial port, without making major changes to the upper-level positioning application, so that the upper-level positioning application can adapt to the current positioning system driver to obtain positioning data through other data transmission methods other than function calls. The present application can obtain positioning data through other data transmission methods under the current positioning system driver framework without making changes to the existing positioning application. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 This is an application environment diagram of a positioning data transmission method based on Windows 10 in an embodiment;
[0044] Figure 2 A flowchart of a method for transmitting positioning data based on Windows 10 in an embodiment;
[0045] Figure 3 It is a flowchart of a positioning data transmission method based on Windows 10 in another embodiment;
[0046] Figure 4 It is a structural block diagram of a positioning data transmission device based on Windows 10 in one embodiment;
[0047] Figure 5 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0049] The positioning data transmission method based on Windows 10 provided in this application can be applied to Figure 1 In the application environment shown, the terminal 10 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
[0050] The terminal 10 of the present application takes the host computer as an example. The host computer side includes a positioning serial port driver 104, a positioning system driver 106 and a positioning application 102. The positioning device 12 is inserted into the host computer, and the two realize information / data interaction through the positioning system driver 106. Among them, the positioning device 12 mainly processes the positioning data through its baseband chip (modem). Specifically, after the positioning system driver 106 obtains the positioning data of the positioning device 12, it will enable the positioning serial port driver 104 to obtain the positioning data by calling a function. After obtaining the positioning data, the positioning serial port driver 104 will upload the positioning data to the positioning application 102 in the form of a serial port.
[0051] In one embodiment, Figure 2 As shown, a positioning data transmission method based on Windows 10 is provided, and the method is applied to Figure 1 Taking the terminal in as an example, a positioning serial port driver is added in the host computer of Windows 10 operating system. The method includes the following steps:
[0052] Step S202: After the positioning serial port driver is connected to the positioning system driver, the positioning system driver sends a reading request for reading positioning data to the positioning device.
[0053] Among them, the positioning serial port driver connects the application and the positioning system driver, obtains the positioning data from the positioning system driver, and sends it to the application. In the present embodiment, the positioning serial port driver is a NMEA driver, and the positioning data is NMEA data. The positioning system driver connects the positioning serial port driver and the positioning device, obtains the positioning data from the positioning device, and sends it to the positioning serial port driver. In the present embodiment, the positioning system driver is a GNSS driver (Global Navigation Satellite System driver). The positioning device is a general communication module with the functions of positioning and collecting positioning information. The positioning device usually does not have a display interface. The positioning data is NMEA data, and the reading request is a request signal for obtaining NMEA data. When the positioning device obtains the reading request, it will process the positioning information collected by it, so as to facilitate the subsequent sending of the positioning data to the host computer side.
[0054] Specifically, the positioning serial port driver and the positioning system driver are both program software drivers, so the positioning serial port driver and the positioning system driver are connected as a communication connection. After the positioning serial port driver and the positioning system driver realize the communication connection, the positioning system driver sends a reading request to the positioning device, requesting to read the positioning data of the positioning device. Among them, the reading request is generally sent in the form of an AT command or instruction.
[0055] Step S204: the positioning system drives the receiving of positioning data sent by the positioning device in response to the reading request.
[0056] When the positioning device receives a reading request, it will respond to the reading request and send the positioning data collected by itself to the positioning system driver based on the reading request. The positioning device obtains the positioning data of the device itself through the baseband chip, and its principle is similar to GPS, GIS, etc. When the positioning system driver recognizes the positioning device in the host computer, the two can communicate through the data interface.
[0057] Step S206: the positioning system driver sends the received positioning data to the positioning serial port driver.
[0058] Among them, after receiving the positioning data sent by the positioning device, the positioning system driver promptly sends it to the positioning serial port driver. In the process of the positioning system driver sending the positioning data to the positioning serial port driver, the host computer needs to call the subfunction ioctl_gnss_listen_nmea of DeviceIOControl to generate a data listening instruction, so that the positioning system driver can obtain the positioning data received by the positioning system after sending the reading request to the positioning device.
[0059] Step S208: The positioning serial port driver sends the positioning data directly to the positioning application.
[0060] The positioning application is an upper-layer positioning application that can display data to a user or a host computer. After receiving the positioning data, the positioning serial port driver directly sends the positioning data to the positioning application in the form of a serial port, so that the positioning application obtains the positioning data.
[0061] In the above positioning data transmission method based on Windows 10, a positioning serial port driver is added in the Windows 10 operating system, and the positioning data of the positioning device is obtained through the positioning system driver, and then the positioning system driver sends the data to the positioning serial port driver, and the positioning serial port driver uploads the positioning data to the upper-level positioning application. By adding a serial port driver in the Windows 10 operating system, the positioning data can be directly given to the upper-level positioning application through the serial port, without making major changes to the upper-level positioning application, so that the upper-level positioning application can adapt to the current positioning system driver to obtain positioning data through other data transmission methods other than function calls. The present application can obtain positioning data through other data transmission methods under the current positioning system driver framework without making changes to the existing positioning application.
[0062] In one embodiment, Figure 3 As shown, the positioning data transmission method based on Windows 10 also includes the steps of configuring and realizing the connection between the positioning serial port driver and the positioning system driver, such as Figure 3As shown, this step includes: the positioning serial port driver sends a drive switch opening request to the positioning system driver; the positioning system driver receives the drive switch opening request and turns on the positioning serial port driver; wherein, after the positioning serial port driver is turned on, the positioning serial port driver is connected to the positioning system driver.
[0063] Among them, the drive switch opening request is an electrical signal, which is actively sent by the positioning serial port driver to the positioning system driver, and is used to open the positioning serial port driver, so that the positioning serial port driver is connected with the positioning system driver and can receive positioning data. After receiving the drive switch opening request of the positioning serial port driver, the positioning system driver will perform the operation of opening the drive switch. After opening the positioning serial port driver, the positioning system driver will send a drive opening completion instruction to the positioning serial port driver. The drive opening completion instruction is the inherent communication logic between drivers, that is, after the A driver sends an X instruction to the B driver, the B driver must send a "complete" instruction (completion instruction) to the A driver.
[0064] In the process of opening the positioning serial port driver, the host computer needs to call the sub-function ioctl_gnss_send_drivercommand gnss_setnmealogging gnss_nmeastrem_start of DeviceIOControl to generate a request to open the driver switch.
[0065] In this embodiment, the positioning serial port driver sends a drive switch opening request to the positioning system driver, and then the positioning system driver opens the positioning serial port driver, thereby establishing a connection between the positioning serial port driver and the positioning system driver, so that the positioning serial port driver can receive the positioning data received by the positioning system driver.
[0066] In one embodiment, Figure 3 As shown, after the positioning serial port driver and the positioning system driver are connected, the positioning serial port driver can obtain the positioning data sent by the positioning system driver and send it to the positioning application. Specifically,
[0067] 1: The positioning system driver sends a reading request to the positioning device to read the positioning data;
[0068] 2. The positioning serial port driver sends a data monitoring instruction to the positioning system driver;
[0069] 3. The positioning device sends positioning data to the positioning system driver;
[0070] 4. The positioning system driver sends the positioning data to the positioning serial port driver;
[0071] 5. The positioning serial port driver sends the positioning data to the positioning application.
[0072] Among them, the function of the data monitoring instruction is to monitor and perceive the positioning data obtained by the positioning system driver in real time.
[0073] Specifically, after the positioning system driver sends a reading request to the positioning device, the positioning serial port driver sends a data monitoring instruction to the positioning system driver. The positioning system driver can obtain the positioning information sent by the positioning device through the data monitoring instruction and the reading request. After the positioning system driver sends the reading request to the positioning device, the process of obtaining the positioning information is continuously carried out: the positioning serial port driver sends a data monitoring instruction to the positioning system driver, and the positioning system driver obtains the positioning data (sent by the positioning device) according to the data monitoring instruction.
[0074] In the process of locating the serial port driver to monitor data, the host computer needs to call the sub-function ioctl_gnss_listen_nmea of DeviceIOControl to generate a data monitoring instruction.
[0075] Usually, before the positioning system driver sends an AT command to the positioning device to read the positioning data, it is also necessary for the positioning serial port driver to send a session start instruction to the positioning system driver. The session can be understood as a communication protocol or communication mechanism. After the session is started, the positioning system driver can communicate and interact with the positioning system driver normally when it is open. After the positioning system driver receives the session start instruction, it will establish a session with the positioning serial port driver. After the session is successfully established, the positioning system driver will send a session establishment instruction to the positioning serial port driver according to the inherent logic of the driver communication. It is a "complete" instruction, indicating that the operation has been completed.
[0076] In this embodiment, the positioning serial port driver sends a data monitoring instruction to the positioning system driver, so that the positioning system driver obtains the positioning data collected by the positioning device based on the data monitoring instruction and the reading request.
[0077] In one embodiment, before the positioning serial port driver sends the positioning data directly to the positioning application, the method further includes:
[0078] The positioning serial port driver stores the positioning data received from the positioning system driver in a buffer; when the positioning serial port driver receives a data acquisition request sent by the positioning application, it uploads the positioning data stored in the buffer to the positioning application.
[0079] The buffer is used to temporarily store the positioning data sent by the positioning serial port driver. The positioning data in the buffer can be sent to the positioning application by the positioning serial port driver in response to a data acquisition request.
[0080] Specifically, the positioning system driver will send the positioning data to the positioning serial port driver immediately after obtaining the positioning data, and the positioning serial port driver will then store the received positioning data in the buffer. When the positioning application needs to display the positioning data, it can actively send a data acquisition request to the positioning serial port driver, and the positioning serial port driver can respond to the data acquisition request and send the positioning data stored in the buffer to the positioning application.
[0081] In this embodiment, the positioning data obtained by the positioning serial port driver is cached in the buffer. When the positioning application needs it, the positioning application actively sends a data acquisition request to the positioning serial port driver. The positioning serial port driver responds to the data acquisition request and uploads the positioning data in the buffer to the positioning application, thereby enabling the positioning application to obtain the positioning data.
[0082] like Figure 3 As shown, the positioning data transmission method based on Windows 10 includes a step of terminating monitoring at the end operation stage, specifically including:
[0083] 1. The positioning serial port driver sends a termination monitoring command to the positioning system driver;
[0084] 2. The positioning system driver sends a stop reading instruction to the positioning device, so that the positioning device no longer sends positioning data to the positioning system driver.
[0085] Among them, the purpose of the terminate monitoring instruction is to terminate monitoring and sense positioning data. It is sent by the positioning serial port driver to the positioning system driver. After receiving the terminate monitoring instruction, the positioning system driver will immediately send a terminate reading instruction to the positioning device. The terminate reading request is also sent in the form of an AT command or instruction. After receiving the terminate reading request, the positioning device will stop sending positioning data to the positioning system driver. After that, the positioning system driver will send a terminate monitoring completion instruction to the positioning serial port driver.
[0086] In the process of terminating monitoring, the host computer needs to call the sub-function ioctl_gnss_stop_fixsession of DeviceIOControl to generate a termination monitoring instruction.
[0087] In this embodiment, the positioning system driver obtains the termination monitoring instruction, and when the termination monitoring instruction is received, the termination reading request is sent to the positioning device, so that when the positioning serial port driver is not needed to obtain positioning data, the positioning device stops sending positioning data to the positioning system driver.
[0088] In one embodiment, Figure 3 As shown, the positioning data transmission method based on Windows 10, at the end of the operation stage, also includes the step of turning off the drive switch, specifically including:
[0089] 1. The positioning serial port driver sends a request to turn off the driver switch to the positioning system driver;
[0090] 2. The positioning system driver receives the request to turn off the driver switch and turns off the positioning serial port driver; after the positioning serial port driver is turned off, the positioning serial port driver is disconnected from the positioning system driver.
[0091] Among them, the drive switch shutdown request means that when the positioning serial port driver needs to shut down itself, it will send a drive switch shutdown request to the positioning system driver. When the positioning system driver obtains the drive switch shutdown request, it will shut down the positioning serial port driver, and after shutting down the positioning serial port driver, it will send a driver shutdown completion instruction to the positioning serial port driver. After the positioning serial port driver is shut down, the positioning serial port driver will no longer be able to receive positioning data.
[0092] In the process of closing the positioning serial port driver, the host computer needs to call the sub-function ioctl_gnss_send_drivercommand gnss_setnmealogging gnss_nmeastrem_stop of DeviceIOControl to generate a request to close the driver switch.
[0093] In this embodiment, the positioning serial port driver sends a drive switch closing request to the positioning system driver, and the positioning system driver closes the positioning serial port driver, so that the positioning serial port driver can be in a closed state when not working, which can reduce the operating burden and power consumption of the computer.
[0094] In one embodiment, after the positioning serial port driver stores the positioning data received from the positioning system driver into the buffer, the method further includes:
[0095] The positioning serial port driver reports the positioning data received from the positioning system driver to the positioning application at preset intervals.
[0096] The preset period can be set manually, and the period length can be 1S or other values.
[0097] Specifically, the positioning application can obtain the positioning data by actively sending a data acquisition request as described above to obtain the positioning data in the buffer. Alternatively, the positioning serial port driver can upload the obtained positioning data to the positioning application at preset intervals.
[0098] In this embodiment, the positioning serial port driver reports the positioning data to the positioning application at preset intervals, so that the positioning application can continuously obtain the positioning data that can be displayed.
[0099] It can be seen that Figure 3As shown, the positioning data transmission method based on Windows 10 includes: a configuration operation phase, a positioning data reading phase and an end operation phase, wherein:
[0100] Step S302, configuration operation phase, includes:
[0101] The positioning serial port driver sends a request to turn on the driver switch to the positioning system driver;
[0102] The positioning system driver receives the request to turn on the driver switch, and turns on the positioning serial port driver. After turning on the positioning serial port driver, a driver turn-on completion instruction is sent to the positioning serial port driver.
[0103] The positioning serial port driver sends a session start instruction to the positioning system driver. The positioning system driver receives and responds to the session start instruction and establishes a session with the positioning system driver. After the session is successfully established, the positioning system driver sends a session established instruction to the positioning serial port driver.
[0104] Step S304, the positioning data reading phase, includes:
[0105] The positioning system driver sends a reading request for reading positioning data to the positioning device;
[0106] The positioning serial port driver sends a data monitoring instruction to the positioning system driver;
[0107] According to the data monitoring instructions and reading requests, the positioning system driver obtains the positioning data sent by the positioning device.
[0108] Step S306, ending the operation phase, includes:
[0109] The positioning serial port driver sends a termination monitoring instruction to the positioning system driver;
[0110] The positioning system driver sends a stop reading instruction to the positioning device, so that the positioning device no longer sends positioning data to the positioning system driver, and sends a stop monitoring completion instruction to the positioning serial port driver;
[0111] The positioning serial port driver sends a request to close the drive switch to the positioning system driver;
[0112] The positioning system driver receives the request to close the drive switch and closes the positioning serial port driver. After closing the positioning serial port driver, it sends a drive closing completion instruction to the positioning serial port driver.
[0113] In this embodiment, a positioning serial port driver is added to the Windows 10 operating system, and the positioning data of the positioning device is obtained through the positioning system driver. The positioning system driver then sends the data to the positioning serial port driver, and the positioning serial port driver uploads the positioning data to the upper-level positioning application. By adding a serial port driver to the Windows 10 operating system, the positioning data can be directly given to the upper-level positioning application through the serial port, without making major changes to the upper-level positioning application, so that the upper-level positioning application can adapt to the current positioning system driver to obtain positioning data through other data transmission methods other than function calls. As a result, this application can obtain positioning data through other data transmission methods under the current positioning system driver framework without making changes to the existing positioning application.
[0114] It should be understood that, although the steps in each flow chart involved in the above-described embodiment are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a portion of the steps in each flow chart involved in the above-described embodiment may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of the steps or stages in other steps.
[0115] In one embodiment, Figure 4 As shown, a positioning data transmission device based on Windows 10 is provided, including: a positioning system driver 402 and a positioning serial port driver 404, wherein:
[0116] The positioning system driver 402 is used to send a reading request for reading positioning data to the positioning device after the positioning serial port driver is connected to the positioning system driver, receive the positioning data sent by the positioning device in response to the reading request, and send the received positioning data to the positioning serial port driver;
[0117] The positioning serial port driver 404 is used to send the positioning data directly to the positioning application.
[0118] In one embodiment, the positioning data transmission device based on Windows 10 further includes: an opening request sending module and a driver opening module, wherein:
[0119] The opening request sending module is used for the positioning serial port driver to send an opening drive switch request to the positioning system driver;
[0120] The driver opening module is used for the positioning system driver to receive a request to open the driver switch and open the positioning serial port driver; wherein, after the positioning serial port driver is opened, the positioning serial port driver is connected to the positioning system driver.
[0121] In one embodiment, the positioning data receiving module includes: a data monitoring instruction sending module and a positioning data obtaining module, wherein:
[0122] The data monitoring command sending module is used for the positioning serial port driver to send data monitoring commands to the positioning system driver;
[0123] The positioning data acquisition module is used to drive the positioning system to acquire the positioning data sent by the positioning device according to the data monitoring instruction and reading request.
[0124] In one embodiment, the positioning data transmission device based on Windows 10 further includes: a positioning data storage module and a positioning data uploading module, wherein:
[0125] The positioning data storage module is used for the positioning serial port driver to store the positioning data received from the positioning system driver into a buffer;
[0126] The positioning data upload module is used to send the positioning data stored in the buffer directly to the positioning application when the positioning serial port driver receives a data acquisition request sent by the positioning application.
[0127] In one embodiment, the positioning data transmission device based on Windows 10 further includes: a termination monitoring instruction sending module and a termination reading instruction sending module, wherein:
[0128] The termination monitoring instruction sending module is used for the positioning serial port driver to send a termination monitoring instruction to the positioning system driver;
[0129] The module for sending the instruction to terminate reading is used for the positioning system driver to send the instruction to terminate reading to the positioning device, so that the positioning device no longer sends positioning data to the positioning system driver.
[0130] In one embodiment, the positioning data transmission device based on Windows 10 further includes: a shutdown request sending module and a drive shutdown module, wherein:
[0131] A closing request sending module is used for the positioning serial port driver to send a drive switch closing request to the positioning system driver;
[0132] The driver closing module is used for the positioning system driver to receive a request to close the driving switch and close the positioning serial port driver; wherein, after the positioning serial port driver is closed, the positioning serial port driver is disconnected from the positioning system driver.
[0133] In one embodiment, the positioning data transmission device based on Windows 10 further includes: a positioning data reporting module, which is used for the positioning serial port driver to report the positioning data received from the positioning system driver to the positioning application at preset intervals.
[0134] For the specific definition of the positioning data transmission device based on Windows 10, please refer to the definition of the positioning data transmission method based on Windows 10 above, which will not be repeated here. Each module in the above-mentioned positioning data transmission device based on Windows 10 can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0135] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 5 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a positioning data transmission method based on Windows 10 is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse.
[0136] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0137] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0138] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0139] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0140] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0141] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A positioning data transmission method based on Windows 10, characterized in that: In a host computer of Windows 10 operating system, a positioning serial port driver is added, and the method includes: After the positioning serial port driver is connected to the positioning system driver, the positioning system driver sends a reading request for reading positioning data to the positioning device; The positioning system driver receives the positioning data sent by the positioning device in response to the reading request; The positioning system driver sends the received positioning data to the positioning serial port driver; The positioning serial port driver sends the positioning data directly to the positioning application; The positioning system driving receiving the positioning data sent by the positioning device in response to the reading request includes: The positioning serial port driver sends a data monitoring instruction to the positioning system driver; According to the data monitoring instruction and the reading request, the positioning system drives to obtain the positioning data sent by the positioning device.
2. The method according to claim 1, characterized in that The method further comprises: The positioning serial port driver sends a drive switch opening request to the positioning system driver; The positioning system driver receives the drive switch opening request and turns on the positioning serial port driver; Wherein, after the positioning serial port driver is turned on, the positioning serial port driver is connected to the positioning system driver.
3. The method according to claim 1, characterized in that Before the positioning serial port driver sends the positioning data directly to the positioning application, the method further includes: The positioning serial port driver stores the positioning data received from the positioning system driver into a buffer; When the positioning serial port driver receives the data acquisition request sent by the positioning application, the positioning data stored in the buffer is directly sent to the positioning application.
4. The method according to claim 1, characterized in that: The method further comprises: The positioning serial port driver sends a termination monitoring instruction to the positioning system driver; The positioning system driver sends a termination reading instruction to the positioning device, so that the positioning device no longer sends positioning data to the positioning system driver.
5. The method according to claim 1, characterized in that The method further comprises: The positioning serial port driver sends a drive switch closing request to the positioning system driver; The positioning system driver receives the request to turn off the drive switch and turns off the positioning serial port driver; Wherein, after the positioning serial port driver is closed, the positioning serial port driver is disconnected from the positioning system driver.
6. The method according to claim 3, characterized in that After the positioning serial port driver stores the positioning data received from the positioning system driver in a buffer, the method further includes: The positioning serial port driver reports the positioning data received from the positioning system driver to the positioning application at preset intervals.
7. A positioning data transmission device based on Windows 10, characterized in that: The device comprises: A positioning system driver, used for sending a reading request for reading positioning data to a positioning device after a positioning serial port driver is connected to the positioning system driver, receiving positioning data sent by the positioning device in response to the reading request, and sending the received positioning data to the positioning serial port driver; The positioning serial port driver is used to send the positioning data directly to the positioning application; A data monitoring instruction sending module, used for the positioning serial port driver to send a data monitoring instruction to the positioning system driver; The positioning data acquisition module is used to drive the positioning system to acquire the positioning data sent by the positioning device according to the data monitoring instruction and the reading request.
8. The device according to claim 7, characterized in that The device further comprises: an opening request sending module and a driving opening module; The opening request sending module is used for the positioning serial port driver to send an opening drive switch request to the positioning system driver; The driver opening module is used for the positioning system driver to receive the drive switch opening request and open the positioning serial port driver; wherein, after the positioning serial port driver is opened, the positioning serial port driver is connected to the positioning system driver.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Method and system for realizing navigation of GPS mobile phone on PC
CN101726747A
