A data transmission method and a data transmission system

By identifying and utilizing idle interfaces through a master-slave chip network, the problem of insufficient flexibility in expanding vehicle terminal interfaces is solved, the complexity of hardware and software configuration is reduced, and flexible expansion of external interfaces is achieved.

CN116866378BActive Publication Date: 2026-11-27SHENZHEN STREAMING VIDEO TECH
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310740592.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-20
Publication Date
2026-11-27
Estimated Expiration
2043-06-20

AI Technical Summary

Technical Problem

Existing vehicle terminals require hardware modifications or the addition of external extension boards to expand interfaces when dealing with different vehicle models and conditions, resulting in insufficient flexibility and complex software configuration.

Method used

A data transmission system consisting of at least two transmission chips is used, in which the master chip and slave chip network through a broadcast process, identify and utilize idle interfaces for data transmission, and realize flexible expansion of external interfaces.

Benefits of technology

It reduces hardware modification costs and software development workload, and enables flexible expansion of external interfaces to adapt to different vehicle scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116866378B_ABST
    Figure CN116866378B_ABST
Patent Text Reader

Abstract

The application discloses a data transmission method and a data transmission system. The method is applied to the system, the system comprises at least two transmission chips, each of the transmission chips is provided with at least two external interfaces; the at least two transmission chips comprise a master chip and at least one slave chip; the method comprises the following steps: the at least two transmission chips are networked through a broadcast process, so that each of the slave chips is in communication connection with the master chip and / or at least one other slave chip; the master chip determines idle external interfaces in the at least two networked transmission chips; the at least two networked transmission chips perform data transmission with the outside world through the idle external interfaces. Through the application, the external interfaces can be expanded flexibly, and data interaction with the outside world can be better performed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of vehicle terminal technology, and in particular relates to a data transmission method and data transmission system. Background Technology

[0002] In-vehicle terminals can connect to various functional devices within a vehicle to monitor its status. However, depending on the vehicle model and its condition, when the terminal's external interfaces are insufficient, it often requires modification of the terminal's peripheral hardware or the addition of an external extension board and customized software to expand the interfaces and enable data transmission with diverse vehicle functional devices. Clearly, this approach still needs improvement in terms of flexibility. Summary of the Invention

[0003] This application provides a data transmission method and system that can flexibly expand external interfaces and better interact with the outside world.

[0004] In a first aspect, this application provides a data transmission method applied to a data transmission system, the data transmission system comprising at least two transmission chips, each transmission chip having at least two external interfaces; and the at least two transmission chips comprising a master chip and at least one slave chip; the data transmission method comprising:

[0005] At least two transmission chips are networked through a broadcast process so that each slave chip can communicate with the master chip and / or at least one other slave chip.

[0006] The main chip determines the available external interfaces in at least two networked transmission chips;

[0007] At least two networked transmission chips transmit data to the outside world through their idle external interfaces.

[0008] Secondly, this application provides a data transmission system, which includes at least two transmission chips, and the at least two transmission chips include a master chip and at least one slave chip;

[0009] At least two transmission chips are networked through a broadcast process so that each slave chip can communicate with the master chip and / or at least one other slave chip.

[0010] The main chip determines the available external interfaces in at least two networked transmission chips;

[0011] At least two transmission chips that have been networked transmit data for service functions to the outside world through their idle external interfaces.

[0012] The beneficial effects of this application compared to the prior art are as follows: The data transmission method proposed in this application is applied to an improved data transmission system, which may include at least two transmission chips, each with at least two external interfaces, and these at least two transmission chips include a master chip and at least one slave chip. Based on this data transmission system, in the data transmission method proposed in this application, these at least two transmission chips can be networked through a broadcast process, so that each slave chip can communicate with the master chip and / or at least one other slave chip. Then, the master chip can determine the idle external interface among the networked at least two transmission chips, and finally, the networked at least two transmission chips can transmit data with the outside world through the idle external interface. For different actual vehicle scenarios, the above data transmission system can flexibly match the master chip with different numbers and types of slave chips without redesigning the master chip, greatly reducing the hardware modification cost; moreover, the networking between chips can also be achieved intelligently by the chips, without requiring users to manually modify the corresponding software configuration repeatedly, greatly reducing the workload of software development; thus, the solution of this application realizes flexible expansion of external interfaces. It is understood that the beneficial effects of the second aspect mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. Attached Figure Description

[0013] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0014] Figure 1 This is an example diagram of the architecture of the data transmission system provided in the embodiments of this application;

[0015] Figure 2 This is another architectural example diagram of the data transmission system provided in the embodiments of this application;

[0016] Figure 3 This is a schematic diagram illustrating the implementation process of the data transmission method provided in the embodiments of this application. Detailed Implementation

[0017] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.

[0018] To illustrate the above-described technical solutions of this application, specific embodiments are described below.

[0019] Please see Figure 1 , Figure 1 An architectural example of the data interaction system provided in the embodiments of the present invention is given. For example... Figure 1 As shown, the data interaction system includes at least two transmission chips; wherein, the at least two transmission chips include a master chip and at least one slave chip. Figure 1 (Only two are shown in the image), and each transmission chip may include at least two external interfaces. For example only, the master chip may specifically be a system-on-chip (SOC), and the slave chip may specifically be a microcontroller unit (MCU) adapter board and / or an MCU expansion board.

[0020] The main chip contains multiple external interfaces, and any two external interfaces can be of the same type or different types.

[0021] For example only, Figure 1 The main chip shown includes three external interfaces: UART-A1, UART-A2, and GPIOIN-A3. UART-A1 and UART-A2 are serial ports, specifically Universal Asynchronous Receiver / Transmitter (UART), with two physical types: RS-232 and RS-485. Each UART interface includes TX and RX transmit / receive pins. GPIOIN-A3 is a General-purpose input / output interface; it represents a single-pin level input, where IN stands for input pin. The suffixes of A1, A2, and A3 are command numbers, used to distinguish different external interfaces and have no actual function or meaning.

[0022] For ease of description, the external interface UART-A1 will be referred to as A1, the external interface UART-A2 as A2, and the external interface GPIOIN-A3 as A3.

[0023] The chip also contains multiple external interfaces, and any two external interfaces can be of the same type or different types.

[0024] For example only, Figure 1Two slave chips are shown, namely Slave Chip 1 and Slave Chip 2. Slave Chip 1 includes external interfaces UART-B1, UART-B2, and UART-B3. Slave Chip 2 includes external interfaces UART-C1, UART-C2, GPIOIN-C3, and GPIOOUT-C4. GPIOOUT-C4 represents a single pin for level output, where OUT stands for input pin. The suffixes of B1, B2, B3, C1, C2, C3, and C4 are command numbers, used to distinguish different external interfaces and have no actual function or meaning.

[0025] For ease of description, the external interface UART-B1 will be referred to as B1, the external interface UART-B2 as B2, the external interface UART-B3 as B3, the external interface UART-C1 as C1, and the external interfaces UART-C2, GPIOIN-C3, and GPIOOUT-C4 as [other interfaces].

[0026] When used alone, the main chip provided in this application embodiment has idle external interfaces A1, A2, and A3, all of which can communicate with the vehicle's infotainment system. However, when connected to a slave chip in a network, such as... Figure 1 As shown, when the external interface A1 of the main chip is connected to the external interface B1 of the slave chip, the external interface A1 is occupied for internal communication and can no longer be used for external communication, leaving only A2 and A3 as the external interfaces available to the main chip itself.

[0027] The slave chip 1 provided in this embodiment originally has three unused external interfaces. When the external interface B1 of slave chip 1 is connected to the external interface A1 of the master chip, slave chip 1 can communicate with the master chip. Overall, the external interface A1 of the master chip is occupied, but the external interfaces B2 and B3 of slave chip 1 are added, which is equivalent to adding one external interface. However, in some special scenarios, the above external interfaces may not be sufficient, so it can be expanded again according to needs by connecting slave chip 2. After the master chip connects the required slave chips and forms a network, it can interact with the outside world for data exchange.

[0028] like Figure 1 As shown, in this network configuration, the external interface B1 of chip 1 is connected to the external interface A1 of the main chip; the external interface B2 of chip 1 is connected to the external interface C1 of chip 2. Overall, the available interfaces that can connect to an external vehicle system are: external interface A2 of the main chip, external interface A3 of the main chip, external interface B3 of chip 1, external interface C2 of chip 2, external interface C3 of chip 2, and external interface C4 of chip 2.

[0029] It is understood that the main chip belongs to the underlying layer of the data transmission system proposed in this application embodiment, and is used to negotiate and enumerate external interfaces, thereby realizing control functions such as data transmission and reception and routing forwarding. Before the main chip is connected to the slave chip, the main chip is an independent module with complete functions, which can connect and be used with the vehicle's infotainment system through a limited interface, but may not be able to meet the needs of all vehicle models and all vehicle conditions. Based on this, this application embodiment introduces a slave chip. The slave chip is generally an expansion board or adapter board, which can be used to expand external interfaces and negotiate and enumerate external interfaces, thereby realizing control functions such as data transmission and reception and routing forwarding. Before the slave chip is connected to the main chip, the slave chip is an independent module, but it does not have complete functions. The slave chip can only work when the main chip is connected to expand the external interfaces. That is, the slave chip generally cannot be used alone, but must be used in conjunction with the main chip.

[0030] In the data transmission system proposed in this application embodiment, the external interfaces already connected between the master chip and the slave chip, as well as the external interfaces already connected between slave chips, are actually used for internal communication within the data transmission system; the unconnected external interfaces between the master chip and the slave chip are used for external communication. Based on the above data transmission system, this application embodiment also provides a data transmission method, which, after the master and slave chips establish a hardware connection, identifies available external interfaces, i.e., idle external interfaces, through automatic enumeration and negotiation of each master and slave chip; after identifying these available external interfaces, these external interfaces can be used to send and receive data with the outside world (e.g., a vehicle infotainment system).

[0031] It should be noted that, in this embodiment of the application, the number and model of the external interfaces of the main chip, slave chip 1 and slave chip 2 are not limited.

[0032] In some embodiments, please refer to Figure 2 The data transmission system also includes: a user interaction module connected to the main chip, and a data transceiver module connected to the user interaction module.

[0033] The data transceiver module includes upper-layer business function modules, which can perform data transmission, reception, and processing. As an example only, the business function modules included in the data transceiver module are not limited to the following: radar control module, GPS module, and LED control module, etc.

[0034] The user interaction module can be used to display the available types and number of external interfaces of the underlying hardware of the system, as well as the upper-level business function modules, and ultimately form the association between the upper-level business function modules and the lower-level external interfaces.

[0035] In addition to the data transmission system provided above, this application also provides a data transmission method applied to the data transmission system. For example... Figure 3 As shown, the data transmission method includes:

[0036] Step 301: At least two transmission chips network through a broadcast process, so that each slave chip can communicate with the master chip and / or at least one other slave chip.

[0037] Each transmission chip (including master and slave chips) in the data transmission system can have pre-set firmware built-in. Once the transmission chips have established a hardware connection and have been powered on, they can form a network by running the firmware. After the network is established, the chips with established hardware connections have a communication connection, meaning that data transmission between the chips can begin.

[0038] Step 302: The main chip determines the idle external interface of at least two transmission chips that have been networked.

[0039] As previously discussed in the data transmission system section, once any two chips have established a connection (including hardware and communication connections), the external interfaces connecting these two chips are occupied; that is, these external interfaces actually perform the function of internal data transmission. Clearly, these occupied external interfaces cannot be used to transmit data for external business functions. Therefore, the main chip can identify the idle external interfaces of each transmission chip in the network, i.e., the unoccupied external interfaces. These idle external interfaces can then be used for subsequent data transmission with the outside world.

[0040] Step 303: At least two transmission chips that have been networked transmit service function data to the outside through their idle external interfaces.

[0041] Once the available external interfaces of the networked transmission chips are identified, data for service functions can be transmitted to external systems (such as vehicle-mounted systems) through these interfaces. Generally, one service function corresponds to one available external interface, and the service function can subsequently send and receive data through the corresponding available external interface.

[0042] In some embodiments, the networking process specifically includes:

[0043] A1. Each transmission chip sends its own chip attribute information through the first broadcast process, so that each transmission chip updates its own chip attribute information and interface mapping relationship.

[0044] Each transmission chip can set its own chip attribute information after power-on, and this information can be stored in its own chip attribute table. After setting up and entering the networking process, it can send its chip attribute information outward through the first broadcast process. In this way, each transmission chip knows which devices its external interface is connected to, thus enabling each transmission chip to update its own chip attribute information and interface mapping relationships.

[0045] For example only, chip attribute information may include, but is not limited to, the following: chip type, chip ID / SN, interface type, interface name, current interface status, uplink interface, downlink interface, and broadcast route.

[0046] Among them, the chip type indicates whether the corresponding transmission chip is a master chip or a slave chip; the chip ID / SN indicates the unique code of the corresponding transmission chip; the interface type indicates the type of interface (i.e., external interface) reserved for external sockets or tail wire harnesses in the corresponding transmission chip, such as UART or GPIO; the interface name indicates the name of the external interface in the corresponding transmission chip; in the initial state, all external interfaces are in an idle state by default; for the overall system after networking, the uplink interface indicates the direction of data transmission to the master chip, and the downlink interface indicates the direction of data transmission to the vehicle head unit or other external devices; the broadcast route indicates the data transmission and reception direction and routing interface of each external interface of the corresponding transmission chip.

[0047] It is important to note that before network negotiation, each transmission chip uses its own broadcast route information as its interface; once network negotiation is complete, the broadcast route information is updated and points to the next chip (downlink); uplink uses the value of the "uplink interface" as a guide.

[0048] by Figure 1 or Figure 2 Taking the data transmission system shown as an example, the initial chip attribute table of its main chip can be shown in Table 1 below:

[0049]

[0050] Table 1

[0051] Specifically, for the main chip, its type is "main"; in the initial state, it has no external interface and is an uplink interface, so the uplink interface is marked as "none"; its downlink interface is independent and is the name of its own external interface, which is abbreviated here as (Device ID: Interface Name Abbreviation), such as A01:A1, which means that it is the "external interface UART-A1" of the main chip A01, and so on.

[0052] Similarly, still based on Figure 1 or Figure 2 Taking the data transmission system shown as an example, its initial chip attribute table from chip 1 can be shown in Table 2 below:

[0053]

[0054] Table 2

[0055] Similarly, still based on Figure 1 or Figure 2 Taking the data transmission system shown as an example, its initial chip attribute table from chip 2 can be shown in Table 3 below:

[0056]

[0057] Table 3

[0058] A2. Each transmission chip sends its own interface mapping relationship through the second broadcast process so that the main chip can update the overall routing table.

[0059] If a certain external interface of one transmission chip is hardware-connected to a certain external interface of another transmission chip, then through the first broadcast process, both external interfaces can receive the chip attribute information broadcast by the other interface. Conversely, if an external interface has not established a hardware connection with other transmission chips, then that external interface will inevitably not receive any broadcast information. Based on this, in the second broadcast process, the interfaces of each transmission chip that did not previously receive information do not need to broadcast again, and their state remains unchanged (i.e., they remain idle). That is, only connected external interfaces will broadcast in the second broadcast process, specifically broadcasting the interface mapping relationship of the corresponding transmission chip.

[0060] It is understandable that, considering the possibility of multiple levels of connection between the transmission chips, each transmission chip can periodically broadcast multiple times during the second broadcast process to improve reliability. The specific number of broadcasts can be determined based on the number of connection levels of the transmission chips. As an example, the broadcast period can be 500 milliseconds.

[0061] In some embodiments, step A1 includes:

[0062] B1. Each transmission chip sends its chip attribute information through its respective external interface.

[0063] It is important to note that due to the physical characteristics of GPIO-type external interfaces, they do not need to be broadcast and cannot be broadcast; therefore, chip attribute information can only be broadcast through the non-GPIO interfaces of each transmission chip.

[0064] by Figure 1 or Figure 2 Taking the data transmission system shown as an example, the broadcast transmission operation performed by its main chip in the first broadcast process can be specifically described as follows:

[0065] Initially, the main chip has three idle external interfaces: A1, A2, and A3. The main chip polls interfaces A1 and A2, first broadcasting its own chip attribute information through interface A1, and then broadcasting the same information through interface A2. Since interface A3 is a GPIO interface, it does not broadcast.

[0066] It is understandable that during this period, chip 1 and chip 2 broadcast their respective chip attribute information (i.e., chip attribute table) in the same way, which will not be elaborated here.

[0067] B2. For each transmission chip, when the transmission chip has a target external interface for receiving chip attribute information from other transmission chips, update the chip attribute information and interface mapping relationship of the transmission chip according to the target external interface and the received chip attribute information.

[0068] As described earlier, if an external interface of a transmission chip receives chip attribute information from other transmission chips, it indicates that the external interface must have established a hardware connection with the external interface of those other transmission chips. This allows them to form a network, creating a data link between the transmission chip and the other transmission chip. For ease of description, this external interface can be referred to as the target external interface. The transmission chip can update its chip attribute information and interface mapping relationship based on the target external interface and the received chip attribute information.

[0069] Specifically, for any transmission chip, it can update the interface transmission direction of the target external interface in the first chip attribute table, change the state of the target external interface from idle to busy, and add a mapping relationship from the target external interface to the second chip attribute table when the target external interface is in the specified transmission direction (specifically the downlink direction, that is, the target external interface is a downlink interface). The first chip attribute table is the chip attribute table of the transmission chip, and the second chip attribute table is the chip attribute table received by the transmission chip through the target external interface.

[0070] The interface transmission direction indicates whether the corresponding external interface is an uplink or downlink interface. For the master chip, all external interfaces are downlink, and its external interfaces cannot forward information uplink; that is, when the transmission chip is the master chip, the target external interface can be determined to be a downlink interface. Conversely, for the slave device, as long as its external interface receives information sent by the master chip or other slave devices' interfaces, it can be considered an uplink interface; that is, when the transmission chip is a slave chip, the target external interface can be determined to be an uplink interface.

[0071] by Figure 1 or Figure 2 Taking the data transmission system shown as an example, after each transmission chip broadcasts in the first broadcast process, the update process of the main chip's interface mapping relationship is as follows:

[0072] When the master chip's external interface UART-A1 receives device information from slave chip 1, the master chip can update the route of its external interface UART-A1 to "A01:A1-B01:B1" in its chip attribute table, and simultaneously mark the current interface status of this external interface as "busy". Since B2 is a downlink interface, memory space can be allocated within the slave chip to establish an interface mapping relationship. This interface mapping relationship is shown in Table 4 below.

[0073]

[0074] Table 4

[0075] by Figure 1 or Figure 2 Taking the data transmission system shown as an example, after each transmission chip broadcasts in the first broadcast process, the update process of the interface mapping relationship from chip 1 is as follows:

[0076] Slave chip 1 obtains the master chip device information from the external interface UART-B1. If the device type is determined to be "Master," slave chip 1 considers this interface to be connected to the master chip. It can then mark the external interface UART-B1 as an uplink interface in its chip attribute table and mark its current interface status as "Busy." Since B1 is an uplink interface, there is no need to establish a corresponding interface mapping relationship. The updated chip attribute table of slave chip 1 is shown in Table 5 below:

[0077]

[0078] Table 5

[0079] In addition, chip 1 obtains device information from the external interface UART-B2 of chip 2. If the device type is determined to be "slave," chip 1 considers this interface to be connected to a downlink slave device and marks the external interface UART-B2 as a downlink interface in its chip attribute table, while also marking the current interface status as "busy." Since B2 is a downlink interface, memory space can be allocated internally within the slave chip to establish an interface mapping relationship. This interface mapping relationship is shown in Table 6 below:

[0080]

[0081] Table 6

[0082] by Figure 1 or Figure 2 Taking the data transmission system shown as an example, after each transmission chip broadcasts in the first broadcast process, the update process of the interface mapping relationship from chip 1 is as follows:

[0083] Chip 2 obtains device information from external interface C1 of chip 1. Determining the device type as "slave," chip 2 considers this interface to be connected to an uplink device. It can then mark external interface C1 as an uplink interface in its chip attribute table and mark its current interface status as "busy." Since B1 is an uplink interface, there is no need to establish a corresponding interface mapping relationship. The updated chip attribute table of slave chip 2 is shown in Table 7 below:

[0084]

[0085] Table 7

[0086] It's understandable that for the main chip, its external interface A2 is idle because it's not connected and therefore cannot receive chip attribute information from other transmission chips. Similarly, chip 1's external interface B3 is also idle because it's not connected and therefore cannot receive chip attribute information from other transmission chips. Furthermore, all external interfaces of type GPIO do not require broadcasting and are therefore also idle. These idle external interfaces will not trigger the second broadcast process subsequently.

[0087] In some embodiments, step A2 includes:

[0088] C1. For each transmission chip, send the chip attribute information and interface mapping relationship of the transmission chip through the target external interface in the transmission chip.

[0089] It is understandable that through the first broadcast process, after each transmission chip undergoes a round of broadcasting, enumeration, and analysis, the chip attribute information and interface mapping relationships stored within each chip have been updated. Figure 1 or Figure 2 Taking the data transmission system shown as an example, the main chip can be told that its external interface A2 is connected to the slave chip 1; the slave chip 1 can be told that its external interface B2 is connected to the slave chip 2.

[0090] C2. The main chip updates the overall routing table based on the chip attribute information and interface mapping relationship of all received transmission chips.

[0091] by Figure 1 or Figure 2 Taking the data transmission system shown as an example, the updated chip attribute information (i.e., chip attribute table) and interface mapping relationship of chip 2 can be broadcast to chip 1, and the updated chip attribute information (i.e., chip attribute table) and interface mapping relationship of chip 1 can be broadcast to the master chip. In this way, the master chip can receive the updated chip attribute information (i.e., chip attribute table) and interface mapping relationship information of chip 2 and chip 1 from the external interface A1. Accordingly, the overall routing table updated within the master chip can be shown in Table 8 below:

[0092]

[0093] Table 8

[0094] It is understandable that this master routing table not only tells us whether each external interface is idle, but also tells us the routing information of each external interface, which helps the data transmission within the data transmission system, so that the data of each business function can be accurately routed to the corresponding idle external interface.

[0095] In some embodiments, step 303 includes:

[0096] D1. The main chip reports the interface information of the idle external interfaces to the user interaction module.

[0097] Based on the master routing table, the main chip can determine which external interfaces are currently idle. The interface information (such as the interface name) of these idle external interfaces can be reported by the main chip to the upper-layer user interaction module. Thus, the user can use this user interaction module to determine which external interfaces are currently available for use by the upper-layer business function modules.

[0098] D2. The user interaction module allocates corresponding idle external interfaces to each business function module.

[0099] The user interaction module is capable of interacting with users; that is, it can display information to users through a user interface and respond to user-inputted commands. Based on this, the user interaction module can allocate corresponding available external interfaces to various business function modules through user interaction.

[0100] Specifically, the data transceiver module can first send its business function list to the user interaction module. This business function list records the business function modules possessed by the data transceiver module. In this way, the user interaction module can display this business function list and available external interfaces on its display interface for the user to select and associate. Then, in response to the user's association command input on the display interface, the corresponding available external interfaces can be assigned to each business function module. As an example, the business function modules assigned to each module are shown in Table 9 below:

[0101] Have an interface name type Current interface status Select Function Binding External interface UART-A2 UART idle Vehicle radar External interface GPIOIN-A3 GPIO IN idle button External interface UART-B3 UART idle LED lights External interface UART-C2 UART idle GPS External interface GPIOIN-C3 GPIO IN idle slightly External interface GPIOOUT-C4 GPIO OUT idle slightly

[0102] Table 9

[0103] It's important to note that the "Select Function Binding" option shown above indicates that the corresponding external interface is associated with an internal upper-layer business function module. For example, if the external interface C2 is bound to the GPS module, then internal GPS information is sent and received through the external interface C2, thus shielding the upper-layer business from the underlying hardware connection information.

[0104] Therefore, by connecting slave chip 1 and slave chip 2, the total number of available external interfaces increases from the original 3 (external interfaces A1, A2, and A3) to 6 (external interfaces A2, A3, B3, C2, C3, and C4). In this way, the data transmission system can flexibly expand its external access capabilities with minimal networking without changing the existing product hardware, meeting the needs of actual vehicle scenarios.

[0105] D3. For each service function module, at least two networked transmission chips transmit data between the service function module and the outside world through the idle external interface allocated to the service function module.

[0106] Taking the relationships shown in Table 9 and the overall routing table shown in Table 8 as examples, the specific data transmission process in this data transmission system can be described as follows:

[0107] Suppose that the GPS module of the data transceiver module wants to send the following command to the vehicle GPS device: $GP:123.

[0108] Based on the relationships shown in Table 9, the main chip knows that the GPS module is associated with the external interface UART-C2. Therefore, the main chip can first search for "UART-C2" using the master routing table shown in Table 8. The search principle is to traverse all external interfaces one by one according to the master routing table established by the main chip until the corresponding name C2 is found. The specific search process is as follows:

[0109] The main chip's chip attribute table searches for the external interface UART-A1, finding its corresponding downlink interface to be A01:A1 (with a corresponding broadcast route of A01:A1-B01:B1). It is then discovered that this external interface points to slave chip 1. The search continues in slave chip 1's chip attribute table for the external interface UART-B1, finding it to be an uplink interface, thus allowing a return to the previous state. Next, the search continues in slave chip 1's chip attribute table for the next external interface, UART-B2. The search reveals its corresponding downlink interface to be B01:B2 (with a corresponding broadcast route of B01:B1). 1:B2-C01:C1); Then it is found that the downlink interface B01:B2 points to the slave chip 2, so the search continues in the chip attribute table of slave chip 1 for the external interface UART-C1. It is found that the external interface UART-C1 is the uplink interface, so it can be returned; Continue to search in the chip attribute table of slave chip 2 for the next external interface UART-C2. Its corresponding downlink interface is C01:C2. At this point, the external interface C2 (i.e. UART-C2) has been found, and finally the complete routing information (A01:A1-B01:B1, B01:B2-C01:C1 and C01:C2) can be returned.

[0110] Based on the complete routing information, the main chip first sends the command $GP:123 and subsequent routing information (the information content is: B01:B1, B01:B2-C01:C1, C01:C2, $GP:123) to the A1 interface of chip A01 (i.e., the main chip).

[0111] like Figure 2 As shown, the command $GP:123 and subsequent routing information are sent from interface A1 of A01 to slave chip 1. Upon receiving the command, slave chip 1 first checks the prefix of the routing information (B01:B1). Here, B01 represents the chip ID, and B1 represents the name of the interface from which the command originated. After comparison, it is determined that B01 matches this chip correctly, the data source is B1, the transmission direction is B01:B2-C01:C1, the transmitting chip is this chip B01 (i.e., slave chip 1), and the transmitting port is B2. Therefore, slave chip 1 sends the command $GP:123 and subsequent routing information (information content: C01:C1, C01:C2, $GP:123) out through its B2 interface.

[0112] like Figure 2 As shown, chip B01 (i.e., slave chip 1) sends the information content to slave chip 2 via its B2 interface. Upon receiving the information, slave chip 2 first determines the routing information prefix as (C01:C1). Here, C01 represents the chip ID, and C1 represents the name of the command's source interface. After comparison, it is determined that C01 matches this chip correctly, the data source is C1, the transmission direction is C01:C2, the transmitting chip is this chip C01 (i.e., slave chip 2), and the transmitting port is C2. Therefore, slave chip 2 can send the command $GP:123 through its C2 interface (the information content is: $GP:123). It's understandable that since no other transmission chips are connected subsequently, there's no need to send routing information at this point. Since the C2 interface is connected to a vehicle GPS device, this device can process the received command $GP:123.

[0113] At this point, the commands issued by the business function modules in the data transceiver module have been successfully transmitted to the vehicle's infotainment system.

[0114] Assume that the vehicle-mounted GPS device responds to the command $GP:123 and wants to send GPS data back to the GPS module of the data transceiver module. This GPS data includes information such as location and time, and its data content is "$GPRMC,456".

[0115] First, after receiving GPS data from UART-C2 of chip 2, the chip attribute table of this chip is searched for the uplink interface. The search reveals that the uplink interface is C01:C1. Then, chip 2 can send out the GPS data "$GPRMC,456" through the C1 interface of this chip.

[0116] like Figure 2 As shown, interface C1 is connected to interface B2 of chip 1. After receiving the GPS data "$GPRMC,456" from interface B2, chip 1 searches for the uplink interface in its chip attribute table. The search reveals that the uplink interface is B01:B1. Therefore, chip 1 can send the GPS data "$GPRMC,456" out through interface B1.

[0117] like Figure 2 As shown, interface B1 is connected to interface A1 of the main chip. After receiving the GPS data "$GPRMC,456" from interface A1, the main chip sends it to the user interaction module.

[0118] Based on the association between the external interface and the business function module, the user interaction module sends the GPS data "$GPRMC,456" to the corresponding GPS module in the data transceiver module.

[0119] After receiving the GPS data “$GPRMC,456”, the GPS module of the data transceiver module parses and processes it according to the protocol.

[0120] At this point, the data fed back by the vehicle's infotainment system has been successfully transmitted to the corresponding business function module in the data transceiver module.

[0121] As can be seen from the above, the data transmission method proposed in this application is applied to an improved data transmission system. This data transmission system may include at least two transmission chips, each with at least two external interfaces, and these at least two transmission chips include a master chip and at least one slave chip. Based on this data transmission system, in the data transmission method proposed in this application, these at least two transmission chips can be networked through a broadcast process, so that each slave chip can communicate with the master chip and / or at least one other slave chip. Then, the master chip can determine the idle external interface among the networked at least two transmission chips. Finally, the networked at least two transmission chips can transmit data with the outside world through the idle external interface. For different actual vehicle scenarios, the above data transmission system can flexibly match the master chip with different numbers and types of slave chips without redesigning the master chip, greatly reducing hardware modification costs. Furthermore, the networking between chips can also be intelligently implemented by the chips, without requiring users to manually modify the corresponding software configuration repeatedly, greatly reducing the workload of software development. Thus, the solution of this application achieves flexible expansion of external interfaces.

[0122] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the above device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0123] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0124] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of external device software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0125] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For instance, the division of modules or units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between devices or units through some interfaces, and may be electrical, mechanical, or other forms.

[0126] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0127] If the integrated units described above are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing associated hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable storage medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer-readable storage device, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc. It should be noted that the contents of the aforementioned computer-readable storage media may be appropriately added to or subtracted from the contents according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media may not include electrical carrier signals and telecommunication signals.

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

Claims

1. A data transmission method, characterized in that, The data transmission method is applied to a data transmission system, which includes at least two transmission chips, each of which has at least two external interfaces; the at least two transmission chips include a master chip and at least one slave chip. The master chip and the slave chip are connected via a UART interface; The chips are connected via a UART interface; The data transmission method includes: The at least two transmission chips are networked through a broadcast process, so that each of the slave chips is communicatively connected to the master chip and / or at least one other slave chip; The main chip determines the idle external interface among the at least two transmission chips that have been networked; The at least two transmission chips that have formed a network transmit data to the outside world through the idle external interface; The broadcast process includes: First broadcast process: Each of the aforementioned transmission chips broadcasts its own chip attribute information through its respective external interfaces. For each transmission chip, when a target external interface is available to receive chip attribute information from other transmission chips, the chip attribute information and interface mapping relationship of the transmission chip are updated according to the target external interface and the received chip attribute information. The state of the target external interface is changed from idle to busy. At the same time, the transmission direction of the target external interface is determined according to the type of the transmission chip: if the transmission chip is a master chip, the target external interface is determined to be a downlink interface; if the transmission chip is a slave chip, the target external interface is determined to be an uplink interface. The second broadcast process: Each transmission chip sends updated chip attribute information and interface mapping relationship through the target's external interface, so that the main chip can update the overall routing table based on the received chip attribute information and interface mapping relationship of all the transmission chips.

2. The data transmission method as described in claim 1, characterized in that, The data transmission system further includes a user interaction module and a data transceiver module. The data transceiver module includes at least one business function module. The user interaction module is connected to the main chip and also connected to the data transceiver module. The at least two networked transmission chips transmit data to the outside world through the idle external interface, including: The main chip reports the interface information of the idle external interface to the user interaction module; The user interaction module assigns corresponding idle external interfaces to each of the business function modules; For each of the aforementioned service function modules, the at least two transmission chips that have been networked transmit data between the service function module and the outside world through the idle external interface allocated to the service function module.

3. The data transmission method as described in claim 2, characterized in that, The user interaction module allocates corresponding idle external interfaces to each of the business function modules, including: The user interaction module receives a list of service functions sent by the data transceiver module. The list of service functions is used to record the service function modules possessed by the data transceiver module. The display interface shows the list of business functions and the interface information of the idle external interfaces; In response to the association command entered by the user in the display interface, the corresponding idle external interface is allocated to each of the business function modules.

4. The data transmission method according to any one of claims 1 to 3, characterized in that, Each of the aforementioned transmission chips possesses the following external interfaces: a Universal Asynchronous Receiver / Transmitter (UART) interface and a General Purpose Input / Output (GPIO) interface.

5. A data transmission system, characterized in that, The data transmission system includes at least two transmission chips, each including a master chip and at least one slave chip; the master chip and the slave chip are connected via a UART interface; the slave chips are connected to each other via a UART interface. The at least two transmission chips are networked through a broadcast process, so that each of the slave chips is communicatively connected to the master chip and / or at least one other slave chip; The main chip determines the idle external interface among the at least two transmission chips that have been networked; The at least two transmission chips that have formed a network transmit service function data to the outside through the idle external interface; The broadcast process includes: First broadcast process: Each of the aforementioned transmission chips broadcasts its own chip attribute information through its respective external interfaces. For each transmission chip, when a target external interface is available to receive chip attribute information from other transmission chips, the chip attribute information and interface mapping relationship of the transmission chip are updated according to the target external interface and the received chip attribute information. The state of the target external interface is changed from idle to busy. At the same time, the transmission direction of the target external interface is determined according to the type of the transmission chip: if the transmission chip is a master chip, the target external interface is determined to be a downlink interface; if the transmission chip is a slave chip, the target external interface is determined to be an uplink interface. The second broadcast process: Each transmission chip sends updated chip attribute information and interface mapping relationship through the target's external interface, so that the main chip can update the overall routing table based on the received chip attribute information and interface mapping relationship of all the transmission chips.

Citation Information

Patent Citations

  • Distributed communication chip with flexible expansion interface and communication system

    CN115134187A