A WiFi-CSI sampling method, a computer readable storage medium and a vehicle entertainment system
By establishing an interactive channel between the application layer and the data link layer, and combining it with optimized external antenna layout, the problem of WiFi-CSI acquisition in in-vehicle entertainment systems was solved, achieving better sensing capabilities and cost savings.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HUIZHOU DESAY SV AUTOMOTIVE
- Filing Date
- 2025-01-24
- Publication Date
- 2026-07-31
AI Technical Summary
Existing in-vehicle entertainment systems in car cabins lack two WiFi devices, making it impossible to achieve accurate WiFi-CSI data acquisition. This results in the inability to connect to external hotspots to obtain networks and increases equipment costs.
By establishing an interactive channel between the application layer and the data link layer, frame data is sent from the first WiFi interface to the second WiFi interface, and CSI data is parsed and collected at the data link layer. Combined with the optimization of the external antenna layout, CSI data collection is achieved.
It achieves better perception capabilities for in-vehicle entertainment systems, covering the entire cabin, reducing hardware costs, and eliminating the need for additional WiFi equipment.
Smart Images

Figure CN122496835A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication technology, specifically to a WiFi-CSI sampling method, a computer-readable storage medium, and an in-vehicle entertainment system. Background Technology
[0002] With the advancement and maturity of technology, WiFi connectivity enables information sharing within the car cabin, providing users with more convenient services and richer entertainment content.
[0003] When in-vehicle entertainment systems in car cabins use WiFi-CSI for sensing, in addition to acquiring physical layer CSI, two WiFi devices, one transmitting and one receiving, are required to communicate.
[0004] However, since most in-vehicle entertainment systems in car cabins on the market are single-channel WiFi, they can only achieve single-channel WiFi functionality, meaning they can only support either AP or STA mode. Therefore, when connected to the in-vehicle WiFi LAN, the in-vehicle entertainment system cannot connect to external hotspots to obtain network access, and the in-vehicle infotainment system can only select one of the AP or STA modes.
[0005] Therefore, when an in-vehicle entertainment system needs to connect to an external hotspot to obtain a network, the following solution can be used:
[0006] 1. Set up two WiFi-enabled devices, one for transmitting and one for receiving;
[0007] 2. Utilize two existing WiFi-enabled devices. This method requires that there are already two or more WiFi-enabled devices in the existing car cabin.
[0008] 3. Using an existing device with WiFi, add another device with WiFi.
[0009] In Scheme 1 and Scheme 3 above, adding one or two WiFi-enabled devices requires not only adding a WiFi chip but also corresponding supporting hardware, which will lead to additional material costs, assembly costs, testing costs, etc. In Scheme 2, most cars currently only have one WiFi-enabled device, which is not widely available.
[0010] In addition, since the two WiFi-enabled devices are two physical network interfaces within the operating system, although the AP and STA will have different IP addresses, they are still under the same network segment. When the application wants to send data using the STA's IP address as the source and the AP's IP address as the destination, the data will not reach the physical layer of the network interface and be transmitted over the air interface. In fact, the operating system will transmit and process the data within the TCP / IP protocol stack and finally reach the corresponding application, thus making it impossible to accurately collect CSI. Summary of the Invention
[0011] To address the problem in the prior art where, when using two WiFi-enabled devices to implement WiFi-CSI sensing, the data transmitted between the STA and AP does not reach the physical layer of the network interface and is transmitted over the air interface, resulting in inaccurate CSI data acquisition, this invention provides a WiFi-CSI sampling method, a computer-readable storage medium, and an in-vehicle entertainment system.
[0012] According to an embodiment of the present invention, a WiFi-CSI sampling method is provided, the method comprising the following steps:
[0013] Establish an interactive channel between the application layer and the data link layer;
[0014] The application layer invokes the data link layer to construct frame data through the interaction channel;
[0015] The first WiFi interface located at the physical layer receives the frame data and sends it to the second WiFi interface located at the physical layer.
[0016] The second WiFi interface sends the frame data to the data link layer, whereby the data link layer parses the frame data and collects CSI data.
[0017] The data link layer sends the CSI data to the application layer.
[0018] In some optional implementations, establishing an interaction channel between the application layer and the data link layer specifically includes:
[0019] A WiFi sensing interface is set in the WiFi driver of the data link layer so that the application layer can call the data link layer through the WiFi sensing interface.
[0020] A frame awareness program is set in the WiFi firmware of the data link layer so that the data link layer can construct frame data containing the address of the second WiFi interface through the frame awareness program.
[0021] In some optional implementations, the frame data is constructed as follows:
[0022] The frame awareness program constructs frame data containing the address of the second WiFi interface at specified time intervals.
[0023] In some optional implementations, the frame data further includes:
[0024] The payload content and size of the second WiFi interface.
[0025] In some optional implementations, the second WiFi interface sends the frame data to the data link layer, which parses the frame data and collects CSI data, specifically including:
[0026] Set up a CSI data acquisition and processing program in the second WiFi firmware of the data link layer;
[0027] After receiving the frame data sent by the second WiFi interface, the data link layer parses the frame data and collects CSI data through the CSI data acquisition and processing program.
[0028] In some optional implementations, the data link layer sends the CSI data to the application layer, specifically including:
[0029] The collected CSI data is encapsulated according to the data frame format of the transport layer and sent to the network layer;
[0030] The network layer sends the encapsulated CSI data to the transport layer according to the TCP / IP protocol stack;
[0031] The transport layer sends the encapsulated CSI data to the application layer according to the TCP / IP protocol stack.
[0032] In some optional implementations, the first WiFi interface is configured as a transmitter and the second WiFi interface is configured as a receiver.
[0033] The first WiFi interface and the second WiFi interface transmit frame data at a specified frequency.
[0034] In some alternative implementations, the first WiFi interface and the second WiFi interface are integrated on the same PCB board; the WiFi antennas connected to the first WiFi interface and / or the second WiFi interface are both external antennas.
[0035] Another objective of this invention is to provide a computer-readable storage medium storing at least one instruction or at least one program, which is loaded and executed by a processor to implement the WiFi-CSI sampling method as described above.
[0036] Another objective of this invention is to provide an in-vehicle entertainment system, comprising:
[0037] The processor, memory, communication interface, and communication bus are provided, wherein the processor, memory, and communication interface communicate with each other via the communication bus.
[0038] The memory is used to store at least one executable instruction that causes the processor to perform operations as described above using the WiFi-CSI sampling method.
[0039] Compared with the prior art, the present invention has the following advantages:
[0040] The WiFi-CSI sampling method provided by this invention establishes an interactive channel between the application layer and the data link layer to construct frame data according to specified parameters, and sends it to the second WiFi interface of the physical layer through the first WiFi interface of the physical layer. The second WiFi interface completes the transmission of frame data and the acquisition of CSI data, enabling the in-vehicle entertainment system to achieve better perception capabilities.
[0041] The above description is merely an overview of the technical solutions of the embodiments of the present invention. In order to better understand the technical means of the embodiments of the present invention and to implement them in accordance with the contents of the specification, and to make the above and other objects, features and advantages of the embodiments of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description
[0042] The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:
[0043] Figure 1 A flowchart of a WiFi-CSI sampling method provided by an embodiment of the present invention is shown.
[0044] Figure 2 A structural block diagram of a WiFi-CSI sampling method provided by an embodiment of the present invention is shown.
[0045] Figure 3 A schematic diagram of the structure of an in-vehicle entertainment system provided in an embodiment of the present invention is shown. Detailed Implementation
[0046] Exemplary embodiments of the invention will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be implemented in various forms and should not be limited to the embodiments set forth herein.
[0047] This embodiment addresses the problem in the prior art where, when using two WiFi-enabled devices to implement WiFi-CSI sensing, the data transmitted between the STA and AP does not reach the physical layer of the network interface and is transmitted over the air interface, resulting in inaccurate CSI data acquisition. Therefore, a WiFi-CSI sampling method is provided.
[0048] Figure 1 A flowchart of the WiFi-CSI sampling method provided in an embodiment of the present invention is shown.
[0049] Figure 2 A structural block diagram of the WiFi-CSI sampling method provided in an embodiment of the present invention is shown.
[0050] This embodiment provides a WiFi-CSI sampling method based on a vehicle entertainment system in an automotive cockpit, and optimizes the structure of the vehicle entertainment system.
[0051] In this embodiment of the invention, the WiFi-CSI sampling method, such as Figure 1-2 As shown, it includes the following steps:
[0052] S10. Establish an interaction channel between the application layer and the data link layer.
[0053] This step can be understood as: making changes to the network interface layer to establish an interaction channel between the application layer and the data link layer.
[0054] S20. The application layer calls the data link layer through the interaction channel to construct frame data.
[0055] In this step, it can be understood that since an interaction channel is established between the application layer and the data link layer, and the data link layer can construct frame data, the application layer can directly call the data link layer to construct frame data through the interaction channel.
[0056] S30. The first WiFi interface located at the physical layer receives frame data and sends it to the second WiFi interface located at the physical layer.
[0057] In this step, it can be understood that after the data link layer completes the construction of the frame data, it needs to send it out through the first WiFi interface located in the physical layer, and at the same time, it receives the frame data sent out by the first WiFi interface through the second WiFi interface located in the physical layer.
[0058] Therefore, after the data link layer completes the construction of the frame data, it sends it to the first WiFi interface located in the physical layer. After receiving the frame data, the first WiFi interface sends it to the second WiFi interface in the physical layer.
[0059] S40. The second WiFi interface sends frame data to the data link layer, which parses the frame data and collects CSI data.
[0060] In this step, it can be understood that: after the second WiFi interface of the physical layer receives the frame data sent by the first WiFi interface, it sends it to the data link layer. After receiving the frame data, the data link layer parses the frame data to collect CSI data.
[0061] S50. The data link layer sends CSI data to the application layer.
[0062] In this step, it can be understood that the data link layer encapsulates the parsed CSI data and sends it to the application layer, thereby completing the CSI data acquisition.
[0063] The WiFi-CSI sampling method provided in this embodiment of the invention establishes an interactive channel between the application layer and the data link layer to construct frame data according to specified parameters, and sends it to the second WiFi interface of the physical layer through the first WiFi interface of the physical layer. The second WiFi interface completes the transmission of frame data and the acquisition of CSI data, so that the WiFi sensing system covers the entire car cabin, and further enables the in-vehicle entertainment system to achieve better sensing capabilities.
[0064] This embodiment, as a preferred embodiment, optimizes the implementation process of establishing an interactive channel between the application layer and the data link layer.
[0065] In this embodiment, an interaction channel is established between the application layer and the data link layer, specifically including:
[0066] Configure a WiFi sensing interface in the WiFi driver of the data link layer so that the application layer can call the data link layer through the WiFi sensing interface.
[0067] Configure a frame awareness program in the WiFi firmware of the data link layer so that the data link layer can construct frame data containing the address of the second WiFi interface through the frame awareness program, and send the frame data to the second WiFi interface of the physical layer through the first WiFi interface of the physical layer.
[0068] In this preferred embodiment, the frame data is constructed as follows: the frame sensing program constructs frame data containing the second WiFi interface address according to the requirements of the application layer at specified time intervals.
[0069] The specific implementation process for this step is as follows:
[0070] Modify the frameware layer of the WiFi firmware to enable it to construct the frames required for sensing.
[0071] After the WiFi driver at the data link layer receives the application layer message sending request, it forwards the corresponding request and parameters to the WiFi firmware frameware. Upon receiving the request, the frameware constructs a frame data, which includes the second WiFi interface address, payload content, and payload size.
[0072] Then, the frame data is sent to the second WiFi interface of the physical layer through the first WiFi interface of the physical layer.
[0073] In this embodiment, the frame data mainly includes MAC frame data, which has the following types:
[0074] Management frames, control frames, data frames, etc.
[0075] This embodiment, as a preferred embodiment, optimizes the specific implementation process of the second WiFi interface sending frame data to the data link layer, and the data link layer parsing the frame data and collecting CSI data.
[0076] In this embodiment, the second WiFi interface sends frame data to the data link layer, which parses the frame data and collects CSI data, specifically including:
[0077] Configure the CSI data acquisition and processing program in the second WiFi firmware at the data link layer.
[0078] After receiving the frame data sent by the second WiFi interface, the data link layer parses the frame data through the CSI data acquisition and processing program to collect CSI data.
[0079] This embodiment, as a preferred embodiment, optimizes the specific implementation process of the data link layer sending CSI data to the application layer.
[0080] In this embodiment, the data link layer sends CSI data to the application layer, specifically including:
[0081] The data link layer encapsulates the collected CSI data according to the data frame format of the transport layer and sends it to the network layer.
[0082] The network layer sends the encapsulated CSI data to the transport layer according to the TCP / IP protocol stack.
[0083] The transport layer sends the encapsulated CSI data to the application layer according to the TCP / IP protocol stack, thereby completing the CSI data acquisition.
[0084] In this preferred embodiment, when the collected CSI data is encapsulated according to the data frame format of the transport layer, the source address and destination address are filled with "10.10.10.10" and "255.255.255.255", and the port is filled with 5500 (5500 is just a private protocol definition of this embodiment, and other port numbers can be specified). Since the CSI data is relatively large, it needs to be sent up in two separate UDP frames.
[0085] In this preferred embodiment, the first WiFi interface is configured as a transmitter and the second WiFi interface is configured as a receiver. The first WiFi interface and the second WiFi interface transmit frame data at a specified frequency.
[0086] Therefore, in this embodiment, the above steps complete the sending of a message and the collection of CSI data between the first WiFi interface and the second WiFi interface. However, in actual WiFi sensing application scenarios, real-time sensing is required, which means that the steps of the WiFi-CSI sampling method in this embodiment need to be repeated continuously.
[0087] In this embodiment, the structure of the vehicle entertainment system has been optimized.
[0088] In this embodiment, the first WiFi interface and the second WiFi interface are integrated on the same PCB board; the WiFi antennas connected to the first WiFi interface and / or the second WiFi interface are both external antennas.
[0089] Specifically, this can be understood as follows: the in-vehicle entertainment system also includes a PCB board, on which the first WiFi interface and the second WiFi interface are integrated.
[0090] Integrating the first and second WiFi interfaces onto the PCB board results in their close proximity. Since the WiFi-CS I sensing principle primarily utilizes changes in the WiFi signal propagation path, which are reflected in the CSI data, if the two transceivers are too close, the main signal propagation path is a direct path. Changes in the path reflected by the human body due to human activity have little impact on the channel and are not significantly reflected in the CSI data. This fails to meet the requirement of a WiFi detection system covering the entire car cabin.
[0091] Therefore, the WiFi antenna connected to the first WiFi interface and / or the second WiFi interface is designed as an external antenna instead of an onboard antenna, and then the WiFi antenna of the first WiFi interface is installed to the rear seat of the car cabin using an extension cable.
[0092] Specifically, since the first WiFi interface is configured as the transmitter and the second WiFi interface is configured as the receiver, the WiFi antenna of the first WiFi interface is installed using an extension cable to the ceiling above the rear seats of the car cabin, and the WiFi antenna of the second WiFi interface is installed in the center console at the front of the car cabin.
[0093] Alternatively, the WiFi antenna for the first WiFi interface can be installed using an extension cable to the ceiling above the rear seats of the car cabin, while the WiFi antenna for the second WiFi interface can be an onboard antenna.
[0094] The WiFi antennas for the first WiFi interface and / or the second WiFi interface are designed as external antennas instead of onboard antennas, allowing the first WiFi interface and the second WiFi interface to be installed in the front and rear spaces of the car cabin respectively, forming a complete WiFi sensing system that covers the entire cabin and saves hardware costs.
[0095] In this embodiment, the specific location of the WiFi antenna connected to the first WiFi interface and / or the second WiFi interface can be adjusted according to the actual vehicle model and the perceived effect.
[0096] In some optional embodiments, the present invention also discloses a computer-readable storage medium storing at least one executable instruction that, when executed on an in-vehicle entertainment system, causes the in-vehicle entertainment system to perform the steps of the WiFi-CSI sampling method in any of the above method embodiments.
[0097] The specific implementation process of the WiFi-CSI sampling method described in this embodiment can be found in any of the above method embodiments, and will not be repeated in this embodiment.
[0098] In some alternative embodiments, the present invention also discloses an in-vehicle entertainment system.
[0099] Figure 3 A schematic diagram of the structure of an in-vehicle entertainment system provided by an embodiment of the present invention is shown.
[0100] like Figure 3 As shown, the in-vehicle entertainment system includes: a processor 110, a memory 120, a communication interface 130, and a communication bus 140. The processor 110, the memory 120, and the communication interface 130 communicate with each other through the communication bus 140.
[0101] In this embodiment, the memory 120 is used to store at least one executable instruction, which causes the processor 120 to perform the WiFi-CSI sampling method as described in any of the above embodiments; the communication interface 130 is used to communicate with other network elements such as clients or other servers. The processor 110 is used to execute the program 150, which can specifically execute the relevant steps in the above WiFi-CSI sampling method embodiments.
[0102] Specifically, program 150 may include program code, which includes computer-executable instructions.
[0103] Processor 110 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention. The head-up display includes one or more processors, which may be of the same type, such as one or more CPUs; or they may be of different types, such as one or more CPUs and one or more ASICs.
[0104] Memory 120 is used to store program 150. Memory 120 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.
[0105] Specifically, program 150 can be called by processor 110 to cause the head-up display to perform the WiFi-CSI sampling method described in any of the above embodiments.
[0106] Numerous specific details are set forth in the specification provided herein. However, it will be understood that embodiments of the invention may be practiced without these specific details. Similarly, for the sake of brevity and to aid in understanding one or more aspects of the invention, in the description of exemplary embodiments of the invention above, various features of the embodiments are sometimes grouped together in a single embodiment, figure, or description thereof. The claims, which follow the detailed description, are hereby expressly incorporated into that detailed description, wherein each claim itself is a separate embodiment of the invention.
[0107] Those skilled in the art will understand that the modules in the device of the embodiment can be adaptively changed and placed in one or more devices different from that embodiment. Modules, units, or components in the embodiment can be combined into a single module, unit, or component, and further, they can be divided into multiple sub-modules, sub-units, or sub-components, except that at least some of such features and / or processes or units are mutually exclusive.
[0108] It should be noted that the above embodiments are illustrative of the invention and not restrictive, and that those skilled in the art can devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses should not be construed as limiting the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third, etc., does not indicate any order. These words can be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be construed as limiting the order of execution.
Claims
1. A WiFi-CSI sampling method, characterized in that, The method includes the following steps: Establish an interactive channel between the application layer and the data link layer; The application layer invokes the data link layer to construct frame data through the interaction channel; The first WiFi interface located at the physical layer receives the frame data and sends it to the second WiFi interface located at the physical layer. The second WiFi interface sends the frame data to the data link layer, whereby the data link layer parses the frame data and collects CSI data. The data link layer sends the CSI data to the application layer.
2. The WiFi-CSI sampling method according to claim 1, characterized in that, The establishment of an interaction channel between the application layer and the data link layer specifically includes: A WiFi sensing interface is set in the WiFi driver of the data link layer so that the application layer can call the data link layer through the WiFi sensing interface. A frame awareness program is set in the WiFi firmware of the data link layer so that the data link layer can construct frame data containing the address of the second WiFi interface through the frame awareness program.
3. The WiFi-CSI sampling method according to claim 2, characterized in that, The frame data is constructed as follows: The frame awareness program constructs frame data containing the address of the second WiFi interface at specified time intervals.
4. The WiFi-CSI sampling method according to claim 1, characterized in that, The frame data also includes: The payload content and size of the second WiFi interface.
5. The WiFi-CSI sampling method according to claim 1, characterized in that, The second WiFi interface sends the frame data to the data link layer, which parses the frame data and collects CSI data, specifically including: Set up a CSI data acquisition and processing program in the second WiFi firmware of the data link layer; After receiving the frame data sent by the second WiFi interface, the data link layer parses the frame data and collects CSI data through the CSI data acquisition and processing program.
6. The WiFi-CSI sampling method according to claim 1, characterized in that, The data link layer sends the CSI data to the application layer, specifically including: The collected CSI data is encapsulated according to the data frame format of the transport layer and sent to the network layer; The network layer sends the encapsulated CSI data to the transport layer according to the TCP / IP protocol stack; The transport layer sends the encapsulated CSI data to the application layer according to the TCP / IP protocol stack.
7. The WiFi-CSI sampling method according to claim 1, characterized in that, The first WiFi interface is configured as a transmitter, and the second WiFi interface is configured as a receiver. The first WiFi interface and the second WiFi interface transmit frame data at a specified frequency.
8. The WiFi-CSI sampling method according to claim 1, characterized in that, The first WiFi interface and the second WiFi interface are integrated on the same PCB board; the WiFi antennas connected to the first WiFi interface and / or the second WiFi interface are both external antennas.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one instruction or at least one program, which is loaded and executed by a processor to implement the WiFi-CSI sampling method as described in any one of claims 1-8.
10. An in-vehicle entertainment system, characterized in that, include: The processor, memory, communication interface, and communication bus are provided, wherein the processor, memory, and communication interface communicate with each other via the communication bus. The memory is used to store at least one executable instruction that causes the processor to perform the operation of the WiFi-CSI sampling method as described in any one of claims 1-8.