Positioning packet providing device and method
By using processor and virtual terminal technology in the positioning packet provision device, the positioning packet length is dynamically adjusted, and the information loss problem caused by mismatch in the positioning packet length in the prior art is solved, and the effect of the application obtaining complete positioning information is achieved.
Patent Information
- Application Number
- CN202311727728.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-14
- Publication Date
- 2025-06-17
AI Technical Summary
The prior art is difficult to adjust the length of the positioning packet, which causes the application to lose the packet when obtaining the positioning information and cannot obtain the complete positioning information.
A positioning packet providing device is designed, including a positioning element and a processor. The processor transmits positioning packets with different packet lengths through a virtual terminal, and meets the needs of each application in response to the positioning data received in different time periods.
It realizes dynamic adjustment of the positioning packet length according to application needs, ensuring that the application can obtain complete and accurate positioning information, and solves the problem of information loss caused by mismatch of packet lengths.
Smart Images

Figure CN120165809A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a positioning packet providing apparatus and method, and more particularly to a positioning packet providing apparatus and method capable of adjusting the packet length. Background Art
[0002] Currently, on electronic mobile devices (such as laptops, tablets, mobile phones), many applications need to use the positioning information of the electronic mobile device. The application can request a packet containing the positioning information from the driver of the positioning element, the operating system and / or firmware of the electronic mobile device. However, the requirement specifications for the positioning packet of each application may be different, and the frequency of requesting the positioning packet may also be different. This situation may cause the application to lose packets and fail to obtain complete positioning information.
[0003] In view of this, how to adjust the length of the positioning packet and provide it to the application is an urgent goal that the industry needs to strive for. Summary of the Invention
[0004] To solve the above problems, the present invention provides a positioning packet providing apparatus, including a positioning element and a processor. The processor is electrically connected to the positioning element and is configured to perform the following operations: continuously receive a plurality of first positioning data from the positioning element; in response to the first positioning data received in a first time period reaching a first packet length, transmit a first positioning packet having the first packet length to a first application through a first virtual end in at least one virtual end, where the first positioning packet includes the first positioning data received in the first time period; and generate a second positioning packet corresponding to a second packet length based on the first positioning data received in a second time period, where the second packet length corresponds to the first application connected to the first virtual end, and the second time period is different from the first time period.
[0005] In an embodiment of the present invention, the operation of transmitting the first positioning packet to the first application further includes: in response to the first positioning data received in the first time period reaching the first packet length and receiving a packet request from the first application, transmitting the first positioning packet to the first application through the first virtual end.
[0006] In an embodiment of the present invention, the operation of transmitting the first positioning packet to the first application further includes: screening out redundant data from the first positioning data based on a data setting; and generating the first positioning packet based on the first positioning data after screening.
[0007] In an embodiment of the present invention, the operation that the processor further uses to continuously obtain a plurality of second positioning data from a positioning signal source and transmit the first positioning packet to the first application further includes: in response to the first positioning data and the second positioning data received in the first time period reaching the first packet length, transmitting, through the first virtual end in the at least one virtual end, the first positioning packet with the first packet length to the first application, where the first positioning packet includes the first positioning data and the second positioning data received in the first time period.
[0008] In an embodiment of the present invention, the operation of generating the second positioning packet further includes: generating the second positioning packet based on the first positioning data received in a second time period only in response to the first positioning data received in a first time period reaching the first packet length, where the second time period is later than the first time period.
[0009] In an embodiment of the present invention, the operation of generating the second positioning packet further includes: in response to the first positioning data received in the second time period reaching the second packet length, transmitting, through the first virtual end, the second positioning packet with the second packet length to the first application, where the second positioning packet includes the first positioning data received in the second time period.
[0010] In an embodiment of the present invention, the processor further uses to perform the following operations: obtaining a corrected packet length, where the corrected packet length is determined based on the first application and is different from the first packet length; and determining the second packet length of the second positioning packet based on the corrected packet length.
[0011] In an embodiment of the present invention, the corrected packet length is obtained by the first application transmitting the corrected packet length through the first virtual end in response to the first application determining that the first packet length is an incorrect length.
[0012] In an embodiment of the present invention, the processor further transmits, through a second virtual end in the at least one virtual end, a third positioning packet with a third packet length to a second application, and the third packet length is different from the second packet length.
[0013] The present invention also provides a method for providing a positioning packet, which is applicable to a processor and includes the following steps: continuously receiving a plurality of first positioning data from a positioning element; in response to the first positioning data received in a first time period reaching a first packet length, transmitting a first positioning packet with the first packet length to a first application program through a first virtual end among at least one virtual end, wherein the first positioning packet includes the first positioning data received in the first time period; and generating a second positioning packet corresponding to a second packet length based on the first positioning data received in a second time period, wherein the second packet length corresponds to the first application program connected to the first virtual end, and the second time period is different from the first time period.
[0014] In an embodiment of the present invention, the step of transmitting the first positioning packet to the first application program further includes: in response to the first positioning data received in the first time period reaching the first packet length and receiving a packet request from the first application program, transmitting the first positioning packet to the first application program through the first virtual end.
[0015] In an embodiment of the present invention, the step of transmitting the first positioning packet to the first application program further includes: screening out redundant data from the first positioning data based on a data setting; and generating the first positioning packet based on the screened first positioning data.
[0016] In an embodiment of the present invention, the processor is further configured to continuously obtain a plurality of second positioning data from a positioning signal source, and the step of transmitting the first positioning packet to the first application program further includes: in response to the first positioning data and the second positioning data received in the first time period reaching the first packet length, transmitting the first positioning packet with the first packet length to the first application program through the first virtual end among the at least one virtual end, wherein the first positioning packet includes the first positioning data and the second positioning data received in the first time period.
[0017] In an embodiment of the present invention, the step of generating the second positioning packet further includes: generating the second positioning packet based on the first positioning data received in the second time period only in response to the first positioning data received in a first time period reaching the first packet length, wherein the second time period is later than the first time period.
[0018] In an embodiment of the present invention, the step of generating the second positioning packet further includes: in response to the first positioning data received in the second time period reaching the second packet length, transmitting, through the first virtual end, the second positioning packet with the second packet length to the first application program, where the second positioning packet includes the first positioning data received in the second time period.
[0019] In an embodiment of the present invention, the positioning packet providing method further includes: obtaining a corrected packet length, where the corrected packet length is determined based on the first application program and is different from the first packet length; and determining the second packet length of the second positioning packet based on the corrected packet length.
[0020] In an embodiment of the present invention, the corrected packet length is obtained by the first application program transmitting the corrected packet length through the first virtual end in response to the first application program determining that the first packet length is an incorrect length.
[0021] In an embodiment of the present invention, the positioning packet providing method further includes: transmitting, through a second virtual end among the at least one virtual end, a third positioning packet with a third packet length to a second application program, and the third packet length is different from the second packet length.
[0022] It should be understood that the foregoing general description and the following specific description are merely exemplary and explanatory, and are intended to provide further explanation of the claimed invention of the present invention, and are not intended to limit the present invention. Description of the Drawings
[0023] To make the above and other objects, features, advantages and embodiments of the present invention more obvious and understandable, the description of the accompanying drawings is as follows:
[0024] Figure 1 Schematic diagram of a positioning packet providing device in the first embodiment of the present invention;
[0025] Figure 2 Schematic diagram of the operation of a packet interface in some embodiments of the present invention;
[0026] Figure 3 Schematic diagram of a user interface in some embodiments of the present invention;
[0027] Figure 4 Schematic diagram of another user interface in some embodiments of the present invention;
[0028] Figure 5 Flowchart of a positioning packet providing method in the second embodiment of the present invention; and
[0029] Figures 6 to 9 This is a detailed flowchart of the method for providing positioning packets in some embodiments of the present invention.
[0030] The reference numerals are explained as follows:
[0031] 1: Positioning packet providing device
[0032] 12: Processor
[0033] 14: Positioning element
[0034] S1, S2: Signal sources
[0035] SI: Packet interface
[0036] P1 to PN: Virtual terminals
[0037] UI1, UI2: User interfaces
[0038] 200: Method for providing positioning packets
[0039] S201 to S205, S201A, S202A to S202F, S203A to S203F: Steps Detailed implementation manners
[0040] In order to make the description of the present invention more detailed and complete, reference may be made to the accompanying drawings and the following various embodiments. The same numbers in the drawings represent the same or similar elements.
[0041] Please refer to Figure 1 , which is a schematic diagram of the positioning packet providing device 1 in the first embodiment of the present invention. The positioning packet providing device 1 includes a processor 12 and a positioning element 14, wherein the processor 12 is electrically connected to the positioning element 14. The positioning packet providing device 1 is used to adjust the length of the positioning packet to provide a positioning packet with an appropriate length for the application program.
[0042] In some embodiments, the processor 12 may include a central processing unit (CPU), a graphics processing unit (GPU), a multi-processor, a distributed processing system, an application specific integrated circuit (ASIC), and / or a suitable computing unit.
[0043] The positioning element 14 is used to generate the positioning information of the positioning packet providing device 1. In some embodiments, the positioning element 14 may include a Global Positioning System (GPS) receiver.
[0044] In some embodiments, when certain global positioning system modules are used as the positioning element 14, due to specification limitations and other reasons, positioning information can only be output to one application or operating system through a single output terminal at a time. However, when multiple applications need to receive positioning information simultaneously, the processor 12 of the positioning packet providing device 1 can provide a packet interface. Please refer to Figure 2 , which is a schematic diagram of the operation of the packet interface SI in some embodiments of the present invention.
[0045] As Figure 2 shown, the packet interface SI receives positioning data from signal sources S1 and S2, forms the positioning data into packets, and then transmits the positioning packets to one or more applications / operating systems through virtual terminals P1 to PN (for example: COM port).
[0046] It should be noted that Figure 2 the number of signal sources and virtual terminals shown is only for illustration. In fact, the positioning packet providing device 1 includes one or more signal sources and virtual terminals, and the number of signal sources and virtual terminals can be adjusted according to requirements.
[0047] First, the processor 12 of the positioning packet providing device 1 continuously receives a plurality of first positioning data from the positioning element 14.
[0048] Next, in response to the first positioning data received in a first time period reaching a first packet length, the processor 12 of the positioning packet providing device 1 transmits a first positioning packet with the first packet length to a first application through a first virtual terminal in at least one virtual terminal, where the first positioning packet includes the first positioning data received in the first time period.
[0049] Finally, the processor 12 of the positioning packet providing device 1 generates a second positioning packet corresponding to a second packet length based on the first positioning data received in a second time period, where the second packet length corresponds to the first application connected to the first virtual terminal, and the second time period is different from the first time period.
[0050] Specifically, when the positioning packet providing device 1 operates, the positioning element 14 can continuously receive positioning signals (for example: GPS signals) and transmit the content of the positioning signals (i.e., the first positioning data) to the processor 12, and the processor 12 will continuously judge the data length of the received first positioning data.
[0051] Furthermore, when the amount of positioning data received by the processor 12 reaches a specific length (e.g., 64 bytes) (i.e., the first packet length), the processor 12 forms the received positioning data into a positioning packet (i.e., the first positioning packet) for transmission to the first application. In this way, the positioning packet will have the first packet length. In contrast, if the amount of positioning data received by the processor 12 has not reached the first packet length, the processor 12 may not form the first positioning packet and continue to determine the data length of the received first positioning data.
[0052] However, when the packet length required by the first application does not match the first packet length, the positioning packet providing device 1 can instead transmit a positioning packet with a second packet length. Similarly, when the amount of positioning data received by the processor 12 reaches the second packet length (e.g., 32 bytes), the processor 12 forms the received positioning data into a positioning packet (i.e., the second positioning packet) for transmission to the first application. In this way, the positioning packet will have the second packet length to meet the requirements of the first application.
[0053] It should be noted that since the positioning packet may contain other functional data such as a header in addition to the positioning data, the aforementioned first packet length and second packet length can be adjusted according to the actual situation. For example: if the packet length is set to 64 bytes and 2 bytes of the header need to be included, when the positioning data received by the processor 12 reaches 62 bytes, the positioning data can be formed into a positioning packet.
[0054] In some embodiments, the positioning packet (e.g., the first positioning packet or the second positioning packet) can be composed of a standard format proposed by the National Marine Electronics Association (NMEA).
[0055] In some embodiments, the operation of the processor 12 transmitting the first positioning packet to the first application further includes: in response to the first packet length corresponding to the first positioning data received in the first time period reaching the first packet length and receiving a packet request from the first application, the processor 12 transmits the first positioning packet to the first application through the first virtual port.
[0056] In this way, after the amount of positioning data received by the processor 12 reaches a specific length (the first or second packet length) and the processor 12 forms the positioning data into a positioning packet, if the application requests a positioning packet from the processor 12 at this time, the processor 12 can transmit the formed positioning packet to the application through the virtual port corresponding to the application.
[0057] In some embodiments, the operation of the processor 12 to transmit the first positioning packet to the first application further includes: the processor 12 screens out redundant data from the first positioning data based on a data setting; and the processor 12 generates the first positioning packet based on the screened first positioning data.
[0058] For example, please refer to Figure 3 , the positioning packet providing device 1 can provide a user interface UI1. In the user interface UI1, a plurality of satellite positioning signal sources provided by the positioning element 14 and the positioning signal content provided by each signal source are listed. The user can select the data content required to be included in the positioning packet through the user interface UI1. Further, the processor 12 can screen out the unselected data (i.e., redundant data) from the first positioning data based on the items checked by the user (i.e., the data setting), and only retain the positioning data selected by the user. Finally, the positioning packet is made from the retained positioning data.
[0059] It should be noted that when the processor 12 determines whether the positioning signal reaches the packet length, it can make the determination based on the screened positioning data. In this way, the processor 12 can generate a packet with a specific length based on the screened positioning data.
[0060] In some embodiments, the operation of the processor 12 to generate the second positioning packet further includes: in response to the first packet length reaching the first packet length, the processor 12 generates the second positioning packet based on the first positioning data received in the second time period, where the second time period is later than the first time period.
[0061] In this embodiment, the processor 12 can sequentially generate a plurality of positioning packets, and each packet contains the positioning data received in different time intervals.
[0062] In some embodiments, the processor 12 further obtains a corrected packet length, where the corrected packet length is determined based on the first application, and the corrected packet length is different from the first packet length; and determines the second packet length of the second positioning packet based on the corrected packet length.
[0063] For example, please refer to Figure 4 , the positioning packet providing device 1 can provide a user interface UI2. The user can adjust the length of the positioning packet generated by the processor 12 through the user interface UI2. In other words, when the user changes the option in the user interface UI2, for example: changing the originally checked 32 bytes to checked 64 bytes, the processor 12 can determine the length of the next generated positioning packet based on the received corrected packet length (i.e., 64 bytes).
[0064] In this way, the processor 12 can adjust the length of the subsequent generated packets according to the obtained corrected packet length, so as to provide the packet length required by the application program.
[0065] In some embodiments, the corrected packet length is obtained by the first application program transmitting the corrected packet length through the first virtual end in response to the first application program determining that the first packet length is an incorrect length.
[0066] For example, the positioning packet providing device 1 can also provide an application programming interface (API) to receive the corrected packet length transmitted by the application program. On the other hand, when the application program determines that it cannot correctly receive the positioning packet (for example, information is missing due to an incorrect packet length), it can transmit the required corrected packet length to the positioning packet providing device 1 through the virtual end.
[0067] In some embodiments, the operation of the processor 12 to generate the second positioning packet further includes: in response to the first positioning data received in the second time period reaching the second packet length, the processor 12 transmits the second positioning packet with the second packet length to the first application program through the first virtual end, where the second positioning packet includes the first positioning data received in the second time period.
[0068] In this way, after the processor 12 receives sufficient positioning data and completes the production of the second positioning packet, it can perform the same operation as the previous processing of the first positioning packet and transmit the second packet to the application program.
[0069] In some embodiments, the processor 12 is further configured to continuously obtain a plurality of second positioning data from a positioning signal source, and the operation of transmitting the first positioning packet to the first application program further includes: in response to the first positioning data and the second positioning data received in the first time period reaching the first packet length, the processor 12 transmits the first positioning packet with the first packet length to the first application program through the first virtual end in the at least one virtual end, where the first positioning packet includes the first positioning data and the second positioning data received in the first time period.
[0070] For example, as Figure 2 shown, the signal sources S1 and S2 can be the positioning element 14, the operating system, and / or other communication interfaces such as Wi-Fi and Bluetooth. In this way, the positioning packet providing device 1 can generate a positioning packet including positioning data from more than two positioning signal sources.
[0071] In some embodiments, the processor 12 further transmits a third positioning packet with a third packet length to a second application program through a second virtual end among the at least one virtual end, and the third packet length is different from the second packet length.
[0072] For example, Figure 2 the illustrated virtual ends P1 to PN can be respectively used to transmit positioning packets with different packet lengths, and the processor 12 can allocate virtual ends according to the requirements of the application program for the packet length, and transmit the positioning packets to the application program through the corresponding virtual ends.
[0073] In this way, the positioning packet providing device 1 can provide positioning packets with corresponding packet lengths according to the requirements of different application programs.
[0074] In some embodiments, Figure 2 the illustrated virtual ends P1 to PN can be N buffers, and are respectively used to store positioning packets with different lengths generated by the processor 12. In this way, when the application program requests a positioning packet, it can access the corresponding virtual end according to its requirements to obtain a positioning packet with a specific length.
[0075] In addition, since the space of the buffer is limited, when the processor 12 generates a new positioning packet, the new positioning packet will overwrite the positioning packet originally stored in the virtual end. It can be seen that the longer the corresponding packet length of the virtual end, the longer the time to update the packet (that is, the lower the update frequency); relatively, the shorter the corresponding packet length of the virtual end, the shorter the time to update the packet (that is, the higher the update frequency). Therefore, an application program with a higher positioning packet update rate can access a virtual end with a shorter packet length to obtain positioning data with a higher update rate; relatively, an application program with a lower positioning packet update rate can access a virtual end with a longer packet length to avoid missing positioning data.
[0076] In summary, the positioning packet providing device 1 proposed by the present invention can provide the positioning packets required by the application program according to the requirements, and the packet length can be updated through the user interface or the application program interface. In addition, the positioning packet providing device 1 can transmit positioning packets with different packet lengths to different application programs through multiple virtual ends. In this way, the positioning packet providing device 1 can break through the hardware limitations, provide positioning data for multiple application programs at the same time, and provide packets with different lengths according to the respective requirements of the application programs.
[0077] Please refer to Figure 5, which is a flowchart of the positioning packet providing method 200 in the second embodiment of the present invention. The positioning packet providing method 200 includes steps S201 to S203. The positioning packet providing method 200 is used to adjust the length of the positioning packet to provide a positioning packet of an appropriate length for the application. The positioning packet providing method 200 can be executed by a processor (for example: Figure 1 the illustrated processor 12). In some embodiments, the processor can execute all the operations and functions of the processor 12 in the first embodiment, and the relevant details will not be elaborated in this embodiment.
[0078] First, in step S201, the processor continuously receives a plurality of first positioning data from a positioning element (for example: Figure 1 the illustrated positioning element 14).
[0079] Next, in step S202, in response to the first positioning data received in a first time period reaching a first packet length, the processor transmits a first positioning packet having the first packet length to a first application through a first virtual end among at least one virtual end, where the first positioning packet includes the first positioning data received in the first time period. In contrast, if the first positioning data received in the first time period has not reached a first packet length, the processor may not execute step S202 and continue to execute step S201.
[0080] Finally, in step S203, the processor generates a second positioning packet corresponding to a second packet length based on the first positioning data received in a second time period, where the second packet length corresponds to the first application connected to the first virtual end, and the second time period is different from the first time period.
[0081] Please refer to Figure 6 , in some embodiments, step S202 further includes steps S202A to S202D.
[0082] First, in step S202A, the processor filters out redundant data from the first positioning data based on a data setting; and the processor generates the first positioning packet based on the filtered first positioning data.
[0083] Next, in step S202B, the processor determines whether the first positioning data received in the first time period (i.e., the filtered first positioning data) reaches the first packet length.
[0084] At this time, in response to the processor determining that the first positioning data received in the first time period has not reached the first packet length, the processor returns to step S201 and continuously receives the first positioning data from the positioning element.
[0085] Alternatively, in response to the processor determining that the first positioning data received in the first time period has reached the first packet length, the processor executes step S202C to determine whether a packet request is received from the first application.
[0086] Next, in response to receiving a packet request from the first application, the processor executes step S202D to transmit the first positioning packet to the first application through the first virtual end. Alternatively, if the processor does not receive the packet request from the first application, step S202D may not be executed.
[0087] Please refer to Figure 7 , in some embodiments, the positioning packet providing method 200 further includes step S201A, and step S202 further includes steps S202E and S202F.
[0088] In this embodiment, the processor simultaneously executes steps S201 and S201A, continuously receives a plurality of first positioning data from a positioning element, and continuously obtains a plurality of second positioning data from a positioning signal source.
[0089] Next, the processor executes step S202E to determine whether the first positioning data and the second positioning data received in the first time period have reached the first packet length.
[0090] At this time, if the processor determines that the first positioning data and the second positioning data received in the first time period have not reached the first packet length, steps S201 and S201A are continued to be executed.
[0091] Alternatively, if the processor determines that the first positioning data and the second positioning data received in the first time period have reached the first packet length, step S202F is executed to transmit the first positioning packet with the first packet length to the first application through the first virtual end in the at least one virtual end, where the first positioning packet includes the first positioning data and the second positioning data received in the first time period.
[0092] Please refer to Figure 8 , in some embodiments, step S203 further includes steps S203A to S203D.
[0093] First, in step S203A, the processor determines whether the first positioning data received in the first time period has reached the first packet length.
[0094] At this time, in response to the first positioning data received in the first time period having reached the first packet length, the processor executes step S203B to generate the second positioning packet based on the first positioning data received in the second time period, where the second time period is later than the first time period. In contrast, if the first positioning data received in the first time period has not reached the first packet length, the processor does not generate the second positioning packet.
[0095] Next, in step S203C, the processor determines whether the first positioning data received in the second time period has reached the second packet length.
[0096] At this time, in response to the first positioning data received in the second time period having reached the second packet length, the processor executes step S203D to transmit the second positioning packet with the second packet length to the first application through the first virtual end, where the second positioning packet contains the first positioning data received in the second time period.
[0097] In contrast, in response to the first positioning data received in the second time period not having reached the second packet length, the processor returns to step S203B.
[0098] Please refer to Figure 9 , in some embodiments, the positioning packet providing method 200 further includes steps S204 and S205.
[0099] In step S204, the processor obtains a corrected packet length, where the corrected packet length is determined based on the first application, and the corrected packet length is different from the first packet length.
[0100] Next, in step S205, the processor determines the second packet length of the second positioning packet based on the corrected packet length.
[0101] In summary, the positioning packet providing method 200 proposed by the present invention can provide the positioning packets required by the application according to the requirements, where the packet length can be updated through the user interface or the application interface. In addition, the positioning packet providing method 200 can transmit positioning packets with different packet lengths to different applications through multiple virtual ends. In this way, the positioning packet providing method 200 can break through the hardware limitations, provide positioning data for multiple applications at the same time, and provide packets of different lengths according to the respective requirements of the applications.
[0102] Although several embodiments are described in detail above as examples, the positioning packet providing apparatus and method proposed by the present invention can also be implemented by other systems, hardware, software, storage media, or combinations thereof. Therefore, the protection scope of the present invention should not be limited to the specific implementation manners described in the embodiments of the present invention, but should be determined by the scope defined in the appended claims.
[0103] It will be obvious to those having ordinary knowledge in the technical field to which the present invention pertains that various modifications and changes can be made to the structure of the present invention without departing from the scope or spirit of the present invention. In view of the foregoing, the protection scope of the present invention also covers the modifications and changes made within the appended claims.
Claims
1. A positioning packet providing device, characterized in that, Comprising: A positioning element; And A processor, electrically connected to the positioning element, for performing the following operations: Continuously receiving a plurality of first positioning data from the positioning element; In response to the plurality of first positioning data received in a first time period reaching a first packet length, transmitting, through a first virtual port in at least one virtual port, a first positioning packet having the first packet length to a first application program, wherein the first positioning packet contains the plurality of first positioning data received in the first time period; And Generating a second positioning packet corresponding to a second packet length based on the plurality of first positioning data received in a second time period, wherein the second packet length corresponds to the first application program connected to the first virtual port, and the second time period is different from the first time period.
2. The positioning packet providing device according to claim 1, characterized in that, Wherein the operation of transmitting the first positioning packet to the first application program further comprises: In response to the plurality of first positioning data received in the first time period reaching the first packet length and receiving a packet request from the first application program, transmitting the first positioning packet to the first application program through the first virtual port.
3. The positioning packet providing device according to claim 1, characterized in that, Wherein the operation of transmitting the first positioning packet to the first application program further comprises: Based on a data setting, screening out a redundant data from the plurality of first positioning data; and Generating the first positioning packet based on the plurality of first positioning data after screening.
4. The positioning packet providing device according to claim 1, characterized in that, Wherein the processor is further configured to continuously obtain a plurality of second positioning data from a positioning signal source, and the operation of transmitting the first positioning packet to the first application program further comprises: In response to the plurality of first positioning data and the plurality of second positioning data received in the first time period reaching the first packet length, transmitting, through the first virtual port in the at least one virtual port, the first positioning packet having the first packet length to the first application program, wherein the first positioning packet contains the plurality of first positioning data and the plurality of second positioning data received in the first time period.
5. The positioning packet providing device according to claim 1, characterized in that, Wherein the operation of generating the second positioning packet further comprises: In response to the plurality of first positioning data received in a first time period reaching the first packet length, generating the second positioning packet based on the plurality of first positioning data received in the second time period, wherein the second time period is later than the first time period.
6. The positioning packet providing device according to claim 1, characterized in that, Wherein the operation of generating the second positioning packet further comprises: In response to the plurality of first positioning data received in the second time period reaching the second packet length, transmitting, through the first virtual port, the second positioning packet having the second packet length to the first application program, wherein the second positioning packet contains the plurality of first positioning data received in the second time period.
7. The positioning packet providing device according to claim 1, characterized in that, Wherein the processor is further configured to perform the following operations: Obtaining a corrected packet length, wherein the corrected packet length is determined based on the first application program, and the corrected packet length is different from the first packet length; And Determining the second packet length of the second positioning packet based on the corrected packet length.
8. The positioning packet providing device according to claim 7, characterized in that, The corrected packet length is obtained by the first application transmitting the corrected packet length through the first virtual end in response to the first application determining that the first packet length is an incorrect length.
9. The positioning packet providing device according to claim 1, characterized in that, The processor further transmits a third positioning packet with a third packet length to a second application through a second virtual end among the at least one virtual end, and the third packet length is different from the second packet length.
10. A positioning packet providing method, characterized in that, Applicable to a processor, including the following steps: Continuously receive a plurality of first positioning data from a positioning element; In response to the plurality of first positioning data received in a first time period reaching a first packet length, transmit a first positioning packet with the first packet length to a first application through a first virtual end among the at least one virtual end, where the first positioning packet includes the plurality of first positioning data received in the first time period; And Generate a second positioning packet corresponding to a second packet length based on the plurality of first positioning data received in a second time period, where the second packet length corresponds to the first application connected to the first virtual end, and the second time period is different from the first time period.
11. The positioning packet providing method according to claim 10, wherein The step of transmitting the first positioning packet to the first application further includes: In response to the plurality of first positioning data received in the first time period reaching the first packet length and receiving a packet request from the first application, transmit the first positioning packet to the first application through the first virtual end.
12. The positioning packet providing method according to claim 10, wherein The step of transmitting the first positioning packet to the first application further includes: Based on a data setting, filter out a redundant data from the plurality of first positioning data; and Generate the first positioning packet based on the plurality of first positioning data after filtering.
13. The positioning packet providing method according to claim 10, wherein The processor is further configured to continuously obtain a plurality of second positioning data from a positioning signal source, and the step of transmitting the first positioning packet to the first application further includes: In response to the plurality of first positioning data and the plurality of second positioning data received in the first time period reaching the first packet length, transmit the first positioning packet with the first packet length to the first application through the first virtual end among the at least one virtual end, where the first positioning packet includes the plurality of first positioning data and the plurality of second positioning data received in the first time period.
14. The positioning packet providing method according to claim 10, wherein The step of generating the second positioning packet further includes: In response to the plurality of first positioning data received in a first time period reaching the first packet length, generate the second positioning packet based on the plurality of first positioning data received in the second time period, where the second time period is later than the first time period.
15. The positioning packet providing method according to claim 10, wherein The step of generating the second positioning packet further includes: In response to the plurality of first positioning data received in the second time period reaching the second packet length, transmit the second positioning packet with the second packet length to the first application through the first virtual end, where the second positioning packet includes the plurality of first positioning data received in the second time period.
16. The positioning packet providing method according to claim 10, wherein Further includes: Obtain a modified packet length, where the modified packet length is determined based on the first application, and the modified packet length is different from the first packet length; and Determine the second packet length of the second positioning packet based on the modified packet length.
17. The positioning packet providing method according to claim 16, wherein Where the modified packet length is obtained in response to the first application determining that the first packet length is an incorrect length, and the first application transmits the modified packet length through the first virtual end.
18. The positioning packet providing method according to claim 10, wherein Further include: Transmit a third positioning packet with a third packet length to a second application through a second virtual end among the at least one virtual end, and the third packet length is different from the second packet length.