Vehicle-mounted data interaction method and device based on WiFi and Bluetooth, equipment, medium and product
By identifying data type and channel status parameters, and employing a dual-channel parallel transmission method using WiFi and Bluetooth, the data is segmented into a first data segment and a second data segment. This solves the problem that existing technologies cannot simultaneously achieve high bandwidth and low latency, thus realizing efficient, reliable, and real-time vehicle data transmission.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- XINGHE ZHILIAN AUTOMOBILE TECH CO LTD
- Filing Date
- 2026-02-09
- Publication Date
- 2026-04-21
AI Technical Summary
Existing vehicle data interaction methods cannot simultaneously meet the requirements of high bandwidth and low latency, resulting in the inability to meet the real-time requirements of control commands that are extremely sensitive to latency in complex vehicle movement scenarios. Furthermore, a single communication protocol has bottlenecks when carrying high-definition video streams and large map packages.
By identifying the type attribute information and channel status parameters of the data to be transmitted, the data is divided into a first data segment and a second data segment using a dual-channel parallel transmission method of WiFi and Bluetooth, and transmitted through WiFi and Bluetooth communication interfaces respectively. The vehicle end then reassembles the data.
It achieves high bandwidth, low latency, and high reliability in vehicle-mounted data transmission, meeting the real-time transmission requirements of latency-sensitive control commands and high-bandwidth data.
Smart Images

Figure CN121908242A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle communication technology, and in particular to a method, apparatus, device, medium and product for in-vehicle data interaction based on WiFi and Bluetooth. Background Technology
[0002] Currently, automotive in-vehicle networks typically use a single wireless communication protocol (such as WiFi or Bluetooth only) or simple protocol switching when transmitting data with terminals. Common methods have the following inherent drawbacks: A single high-bandwidth channel (such as WiFi): While offering high throughput, it suffers from deficiencies in connection stability, latency jitter, and power consumption control. Especially in complex vehicle movement scenarios, it cannot meet the real-time requirements of control commands (such as steering and braking signals) that are extremely sensitive to latency. A single low-latency channel (such as Bluetooth): While offering low latency and stable connection, its limited bandwidth makes it difficult to handle high-bandwidth data such as high-definition video streams and large map packages, becoming a bottleneck for data throughput in infotainment or autonomous driving systems. Summary of the Invention
[0003] The purpose of this invention is to provide a vehicle data interaction method, device, equipment, medium, and product based on WiFi and Bluetooth, which can solve the technical problem that traditional vehicle data interaction methods cannot simultaneously meet the requirements of high bandwidth, low latency, and high reliability for vehicle data transmission.
[0004] To achieve the above objectives, embodiments of the present invention provide a vehicle data interaction method based on WiFi and Bluetooth, comprising: Acquire the data to be transmitted, identify the data type attribute information of the data to be transmitted, and obtain the channel status parameters of the WiFi communication interface and the Bluetooth communication interface; Based on the data type attribute information and the channel status parameters, the fragmentation strategy of the data to be transmitted is determined, and the data to be transmitted is divided into a first data fragment and a second data fragment based on the fragmentation strategy. The first data fragment is transmitted to the vehicle via the WiFi communication interface, and the second data fragment is transmitted to the vehicle via the Bluetooth communication interface, so that the vehicle can reassemble the received first and second data fragments to obtain the target data.
[0005] As an improvement to the above solution, obtaining the channel status parameters of the WiFi communication interface and the Bluetooth communication interface includes: The first signal strength, first transmission delay, and first packet loss rate of the WiFi communication interface are obtained to obtain the first link state parameters of the WiFi communication interface. The second signal strength, second transmission delay, and second packet loss rate of the Bluetooth communication interface are obtained to obtain the second link state parameters of the Bluetooth communication interface.
[0006] As an improvement to the above scheme, determining the fragmentation strategy of the data to be transmitted based on the data type attribute information and the channel state parameters includes: Based on the data type attribute information, determine the data type and security level of the data to be transmitted; The link quality assessment result is determined based on the first link status parameters of the WiFi communication interface and the second link status parameters of the Bluetooth communication interface. Based on the data type and security level of the data to be transmitted, as well as the link quality assessment results, the fragmentation strategy is generated according to a preset set of traffic splitting decision rules.
[0007] As an improvement to the above solution, the step of determining the link quality assessment result based on the first link state parameters of the WiFi communication interface and the second link state parameters of the Bluetooth communication interface includes: The first link state parameter of the WiFi communication interface is compared with a preset WiFi threshold, and a weighted score is calculated based on the degree of influence of each parameter on the link quality to obtain the score of the WiFi communication interface. The second link status parameters of the Bluetooth communication interface are compared with a preset Bluetooth threshold, and a weighted score is calculated based on the degree of influence of each parameter on the link quality to obtain the score of the Bluetooth communication interface. The link quality assessment result is obtained based on the scores of the WiFi communication interface and the Bluetooth communication interface.
[0008] As an improvement to the above scheme, the preset traffic splitting decision rule set includes the data type, the security level, the correspondence between the link quality assessment result and the fragmentation ratio.
[0009] As an improvement to the above scheme, the step of generating the fragmentation strategy based on the data type and security level of the data to be transmitted, and the link quality assessment results, according to a preset set of traffic splitting decision rules, includes: When the data type belongs to the high-bandwidth data range, a first sharding strategy is generated; in the first sharding strategy, the proportion of the first data shard is greater than the proportion of the second data shard. When the data type falls within the range of low-latency control instructions, a second fragmentation strategy is generated; in the second fragmentation strategy, the proportion of the first data fragment is less than the proportion of the second data fragment. When the security level is critical data level, a third sharding strategy is generated; in the third sharding strategy, the first data shard is the original data, and the second data shard is the backup data; For energy-sensitive scenarios, a fourth sharding strategy is generated; in the fourth sharding strategy, the data proportion of the low-energy communication interface is greater than the data proportion of the high-energy communication interface.
[0010] This invention also provides an in-vehicle data interaction device based on WiFi and Bluetooth, comprising: The acquisition module is used to acquire the data to be transmitted, identify the data type attribute information of the data to be transmitted, and acquire the channel status parameters of the WiFi communication interface and the Bluetooth communication interface. The fragmentation module is used to determine the fragmentation strategy of the data to be transmitted based on the data type attribute information and the channel status parameters, and to divide the data to be transmitted into a first data fragment and a second data fragment based on the fragmentation strategy. The transmission module is used to transmit the first data fragment to the vehicle end via the WiFi communication interface and the second data fragment to the vehicle end via the Bluetooth communication interface, so that the vehicle end can reassemble the received first data fragment and second data fragment to obtain the target data.
[0011] This invention also provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the in-vehicle data interaction method based on WiFi and Bluetooth described above.
[0012] This invention also provides a computer-readable storage medium, which includes a stored computer program, wherein the computer program, when running, controls the device where the computer-readable storage medium is located to execute the in-vehicle data interaction method based on WiFi and Bluetooth described above.
[0013] This invention also provides a computer program product, which includes a computer program or computer instructions. When the computer program or computer instructions are executed by a processor, they implement the in-vehicle data interaction method based on WiFi and Bluetooth described above.
[0014] Compared to existing technologies, the beneficial effects of the in-vehicle data interaction method, apparatus, device, medium, and product based on WiFi and Bluetooth provided by this invention are as follows: By acquiring data to be transmitted, identifying the data type attribute information of the data to be transmitted, and acquiring the channel status parameters of the WiFi communication interface and the Bluetooth communication interface; based on the data type attribute information and the channel status parameters, determining the fragmentation strategy of the data to be transmitted, and dividing the data to be transmitted into a first data fragment and a second data fragment based on the fragmentation strategy; transmitting the first data fragment to the vehicle end through the WiFi communication interface, and transmitting the second data fragment to the vehicle end through the Bluetooth communication interface, so that the vehicle end can reassemble the received first data fragment and second data fragment to obtain the target data. This invention, by transmitting the in-vehicle data to be transmitted through dual-channel parallel transmission according to the fragmentation strategy, can simultaneously meet the requirements of high bandwidth, low latency, and high reliability in in-vehicle data transmission. Attached Figure Description
[0015] Figure 1 This is a flowchart illustrating a preferred embodiment of an in-vehicle data interaction method based on WiFi and Bluetooth provided by the present invention. Figure 2 This is a schematic diagram of a preferred embodiment of an in-vehicle data interaction device based on WiFi and Bluetooth provided by the present invention; Figure 3 This is a schematic diagram of a preferred embodiment of a terminal device provided by the present invention. Detailed Implementation
[0016] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0017] Please see Figure 1 , Figure 1 This is a flowchart illustrating a preferred embodiment of a vehicle-to-everything (V2X) data interaction method based on WiFi and Bluetooth provided by the present invention. The V2X data interaction method includes: S1, acquire the data to be transmitted, identify the data type attribute information of the data to be transmitted, and acquire the channel status parameters of the WiFi communication interface and the Bluetooth communication interface; S2, based on the data type attribute information and the channel status parameters, determine the fragmentation strategy of the data to be transmitted, and divide the data to be transmitted into a first data fragment and a second data fragment based on the fragmentation strategy; S3, the first data fragment is transmitted to the vehicle terminal through the WiFi communication interface, and the second data fragment is transmitted to the vehicle terminal through the Bluetooth communication interface, so that the vehicle terminal can reassemble the received first data fragment and second data fragment to obtain the target data.
[0018] Specifically, this invention provides a vehicle-to-everything (V2X) data interaction method based on WiFi and Bluetooth, applied to an application end. The application end refers to the terminal device initiating the V2X data interaction request, such as a user's mobile phone, tablet computer, or cloud server. After acquiring the data to be transmitted, the application end identifies its data type attribute information and simultaneously acquires the channel status parameters of the WiFi and Bluetooth communication interfaces. The data to be transmitted refers to various types of data that the application end needs to transmit to the vehicle, including high-definition video streams, map data packets, vehicle control commands, and security authentication information. The data type attribute information is the core feature label of the data to be transmitted, used to distinguish the service type of the data (e.g., high bandwidth / low latency / high security level). The WiFi communication interface is a wireless communication module on the application end that supports WiFi protocols (e.g., IEEE 802.11 series), and the Bluetooth communication interface is a short-range wireless communication module on the application end that supports Bluetooth protocols (e.g., Bluetooth 5.0 and above). The channel status parameters are quantitative indicators reflecting the real-time transmission quality of the WiFi and Bluetooth links, including signal strength, transmission delay, and packet loss rate. Based on data type attribute information and channel status parameters, a fragmentation ratio allocation strategy, i.e., a fragmentation strategy, is determined. Based on this strategy, the data to be transmitted is divided into a first data fragment and a second data fragment, which are transmitted to the vehicle terminal in parallel via WiFi and Bluetooth, respectively. The fragmentation ratio allocation strategy is a dual-channel data allocation rule generated based on data type attributes and channel status. It defines the allocation ratio and transmission priority of the data to be transmitted in the WiFi and Bluetooth channels. In this embodiment, it is the core decision rule connecting data characteristics and dual-channel transmission, employing a matching algorithm based on a preset traffic splitting decision rule set. The first data fragment is a data segment allocated to the WiFi channel according to the strategy, adapting to the high bandwidth characteristics of WiFi and primarily carrying high-volume data. The second data fragment is a data segment allocated to the Bluetooth channel according to the strategy, adapting to the low latency characteristics of Bluetooth and primarily carrying control signaling and verification information. The vehicle terminal receives the first and second data fragments sent by the application terminal via WiFi and Bluetooth based on the fragmentation ratio allocation strategy and reassembles them to obtain the target data. The target data is the complete and usable data obtained after data reassembly, and is the final output of this embodiment, used to support the business applications of the in-vehicle terminal. The vehicle end refers to the in-vehicle terminal equipment that receives data, such as the vehicle infotainment system and the in-vehicle T-BOX.
[0019] The embodiments of the present invention transmit the vehicle data to be transmitted through dual channels in parallel according to the fragmentation strategy, which can take into account the requirements of high bandwidth, low latency and high reliability of vehicle data transmission.
[0020] In another preferred embodiment, obtaining the channel status parameters of the WiFi communication interface and the Bluetooth communication interface includes: The first signal strength, first transmission delay, and first packet loss rate of the WiFi communication interface are obtained to obtain the first link state parameters of the WiFi communication interface. The second signal strength, second transmission delay, and second packet loss rate of the Bluetooth communication interface are obtained to obtain the second link state parameters of the Bluetooth communication interface.
[0021] Specifically, in this embodiment of the invention, the application performs a channel probing operation on the WiFi communication interface to obtain the first signal strength parameter, the first transmission delay parameter, and the first packet loss rate parameter of the WiFi communication interface, thereby obtaining the first link state parameter of the WiFi communication interface; simultaneously, it performs a channel measurement operation on the Bluetooth communication interface to obtain the second signal strength parameter, the second transmission delay parameter, and the second packet loss rate parameter of the Bluetooth communication interface, thereby obtaining the second link state parameter of the Bluetooth communication interface. The first link state parameter is a comprehensive link quality evaluation value corresponding to the WiFi communication interface, calculated from multiple basic parameters of the WiFi link. The second link state parameter is a comprehensive link quality evaluation value corresponding to the Bluetooth communication interface, calculated from multiple basic parameters of the Bluetooth link, and its function corresponds to the first link state parameter, used to quantify the transmission capability of the Bluetooth link.
[0022] Channel probing is an active detection of the link quality of the WiFi communication interface, employing an interactive algorithm for sending and receiving WiFi link probing frames. The first signal strength parameter is the Received Signal Strength Indicator (RSSI) of the WiFi link, reflecting the strength of the WiFi signal and serving as a core parameter for evaluating WiFi link stability. The first transmission delay parameter is the Round-Trip Time (RTT) of the WiFi link, reflecting the latency characteristics of WiFi data transmission. The first packet loss rate parameter is the proportion of data packets lost by the WiFi link, reflecting the transmission reliability of the WiFi link. In this embodiment, these three parameters serve as the basic input data for calculating the first link state parameter.
[0023] The channel measurement operation is an active detection behavior of the Bluetooth communication interface link quality, employing an interactive algorithm for Bluetooth link test packet transmission and response parsing. The second signal strength parameter is a signal reception strength indicator of the Bluetooth link, reflecting the strength of the Bluetooth signal. The second transmission delay parameter is the data packet transmission delay of the Bluetooth link. The second packet loss rate parameter is the proportion of data packets lost by the Bluetooth link; these three parameters serve as the basic input data for calculating the second link status parameters in this embodiment.
[0024] In yet another preferred embodiment, determining the fragmentation strategy of the data to be transmitted based on the data type attribute information and the channel state parameters includes: Based on the data type attribute information, determine the data type and security level of the data to be transmitted; The link quality assessment result is determined based on the first link status parameters of the WiFi communication interface and the second link status parameters of the Bluetooth communication interface. Based on the data type and security level of the data to be transmitted, as well as the link quality assessment results, the fragmentation strategy is generated according to a preset set of traffic splitting decision rules.
[0025] Specifically, in this embodiment of the invention, the data type and security level of the data to be transmitted are determined based on the data type attribute information. The data type is a service category categorized based on the data type attribute information, such as high-bandwidth video, low-latency control, and sensor data. The security level is a security protection level categorized based on the data type attribute information, such as ordinary data, important data, and critical security data.
[0026] Based on the first link state parameters of the WiFi communication interface and the second link state parameters of the Bluetooth communication interface, the link quality assessment result is determined. This link quality assessment result is a comparative evaluation of the link quality of the WiFi and Bluetooth communication interfaces, such as "WiFi link quality is better than Bluetooth" or "Bluetooth link stability is higher." The technology used is a threshold comparison and weighted scoring algorithm based on link state parameters. In this embodiment, its function is to provide a comparative basis for link capabilities in fragmentation allocation. Based on the data type, security level, and link quality assessment result of the data to be transmitted, a fragmentation strategy is generated according to a preset set of traffic splitting decision rules. This preset set of traffic splitting decision rules is a set of policy matching rules pre-stored on the application side, containing the correspondence between data type, security level, link quality assessment result, and fragmentation ratio. The technology used is rule engine technology.
[0027] In yet another preferred embodiment, determining the link quality assessment result based on the first link state parameters of the WiFi communication interface and the second link state parameters of the Bluetooth communication interface includes: The first link state parameter of the WiFi communication interface is compared with a preset WiFi threshold, and a weighted score is calculated based on the degree of influence of each parameter on the link quality to obtain the score of the WiFi communication interface. The second link status parameters of the Bluetooth communication interface are compared with a preset Bluetooth threshold, and a weighted score is calculated based on the degree of influence of each parameter on the link quality to obtain the score of the Bluetooth communication interface. The link quality assessment result is obtained based on the scores of the WiFi communication interface and the Bluetooth communication interface.
[0028] Specifically, in this embodiment of the invention, the first link status parameters of the WiFi communication interface are compared with a preset WiFi threshold. Each parameter is divided into 3-5 levels (e.g., excellent, good, poor) according to the threshold, and a corresponding score is assigned (e.g., excellent = 3 points, good = 2 points, poor = 1 point). A weighted score is calculated based on the impact of each parameter on link quality to obtain the score of the WiFi communication interface. Similarly, the second link status parameters of the Bluetooth communication interface are compared with a preset Bluetooth threshold. Each parameter is divided into 3-5 levels (e.g., excellent, good, poor) according to the threshold, and a corresponding score is assigned (e.g., excellent = 3 points, good = 2 points, poor = 1 point). A weighted score is calculated based on the impact of each parameter on link quality to obtain the score of the Bluetooth communication interface. Based on the scores of both the WiFi and Bluetooth communication interfaces, a link quality evaluation result is obtained. For example, if the WiFi score > the Bluetooth score, then "the WiFi link quality is better than the Bluetooth score." If the Bluetooth score > the WiFi score, then "the Bluetooth link stability is higher."
[0029] In another preferred embodiment, the step of generating the fragmentation strategy based on the data type and security level of the data to be transmitted, and the link quality assessment result, according to a preset set of traffic splitting decision rules, includes: When the data type belongs to the high-bandwidth data range, a first sharding strategy is generated; in the first sharding strategy, the proportion of the first data shard is greater than the proportion of the second data shard. When the data type falls within the range of low-latency control instructions, a second fragmentation strategy is generated; in the second fragmentation strategy, the proportion of the first data fragment is less than the proportion of the second data fragment. When the security level is critical data level, a third sharding strategy is generated; in the third sharding strategy, the first data shard is the original data, and the second data shard is the backup data; For energy-sensitive scenarios, a fourth sharding strategy is generated; in the fourth sharding strategy, the data proportion of the low-energy communication interface is greater than the data proportion of the high-energy communication interface.
[0030] Specifically, in this embodiment of the invention, when the data type belongs to the high-bandwidth data range, a high-load WiFi first sharding strategy is generated. It should be noted that the first sharding strategy is a sharding allocation rule for high-bandwidth data. Its core is to allocate a higher proportion of transmission load to the WiFi interface. In this embodiment, its function is to utilize the high bandwidth characteristics of WiFi to meet the transmission needs of large-volume data. The preset high-bandwidth data range is a predefined set of high-volume data types, such as 4K video streams and 1080P map data packets. The technology used is a classification rule based on data traffic thresholds and service types. In this embodiment, its function is to determine whether the data to be transmitted is suitable for the first sharding strategy. This embodiment of the invention can determine the data proportion of the WiFi channel based on a WiFi high-proportion load allocation coefficient. The WiFi high-proportion load allocation coefficient is a WiFi channel data proportion parameter defined in the first sharding strategy, such as 70% or 80%, used to quantify the load allocation ratio of the WiFi channel.
[0031] When the data type falls within the range of low-latency control commands, a second fragmentation strategy prioritizing Bluetooth transmission is generated. It should be noted that the second fragmentation strategy is a fragmentation allocation rule for low-latency control commands. Its core is to allocate priority transmission rights to the Bluetooth interface. In this embodiment, its function is to utilize Bluetooth's low-latency characteristics to meet the real-time transmission requirements of control commands. The preset low-latency control command range is a predefined set of low-latency data types, such as vehicle start / stop commands and air conditioning control commands. The technology used is a classification rule based on command response latency requirements. In this embodiment, its function is to determine whether the data to be transmitted is suitable for the second fragmentation strategy. This embodiment of the invention can determine the data proportion of the Bluetooth channel based on Bluetooth priority transmission right configuration parameters. These parameters are transmission priority rules defined in the second fragmentation strategy, such as "Bluetooth fragments are sent first" and "Bluetooth fragments preempt channel access takes precedence over WiFi," to ensure low-latency transmission of control commands.
[0032] When the security level is critical data level, a redundant backup third sharding strategy is generated. It should be noted that the third sharding strategy is a sharding allocation rule for critical security data. Its core is to create redundant backups for data shards on two channels. In this embodiment, its role is to improve the transmission reliability of critical data. The preset critical data level is a predefined high-security data level, such as vehicle identification information and braking system control commands. The technology used is a grading rule based on the degree of data security impact. In this embodiment, its role is to determine whether the data to be transmitted is suitable for the third sharding strategy. This embodiment of the invention can determine the redundant backup sharding generation rules based on the redundant backup sharding generation rules. These rules are the backup data creation rules defined in the third sharding strategy, such as "complete data copy" and "sharded data mirroring," used to guide the generation of backup shards.
[0033] For critical data levels, the application side copies the data to be transmitted to generate backup data and divides it into backup fragments. The original fragments and backup fragments are sent simultaneously via WiFi and Bluetooth.
[0034] The vehicle-side performs arrival order detection and selects the first arriving complete fragment for reassembly, discarding redundant fragments. The arrival order detection parameters are quantitative indicators used by the vehicle-side to detect the arrival time of fragment data, such as timestamp accuracy and arrival time difference thresholds. The technology used is a timestamp recording and comparison algorithm based on the system clock. In this embodiment, its function is to identify the first arriving complete data fragment. For example, the vehicle-side sends the received fragments to the reassembly buffer, sorts them by global sequence number, and selects the first arriving complete fragment based on the timestamp marker to submit to the upper layer. If a fragment does not arrive completely, it waits for another channel to supplement it; if a fragment verification error occurs, it waits for the redundant fragments to be recovered before reassembly. The reassembly buffer is the memory space used by the vehicle-side to temporarily store the received fragment data. In this embodiment, its function is to provide a data storage medium for fragment sorting and reassembly. The global sequence number marking rule is a rule used to add a globally unique sequence number to the fragment data. The technology used is a sequence number auto-incrementing generation algorithm. In this embodiment, its function is to provide a unified identification basis for fragment sorting. The data fragment sorting algorithm parameters are configuration parameters used to guide the sorting of fragmented data, such as the sorting basis (ascending sequence number) and sorting trigger condition (fragment reception completion). The technology used is a fast sorting algorithm based on sequence numbers. In this embodiment, its function is to organize unordered fragments into an ordered data sequence. The timestamp comparison threshold is a time difference parameter used to determine the arrival time of fragments. In this embodiment, its function is to quantify the arrival order of fragments. The complete data fragment submission trigger condition is a rule used to trigger the vehicle end to submit the reassembled data to the upper-layer application, such as "all fragments have been received and verified." In this embodiment, its function is to ensure that only complete and usable data is used by the upper-layer application. The missing data fragment waiting timeout threshold is a parameter used to define the maximum time the vehicle end can wait for missing fragments. In this embodiment, its function is to avoid excessive delays caused by waiting for missing fragments. The verification error detection algorithm parameters are configuration parameters used to detect whether there are transmission errors in the fragmented data, such as checksum calculation rules and error thresholds. The technology used is the Cyclic Redundancy Check (CRC) algorithm. In this embodiment, its function is to identify erroneous fragmented data. The redundant data fragmentation and replacement rule is an operational rule used to guide the vehicle end to use redundant fragments to replace erroneous / missing fragments. In this embodiment, its role is to ensure the success rate of data reassembly and ultimately generate complete target data.
[0035] Based on the link state parameter comparison results, a fourth sharding strategy for energy consumption optimization is generated. It should be noted that the fourth sharding strategy is a sharding allocation rule for energy-sensitive scenarios. Its core is to allocate a higher proportion of transmission load to low-energy communication interfaces. In this embodiment, its function is to reduce the overall transmission energy consumption of the application. This embodiment of the invention uses link state parameters to compare the energy consumption of WiFi and Bluetooth links, such as energy consumption per unit data transmission and idle state energy consumption. The technology used is an energy consumption modeling algorithm based on link state parameters. In this embodiment, its function is to identify communication interfaces with lower energy consumption. This embodiment of the invention can determine the data proportion of low-energy channels based on the low-energy interface load allocation coefficient. The low-energy interface load allocation coefficient is a low-energy channel data proportion parameter defined in the fourth sharding strategy, used to quantify the load allocation ratio of low-energy channels.
[0036] For example, in a specific application, the application performs data preprocessing and intelligent sharding decision-making in this embodiment of the invention: Step 1: The application first acquires the data to be transmitted (such as 4K navigation map, vehicle control commands, security authentication information), extracts data type attribute information through feature recognition algorithm, and distinguishes whether the data is high-bandwidth, low-latency control, or critical security. At the same time, it performs link detection / measurement operations on the WiFi and Bluetooth communication interfaces, collects basic parameters such as signal strength (RSSI), transmission delay, and packet loss rate, and calculates the quantified WiFi first link state parameters and Bluetooth second link state parameters.
[0037] Step 2: The application calls the preset traffic splitting decision rule set, and combines the data type, security level, and link quality assessment results to generate a specific sharding ratio allocation strategy: For high-bandwidth data (such as high-definition video), the first segmentation strategy is adopted to allocate a high proportion of the load (such as 70%) to WiFi. If it is a low-latency control command (such as an air conditioning adjustment command), the second segmentation strategy is adopted to allocate priority transmission rights to Bluetooth; If the data is critical to safety (such as braking system commands), a third sharding strategy is adopted to generate redundant backup shards. If the scenario is energy-sensitive, the fourth sharding strategy is adopted to allocate a high proportion of the load to the interface with lower energy consumption.
[0038] Step 3: The application side divides the data to be transmitted into a first data segment adapted to WiFi and a second data segment adapted to Bluetooth according to the segmentation strategy, and sends them to the vehicle side in parallel through the corresponding communication interface; for critical data, backup segments are transmitted synchronously to achieve dual-channel redundancy coverage.
[0039] Vehicle-side execution of fragmented reception and intelligent fault-tolerant reassembly: Step 1: The vehicle simultaneously listens to the WiFi and Bluetooth interfaces, receives the first and second data fragments (including backup fragments) from the application, and sends all fragments to the reassembly buffer for temporary storage.
[0040] Step 2: The vehicle-side sorts the fragments in the buffer based on the global serial number tag to ensure that the fragment order is consistent with the original data; for multiple fragments (original fragment + backup fragment) with the same serial number, the first complete data fragment to arrive is selected by comparing the timestamp tags and directly submitted to the upper-layer vehicle application, while the redundant fragments that arrive later are discarded to achieve zero-latency redundant backup.
[0041] Step 3: If a fragment of a certain sequence number is found to be incomplete, wait for a fragment from another channel to arrive; if a fragment has a check error (determined by CRC algorithm), discard the erroneous fragment, call the redundant fragment from another channel to complete the reassembly, and finally generate complete and usable target data to support services such as vehicle navigation and remote control.
[0042] Accordingly, the present invention also provides an in-vehicle data interaction device based on WiFi and Bluetooth, which can realize all the processes of the in-vehicle data interaction method based on WiFi and Bluetooth in the above embodiments.
[0043] Please see Figure 2 , Figure 2 This is a schematic diagram of a preferred embodiment of an in-vehicle data interaction device based on WiFi and Bluetooth provided by the present invention. The in-vehicle data interaction device based on WiFi and Bluetooth includes: The acquisition module 201 is used to acquire the data to be transmitted, identify the data type attribute information of the data to be transmitted, and acquire the channel status parameters of the WiFi communication interface and the Bluetooth communication interface. The fragmentation module 202 is used to determine the fragmentation strategy of the data to be transmitted based on the data type attribute information and the channel status parameters, and to divide the data to be transmitted into a first data fragment and a second data fragment based on the fragmentation strategy. The transmission module 203 is used to transmit the first data fragment to the vehicle end through the WiFi communication interface and the second data fragment to the vehicle end through the Bluetooth communication interface, so that the vehicle end can reassemble the received first data fragment and second data fragment to obtain the target data.
[0044] Preferably, obtaining the channel status parameters of the WiFi communication interface and the Bluetooth communication interface includes: The first signal strength, first transmission delay, and first packet loss rate of the WiFi communication interface are obtained to obtain the first link state parameters of the WiFi communication interface. The second signal strength, second transmission delay, and second packet loss rate of the Bluetooth communication interface are obtained to obtain the second link state parameters of the Bluetooth communication interface.
[0045] Preferably, determining the fragmentation strategy of the data to be transmitted based on the data type attribute information and the channel status parameters includes: Based on the data type attribute information, determine the data type and security level of the data to be transmitted; The link quality assessment result is determined based on the first link status parameters of the WiFi communication interface and the second link status parameters of the Bluetooth communication interface. Based on the data type and security level of the data to be transmitted, as well as the link quality assessment results, the fragmentation strategy is generated according to a preset set of traffic splitting decision rules.
[0046] Preferably, determining the link quality assessment result based on the first link state parameters of the WiFi communication interface and the second link state parameters of the Bluetooth communication interface includes: The first link state parameter of the WiFi communication interface is compared with a preset WiFi threshold, and a weighted score is calculated based on the degree of influence of each parameter on the link quality to obtain the score of the WiFi communication interface. The second link status parameters of the Bluetooth communication interface are compared with a preset Bluetooth threshold, and a weighted score is calculated based on the degree of influence of each parameter on the link quality to obtain the score of the Bluetooth communication interface. The link quality assessment result is obtained based on the scores of the WiFi communication interface and the Bluetooth communication interface.
[0047] Preferably, the preset traffic splitting decision rule set includes the data type, the security level, the correspondence between the link quality assessment result and the fragmentation ratio.
[0048] Preferably, the step of generating the fragmentation strategy based on the data type and security level of the data to be transmitted, and the link quality assessment result, according to a preset set of traffic splitting decision rules, includes: When the data type belongs to the high-bandwidth data range, a first sharding strategy is generated; in the first sharding strategy, the proportion of the first data shard is greater than the proportion of the second data shard. When the data type falls within the range of low-latency control instructions, a second fragmentation strategy is generated; in the second fragmentation strategy, the proportion of the first data fragment is less than the proportion of the second data fragment. When the security level is critical data level, a third sharding strategy is generated; in the third sharding strategy, the first data shard is the original data, and the second data shard is the backup data; For energy-sensitive scenarios, a fourth sharding strategy is generated; in the fourth sharding strategy, the data proportion of the low-energy communication interface is greater than the data proportion of the high-energy communication interface.
[0049] In specific implementation, the working principle, control process and technical effects of the vehicle data interaction device based on WiFi and Bluetooth provided in this embodiment of the invention are the same as those of the vehicle data interaction method based on WiFi and Bluetooth in the above embodiments, and will not be repeated here.
[0050] Please see Figure 3 , Figure 3 This is a schematic diagram of a preferred embodiment of a terminal device provided by the present invention. The terminal device includes a processor 301, a memory 302, and a computer program stored in the memory 302 and configured to be executed by the processor 301. When the processor 301 executes the computer program, it implements the in-vehicle data interaction method based on WiFi and Bluetooth as described in any of the above embodiments.
[0051] Preferably, the computer program can be divided into one or more modules / units (such as computer program 1, computer program 2, ...), and the one or more modules / units are stored in the memory 302 and executed by the processor 301 to complete the present invention. The one or more modules / units can be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program in the terminal device.
[0052] The processor 301 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor, or the processor 301 can be any conventional processor. The processor 301 is the control center of the terminal device, connecting various parts of the terminal device through various interfaces and lines.
[0053] The memory 302 mainly includes a program storage area and a data storage area. The program storage area can store the operating system, applications required for at least one function, etc., and the data storage area can store related data, etc. In addition, the memory 302 can be a high-speed random access memory, or a non-volatile memory, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, and a flash card, etc., or the memory 302 can also be other volatile solid-state storage devices.
[0054] It should be noted that the aforementioned terminal devices may include, but are not limited to, processors and memory, as will be understood by those skilled in the art. Figure 3 The structural diagram is merely an example of the terminal device described above and does not constitute a limitation on the terminal device described above. It may include more or fewer components than shown in the diagram, or combine certain components, or use different components.
[0055] This invention also provides a computer-readable storage medium, which includes a stored computer program, wherein the computer program, when running, controls the device where the computer-readable storage medium is located to execute the in-vehicle data interaction method based on WiFi and Bluetooth described in any of the above embodiments.
[0056] This invention also provides a computer program product, which includes a computer program or computer instructions. When the computer program or computer instructions are executed by a processor, they implement the in-vehicle data interaction method based on WiFi and Bluetooth described in any of the above embodiments.
[0057] This invention provides a method, apparatus, device, medium, and product for in-vehicle data interaction based on WiFi and Bluetooth. The method involves acquiring data to be transmitted, identifying the data type attribute information of the data, and obtaining channel status parameters of the WiFi and Bluetooth communication interfaces. Based on the data type attribute information and the channel status parameters, a fragmentation strategy for the data to be transmitted is determined, and the data to be transmitted is divided into a first data fragment and a second data fragment based on the fragmentation strategy. The first data fragment is transmitted to the vehicle via the WiFi communication interface, and the second data fragment is transmitted to the vehicle via the Bluetooth communication interface. The vehicle then reassembles the received first and second data fragments to obtain the target data. This invention transmits the in-vehicle data to be transmitted through dual-channel parallel transmission according to the fragmentation strategy, which can meet the requirements of high bandwidth, low latency, and high reliability in in-vehicle data transmission.
[0058] It should be noted that the system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Furthermore, in the accompanying drawings of the system embodiments provided by this invention, the connection relationships between modules indicate that they have communication connections, which can be specifically implemented as one or more communication buses or signal lines. Those skilled in the art can understand and implement this without any creative effort.
[0059] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A vehicle-mounted data interaction method based on WiFi and Bluetooth, characterized in that, include: Acquire the data to be transmitted, identify the data type attribute information of the data to be transmitted, and obtain the channel status parameters of the WiFi communication interface and the Bluetooth communication interface; Based on the data type attribute information and the channel status parameters, the fragmentation strategy of the data to be transmitted is determined, and the data to be transmitted is divided into a first data fragment and a second data fragment based on the fragmentation strategy. The first data fragment is transmitted to the vehicle via the WiFi communication interface, and the second data fragment is transmitted to the vehicle via the Bluetooth communication interface, so that the vehicle can reassemble the received first and second data fragments to obtain the target data.
2. The in-vehicle data interaction method based on WiFi and Bluetooth as described in claim 1, characterized in that, The acquisition of channel status parameters for the WiFi communication interface and the Bluetooth communication interface includes: The first signal strength, first transmission delay, and first packet loss rate of the WiFi communication interface are obtained to obtain the first link state parameters of the WiFi communication interface. The second signal strength, second transmission delay, and second packet loss rate of the Bluetooth communication interface are obtained to obtain the second link state parameters of the Bluetooth communication interface.
3. The in-vehicle data interaction method based on WiFi and Bluetooth as described in claim 2, characterized in that, The step of determining the fragmentation strategy for the data to be transmitted based on the data type attribute information and the channel status parameters includes: Based on the data type attribute information, determine the data type and security level of the data to be transmitted; The link quality assessment result is determined based on the first link status parameters of the WiFi communication interface and the second link status parameters of the Bluetooth communication interface. Based on the data type and security level of the data to be transmitted, as well as the link quality assessment results, the fragmentation strategy is generated according to a preset set of traffic splitting decision rules.
4. The in-vehicle data interaction method based on WiFi and Bluetooth as described in claim 3, characterized in that, The step of determining the link quality assessment result based on the first link state parameters of the WiFi communication interface and the second link state parameters of the Bluetooth communication interface includes: The first link status parameter of the WiFi communication interface is compared with a preset WiFi threshold, and a weighted score is calculated based on the degree of influence of each parameter on the link quality to obtain the score of the WiFi communication interface. The second link status parameters of the Bluetooth communication interface are compared with a preset Bluetooth threshold, and a weighted score is calculated based on the degree of influence of each parameter on the link quality to obtain the score of the Bluetooth communication interface. The link quality assessment result is obtained based on the scores of the WiFi communication interface and the Bluetooth communication interface.
5. The in-vehicle data interaction method based on WiFi and Bluetooth as described in claim 4, characterized in that, The preset traffic splitting decision rule set includes the data type, the security level, the correspondence between the link quality assessment result and the fragmentation ratio.
6. The in-vehicle data interaction method based on WiFi and Bluetooth as described in claim 5, characterized in that, The process of generating the fragmentation strategy based on the data type and security level of the data to be transmitted, and the link quality assessment results, according to a preset set of traffic splitting decision rules, includes: When the data type belongs to the high-bandwidth data range, a first sharding strategy is generated; in the first sharding strategy, the proportion of the first data shard is greater than the proportion of the second data shard. When the data type falls within the range of low-latency control instructions, a second fragmentation strategy is generated; in the second fragmentation strategy, the proportion of the first data fragment is less than the proportion of the second data fragment. When the security level is critical data level, a third sharding strategy is generated; in the third sharding strategy, the first data shard is the original data, and the second data shard is the backup data; For energy-sensitive scenarios, a fourth sharding strategy is generated; in the fourth sharding strategy, the data proportion of the low-energy communication interface is greater than the data proportion of the high-energy communication interface.
7. A vehicle-mounted data interaction device based on WiFi and Bluetooth, characterized in that, include: The acquisition module is used to acquire the data to be transmitted, identify the data type attribute information of the data to be transmitted, and acquire the channel status parameters of the WiFi communication interface and the Bluetooth communication interface. The fragmentation module is used to determine the fragmentation strategy of the data to be transmitted based on the data type attribute information and the channel status parameters, and to divide the data to be transmitted into a first data fragment and a second data fragment based on the fragmentation strategy. The transmission module is used to transmit the first data fragment to the vehicle end via the WiFi communication interface and the second data fragment to the vehicle end via the Bluetooth communication interface, so that the vehicle end can reassemble the received first data fragment and second data fragment to obtain the target data.
8. A terminal device, characterized in that, The device includes a processor and a memory, wherein the memory stores a computer program and the computer program is configured to be executed by the processor, wherein the processor executes the computer program to implement the in-vehicle data interaction method based on WiFi and Bluetooth as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein when the device containing the computer-readable storage medium executes the computer program, it implements the in-vehicle data interaction method based on WiFi and Bluetooth as described in any one of claims 1 to 6.
10. A computer program product, characterized in that, The computer program product includes a computer program or computer instructions, which, when executed by a processor, implement the in-vehicle data interaction method based on WiFi and Bluetooth as described in any one of claims 1 to 6.