Ios virtual positioning method and system based on bluetooth relay and related device

By using Bluetooth relay, virtual positioning of iOS devices is achieved through a relay authentication server and a Bluetooth MFi hardware module, which solves the problem of high security risks in existing technologies and enables secure, low-cost location modification and smooth changes.

CN122248350APending Publication Date: 2026-06-19SHENZHEN MAIFENG TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHENZHEN MAIFENG TECH CO LTD
Filing Date
2026-03-04
Publication Date
2026-06-19

AI Technical Summary

Technical Problem

Existing software-based iOS virtual location solutions have high security risks.

Method used

By using a Bluetooth relay-based method, an idle Bluetooth MFi hardware module is selected through a relay authentication server to establish a local Bluetooth connection, perform iAP2 authentication, and generate virtual location data, thereby enabling the modification of the system location of iOS devices.

Benefits of technology

It improves the security of virtual location on iOS devices, reduces the cost of hardware resources, and achieves smooth changes through synchronized location, avoiding instantaneous location jumps.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122248350A_ABST
    Figure CN122248350A_ABST
Patent Text Reader

Abstract

This invention provides a method, system, and related devices for iOS virtual location based on Bluetooth relay. The method includes: sending a hardware allocation request to a relay authentication server via a client; selecting an idle Bluetooth MFi module from multiple Bluetooth MFi hardware modules in response to the hardware allocation request, and returning the Bluetooth information of the idle Bluetooth MFi module to the client; guiding the iOS device to establish a local Bluetooth connection with the client based on the Bluetooth information; relaying authentication data between the client and the idle Bluetooth MFi module through the relay authentication server to complete iAP2 authentication between the iOS device and the idle Bluetooth MFi hardware module; after the authentication process is completed, generating virtual location data via the client and sending the virtual location data to the iOS device via the local Bluetooth connection to achieve modification of the iOS device's system location through synchronous location. This invention utilizes location synchronization to modify iOS location, improving system security and offering low-cost hardware resource sharing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of positioning technology, and in particular to an iOS virtual positioning method, system and related devices based on Bluetooth relay. Background Technology

[0002] With the popularization of smart mobile terminals and the rapid development of the mobile Internet, location-based services have been deeply integrated into people's daily work and life, such as map navigation, social networks, local life services, and game applications in certain specific scenarios. Under the specific needs of the development, testing, and protection of personal privacy of these applications, it is necessary to modify or simulate the geographical location information of mobile terminals, that is, virtual positioning.

[0003] Current solutions for virtual location on mobile devices are mainly based on software modifications, which require obtaining root access to the mobile device's operating system (such as jailbreaking iOS or rooting Android). Software-based virtual location solutions have high security risks.

[0004] Therefore, existing technologies still need to be improved and developed. Summary of the Invention

[0005] This invention provides an iOS virtual positioning method, system, and related devices based on Bluetooth relay. The main objective of this invention is to solve the technical problems mentioned in the background section of the prior art.

[0006] The first aspect of this invention provides an iOS virtual location method based on Bluetooth relay, comprising: The client sends a hardware allocation request to the relay authentication server. In response to the hardware allocation request, the relay authentication server selects an idle Bluetooth MFi hardware module from the multiple Bluetooth MFi hardware modules it manages, and returns the Bluetooth information of the idle Bluetooth MFi hardware module to the client. Based on the Bluetooth information, guide the iOS device to establish a local Bluetooth connection with the client; The authentication data between the client and the idle Bluetooth MFi hardware module is relayed by the relay authentication server to complete the iAP2 authentication between the iOS device and the idle Bluetooth MFi hardware module; After the iAP2 authentication process is completed, virtual location data is generated by the client and sent to the iOS device via the local Bluetooth connection to modify the system location of the iOS device through synchronous location.

[0007] In an optional embodiment of the first aspect of the invention, the relay authentication server further includes, after responding to the hardware allocation request: The relay authentication server generates a session identifier and a dynamic session key for this session, and sends the session identifier and the dynamic session key, along with the Bluetooth information, to the client. Subsequent data transmissions between the client and the relay authentication server are encrypted and decrypted based on the dynamic session key.

[0008] In an optional embodiment of the first aspect of the present invention, the relaying of authentication data between the client and the idle Bluetooth MFi hardware module via the relay authentication server includes: The client receives the first authentication data sent by the iOS device via the local Bluetooth connection; The client sends the first authentication data to the relay authentication server; The relay authentication server forwards the first authentication data to the idle Bluetooth MFi hardware module for authentication processing, and receives the second authentication data generated by the idle Bluetooth MFi hardware module. The client receives the second authentication data returned by the relay authentication server and sends the second authentication data to the iOS device via the local Bluetooth connection.

[0009] In an optional embodiment of the first aspect of the present invention, both the first authentication data and the second authentication data are authentication interaction data packets of the iAP2 protocol.

[0010] In an optional embodiment of the first aspect of the present invention, the virtual positioning data is a message conforming to the NMEA 0183 standard, the message including GPGGA format data and GPRMC format data.

[0011] In an optional embodiment of the first aspect of the present invention, the iOS virtual location method based on Bluetooth relay further includes: When the target virtual location changes, a series of intermediate positioning data from the current location to the target virtual location is generated through a location smooth transition algorithm and sent to the iOS device in sequence to achieve a smooth change in location.

[0012] In an optional embodiment of the first aspect of the present invention, the relay authentication server manages multiple hardware resource pools composed of the Bluetooth MFi hardware modules, and selects and allocates idle Bluetooth MFi hardware modules from the hardware resource pools according to a round-robin or least-connection scheduling algorithm.

[0013] A second aspect of the present invention provides an iOS virtual positioning system based on Bluetooth relay, the iOS virtual positioning system based on Bluetooth relay includes a client, a relay authentication server and multiple Bluetooth MFi hardware modules connected to the relay authentication server; The client is used to send a hardware allocation request to the relay authentication server; The relay authentication server is used to respond to the hardware allocation request, select an idle Bluetooth MFi hardware module from the multiple Bluetooth MFi hardware modules it manages, and return the Bluetooth information of the idle Bluetooth MFi hardware module to the client. The Bluetooth information is used to guide the iOS device to establish a local Bluetooth connection with the client. The relay authentication server is also used to relay authentication data between the client and the idle Bluetooth MFi hardware module, and to complete iAP2 authentication between the iOS device and the idle Bluetooth MFi hardware module; The client is also used to generate virtual location data after the iAP2 authentication process is completed, and send the virtual location data to the iOS device via the local Bluetooth connection, so as to modify the system location of the iOS device by means of synchronous location.

[0014] A third aspect of the present invention provides an iOS virtual location device based on Bluetooth relay, the iOS virtual location device based on Bluetooth relay includes: a memory and at least one processor, the memory storing instructions, and the memory and the at least one processor being interconnected via a line; The at least one processor invokes the instructions in the memory to cause the Bluetooth relay-based iOS virtual positioning device to perform the Bluetooth relay-based virtual positioning method as described in any one of the first aspects of the present invention.

[0015] A fourth aspect of the present invention provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the Bluetooth relay-based virtual positioning method as described in any one of the first aspects of the present invention.

[0016] Beneficial Effects: This invention provides a method, system, and related devices for iOS virtual positioning based on Bluetooth relay. The method includes: sending a hardware allocation request to a relay authentication server via a client; selecting an idle Bluetooth MFi module from multiple Bluetooth MFi hardware modules in response to the hardware allocation request, and returning the Bluetooth information of the idle Bluetooth MFi module to the client; guiding the iOS device to establish a local Bluetooth connection with the client based on the Bluetooth information; relaying the authentication data between the client and the idle Bluetooth MFi module through the relay authentication server to complete iAP2 authentication between the iOS device and the idle Bluetooth MFi hardware module; after the authentication process is completed, generating virtual positioning data via the client and sending the virtual positioning data to the iOS device via the local Bluetooth connection to achieve modification of the iOS device's system location through synchronous positioning. This invention utilizes location synchronization to modify iOS location, improving system security and offering low-cost hardware resource sharing. Attached Figure Description

[0017] Figure 1 This is a schematic diagram of an embodiment of a virtual positioning method based on Bluetooth relay according to the present invention; Figure 2 This is a schematic diagram of an embodiment of the timing interaction process of a virtual positioning method based on Bluetooth relay according to the present invention; Figure 3 This is a schematic diagram of an embodiment of an iOS virtual positioning system based on Bluetooth relay according to the present invention; Figure 4 This is a schematic diagram of an embodiment of an iOS virtual positioning device based on Bluetooth relay according to the present invention. Detailed Implementation

[0018] The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" or "having" and any variations thereof are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0019] The first aspect of this invention provides an iOS virtual location method based on Bluetooth relay, aiming to provide iOS devices with a secure, covert, and low-cost virtual location solution by cloudifying physical Bluetooth hardware resources. See [link to relevant documentation]. Figure 1The iOS virtual location method based on Bluetooth relay includes: S100: The client sends a hardware allocation request to the relay authentication server. In this invention, the client can be installed and run as an application on a personal computer or smart device (such as an Android phone) with Bluetooth functionality. Its main functions include providing a user interface for inputting target latitude and longitude, managing local Bluetooth communication with the target mobile terminal (such as an iOS device), and conducting secure network communication with the relay authentication server.

[0020] The relay authentication server serves as a backend service system deployed in the cloud. Its core functions include: managing a hardware resource pool consisting of multiple Bluetooth MFi hardware modules, processing client requests and managing sessions, and securely forwarding authentication and location data as a data relay. The Bluetooth MFi hardware modules can be connected to the relay authentication server via USB or other wired methods. Each module integrates Bluetooth radio frequency functionality and a coprocessor or chip capable of processing specific authentication protocols (such as Apple's iAP2 protocol). The Bluetooth MFi hardware module is the physical anchor point for establishing a trusted connection with the target mobile terminal.

[0021] In an exemplary implementation scenario of step S100, the specific process may be that when a user needs to modify the location on the target mobile terminal (e.g., an iPhone), the user first launches a client application on their personal computer, and the client initiates a hardware allocation request to the relay authentication server through security protocols such as HTTPS.

[0022] S200, In response to the hardware allocation request, the relay authentication server selects an idle Bluetooth MFi hardware module from the multiple Bluetooth MFi hardware modules it manages, and returns the Bluetooth information of the idle Bluetooth MFi hardware module to the client.

[0023] In this invention, the relay authentication server maintains a status table of a hardware resource pool, recording the current status of all connected Bluetooth MFi hardware modules, such as idle, occupied, and faulty (i.e., the relay authentication server manages multiple hardware resource pools composed of the Bluetooth MFi hardware modules). Upon receiving a request from a client, the relay authentication server selects one of the idle Bluetooth MFi hardware modules for allocation according to a preset scheduling algorithm, such as round-robin or least-connection algorithm (i.e., selects the idle Bluetooth MFi hardware module from the hardware resource pool for allocation according to the round-robin or least-connection scheduling algorithm). This ensures load balancing and high system availability.

[0024] Next, the relay authentication server updates the status of the selected Bluetooth hardware module to occupied and returns key Bluetooth information of the idle MFi module, such as the Bluetooth device name and MAC address, to the client.

[0025] Furthermore, while allocating hardware, to ensure the security of subsequent communication, the relay authentication server creates a unique session identifier for this request and generates a temporary dynamic session key, such as a 256-bit random number, used only for this session. The relay authentication server sends this session identifier and dynamic session key, along with the allocated hardware information, to the client. The client stores this information locally for encryption of all subsequent communication with the server. Afterward, all data packets transmitted between the client and the server, especially sensitive authentication data, will be encrypted and decrypted using the dynamic session key via symmetric encryption algorithms such as AES-GCM, ensuring the confidentiality and integrity of data transmission (i.e., after responding to the hardware allocation request, the relay authentication server also generates a session identifier and dynamic session key for this session and sends the session identifier and dynamic session key, along with the Bluetooth information, to the client; subsequent data transmission between the client and the relay authentication server is encrypted and decrypted based on the dynamic session key).

[0026] S300. Based on the Bluetooth information, guide the iOS device to establish a local Bluetooth connection with the client. In this invention, after receiving the Bluetooth information returned by the server, the client guides the user to search for and perform standard Bluetooth pairing with the device corresponding to the Bluetooth name on the target mobile terminal (i.e., the iOS device). After successful pairing, the iOS device will initiate the accessory authentication process.

[0027] S400: The authentication data between the client and the idle Bluetooth MFi hardware module is relayed through the relay authentication server to complete the iAP2 authentication between the iOS device and the idle Bluetooth MFi hardware module. In this invention, the authentication process between the client and the idle Bluetooth MFi hardware module follows the iOS iAP2 (iPod Accessory Protocol 2) protocol specification. The specific relay process between the client, the relay authentication server, and the idle Bluetooth MFi hardware module can be as follows: S401, the client receives the first authentication data sent by the iOS device via the local Bluetooth connection. Specifically, during the transmission of uplink data in this invention, the iOS device sends an iAP2 protocol authentication data packet (i.e., the first authentication data is an iAP2 protocol authentication interaction data packet) to the client via the local Bluetooth connection.

[0028] S402. The client sends the first authentication data to the relay authentication server. Specifically, in this step of the present invention, after the client's Bluetooth module receives the authentication data packet, it does not parse it, but instead uses it as the raw payload, encrypts it using the dynamic session key obtained in the aforementioned step S200, attaches a session identifier, and sends it to the relay authentication server through the network.

[0029] S403. The relay authentication server forwards the first authentication data to the idle Bluetooth MFi hardware module for authentication processing and receives the second authentication data generated by the idle Bluetooth MFi hardware module. In this step of the invention, the relay authentication server finds the corresponding session and key based on the session identifier, decrypts the data packet, and obtains the original first authentication data. Then, the server sends this original data packet unchanged to the Bluetooth MFi hardware module connected to it and assigned to the session through an interface such as USB-to-Serial. The coprocessor in the Bluetooth MFi hardware module processes the iAP2 request and generates a corresponding response data packet (i.e., the second authentication data). In this invention, the second authentication data is also an authentication interaction data packet of the iAP2 protocol, specifically an AuthenticationCertificate data packet containing an authentication certificate. Then, the Bluetooth MFi hardware module transmits the second authentication data back to the relay authentication server, which encrypts it again using the dynamic session key and transmits it back to the client via the network.

[0030] S404. The client receives the second authentication data returned by the relay authentication server and sends the second authentication data to the iOS device via the local Bluetooth connection. In this step of the present invention, after the client receives the encrypted data and decrypts it to obtain the original second authentication data, it will immediately send the second authentication data to the target mobile terminal via the local Bluetooth connection. Specifically, the process of steps S401 to S404 of the present invention will be repeated several times according to the handshake process of the iAP2 protocol until the iOS device completes the authentication of the remote Bluetooth MFi hardware module. After the above process, the present invention can establish a virtual trusted communication link (LocationInformation channel defined by the iAP2 protocol) from the iOS device through the client and the relay authentication server, and finally to the Bluetooth MFi hardware module.

[0031] S500: After the iAP2 authentication process is completed, virtual location data is generated through the client and sent to the iOS device via the local Bluetooth connection to modify the system location of the iOS device through synchronous location.

[0032] In this invention, after authentication is completed, the client's user interface allows the user to input or select a target latitude and longitude. The client program will construct a virtual positioning data message conforming to the NMEA 0183 standard based on the input. Specifically, it will generate statements in at least two formats: GPGGA (Global Positioning System Positioning Data) and GPRMC (Recommended Minimum Positioning Information). That is, the virtual positioning data is a message conforming to the NMEA 0183 standard, and the message includes GPGGA format data and GPRMC format data.

[0033] Furthermore, in order to avoid unnatural shifts in location on the map, in an optional embodiment of the first aspect of the present invention, the iOS virtual location method based on Bluetooth relay further includes: when the target virtual location changes, generating a series of intermediate location data from the current location to the target virtual location through a location smoothing transition algorithm, and sending them sequentially to the iOS device to achieve a smooth change in location.

[0034] Specifically, in this invention, when a user sets a new target location, the location smooth transition algorithm calculates a series of intermediate coordinate points between the current location and the target location within the client. Within 1-3 seconds, it sequentially generates and sends NMEA messages for these intermediate points at a relatively high frequency (e.g., 4-10 times per second). This results in a smooth movement of the location pointer on the iOS device's map application, rather than an instantaneous jump. Finally, the client continuously sends the generated NMEA messages to the iOS device through the virtual trusted communication link established in step S404. Upon receiving this location data from trusted accessories, the iOS device's operating system uses it as system-level location information, thereby enabling the modification of the location for all applications (such as maps, social media, etc.).

[0035] To better illustrate the technical solution of this invention, in conjunction with... Figure 2 Taking the location synchronization of iOS devices via Apple's iAP2 protocol as an example, an exemplary iOS virtual location process of the present invention can be as follows: Step 1: The server establishes a Bluetooth relay service by physically connecting the Bluetooth hardware. Multiple hardware devices are deployed on the server to ensure that multiple users can access the service simultaneously and complete the processing at the same time. A timeout release process is set up for each user to ensure that the service is not maliciously occupied by users. The client initiates a Bluetooth device request, queues the Bluetooth service, and obtains the hardware information of the idle hardware on the server. If there is no idle device at this time, the client is told to queue and re-initiate the queuing request.

[0036] Step Two: After successfully queuing, the client obtains the specific hardware device information and pairs with the iOS device via Bluetooth. At this point, the client initiates a Bluetooth authentication request to the iOS device, carrying the hardware device information. After receiving a response from the iOS device, the client encrypts the response data using AES and transmits it to the server. The server decrypts the data and then sends it to the actually connected hardware device via Bluetooth. Once the hardware device is successfully authenticated, it returns the data to the client through the server (the data also needs to be AES encrypted and decrypted). The client then organizes the data and sends it to the iOS device. At this point, the iOS device has essentially authenticated the MFI protocol of the hardware connected to the server, and can perform relevant data exchanges.

[0037] Step 3: After the client receives the authentication data from the iOS device, the iOS device is now ready to send the synchronization location command. At this point, the client can input the latitude and longitude of the specific location. This latitude and longitude data will be packaged in GPGGA and GPRMC formats and sent to the iOS device via the BLE Bluetooth protocol. After receiving the command and verifying the correct authentication data, the iOS device will synchronize with the system's location module, confirming the map location synchronization. The client maintains a location update service of 4 times per second to ensure the stability of the modification. Using the virtual location scheme of this invention, after the iOS user modifies the location, there is virtually no detection trace. This allows for reasonable location modification, and the PC client supports multiple devices connecting simultaneously for modification, providing users with a more secure simulated location modification test.

[0038] See Figure 3 The second aspect of the present invention provides an iOS virtual positioning system based on Bluetooth relay, the iOS virtual positioning system based on Bluetooth relay includes a client 10, a relay authentication server 20 and a plurality of Bluetooth MFi hardware modules 30 connected to the relay authentication server. The client 10 is used to send a hardware allocation request to the relay authentication server 20; The relay authentication server 20 is used to respond to the hardware allocation request, select an idle Bluetooth MFi hardware module from the multiple Bluetooth MFi hardware modules 30 under its management, and return the Bluetooth information of the idle Bluetooth MFi hardware module to the client 10. The Bluetooth information is used to guide the iOS device to establish a local Bluetooth connection with the client 10; The relay authentication server 20 is also used to relay authentication data between the client 10 and the idle Bluetooth MFi hardware module, and complete iAP2 authentication between the iOS device and the idle Bluetooth MFi hardware module; The client 10 is also used to generate virtual location data after the iAP2 authentication process is completed, and send the virtual location data to the iOS device via the local Bluetooth connection, so as to modify the system location of the iOS device by means of synchronous location.

[0039] In an optional embodiment of the second aspect of the present invention, the relay authentication server is further configured to generate a session identifier and a dynamic session key for the current session after responding to the hardware allocation request, and send the session identifier and the dynamic session key together with the Bluetooth information to the client; so that subsequent data transmission between the client and the relay authentication server is encrypted and decrypted based on the dynamic session key.

[0040] In an optional embodiment of the second aspect of the present invention, when relaying authentication data between the client and the idle Bluetooth MFi hardware module via the relay authentication server, the client is further configured to receive first authentication data sent by the iOS device via the local Bluetooth connection; the client is further configured to send the first authentication data to the relay authentication server; the relay authentication server is further configured to forward the first authentication data to the idle Bluetooth MFi hardware module for authentication processing, and receive second authentication data generated by the idle Bluetooth MFi hardware module; the client is further configured to receive the second authentication data returned by the relay authentication server, and send the second authentication data to the iOS device via the local Bluetooth connection.

[0041] In an optional embodiment of the second aspect of the present invention, both the first authentication data and the second authentication data are authentication interaction data packets of the iAP2 protocol.

[0042] In an optional embodiment of the second aspect of the present invention, the virtual positioning data is a message conforming to the NMEA 0183 standard, the message including GPGGA format data and GPRMC format data.

[0043] In an optional embodiment of the second aspect of the present invention, the client is further configured to generate a series of intermediate positioning data from the current location to the target virtual location through a location smoothing transition algorithm when the target virtual location changes, and send them sequentially to the iOS device to achieve a smooth change in location.

[0044] In an optional embodiment of the second aspect of the present invention, the relay authentication server manages a plurality of hardware resource pools composed of the Bluetooth MFi hardware modules, and the relay authentication server is further configured to select and allocate idle Bluetooth MFi hardware modules from the hardware resource pools according to a polling or least-connection scheduling algorithm.

[0045] Figure 4 This is a schematic diagram of the structure of an iOS virtual location device based on Bluetooth relay according to an embodiment of the present invention. The iOS virtual location device based on Bluetooth relay can be a client or a relay authentication server. The Bluetooth virtual location device based on Bluetooth relay can vary significantly due to different configurations or performance, and may include one or more processors 40 (central processing units, CPUs) (e.g., one or more processors) and memory 50, and one or more storage media 60 (e.g., one or more mass storage devices) for storing applications or data. The memory and storage media can be temporary or persistent storage. The program stored on the storage media may include one or more modules (not shown in the diagram), each module may include a series of instruction operations on the iOS virtual location device based on Bluetooth relay. Furthermore, the processor may be configured to communicate with the storage media to execute a series of instruction operations on the storage media on the iOS virtual location device based on Bluetooth relay.

[0046] The iOS virtual positioning device based on Bluetooth relay of this invention may further include one or more power supplies 70, one or more wired or wireless network interfaces 80, one or more input / output interfaces 90, and / or one or more operating systems, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art will understand that... Figure 4 The illustrated structure of an iOS virtual location device based on Bluetooth relay does not constitute a limitation on a Bluetooth relay-based iOS virtual location device, which may include more or fewer components than illustrated, or combine certain components, or have different component arrangements.

[0047] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium, wherein the computer-readable storage medium stores instructions that, when executed on a computer, cause the computer to perform the steps of the Bluetooth relay-based virtual positioning method.

[0048] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system or system / unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0049] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0050] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A virtual positioning method for iOS based on Bluetooth relay, characterized in that, include: The client sends a hardware allocation request to the relay authentication server. In response to the hardware allocation request, the relay authentication server selects an idle Bluetooth MFi hardware module from the multiple Bluetooth MFi hardware modules it manages, and returns the Bluetooth information of the idle Bluetooth MFi hardware module to the client. Based on the Bluetooth information, guide the iOS device to establish a local Bluetooth connection with the client; The authentication data between the client and the idle Bluetooth MFi hardware module is relayed by the relay authentication server to complete the iAP2 authentication between the iOS device and the idle Bluetooth MFi hardware module; After the iAP2 authentication process is completed, virtual location data is generated by the client and sent to the iOS device via the local Bluetooth connection to modify the system location of the iOS device through synchronous location.

2. The iOS virtual positioning method based on Bluetooth relay according to claim 1, characterized in that, The relay authentication server, in response to the hardware allocation request, also includes: The relay authentication server generates a session identifier and a dynamic session key for this session, and sends the session identifier and the dynamic session key, along with the Bluetooth information, to the client. Subsequent data transmissions between the client and the relay authentication server are encrypted and decrypted based on the dynamic session key.

3. The iOS virtual positioning method based on Bluetooth relay according to claim 2, characterized in that, The authentication data relayed between the client and the idle Bluetooth MFi hardware module via the relay authentication server includes: The client receives the first authentication data sent by the iOS device via the local Bluetooth connection; The client sends the first authentication data to the relay authentication server; The relay authentication server forwards the first authentication data to the idle Bluetooth MFi hardware module for authentication processing, and receives the second authentication data generated by the idle Bluetooth MFi hardware module. The client receives the second authentication data returned by the relay authentication server and sends the second authentication data to the iOS device via the local Bluetooth connection.

4. The iOS virtual positioning method based on Bluetooth relay according to claim 3, characterized in that, Both the first authentication data and the second authentication data are authentication interaction data packets of the iAP2 protocol.

5. The iOS virtual positioning method based on Bluetooth relay according to claim 1, characterized in that, The virtual location data is a message conforming to the NMEA 0183 standard, and the message includes GPGGA format data and GPRMC format data.

6. The iOS virtual positioning method based on Bluetooth relay according to claim 1, characterized in that, The iOS virtual location method based on Bluetooth relay also includes: When the target virtual location changes, a series of intermediate positioning data from the current location to the target virtual location is generated through a location smooth transition algorithm and sent to the iOS device in sequence to achieve a smooth change in location.

7. The iOS virtual positioning method based on Bluetooth relay according to claim 1, characterized in that, The relay authentication server manages multiple hardware resource pools composed of the Bluetooth MFi hardware modules, and selects and allocates idle Bluetooth MFi hardware modules from the hardware resource pools according to a round-robin or least-connection scheduling algorithm.

8. An iOS virtual positioning system based on Bluetooth relay, characterized in that, The iOS virtual positioning system based on Bluetooth relay includes a client, a relay authentication server, and multiple Bluetooth MFi hardware modules connected to the relay authentication server. The client is used to send a hardware allocation request to the relay authentication server; The relay authentication server is used to respond to the hardware allocation request, select an idle Bluetooth MFi hardware module from the multiple Bluetooth MFi hardware modules it manages, and return the Bluetooth information of the idle Bluetooth MFi hardware module to the client. The Bluetooth information is used to guide the iOS device to establish a local Bluetooth connection with the client. The relay authentication server is also used to relay authentication data between the client and the idle Bluetooth MFi hardware module, and to complete iAP2 authentication between the iOS device and the idle Bluetooth MFi hardware module; The client is also used to generate virtual location data after the iAP2 authentication process is completed, and send the virtual location data to the iOS device via the local Bluetooth connection, so as to modify the system location of the iOS device by means of synchronous location.

9. An iOS virtual positioning device based on Bluetooth relay, characterized in that, The iOS virtual location device based on Bluetooth relay includes: a memory and at least one processor, wherein the memory stores instructions, and the memory and the at least one processor are interconnected via a line; The at least one processor invokes the instructions in the memory to cause the Bluetooth relay-based iOS virtual positioning device to perform the Bluetooth relay-based virtual positioning method as described in any one of claims 1-7.

10. A computer-readable storage medium storing a computer program thereon, characterized in that, When the computer program is executed by the processor, it implements the Bluetooth relay-based virtual positioning method as described in any one of claims 1-7.