CN113392044A - Positioning data transmission method and device based on Windows10 - Google Patents
Positioning data transmission method and device based on Windows10 Download PDFInfo
- Publication number
- CN113392044A CN113392044A CN202110490365.7A CN202110490365A CN113392044A CN 113392044 A CN113392044 A CN 113392044A CN 202110490365 A CN202110490365 A CN 202110490365A CN 113392044 A CN113392044 A CN 113392044A
- Authority
- CN
- China
- Prior art keywords
- positioning
- driver
- serial port
- data
- positioning system
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 60
- 230000005540 biological transmission Effects 0.000 title claims abstract description 43
- 230000004044 response Effects 0.000 claims abstract description 11
- 238000012544 monitoring process Methods 0.000 claims description 35
- 238000004590 computer program Methods 0.000 claims description 13
- 238000004891 communication Methods 0.000 description 14
- 230000008569 process Effects 0.000 description 11
- 230000006870 function Effects 0.000 description 9
- LIWAQLJGPBVORC-UHFFFAOYSA-N ethylmethylamine Chemical group CCNC LIWAQLJGPBVORC-UHFFFAOYSA-N 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 5
- 230000003044 adaptive effect Effects 0.000 description 3
- 238000013500 data storage Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/10—Program control for peripheral devices
- G06F13/102—Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The application relates to a positioning data transmission method and device based on Windows10, computer equipment and a storage medium. The method is characterized in that a positioning serial port driver is additionally arranged in a host computer of a Windows10 operating system, and comprises the following steps: after the positioning serial port driver is connected with the positioning system driver, the positioning system driver sends a reading request for reading positioning data to the positioning equipment; the positioning system driver receives positioning data sent by the positioning equipment in response to the reading request; the positioning system driver sends the received positioning data to the positioning serial port driver; and the positioning serial port driver directly sends the positioning data to a positioning application program. By adopting the method, the positioning data can be acquired by other data transmission modes under the driving framework of the current positioning system without changing the existing positioning application program.
Description
Technical Field
The present application relates to the field of data transmission technologies, and in particular, to a positioning data transmission method and apparatus based on Windows10, a computer device, and a storage medium.
Background
With the development of data transmission technology, positioning data transmission technology has emerged in order to enable an upper positioning application in a host computer to obtain positioning data in a positioning device.
In the conventional technology, with the upgrading and upgrading of the Windows operating system, when the Windows10 operating system is reached, the upper layer positioning application program calls and obtains the positioning data of the positioning system driver (UMDF2.0 framework GNSS driver) through the standard API function, i.e., the DeviceIOControl function.
However, in the conventional method, for the host computer with the operating system of Windows10, to enable the upper layer positioning application to obtain the positioning data through other data transmission methods besides function calling, a great modification is required to the existing positioning application to operate under the positioning system driver (GNSS driver framework).
Disclosure of Invention
Therefore, there is a need to provide a positioning data transmission method, apparatus, computer device and storage medium based on Windows10, which can acquire positioning data through other data transmission methods under the current positioning system driver framework without modifying the existing positioning application program.
A positioning data transmission method based on Windows10 is characterized in that a positioning serial port driver is additionally arranged in a host computer of a Windows10 operating system, and the method comprises the following steps:
after the positioning serial port driver is connected with the positioning system driver, the positioning system driver sends a reading request for reading positioning data to the positioning equipment;
the positioning system driver receives positioning data sent by the positioning equipment in response to the reading request;
the positioning system driver sends the received positioning data to the positioning serial port driver;
and the positioning serial port driver directly sends the positioning data to a positioning application program.
In one embodiment, the positioning serial port driver sends a request for opening a driving switch to the positioning system driver;
the positioning system driver receives the request for opening the driving switch and opens the positioning serial port driver;
and after the positioning serial port drive is opened, the positioning serial port drive is in drive connection with the positioning system.
In one embodiment, the positioning system driver receives positioning data sent by the positioning device in response to the reading request, and includes:
the positioning serial port driver sends a data monitoring instruction to the positioning system driver;
and according to the data monitoring instruction and the reading request, the positioning system drives to acquire the positioning data sent by the positioning equipment.
In one embodiment, before the positioning serial driver directly sends the positioning data to the positioning application program, the method further includes:
the positioning serial port driver stores the positioning data received from the positioning system driver into a buffer area;
and when the positioning serial port driver receives the access request sent by the positioning application program, directly sending the positioning data stored in the buffer area to the positioning application program.
In one embodiment, the method further comprises:
the positioning serial port driver sends a monitoring termination instruction to the positioning system driver;
and the positioning system driver sends a reading termination instruction to the positioning equipment, so that the positioning equipment does not send positioning data to the positioning system driver any more.
In one embodiment, the method further comprises:
the positioning serial port driver sends a request for closing a driving switch to the positioning system driver;
the positioning system driver receives the request for closing the driving switch and closes the positioning serial port driver;
and after the positioning serial port drive is closed, the positioning serial port drive is disconnected with the positioning system drive.
In one embodiment, after the positioning serial driver stores the positioning data received from the positioning system driver into a buffer, the method further includes:
and the positioning serial port driver reports the positioning data received from the positioning system driver to the positioning application program at preset intervals.
A positioning data transmission apparatus based on Windows10, the apparatus comprising:
the positioning system driver is used for sending a reading request for reading positioning data to the positioning equipment after the positioning serial port driver is connected with the positioning system driver; receiving positioning data sent by the positioning equipment in response to the reading request; sending the received positioning data to the positioning serial port driver;
and the positioning serial port driver is used for directly sending the positioning data to the positioning application program.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
after the positioning serial port driver is connected with the positioning system driver, the positioning system driver sends a reading request for reading positioning data to the positioning equipment;
the positioning system driver receives positioning data sent by the positioning equipment in response to the reading request;
the positioning system driver sends the received positioning data to the positioning serial port driver;
and the positioning serial port driver directly sends the positioning data to a positioning application program.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
after the positioning serial port driver is connected with the positioning system driver, the positioning system driver sends a reading request for reading positioning data to the positioning equipment;
the positioning system driver receives positioning data sent by the positioning equipment in response to the reading request;
the positioning system driver sends the received positioning data to the positioning serial port driver;
and the positioning serial port driver directly sends the positioning data to a positioning application program.
According to the positioning data transmission method and device based on the Windows10, the computer equipment and the storage medium, the positioning serial port driver is additionally arranged in the Windows10 operating system, the positioning data of the positioning equipment are obtained through the positioning system driver, 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 positioning application program. The positioning data can be directly sent to the upper positioning application program in a serial port mode by additionally arranging the serial port driver in the Windows10 operating system, and the upper positioning application program does not need to be greatly changed, so that the upper positioning application program is adaptive to the current positioning system driver, and the positioning data is acquired in other data transmission modes except for function calling. According to the method and the device, the existing positioning application program does not need to be changed, and the positioning data can be acquired through other data transmission modes under the driving framework of the current positioning system.
Drawings
FIG. 1 is a diagram of an embodiment of an application environment of a positioning data transmission method based on Windows 10;
FIG. 2 is a flowchart illustrating a positioning data transmission method based on Windows10 according to an embodiment;
FIG. 3 is a flow chart illustrating a positioning data transmission method based on Windows10 according to another embodiment;
FIG. 4 is a block diagram of an embodiment of a positioning data transmission device based on Windows 10;
FIG. 5 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The positioning data transmission method based on Windows10 provided by the application can be applied to the application environment shown in FIG. 1. The terminal 10 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
The terminal 10 of the present application takes a host computer as an example, the host computer side includes a positioning serial 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. 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, the positioning serial driver 104 obtains the positioning data in a manner of calling a function, and after obtaining the positioning data, the positioning serial driver 104 uploads the positioning data to the positioning application 102 in a form of a serial port.
In an embodiment, as shown in fig. 2, a positioning data transmission method based on Windows10 is provided, which is exemplified by applying the method to the terminal in fig. 1, and a positioning serial driver is added to a host computer of a Windows10 operating system, and the method includes the following steps:
step S202, after the positioning serial port driver is connected with the positioning system driver, the positioning system driver sends a reading request for reading positioning data to the positioning device.
The positioning serial port driver is connected with the application program and the positioning system driver, acquires positioning data from the positioning system driver and sends the positioning data to the application program. In this embodiment, the location serial port drive is NMEA drive, and the location data is NMEA data. The positioning system driver is connected with the positioning serial port driver and the positioning device, acquires positioning data from the positioning device, and sends the positioning data to the positioning serial port driver. The positioning device is a general communication module with positioning and positioning information collecting functions, and the positioning device usually does not have a display interface. The positioning data is NMEA data, the reading request is a request signal for acquiring the NMEA data, and the positioning equipment processes the collected positioning information when acquiring the reading request, so that the positioning data is conveniently sent to the host computer side in the follow-up process.
Specifically, the positioning serial port driver and the positioning system driver are both program software drivers, so that the positioning serial port driver and the positioning system driver are in communication connection. After the positioning serial port driver and the positioning system driver are in communication connection, the positioning system driver sends a reading request to the positioning device to request to read the positioning data of the positioning device. Where the read request is typically sent in the form of an AT command or instruction.
In step S204, the positioning system driver receives the positioning data sent by the positioning device in response to the reading request.
When receiving the reading request, the positioning device will respond to the reading request and send the self-collected positioning data to the positioning system driver based on the reading request. The positioning equipment acquires the positioning data of the equipment through the baseband chip, and the principle of the positioning equipment is similar to that of a GPS, a GIS and the like. When the host computer recognizes the positioning device, the positioning system driver can realize communication between the host computer and the positioning device through a data interface mode.
In step S206, the positioning system driver transmits the received positioning data to a given bit socket driver.
The positioning system driver sends the given bit serial port driver in time after receiving the positioning data sent by the positioning equipment. In the process that the positioning system driver sends the positioning data to the positioning serial port driver, the host computer is required to call a subfunction ioctl _ gnss _ list _ nmea of the DeviceIOControl to generate a data monitoring instruction, so that the positioning system driver can obtain the positioning data received by the positioning system after sending a reading request to the positioning device.
And step S208, the positioning serial port driver directly sends the positioning data to the positioning application program.
Wherein the positioning application, i.e. the upper positioning application, is capable of presenting data to a user or host computer. After the positioning serial port driver receives the positioning data, the positioning data is directly sent to the positioning application program in a serial port mode, and therefore the positioning application program can obtain the positioning data.
In the positioning data transmission method based on Windows10, a positioning serial port driver is additionally arranged in a Windows10 operating system, positioning data of positioning equipment is acquired through the positioning system driver, the positioning system driver sends the data to the positioning serial port driver, and the positioning serial port driver uploads the positioning data to an upper positioning application program. The positioning data can be directly sent to the upper positioning application program in a serial port mode by additionally arranging the serial port driver in the Windows10 operating system, and the upper positioning application program does not need to be greatly changed, so that the upper positioning application program is adaptive to the current positioning system driver, and the positioning data is acquired in other data transmission modes except for function calling. According to the method and the device, the existing positioning application program does not need to be changed, and the positioning data can be acquired through other data transmission modes under the driving framework of the current positioning system.
In one embodiment, as shown in fig. 3, the positioning data transmission method based on Windows10 further includes a step of configuring to implement connection between the positioning serial driver and the positioning system driver, as shown in fig. 3, the step includes: the positioning serial port driver sends a request for opening a driving switch to the positioning system driver; the positioning system driver receives a request for opening a driving switch and opens a positioning serial port driver; and after the positioning serial port drive is opened, the positioning serial port drive is connected with the positioning system drive.
The request for opening the driving switch is an electric signal, is actively sent to the positioning system driver by the positioning serial port driver, and is used for opening 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 a request for opening a drive switch of a positioning serial port drive, a positioning system drive executes the operation of opening the drive switch, and after the positioning serial port drive is opened, the positioning system drive sends a drive opening completion instruction to the positioning serial port drive, wherein the drive opening completion instruction is the inherent communication logic between the drives, namely after an A drive sends an X instruction to a B drive, the B drive must send a complete instruction to the A drive.
In the process of opening the positioning serial port driver, the host computer is required to call a subfunction ioctl _ gnss _ send _ drivercommand _ setmemalogging gnss _ nmeastrem _ start of the DeviceIOControl to generate a request for opening the driver switch.
In this embodiment, send to the positioning system drive through location serial ports drive and open the drive switch request, open the location serial ports drive by the positioning system drive again to location serial ports drive and positioning system drive establish the connection, make the location serial ports drive can receive the location data that the positioning system drive received.
In one embodiment, as shown in fig. 3, after the positioning serial driver is connected to the positioning system driver, the positioning serial driver can acquire the positioning data sent by the positioning system driver and send the positioning data to the positioning application, specifically,
1: a positioning system driver sends a reading request for reading positioning data to positioning equipment;
2. the positioning serial port driver sends a data monitoring instruction to the positioning system driver;
3. the positioning equipment transmits positioning data to a positioning system driver;
4. the positioning system driver transmits the positioning data to a given bit interface driver;
5. and the positioning serial port driver sends the positioning data to the positioning application program.
The data monitoring instruction is used for monitoring and sensing positioning data obtained by the positioning system drive in real time.
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 acquire the positioning information sent by the positioning equipment through the data listening 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 positioning data (sent by the positioning device) according to the data monitoring instruction.
In the process of monitoring data by positioning the serial port driver, the host computer is required to call a sub-function ioctl _ gnss _ list _ nmea of the DeviceIOControl to generate a data monitoring instruction.
Generally, before the positioning system driver issues an AT command to the positioning device to read the positioning data, it is also necessary to: the positioning serial port driver sends a session opening instruction to the positioning system driver, a session can be understood as a communication protocol or a communication mechanism, and after the session is opened, the positioning system driver can normally realize communication interaction with the positioning system driver under the condition that the positioning system driver is opened. After the positioning system driver receives the session opening instruction, a session is established between the positioning system driver and the positioning serial port driver, and after the session is successfully established, the positioning system driver sends a session established instruction to the positioning serial port driver according to the inherent logic of drive communication, wherein the session established instruction is a complete instruction and indicates that the operation is completed.
In this embodiment, the data monitoring instruction is sent to the positioning system driver through the positioning serial port 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.
In one embodiment, before the positioning serial port driver directly sends the positioning data to the positioning application program, the method further includes:
the positioning serial port driver stores the positioning data received from the positioning system driver into a buffer area; and when the positioning serial port driver receives a data fetching request sent by the positioning application program, uploading the positioning data stored in the buffer area to the positioning application program.
The buffer area is used for temporarily storing positioning data sent by the positioning serial port driver, and the positioning data in the buffer area can be sent to the positioning application program by the positioning serial port driver responding to the access request.
Specifically, the positioning system driver immediately sends the positioning data to the positioning serial port driver every time the positioning data is obtained, and then the positioning serial port data stores the received positioning data in the buffer area. When the positioning application program needs to display the positioning data, the positioning serial port driver can actively send a data fetching request to the positioning serial port driver, and the positioning serial port driver can respond to the data fetching request and send the positioning data stored in the buffer area to the positioning application program.
In this embodiment, the buffer caches the positioning data obtained by the positioning serial driver, and when the positioning application program is needed, the positioning application program actively sends an access request to the positioning serial driver, and the positioning serial driver mutually responds to the access request and uploads the positioning data in the buffer to the positioning application program, so that the positioning application program obtains the positioning data.
As shown in fig. 3, the positioning data transmission method based on Windows10 includes a step of terminating listening in an end operation phase, and specifically includes:
1. the positioning serial port driver sends a monitoring termination instruction to the positioning system driver;
2. and the positioning system driver sends a reading termination instruction to the positioning equipment, so that the positioning equipment does not send positioning data to the positioning system driver any more.
The function of the termination monitoring instruction is to terminate monitoring and sense positioning data. And the positioning serial port driver sends the instruction to the positioning system driver, the positioning system driver immediately sends a reading termination instruction to the positioning equipment after obtaining the monitoring termination instruction, and the reading termination request is also sent in the form of an AT command or instruction. After receiving the reading termination request, the positioning device stops sending positioning data to the positioning system driver. And then, the positioning system driver sends a monitoring termination completion instruction to the positioning serial port driver.
In the process of terminating the snooping, the host computer is required to call the subfunction ioctl _ gnss _ stop _ fixsession of the DeviceIOControl to generate a terminate snooping instruction.
In this embodiment, the termination monitoring instruction is obtained by the positioning system driver, and when the termination monitoring instruction is received, a termination reading request is sent to the positioning device, so that when the positioning serial port driver is not required to obtain positioning data, the positioning device stops sending positioning data to the positioning system driver.
In one embodiment, as shown in fig. 3, the positioning data transmission method based on Windows10 further includes a step of closing the driving switch in the end operation phase, specifically including:
1. the positioning serial port driver sends a request for closing a driving switch to the positioning system driver;
2. the positioning system driver receives a request for closing the driving switch and closes the positioning serial port driver; and after the positioning serial port drive is closed, the positioning serial port drive is disconnected with the positioning system drive.
The request for closing the drive switch means that the positioning serial port drive sends a request for closing the drive switch to the positioning system drive when the positioning serial port drive needs to close the positioning serial port drive. When the positioning system driver obtains the request for closing the driving switch, the positioning serial port driver is closed, and a driving closing completion instruction is sent to the positioning serial port driver after the positioning serial port driver is closed. After the positioning serial port driver is closed, the positioning serial port driver can no longer receive positioning data.
In the process of closing the positioning serial port drive, the host computer is required to call a sub-function ioctl _ gnss _ send _ drivercommand gnss _ setmemalogging gnss _ nmeastrem _ stop of the DeviceIOControl to generate a request for closing the drive switch.
In this embodiment, the request for turning off the driving switch is sent to the positioning system driver through the positioning serial port driver, and the positioning system driver turns off the positioning serial port driver, so that the positioning serial port driver can be in a turned-off state when not working, and the operation burden and the power consumption of the computer can be reduced.
In one embodiment, after the location serial driver stores the location data received from the location system driver in the buffer, the method further includes:
and the positioning serial port driver reports the positioning data received from the positioning system driver to the positioning application program at preset intervals.
The preset period can be set manually, and the period length can be 1S or other values.
Specifically, the positioning application program obtains the positioning data, and may actively issue the request for obtaining the positioning data of the buffer area as described above. Or the positioning serial port driver can upload the acquired positioning data to the positioning application program at preset intervals.
In this embodiment, the positioning data is reported to the positioning application program through the preset interval period of the positioning serial port driver, so that the positioning application program can continuously obtain displayable positioning data.
It can be seen that, as shown in fig. 3, the positioning data transmission method based on Windows10 includes: a configuration operation phase, a positioning data reading phase and an ending operation phase, wherein:
step S302, configuring an operation phase, including:
the positioning serial port driver sends a request for opening a driving switch to the positioning system driver;
the positioning system driver receives a request for opening a driving switch, opens the positioning serial port driver, and sends a driving opening completion instruction to the positioning serial port driver after opening the positioning serial port driver;
the positioning serial port driver sends a session opening instruction to the positioning system driver, the positioning system driver receives and responds to the session opening instruction, a session is established with the positioning system driver, and after the session is successfully established, the positioning system driver sends the session established instruction to the positioning serial port driver.
Step S304, a positioning data reading stage, including:
a positioning system driver sends a reading request for reading positioning data to positioning equipment;
the positioning serial port driver sends a data monitoring instruction to the positioning system driver;
and according to the data monitoring instruction and the reading request, the positioning system drives to acquire positioning data sent by the positioning equipment.
Step S306, ending the operation phase, including:
the positioning serial port driver sends a monitoring termination instruction to the positioning system driver;
the positioning system driver sends a reading termination instruction to the positioning equipment, so that the positioning equipment does not send positioning data to the positioning system driver any more, and sends a monitoring termination completion instruction to the positioning serial port driver;
the positioning serial port driver sends a request for closing a driving switch to the positioning system driver;
and the positioning system driver receives the request for closing the drive switch, closes the positioning serial port driver, and sends a drive closing completion instruction to the positioning serial port driver after closing the positioning serial port driver.
In this embodiment, a positioning serial driver is added in the Windows10 operating system, the positioning data of the positioning device is obtained through the positioning system driver, the positioning system driver sends the data to the positioning serial driver, and the positioning serial driver uploads the positioning data to the upper positioning application program. The positioning data can be directly sent to the upper positioning application program in a serial port mode by additionally arranging the serial port driver in the Windows10 operating system, and the upper positioning application program does not need to be greatly changed, so that the upper positioning application program is adaptive to the current positioning system driver, and the positioning data is acquired in other data transmission modes except for function calling. Therefore, the positioning data can be acquired through other data transmission modes under the driving framework of the current positioning system without changing the existing positioning application program.
It should be understood that, although the steps in the flowcharts related to the above embodiments are shown in sequence as indicated by the arrows, the steps are not necessarily executed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in each flowchart related to the above embodiments may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a part of the steps or stages in other steps.
In one embodiment, as shown in fig. 4, there is provided a positioning data transmission device based on Windows10, including: a positioning system driver 402 and a positioning serial driver 404, wherein:
the positioning system driver 402 is used for sending a reading request for reading positioning data to the positioning device after the positioning serial port driver is connected with the positioning system driver, receiving the positioning data sent by the positioning device in response to the reading request, and sending the received positioning data to the given serial port driver;
and the positioning serial port driver 404 is configured to directly send the positioning data to the positioning application program.
In one embodiment, the positioning data transmission device based on Windows10 further includes: an open request sending module and a drive opening module, wherein:
the opening request sending module is used for sending an opening drive switch request to the positioning system drive by the positioning serial port drive;
the drive opening module is used for receiving a drive opening switch request by the positioning system drive and opening the positioning serial port drive; and after the positioning serial port drive is opened, the positioning serial port drive is connected with the positioning system drive.
In one embodiment, a positioning data receiving module comprises: data monitoring instruction sending module, locating data acquisition module, wherein:
the data monitoring instruction sending module is used for sending a data monitoring instruction to the positioning system driver by the positioning serial port driver;
and the positioning data acquisition module is used for driving the positioning system to acquire the positioning data sent by the positioning equipment according to the data monitoring instruction and the reading request.
In one embodiment, the positioning data transmission device based on Windows10 further includes: location data storage module, location data upload module, wherein:
the positioning data storage module is used for storing the positioning data received from the positioning system driver to a buffer area by the positioning serial port driver;
and the positioning data uploading module is used for directly sending the positioning data stored in the buffer area to the positioning application program when the positioning serial port driver receives the data fetching request sent by the positioning application program.
In one embodiment, the positioning data transmission device based on Windows10 further includes: a monitoring termination instruction sending module and a reading termination instruction sending module, wherein:
the monitoring termination instruction sending module is used for sending a monitoring termination instruction to the positioning system driver by the positioning serial port driver;
and the reading termination instruction sending module is used for sending a reading termination instruction to the positioning equipment by the positioning system driver so that the positioning equipment does not send positioning data to the positioning system driver any more.
In one embodiment, the positioning data transmission device based on Windows10 further includes: a closing request sending module and a drive closing module, wherein:
the shutdown request sending module is used for sending a shutdown drive switch request to the positioning system driver by the positioning serial port driver;
the drive closing module is used for receiving a request for closing the drive switch by the positioning system drive and closing the positioning serial port drive; and after the positioning serial port drive is closed, the positioning serial port drive is disconnected with the positioning system drive.
In one embodiment, the positioning data transmission device based on Windows10 further includes: and the positioning data reporting module is used for reporting the positioning data received by the positioning serial port driver from the positioning system driver to the positioning application program at preset intervals.
For specific limitations of the positioning data transmission device based on Windows10, reference may be made to the above limitations of the positioning data transmission method based on Windows10, which are not described herein again. The modules in the above-mentioned window ws 10-based positioning data transmission device can be implemented wholly or partially by software, hardware and their combination. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 5. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile 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 an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a positioning data transmission method based on Windows 10. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is further provided, which includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the above method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. A positioning data transmission method based on Windows10 is characterized in that a positioning serial port driver is additionally arranged in a host computer of a Windows10 operating system, and the method comprises the following steps:
after the positioning serial port driver is connected with the positioning system driver, the positioning system driver sends a reading request for reading positioning data to the positioning equipment;
the positioning system driver receives positioning data sent by the positioning equipment in response to the reading request;
the positioning system driver sends the received positioning data to the positioning serial port driver;
and the positioning serial port driver directly sends the positioning data to a positioning application program.
2. The method of claim 1, further comprising:
the positioning serial port driver sends a request for opening a driving switch to the positioning system driver;
the positioning system driver receives the request for opening the driving switch and opens the positioning serial port driver;
and after the positioning serial port drive is opened, the positioning serial port drive is in drive connection with the positioning system.
3. The method of claim 1, wherein the positioning system driver receives positioning data sent by the positioning device in response to the reading request, comprising:
the positioning serial port driver sends a data monitoring instruction to the positioning system driver;
and according to the data monitoring instruction and the reading request, the positioning system drives to acquire the positioning data sent by the positioning equipment.
4. The method of claim 1, before the positioning serial driver directly sends the positioning data to the positioning application program, further comprising:
the positioning serial port driver stores the positioning data received from the positioning system driver into a buffer area;
and when the positioning serial port driver receives the access request sent by the positioning application program, directly sending the positioning data stored in the buffer area to the positioning application program.
5. The method of claim 1, further comprising:
the positioning serial port driver sends a monitoring termination instruction to the positioning system driver;
and the positioning system driver sends a reading termination instruction to the positioning equipment, so that the positioning equipment does not send positioning data to the positioning system driver any more.
6. The method of claim 1, further comprising:
the positioning serial port driver sends a request for closing a driving switch to the positioning system driver;
the positioning system driver receives the request for closing the driving switch and closes the positioning serial port driver;
and after the positioning serial port drive is closed, the positioning serial port drive is disconnected with the positioning system drive.
7. The method of claim 4, wherein after the positioning serial driver stores the positioning data received from the positioning system driver in a buffer, the method further comprises:
and the positioning serial port driver reports the positioning data received from the positioning system driver to the positioning application program at preset intervals.
8. A positioning data transmission device based on Windows10, the device comprising:
the positioning serial port driver is used for receiving the positioning data sent by the positioning equipment in response to the reading request and sending the received positioning data to the positioning serial port driver;
and the positioning serial port driver is used for directly sending the positioning data to the positioning application program.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110490365.7A CN113392044B (en) | 2021-05-06 | 2021-05-06 | Positioning data transmission method and device based on Windows10 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110490365.7A CN113392044B (en) | 2021-05-06 | 2021-05-06 | Positioning data transmission method and device based on Windows10 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113392044A true CN113392044A (en) | 2021-09-14 |
CN113392044B CN113392044B (en) | 2024-08-30 |
Family
ID=77617965
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110490365.7A Active CN113392044B (en) | 2021-05-06 | 2021-05-06 | Positioning data transmission method and device based on Windows10 |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113392044B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040221298A1 (en) * | 2003-05-02 | 2004-11-04 | Microsoft Corporation | Network device drivers using a communication transport |
CN1690911A (en) * | 1999-06-18 | 2005-11-02 | 凤凰技术有限公司 | System and method for securely utilizing basic input and output system (BIOS) services |
CN101726747A (en) * | 2009-12-15 | 2010-06-09 | 惠州Tcl移动通信有限公司 | Method and system for realizing navigation of GPS mobile phone on PC |
CN104219795A (en) * | 2013-06-04 | 2014-12-17 | 中兴通讯股份有限公司 | Wireless access terminal driving method and device and terminal |
CN104236579A (en) * | 2014-10-09 | 2014-12-24 | 武汉大学 | High-precision satellite navigation implementing method based on Android kernel layer |
CN108055319A (en) * | 2017-12-11 | 2018-05-18 | 江苏卓尔美物联科技股份有限公司 | A kind of system and method for remote control Internet of things access equipment |
CN108667869A (en) * | 2017-03-30 | 2018-10-16 | 比亚迪股份有限公司 | Information of vehicles interactive system |
CN111294985A (en) * | 2019-10-16 | 2020-06-16 | 西安科技大学 | Portable miner lamp communication system based on 4G, communication method and construction method |
CN112630600A (en) * | 2021-03-10 | 2021-04-09 | 中通维易科技服务有限公司 | Online monitoring system and method for communication cable detection |
-
2021
- 2021-05-06 CN CN202110490365.7A patent/CN113392044B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1690911A (en) * | 1999-06-18 | 2005-11-02 | 凤凰技术有限公司 | System and method for securely utilizing basic input and output system (BIOS) services |
US20040221298A1 (en) * | 2003-05-02 | 2004-11-04 | Microsoft Corporation | Network device drivers using a communication transport |
CN101726747A (en) * | 2009-12-15 | 2010-06-09 | 惠州Tcl移动通信有限公司 | Method and system for realizing navigation of GPS mobile phone on PC |
CN104219795A (en) * | 2013-06-04 | 2014-12-17 | 中兴通讯股份有限公司 | Wireless access terminal driving method and device and terminal |
CN104236579A (en) * | 2014-10-09 | 2014-12-24 | 武汉大学 | High-precision satellite navigation implementing method based on Android kernel layer |
CN108667869A (en) * | 2017-03-30 | 2018-10-16 | 比亚迪股份有限公司 | Information of vehicles interactive system |
CN108055319A (en) * | 2017-12-11 | 2018-05-18 | 江苏卓尔美物联科技股份有限公司 | A kind of system and method for remote control Internet of things access equipment |
CN111294985A (en) * | 2019-10-16 | 2020-06-16 | 西安科技大学 | Portable miner lamp communication system based on 4G, communication method and construction method |
CN112630600A (en) * | 2021-03-10 | 2021-04-09 | 中通维易科技服务有限公司 | Online monitoring system and method for communication cable detection |
Non-Patent Citations (1)
Title |
---|
SAIRA BANO: ""Experimental analysis of 802.11p boards on real vehicles"", 《POLITECNICO DI TORINO》, 31 July 2020 (2020-07-31), pages 1 - 148 * |
Also Published As
Publication number | Publication date |
---|---|
CN113392044B (en) | 2024-08-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3873004B1 (en) | Method for establishing classic bluetooth connection between dual-mode bluetooth devices, and dual-mode bluetooth device | |
US8396992B2 (en) | System and method for virtualizing the peripherals in a terminal device to enable remote management via removable portable media with processing capability | |
US20130326278A1 (en) | Server and method of manipulation in relation to server serial ports | |
KR101785653B1 (en) | Dual os system using a smart sim module and method for controlling thereof | |
CN104461726A (en) | Displaying method of operation systems, displaying device of operation systems and terminal | |
CN106649098B (en) | The method and apparatus of released version software debugging are realized on the terminal device | |
CN108563462B (en) | Data processing method, data processing device, computer equipment and computer storage medium | |
CN113407393B (en) | Chip verification method, terminal device, verification platform and storage medium | |
CN107509051A (en) | Long-range control method, device, terminal and computer-readable recording medium | |
CN106980436A (en) | Record screen method and record screen terminal | |
CN108566301B (en) | Switch offline configuration method, device, system and computer equipment | |
CN110430431B (en) | Video decoding method, chip, device, computer equipment and storage medium | |
CN109523774B (en) | Device control method and electronic device | |
KR20150117968A (en) | Apparatas and method for changing a function according to input direction in an electronic device | |
CN104680089A (en) | Electronic device and system switching method | |
CN111478378A (en) | Protection circuit, charging control device and method, and electronic device | |
CN113392044B (en) | Positioning data transmission method and device based on Windows10 | |
CN103167627A (en) | System and method based on wireless fidelity (WIFI) to achieve sharing mobile phone files | |
CN104424198A (en) | Method and device for acquiring page display speed | |
CN112769663B (en) | Communication method, communication apparatus, computer device, and storage medium | |
CN115729607A (en) | Method, device, equipment and medium for setting interface command format synchronization | |
CN113840313B (en) | Network mode control method and device of mobile terminal and computer equipment | |
CN113193979B (en) | Method, device and computer equipment for realizing virtual peripheral sharing of Internet of things module | |
CN110728159A (en) | NDEF data reading and uploading method, terminal, tag chip and readable medium | |
WO2010086731A1 (en) | System and method for virtualizing the peripherals in a terminal device to enable remote management via removable portable media with processing capability |
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 |