Data forwarding method, device, vehicle, storage medium and program product

By obtaining the transmission parameters of the electronic equipment in the car and performing module type configuration information based on the data forwarding execution module type, data forwarding without the need for serial/deserial chips is achieved, solving the problems of high cost and poor flexibility in the car data transmission hardware, and improving flexibility and real-timeness.

CN120238556BActive Publication Date: 2025-07-25CHONGQING CHANGAN AUTOMOBILE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510728260.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-06-03
Publication Date
2025-07-25
Estimated Expiration
2045-06-03

AI Technical Summary

Technical Problem

In the prior art, the data transmission of in-vehicle electronic devices relies on serial/deserial chips, resulting in high hardware costs, poor flexibility and real-time performance, and the rapid iteration of personalized needs cannot be met.

Method used

By obtaining the transmission parameters of the service data receiving and sending ends, the resource configuration information is determined based on the type of the data forwarding execution module, and sent it to the module to realize data forwarding without the need for a serial/deserial chip.

Benefits of technology

It improves the flexibility and real-time nature of data forwarding, saves hardware costs, and supports the rapid iteration of personalized needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120238556B_ABST
    Figure CN120238556B_ABST
Patent Text Reader

Abstract

The present application relates to a data forwarding method, apparatus, vehicle, storage medium, and program product. The method includes: obtaining service data transmission parameters of a service data receiving end and a service data sending end from a first service data forwarding rule; determining first resource configuration information based on the service data transmission parameters and the type of a data forwarding execution module; and sending the first resource configuration information to the data forwarding execution module. In this way, based on the service data transmission parameters and the type of the data forwarding execution module, the first resource configuration information corresponding to the service data transmission parameters is determined, so that the service data forwarding between the service data receiving end and the service data sending end can be realized based on the first resource configuration information and the data forwarding execution module, without the need to set corresponding serial / deserial chips for the service data between the service data receiving end and the service data sending end. Therefore, the flexibility and real-time performance of service data forwarding can be improved, and the hardware cost can be saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of intelligent connected vehicles, and particularly relates to a data forwarding method, device, vehicle, storage medium, and program product. Background Art

[0002] With the development of automotive intelligent driving and intelligent cockpit technologies, there are more and more electronic devices in the vehicle, and the types of data in the vehicle are increasing. The requirements for transmission rate, transmission delay, and transmission reliability of each type of data vary greatly. For example, cameras have relatively high requirements for both transmission rate and delay. Traditional technologies mainly use serial / deserial technologies for data transmission and forwarding, and a pair of serial and deserial chips need to be added for each data forwarding requirement to serialize and forward the data, as Figure 1 shown. A plurality of serial chips 1011 are provided in the intelligent driving controller 101, a plurality of deserial chips 1021 are provided inside the cockpit controller 102, and data is forwarded between the intelligent driving SOC (system-on-chip) 1012 of the intelligent driving controller 101 and the cockpit SOC 1022 of the cockpit controller 102 through the serial chips 1011 and the deserial chips 1021. Meeting such data forwarding requirements depends on hardware updates, with relatively high hardware costs and design costs, and it is impossible to dynamically and quickly iterate when requirements change, resulting in poor flexibility and real-time performance of data forwarding. Summary of the Invention

[0003] This application provides a data forwarding method, device, vehicle, storage medium, and program product, which can improve the flexibility and real-time performance of data exchange and save hardware costs.

[0004] The technical solution of this application is implemented as follows:

[0005] An embodiment of this application provides a data forwarding method, including: obtaining service data transmission parameters of a service data receiving end and a service data sending end from a first service data forwarding rule; determining first resource configuration information corresponding to the service data transmission parameters based on the service data transmission parameters and the type of a data forwarding execution module, where the first resource configuration information is adapted to the type of the data forwarding execution module; and sending the first resource configuration information to the data forwarding execution module, so that the data forwarding execution module forwards the service data of the service data sending end to the service data receiving end based on the first resource configuration information.

[0006] According to the above technical means, based on the service data transmission parameters between the service data receiving end and the service data sending end and the type of the data forwarding execution module, the first resource configuration information corresponding to the service data transmission parameters is determined, and the first resource configuration information is sent to the data forwarding execution module, so that the data forwarding execution module can forward the service data of the service data sending end to the service data receiving end based on the first resource configuration information, that is, based on the first resource configuration information and the data forwarding execution module, the service data forwarding between the service data receiving end and the service data sending end can be realized, and there is no need to set a corresponding serial / deserial chip for the service data between the service data receiving end and the service data sending end, thereby improving the flexibility and real-time performance of service data forwarding and saving hardware costs.

[0007] In some embodiments, the service data transmission parameters include the attribute parameters of the service data forwarded between the service data receiving end and the service data sending end; determining the first resource configuration information corresponding to the service data transmission parameters based on the service data transmission parameters and the type of the data forwarding execution module includes: determining the physical resource information of the forwarded service data based on the attribute parameters and the type of the data forwarding execution module; and determining the physical resource information as the first resource configuration information.

[0008] According to the above technical means, based on the attribute parameters of the service data forwarded between the service data receiving end and the service data sending end and the type of the data forwarding execution module, physical resources corresponding to the type of the data forwarding execution module can be allocated to the forwarded service data, so that the subsequent data forwarding execution module can forward the service data between the service data receiving end and the service data sending end based on the physical resources.

[0009] In some embodiments, the service data transmission parameters include the identification information of the first transmission channel used by the service data sending end to forward the service data and the identification information of the second transmission channel used by the service data receiving end to receive the service data; determining the first resource configuration information corresponding to the service data transmission parameters based on the service data transmission parameters and the type of the data forwarding execution module includes: converting the identification information of the first transmission channel into the first channel identification configuration information adapted to the type of the data forwarding execution module, and converting the identification information of the second transmission channel into the second channel identification configuration information adapted to the type of the data forwarding execution module; and determining the first channel identification configuration information and the second channel identification configuration information as the first resource configuration information.

[0010] According to the above technical means, by converting the identification information of a transmission channel into first channel identification configuration information adapted to the type of the data forwarding execution module, and converting the identification information of the second transmission channel into second channel identification configuration information adapted to the type of the data forwarding execution module, the subsequent data forwarding execution module can forward service data between the service data receiving end and the service data sending end based on the first channel identification configuration information and the second channel identification configuration information.

[0011] In some embodiments, the data forwarding management module stores first device management information of a vehicle; the first device management information includes service data transmission parameters respectively corresponding to at least one in-vehicle unit of the vehicle, and the method further includes: receiving a service data forwarding request; the service data forwarding request carries data transmission unit identification information; if it is determined that the data transmission unit identification information exists in the first device management information, based on the data transmission unit identification information, determining the service data transmission parameters corresponding to the service data receiving end and the service data transmission parameters corresponding to the service data sending end; generating a first service data forwarding rule based on the service data transmission parameters corresponding to the service data receiving end and the service data transmission parameters corresponding to the service data sending end.

[0012] According to the above technical means, when it is determined that the data transmission unit identification information exists in the first device management information, based on the data transmission unit identification information, the service data transmission parameters corresponding to the service data receiving end and the service data transmission parameters corresponding to the service data sending end can be quickly obtained, thereby improving the generation speed of the first service data forwarding rule.

[0013] In some embodiments, generating a first service data forwarding rule based on the service data transmission parameters corresponding to the service data receiving end and the service data transmission parameters corresponding to the service data sending end includes: using the service data transmission parameters corresponding to the service data receiving end as the entry configuration parameters for service data forwarding and using the service data transmission parameters corresponding to the service data sending end as the exit configuration parameters for service data forwarding to generate the first service data forwarding rule.

[0014] According to the above technical means, by using the service data transmission parameters corresponding to the service data receiving end as the entry configuration parameters for service data forwarding, using the service data transmission parameters corresponding to the service data sending end as the exit configuration parameters for service data forwarding, and generating a first service data forwarding rule based on the entry configuration parameters and the exit configuration parameters for service data forwarding, the path configuration for forwarding service data between the service data receiving end and the service data sending end can be clarified, so that the service data receiving end and the service data sending end can forward service data based on the entry configuration parameters and the exit configuration parameters.

[0015] In some embodiments, the service data transmission parameters corresponding to the in-vehicle unit include the identification information of the transmission channel used by the in-vehicle unit to forward service data and the attribute parameters of the service data forwarded by the in-vehicle unit. The transmission channel used by the in-vehicle unit to forward service data includes one of the following: an interface-level transmission channel, a virtual channel-level transmission channel, and a data stream-level transmission channel.

[0016] According to the above technical means, when the service data transmission parameters corresponding to the in-vehicle unit include the identification information of the transmission channel used by the in-vehicle unit to forward service data and the attribute parameters of the service data forwarded by the in-vehicle unit, the service data forwarding rules between different in-vehicle units can be established based on the identification information of the transmission channel used by the in-vehicle unit to forward service data and the attribute parameters of the service data forwarded by the in-vehicle unit, so as to realize the data forwarding of service data between different in-vehicle units. Further, since the transmission channel used by the in-vehicle unit to forward service data includes an interface-level transmission channel, a virtual channel-level transmission channel, and a data stream-level transmission channel, different service data can be forwarded in transmission channels of different levels, thereby improving the flexibility of service data forwarding.

[0017] In some embodiments, when the transmission channel used by the in-vehicle unit to forward service data includes an interface-level transmission channel, the identification of the transmission channel used by the in-vehicle unit to forward service data includes the identification information of the first physical interface; when the transmission channel used by the in-vehicle unit to forward service data includes a virtual channel-level transmission channel, the identification information of the transmission channel used by the in-vehicle unit to forward service data includes the identification information of the first virtual channel and the identification information of the second physical interface to which the first virtual channel belongs; wherein, the data volume that can be transmitted corresponding to the second physical transmission interface is greater than the data volume that can be transmitted corresponding to the first virtual channel; when the transmission channel used by the in-vehicle unit to forward service data includes a data stream-level transmission channel, the identification information of the transmission channel used by the in-vehicle unit to forward service data includes the identification information of the first data stream channel, the identification information of the second virtual channel to which the first data stream channel belongs, and the identification information of the third physical interface to which the second virtual channel belongs; wherein, the data volume that can be transmitted corresponding to the third physical transmission interface is greater than the data volume that can be transmitted corresponding to the second virtual channel, and the data volume that can be transmitted corresponding to the second virtual channel is greater than the data volume that can be transmitted corresponding to the first data stream channel.

[0018] According to the above technical means, when the transmission channel for the in-vehicle unit to forward service data includes an interface-level transmission channel, the transmission channel for the in-vehicle unit to forward service data can be uniquely determined as the first physical interface through the identification information of the first physical interface, so that the in-vehicle unit can forward service data through the first physical interface; when the transmission channel for the in-vehicle unit to forward service data includes a virtual-channel-level transmission channel, the transmission channel for the in-vehicle unit to forward service data can be uniquely determined as the first virtual channel of the second physical interface through the identification information of the first virtual channel and the identification information of the second physical interface to which the first virtual channel belongs, so that the in-vehicle unit can forward service data through the first virtual channel of the second physical interface; when the transmission channel for the in-vehicle unit to forward service data includes a data-stream-level transmission channel, the transmission channel for the in-vehicle unit to forward service data can be uniquely determined as the first data stream channel in the second virtual channel of the third physical interface through the identification information of the first data stream channel, the identification information of the second virtual channel to which the first data stream channel belongs, and the identification information of the third physical interface to which the second virtual channel belongs, so that the in-vehicle unit can forward service data through the first data stream channel in the second virtual channel of the third physical interface.

[0019] In some embodiments, the above method further includes: if it is determined that the data transmission unit identification information does not exist in the first device management information, sending a first prompt message to the request sender through the control data transmission channel to prompt that the creation of the service data forwarding rule corresponding to the service data forwarding request fails; wherein, the request sender is the in-vehicle unit that sends the service data forwarding request, and the control data transmission channel is established by the data forwarding execution module based on the control data forwarding rule between the request sender and the data forwarding management module.

[0020] According to the above technical means, when it is determined that the first identification information does not exist in the first device management information and / or the second identification information does not exist in the first device management information, sending a first prompt message to the request sender through the control data transmission channel can enable the request sender to obtain the message that the creation of the service data forwarding rule corresponding to the service data forwarding request fails in a timely manner.

[0021] In some embodiments, the above method further includes: after receiving the configuration response information fed back by the data forwarding execution module based on the first resource configuration information, sending a second prompt message to the in-vehicle unit that sends the service data forwarding request through the control data transmission channel to prompt that the configuration of the service data forwarding rule corresponding to the service data forwarding request is successful.

[0022] According to the above technical means, after receiving the configuration response information fed back by the data forwarding execution module based on the first resource configuration information, by sending a second prompt message to the in-vehicle unit that sends the service data request through the control data transmission channel, the in-vehicle unit that sends the service data request can obtain the message that the service data forwarding rule corresponding to the service data forwarding request is successfully configured in a timely manner, so that the service data receiving end and the service data sending end can perform service data forwarding in a timely manner based on the first resource configuration information.

[0023] In some embodiments, receiving a service data forwarding request includes: receiving a service data forwarding request sent by a request sender through a control data transmission channel; wherein, the request sender is an in-vehicle unit of a vehicle, and the control data transmission channel is established by the data forwarding execution module based on the control data forwarding rule between the request sender and the data forwarding management module.

[0024] According to the above technical means, through the control data transmission channel established by the data forwarding execution module based on the control data forwarding rule between the request sender and the data forwarding management module, receiving the service data forwarding request sent by the requester, so that the data forwarding management module can create a service data forwarding rule corresponding to the service data forwarding request based on the service data forwarding request, and implement the forwarding of service data based on the service data forwarding rule corresponding to the data forwarding request.

[0025] In some embodiments, the above method further includes: after the vehicle starts, reading the second device management information of the vehicle, where the second device management information includes the attribute information of at least one in-vehicle unit of the vehicle and the attribute information of the data forwarding management module; generating a control data forwarding rule between each of the at least one in-vehicle unit and the data forwarding management module based on the attribute information of the at least one in-vehicle unit and the attribute information of the data forwarding management module; the control data forwarding rule includes the control data transmission parameters between the in-vehicle unit and the data forwarding management module; determining the second resource configuration information corresponding to the control data transmission parameters based on the control data transmission parameters and the type of the data forwarding execution module; the second resource configuration information is adapted to the type of the data forwarding execution module; and sending the second resource configuration information to the data forwarding execution module, so that the data forwarding execution module establishes a control data transmission channel between the in-vehicle unit and the data forwarding management module based on the second resource configuration information corresponding to each in-vehicle unit.

[0026] According to the above technical means, based on the attribute information of the on-vehicle unit in the second device management information and the attribute information of the data forwarding management module, generate a control data forwarding rule between the on-vehicle unit and the data forwarding management module; based on the control data transmission parameters in the control data forwarding rule and the type of the data forwarding execution module, determine the second resource configuration information corresponding to the control data transmission parameters; and send the second resource configuration information to the data forwarding execution module, so that the data forwarding execution module can establish a control data transmission channel between the on-vehicle unit and the data forwarding management module based on the second resource configuration information, and realize the forwarding of control data between the on-vehicle unit and the data forwarding management module based on the control data transmission channel.

[0027] In some embodiments, the attribute information includes device type and physical interface information; generating control data forwarding rules between at least one on-vehicle unit and the data forwarding management module respectively based on the attribute information of at least one on-vehicle unit and the attribute information of the data forwarding management module includes: determining a first on-vehicle unit with a device type of controller type from at least one on-vehicle unit; determining third device management information based on the physical interface information of the first on-vehicle unit and the physical interface information of the data forwarding management module; the third device management information includes control data transmission parameters corresponding to at least one first on-vehicle unit respectively and control data transmission parameters corresponding to the data forwarding management module; generating control data forwarding rules between each first on-vehicle unit and the data forwarding management module respectively based on the control data transmission parameters corresponding to each first on-vehicle unit in the third device management information and the control data transmission parameters corresponding to the data forwarding management module.

[0028] According to the above technical means, determine the third device management information based on the physical interface information of the first on-vehicle unit and the physical interface information of the data forwarding module, and generate a control data forwarding rule between the first on-vehicle unit and the data forwarding management module according to the control data transmission parameters corresponding to the first on-vehicle unit in the third device management information and the control data transmission parameters corresponding to the data forwarding management module, so that the control data forwarding between the first on-vehicle unit and the data forwarding management module can be realized based on the control data transmission parameters corresponding to the first on-vehicle unit and the control data transmission parameters corresponding to the data forwarding management module.

[0029] In some embodiments, the physical interface information includes the identifier of the physical interface connected to the data forwarding execution module and the occupation type of the physical interface; based on the physical interface information of the first vehicle-mounted unit and the physical interface information of the data forwarding management module, the third device management information is determined, including: for each first vehicle-mounted unit, based on the identifier of the first physical interface connected to the data forwarding execution module by the first vehicle-mounted unit and the occupation type of the first physical interface by the first vehicle-mounted unit, the control data transmission parameters of the first vehicle-mounted unit are determined; based on the identifier of the second physical interface connected to the data forwarding execution module by the data forwarding management module and the occupation type of the second physical interface by the data forwarding management module, the control data transmission parameters of the data forwarding management module are determined.

[0030] According to the above technical means, based on the identifier of the first physical interface connected to the data forwarding execution module by the first vehicle-mounted unit and the occupation type of the first physical interface by the first vehicle-mounted unit, the control data transmission parameters of the first vehicle-mounted unit can be obtained; based on the identifier of the second physical interface connected to the data forwarding execution module by the data forwarding management module and the occupation type of the second physical interface by the data forwarding management module, the control data transmission parameters of the data forwarding management module can be obtained, so that the control data forwarding rule between the first vehicle-mounted unit and the data forwarding management module can be directly generated based on the control data transmission parameters of the first vehicle-mounted unit and the control data transmission parameters of the data forwarding management module.

[0031] In some embodiments, based on the control data transmission parameters corresponding to each first vehicle-mounted unit in the third device management information and the control data transmission parameters corresponding to the data forwarding management module, the control data forwarding rules between each first vehicle-mounted unit and the data forwarding management module are generated, including: for each first vehicle-mounted unit, using the control data transmission parameters corresponding to the first vehicle-mounted unit as the entry configuration parameters for control data forwarding and using the control data transmission parameters corresponding to the data forwarding management module as the exit configuration parameters for control data forwarding, the control data forwarding rule between the first vehicle-mounted unit and the data forwarding management module is generated.

[0032] According to the above technical means, by using the control data transmission parameters corresponding to the first vehicle-mounted unit as the entry configuration parameters for control data forwarding, using the control data transmission parameters corresponding to the data forwarding management module as the exit configuration parameters for control data forwarding, and generating the control data forwarding rule between the first vehicle-mounted unit and the data forwarding management module from the entry configuration parameters and the exit configuration parameters for control data forwarding, the path configuration for forwarding control data between the first vehicle-mounted unit and the data forwarding management module can be clarified, so that the first vehicle-mounted unit and the data forwarding management module can implement control data forwarding based on the entry configuration parameters and the exit configuration parameters for control data forwarding.

[0033] In some embodiments, a data forwarding management library is included in the data forwarding management module, and a pre-established second service data forwarding rule is stored in the data forwarding management library. The method further includes: reading the second service data forwarding rule from the data forwarding management library; determining third resource configuration information based on the second service data forwarding rule; the third resource configuration information is adapted to the type of the data forwarding execution module; and sending the third resource configuration information to the data forwarding execution module so that the data forwarding execution module forwards service data based on the third resource configuration information.

[0034] According to the above technical means, by reading the second service data forwarding rule from the data forwarding management library; determining the third resource configuration information based on the second service data forwarding rule; and sending the third resource configuration information to the data forwarding execution module, the data forwarding execution module can directly forward service data based on the third resource configuration information.

[0035] An embodiment of the present application provides a data forwarding device, including:

[0036] A first acquisition module, configured to acquire service data transmission parameters of a service data receiving end and a service data sending end from a first service data forwarding rule;

[0037] A first determination module, configured to determine first resource configuration information corresponding to the service data transmission parameters based on the service data transmission parameters and the type of the data forwarding execution module; the first resource configuration information is adapted to the type of the data forwarding execution module;

[0038] A first sending module, configured to send the first resource configuration information to the data forwarding execution module so that the data forwarding execution module forwards the service data of the service data sending end to the service data receiving end based on the first resource configuration information.

[0039] An embodiment of the present application provides a vehicle, including the data forwarding management module and the data forwarding execution module provided by the embodiment of the present application, and the data forwarding management module executes the steps in the above method.

[0040] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above method are implemented.

[0041] An embodiment of the present application provides a computer program product, including a computer program or instruction, and when the computer program or instruction is executed by a processor, the steps in the above method are implemented.

[0042] The beneficial effects of the present application:

[0043] According to the above technical means, based on the service data transmission parameters of the service data receiving end and the service data sending end and the type of the data forwarding execution module, determine the first resource configuration information corresponding to the service data transmission parameters, and send the first resource configuration information to the data forwarding execution module, so that the data forwarding execution module can forward the service data of the service data sending end to the service data receiving end based on the first resource configuration information, that is, based on the first resource configuration information and the data forwarding execution module, the service data forwarding between the service data receiving end and the service data sending end can be realized, and there is no need to set corresponding serial / deserial chips for the forwarding of service data, thereby improving the flexibility and real-time performance of service data forwarding and saving hardware costs.

[0044] The generation speed of the first service data forwarding rule can be improved.

[0045] The path configuration for forwarding service data between the service data receiving end and the service data sending end can be clarified, so that the service data receiving end and the service data sending end can forward service data based on the ingress configuration parameters and the egress configuration parameters.

[0046] The transmission channel for the in-vehicle unit to forward service data can be uniquely determined as the first data stream channel in the second virtual channel of the third physical interface, so that the in-vehicle unit can forward service data through the first data stream channel in the second virtual channel of the third physical interface.

[0047] The request sender can be enabled to obtain the message that the creation of the service data forwarding rule corresponding to the service data forwarding request fails in a timely manner.

[0048] The service data receiving end and the service data sending end can be enabled to forward service data in a timely manner based on the first resource configuration information.

[0049] Enable the data forwarding execution module to establish a control data transmission channel between the in-vehicle unit and the data forwarding management module based on the control data forwarding rule, and forward the control data between the in-vehicle unit and the data forwarding management module based on the control data transmission channel.

[0050] The control data forwarding between the first in-vehicle unit and the data forwarding management module can be realized.

[0051] Based on the control data transmission parameters of the first in-vehicle unit and the control data transmission parameters of the data forwarding management module, the control data forwarding rule between the first in-vehicle unit and the data forwarding management module can be directly generated.

[0052] The path configuration for forwarding control data between the first vehicle-mounted unit and the data forwarding management module can be clarified, so that the first vehicle-mounted unit and the data forwarding management module can implement the forwarding of control data based on the entry configuration parameters and the exit configuration parameters for controlling data forwarding.

[0053] Enable the data forwarding execution module to directly forward service data based on the third resource configuration information. Brief Description of the Drawings

[0054] Figure 1 It is a schematic diagram of a vehicle-mounted data exchange architecture provided in the related art;

[0055] Figure 2 It is a schematic flow chart of a data forwarding method provided in an embodiment of the present application;

[0056] Figure 3 It is a schematic diagram of an in-vehicle central exchange architecture provided in an embodiment of the present application;

[0057] Figure 4 It is a schematic diagram of a vehicle-mounted data exchange architecture provided in an embodiment of the present application;

[0058] Figure 5 It is a schematic diagram of another vehicle-mounted data exchange architecture provided in an embodiment of the present application;

[0059] Figure 6 It is a schematic flow chart of a data forwarding configuration initialization method provided in an embodiment of the present application;

[0060] Figure 7 It is a schematic flow chart of a data forwarding dynamic configuration method provided in an embodiment of the present application;

[0061] Figure 8 It is a schematic structural diagram of a data forwarding device provided in an embodiment of the present application. Detailed Embodiments

[0062] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application.

[0063] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in conjunction with the accompanying drawings. The described embodiments should not be regarded as limitations of the present application. All other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present application.

[0064] In the following description, the terms "some embodiments / other embodiments" are referred to, which describe subsets of all possible embodiments. However, it can be understood that "some embodiments / other embodiments" can be the same subset or different subsets of all possible embodiments, and can be combined with each other without conflict.

[0065] In the following description, the terms "first / second" only distinguish similar objects and do not represent a specific order for the objects. It can be understood that "first / second" can be interchanged with a specific order or sequence when allowed, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0066] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0067] The requirements for the transmission rate of data such as lidar and millimeter-wave radar are usually below 1 Gbps, and they can share a 10 Gigabit Ethernet communication interface with other data. However, since the bandwidth and transmission determinism of the existing backbone lines still cannot meet the requirements for sharing such data with other data through a 10 Gigabit Ethernet communication interface, such data is usually directly transmitted point-to-point to the controller via 100 Mbps or Gigabit Ethernet, which is equivalent to occupying an interface alone. In the controller, the sharing of such data is mainly achieved by using an Ethernet switch or a PCIE SWITCH (a hardware device that plays the role of a traffic hub in the PCIe (Peripheral Component Interconnect Express) bus). Since each type of data occupies an interface alone, it will result in more interfaces being occupied by such data.

[0068] The requirements for the communication rate of the (variable rate) Controller Area Network with Flexible Data Rate (CAN (FD)) data and Ethernet data between the actuator and the zone controller or the controller are generally below 100 Mbps. The data sharing path is relatively complex, and the data sharing granularity is usually CAN (FD) messages and Ethernet data streams. Therefore, a dedicated CAN gateway and Ethernet switch are generally used to implement it.

[0069] In summary, the technologies for sharing CAN data, Ethernet data, and sensing data in vehicles are currently not unified. A set of independent software and hardware is required for the sharing of each type of data, and additional hardware is needed for the sharing of camera data according to requirements. However, as users' personalized needs for vehicles increase, on-demand customization and lifetime iteration of functions have become a trend. The traditional serial / deserial technology has difficulty meeting users' personalized needs. Therefore, there is an urgent need for a data exchange method that can meet all data sharing requirements.

[0070] Based on the problems in the related technologies, an embodiment of this application provides a data forwarding method. This method can be applied to a data forwarding management module, and the scenarios where this method can be applied include, but are not limited to, data forwarding between various in-vehicle units in a vehicle, data forwarding between various hardware units in a robot, and / or data forwarding between various communication devices in an optical communication scenario, etc. Correspondingly, the data forwarding management module can be a software and hardware device in a vehicle, a robot, a communication device, etc. This method can improve the flexibility and real-time performance of data exchange and can save hardware costs. As Figure 2 shown, it is a schematic flowchart of a data forwarding method provided by an embodiment of this application. This method includes the following steps S201 to step S203:

[0071] Step S201, obtain the service data transmission parameters of the service data receiving end and the service data sending end from the first service data forwarding rule.

[0072] Here, the first service data forwarding rule can be a service data forwarding rule generated according to a service data forwarding request or a pre-configured service data forwarding rule.

[0073] In some embodiments, the service data transmission parameters of the service data receiving end and the service data sending end may include at least one of the transmission bandwidth requirement, period, transmission unit type of the service data, the identifier of the transmission channel corresponding to the service data sending end, and the identifier of the transmission channel corresponding to the service data receiving end, etc.

[0074] Step S202, determine the first resource configuration information corresponding to the service data transmission parameters based on the service data transmission parameters and the type of the data forwarding execution module.

[0075] Here, the first resource configuration information is adapted to the type of the data forwarding execution module.

[0076] In some embodiments, the data forwarding execution module may be an Optical Line Terminal (OLT) device, a Field Programmable Gate Array (FPGA) device, etc. The resource configuration information determined by different types of data forwarding execution modules is different. The resource configuration information includes the physical resource information corresponding to the service data, as well as the resource management identifier after the conversion of the identifier of the transmission channel corresponding to the service data sending end and the identifier of the transmission channel corresponding to the service data receiving end. Both the physical resource information and the resource management identifier are adapted to the type of the data forwarding execution module.

[0077] Step S203: Send the first resource configuration information to the data forwarding execution module, so that the data forwarding execution module forwards the service data of the service data sending end to the service data receiving end based on the first service data forwarding rule and the first resource configuration information.

[0078] In some embodiments, a communication connection is established between the data forwarding management module and the data forwarding execution module, and communication connections are established between the service data sending end, the service data receiving end and the data forwarding execution module. The data forwarding execution module can receive the service data sent by the service data sending end through the transmission channel for sending the service data by the service data sending end, and forward the service data to the service data receiving end through the transmission channel for receiving the service data by the service data receiving end.

[0079] In some embodiments, after sending the first resource configuration information to the data forwarding execution module, the data forwarding execution module can forward the service data of the service data sending end to the service data receiving end based on the identifier of the transmission channel for sending the service data by the service data sending end defined in the first resource configuration information, the attribute parameters of the service data, and the identifier of the transmission channel for receiving the service data by the service data receiving end.

[0080] In the embodiments of the present application, based on the service data transmission parameters of the service data receiving end and the service data sending end and the type of the data forwarding execution module, the first resource configuration information corresponding to the service data transmission parameters is determined and sent to the data forwarding execution module, so that the data forwarding execution module can forward the service data of the service data sending end to the service data receiving end based on the first resource configuration information, that is, based on the first resource configuration information and the data forwarding execution module, the service data forwarding between the service data receiving end and the service data sending end can be realized, and there is no need to set a corresponding serializer / deserializer chip for the service data between the service data receiving end and the service data sending end, thereby improving the flexibility and real-time performance of the service data forwarding and saving the hardware cost.

[0081] In some embodiments, the service data transmission parameters include the attribute parameters of the service data forwarded between the service data receiving end and the service data sending end; step S202 may include the following steps S2021 to step S2022:

[0082] Step S2021, based on the attribute parameters and the type of the data forwarding execution module, determine the physical resource information of the forwarded service data.

[0083] In some embodiments, the attribute parameters may include the bandwidth requirement and / or period of the service data. Herein, the bandwidth requirement refers to the bandwidth required for transmitting data, and the period refers to the period of data transmission. The physical resources corresponding to the forwarded service data can be determined according to the attribute parameters and the type of the data forwarding execution module. If the data forwarding execution module is an OLT device, the physical resources corresponding to the forwarded service data may be time slot resources, and the required time slot resources can be allocated for the forwarding of the service data according to the transmission bandwidth requirement and / or forwarding period of the service data, and the time slot information of the allocated time slot resources is used as the physical resource information corresponding to the service data. For another example, if the data forwarding execution module is an OLT device, the physical resources corresponding to the forwarded service data may be band resources, and the required band resources can be allocated for the forwarding of the service data according to the transmission bandwidth requirement and / or forwarding period of the service data, and the band information of the allocated band resources is used as the physical resource information corresponding to the service data.

[0084] Step S2022, determine the physical resource information as the first resource configuration information.

[0085] In the above embodiments, based on the attribute parameters of the service data forwarded between the service data receiving end and the service data sending end, and the type of the data forwarding execution module, physical resources corresponding to the type of the data forwarding execution module can be allocated for the forwarded service data, so that the subsequent data forwarding execution module can forward the service data between the service data receiving end and the service data sending end based on the physical resources.

[0086] In some embodiments, the service data transmission parameters include the identification information of the first transmission channel used by the service data sending end to forward the service data, and the identification information of the second transmission channel used by the service data receiving end to receive the service data; step S202 may include the following steps S2023 to step S2024:

[0087] Step S2023, convert the identification information of the first transmission channel into the first channel identification configuration information adapted to the type of the data forwarding execution module, and convert the identification information of the second transmission channel into the second channel identification configuration information adapted to the type of the data forwarding execution module.

[0088] Among them, according to the type of data forwarding execution module adopted in the actual application scenario, any suitable method can be used to convert the identification information of the first transmission channel and the identification information of the second transmission channel to obtain the first channel identification configuration information and the second channel identification configuration information adapted to the type of data forwarding execution module, which is not limited here. The first channel identification configuration information may include the channel identification corresponding to the first transmission channel in the data forwarding execution module, and the second channel identification configuration information may include the channel identification corresponding to the second transmission channel in the data forwarding execution module. For example, if the data forwarding execution module is an OLT device, the identification information of the first transmission channel can be converted into an optical interface identification, a container identification, and / or a Gigabit Passive Optical Network (GPON) encapsulation method port (GEM Port), etc.

[0089] In some embodiments, according to the mapping relationship of the transmission channel identification of the type of data forwarding execution module, the identification information of the first transmission channel can be converted into the first channel identification configuration information adapted to the type of data forwarding execution module, and the identification information of the second transmission channel can be converted into the second channel identification configuration information adapted to the type of data forwarding execution module, so that the data forwarding execution module can identify the first channel identification configuration information and the second channel identification configuration information.

[0090] Step S2024, determine the first channel identification configuration information and the second channel identification configuration information as the first resource configuration information.

[0091] In the above embodiments, by converting the identification information of the first transmission channel into the first channel identification configuration information adapted to the type of data forwarding execution module, and converting the identification information of the second transmission channel into the second channel identification configuration information adapted to the type of data forwarding execution module, the subsequent data forwarding execution module can forward service data between the service data receiving end and the service data sending end based on the first channel identification configuration information and the second channel identification configuration information. In this way, the first resource configuration information issued by the data forwarding management module can be more flexibly adapted to the data forwarding execution module, so as to decouple the service data transmission parameters in the first service data forwarding rule from the type of data forwarding execution module through the data forwarding management module.

[0092] In some embodiments, when the data forwarding module is a software and hardware module in a vehicle, the data forwarding management module stores the first device management information of the vehicle; the first device management information includes the service data transmission parameters respectively corresponding to at least one in-vehicle unit of the vehicle; the above method may further include the following steps S205 to step 207:

[0093] Step S205: Receive a service data forwarding request.

[0094] Here, the service data forwarding request includes data transmission unit identification information; both the service data receiving end and the service data sending end are in-vehicle units of a vehicle, and the in-vehicle unit of the vehicle may include a controller, a sensor, etc.

[0095] In some embodiments, the service data forwarding request can be used to generate a service data forwarding rule between the service data receiving end and the service data sending end. The service data forwarding rule may include the identification of the transmission channel for transmitting service data between the service data receiving end and the service data sending end, the attribute parameters of the service data, etc. Among them, the service data can be data transmitted between controllers, data transmitted between sensors, or data transmitted between a controller and a sensor.

[0096] In some embodiments, the service data forwarding request can be sent by the in-vehicle unit of the vehicle. The in-vehicle unit sending the service data forwarding request and the service data receiving end may be the same or different, and the in-vehicle unit sending the service data forwarding request and the service data sending end may also be the same or different. The service data forwarding request can be sent by the in-vehicle unit of the vehicle to the data forwarding management module based on the user's data acquisition requirement. For example, if the user wants to obtain the data of the front-view camera of the vehicle, a request to obtain the data of the front-view camera can be sent to controller A of the vehicle. After controller A receives the request to obtain the data of the front-view camera, it can send a service data forwarding request to the data forwarding management module.

[0097] Step S206: If it is determined that there is data transmission unit identification information in the first device management information, based on the data transmission unit identification information, obtain the service data transmission parameters corresponding to the service data receiving end and the service data transmission parameters corresponding to the service data sending end.

[0098] In some embodiments, the first device management information can be information of in-vehicle units (such as controllers, sensors, etc.) in a vehicle established in advance. Among them, the information of the in-vehicle unit may include the identification information of each in-vehicle unit and the service data transmission parameters corresponding to each in-vehicle unit respectively. The data transmission unit identification information may include surround-view camera (front) video data, front-view camera video data, etc.

[0099] In some embodiments, the data transmission unit identification information may be compared with the data transmission unit identification information in the first device management table. When it is determined that the data transmission unit identification information exists in the transmission unit attribute management table, the first device management table may be queried according to the data transmission unit identification information, so as to obtain the service data transmission parameters corresponding to the service data receiving end and the service data transmission parameters corresponding to the service data sending end. Among them, the service data transmission parameters corresponding to the service data receiving end may include the transmission channel identification corresponding to the service data receiving end, the attribute parameters of the transmitted service data (such as bandwidth requirements, and / or period, etc.).

[0100] Step S207: Generate a first service data forwarding rule based on the service data transmission parameters corresponding to the service data receiving end and the service data transmission parameters corresponding to the service data sending end.

[0101] In the above embodiment, when it is determined that the data transmission unit identification information exists in the first device management information, based on the data transmission unit identification information, the service data transmission parameters corresponding to the service data receiving end and the service data transmission parameters corresponding to the service data sending end can be quickly obtained, so that the generation speed of the first service data forwarding rule can be improved.

[0102] In some embodiments, generating the first service data forwarding rule based on the service data transmission parameters corresponding to the service data receiving end and the service data transmission parameters corresponding to the service data sending end in step S207 may include the following step S2071:

[0103] Step S2071: Generate a first service data forwarding rule by using the service data transmission parameters corresponding to the service data receiving end as the entry configuration parameters for service data forwarding and the service data transmission parameters corresponding to the service data sending end as the exit configuration parameters for service data forwarding.

[0104] In some embodiments, the entry configuration parameters may define the transmission channel for the service data receiving end to receive service data, the attribute parameters of the service data received by the service data receiving end, etc. The exit configuration parameters may define the transmission channel for the service data sending end to send service data, the communication protocol of the service data sent by the service data sending end, etc. Therefore, through the transmission channel for the service data receiving end to receive service data, the attribute parameters of the service data received by the service data receiving end, etc., and the transmission channel for the service data sending end to send service data, the communication protocol of the service data sent by the service data sending end, etc., the first service data forwarding rule for forwarding service data between the service data receiving end and the service data sending end can be established.

[0105] In the above embodiment, by using the service data transmission parameters corresponding to the service data receiving end as the ingress configuration parameters for service data forwarding, and using the service data transmission parameters corresponding to the service data sending end as the egress configuration parameters for service data forwarding, and generating the first service data forwarding rule based on the ingress configuration parameters for service data forwarding and the egress configuration parameters for service data forwarding, the path configuration for forwarding service data between the service data receiving end and the service data sending end can be clarified, so that the service data receiving end and the service data sending end can forward service data based on the ingress configuration parameters and the egress configuration parameters.

[0106] In some embodiments, the business data transmission parameters corresponding to the vehicle-mounted unit include identification information of the transmission channel used by the vehicle-mounted unit to forward business data and attribute parameters of the business data forwarded by the vehicle-mounted unit. The transmission channel used by the vehicle-mounted unit to forward business data includes one of the following: interface-level transmission channel, virtual channel-level transmission channel, and data stream-level transmission channel.

[0107] In some embodiments, the identification information of the transmission channel used by the on-board unit to forward business data may be the ID of the transmission channel, which may be a communication channel through which the on-board unit transmits business data to the data forwarding execution module, or a communication channel through which the data forwarding execution module transmits business data to the on-board unit.

[0108] In some embodiments, the interface-level transmission channel may be a physical transmission channel, the virtual channel-level transmission channel may be at least one transmission channel virtualized in the interface-level transmission channel, and the data stream-level transmission channel may be at least one transmission channel further virtualized in the virtual channel-level transmission channel.

[0109] In some implementations, the transmission channels used by different on-board units to forward business data may be interface-level transmission channels, virtual channel-level transmission channels, or data stream-level transmission channels, which may be determined in advance based on the type of business data transmitted by the on-board units. For example, for images or video data collected by an on-board camera, the corresponding transmission channel for forwarding business data may be an interface-level transmission channel; for control signals sent from an intelligent driving control to a sensor, the corresponding transmission channel may be a virtual channel-level transmission channel.

[0110] In some other embodiments, whether the transmission channel for different in-vehicle units to forward service data is an interface-level transmission channel, a virtual-channel-level transmission channel, or a data-stream-level transmission channel can be determined in advance according to the data volume of the service data transmitted by the in-vehicle unit. For example, for service data with a data volume greater than or equal to 1 GB, the corresponding transmission channel can be set as an interface-level transmission channel; for service data with a data volume greater than or equal to 100 M and less than 1 GB, the corresponding transmission channel can be set as a virtual-channel-level transmission channel; for service data with a data volume less than 100 M, the corresponding transmission channel can be set as a data-stream-level transmission channel.

[0111] In the above embodiments, when the service data transmission parameters corresponding to the in-vehicle unit include the identification information and protocol type of the transmission channel for the in-vehicle unit to forward service data, the service data forwarding rules between different in-vehicle units can be established based on the identification information and protocol type of the transmission channel for the in-vehicle unit to forward service data, so as to realize the data forwarding of service data between different in-vehicle units. Further, since the transmission channels for the in-vehicle unit to forward service data include interface-level transmission channels, virtual-channel-level transmission channels, and data-stream-level transmission channels, different service data can be forwarded in transmission channels at different levels, thereby improving the flexibility of service data forwarding.

[0112] In some embodiments, when the transmission channel for the in-vehicle unit to forward service data includes an interface-level transmission channel, the identification of the transmission channel for the in-vehicle unit to forward service data includes the identification information of the first physical interface. The identification information of the first physical interface can be the ID of the first physical interface.

[0113] In some embodiments, when the transmission channel for the in-vehicle unit to forward service data includes a virtual-channel-level transmission channel, the identification information of the transmission channel for the in-vehicle unit to forward service data includes the identification information of the first virtual channel and the identification information of the second physical interface to which the first virtual channel belongs; wherein, the data volume that can be transmitted corresponding to the second physical transmission interface is greater than the data volume that can be transmitted corresponding to the first virtual channel.

[0114] Here, the identification information of the first virtual channel can be the ID of the first virtual channel, the identification information of the second physical interface can be the ID of the second physical interface, the first virtual channel can be a communication channel virtualized from the second physical interface, and the second physical interface and the first physical interface can be the same or different.

[0115] In some embodiments, when the transmission channel for the in-vehicle unit to forward service data includes a data stream-level transmission channel, the identification information of the transmission channel for the in-vehicle unit to forward service data includes the identification information of the first data stream channel, the identification information of the second virtual channel to which the first data stream channel belongs, and the identification information of the third physical interface to which the second virtual channel belongs; wherein, the amount of data that can be transmitted corresponding to the third physical transmission interface is greater than the amount of data that can be transmitted corresponding to the second virtual channel, and the amount of data that can be transmitted corresponding to the second virtual channel is greater than the amount of data that can be transmitted corresponding to the first data stream channel.

[0116] Here, the identification information of the first data stream channel may be the ID of the first data volume channel, the identification information of the second virtual channel may be the ID of the second virtual channel, and the identification information of the third physical interface may be the ID of the third physical interface. The second virtual channel may be the same as or different from the first virtual channel, and the third physical interface may be the same as or different from the first physical interface and the second physical interface.

[0117] In the above embodiments, when the transmission channel for the in-vehicle unit to forward service data includes an interface-level transmission channel, the transmission channel for the in-vehicle unit to forward service data can be uniquely determined as the first physical interface through the identification information of the first physical interface, so that the in-vehicle unit can forward service data through the first physical interface; when the transmission channel for the in-vehicle unit to forward service data includes a virtual channel-level transmission channel, the transmission channel for the in-vehicle unit to forward service data can be uniquely determined as the first virtual channel of the second physical interface through the identification information of the first virtual channel and the identification information of the second physical interface to which the first virtual channel belongs, so that the in-vehicle unit can forward service data through the first virtual channel of the second physical interface; when the transmission channel for the in-vehicle unit to forward service data includes a data stream-level transmission channel, the transmission channel for the in-vehicle unit to forward service data can be uniquely determined as the first data stream channel in the second virtual channel of the third physical interface through the identification information of the first data stream channel, the identification information of the second virtual channel to which the first data stream channel belongs, and the identification information of the third physical interface to which the second virtual channel belongs, so that the in-vehicle unit can forward service data through the first data stream channel in the second virtual channel of the third physical interface.

[0118] In some embodiments, the above method may further include the following step S208:

[0119] Step S208, if it is determined that the data transmission unit identification information does not exist in the first device management information, send a first prompt message to the request sender through the control data transmission channel to prompt that the creation of the service data forwarding rule corresponding to the service data forwarding request fails.

[0120] Here, the request sender is the in-vehicle unit that sends the service data forwarding request, and the control data transmission channel is established by the data forwarding execution module based on the control data forwarding rule between the request sender and the data forwarding management module. The request sender can be a controller, a sensor, etc. in the vehicle. The request sender and the service data receiver can be the same or different, and can also be the same or different from the service data sender.

[0121] In some embodiments, the control data forwarding rule between the request sender and the data forwarding management module can be the rule for forwarding control data between the request sender and the data forwarding management module. The control data forwarded between the request sender and the data forwarding management module can include service data forwarding requests, first prompt messages, etc.

[0122] In some embodiments, after comparing the data transmission unit identifier with the data transmission unit identifiers of at least one in-vehicle unit in the first device management information, if it is determined that the data transmission unit identifier does not exist in the first device management information, the data forwarding management module can send a first prompt message to the request sender through the control data transmission channel to inform the request sender that the creation of the service data forwarding rule corresponding to the service data forwarding request fails.

[0123] In the above embodiments, in the case of determining that the data transmission unit identifier information does not exist in the first device management information, sending a first prompt message to the request sender through the control data transmission channel can enable the request sender to obtain the message that the creation of the service data forwarding rule corresponding to the service data forwarding request fails in a timely manner.

[0124] In some embodiments, the above method may further include the following step S209:

[0125] Step S209, after receiving the configuration response information fed back by the data forwarding execution module based on the first resource configuration information, send a second prompt message to the in-vehicle unit that sends the service data forwarding request through the control data transmission channel to prompt that the configuration of the service data forwarding rule corresponding to the service data forwarding request is successful.

[0126] In some embodiments, the data forwarding management module sends the first resource configuration information to the data forwarding execution module. After the data forwarding execution module confirms receiving the first resource configuration information, it can send a configuration response information to the data forwarding management module. The data forwarding management module determines based on this configuration response information that the data forwarding execution module has currently successfully received the first resource configuration information, and then can send a second prompt message to the in-vehicle unit that sends the service data forwarding request through the control data transmission channel to inform the in-vehicle unit that sends the service data forwarding request that the configuration of the service data forwarding rule corresponding to the service data forwarding request is successful.

[0127] In the above embodiments, after receiving the configuration response information fed back by the data forwarding execution module based on the first resource configuration information, by sending a second prompt message to the in-vehicle unit that sends the service data request through the control data transmission channel, the in-vehicle unit that sends the service data request can timely obtain the message that the service data forwarding rule corresponding to the service data forwarding request is successfully created, so that the service data receiving end and the service data sending end can perform service data forwarding in a timely manner based on the first resource configuration information.

[0128] In some embodiments, the receiving of the service data forwarding request in step S205 may include the following step S2051:

[0129] Step S2051, receive the service data forwarding request sent by the request sender through the control data transmission channel.

[0130] Here, the request sender is the in-vehicle unit of the vehicle, and the control data transmission channel is established by the data forwarding execution module based on the control data forwarding rule between the request sender and the data forwarding management module.

[0131] In some embodiments, the data forwarding management module may pre-establish the control data forwarding rule between the request sender and the data forwarding management module, and send the second resource configuration information determined based on the control data forwarding rule to the data forwarding execution module. The data forwarding execution module can then establish the control data transmission channel between the request sender and the data forwarding management module based on the second resource configuration information, so that the control data forwarding between the request sender and the data forwarding management module can be realized based on the control data transmission channel. For example, the data forwarding execution module can receive the first control data sent by the request sender through the third transmission channel and send the first control data to the data forwarding management module through the fourth transmission channel, so as to forward the first control data sent by the request sender to the data forwarding management module; or, the data forwarding execution module can receive the second control data sent by the data forwarding management module through the fourth transmission channel and send the second control data to the request sender through the third transmission channel, so as to forward the second control data sent by the data forwarding management module to the request sender.

[0132] In some embodiments, the service data forwarding request may be the control data sent by the request sender. Therefore, after the control data forwarding rule between the request sender and the data forwarding management module is established, the service data forwarding request can be sent to the data forwarding management module based on the control data transmission channel established by the data forwarding execution module based on the control data forwarding rule.

[0133] In the above embodiments, the control data transmission channel established by the data forwarding execution module based on the control data forwarding rule between the request sender and the data forwarding management module is used to receive the service data forwarding request sent by the requester, so that the data forwarding management module can create a service data forwarding rule corresponding to the service data forwarding request based on the service data forwarding request, and implement the forwarding of service data based on the service data forwarding rule corresponding to the data forwarding request.

[0134] In some embodiments, the above method may further include the following steps S210 to S213:

[0135] Step S210, after the vehicle is started, read the second device management information of the vehicle.

[0136] Here, the second device management information includes the attribute information of at least one in-vehicle unit of the vehicle and the attribute information of the data forwarding management module. The attribute information of the in-vehicle unit may include the identification information of the in-vehicle unit, the device type, the information of the connection interface between the in-vehicle unit and the data forwarding execution unit, etc. The attribute information of the data forwarding management module may include the identification information of the data forwarding management module, the device type, the information of the connection interface between the data forwarding management module and the data forwarding execution unit, etc. In some embodiments, the second device management information may be pre-established and stored in a preset storage area in the data forwarding management module. After the vehicle is started, the data forwarding management module may read the second device management information from the preset storage area.

[0137] Step S211, based on the attribute information of at least one in-vehicle unit and the attribute information of the data forwarding management module, generate control data forwarding rules between each in-vehicle unit and the data forwarding management module respectively.

[0138] Here, the control data forwarding rule includes the control data transmission parameters between the in-vehicle unit and the data forwarding management module.

[0139] In some embodiments, the control data forwarding rules between each in-vehicle unit and the data forwarding management module may be generated based on the attribute information of at least one in-vehicle unit, the attribute information of the data forwarding management module, and the preset rule for establishing the control data transmission channel. The preset rule for establishing the control data transmission channel may be pre-determined. For example, the preset rule for establishing the control data transmission channel may be determined according to the device type of at least one in-vehicle unit, the information of the connection interface between the in-vehicle unit and the data forwarding execution unit, the information of the connection interface between the data forwarding management module and the data forwarding execution unit, etc.

[0140] Step S212, based on the control data transmission parameters and the type of the data forwarding execution module, determine the second resource configuration information corresponding to the control data transmission parameters.

[0141] Here, the second resource configuration information is adapted to the type of the data forwarding execution module.

[0142] In some embodiments, the control data transmission parameters may include at least one of the bandwidth requirement, period, etc. of the control data transmission. The channel identifier for the data forwarding execution module to transmit the control data and the channel identifier for the vehicle-mounted unit to transmit the control data may determine the corresponding physical resource information based on the bandwidth requirement and / or period, and the type of the data forwarding execution module, map the channel identifier for the data forwarding execution module to transmit the control data and the channel identifier for the vehicle-mounted unit to transmit the control data to a resource management identifier adapted to the type of the data forwarding execution module, and use the physical resource information and the resource management identifier as the second resource configuration information.

[0143] Step S213: Send the second resource configuration information to the data forwarding execution module, so that the data forwarding execution module can establish a control data transmission channel between the vehicle-mounted unit and the data forwarding management module based on the second resource configuration information corresponding to each vehicle-mounted unit.

[0144] In some embodiments, after the data forwarding management module sends the second resource configuration information between the vehicle-mounted unit and the data forwarding management module to the data forwarding execution module, the data forwarding execution module may establish a control data transmission channel between the vehicle-mounted unit and the data forwarding management module based on the information of the control data transmission channel defined in the control data forwarding rule.

[0145] In the above embodiments, based on the attribute information of the vehicle-mounted unit and the attribute information of the data forwarding management module in the second device management information, a control data forwarding rule between the vehicle-mounted unit and the data forwarding management module is generated, and the second resource configuration information determined based on the control data forwarding rule is sent to the data forwarding execution module, so that the data forwarding execution module can establish a control data transmission channel between the vehicle-mounted unit and the data forwarding management module based on the second resource configuration information, and realize the forwarding of the control data between the vehicle-mounted unit and the data forwarding management module based on the control data transmission channel.

[0146] In some embodiments, the attribute information includes the device type and the physical interface information; the step of generating the control data forwarding rules between at least one vehicle-mounted unit and the data forwarding management module respectively based on the attribute information of at least one vehicle-mounted unit and the attribute information of the data forwarding management module in step S211 may include the following steps S2111 to S2113:

[0147] Step S2111: Determine a first vehicle-mounted unit with a device type of a controller type from at least one vehicle-mounted unit.

[0148] In some embodiments, the first vehicle-mounted unit may include various controllers of the vehicle, such as a cockpit controller, an intelligent driving controller, and a zone controller. Among them, the zone controller may be divided according to the vehicle body structure. For example, the zone controller may include a left front zone controller, a right front zone controller, a left rear zone controller, and a right rear zone controller.

[0149] Step S2112: Determine the third device management information based on the physical interface information of the first vehicle-mounted unit and the physical interface information of the data forwarding management module.

[0150] Here, the third device management information includes control data transmission parameters respectively corresponding to at least one first vehicle-mounted unit, and control data transmission parameters corresponding to the data forwarding management module.

[0151] In some embodiments, the management information of the third device may be determined based on the physical interface information of the first vehicle-mounted unit, the physical interface information of the data forwarding management module, and the established rules of the preset control data transmission channel.

[0152] Step S2113: Generate control data forwarding rules between each first vehicle-mounted unit and the data forwarding management module based on the control data transmission parameters respectively corresponding to each first vehicle-mounted unit in the third device management information and the control data transmission parameters corresponding to the data forwarding management module.

[0153] In some embodiments, the control data transmission parameters corresponding to the first vehicle-mounted unit may include information on the transmission channel for the first vehicle-mounted unit to forward control data, and the control data transmission parameters corresponding to the data forwarding management module may include information on the transmission channel for the data forwarding management module to forward control data. Therefore, the control data forwarding rules created based on the control data transmission parameters corresponding to the first vehicle-mounted unit and the control data transmission parameters corresponding to the data forwarding management module may include information on the transmission channel for the first vehicle-mounted unit to forward control data and information on the transmission channel for the data forwarding management module to forward control data.

[0154] In the above embodiments, based on the physical interface information of the first vehicle-mounted unit and the physical interface information of the data forwarding module, the third device management information is determined, and based on the control data transmission parameters respectively corresponding to the first vehicle-mounted unit in the third device management information and the control data transmission parameters corresponding to the data forwarding management module, the control data forwarding rules between the first vehicle-mounted unit and the data forwarding management module are generated, so that the control data forwarding between the first vehicle-mounted unit and the data forwarding management module can be realized based on the control data transmission parameters corresponding to the first vehicle-mounted unit and the control data transmission parameters corresponding to the data forwarding management module.

[0155] In some embodiments, the physical interface information includes the identifier of the physical interface connected to the data forwarding execution module and the occupation type of the physical interface; determining the third device management information based on the physical interface information of the first vehicle-mounted unit and the physical interface information of the data forwarding management module in step S2112 may include the following steps S21121 to step S21122:

[0156] Step S21121: For each first vehicle-mounted unit, determine the control data transmission parameter of the first vehicle-mounted unit based on the identifier of the first physical interface connected to the data forwarding execution module by the first vehicle-mounted unit and the occupation type of the first physical interface by the first vehicle-mounted unit.

[0157] In some embodiments, the identifier of the first physical interface connected to the data forwarding execution module by the first vehicle-mounted unit may be the ID of the physical interface, and the occupation type of the first physical interface may include single-device exclusive and non-single-device exclusive. For the first physical interface with single-device exclusive, the first vehicle-mounted unit and the data forwarding execution module only forward one type of data through the first physical interface; for non-single-device exclusive, the first physical interface can forward the data transmitted between the first vehicle-mounted unit and the data forwarding execution module, and can also forward the data between other vehicle-mounted units and the data forwarding execution module.

[0158] In some embodiments, the identifier of the first physical interface connected to the data forwarding execution module by the first vehicle-mounted unit and the occupation type of the first physical interface by the first vehicle-mounted unit may be used as the control data transmission parameter of the first vehicle-mounted unit.

[0159] Step S21122: Determine the control data transmission parameter of the data forwarding management module based on the identifier of the second physical interface connected to the data forwarding execution module by the data forwarding management module and the occupation type of the second physical interface by the data forwarding management module.

[0160] In some embodiments, the identifier of the second physical interface connected to the data forwarding execution module by the data forwarding management module may be the ID of the second physical interface, and the occupation type of the second physical interface by the data forwarding management module may be non-single-device exclusive, that is, the second physical interface can forward the data transmitted between the data forwarding management module and the data forwarding execution module, and can also forward the data between other vehicle-mounted units and the data forwarding execution module.

[0161] In some embodiments, the identifier of the second physical interface connecting the data forwarding management module and the data forwarding execution module, and the occupation type of the second physical interface by the data forwarding management module can be used as the control data transmission parameters of the data forwarding management module. The control data transmission parameters of the data forwarding management module may further include the attribute parameters of the control data forwarded by the data forwarding management module. The attribute parameters may include the bandwidth requirement and / or period of the control data. The bandwidth requirement and / or period of different types of control data forwarded by the data forwarding management module may be the same or different.

[0162] In the above embodiments, based on the identifier of the first physical interface connecting the first vehicle-mounted unit and the data forwarding execution module, and the occupation type of the first physical interface by the first vehicle-mounted unit, the control data transmission parameters of the first vehicle-mounted unit can be obtained; based on the identifier of the second physical interface connecting the data forwarding management module and the data forwarding execution module, and the occupation type of the second physical interface by the data forwarding management module, the control data transmission parameters of the data forwarding management module can be obtained. Thus, based on the control data transmission parameters of the first vehicle-mounted unit and the control data transmission parameters of the data forwarding management module, the control data forwarding rule between the first vehicle-mounted unit and the data forwarding management module can be directly generated.

[0163] In some embodiments, the step of generating the control data forwarding rules between each first vehicle-mounted unit and the data forwarding management module respectively based on the control data transmission parameters corresponding to each first vehicle-mounted unit in the third device management information and the control data transmission parameters corresponding to the data forwarding management module in step S2113 may include the following step S21131:

[0164] Step S21131, for each first vehicle-mounted unit, using the control data transmission parameters corresponding to the first vehicle-mounted unit as the entry configuration parameters for controlling data forwarding, and using the control data transmission parameters corresponding to the data forwarding management module as the exit configuration parameters for controlling data forwarding, to generate the control data forwarding rules between the first vehicle-mounted unit and the data forwarding management module.

[0165] In some embodiments, the entry configuration parameters may define the transmission channel for the first vehicle-mounted unit to receive service data, the attribute parameters of the control data received by the first vehicle-mounted unit, etc. The exit configuration parameters may define the transmission channel for the data forwarding management module to send service data, the attribute parameters of the control data sent by the data forwarding management module, etc. Therefore, through the transmission channel for the first vehicle-mounted unit to receive service data, the attribute parameters of the control data received by the first vehicle-mounted unit, etc., and the transmission channel for the data forwarding management module to receive service data, the attribute parameters of the control data sent by the data forwarding management module, etc., the control data forwarding rules between the first vehicle-mounted unit and the data forwarding management module can be established.

[0166] In the above embodiments, by using the control data transmission parameter corresponding to the first vehicle-mounted unit as the entry configuration parameter for control data forwarding, using the control data transmission parameter corresponding to the data forwarding management module as the exit configuration parameter for control data forwarding, and generating a control data forwarding rule between the first vehicle-mounted unit and the data forwarding management module from the entry configuration parameter and the exit configuration parameter for control data forwarding, the path configuration for forwarding control data between the first vehicle-mounted unit and the data forwarding management module can be clarified, so that the first vehicle-mounted unit and the data forwarding management module can implement control data forwarding based on the entry configuration parameter and the exit configuration parameter for control data forwarding.

[0167] In some embodiments, the data forwarding management module includes a data forwarding management library, and a pre-established second service data forwarding rule is stored in the data forwarding management library. The above method may further include the following steps S214 to S216:

[0168] Step S214: Read the second service data forwarding rule from the data forwarding management library.

[0169] Here, the data forwarding management library may be deployed or run in the data forwarding management module. The second service data forwarding rule may be manually established and pre-stored in the data forwarding management library, or may be dynamically generated by the data forwarding management module in advance based on a service data forwarding request.

[0170] Step S215: Determine third resource configuration information based on the second service data forwarding rule.

[0171] Here, the third resource configuration information is adapted to the type of the data forwarding execution module. The second service data forwarding rule may include attribute parameters of pre-configured service data and transmission channel identifiers of vehicle-mounted units for forwarding service data. The third resource configuration information can be determined based on the attribute parameters of the service data, the transmission channel identifiers, and the type of the data forwarding execution module.

[0172] Step S216: Send the third resource configuration information to the data forwarding execution module so that the data forwarding execution module forwards service data based on the third resource configuration information.

[0173] In some embodiments, after the second service data forwarding rule is read from the data forwarding management module, the third resource configuration information determined by the second service data forwarding rule is sent to the service data forwarding request. After the data forwarding execution module receives the third resource configuration information, it can, based on the third resource configuration information, establish a service data transmission channel between the service data sender and the service data receiver defined in the second service data forwarding rule, so that the service data can be forwarded based on the service data transmission channel.

[0174] In the above embodiment, by reading the second service data forwarding rule from the data forwarding management library and sending the third resource configuration information determined by the second service data forwarding rule to the data forwarding execution module, the data forwarding execution module can directly forward the service data based on the third resource configuration information.

[0175] In the embodiments of the present application, the service data transmission parameters of the service data receiver and the service data sender are obtained from the first service data forwarding rule; based on the service data transmission parameters and the type of the data forwarding execution module, the first resource configuration information corresponding to the service data transmission parameters is determined; the first resource configuration information is adapted to the type of the data forwarding execution module; the first resource configuration information is sent to the data forwarding execution module, so that the data forwarding execution module can forward the service data of the service data sender to the service data receiver based on the first resource configuration information. In this way, based on the service data transmission parameters of the service data receiver and the service data sender and the type of the data forwarding execution module, the first resource configuration information corresponding to the service data transmission parameters is determined and sent to the data forwarding execution module, so that the data forwarding execution module can forward the service data of the service data sender to the service data receiver based on the first resource configuration information, that is, the service data forwarding between the service data receiver and the service data sender can be realized based on the first resource configuration information and the data forwarding execution module, without setting a corresponding serial / deserial chip for the service data between the service data receiver and the service data sender, thereby improving the flexibility and real-time performance of service data forwarding and saving hardware costs.

[0176] Next, the implementation process of the application embodiments in the actual application scenario will be introduced.

[0177] As Figure 3 shown, it is a schematic diagram of an in-vehicle central switching architecture provided by the embodiments of the present application. In this in-vehicle central switching architecture, the central switching module 301 is integrated in the intelligent driving controller 302, and the central switching module 301 exchanges data with the system-on-chip (SOC) 3021 of the intelligent driving controller; the central switching module 301 can also exchange data with the cockpit controller 303.

[0178] As Figure 4 shown, it is a schematic diagram of an in-vehicle data exchange architecture provided by an embodiment of the present application. The in-vehicle data central exchange architecture mainly includes a central exchange management module 401 (equivalent to the "data exchange management module" in other embodiments) and a central exchange execution module 402 (equivalent to the "data forwarding execution module" in other embodiments). The central exchange management module 401 is responsible for managing the sharing relationship of service data of all protocols in the vehicle, and completing the mapping management of the data sharing relationship and the data transmission channel of the central exchange execution module, so that the service data of all protocols in the vehicle can be exchanged through one module, and data such as cameras and lidar can be directly shared in real time between different controllers through software definition, without relying on adding serial / deserial hardware to forward data or forwarding data through a processor. The central exchange execution module 402 is responsible for executing data exchange instructions and completing data exchange. It mainly copies and forwards data according to the data entry / exit, container ID, and flow ID configured by the central exchange management module. The specific method for building the forwarding channel is not defined in this application. The data forwarding channel in an existing switching chip can be used, or the data forwarding channel can be built through an FPGA or OLT module.

[0179] The central exchange management module 401 includes two parts: a data exchange management program 4011 and a data exchange configuration management library 4012. The data exchange configuration management library 4012 (equivalent to the "data forwarding management library" in other embodiments) is used for storing exchange configuration information, including management device identification management information, device data flow management information, interface-level data exchange management information, container-level data exchange management information, and data flow-level data exchange management information. The data exchange management program 4011 is mainly responsible for managing the initialization process and the data forwarding configuration management process, including starting the data forwarding configuration initialization process during the power-on initialization of the controller, loading the device identification management information, device data flow management information, interface-level data exchange management information, container-level data exchange management information, and data flow-level data exchange management information from the data exchange configuration management library 4012, and converting the device data flow management information and exchange management information into the configuration information of the central exchange execution module 402, and calling the interface provided by the central exchange execution module 402 to send it to the central exchange execution module 402. When the data forwarding requirement of the controller changes, the data exchange management program 4011 allocates corresponding exchange information for the new data forwarding requirement through the data forwarding dynamic configuration process, updates these exchange information to the data exchange configuration management library 4012, and at the same time calls the interface provided by the central exchange execution module 402 to send it to the central exchange execution module 402.

[0180] The central switching management module 401 can be a software and hardware module embedded in a certain controller. The central switching execution module 402 can be embedded in a certain controller or can be an independent software and hardware module, controller, area gateway, etc. Devices such as these communicate data interaction control information through the control information flow and business information through the service flow with the central switching management module. The central switching execution module 402 can be an OLT device, an FPGA device, a TSN switching device, or any other device with switching functions. The interface between the central switching management module 401 and the central switching execution module 402 is the configuration interface for devices such as OLT devices, FPGA devices, TSN (Time-Sensitive Networking) switching devices, or any other device with switching functions, which varies according to the devices used in the implementation process, and the interface form is not uniformly specified in the application.

[0181] In the area, a data aggregation device aggregates data such as cameras and area controller data in each area into one or more interfaces. Multiple "virtual pipes" (equivalent to "virtual channels" in other embodiments) and "flows" are abstracted within each interface. The "virtual pipes" and "flows" are used to carry data from different devices. The central switching management module 401 manages the data abstraction of all devices, generates "forwarding rules" according to the abstracted data pipes and data forwarding requirements, and finally converts the "forwarding rules" into the configuration data of the central switching execution module 402 according to the configuration interface rules of the central switching execution module 402 and sends it to the central switching execution module 402 to implement software-defined data forwarding.

[0182] Exemplarily, such as Figure 5As shown in the figure, it is a schematic diagram of another in-vehicle data exchange architecture provided by an embodiment of the present application. The central switching management module 501 (corresponding to the central switching management module 401) can be embedded in the controller-1 502. The central switching execution module 503 (corresponding to the central switching execution module 402) can be an independent software and hardware module. The interface-1 504 aggregates the data of the converging camera-2 and the front left area controller. The interface-2 505 can transmit the data of the camera-1. The interface-3506 can aggregate the data of the camera-3, the camera-4 and the rear left area controller. Among them, the data of the camera-2 can be transmitted through the virtual pipeline-1 in the interface-1 504. The data stream 1 of the front left area controller can be transmitted through the stream 1 in the virtual pipeline 2 in the interface-1 504. The data stream 2 of the front left area controller can be transmitted through the stream 2 in the virtual pipeline 2 in the interface-1 504. The data of the camera-3 can be transmitted through the virtual pipeline-1 in the interface-3 506. The data of the camera-4 can be transmitted through the virtual pipeline-2 in the interface-3 506. The data stream 1 of the rear left area controller can be transmitted through the stream 1 in the virtual pipeline-3 in the interface-3 506. The data stream 2 of the rear left area controller can be transmitted through the stream 2 in the virtual pipeline-3 in the interface-3 506. The central switching execution module 503 can transmit the aggregated data in the interface-1 504 to the controller-1 502 through the interface-4 507, and transmit the data of the camera-1 in the interface-2 505 to the controller-2 509 through the interface-5 508.

[0183] The present application provides a management method for forwarding control data, including:

[0184] Step 1, pre-configure the type of the used central switching execution module (such as FPGA or OLT), as well as the device interface management table (Table 1), the central switching execution module interface attribute management table (Table 2), the transmission unit attribute management table (Table 3) and the static service forwarding requirement management table (Table 4).

[0185] Step 2, after power-on, the central switching management module reads the device ID, category, and central switching execution module interface ID from the device management table and the central switching execution module interface attribute management table, filters out the devices with the category of "controller", generates "forwarding rule management data" according to the default rules for establishing the forwarding control channel, and stores them in Table 5 (forwarding control data forwarding rule management table) respectively. The rules for establishing the forwarding control channel can be defined by oneself. For example, in this application, when generating the "transmission unit management data", the first "central switching execution module interface type" of each controller with the type of "non-single device exclusive" is selected as the interface ID of the "forwarding control data transmission unit" of the device. The "transmission unit type" of all forwarding control data is "virtual pipeline", and the "belonging virtual pipeline ID" is 0. When generating the "forwarding rule management data", the virtual channels of the forwarding control data of all devices are forwarded to the virtual pipeline with the "device identification", "central switching execution module interface ID", and "belonging virtual pipeline ID" all being 0. When all controllers need to send or receive forwarding control data, by default, they send or receive from the virtual pipeline with the "belonging virtual pipeline ID" being 0 of the interface with the first "central switching execution module interface type" of "non-single device exclusive".

[0186] Step 3, call the "central switching execution module adaptation plug-in" program to allocate physical resources (such as time slots, wavebands, and frequency bands) in a specific type of central switching execution module according to the "transmission unit type", "bandwidth requirement", and "period" in the forwarding control data forwarding rule management table, and establish the conversion of the interface ID, virtual pipeline ID, and flow ID into the resource management identifier in a specific type of central switching execution module, and configure the allocated physical resources and resource management identifier to the specific type of central switching execution module through the configuration interface of the specific type of central switching execution module, so that the central switching execution module creates a forwarding channel for control data based on the allocated physical resources and resource management identifier.

[0187] The central switching execution module is any device that can perform time-division multiplexing, wavelength-division multiplexing, and frequency-division multiplexing on physical transmission channels. Correspondingly, the physical resources allocated to the configuration interface of the central switching execution module can include time slots, wavelength bands, and frequency bands. The mapping mechanism of interfaces, virtual pipelines, and flow identifiers can be defined according to the "central switching execution module" used and pre-written as a "central switching execution module adaptation plugin". For example, if the "central switching execution module" is an OLT device in a PON network, the upstream time slot resources are allocated according to the bandwidth and period requirements, and the interface ID is mapped to the optical interface ID, the virtual channel ID is mapped to the container ID, and the flow ID is mapped to the GEM Port. The specific resource calculation method and identifier mapping mechanism can be defined according to the type of the "central switching execution module" used.

[0188] This application provides a method for managing static service data forwarding rules, including:

[0189] Step 1, after the forwarding control channel is established, the central switching management module reads the transmission unit identifier, input device ID, and output device ID from the static service forwarding requirement management table.

[0190] Step 2, using the transmission unit identifier, input device ID, and output device ID as inputs, allocate input and output pipeline identifiers for the data transmission unit according to the "data transmission unit pipeline identifier allocation method".

[0191] Step 3, call the "central switching execution module adaptation plugin" program to allocate physical resources in a specific type of central switching execution module according to the "transmission unit type", "bandwidth requirement", and "period" in the service data forwarding rule table (Table 6), and convert the interface ID, virtual pipeline ID, and flow ID into resource management identifiers in the specific type of central switching execution module, and configure the allocated physical resources and resource management identifiers to the specific type of central switching execution module through the configuration interface of the specific type of central switching execution module. The specific type of central switching execution module can forward static service data based on the allocated physical resources and resource management identifiers.

[0192] Table 1 Device Management Table

[0193]

[0194] Table 2 Central Switching Execution Module Interface Attribute Management Table

[0195]

[0196] Table 3 Transmission Unit Attribute Management Table

[0197]

[0198] Table 4 Static Service Forwarding Requirement Management Table

[0199]

[0200] Table 5 Static Service Forwarding Requirement Management Table

[0201]

[0202] Table 6 Service Data Forwarding Rule Table

[0203]

[0204] This application provides a method for initializing data forwarding configuration. As Figure 6 shown, this method includes:

[0205] S601. After the controller starts, the central switching management module sends the default configuration information to the central switching execution module.

[0206] Here, the default configuration information can be control flow (equivalent to "control data" in other embodiments), including device identification management information, device data flow management information, interface-level data exchange management information, virtual pipeline-level data exchange management information, data flow-level data exchange management information, and can also include the configuration necessary for the interaction control information between controllers (such as the communication configuration information between the central switching management module and each controller).

[0207] Before initializing data forwarding, it is necessary to configure in-vehicle data to obtain device identification management information, device data flow management information, interface-level data exchange management information, virtual pipeline-level data exchange management information, and data flow-level data exchange management information. Each electronic device in the vehicle can be identified by a unique device ID, the interface of the central switching actuator corresponding to the device is identified by the interface ID, and the data of the device can be classified according to delay, priority, service category, etc. Each type of data is identified by a virtual pipeline ID, and each data flow is identified by a unique flow ID. The interface ID corresponds one-to-one with the hardware interface of the central switching execution module, the virtual pipeline ID corresponds one-to-one with the minimum bandwidth allocation unit in the central switching execution module, for example, corresponds to the virtual pipeline in the OLT chip, and the flow ID corresponds one-to-one with the unit in the central switching execution module that can map to the data flow (such as the GEM PORT in the OLT chip).

[0208] The device identification management table, device data flow management table, interface-level data exchange management table, virtual pipeline-level data exchange management table, and data flow-level data exchange management table are used for management respectively.

[0209] The device identification management table is shown in Table 7 and is responsible for managing the unique device identification and device description information.

[0210] Table 7 Device Identification Management Table

[0211]

[0212] The device data stream management table is shown in Table 8 and is responsible for managing the interface IDs, virtual pipeline IDs, and stream IDs corresponding to the upstream and downstream data streams of the device. For large-bandwidth devices such as display screens and high-definition cameras that require exclusive use of an interface, only the interface ID can be allocated, and the virtual pipeline ID and stream ID can default to 0.

[0213] Table 8 Device Data Stream Management Table

[0214]

[0215] The interface-level data exchange management table is shown in Table 9 and is responsible for managing the data interaction relationships of large-bandwidth devices such as display screens and high-resolution cameras that require exclusive use of an interface. Data can be directly exchanged from one interface to another interface, or copied from one interface to several other interfaces.

[0216] Table 9 Interface-Level Data Exchange Management Table

[0217]

[0218] The virtual pipeline-level data exchange management table is shown in Table 10 and is responsible for managing the data interaction relationships of medium-bandwidth devices such as lidar and low-resolution cameras that require exclusive use of a virtual pipeline in an interface. Data can be directly exchanged from a certain virtual pipeline of one interface to another virtual pipeline of the same interface or any other interface, or copied from a certain virtual pipeline of one interface to several other virtual pipelines of the same interface or other interfaces.

[0219] Table 10 Virtual Pipeline-Level Data Exchange Management Table

[0220]

[0221] The data stream-level data exchange management table is shown in Table 11 and is responsible for managing the exchange management of CAN and Ethernet data between MCUs and SOCs. Data can be directly exchanged from a certain stream of one interface to another stream of the same interface or other interfaces, or copied from a certain stream of one interface to several other streams of the same interface or other interfaces.

[0222] Table 11 Data Stream-Level Data Exchange Management Table

[0223]

[0224] The default device identification management information, device data stream management information, interface-level data exchange management information, virtual pipeline-level data exchange management information, and data stream-level data exchange management information can be written into the device identification management table, device data stream management table, interface-level data exchange management table, virtual pipeline-level data exchange management table, and data stream-level data exchange management table respectively. After the controller is started, it calls the data exchange management program in the central exchange management module to load the information in each table from the data exchange configuration management library, and converts the information in the table into the configuration information of the central exchange execution module and issues it to the central exchange execution module.

[0225] The default device identification management information, device data stream management information, interface-level data exchange management information, virtual pipeline-level data exchange management information, and data stream-level data exchange management information can include all default data interaction information and the configurations necessary for the interaction control information between controllers, or can only include the configurations necessary for the interaction control information between controllers. Other data interaction information can be dynamically applied by each controller through the data forwarding configuration management process.

[0226] S602. Based on the received default configuration information, the central exchange execution module sends a configuration response message to the central exchange management module.

[0227] After receiving the default configuration information sent by the central exchange management module, the central exchange execution module can send a configuration response message to the central exchange management module. The configuration response message can also be a control flow. Then, the central exchange management module and the central exchange execution module can perform data exchange based on the default configuration information.

[0228] As Figure 7 shown, it is a schematic flowchart of a dynamic service data forwarding management method provided by this application. The method includes:

[0229] S701. The controller (T-BOX) sends a data forwarding request to the central exchange management module.

[0230] The data requester controller (such as the controller (T-BOX)) sends a data sharing request message to the central exchange management module. For example, when the controller (T-BOX) needs to share the video data of the front-view camera, the controller (T-BOX) sends a data sharing request message to the central exchange management module, and the message carries the data transmission unit identifier, input device ID, and output device ID.

[0231] S702. The central exchange management module conducts information verification based on the data forwarding request.

[0232] The central switching management module analyzes the data sharing request message and conducts a verification of the sharing request information. The verification content includes checking whether the data transmission unit identifier exists in the transmission unit attribute management table. If it does not exist, a failure is reported in the data sharing response.

[0233] S703. After the central switching management module determines that the information verification is correct, it generates new configuration information and sends the new configuration information to the central switching execution module.

[0234] If the transmission unit identifier exists in the transmission unit attribute management table, it is checked whether the bandwidth, the number of virtual channels, and the number of streams of the corresponding interfaces of the input device and the output device reach the upper limit. If the upper limit is reached, a failure is reported in the data sharing response; if the upper limit is not reached, a success is reported in the data sharing response. Using the transmission unit identifier, the input device ID, and the output device ID as inputs, the input and output pipeline identifiers are respectively allocated to the data transmission unit according to the "data transmission unit pipeline identifier allocation method"; the "central switching execution module adaptation plug-in" program is called to allocate physical resources in a specific type of central switching execution module according to the "transmission unit type", "bandwidth requirement", and "period" in the service data forwarding rule table, and establish a conversion from the interface ID, virtual pipeline ID, and stream ID to the resource management identifier in the specific type of central switching execution module, and configure the allocated physical resources and resource management identifier to the specific type of central switching execution module through the configuration interface of the specific type of central switching execution module. The allocated physical resources and resource management identifier can be used as the new configuration information.

[0235] Among them, the above-mentioned data transmission unit pipeline identifier allocation method includes:

[0236] Step S1, read the "transmission unit type", "bandwidth requirement", and "period" from the transmission unit attribute management table according to the transmission unit identifier, and read the maximum bandwidth of the device corresponding interface from the device interface management table and the central switching execution module interface attribute management table according to the "input device ID" and "output device ID".

[0237] Step S2, set the device ID to which the data transmission unit pipeline identifier management table belongs to the "input device ID" or "output device ID", and set the interface ID to the interface ID corresponding to the device.

[0238] Step S3, if the bandwidth requirement of the data transmission unit is less than the maximum bandwidth of the corresponding interface of the device, and the "transmission unit type" is video or subnet (local area network, CAN), then allocate a virtual pipe ID that does not exist in the interface ID of the "data transmission unit" in the data transmission unit pipe identification management table for the data transmission unit; otherwise, do nothing. If the bandwidth requirement of the data transmission unit is less than the maximum bandwidth of the corresponding interface of the device, and the "transmission unit type" is not video or subnet, then allocate a virtual pipe ID and a flow ID that do not exist in the input interface ID or output interface ID of the "data transmission unit" in the service data forwarding rule table and the forwarding control data forwarding rule management table for the data transmission unit.

[0239] Step S4, store the allocated input and output virtual pipe IDs and flow IDs, as well as the "transmission unit type", "bandwidth requirement", and "period" into the service data forwarding rule table.

[0240] S704. The central switching execution module sends configuration response information to the central switching management module based on the received new configuration information.

[0241] The configuration response information can feedback to the central switching management module that the new configuration information has been received currently, and data exchange can be performed based on the new configuration information.

[0242] S705. The central switching management module sends data forwarding response information to the controller (T-BOX) based on the configuration response information sent by the central switching execution module.

[0243] After the central switching management module determines that the central switching execution module has received the new configuration information, it can feedback a data forwarding request response with a status of success to the controller (T-BOX) to prompt the controller (T-BOX) that the current data forwarding request is successful.

[0244] S706. The controller (T-BOX) receives the forwarded data sent by the central switching execution module based on the data forwarding response information.

[0245] The data forwarding response information can carry information such as the newly allocated interface ID, virtual pipe ID, and flow ID. The controller can obtain the forwarded data from the central switching execution module based on the interface ID, virtual pipe ID, and flow ID.

[0246] The technical effects brought by the in-vehicle central switching architecture provided by this application and the data forwarding method based on the central switching architecture include:

[0247] 1) Replace multiple serial / deserial chips, Ethernet switch chips, and CAN gateway chips in the existing control with a central switching chip or module, reducing the number of chips in the controller, the size of the controller's PCB (Printed Circuit Board), and the controller design cost. It is estimated that the total number of serial / deserial chips, Ethernet switch chips, and CAN gateway chips in the controller can be reduced by about 50% - 70%, and the overall controller design cost can be reduced by about 2.5% - 7%;

[0248] 2) Package video, CAN, Ethernet, and other data for transmission in a single optical fiber, reducing the number of wire harnesses and controller interfaces by about 30%, and reducing the weight of the camera transmission wire harness by about 30%. It is estimated that the wire harness length can be reduced by%;

[0249] 3) Support the diversification of vehicle models' configurations more easily through software-defined vehicle data exchange. At the same time, the development time for data exchange functions can be reduced by about 20%, accelerating the vehicle model iteration speed;

[0250] 4) By software configuration, the forwarding channels of sensor data such as camera data between different controllers can be changed, making the forwarding of sensor data easier and more flexible.

[0251] The embodiment of this application provides a data forwarding device. As Figure 8 shown, the data forwarding device 800 includes:

[0252] A first acquisition module 801, configured to acquire service data transmission parameters of a service data receiving end and a service data sending end from a first service data forwarding rule;

[0253] A first determination module 802, configured to determine first resource configuration information corresponding to the service data transmission parameters based on the service data transmission parameters and the type of the data forwarding execution module; the first resource configuration information is adapted to the type of the data forwarding execution module;

[0254] A first sending module 803, configured to send the first resource configuration information to the data forwarding execution module, so that the data forwarding execution module forwards the service data of the service data sending end to the service data receiving end based on the first resource configuration information.

[0255] In some embodiments, the service data transmission parameters include attribute parameters of the service data forwarded between the service data receiving end and the service data sending end; the first determination module is further configured to: determine physical resource information for forwarding the service data based on the attribute parameters and the type of the data forwarding execution module; and determine the physical resource information as the first resource configuration information.

[0256] In some embodiments, the service data transmission parameters include the identification information of the first transmission channel used by the service data sender to forward service data, and the identification information of the second transmission channel used by the service data receiver to receive service data; the first determination module is further configured to: convert the identification information of the first transmission channel into first channel identification configuration information adapted to the type of the data forwarding execution module, and convert the identification information of the second transmission channel into second channel identification configuration information adapted to the type of the data forwarding execution module; determine the first channel identification configuration information and the second channel identification configuration information as the first resource configuration information.

[0257] In some embodiments, the data forwarding management module stores first device management information of a vehicle; the first device management information includes service data transmission parameters respectively corresponding to at least one in-vehicle unit of the vehicle; the data forwarding device 800 further includes:

[0258] A first receiving module, configured to receive a service data forwarding request; the service data forwarding request carries data transmission unit identification information;

[0259] A second determination module, configured to, if it is determined that there is data transmission unit identification information in the first device management information, determine, based on the data transmission unit identification information and the first device management information, the service data transmission parameters corresponding to the service data receiver and the service data transmission parameters corresponding to the service data sender;

[0260] A first generation module, configured to generate a first service data forwarding rule based on the service data transmission parameters corresponding to the service data receiver and the service data transmission parameters corresponding to the service data sender.

[0261] In some embodiments, the first generation module is further configured to generate a first service data forwarding rule by using the service data transmission parameters corresponding to the service data receiver as the entry configuration parameters for service data forwarding and the service data transmission parameters corresponding to the service data sender as the exit configuration parameters for service data forwarding.

[0262] In some embodiments, the service data transmission parameters corresponding to the in-vehicle unit include the identification information of the transmission channel used by the in-vehicle unit to forward service data and the attribute parameters of the service data forwarded by the in-vehicle unit; the transmission channel used by the in-vehicle unit to forward service data includes one of the following: an interface-level transmission channel, a virtual channel-level transmission channel, and a data stream-level transmission channel.

[0263] In some embodiments, when the transmission channel used by the in-vehicle unit to forward service data includes an interface-level transmission channel, the identification of the transmission channel used by the in-vehicle unit to forward service data includes the identification information of the first physical interface;

[0264] When the transmission channel for the in-vehicle unit to forward service data includes a virtual channel-level transmission channel, the identification information of the transmission channel for the in-vehicle unit to forward service data includes the identification information of the first virtual channel and the identification information of the second physical interface to which the first virtual channel belongs; wherein, the data transmission amount corresponding to the second physical transmission interface is greater than the data transmission amount corresponding to the first virtual channel.

[0265] When the transmission channel for the in-vehicle unit to forward service data includes a data stream-level transmission channel, the identification information of the transmission channel for the in-vehicle unit to forward service data includes the identification information of the first data stream channel, the identification information of the second virtual channel to which the first data stream channel belongs, and the identification information of the third physical interface to which the second virtual channel belongs; wherein, the data transmission amount corresponding to the third physical transmission interface is greater than the data transmission amount corresponding to the second virtual channel, and the data transmission amount corresponding to the second virtual channel is greater than the data transmission amount corresponding to the first data stream channel.

[0266] In some embodiments, the data forwarding device 800 may further include:

[0267] A second sending module, configured to, if it is determined that the data transmission unit identification information does not exist in the first device management information, send a first prompt message to the request sender through the control data transmission channel to prompt that the creation of the service data forwarding rule corresponding to the service data forwarding request fails;

[0268] wherein, the request sender is the in-vehicle unit that sends the service data forwarding request, and the control data transmission channel is established by the data forwarding execution module based on the control data forwarding rule between the request sender and the data forwarding management module.

[0269] In some embodiments, the data forwarding device 800 may further include:

[0270] A third sending module, configured to, after receiving the configuration response information fed back by the data forwarding execution module based on the first resource configuration information, send a second prompt message to the in-vehicle unit that sends the service data forwarding request through the control data transmission channel to prompt that the configuration of the service data forwarding rule corresponding to the service data forwarding request is successful.

[0271] In some embodiments, the first receiving module includes:

[0272] A first receiving sub-module, configured to receive the service data forwarding request sent by the request sender through the control data transmission channel;

[0273] Among them, the request sender is the in-vehicle unit of the vehicle, and the control data transmission channel is established by the data forwarding execution module based on the control data forwarding rules between the request sender and the data forwarding management module.

[0274] In some embodiments, the data forwarding device 800 may further include:

[0275] A first reading module, configured to read the second device management information of the vehicle after the vehicle starts. The second device management information includes the attribute information of at least one in-vehicle unit of the vehicle and the attribute information of the data forwarding management module;

[0276] A second generating module, configured to generate control data forwarding rules between at least one in-vehicle unit and the data forwarding management module respectively based on the attribute information of at least one in-vehicle unit and the attribute information of the data forwarding management module; the control data forwarding rules include the control data transmission parameters between the in-vehicle unit and the data forwarding management module;

[0277] A second determining module, configured to determine second resource configuration information corresponding to the control data transmission parameters based on the control data transmission parameters and the type of the data forwarding execution module; the second resource configuration information is adapted to the type of the data forwarding execution module;

[0278] A fourth sending module, configured to send the second resource configuration information to the data forwarding execution module, so that the data forwarding execution module establishes a control data transmission channel between the in-vehicle unit and the data forwarding management module based on the second resource configuration information corresponding to each in-vehicle unit respectively.

[0279] In some embodiments, the attribute information includes device type and physical interface information; the second generating module includes:

[0280] A first determining sub-module, configured to determine a first in-vehicle unit with a device type of a controller type from at least one in-vehicle unit;

[0281] A second determining sub-module, configured to determine third device management information based on the physical interface information of the first in-vehicle unit and the physical interface information of the data forwarding management module. The third device management information includes the control data transmission parameters corresponding to at least one first in-vehicle unit respectively and the control data transmission parameters corresponding to the data forwarding management module;

[0282] A second generating sub-module, configured to generate control data forwarding rules between each first in-vehicle unit and the data forwarding management module respectively based on the control data transmission parameters corresponding to each first in-vehicle unit in the third device management information and the control data transmission parameters corresponding to the data forwarding management module.

[0283] In some embodiments, the physical interface information includes the identifier of the physical interface connected to the data forwarding execution module and the occupation type of the physical interface; the second determination sub-module includes:

[0284] A first determination unit, configured to, for each first vehicle-mounted unit, determine the control data transmission parameter of the first vehicle-mounted unit based on the identifier of the first physical interface to which the first vehicle-mounted unit is connected to the data forwarding execution module and the occupation type of the first vehicle-mounted unit for the first physical interface;

[0285] A second determination unit, configured to determine the control data transmission parameter of the data forwarding management module based on the identifier of the second physical interface to which the data forwarding management module is connected to the data forwarding execution module and the occupation type of the data forwarding management module for the second physical interface.

[0286] In some embodiments, the second generation sub-module is further configured to, for each first vehicle-mounted unit, use the control data transmission parameter corresponding to the first vehicle-mounted unit as the entry configuration parameter for controlling data forwarding and the control data transmission parameter corresponding to the data forwarding management module as the exit configuration parameter for controlling data forwarding, and generate a control data forwarding rule between the first vehicle-mounted unit and the data forwarding management module.

[0287] In some embodiments, the data forwarding management module includes a data forwarding management library, in which pre-established second service data forwarding rules are stored. The data forwarding device 800 may further include:

[0288] A second reading module, configured to read the second service data forwarding rule from the data forwarding management library;

[0289] A third determination module, configured to determine the third resource configuration information based on the second service data forwarding rule; the third resource configuration information is adapted to the type of the data forwarding execution module;

[0290] A fourth sending module, configured to send the third resource configuration information to the data forwarding execution module, so that the data forwarding execution module forwards service data based on the third resource configuration information.

[0291] An embodiment of the present application provides a vehicle, including the above-mentioned data forwarding management module and data forwarding execution module, and the data forwarding management module executes the steps in the above method.

[0292] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements some or all of the steps in the above method. The computer-readable storage medium may be transient or non-transient.

[0293] An embodiment of the present application provides a computer program product, including a computer program or instruction. When the computer program or instruction is executed by a processor, the steps in the method in the above embodiment are implemented.

[0294] An embodiment of the present application provides a computer program product. The computer program product includes a non-transitory computer-readable storage medium storing a computer program. When the computer program is read and executed by a computer, some or all of the steps in the above method are implemented. The computer program product can be specifically implemented in a manner of hardware, software, or a combination thereof. In some embodiments, the computer program product is specifically embodied as a computer storage medium. In other embodiments, the computer program product is specifically embodied as a software product, such as a Software Development Kit (SDK), etc.

[0295] It should be noted here that: the descriptions of the above embodiments tend to emphasize the differences between the embodiments, and the same or similar parts can be referred to each other. The descriptions of the above embodiments of the apparatus, device, vehicle, storage medium, and program product are similar to the descriptions of the above method embodiments and have beneficial effects similar to those of the method embodiments. For the technical details not disclosed in the embodiments of the apparatus, device, vehicle, storage medium, and program product of the present application, please refer to the descriptions of the method embodiments of the present application for understanding.

[0296] It should be understood that the term "one embodiment" or "an embodiment" mentioned throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of the present application. Therefore, the appearances of "in one embodiment" or "in an embodiment" throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in various embodiments of the present application, the magnitudes of the serial numbers of the above processes do not mean the order of execution is prior or subsequent. The order of execution of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The serial numbers of the embodiments of the present application above are only for description and do not represent the advantages or disadvantages of the embodiments.

[0297] It should be noted that in this article, the term "comprising", "including" or any other variation thereof is intended to cover a non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the phrase "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including the element.

[0298] As described above, it is only to fully illustrate the embodiments of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present application should be covered within the protection scope of the present application.

Claims

1. A data forwarding method, characterized in that, Applied to the data forwarding management module, the method includes: Obtain the service data transmission parameters of the service data receiving end and the service data sending end from the first service data forwarding rule; Based on the service data transmission parameters and the type of the data forwarding execution module, determine the first resource configuration information corresponding to the service data transmission parameters; the first resource configuration information is adapted to the type of the data forwarding execution module; Send the first resource configuration information to the data forwarding execution module, so that the data forwarding execution module forwards the service data of the service data sending end to the service data receiving end based on the first resource configuration information; The service data transmission parameters include the identification information of the first transmission channel used by the service data sending end to forward service data, and the identification information of the second transmission channel used by the service data receiving end to receive service data; The determining the first resource configuration information corresponding to the service data transmission parameters based on the service data transmission parameters and the type of the data forwarding execution module includes: Convert the identification information of the first transmission channel into the first channel identification configuration information adapted to the type of the data forwarding execution module, and convert the identification information of the second transmission channel into the second channel identification configuration information adapted to the type of the data forwarding execution module; Determine the first channel identification configuration information and the second channel identification configuration information as the first resource configuration information.

2. The data forwarding method according to claim 1, wherein The service data transmission parameters include the attribute parameters of the service data forwarded between the service data receiving end and the service data sending end; The determining the first resource configuration information corresponding to the service data transmission parameters based on the service data transmission parameters and the type of the data forwarding execution module includes: Based on the attribute parameters and the type of the data forwarding execution module, determine the physical resource information for forwarding the service data; Determine the physical resource information as the first resource configuration information.

3. The data forwarding method according to claim 1, wherein The first device management information of the vehicle is stored in the data forwarding management module; The first device management information includes the service data transmission parameters respectively corresponding to at least one in-vehicle unit of the vehicle; the method further includes: Receive a service data forwarding request; the service data forwarding request carries data transmission unit identification information; If it is determined that the data transmission unit identification information exists in the first device management information, based on the data transmission unit identification information and the first device management information, determine the service data transmission parameters corresponding to the service data receiving end and the service data transmission parameters corresponding to the service data sending end; Generate the first service data forwarding rule based on the service data transmission parameters corresponding to the service data receiving end and the service data transmission parameters corresponding to the service data sending end.

4. The data forwarding method according to claim 3, wherein The generating the first service data forwarding rule based on the service data transmission parameters corresponding to the service data receiving end and the service data transmission parameters corresponding to the service data sending end includes: Generate the first service data forwarding rule by using the service data transmission parameters corresponding to the service data receiving end as the inlet configuration parameters for service data forwarding and using the service data transmission parameters corresponding to the service data sending end as the outlet configuration parameters for service data forwarding.

5. The data forwarding method according to claim 3, wherein The service data transmission parameters corresponding to the in-vehicle unit include the identification information of the transmission channel used by the in-vehicle unit to forward service data and the attribute parameters of the service data forwarded by the in-vehicle unit. The transmission channel used by the in-vehicle unit to forward service data includes one of the following: interface-level transmission channel, virtual channel-level transmission channel, data stream-level transmission channel.

6. The data forwarding method according to claim 5, wherein when the transmission channel used by the in-vehicle unit to forward service data includes an interface-level transmission channel, the identification of the transmission channel used by the in-vehicle unit to forward service data includes the identification information of the first physical interface; when the transmission channel used by the in-vehicle unit to forward service data includes a virtual channel-level transmission channel, the identification information of the transmission channel used by the in-vehicle unit to forward service data includes the identification information of the first virtual channel and the identification information of the second physical interface to which the first virtual channel belongs; wherein, the data volume that can be transmitted corresponding to the second physical interface is greater than the data volume that can be transmitted corresponding to the first virtual channel; when the transmission channel used by the in-vehicle unit to forward service data includes a data stream-level transmission channel, the identification information of the transmission channel used by the in-vehicle unit to forward service data includes the identification information of the first data stream channel, the identification information of the second virtual channel to which the first data stream channel belongs, and the identification information of the third physical interface to which the second virtual channel belongs; wherein, the data volume that can be transmitted corresponding to the third physical interface is greater than the data volume that can be transmitted corresponding to the second virtual channel, and the data volume that can be transmitted corresponding to the second virtual channel is greater than the data volume that can be transmitted corresponding to the first data stream channel.

7. The data forwarding method according to claim 3, wherein It further includes: if it is determined that the data transmission unit identification information does not exist in the first device management information, send a first prompt message to the request sender through the control data transmission channel to prompt that the creation of the service data forwarding rule corresponding to the service data forwarding request fails; wherein, the request sender is the in-vehicle unit that sends the service data forwarding request, and the control data transmission channel is established by the data forwarding execution module based on the control data forwarding rule between the request sender and the data forwarding management module.

8. The data forwarding method according to claim 7, wherein It further includes: after receiving the configuration response information fed back by the data forwarding execution module based on the first resource configuration information, send a second prompt message to the in-vehicle unit that sends the service data forwarding request through the control data transmission channel to prompt that the configuration of the service data forwarding rule corresponding to the service data forwarding request is successful.

9. The data forwarding method according to claim 3, wherein The receiving of the service data forwarding request includes: receive the service data forwarding request sent by the request sender through the control data transmission channel. Among them, the request sender is the in-vehicle unit of the vehicle, and the control data transmission channel is established by the data forwarding execution module based on the control data forwarding rules between the request sender and the data forwarding management module.

10. The data forwarding method according to claim 9, wherein The method further includes: After the vehicle is started, reading second device management information of the vehicle, where the second device management information includes attribute information of at least one in-vehicle unit of the vehicle and attribute information of the data forwarding management module; Based on the attribute information of the at least one in-vehicle unit and the attribute information of the data forwarding management module, generating control data forwarding rules between each of the at least one in-vehicle unit and the data forwarding management module respectively; the control data forwarding rules include control data transmission parameters between the in-vehicle unit and the data forwarding management module; Based on the control data transmission parameters and the type of the data forwarding execution module, determining second resource configuration information corresponding to the control data transmission parameters; the second resource configuration information is adapted to the type of the data forwarding execution module; Sending the second resource configuration information to the data forwarding execution module, so that the data forwarding execution module establishes a control data transmission channel between the in-vehicle unit and the data forwarding management module based on the second resource configuration information corresponding to each in-vehicle unit respectively.

11. The data forwarding method according to claim 10, wherein The attribute information includes device type and physical interface information; The generating control data forwarding rules between each of the at least one in-vehicle unit and the data forwarding management module respectively based on the attribute information of the at least one in-vehicle unit and the attribute information of the data forwarding management module includes: Determining a first in-vehicle unit with a device type of a controller type from the at least one in-vehicle unit; Based on the physical interface information of the first in-vehicle unit and the physical interface information of the data forwarding management module, determining third device management information; the third device management information includes control data transmission parameters corresponding to each of at least one first in-vehicle unit respectively and control data transmission parameters corresponding to the data forwarding management module; Based on the control data transmission parameters corresponding to each of the first in-vehicle units in the third device management information and the control data transmission parameters corresponding to the data forwarding management module, generating control data forwarding rules between each of the first in-vehicle units and the data forwarding management module respectively.

12. The data forwarding method according to claim 11, wherein The physical interface information includes an identifier of a physical interface connected to the data forwarding execution module and an occupation type of the physical interface; The determining third device management information based on the physical interface information of the first in-vehicle unit and the physical interface information of the data forwarding management module includes: For each of the first in-vehicle units, based on an identifier of a first physical interface connected between the first in-vehicle unit and the data forwarding execution module and an occupation type of the first physical interface by the first in-vehicle unit, determining the control data transmission parameters of the first in-vehicle unit; Determine the control data transmission parameters of the data forwarding management module based on the identifier of the second physical interface to which the data forwarding management module is connected to the data forwarding execution module, and the occupation type of the second physical interface by the data forwarding management module.

13. The data forwarding method according to claim 11, characterized in that, Generating control data forwarding rules between each of the first on-vehicle units and the data forwarding management module based on the control data transmission parameters respectively corresponding to each of the first on-vehicle units in the third device management information and the control data transmission parameters corresponding to the data forwarding management module includes: For each of the first on-vehicle units, generate a control data forwarding rule between the first on-vehicle unit and the data forwarding management module by using the control data transmission parameter corresponding to the first on-vehicle unit as the entry configuration parameter for control data forwarding and the control data transmission parameter corresponding to the data forwarding management module as the exit configuration parameter for control data forwarding.

14. The data forwarding method according to any one of claims 1 to 13, characterized in that The data forwarding management module includes a data forwarding management library, and a pre-established second service data forwarding rule is stored in the data forwarding management library. The method further includes: Read the second service data forwarding rule from the data forwarding management library; Determine third resource configuration information based on the second service data forwarding rule; the third resource configuration information is adapted to the type of the data forwarding execution module; Send the third resource configuration information to the data forwarding execution module so that the data forwarding execution module forwards service data based on the third resource configuration information.

15. A data forwarding device, characterized in that, The data forwarding device includes: A first acquisition module, configured to acquire service data transmission parameters of a service data receiving end and a service data sending end from a first service data forwarding rule; A first determination module, configured to determine first resource configuration information corresponding to the service data transmission parameters based on the service data transmission parameters and the type of the data forwarding execution module; the first resource configuration information is adapted to the type of the data forwarding execution module; A first sending module, configured to send the first resource configuration information to the data forwarding execution module so that the data forwarding execution module forwards the service data of the service data sending end to the service data receiving end based on the first resource configuration information; The service data transmission parameters include identification information of a first transmission channel used by the service data sending end to forward service data and identification information of a second transmission channel used by the service data receiving end to receive service data; The first determination module is further configured to: Convert the identification information of the first transmission channel into first channel identification configuration information adapted to the type of the data forwarding execution module, and convert the identification information of the second transmission channel into second channel identification configuration information adapted to the type of the data forwarding execution module; Determine the first channel identification configuration information and the second channel identification configuration information as the first resource configuration information.

16. A vehicle, characterized in that, The vehicle includes a data forwarding management module and a data forwarding execution module, and the data forwarding management module executes the steps in the method according to any one of claims 1 to 14.

17. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps in the method according to any one of claims 1 to 14.

18. A computer program product comprising a computer program or instructions, characterized in that, When the computer program or instruction is executed by a processor, it implements the steps in the method according to any one of claims 1 to 14.

Citation Information

Patent Citations

  • Method for transmitting data in passive optical network, user-side equipment, and system

    CN102714614A

  • Physical channel configuration method, detection method, terminal and base station

    CN106304253A