Virtual bus equipment transmission method based on BLE and WiFi P2P and related equipment

Through the initialization of virtual bus devices and multi-level scanning filtering algorithm, combined with BLE broadcast pairing and WiFi P2P connection, the connection instability caused by poor signal quality in virtual bus devices is solved, and efficient and reliable data transmission is achieved.

CN119233441AInactive Publication Date: 2024-12-31SHENZHEN HONGYUAN ZHITONG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411447435.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-16
Publication Date
2024-12-31
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing BLE and WiFi P2P-based virtual bus device transmission methods may lead to unstable connections or failure of data transmission in the case of poor signal quality, and lack effective optimization measures to improve system reliability and efficiency.

Method used

Through the initialization of virtual bus devices, BLE broadcast pairing, WiFi P2P network connection, data transmission path establishment and adaptive selection, we ensure that only the target device participates in data transmission, reduce error connections and resource waste, and pass multi-level scanning filtering algorithms and security Key distribution improves the stability and speed of data transmission.

Benefits of technology

It realizes the stability and speed of data transmission under poor signal quality, reduces the risk of data loss and communication errors, and improves the reliability and efficiency of the overall system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119233441A_ABST
    Figure CN119233441A_ABST
Patent Text Reader

Abstract

The invention relates to a virtual bus equipment transmission method based on BLE (Bluetooth Low Energy) and WiFi (Wireless Fidelity) P2P (Peer-to-Peer), which comprises the following steps of: initializing and registering virtual bus equipment, and acquiring registration information such as name, type, network configuration and the like; broadcast pairing is carried out through the BLE technology, a pairing request is obtained, and target virtual receiving equipment is screened out; and establishing network connection through a WiFi P2P technology, and establishing a data transmission path between the virtual bus equipment and the target virtual receiving equipment. And performing data transmission by using the path, wherein the result comprises a success or failure state. If the data transmission succeeds, the data transmission is completed; if the data transmission fails, data transmission is tried again; the problem that connection is unstable or data transmission fails under the condition of poor signal quality although the WiFi P2P technology in the traditional method has a high rate during connection establishment and data transmission is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data transmission, and in particular to a virtual bus device transmission method based on BLE and WiFi P2P and related devices. Background Art

[0002] In modern communication technology, virtual bus devices are increasingly used, especially in fields such as industrial automation and smart home. Traditional device communication methods usually rely on wired connections or single wireless technologies, which often face problems such as insufficient bandwidth and high latency when interconnecting devices. In recent years, a combination of BLE (Bluetooth Low Energy) and WiFi P2P (Peer-to-Peer) technology has been proposed, aiming to improve these problems by utilizing the low power consumption characteristics of BLE and the high data transmission capabilities of WiFi P2P. However, this approach still has challenges in practical applications, such as compatibility issues during device initialization and pairing, and data transmission stability under different network conditions.

[0003] In the transmission method of virtual bus devices, how to efficiently pair devices and transmit data is the key. BLE technology can provide a stable broadcast and pairing mechanism, but signal interference may occur in a high-density device environment, affecting the pairing effect. At the same time, although WiFi P2P technology has a high rate when establishing a connection and transmitting data, it may cause unstable connection or data transmission failure when the signal quality is poor. The existing methods may not be comprehensive enough to deal with these problems, and further optimization of algorithms and technologies is needed to improve the reliability and efficiency of the overall system. Summary of the invention

[0004] The main purpose of the present invention is to provide a virtual bus device transmission method and related equipment based on BLE and WiFi P2P, which solves the technical problem that although the traditional method WiFi P2P technology has a high rate when establishing a connection and transmitting data, it may cause unstable connection or data transmission failure when the signal quality is poor.

[0005] To achieve the above object, the present invention provides a virtual bus device transmission method based on BLE and WiFi P2P, comprising the following steps: Initializing the virtual bus device to obtain a unique identifier corresponding to the virtual bus device, and registering the unique identifier to obtain registration information of the virtual bus device; wherein the registration information includes the name, type and network configuration of the virtual bus device; The virtual bus device broadcasts pairing with the virtual receiving device according to the preset BLE technology and the registration information to obtain a pairing request; Screening the virtual receiving device based on the pairing request to obtain a target virtual receiving device; By using WiFi P2P technology, the virtual bus device is connected to the target virtual receiving device through a network to obtain a connection state, and a data transmission connection path is established between the virtual bus device in the connection state and the target virtual receiving device; Performing data transmission using the data transmission connection path to obtain a data transmission result; wherein the data transmission result includes a success state or a failure state; If the data transmission result is a success state, it means that the data transmission between the virtual bus device and the target virtual receiving device is successful; If the data transmission result is a failure state, the data transmission is performed again.

[0006] Further, the virtual bus device is initialized to obtain a unique identifier corresponding to the virtual bus device, and the unique identifier is registered to obtain registration information of the virtual bus device, including: Initializing the power supply of the virtual bus device to ensure that the virtual bus device is in working state; Performing a device hardware self-check and hardware loading on the virtual bus device in working state to confirm that the device hardware of the virtual bus device operates normally, thereby obtaining a normal virtual bus device; Generating a unique identifier for the normal virtual bus device to obtain a unique identifier, and encoding the unique identifier to obtain an encoded identifier; Register the normal virtual bus device based on the coded identifier to obtain a registration request; Communicate with the registration server of the normal virtual bus device based on the registration request to obtain a registration response and registration information corresponding to the registration response.

[0007] Further, the virtual bus device broadcasts pairing with the virtual receiving device according to the preset BLE technology and the registration information to obtain a pairing request, including: Initialize the technical parameters of the preset BLE technology through the preset configuration protocol stack technology to obtain the BLE communication protocol stack; Performing information mapping on the registration information based on the BLE communication protocol stack to generate a registration mapping signal; Utilizing the registration mapping signal, broadcasting to the virtual receiving device through the virtual bus device to obtain a virtual receiving device identification code; A multi-level scanning filtering algorithm is used to filter the virtual receiving device identification code to obtain a pairing request message; The virtual receiving device is paired based on the pairing request message to obtain a pairing request.

[0008] Furthermore, the virtual receiving device is screened based on the pairing request to obtain a target virtual receiving device, including: Extracting information from the protocol field of the virtual receiving device based on the pairing request to obtain extracted information; wherein the extracted information includes the ID of the virtual receiving device, the signal strength of the virtual receiving device, the response time of the virtual receiving device, and the type of the virtual receiving device; Converting the extracted information into a vector format to obtain a converted format vector; Constructing an attribute matrix based on the conversion format vector; wherein the rows of the attribute matrix represent each virtual receiving device, and the columns of the attribute matrix represent different attributes of each virtual receiving device; Defining an attribute vector of a preset target virtual receiving device, and calculating a similarity between the attribute vector of the preset target virtual receiving device and a column vector of an attribute matrix; The virtual receiving device corresponding to the column vector with the largest similarity is taken as the target virtual receiving device.

[0009] Further, the virtual bus device and the target virtual receiving device are connected to the network through WiFi P2P technology to obtain a connection state, and a data transmission connection path is established between the virtual bus device in the connection state and the target virtual receiving device, including: Scan the network environment through WiFi P2P technology, respectively connect the virtual bus device and the target virtual receiving device to the network, and obtain the connection status; wherein the connection status is the connection between WiFi P2P technology and the virtual bus device and the target virtual receiving device respectively; Establishing a connection request between the virtual bus device in the connected state and the target virtual receiving device to obtain a requested connection; Verifying the requested connection to obtain a verification connection status; If the verified connection state is a connection between the virtual bus device and the target virtual receiving device, a data transmission channel is established between the virtual bus device requesting the connection and the target virtual receiving device to obtain a data transmission connection path.

[0010] Further, performing data transmission based on the data transmission connection path to obtain a data transmission result includes: Performing network load balancing based on the data transmission connection path to obtain a balanced network load distribution; Based on the balanced network load distribution, adaptively select the data transmission connection path to obtain a selected transmission path; wherein the selected transmission path has at least one; Distribute the security key of the data to be transmitted based on the selected transmission path to obtain secure transmission data; The secure transmission data is transmitted between the virtual bus device and the target virtual receiving device to obtain a data transmission result.

[0011] Further, based on the selected transmission path, a security key distribution of the data to be transmitted is performed to obtain secure transmission data, including: Performing a security assessment on the selected transmission path through a preset security key distribution protocol to obtain security parameters of the selected transmission path; Sorting the security parameters from large to small to obtain a sorting result; Screening the selected transmission path based on the sorting result to obtain a screened transmission path; Distributing security keys on the screening transmission path to generate security keys; The data to be transmitted is encrypted based on the security key to obtain encrypted data, and the encrypted data is used as secure transmission data.

[0012] The present invention also provides a virtual bus device transmission device based on BLE and WiFi P2P, comprising: A registration module, used to initialize the virtual bus device, obtain a unique identifier corresponding to the virtual bus device, and register the unique identifier to obtain registration information of the virtual bus device; wherein the registration information includes the name, type and network configuration of the virtual bus device; A pairing module, used to perform broadcast pairing with a virtual receiving device through the virtual bus device according to a preset BLE technology and the registration information to obtain a pairing request; A screening module, used for screening virtual receiving devices based on the pairing request to obtain a target virtual receiving device; A connection module, used to connect the virtual bus device to the target virtual receiving device through a WiFi P2P technology, obtain a connection state, and establish a data transmission connection path between the virtual bus device in the connection state and the target virtual receiving device; A transmission module, used to perform data transmission using the data transmission connection path to obtain a data transmission result; wherein the data transmission result includes a success state or a failure state; A success module, used for indicating that the data transmission between the virtual bus device and the target virtual receiving device is successful if the data transmission result is a success state; The failure module is used to re-transmit the data if the data transmission result is a failure state.

[0013] The present invention also provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.

[0014] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned methods are implemented.

[0015] The present invention provides a virtual bus device transmission method based on BLE and WiFi P2P, comprising the following steps: initializing a virtual bus device, obtaining a unique identifier corresponding to the virtual bus device, and registering the unique identifier to obtain registration information of the virtual bus device; wherein the registration information includes the name, type and network configuration of the virtual bus device; broadcasting pairing with a virtual receiving device according to a preset BLE technology and the registration information by the virtual bus device to obtain a pairing request; screening the virtual receiving device based on the pairing request to obtain a target virtual receiving device; connecting the virtual bus device to the target virtual receiving device through a network through WiFi P2P technology to obtain a connection state, and establishing a data transmission connection path between the virtual bus device in the connection state and the target virtual receiving device; performing data transmission using the data transmission connection path to obtain a data transmission result; wherein the data transmission result includes a success state or a failure state; if the data transmission result is a success state, it indicates that the data transmission between the virtual bus device and the target virtual receiving device is successful; if the data transmission result is a failure state, data transmission is performed again; through the above technical solution, the traditional method WiFi Although P2P technology has a high rate when establishing connections and transmitting data, it may cause unstable connections or data transmission failures when the signal quality is poor. It implements the screening of virtual receiving devices based on pairing requests to ensure that only the target device participates in subsequent data transmission, reducing incorrect connections and resource waste. Network connection through WiFi P2P technology can establish a high-bandwidth, low-latency connection path, effectively improving the stability and speed of data transmission and reducing the risk of data loss and communication errors. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is a schematic diagram of the steps of a virtual bus device transmission method based on BLE and WiFi P2P in one embodiment of the present invention; Figure 2It is a structural block diagram of a virtual bus device transmission device based on BLE and WiFi P2P in one embodiment of the present invention; Figure 3 It is a schematic block diagram of the structure of a computer device according to an embodiment of the present invention.

[0017] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0018] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0019] like Figure 1 As shown, Figure 1 It is a schematic diagram of the steps of a virtual bus device transmission method based on BLE and WiFi P2P in one embodiment of the present invention; In one embodiment of the present invention, a virtual bus device transmission method based on BLE and WiFi P2P is provided, comprising the following steps: Step S1, initializing a virtual bus device, obtaining a unique identifier corresponding to the virtual bus device, and registering the unique identifier to obtain registration information of the virtual bus device; wherein the registration information includes the name, type and network configuration of the virtual bus device.

[0020] Specifically, in this step, the virtual bus device needs to be initialized first. The purpose of initialization is to give the device basic operating parameters and status. This process usually involves the preparation of the hardware and software systems of the device. After the initialization is completed, the virtual bus device will generate a unique identifier, which is the unique identity credential of the device and can ensure that there is no conflict or confusion between different devices. The unique identifier is usually implemented in a globally unique encoding method, such as using UUID (Universally Unique Identifier), so that each virtual bus device has an independent identity in the system. After the unique identifier is generated, the system will register the identifier. The registration process is to upload the identity information of the device to the network or device management system for subsequent interaction and communication between devices. The registration information of the virtual bus device includes not only the unique identifier, but also detailed information such as the name, type and network configuration of the device. For example, the device name can help users or systems identify the function or purpose of the device, the device type identifies which type of hardware or virtual device the device belongs to, and the network configuration involves the parameter settings of how the device communicates with other devices or networks, such as IP address, subnet mask, etc. For example, if a virtual bus device is a temperature sensor in a smart home, then after initialization, it may be assigned a unique identifier such as "123e4567-e89b-12d3-a456-426614174000", the device name may be "LivingRoom_TempSensor", the type tag is "Temperature_Sensor", and the network configuration includes the settings for how the device communicates with the master device through a local area network or other network protocols. After this information is registered, other devices can quickly find and identify the virtual bus device by accessing this registration information, ensuring that subsequent data interaction and operations can proceed smoothly.

[0021] Step S2, the virtual bus device broadcasts pairing with the virtual receiving device according to the preset BLE technology and the registration information to obtain a pairing request.

[0022] Specifically, in this step, the virtual bus device first broadcasts pairing according to the preset BLE technology. BLE (Bluetooth Low Energy) technology has extremely high efficiency in the device pairing process due to its low power consumption, and is particularly suitable for scenarios that require frequent connection and communication. The virtual bus device will use BLE technology to send a broadcast signal to the surrounding devices. This broadcast signal contains key information registered in the previous step, such as the unique identifier of the virtual bus device, device name, type, and network configuration. By broadcasting this registration information, the virtual bus device can allow potential virtual receiving devices to discover its existence. When the virtual receiving device receives the broadcast information, if it matches the registration information of the virtual bus device, such as the device type meets the requirements or the network configuration is compatible, the virtual receiving device will respond and send a pairing request. This pairing request is the basis for establishing a communication connection between devices. The virtual bus device will process the received pairing request, select suitable virtual receiving devices, and ensure that subsequent data transmission can be carried out between paired devices. For example, when the virtual bus device is a light controller in a smart home, it sends its registration information through BLE broadcast, such as the device name "LivingRoom_LightController", type "Light_Controller" and network configuration information. If the virtual receiving device is a smartphone application, it receives the broadcast information of the light controller and detects that the light controller matches the device it needs to control. The smartphone will send a pairing request to the virtual bus device. After receiving the pairing request, the light controller will confirm the smartphone and complete the preliminary device pairing process. Through this BLE-based broadcast pairing mechanism, devices can efficiently and securely establish connections, laying the foundation for subsequent data transmission.

[0023] Step S3: Screen the virtual receiving devices based on the pairing request to obtain a target virtual receiving device.

[0024] Specifically, in this step, after receiving the pairing request, the virtual bus device needs to screen the virtual receiving devices, with the purpose of selecting the most suitable target virtual receiving device, so as to ensure that the subsequent data transmission can proceed smoothly. The screening process is performed based on the previous registration information and the current pairing request, including the review of multiple dimensions such as the type of the virtual receiving device, the network configuration, and its status in the system. For example, the virtual bus device will check whether the registration information of the virtual receiving device is consistent with the expected standards in the pairing request, such as whether the name and function type of the device match, and whether the network configuration can ensure a stable connection. This screening step ensures that the virtual bus device will only establish a data transmission path with qualified virtual receiving devices, thereby avoiding unnecessary connections and improving system efficiency. For example, suppose that the virtual bus device is a smart TV, and the virtual receiving devices are multiple remote controls or smartphone applications. After receiving different pairing requests, the virtual bus device will screen according to the device type and network configuration information in these requests. For example, the virtual bus device can give priority to pairing with smartphones with stable network status, while ignoring devices with poor connection status. Through this screening mechanism based on pairing requests, the virtual bus device can ensure that the target virtual receiving device it connects to not only meets the functional requirements, but also maintains stable data transmission under actual network conditions, ultimately achieving efficient and secure device communication. This screening method can reduce misconnections and unnecessary resource consumption, and improve the reliability of the entire system.

[0025] Step S4, through the WiFi P2P technology, the virtual bus device and the target virtual receiving device are connected to the network, the connection state is obtained, and a data transmission connection path is established between the virtual bus device in the connection state and the target virtual receiving device. Specifically, in this step, the virtual bus device and the target virtual receiving device establish a network connection through the WiFi P2P technology. WiFi P2P (Peer-to-Peer) technology allows devices to directly communicate wirelessly without an intermediary router. This direct point-to-point connection can provide a higher data transmission rate and lower latency. Specifically, the virtual bus device and the target virtual receiving device will first discover each other through the WiFi P2P protocol and perform a preliminary connection pairing process. Once the network connection is established, the system will check the connection state to ensure that the network connection between the virtual bus device and the target virtual receiving device is stable and reliable. After confirming that the connection state is normal, the system will establish a data transmission connection path between the two devices. This data transmission connection path is created through WiFi P2P technology and can effectively support subsequent data exchange operations. This connection path will be used to transmit the actual data stream to ensure reliable data transmission and high transmission speed.

[0026] Step S5, performing data transmission using the data transmission connection path to obtain a data transmission result; wherein the data transmission result includes a success state or a failure state.

[0027] Specifically, when implementing the step of "using the data transmission connection path to perform data transmission and obtain a data transmission result; wherein the data transmission result includes a success state or a failure state", it is first necessary to determine the specific composition and establishment method of the data transmission connection path according to the description in the claims. Generally speaking, a data transmission connection path may involve multiple network nodes and transmission protocols, and a stable and reliable data transmission link is established through the collaborative work of these nodes and protocols. After determining and establishing the data transmission connection path, the system will perform data transmission through the path. This process may include multiple links such as data packet packaging, routing selection, data transmission control, and error detection and correction. During the data transmission process, the system needs to monitor the transmission status of the data packet in real time and process the data packet accordingly according to the requirements of the transmission protocol. For example, if a data packet is detected to be lost or damaged during the transmission process, the system may trigger a retransmission mechanism to ensure the integrity and reliability of the data. At the same time, the system also needs to record the transmission status of each data packet, and after the data transmission is completed, evaluate and summarize the entire data transmission process to generate a data transmission result. The data transmission result is a summary and feedback of the entire data transmission process, mainly including a success state or a failure state. If all data packets can reach the destination smoothly without any errors or losses, the system will record a successful status result, indicating that the data transmission process is completely successful; on the contrary, if an unrecoverable error occurs during the data transmission process, causing some or all data packets to fail to reach the destination smoothly, the system will record a failed status result, indicating that there is a problem with the data transmission process. In this way, the system can understand the status of data transmission in real time, and take corresponding measures to optimize and improve the data transmission process based on the data transmission results. In summary, the step of using the data transmission connection path to transmit data and obtain the data transmission result is actually a complex process of multi-link collaborative work, covering multiple aspects such as the establishment of the data transmission path, the transmission of data packets, error detection and correction, and the final result evaluation.

[0028] Step S6: If the data transmission result is a success state, it means that the data transmission between the virtual bus device and the target virtual receiving device is successful.

[0029] Specifically, when explaining the scheme of the step "if the data transmission result is a success state, it indicates that the data transmission between the virtual bus device and the target virtual receiving device is successful", it is first necessary to clarify the definition of the virtual bus device and the target virtual receiving device and their mutual relationship. According to the description in the claims, the virtual bus device and the target virtual receiving device are usually data transmission entities realized by a certain virtualization technology, and a connection is established between them in a virtual manner to realize data transmission and exchange. When the virtual bus device starts to transmit data to the target virtual receiving device, the system will perform the transmission operation through the pre-established data transmission connection path. During the data transmission process, the system will monitor and record each data packet in real time to ensure that the data can be smoothly transmitted in every link of the transmission. The system will use the confirmation mechanism in the transmission protocol to confirm whether each data packet has successfully reached the target virtual receiving device. If a data packet does not receive confirmation information within the specified time, the system will start the retransmission mechanism to ensure the integrity and reliability of the data. After the entire data transmission process is completed, the system will generate an overall transmission result, that is, the data transmission result, based on the transmission status of all data packets. If the data transmission result is a successful state, it means that during the entire data transmission process, all data packets have successfully arrived at the target virtual receiving device, and no data loss or transmission error has occurred. This means that the data transmission process between the virtual bus device and the target virtual receiving device is completely successful, and the data has been transmitted to the target device without error. Therefore, the transmission result of the successful state is not only a summary and feedback of the transmission process, but also a verification of the communication quality and reliability between the virtual bus device and the target virtual receiving device. Through such a detailed monitoring and evaluation mechanism, the system can ensure the accuracy and reliability of each data transmission, thereby improving the data transmission efficiency and stability between the virtual bus device and the target virtual receiving device. In summary, if the data transmission result is a successful state, it means that the step of successful data transmission between the virtual bus device and the target virtual receiving device is achieved through a series of strict monitoring, confirmation and evaluation work, ensuring the efficiency and reliability of the data transmission process.

[0030] Step S7: if the data transmission result is a failure state, re-transmit the data.

[0031] Specifically, if the data transmission result is a failure state, then when the step of "re-transmitting data" is selected, it should be firstly clarified that the failure state refers to an unrecoverable error or data loss that occurs during the data transmission process, resulting in some or all data packets failing to successfully reach the target virtual receiving device. At this time, the system will automatically detect that the data transmission result is a failure state and trigger a mechanism for re-transmitting data. Re-transmitting data means that the system will re-establish the data transmission connection path and resend all data packets to ensure that the data can be transmitted to the target virtual receiving device intactly and without error. Through such a retransmission mechanism, the system can correct transmission errors in a timely manner when encountering them, ensuring that the data can eventually successfully reach the target device, thereby improving the reliability and stability of data transmission.

[0032] In a specific embodiment, the virtual bus device is initialized to obtain a unique identifier corresponding to the virtual bus device, and the unique identifier is registered to obtain registration information of the virtual bus device, including: Initializing the power supply of the virtual bus device to ensure that the virtual bus device is in working state; Performing a device hardware self-check and hardware loading on the virtual bus device in working state to confirm that the device hardware of the virtual bus device operates normally, thereby obtaining a normal virtual bus device; Generating a unique identifier for the normal virtual bus device to obtain a unique identifier, and encoding the unique identifier to obtain an encoded identifier; Register the normal virtual bus device based on the coded identifier to obtain a registration request; Communicate with the registration server of the normal virtual bus device based on the registration request to obtain a registration response and registration information corresponding to the registration response.

[0033] Specifically, when explaining the scheme of the step of "initializing the virtual bus device, obtaining the unique identifier corresponding to the virtual bus device, and registering the unique identifier to obtain the registration information of the virtual bus device", it is first necessary to understand the necessity of the initialization and registration process and its specific implementation steps. Initialization is a prerequisite for ensuring that the virtual bus device can operate normally, while the generation and registration of the unique identifier is to ensure that the device can be uniquely identified and managed in the network. First, the power supply of the virtual bus device is initialized to ensure that the virtual bus device is in a working state. Power initialization is the first step of the entire process, and the purpose of this step is to start the virtual bus device and put it into a working state. Power initialization generally involves supplying power to the device, starting the basic system of the device, and ensuring that the device is in an operational state. The success or failure of power initialization is directly related to the smooth progress of subsequent steps, so the stability and reliability of the power initialization process must be ensured. After the power initialization is completed, the system will perform a device hardware self-test and hardware loading on the virtual bus device in the working state. The purpose of this step is to confirm that the device hardware of the virtual bus device operates normally and ensure that all hardware components can work normally after initialization. The device hardware self-test usually includes testing the key components of the device, such as the CPU, memory, storage device, network interface, etc., to ensure that these components have no hardware failures or configuration errors. Hardware loading is to load the necessary drivers and firmware into the device so that it can operate normally and respond to system instructions. Through the device hardware self-test and hardware loading, the system can confirm that the hardware of the virtual bus device is operating normally, thereby obtaining a normal virtual bus device. After confirming that the hardware of the virtual bus device is operating normally, the system will generate a unique identifier for the normal virtual bus device to obtain a unique identifier. A unique identifier is a mark used to uniquely identify each virtual bus device, which is usually generated by multiple factors such as the device's hardware information, serial number, timestamp, etc., to ensure that there are no duplicate identifiers in the entire system. The generation of a unique identifier is to accurately identify and distinguish different virtual bus devices in subsequent data transmission and device management. After obtaining the unique identifier, the system will encode the unique identifier to obtain an encoded identifier. The encoded identifier is to further process and convert the unique identifier to make it more efficient and secure during network transmission and storage. The generation of an encoded identifier usually involves the use of hash functions, encryption algorithms and other technologies to ensure the uniqueness and immutability of the identifier. Next, based on the coded identifier, the normal virtual bus device is registered to obtain a registration request. The registration request is a request sent by the system to the registration server, which contains the coded identifier of the virtual bus device to be registered and other necessary information. The purpose of the registration request is to indicate to the registration server that the virtual bus device has completed initialization and hardware self-test and is ready to officially operate and communicate in the network.After the registration request is issued, the system will communicate with the registration server based on the registration request to obtain a registration response and registration information corresponding to the registration response. The registration server will receive the registration request, verify and process the information in the request, and ensure the legitimacy and validity of the request. After confirming the request information, the registration server will generate a registration response, which contains the registration information of the virtual bus device in the system, such as device ID, registration time, validity period, etc. The information of the registration response will be returned to the virtual bus device to complete the entire registration process. Through this series of detailed steps, the system can ensure that the virtual bus device can be uniquely identified and effectively managed after initialization. The entire process not only involves the initialization of hardware and software, but also includes the generation and registration of a unique identifier, ensuring the reliable operation and management of the virtual bus device in the network. In summary, the process of initializing the virtual bus device, obtaining the unique identifier corresponding to the virtual bus device, registering the unique identifier, and obtaining the registration information of the virtual bus device is a complex process involving multiple links and details. Through these steps, the stability and reliability of the virtual bus device in the system are ensured, thereby laying a solid foundation for subsequent data transmission and device management.

[0034] In a specific embodiment, the virtual bus device broadcasts pairing with the virtual receiving device according to the preset BLE technology and the registration information to obtain a pairing request, including: Initialize the technical parameters of the preset BLE technology through the preset configuration protocol stack technology to obtain the BLE communication protocol stack; Performing information mapping on the registration information based on the BLE communication protocol stack to generate a registration mapping signal; Utilizing the registration mapping signal, broadcasting to the virtual receiving device through the virtual bus device to obtain a virtual receiving device identification code; A multi-level scanning filtering algorithm is used to filter the virtual receiving device identification code to obtain a pairing request message; The virtual receiving device is paired based on the pairing request message to obtain a pairing request.

[0035] Specifically, when explaining the scheme of the step of "broadcasting pairing with the virtual receiving device according to the preset BLE technology and the registration information by the virtual bus device to obtain a pairing request", it is first necessary to understand the role of BLE (Bluetooth Low Energy) technology in the communication between the virtual bus device and the virtual receiving device. BLE technology is a technology for short-range wireless communication, which has the advantages of low power consumption, low cost and high transmission rate, and is widely used in the interconnection and interoperability of IoT devices. First, the technical parameters of the preset BLE technology are initialized by the preset configuration protocol stack technology to obtain the BLE communication protocol stack. The protocol stack refers to the software or hardware implementation used to implement the communication protocol in network communication, and the BLE communication protocol stack is the necessary foundation for implementing the BLE technology. Through the parameter initialization process, the system will configure various parameters of the BLE technology, such as frequency, transmission rate, power consumption mode, etc., to ensure the normal operation and efficient communication of the BLE communication protocol stack. Then, the registration information is mapped based on the BLE communication protocol stack to generate a registration mapping signal. Information mapping refers to converting the registration information into a signal form suitable for processing by the BLE communication protocol stack according to certain rules and formats. The registration information usually includes the unique identifier, device type, function description, etc. of the virtual bus device. Through the information mapping process, these information will be converted into a registration mapping signal that can be recognized and processed by the BLE communication protocol stack. Then, the registration mapping signal is used to broadcast the virtual receiving device through the virtual bus device to obtain the virtual receiving device identification code. Broadcasting means that the virtual bus device sends a registration mapping signal to the surrounding virtual receiving devices through a wireless signal to announce its existence and try to establish a connection. The virtual receiving device identification code is a unique code generated by the virtual receiving device to identify itself after receiving the broadcast signal. Through the broadcasting process, the virtual bus device can find and identify the surrounding virtual receiving devices, laying the foundation for the subsequent pairing process. Next, the virtual receiving device identification code is screened using a multi-level scanning and filtering algorithm to obtain a pairing request message. The multi-level scanning and filtering algorithm is an algorithm for processing and filtering identification codes. Through the multi-level scanning and filtering process, the system can filter out interference signals and invalid identification codes to ensure that only valid virtual receiving device identification codes are left. The pairing request message is a valid identification code and related information after screening, which contains a request from the virtual bus device to establish a connection with the virtual receiving device. Finally, the virtual receiving device is paired based on the pairing request message to obtain a pairing request. Pairing means that the virtual bus device and the virtual receiving device establish a communication connection with each other by exchanging pairing request messages. The identification code and related information contained in the pairing request message will be received and processed by the virtual receiving device. After confirming the legitimacy and validity of the request, the virtual receiving device will respond to the pairing request to complete the pairing process. After successful pairing, data transmission and communication can be carried out between the virtual bus device and the virtual receiving device.In summary, the process of broadcasting pairing with the virtual receiving device according to the preset BLE technology and the registration information to obtain a pairing request through the virtual bus device is a complex process involving multiple steps and technical details. First, the technical parameters of the preset BLE technology are initialized by the preset configuration protocol stack technology to ensure the normal operation of the BLE communication protocol stack. Then, the registration information is mapped based on the BLE communication protocol stack to generate a registration mapping signal. Then, using the registration mapping signal, the virtual receiving device is broadcasted through the virtual bus device to obtain a virtual receiving device identification code. Next, the virtual receiving device identification code is screened using a multi-level scanning filtering algorithm to obtain a pairing request message. Finally, the virtual receiving device is paired based on the pairing request message to obtain a pairing request. Through these steps, the virtual bus device and the virtual receiving device can establish a reliable communication connection to achieve the goals of data transmission and device management.

[0036] In a specific embodiment, screening virtual receiving devices based on the pairing request to obtain a target virtual receiving device includes: Extracting information from the protocol field of the virtual receiving device based on the pairing request to obtain extracted information; wherein the extracted information includes the ID of the virtual receiving device, the signal strength of the virtual receiving device, the response time of the virtual receiving device, and the type of the virtual receiving device; Converting the extracted information into a vector format to obtain a converted format vector; Constructing an attribute matrix based on the conversion format vector; wherein the rows of the attribute matrix represent each virtual receiving device, and the columns of the attribute matrix represent different attributes of each virtual receiving device; Defining an attribute vector of a preset target virtual receiving device, and calculating a similarity between the attribute vector of the preset target virtual receiving device and a column vector of an attribute matrix; The virtual receiving device corresponding to the column vector with the largest similarity is taken as the target virtual receiving device.

[0037] Specifically, when explaining the scheme of the step of "screening virtual receiving devices based on pairing requests to obtain target virtual receiving devices", it is first necessary to understand the necessity of the screening process and its specific implementation steps. The purpose of screening virtual receiving devices is to find the most suitable target virtual receiving device among many devices to ensure the efficiency and reliability of data transmission. First, based on the pairing request, the protocol field of the virtual receiving device is extracted to obtain the extracted information. The pairing request usually contains a variety of information of the virtual receiving device, such as ID, signal strength, response time and type. Information extraction refers to parsing and obtaining these key information from the pairing request for subsequent processing and screening. The extracted information includes the ID of the virtual receiving device, which is used to uniquely identify each virtual receiving device; the signal strength of the virtual receiving device, which is used to measure the communication quality and stability of the device; the response time of the virtual receiving device, which reflects the response speed and performance of the device; and the type of the virtual receiving device, which indicates the function and purpose of the device. Next, the extracted information is converted into a vector format to obtain a converted format vector. Vector format conversion is to convert the extracted information into a mathematical vector according to certain rules and formats for subsequent calculation and processing. The extracted information of each virtual receiving device will be represented as a vector, and each element of the vector corresponds to an attribute, such as ID, signal strength, response time and type. Through vector format conversion, the extracted information of all virtual receiving devices is standardized into vector form, which is convenient for processing and comparison under a unified mathematical framework. Then, an attribute matrix is ​​constructed based on the conversion format vector. The attribute matrix is ​​a two-dimensional matrix, whose rows represent each virtual receiving device and columns represent different attributes of each virtual receiving device. The vector of each virtual receiving device will be used as a row in the attribute matrix, and each column of the matrix corresponds to an attribute, such as ID, signal strength, response time and type. By constructing the attribute matrix, the attribute information of all virtual receiving devices is systematically and structuredly represented, which is convenient for batch processing and analysis. Next, the attribute vector of the preset target virtual receiving device is defined, and the similarity between the attribute vector of the preset target virtual receiving device and the column vector of the attribute matrix is ​​calculated. The attribute vector of the preset target virtual receiving device is an ideal vector, which represents the attribute characteristics of the target virtual receiving device that the system hopes to find. The calculation of similarity is to measure the similarity between the attribute vector of each virtual receiving device and the attribute vector of the preset target virtual receiving device. The higher the similarity, the more the virtual receiving device meets the requirements of the preset target. There are many ways to calculate the similarity, such as cosine similarity, Euclidean distance, etc., and the appropriate calculation method is selected according to specific needs and scenarios. Finally, the virtual receiving device corresponding to the column vector with the largest similarity is used as the target virtual receiving device. Through the calculation of similarity, the system can find the virtual receiving device that is most similar to the attribute vector of the preset target virtual receiving device.The virtual receiving device corresponding to the column vector with the greatest similarity is the target virtual receiving device, indicating that the device best meets the requirements and expectations of the system. Through such a screening process, the system can find the most suitable target device among many virtual receiving devices to ensure the efficiency and reliability of data transmission. In summary, the process of screening virtual receiving devices based on pairing requests to obtain the target virtual receiving device is a complex process involving multiple steps and technical details. First, based on the pairing request, the protocol field of the virtual receiving device is extracted to obtain the extracted information. Next, the extracted information is converted into a vector format to obtain a converted format vector. Then, based on the converted format vector, an attribute matrix is ​​constructed to structure the attribute information of all devices. Next, the attribute vector of the preset target virtual receiving device is defined, and the similarity between the attribute vector of the preset target virtual receiving device and the column vector of the attribute matrix is ​​calculated. Finally, the virtual receiving device corresponding to the column vector with the greatest similarity is used as the target virtual receiving device. Through these steps, the system can find the most suitable target device among many virtual receiving devices to ensure the efficiency and reliability of data transmission, thereby realizing efficient and stable device communication and management.

[0038] In a specific embodiment, the virtual bus device and the target virtual receiving device are connected to a network through WiFi P2P technology to obtain a connection state, and a data transmission connection path is established between the virtual bus device in the connection state and the target virtual receiving device, including: Scan the network environment through WiFi P2P technology, respectively connect the virtual bus device and the target virtual receiving device to the network, and obtain the connection status; wherein the connection status is the connection between WiFi P2P technology and the virtual bus device and the target virtual receiving device respectively; Establishing a connection request between the virtual bus device in the connected state and the target virtual receiving device to obtain a requested connection; Verifying the requested connection to obtain a verification connection status; If the verified connection state is a connection between the virtual bus device and the target virtual receiving device, a data transmission channel is established between the virtual bus device requesting the connection and the target virtual receiving device to obtain a data transmission connection path.

[0039] Specifically, when explaining the scheme of the step "connecting the virtual bus device to the target virtual receiving device through the WiFi P2P technology to obtain the connection status, and establishing a data transmission connection path between the virtual bus device in the connection state and the target virtual receiving device", it is first necessary to understand the basic principles of WiFi P2P (Peer-to-Peer) technology and its role in the communication between the virtual bus device and the target virtual receiving device. WiFi P2P technology allows devices to establish wireless connections directly without going through an intermediate wireless access point. This method is particularly suitable for communication between devices that require high efficiency and low latency. First, the network environment is scanned through WiFi P2P technology, and the virtual bus device and the target virtual receiving device are connected to the network respectively to obtain the connection status. Network environment scanning is an important step in WiFi P2P technology. The scanning process will find available devices around and identify the target device that can be connected. During the scanning process, the virtual bus device and the target virtual receiving device will discover each other and establish a preliminary connection. The connection state refers to the state after the virtual bus device and the target virtual receiving device successfully establish a connection through WiFi P2P technology. This state indicates that the communication link between the two has been established, and subsequent communication and data transmission operations can be performed. Next, a connection request is established between the virtual bus device in the connection state and the target virtual receiving device to obtain a request connection. Establishing a connection request means that on the basis of the preliminary connection state, the virtual bus device sends a formal connection request to the target virtual receiving device to confirm and strengthen the connection between the two. The purpose of this step is to ensure the stability and reliability of the connection and lay a solid foundation for subsequent data transmission. The content of the request connection usually includes the identification information, connection parameters, authentication information, etc. of the device. Then, the request connection is verified to obtain a verified connection state. Verifying the connection is a process of security and reliability inspection, the purpose of which is to confirm the legitimacy and validity of the requested connection. In this process, the virtual bus device and the target virtual receiving device will verify each other's identity and check whether the connection parameters meet the requirements. The verified connection state is the result of the verification process, indicating whether the connection request has passed the verification. If the verified connection state indicates that the connection request is legal and valid, the next step can be performed. If the verified connection status is that the virtual bus device is connected to the target virtual receiving device, a data transmission channel is established between the virtual bus device and the target virtual receiving device to obtain a data transmission connection path. The establishment of the data transmission channel is a key step in the entire connection process. This step will formally establish a communication link between the virtual bus device and the target virtual receiving device based on the result of the verified connection status.The data transmission channel is an efficient and stable communication path that ensures that data can be transmitted quickly and reliably between the virtual bus device and the target virtual receiving device. The data transmission connection path refers to the specific communication path between the virtual bus device and the target virtual receiving device after the data transmission channel is established. This path will be used for subsequent data exchange and communication operations. Through the above steps, the system can use WiFi P2P technology to connect the virtual bus device to the target virtual receiving device to ensure that the communication link between the two is stable and efficient. In this connection state, the virtual bus device and the target virtual receiving device can transmit data and complete various communication tasks. The whole process not only involves scanning the network environment and establishing a connection request, but also includes verification of the connection request and establishment of a data transmission channel to ensure the security and reliability of the connection. In summary, the process of connecting the virtual bus device to the target virtual receiving device through WiFi P2P technology, obtaining a connection state, and establishing a data transmission connection path between the virtual bus device in the connection state and the target virtual receiving device is a complex process involving multiple links and technical details. First, the network environment is scanned through WiFi P2P technology, and the virtual bus device and the target virtual receiving device are connected to the network to obtain a connection state. Next, a connection request is established between the virtual bus device in the connection state and the target virtual receiving device to obtain a requested connection. Then, the requested connection is verified to obtain a verified connection state. If the verified connection state is a connection between the virtual bus device and the target virtual receiving device, a data transmission channel is established between the virtual bus device requesting the connection and the target virtual receiving device to obtain a data transmission connection path. Through these steps, the system can ensure that the connection between the virtual bus device and the target virtual receiving device is stable and reliable, and can perform efficient data transmission and communication operations.

[0040] In a specific embodiment, performing data transmission based on the data transmission connection path to obtain a data transmission result includes: Performing network load balancing based on the data transmission connection path to obtain a balanced network load distribution; Based on the balanced network load distribution, adaptively select the data transmission connection path to obtain a selected transmission path; wherein the selected transmission path has at least one; Distribute the security key of the data to be transmitted based on the selected transmission path to obtain secure transmission data; The secure transmission data is transmitted between the virtual bus device and the target virtual receiving device to obtain a data transmission result.

[0041] Specifically, when explaining the scheme of the step of "transmitting data based on the data transmission connection path to obtain the data transmission result", it is first necessary to clarify the definition of the data transmission connection path and its role in the data transmission process. The data transmission connection path is one or more communication links between the virtual bus device and the target virtual receiving device, which is used to realize the transmission and exchange of data. In order to ensure the efficiency and security of data transmission, the system must perform network load balancing, adaptive selection of transmission paths and data security key distribution. First, network load balancing is performed based on the data transmission connection path to obtain a balanced network load distribution. Network load balancing refers to the reasonable distribution of the load of data transmission to multiple transmission paths to avoid overloading a certain path and improve the overall transmission efficiency and stability. Through network load balancing, the system can monitor the load of each transmission path in real time, and dynamically adjust the data allocation strategy according to the actual situation, so as to obtain a balanced network load distribution. Balanced network load distribution is the result of network load balancing, which represents the proportion of load allocated on different transmission paths, so that the system can efficiently utilize available resources and avoid network congestion and transmission bottlenecks. Then, based on the balanced network load distribution, the data transmission connection path is adaptively selected to obtain a selected transmission path. Adaptive selection refers to dynamically selecting the optimal transmission path according to the balanced network load distribution to ensure the efficiency and reliability of data transmission. At least one transmission path is selected, which means that the system can select one or more optimal paths for data transmission. The adaptive selection process takes into account a variety of factors, including the load condition of the path, transmission delay, bandwidth, reliability, etc. Through comprehensive evaluation, the system can select the transmission path that best suits the current data transmission needs. Then, based on the selected transmission path, the security key distribution of the data to be transmitted is performed to obtain secure transmission data. Data security key distribution is an important measure to ensure that data is not stolen or tampered with during transmission. By encrypting the data to be transmitted, the system can ensure the confidentiality and integrity of the data. Security key distribution is part of the encryption process. The system will distribute the key to the virtual bus device and the target virtual receiving device to ensure that they can correctly decrypt and verify the data. The obtained secure transmission data is encrypted data with high security and can be safely transmitted in an unsafe network environment. Finally, the secure transmission data is transmitted between the virtual bus device and the target virtual receiving device to obtain the data transmission result. Data transmission is the final step of the entire process. Through the selected transmission path, the virtual bus device will securely transmit the data to the target virtual receiving device. During the transmission process, the system will monitor the data transmission status in real time to ensure that the data can reach the destination smoothly. The data transmission result is a summary and feedback of the entire transmission process, indicating whether the data has been successfully transmitted to the target device.If no error or loss occurs during the data transmission process, the system will record the result of the successful state; if an unrecoverable error occurs, the result of the failed state will be recorded. In summary, the process of performing data transmission based on the data transmission connection path and obtaining the data transmission result is a complex process involving multiple links and technical details. First, network load balancing is performed based on the data transmission connection path to obtain a balanced network load distribution to ensure that the load of the transmission path is reasonably distributed. Then, based on the balanced network load distribution, the data transmission connection path is adaptively selected to obtain the selected transmission path, and the optimal transmission path is dynamically selected. Then, based on the selected transmission path, the security key distribution of the data to be transmitted is performed to obtain the secure transmission data, and the security of the data is ensured by encryption measures. Finally, the secure transmission data is transmitted between the virtual bus device and the target virtual receiving device to obtain the data transmission result, and the transmission status is monitored in real time to ensure that the data arrives at the destination smoothly. Through these steps, the system can achieve efficient, safe and reliable data transmission and ensure the communication quality and stability between the virtual bus device and the target virtual receiving device.

[0042] In a specific embodiment, the security key distribution of the data to be transmitted is performed based on the selected transmission path to obtain the secure transmission data, including: Performing a security assessment on the selected transmission path through a preset security key distribution protocol to obtain security parameters of the selected transmission path; Sorting the security parameters from large to small to obtain a sorting result; Screening the selected transmission path based on the sorting result to obtain a screened transmission path; Distributing security keys on the screening transmission path to generate security keys; The data to be transmitted is encrypted based on the security key to obtain encrypted data, and the encrypted data is used as secure transmission data.

[0043] Specifically, when explaining the scheme of the step of "distributing the security key of the data to be transmitted based on the selected transmission path to obtain the secure transmission data", it is necessary to describe in detail how to ensure the security and integrity of the data during the data transmission process. This process involves the security assessment, sorting, screening, and final security key distribution and data encryption of the selected transmission path. First, the security assessment of the selected transmission path is performed through a preset security key distribution protocol to obtain the security parameters of the selected transmission path. Security assessment is a key step to ensure the security and reliability of the data transmission path. The preset security key distribution protocol is a set of rules and standards for evaluating and verifying the security of the transmission path. It will perform a detailed security assessment on each selected transmission path based on the characteristics of the transmission path, such as encryption strength, authentication mechanism, path historical security records, etc. The result of the assessment is a security parameter, which indicates the security level and reliability of the path. Next, the security parameters are sorted from large to small to obtain a sorting result. The sorting is to find the path with the highest security among many selected transmission paths. The system will sort from large to small according to the security parameters of each transmission path, and the sorting result makes the most secure path come first, and so on. Through sorting, the system can intuitively identify which paths perform best in terms of security, providing a basis for subsequent screening. Then, based on the sorting results, the selected transmission paths are screened to obtain the screened transmission paths. Screening refers to selecting several transmission paths with the highest security based on the sorting results. The screening criteria can be set according to specific application scenarios and security requirements, such as selecting the top N paths with the highest security parameters, or setting a security threshold and selecting all paths that exceed the threshold. The screened transmission paths are the set of paths that are finally selected for data transmission. These paths have undergone strict security evaluation and screening and can provide high-security transmission guarantees. Next, security keys are distributed to the screened transmission paths to generate security keys. Security key distribution is an important measure to ensure that data is not stolen or tampered with during transmission. The system will use a preset security key distribution protocol to distribute security keys to each device on the screened transmission path. Security keys are the core for encrypting and decrypting data. The distribution process must ensure the security of the key to prevent leakage during transmission. The process of generating security keys may involve technologies such as random number generation and key exchange protocols (such as Diffie-Hellman) to ensure the strength and security of the key. Finally, the data to be transmitted is encrypted based on the security key to obtain encrypted data, and the encrypted data is used as secure transmission data. Encryption is the use of security keys to process the data to be transmitted, so that even if the data is intercepted during the transmission process, it cannot be interpreted. The encryption algorithm can use symmetric encryption (such as AES) or asymmetric encryption (such as RSA), and the specific choice depends on the sensitivity of the data and the requirements of the transmission environment.Encrypted data is data that has been encrypted and has high security, and can be safely transmitted in an unsafe network environment. Ultimately, the system will use the encrypted data as secure transmission data and transmit data on the screened transmission path to ensure the confidentiality and integrity of the data. In summary, the process of distributing the security key of the data to be transmitted based on the selected transmission path to obtain the secure transmission data is a complex process involving multiple links and technical details. First, the security of the selected transmission path is evaluated by a preset security key distribution protocol to obtain the security parameters of the selected transmission path. Then, the security parameters are sorted from large to small to obtain the sorting result. Then, based on the sorting result, the selected transmission path is screened to obtain the screened transmission path. Next, the security key distribution is performed on the screened transmission path to generate a security key. Finally, the data to be transmitted is encrypted based on the security key to obtain encrypted data, and the encrypted data is used as secure transmission data. This process ensures that the data is not stolen or tampered with during transmission, and guarantees the security and integrity of the data, thereby providing a solid foundation for efficient and secure data transmission between the virtual bus device and the target virtual receiving device.

[0044] The above describes the virtual bus device transmission method based on BLE and WiFi P2P in the embodiment of the present invention. The following describes the virtual bus device transmission device based on BLE and WiFi P2P in the embodiment of the present invention. Figure 2 In one embodiment of the present invention, a virtual bus device transmission device based on BLE and WiFi P2P includes: The registration module 21 is used to initialize the virtual bus device, obtain a unique identifier corresponding to the virtual bus device, and register the unique identifier to obtain registration information of the virtual bus device; wherein the registration information includes the name, type and network configuration of the virtual bus device; A pairing module 22, configured to perform broadcast pairing with a virtual receiving device through the virtual bus device according to a preset BLE technology and the registration information to obtain a pairing request; A screening module 23, configured to screen the virtual receiving devices based on the pairing request to obtain a target virtual receiving device; The connection module 24 is used to connect the virtual bus device to the target virtual receiving device through the WiFi P2P technology, obtain the connection state, and establish a data transmission connection path between the virtual bus device in the connection state and the target virtual receiving device; The transmission module 25 is used to perform data transmission using the data transmission connection path to obtain a data transmission result; wherein the data transmission result includes a success state or a failure state; A success module 26, used for indicating that the data transmission between the virtual bus device and the target virtual receiving device is successful if the data transmission result is a success state; The failure module 27 is used to re-transmit the data if the data transmission result is a failure state.

[0045] In this embodiment, for the specific implementation of each unit in the above system embodiment, please refer to the above method embodiment, which will not be repeated here.

[0046] Reference Figure 3 The present invention also provides a computer device in an embodiment, wherein the internal structure of the computer device can be as follows: Figure 3 As shown. The computer device includes a processor, a memory, a display screen, an input device, a network interface and a database connected through a system bus. Among them, the processor designed by the computer is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the corresponding data in this embodiment. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the above method is implemented.

[0047] Those skilled in the art will understand that Figure 3 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device to which the solution of the present invention is applied.

[0048] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above method is implemented. It can be understood that the computer-readable storage medium in this embodiment can be a volatile readable storage medium or a non-volatile readable storage medium.

[0049] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided by the present invention and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double-speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM.

[0050] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.

[0051] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A virtual bus device transmission method based on BLE and WiFi P2P, characterized in that: The following steps are involved: Initializing the virtual bus device to obtain a unique identifier corresponding to the virtual bus device, and registering the unique identifier to obtain registration information of the virtual bus device; wherein the registration information includes the name, type and network configuration of the virtual bus device; The virtual bus device broadcasts pairing with the virtual receiving device according to the preset BLE technology and the registration information to obtain a pairing request; Screening the virtual receiving device based on the pairing request to obtain a target virtual receiving device; By using WiFi P2P technology, the virtual bus device is connected to the target virtual receiving device through a network to obtain a connection state, and a data transmission connection path is established between the virtual bus device in the connection state and the target virtual receiving device; Performing data transmission using the data transmission connection path to obtain a data transmission result; wherein the data transmission result includes a success state or a failure state; If the data transmission result is a success state, it means that the data transmission between the virtual bus device and the target virtual receiving device is successful; If the data transmission result is a failure state, the data transmission is performed again.

2. The method for transmitting a virtual bus device based on BLE and WiFi P2P according to claim 1, characterized in that: Initializing the virtual bus device, obtaining a unique identifier corresponding to the virtual bus device, and registering the unique identifier to obtain registration information of the virtual bus device, including: Initializing the power supply of the virtual bus device to ensure that the virtual bus device is in working state; Performing a device hardware self-check and hardware loading on the virtual bus device in working state to confirm that the device hardware of the virtual bus device operates normally, thereby obtaining a normal virtual bus device; Generating a unique identifier for the normal virtual bus device to obtain a unique identifier, and encoding the unique identifier to obtain an encoded identifier; Register the normal virtual bus device based on the coded identifier to obtain a registration request; Communicate with the registration server of the normal virtual bus device based on the registration request to obtain a registration response and registration information corresponding to the registration response.

3. The method for transmitting virtual bus devices based on BLE and WiFi P2P according to claim 1, characterized in that: The virtual bus device broadcasts pairing with the virtual receiving device according to the preset BLE technology and the registration information to obtain a pairing request, including: Initialize the technical parameters of the preset BLE technology through the preset configuration protocol stack technology to obtain the BLE communication protocol stack; Performing information mapping on the registration information based on the BLE communication protocol stack to generate a registration mapping signal; Utilizing the registration mapping signal, broadcasting to the virtual receiving device through the virtual bus device to obtain a virtual receiving device identification code; A multi-level scanning filtering algorithm is used to filter the virtual receiving device identification code to obtain a pairing request message; The virtual receiving device is paired based on the pairing request message to obtain a pairing request.

4. The method for transmitting virtual bus devices based on BLE and WiFi P2P according to claim 1, characterized in that: The virtual receiving device is screened based on the pairing request to obtain the target virtual receiving device, including: Extracting information from the protocol field of the virtual receiving device based on the pairing request to obtain extracted information; wherein the extracted information includes the ID of the virtual receiving device, the signal strength of the virtual receiving device, the response time of the virtual receiving device, and the type of the virtual receiving device; Converting the extracted information into a vector format to obtain a converted format vector; Constructing an attribute matrix based on the conversion format vector; wherein the rows of the attribute matrix represent each virtual receiving device, and the columns of the attribute matrix represent different attributes of each virtual receiving device; Defining an attribute vector of a preset target virtual receiving device, and calculating a similarity between the attribute vector of the preset target virtual receiving device and a column vector of an attribute matrix; The virtual receiving device corresponding to the column vector with the largest similarity is taken as the target virtual receiving device.

5. The method for transmitting virtual bus devices based on BLE and WiFi P2P according to claim 1, characterized in that: The virtual bus device and the target virtual receiving device are connected to a network through WiFi P2P technology to obtain a connection state, and a data transmission connection path is established between the virtual bus device in the connection state and the target virtual receiving device, including: Scan the network environment through WiFi P2P technology, respectively connect the virtual bus device and the target virtual receiving device to the network, and obtain the connection status; wherein the connection status is the connection between WiFi P2P technology and the virtual bus device and the target virtual receiving device respectively; Establishing a connection request between the virtual bus device in the connected state and the target virtual receiving device to obtain a requested connection; Verifying the requested connection to obtain a verification connection status; If the verified connection state is a connection between the virtual bus device and the target virtual receiving device, a data transmission channel is established between the virtual bus device requesting the connection and the target virtual receiving device to obtain a data transmission connection path.

6. The method for transmitting virtual bus devices based on BLE and WiFi P2P according to claim 1, characterized in that: Performing data transmission based on the data transmission connection path to obtain a data transmission result includes: Performing network load balancing based on the data transmission connection path to obtain a balanced network load distribution; Based on the balanced network load distribution, adaptively select the data transmission connection path to obtain a selected transmission path; wherein the selected transmission path has at least one; Distribute the security key of the data to be transmitted based on the selected transmission path to obtain secure transmission data; The secure transmission data is transmitted between the virtual bus device and the target virtual receiving device to obtain a data transmission result.

7. The method for transmitting virtual bus devices based on BLE and WiFi P2P according to claim 6, characterized in that: The method of distributing a security key of the data to be transmitted based on the selected transmission path to obtain secure transmission data includes: Performing a security assessment on the selected transmission path through a preset security key distribution protocol to obtain security parameters of the selected transmission path; Sorting the security parameters from large to small to obtain a sorting result; Screening the selected transmission path based on the sorting result to obtain a screened transmission path; Distributing security keys on the screening transmission path to generate security keys; The data to be transmitted is encrypted based on the security key to obtain encrypted data, and the encrypted data is used as secure transmission data.

8. A virtual bus device transmission device based on BLE and WiFi P2P, characterized in that: include: A registration module, used to initialize the virtual bus device, obtain a unique identifier corresponding to the virtual bus device, and register the unique identifier to obtain registration information of the virtual bus device; wherein the registration information includes the name, type and network configuration of the virtual bus device; A pairing module, used to perform broadcast pairing with a virtual receiving device through the virtual bus device according to a preset BLE technology and the registration information to obtain a pairing request; A screening module, used for screening virtual receiving devices based on the pairing request to obtain a target virtual receiving device; A connection module, used to connect the virtual bus device to the target virtual receiving device through a WiFi P2P technology, obtain a connection state, and establish a data transmission connection path between the virtual bus device in the connection state and the target virtual receiving device; A transmission module, used to perform data transmission using the data transmission connection path to obtain a data transmission result; wherein the data transmission result includes a success state or a failure state; A success module, used for indicating that the data transmission between the virtual bus device and the target virtual receiving device is successful if the data transmission result is a success state; The failure module is used to re-transmit the data if the data transmission result is a failure state.

9. A computer device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.