A method and system for transmitting data, a master module

By using a beckoning request and response frame mechanism between the master and slave modules in the vehicle-mounted equipment, the right to use the second channel is dynamically allocated, which solves the problem of high-priority data processing in the data transmission of the vehicle-mounted equipment and realizes efficient and secure data transmission and system expansion.

CN116743524BActive Publication Date: 2026-04-10SHANGHAI PATEO INTERNET TECH SERVICE CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-04
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

In terms of data transmission, vehicle-mounted equipment faces an increase in the types and amounts of data, resulting in an excessive burden on data channels. Existing technologies are unable to effectively manage and prioritize high-priority data, and there is a risk of data congestion and interference.

Method used

The master module connects to the slave module through a first channel and a second channel with a larger bandwidth. The use of the second channel is dynamically allocated through a beckoning request and response frame mechanism to ensure that high-priority data is transmitted first. The use of the channel is managed through status frames to avoid data mixing.

Benefits of technology

It enables the efficient transmission of high-priority data, reduces the risk of data interference, improves the scalability of the network system, reduces the coupling between hardware and software, and enhances communication efficiency and data security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116743524B_ABST
    Figure CN116743524B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a method and system for transmitting data, a master module. The system comprises: a first channel; a master module connected to a first slave module through the first channel; and a second channel, the bandwidth of the second channel is greater than that of the first channel, and the master module is also connected to the first slave module through the second channel; wherein, in response to first data to be transmitted to the first slave module, the master module obtains the level of the first data; in response to the level of the first data not being the lowest level, the master module generates a wave request frame and sends the wave request frame to the first slave module through the first channel to request the first slave module to generate a wave response frame; after the master module receives the wave response frame through the first channel, the master module generates a first state frame and sends the first state frame to the first slave module through the first channel to inform the first slave module that it is allowed to transmit the first data to the master module through the second channel.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the field of vehicle-mounted device communication, and more particularly, to a method and system for transmitting data, and a master module. BACKGROUND

[0002] The vehicle-mounted device considers fewer types of devices in early design, and the types and amount of data to be transmitted by the data channel are also less. With the continuous development of Internet of Vehicles technology, the types and number of slave modules connected under the master module are increasing, and the types and amount of data to be carried by the data channel are becoming increasingly large. The vehicle-mounted device needs to be improved and developed in terms of data transmission. SUMMARY

[0003] According to a first aspect of the present disclosure, an exemplary method for transmitting data, wherein a master module is connected to a first slave module through a first channel and a second channel respectively, and the bandwidth of the second channel is greater than that of the first channel, the method comprising: in response to first data to be transmitted to the first slave module, the master module obtaining a level of the first data; in response to the level of the first data not being the lowest level, the master module generating a wave request frame and sending the wave request frame to the first slave module through the first channel to request the first slave module to generate a wave response frame; after the master module receives the wave response frame through the first channel, the master module generates a first status frame and sends the first status frame to the first slave module through the first channel to notify the first slave module that it is allowed to transmit the first data to the master module through the second channel.

[0004] According to a second aspect of the present disclosure, an exemplary system for transmitting data comprises: a first channel; a master module connected to a first slave module through the first channel; and a second channel, the bandwidth of the second channel being greater than that of the first channel, the master module also being connected to the first slave module through the second channel; wherein the master module is configured to: in response to first data to be transmitted to the first slave module, the master module obtaining a level of the first data; in response to the level of the first data not being the lowest level, the master module generating a wave request frame and sending the wave request frame to the first slave module through the first channel to request the first slave module to generate a wave response frame; after the master module receives the wave response frame through the first channel, the master module generates a first status frame and sends the first status frame to the first slave module through the first channel to notify the first slave module that it is allowed to transmit the first data to the master module through the second channel.

[0005] According to a third aspect of the present disclosure, a master module for processing data is exemplarily provided, wherein the master module is connected to a first slave module through a first channel and a second channel, the bandwidth of the second channel is larger than that of the first channel, and the master module comprises a memory for storing executable instructions and a processor communicatively connected to the memory and configured to execute the executable instructions to: obtain a level of first data to be transmitted to the first slave module; generate a wave request frame and send the wave request frame to the first slave module through the first channel to request the first slave module to generate a wave response frame, in response to the level of the first data not being the lowest level; and generate a first state frame and send the first state frame to the first slave module through the first channel to inform the first slave module that it is allowed to transmit the first data to the master module through the second channel, in response to receiving the wave response frame through the first channel.

[0006] The method according to the embodiments of the above aspects of the present disclosure or the system or the master module according to other embodiments of the present disclosure can achieve at least one of the following beneficial effects:

[0007] 1) The method for transmitting data provided by the embodiments of the present disclosure can enable the master module to actively allocate the use right of the second channel according to the level of the data to be transmitted. This method ensures that high-priority data to be transmitted is processed preferentially, and avoids data congestion and mixing in the second channel.

[0008] 2) The method for transmitting data provided by the embodiments of the present disclosure can ensure that high-priority data is effectively transmitted, and reduces the risk of being interfered by other data.

[0009] 3) The master module can be connected to more slave modules through the second channel, so that the network system can be more easily expanded.

[0010] 4) The embodiments of the present disclosure can reduce the hardware cost.

[0011] 5) The embodiments of the present disclosure can reduce the coupling degree of software, BRIEF DESCRIPTION OF DRAWINGS

[0012] Other features, objects, and advantages of the present disclosure will become more apparent from the following detailed description of non-limiting embodiments, made with reference to the accompanying drawings:

[0013] Figure 1 is a schematic structural diagram of a system according to an embodiment of the present disclosure;

[0014] Figure 2 is a flowchart of a method according to an embodiment of the present disclosure;

[0015] Figure 3 is a schematic timing diagram of signal transmission in a system according to an embodiment of the present disclosure;

[0016] Figure 4 is a schematic timing diagram of another signal transmission in a system according to an embodiment of the present disclosure;

[0017] Figure 5 is a schematic timing diagram of another signal transmission in a system according to an embodiment of the present disclosure;

[0018] Figure 6 is a schematic timing diagram of another signal transmission in a system according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0019] For a better understanding of the present disclosure, various aspects of the present disclosure will be described in greater detail below with reference to the accompanying drawings. It is to be understood that the detailed description is merely descriptive in nature and is not intended to limit the scope of the present disclosure in any way. Throughout the specification, like reference numerals refer to like elements. The expression “and / or” includes any and all combinations of one or more of the associated listed items.

[0020] It is noted that, in this specification, the expressions first, second, third, etc. are merely used to distinguish one feature from another, and do not imply any limitation on the features. Thus, a first slave module discussed below can also be referred to as a second slave module, without departing from the teachings of the present disclosure. The converse is also true.

[0021] In the drawings, the thickness, size, and shape of components have been slightly adjusted for ease of illustration. The drawings are merely examples and are not strictly to scale. Illustratively, the time intervals in the timing diagrams are also not strictly to scale. As used in this document, the terms “approximately,” “about,” and similar terms are used as terms of approximation and not as terms of degree, and are intended to account for the inherent deviations in a measuring or computing process.

[0022] It is also to be understood that the terms “comprise”, “comprising”, “have”, “having”, “include” and / or “including” when used in this specification, indicate the presence of the stated features, elements and / or components but do not preclude the presence or addition of one or more other features, elements, components and / or groups thereof. Furthermore, when describing the embodiments of the present disclosure, the use of “may” means that one or more embodiments of the present disclosure. Also, the term “exemplary” is intended to refer to an example or illustration.

[0023] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.

[0024] It should be noted that the embodiments and features of the embodiments in the present disclosure can be combined with each other without conflict. In addition, the specific steps contained in the method described in the present disclosure are not necessarily limited to the order described, but can be executed in any order or in parallel, unless expressly limited or contradicted by the context. The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.

[0025] Figure 1 is a schematic structural diagram of a system for transmitting data according to an embodiment of the present disclosure. As shown in Figure 1 , the system for transmitting data 1 can include a first channel 10, a second channel 20, a master module 30, and at least one slave module 41-43. Figure 1 The first slave module 41, the second slave module 42, and the third slave module 43 are shown in Figure 1 The number of the first channel 10, the second channel 20, and the slave modules 41-43 in

[0026] The system 1 can interact with a server through a network to receive or send messages, etc. Exemplarily, the master module 30 can interact with the server through the network.

[0027] The system 1 can be hardware or software. When the system 1 is hardware, it can be various electronic devices and can have a display screen. Exemplarily, the system 1 is a vehicle-mounted network system. The first channel 10 includes a controller area network bus. The first channel 10 or the second channel 20 includes a controller area network bus or a local interconnect network bus. When the system 1 is software, it can be installed in electronic devices such as desktop computers, tablets, smartphones, or car machines. The system 1 can be implemented as multiple software or software modules, such as those used to provide distributed services.

[0028] In an exemplary embodiment, the system 1 comprises a vehicle-mounted central control entertainment device, a smart cockpit terminal or a vehicle-mounted telematics box (T-box). The vehicle-mounted central control entertainment device, the smart cockpit terminal or the vehicle-mounted telematics box is configured with a master module 30. Exemplarily, the vehicle-mounted central control entertainment device or the vehicle-mounted telematics box is further configured with a first channel 10. The system 1 further comprises an external all-around monitoring image module (AVM), an external instrument module or a gyroscope module, etc.

[0029] Exemplarily, the external all-around monitoring image module is configured with a first slave module 41, the gyroscope module is configured with a second slave module 42, and the external instrument module is configured with a third slave module 43. In other embodiments, the external all-around monitoring image module can be configured with both the first slave module 41 and the second slave module 42. In other embodiments, the first slave module 41 refers to an actual device such as the external all-around monitoring image module, and the master module 30 and the remaining slave modules are the same.

[0030] The second channel 20 can comprise a controller area network bus for connecting the master module 30 of the vehicle-mounted central control entertainment device and the first slave module 41 of the external all-around monitoring image module. The second channel 20 can connect the first slave module 41 through a first branch, connect the second slave module 42 through a second branch, connect the third slave module 43 through a third branch, and connect the master module 30 through a fourth branch. Different devices have different access capabilities to the network, and the controller area network bus has a wide adaptability in the field of vehicle-mounted devices and can connect commonly used vehicle-mounted devices. The controller area network bus has a high speed when used for communication, for example, can reach a speed of 125 kb to 1000 kb; and has good timeliness and security, which helps to transmit data in time and accurately.

[0031] The bandwidth of the second channel 20 is greater than that of the first channel 10. The master module 30 is connected to the slave modules 41-43 through the first channel 10 and the second channel 20, respectively. The master module 30 and the slave modules 41-43 can work independently and transmit data through the first channel 10 and the second channel 20. Exemplarily, the transmission speed of the first channel 10 is greater than that of the second channel 20. The master module 30, the slave modules 41-43, etc. can use the first channel 10 to transmit information that needs fast response. Specifically, the first channel 10 can be used to quickly transmit state frames, control frames and other data frames related to system resource allocation. The second channel 20 can be used to transmit information with large data volume such as specific work content.

[0032] In some embodiments, the master module 30 and the slave modules 41-43 each include a memory and a processor. The memory stores executable instructions, and the processor is in communication with the memory and executes the executable instructions. This embodiment provides a master module that can more reasonably allocate the use of the second channel and ensure that high-level data is reliably transmitted in priority.

[0033] The system 1 for transmitting data provided by the present disclosure, in operation, can have at least one slave module 41-43 communicate with the master module 30 through the second channel 20. The second channel 20 can be a shared channel that carries at least one piece of data. Of course, the second channel 20 can also be in an idle state, for example, when the system 1 is just started. When the second channel 20 is used frequently, there is a possibility of data mixing errors due to the large amount of internal data. When some data has a higher importance, the present disclosure provides a method for transmitting data.

[0034] Figure 2 A flowchart of the method 1000 for transmitting data is shown. The method 1000 includes the following steps.

[0035] In step S101, the master module obtains the level of the first data. The first data is data to be transmitted to the first slave module, and if the level of the first data is not the lowest level, the following steps can be performed.

[0036] In step S102, the master module generates a wave request frame and sends the wave request frame to the first slave module through the first channel. The wave request frame is used to request the first slave module to generate a wave response frame.

[0037] In step S103, after the master module receives the wave response frame through the first channel, the master module generates a first state frame and sends the first state frame to the first slave module through the first channel. The first state frame is used to inform the first slave module that it is allowed to transmit the first data to the master module through the second channel.

[0038] The method 1000 is described in detail below in combination with the aforementioned system 1.

[0039] In some embodiments, the method 1000 is performed by a vehicle network system, and the first channel 10 or the second channel 20 includes a controller area network bus. The working environment of the vehicle network can be relatively harsh, and the safety requirement is relatively high. The controller area network bus has high reliability and high communication rate, and can better bear the role of the first channel or the second channel in the vehicle network system.

[0040] For example, an external panoramic monitoring video module (AVM) equipped with a first slave module 41 needs to be upgraded. The upgrade operation can be triggered by an external server, and the upgrade package is transmitted to the first slave module 41 of the AVM via the master module 30 of the vehicle telematics processor (T-box). Since the upgrade package is large, it can be configured to be transmitted to the first slave module 41 of the AVM via the second channel 20. Furthermore, because the upgrade package is important, its level does not need to be the lowest level.

[0041] The upgrade package, namely the aforementioned first data, can be obtained by the T-box's main module 30. For example, the T-box's main module 30 obtains the upgrade package level according to a level table. The level table specifies at least data with a minimum level and data with a maximum level. More levels can be set in the level table. For example, detection data transmitted through the second channel by the gyroscope module, peripheral instrument module, etc., can have a lower level. Upgrade packages from peripheral panoramic monitoring image modules, peripheral instrument modules, etc., can have a higher level. Using a level table with defined levels, the level of the first data can be determined more quickly in complex working environments. Furthermore, unifying the levels of data transmitted by different modules facilitates easier expansion and addition of various slave modules.

[0042] Figure 3 The diagram illustrates a timing diagram of data transmission between the first slave module 41 of the AVM and the master module 30 of the T-box in the first channel 10. Exemplarily, the second channel 20 of system 1 may be idle, and the first channel 10 may also be idle. The master module 30 of the T-box obtains the level of the upgrade packet according to the level table and generates a beckoning request frame in response to the upgrade packet's level not being the lowest level. Figure 3 As shown, the T-box master module 30 sends the wave request frame to the AVM first slave module 41 through the first channel 10.

[0043] For example, when the first slave module 41 of the AVM is working normally, it can generate a wave response frame in response to the wave request frame. For example, when the first channel 10 is connected to multiple slave modules 41-43, only the first slave module 41 of the AVM can respond to the wave request frame and generate a wave response frame.

[0044] After receiving the wave response frame through the first channel 10, the master module 30 of the T-box generates a first status frame and sends the first status frame to the first slave module 41 of the AVM through the first channel 10 to notify the first slave module 41 of the AVM that it is allowed to use the second channel 20 to transmit the upgrade package with the master module 30 of the T-box.

[0045] For example, if the first slave module 41 of the AVM malfunctions, it may be unable to generate or send a handshake response frame. Consequently, the master module 30 of the T-box will also be unable to send the first status frame, and the AVM upgrade will naturally fail. For example, if the master module 30 of the T-box receives the handshake response frame within 100ms, it can be considered that the AVM has responded, and the handshake between the AVM and the T-box has been successful. If the handshake response frame is received after more than 100ms or is still not received, the master module 30 of the T-box can determine that the first slave module 41 of the AVM cannot receive the upgrade package.

[0046] If the AVM and T-box successfully handshake, the first slave module 41 of the AVM gains access to the second channel 20. The master module 30 of the T-box transmits the upgrade package to the first slave module 41 of the AVM through the second channel 20.

[0047] like Figure 3 As shown, the T-box master module 30 continuously sends first status frames through the first channel 10 to continuously inform the first slave module 41 of the AVM that it can use the second channel 20 to transmit upgrade packets until the upgrade packets are transmitted. For example, the interval between the T-box master module 30 sending the first status frames can be 100ms. This frequency ensures that the first slave module 41 of the AVM can stably and continuously use the second channel 20 while reducing the load on the first channel 10.

[0048] For example, during the transmission of the upgrade package, the second slave module 42 of the gyroscope module prepares to transmit second data, such as lower-level response data or a gyroscope module upgrade package of the same level, through the second channel 20. The master module 30 of the T-box determines that the level of the second data is the lowest compared to the data currently occupying the second channel 20, and therefore does not allow the second slave module 42 of the gyroscope module to transmit the second data through the second channel 20. Only after the first slave module 41 of the AVM has received the upgrade package will the master module 30 of the T-box allow the second slave module 42 of the gyroscope module to use the second channel. This setting ensures that the second channel 20 only carries the upgrade package received by the first slave module 41 of the AVM, avoids data contamination in the second channel 20, and ensures the data integrity and accuracy of the upgrade package.

[0049] Figure 4 A timing diagram of signal transmission between the master module and the first slave module is shown in another implementation. Specifically, Figure 4The signal timing diagram in the first channel 10 is shown. The main module 30 of the T-box sends the idle state frame through the first channel 10 to inform each slave module 41-43 that the second channel 20 is in the idle state and can be used. The operating environment of the method provided by the present disclosure is variable, and in some cases, the second channel 20 can be in the idle state. Corresponding to this case, the main module 30 can send the idle state frame. Even in the face of this idle state, the first slave module 41 can use the method of the present disclosure to preempt the use right of the second channel 20. The effect of the method of the present disclosure to preempt the use right of the second channel 20 is that when the level of the subsequent data to be transmitted is not higher than the first data, it will not affect the transmission of the first data in the second channel 20. The time interval between the multiple idle state frames continuously sent by the main module 30 can be not more than 100 ms.

[0050] In response to the first data, such as an upgrade package, to be transmitted to the first slave module 41 of the AVM, the main module 30 of the T-box obtains the level of the first data. In response to the level of the first data not being the lowest level, the main module 30 of the T-box generates a wave request frame and sends the wave request frame to the first slave module 41 through the first channel 10 to request the first slave module 41 to generate a wave response frame. As shown, Figure 4 When the main module 30 of the T-box does not receive the wave response frame within 100 ms, it is judged that the first slave module 41 cannot currently receive the upgrade package, and then the main module 30 of the T-box continues to send the idle state frame to inform each slave module 41-43 connected to the first channel 10 that the second channel 20 is currently in the idle state.

[0051] The main module 30 of the T-box sends the wave request frame again after the first time sending the wave request frame and not receiving the wave response frame. As shown, Figure 4 If the wave response frame of the first slave module 41 is still not received within 100 ms, the main module 30 still sends the idle state frame, and then sends the wave request frame for the third time.

[0052] Exemplarily, if the main module 30 of the T-box sends the wave request frame for three times and does not receive the wave response frame within the predetermined time period, the main module 30 of the T-box no longer sends the wave request frame, and it can be considered that the first slave module 41 of the AVM cannot receive the upgrade package. Exemplarily as shown, Figure 4 When the main module 30 receives the wave response frame through the first channel 10, the first state frame is generated and sent to the first slave module 41 of the AVM through the first channel 10 to inform the first slave module 41 that the use of the second channel 20 is allowed to transmit the upgrade package with the main module 30.

[0053] As Figure 4As shown, when the T-box master module 30 transmits the upgrade packet to the first slave module 41 of the AVM through the second channel 20, the T-box master module 30 continuously sends a first status frame through the first channel 10. Upon receiving the first status frame, the first slave module 41 knows that it can still use the second channel 20. After receiving the upgrade packet, the first slave module 41 can release the right to use the second channel 20 and send a first handshake response frame to the first channel 10. This handshake between the first slave module 41 and the master module 30 quickly releases the right to use the second channel 20, allowing other slave modules to use it to transmit data. This handshake mechanism improves the communication efficiency of the entire network system.

[0054] After receiving the first handshake response frame through the first channel 10, the master module 30 knows that the first slave module 41 has received the upgrade package. The master module 30 can resend an idle state frame to the first channel 10. Each slave module 41-43 connected to the first channel 10 can know that the second channel 20 is in an idle state. It can be considered that the first slave module 41 of the master module 30, which was previously in a handshake state, has successfully completed the handshake. Subsequently, peripheral instrument modules such as the gyroscope module configured with the second slave module 42 and the peripheral instrument module configured with the third slave module 43 can request to use the second channel 20 from the master module 30. In addition, the first slave module 41 of the AVM may also need to transmit other data. The methods provided in this disclosure can be used to transmit data.

[0055] Figure 5 A signal transmission timing diagram within the first channel is shown in another embodiment. In other embodiments, system 1 operates continuously, for example in... Figure 5 During the initial phase of the process, the master module 30 in system 1 sends a second status frame to the first channel 10. The information carried in the second status frame is used to inform each slave module 41-43 connected to the first channel 10 that the right to use the second channel 20 belongs to the second slave module 42 of the gyroscope module. Figure 5 The various data frames shown are transmitted within the first channel 10. The primary path indicates the main purpose of a data frame, such as the information carried by the second status frame to inform the second slave module 42 that it has the right to use the second channel 20. The secondary path refers to the fact that other modules can also receive data frames, such as the first slave module 41, which can also receive the second status frame and know that it does not have the right to use the second channel 20.

[0056] The T-box master module 30 and the second slave module 42 transmit second data through the second channel 20. Exemplarily, the second slave module 42 of the gyroscope module can transmit data to the master module 30 through the second channel 20, or vice versa. The T-box master module 30 can obtain the level of the second data. In this embodiment, the level of the second data can be relatively low.

[0057] When there is no higher level data to be transmitted, the second slave module 42 can continuously transmit the second data using the second channel 20. In other aspects of the present disclosure, for example, there is third data to be transmitted, and it is determined that the level of the third data is lower than the level of the second data, i.e., it is determined that the third data belongs to the lowest level data among the second data and the third data. Then it can be necessary to wait until the second data is transmitted, and then transmit the third data. For example, there is fourth data to be transmitted, and it is determined that the level of the fourth data is the same as the level of the second data, i.e., it is determined that the fourth data also belongs to the lowest level data among the second data and the fourth data, then it can be necessary to transmit the second data and the fourth data in the order of request, or other ways to transmit the data.

[0058] Figure 5 In this embodiment, the frequency of the T-box master module 30 generating the second state frame can be one per 100 ms. After the T-box master module 30 receives the instruction to transmit the upgrade package, i.e., the first data, to the first slave module 41 of the AVM, the level of the first data can be obtained. In this embodiment, the level of the upgrade package is higher than the level of the second data. In response to the level of the first data being higher than the level of the second data, the T-box master module 30 generates a wave request frame. Specifically, the data to be transmitted is compared with the data being transmitted to determine whether the data to be transmitted is the lowest level among the two.

[0059] The first slave module 41 of the AVM receives the wave request frame through the first channel 10 and generates a wave response frame. The second slave module 42 of the gyroscope module can also receive the wave request frame, but can not respond.

[0060] After the master module 30 receives the wave response frame through the first channel 10, it generates a reset state frame and sends the reset state frame to the second slave module 42 through the first channel 10 to request the second slave module 42 to release the use right of the second channel 20 and generate a second wave response frame. For example, as shown in Figure 5 The master module 30 receives the wave response frame through the first channel 10 within 100 ms, i.e., it knows that the first slave module 41 of the AVM can receive the upgrade package.

[0061] The reset state frame is mainly used to request the second slave module 42 to release the use right of the second channel 20. For example, the transmission period of the reset state frame is 30 ms. As shown in Figure 5As shown, a total of three frames can be sent. Sending reset status frames at shorter intervals allows for faster and more frequent notification to the second slave module 42 of the gyroscope module to release its access to the second channel 20. This prevents the second slave module 42 from writing second data into the second channel 20 again, thus preventing the second data from affecting the first data to be transmitted and consequently affecting the first slave module 41 of the AVM's functionality. Furthermore, sending reset status frames multiple times gives the second slave module 42 sufficient time to clear any remaining data in the second channel 20. Afterward, the second slave module 42 can generate a second handshake response frame.

[0062] In an exemplary embodiment, the master module 30 repeatedly generates the second status frame at a first interval, while repeatedly generating the reset status frame at a second interval. The second interval is shorter than the first interval. This setting ensures that the second slave module 42 responds more quickly to the reset status frame, while avoiding placing too much communication pressure on the first channel 10 due to the second status frame.

[0063] After receiving the second handshake response frame through the first channel 10, the master module 30 generates a first status frame. In this embodiment, the master module 30 of the T-box and the second slave module 42 of the gyroscope module transmit second data, thus they are in a handshake state. When the master module 30 generates the first status frame based on the second handshake response frame, it can be considered that the handshake between the master module 30 and the second slave module 42 has been successful. In addition, the master module 30 and the first slave module 41 have successfully shaken hands.

[0064] The master module 30 can repeatedly generate the first status frame at a first interval. The first status frame can be used to notify the first slave module 41 of the AVM that it has obtained the right to use the second channel 20. At the same time, the first slave module 41 continuously receives upgrade packets through the second channel 20. The second slave module 42 of the gyroscope module can also know from the first status frame that the first slave module 41 has obtained the right to use the second channel 20, and therefore cannot use the second channel 20 itself.

[0065] For example, such as Figure 5 As shown, after transmitting the upgrade package and releasing its access to the second channel 20, the first slave module 41 can generate a first handshake response frame. The master module 30 then receives this first handshake response frame through the first channel 10, indicating that the first slave module 41 has received the upgrade package. The master module 30 of the T-box can then regenerate a second status frame to notify the second slave module 42 of the gyroscope module to continue using the second channel 20. In this way, the master module 30 can quickly re-handshake with the second slave module 42 after waving goodbye to the first slave module 41, improving the overall system communication and operational efficiency.

[0066] exist Figure 5In this case, the master module 30 receives a response from the first slave module 41 immediately after sending the first wave request frame. In other cases, the response from the first slave module 41 may not be very timely. Figure 6 This is a schematic timing diagram of another signal transmission in a system according to an embodiment of the present disclosure. For example... Figure 6 As shown, after the main module 30 sends out the first wave request frame, in response to not receiving a wave response frame within a predetermined time period, the main module 30 regenerates the second status frame and sends the regenerated second status frame to the second slave module 42 through the first channel 10 to notify the second slave module 42 to continue using the second channel 20 to transmit the second data with the main module 30.

[0067] For example, if the main module 30 does not receive a wave response frame within 100ms, it regenerates a second status frame. Figure 6 As shown, after the master module 30 generates the wave request frame for the second time, it also fails to receive the wave response frame, and therefore regenerates the second status frame. Only after the master module 30 generates the wave request frame for the third time does it receive the wave response frame within 100ms through the first channel 10, and then sends a reset status frame to notify the second slave module 42 to release its access to the second channel 20. This configuration ensures that the master module 30 and the second slave module 42 do not wave goodbye until the master module 30 and the first slave module 41 have successfully shaken hands, thus the master module 30 and the second slave module 42 continue to transmit second data through the second channel 20. The master module 30 and the second slave module 42 only wave goodbye after the master module 30 and the first slave module 41 have successfully shaken hands.

[0068] The data transmission method disclosed herein can explicitly use the slave modules of the second channel and implement a priority strategy for the slave modules. It also enables the slave modules to respond promptly, correctly, and rationally utilize the second channel. Furthermore, it can diagnose valid slave modules, avoid invalid slave modules, maintain efficient use of the second channel, and guarantee the correctness of data within the second channel.

[0069] The data transmission system disclosed herein is capable of executing the aforementioned method. This system has strong module expansion capabilities and can effectively control the ability of slave modules to use the second channel. The hardware cost of building this system is low, and the required software coupling is low, avoiding excessive coupling between modules. The system operates without interruption, has good utilization of the second channel resources, and ensures data security and validity.

[0070] Exemplarily, this disclosure provides a main module. The main module may include two signal output terminals, which can be used to connect to a first channel and a high-bandwidth second channel, respectively. The main module can be connected to at least one slave module via the first channel and the second channel, respectively.

[0071] Exemplarily, in one aspect, the master module is configured to send an empty state frame through the first channel. Exemplarily, the master module is configured to, in response to a first data to be transmitted to a first slave module, obtain a level of the first data; in response to the level of the first data not being a lowest level, generate a wave-in request frame and send the wave-in request frame to the first slave module through the first channel to request the first slave module to generate a wave-in response frame; and in response to receiving the wave-in response frame through the first channel, generate a first state frame and send the first state frame to the first slave module through the first channel to inform the first slave module to allow using a second channel to transmit the first data with the master module. The master module can easily expand a plurality of slave modules, can ensure that high-level data is reliably transmitted, and can effectively transmit low-level data.

[0072] When the first slave module is configured to generate a first wave-out response frame after transmitting the first data and releasing the use right of the second channel, the master module is further configured to receive the first wave-out response frame through the first channel and re-generate the empty state frame.

[0073] In another aspect, the master module is further configured to transmit a second data with a second slave module through the second channel and send a second state frame through the first channel to make the second slave module know that the use right of the second channel belongs to the second slave module; and obtain a level of the second data. The actual actions triggered by the master module depend on the actual working scenario.

[0074] Exemplarily, the master module is configured to, in response to the level of the first data being higher than the level of the second data, generate a wave-in request frame; in response to receiving the wave-in response frame through the first channel, generate a reset state frame and send the reset state frame to the second slave module through the first channel to request the second slave module to release the use right of the second channel and generate a second wave-out response frame; and in response to receiving the second wave-out response frame through the first channel, generate a first state frame. The master module is further configured to, in response to not receiving the wave-in response frame within a predetermined time period, re-generate a second state frame and send the re-generated second state frame to the second slave module through the first channel to inform the second slave module to continue using the second channel to transmit the second data with the master module.

[0075] When the first slave module is configured to generate a first wave-out response frame after transmitting the first data and releasing the use right of the second channel, the master module is further configured to receive the first wave-out response frame through the first channel and re-generate the second state frame. Exemplarily, the master module is further configured to repeatedly generate the second state frame at a first interval time; and repeatedly generate a reset state frame at a second interval time, wherein the second interval time is less than the first interval time.

[0076] In other embodiments, the host module comprises a memory storing executable instructions, and a processor communicatively coupled to the memory and executable to execute the executable instructions. The processor, when executing the instructions, can implement the steps described above as being performed by the host module.

[0077] The above description is merely exemplary of the preferred embodiments of the present disclosure and of the principles thereof. It is to be understood that the present disclosure is not limited to the particular constructions and arrangements described above, and that the scope of the protection afforded is not limited to the specific embodiments described above, but extends to all equivalents of the constructions and arrangements described and falls within the scope of the claims. For example, the features of the above-described embodiments can be interchanged among the embodiments, or with other known features not described above, without departing from the scope of the present disclosure.

Claims

1. A method of transmitting data, wherein, The master module is connected with the first slave module through a first channel and a second channel, and a bandwidth of the second channel is greater than a bandwidth of the first channel, The method comprises: In response to first data to be transmitted to the first slave module, the master module obtains a level of the first data; In response to the level of the first data not being a lowest level, the master module generates a wave request frame and sends the wave request frame to the first slave module through the first channel to request the first slave module to generate a wave response frame; After the master module receives the wave response frame through the first channel, the master module generates a first state frame and sends the first state frame to the first slave module through the first channel to inform the first slave module that it is allowed to transmit the first data to the master module through the second channel; The first channel transmits state frames and control frames requiring fast response, and the second channel transmits work content information.

2. The method of claim 1, wherein, The master module obtains the level of the first data according to a level table, wherein the level table at least defines data with a lowest level and data with a highest level.

3. The method of claim 1, wherein, Before obtaining the level of the first data, the master module sends an empty state frame through the first channel.

4. The method of claim 3, wherein, The first slave module generates a first wave response frame after transmitting the first data and releasing the use right of the second channel, The method further comprises: The master module receives the first wave response frame through the first channel and re-generates the empty state frame.

5. The method of claim 1, wherein, The master module is also connected with a second slave module through the first channel and the second channel, The method further comprises: Before obtaining the level of the first data, the master module obtains a level of second data; The master module sends a second state frame through the first channel to make the second slave module know that the use right of the second channel belongs to the second slave module, and transmits second data to the second slave module through the second channel; After obtaining the level of the first data, in response to the level of the first data being higher than the level of the second data, the master module generates the wave request frame; After the master module receives the wave response frame through the first channel, the master module generates a reset state frame and sends the reset state frame to the second slave module through the first channel to request the second slave module to release the use right of the second channel and generate a second wave response frame; and After the master module receives the second wave response frame through the first channel, the master module generates the first state frame.

6. The method of claim 5, wherein, In response to not receiving the wave response frame within a predetermined time period, the master module re-generates the second state frame and sends the re-generated second state frame to the second slave module through the first channel to inform the second slave module to continue to use the second channel to transmit the second data to the master module.

7. The method of claim 5, wherein The master module repeatedly generates the second state frame at a first interval time; The master module repeatedly generates the reset state frame at a second interval time, wherein the second interval time is less than the first interval time.

8. The method of claim 5, wherein, The first slave module generates a first wave-off response frame after transmitting the first data and releasing the use right of the second channel, The method further comprises: The master module receives the first wave-off response frame through the first channel, and regenerates the second state frame.

9. The method of any one of claims 1-8, wherein, The method is performed by a vehicle network system, and the first channel comprises a controller area network bus.

10. The method of claim 9, wherein, The vehicle network system comprises a vehicle central control entertainment device or a vehicle telematics processor configured with the master module, and a peripheral panoramic monitoring image module, a peripheral instrument module or a gyroscope module configured with at least one of the first slave module and the second slave module.

11. A system for transmitting data, characterized by Comprise: A first channel; A master module connected to a first slave module through the first channel; And A second channel, the bandwidth of the second channel is greater than the bandwidth of the first channel, and the master module is further connected to the first slave module through the second channel; Wherein, the master module is configured to perform the method as claimed in any one of claims 1 to 10.

12. A master module for processing data, wherein, The master module is used to connect to the first slave module through the first channel and the second channel, and the bandwidth of the second channel is greater than the bandwidth of the first channel, The master module comprises: A memory storing executable instructions; A processor in communication connection with the memory, executing the executable instructions to perform the method as claimed in any one of claims 1 to 10.

Citation Information

Patent Citations

  • Data transmission and reception system

    CN106066836A

  • Full-duplex 485 bus communication system and method with annular buffer

    CN113904762A

  • Transmission timing determining method, bus usage right arbitrating method, network system and program

    JP2005159754A