A method for communication in a vehicle, an electronic device, a medium and a vehicle

By introducing a hybrid structure of CAN network and wireless network into the vehicle, using the CAN network for channel competition access and using the wireless network to transmit data, the problem of sensor data transmission timeliness and cost is solved, and efficient and timely wireless network transmission is achieved.

CN118524576BActive Publication Date: 2024-10-29BYD CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410993919.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-10-29
Estimated Expiration
2044-07-24

AI Technical Summary

Technical Problem

In vehicle networks, high-speed and time-sensitive data transmission (such as smart driving sensor data) is difficult to achieve efficient data transmission due to the large number and wide distribution of sensors. The cost of using Ethernet is high, the CAN network rate is low, and the wireless network has poor timeliness. transmission.

Method used

By introducing a hybrid structure of CAN network and wireless network into the vehicle, when the vehicle terminal detects the need to communicate through the wireless network, it sends an access request message through the CAN network. Other vehicle terminals respond and compete for the wireless network channel. The priority decision is based on Ensure efficient wireless network access and data transmission.

Benefits of technology

It realizes wireless network transmission on the basis of ensuring timeliness, improves the timely transmission of high-priority data, and makes full use of wireless bandwidth, making it suitable for large-capacity data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118524576B_ABST
    Figure CN118524576B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention provides a method, electronic device, medium and vehicle for communication in a vehicle, which are applied to the field of vehicle technology. The method includes: when a first vehicle-mounted terminal detects a triggering event that requires communication with a second vehicle-mounted terminal via a wireless network, the first vehicle-mounted terminal sends an access request message to other vehicle-mounted terminals via a CAN network. In response to the access request message, the other vehicle-mounted terminals compete with the first vehicle-mounted terminal for access to a communication channel of the wireless network. When the first vehicle-mounted terminal obtains access authority to the communication channel of the wireless network, it accesses and uses the communication channel of the wireless network to communicate with the second vehicle-mounted terminal, thereby realizing channel competition access using the CAN network in the vehicle and using the wireless network for data transmission, thereby enabling wireless network transmission in the vehicle on the basis of ensuring timeliness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle technology, and in particular to a method, electronic equipment, medium and vehicle for communication in a vehicle. Background Art

[0002] In-vehicle networks, there are usually three types: Ethernet, CAN (Controller Area Network) network, and wireless network. Among them, Ethernet is mainly responsible for high-speed, high-reliability, and time-sensitive data transmission, but the high cost of Ethernet leads to limited coverage. For situations with high reliability, high timeliness requirements and low speed requirements, most of them still use CAN network for transmission, while wireless network focuses on high-speed data transmission.

[0003] However, for some high-speed and time-sensitive data, such as the transmission of intelligent driving sensor data (lidar, millimeter-wave radar, etc.), due to the large number of sensors distributed in every corner of the vehicle, if Ethernet is used for transmission, it will put great pressure on the cost of the vehicle. If the CAN network is used, there is a problem of low speed. If a wireless network is used, there is a problem of poor timeliness. Summary of the invention

[0004] In view of the above problems, a method, electronic device, medium and vehicle for communication in a vehicle are proposed to overcome the above problems or at least partially solve the above problems, including:

[0005] A method for communication in a vehicle, wherein the vehicle has a plurality of vehicle-mounted terminals, the plurality of vehicle-mounted terminals are connected via a CAN network, and the plurality of vehicle-mounted terminals are connected via a wireless network, the method comprising:

[0006] The other vehicle-mounted terminals receive the access request message sent by the first vehicle-mounted terminal through the CAN network; wherein the access request message is a message sent by the first vehicle-mounted terminal when a triggering event is detected that requires communication with the second vehicle-mounted terminal through the wireless network;

[0007] The other vehicle-mounted terminals compete with the first vehicle-mounted terminal for accessing the communication channel of the wireless network in response to the access request message.

[0008] Optionally, the competing with the first vehicle-mounted terminal for accessing a communication channel of a wireless network in response to the access request message includes:

[0009] In response to the access request message, the wireless network usage status of the vehicle is detected, and according to the wireless network usage status, the vehicle competes with the first vehicle terminal for accessing the communication channel of the wireless network.

[0010] Optionally, the competing with the first vehicle-mounted terminal for accessing a communication channel of a wireless network according to the wireless network usage status includes:

[0011] When the wireless network usage status indicates that the other vehicle-mounted terminal is in a multi-frame transmission gap, performing priority determination with the first vehicle-mounted terminal;

[0012] When the result of the priority determination indicates that the first vehicle-mounted terminal has priority access to the communication channel of the wireless network, sending a first reply message through the CAN network and entering a radio silence state, so that the first vehicle-mounted terminal has priority access to the communication channel of the wireless network;

[0013] When the result of the priority arbitration indicates that the other vehicle-mounted terminals have priority in accessing the communication channel of the wireless network, a second reply message is sent through the CAN network to deny the first vehicle-mounted terminal from accessing the communication channel of the wireless network.

[0014] Optionally, performing priority determination with the first vehicle-mounted terminal includes:

[0015] Determine the first priority of the current message in the multi-frame transmission gap;

[0016] Determining, according to the access request message, a second priority level of the new message to be sent;

[0017] When the second priority is greater than the first priority, determining that the first vehicle-mounted terminal has priority access to the communication channel of the wireless network;

[0018] When the second priority is less than or equal to the first priority, it is determined that the other vehicle-mounted terminals have priority access to the communication channel of the wireless network.

[0019] Optionally, determining the first priority of the current message in the multi-frame transmission gap includes:

[0020] Determine a first terminal type of the other vehicle-mounted terminal and a first message type of the current message in the multi-frame transmission gap, and determine a first priority of the current message in the multi-frame transmission gap according to the first terminal type and the first message type;

[0021] The step of determining, according to the access request message, a second priority level of the new message to be sent, comprises:

[0022] The second terminal type of the first vehicle-mounted terminal and the second message type of the new message to be sent are determined from the access request message, and the second priority of the new message to be sent is determined according to the second terminal type and the second message type.

[0023] Optionally, the first reply message carries progress information, and the progress information is used to enable the communication peer of the other vehicle-mounted terminal, or the communication peer and the routing device to record the sending progress of the current message in the multi-frame sending gap.

[0024] Optionally, the access request message is a first access request message or a second access request message, the first access request message is an access request message sent by the first vehicle-mounted terminal when it detects that the communication channel of the wireless network is in an idle state, and the second access request message is an access request message sent by the first vehicle-mounted terminal when it detects that the communication channel of the wireless network is in a non-idle state.

[0025] Optionally, before performing priority arbitration with the first vehicle-mounted terminal, the method further includes:

[0026] In the case where the access request message is the first access request message, a third reply message is sent through the CAN network to trigger entering the priority decision process.

[0027] Optionally, competing with the first vehicle-mounted terminal for accessing a communication channel of the wireless network according to the wireless network usage status includes:

[0028] When the wireless network usage status indicates that the other vehicle-mounted terminal is in a wireless transmission state, a second reply message is sent through the CAN network to deny the first vehicle-mounted terminal from accessing the communication channel of the wireless network.

[0029] Optionally, competing with the first vehicle-mounted terminal for accessing a communication channel of the wireless network according to the wireless network usage status includes:

[0030] When the wireless network usage status indicates that the other vehicle-mounted terminals are not in the wireless transmission state and are not in the multi-frame transmission gap, a first reply message is sent through the CAN network and a radio silence state is entered to suspend access to the communication channel of the wireless network.

[0031] A method for communication in a vehicle, wherein the vehicle has a plurality of vehicle-mounted terminals, the plurality of vehicle-mounted terminals are connected via a CAN network, and the plurality of vehicle-mounted terminals are connected via a wireless network, the method comprising:

[0032] When the first vehicle-mounted terminal detects a triggering event that requires communication with the second vehicle-mounted terminal through the wireless network, the first vehicle-mounted terminal sends an access request message to other vehicle-mounted terminals through the CAN network to compete with the other vehicle-mounted terminals for access to the communication channel of the wireless network;

[0033] When the first vehicle-mounted terminal obtains the access right to the communication channel of the wireless network, it accesses and uses the communication channel of the wireless network to communicate with the second vehicle-mounted terminal.

[0034] Optionally, before accessing and using the communication channel of the wireless network to communicate with the second vehicle-mounted terminal when obtaining the access right to the communication channel of the wireless network, the method further includes:

[0035] When first reply messages sent by all other vehicle-mounted terminals are received through the CAN network, determining to obtain access rights to the communication channel of the wireless network;

[0036] The first reply message is a reply message sent when the other vehicle-mounted terminal is not in a wireless transmission state and is not in a multi-frame transmission gap;

[0037] Alternatively, the first reply message is a reply message sent when the other vehicle-mounted terminal is in a multi-frame transmission gap and the result of the priority arbitration with the first vehicle-mounted terminal indicates that the first vehicle-mounted terminal has priority access to the communication channel of the wireless network.

[0038] Optionally, before accessing and using the communication channel of the wireless network to communicate with the second vehicle-mounted terminal when obtaining the access right to the communication channel of the wireless network, the method further includes:

[0039] When receiving the second reply message sent by the other vehicle-mounted terminal through the CAN network, determining that the access authority to the communication channel of the wireless network is not obtained;

[0040] Wherein, the second reply message is a reply message sent when the other vehicle-mounted terminal is in a wireless transmission state;

[0041] Alternatively, the second reply message is a reply message sent when the other vehicle-mounted terminal is in a multi-frame transmission gap and the result of the priority arbitration with the first vehicle-mounted terminal indicates that the other vehicle-mounted terminal has priority access to the communication channel of the wireless network.

[0042] Optionally, the access request message is a first access request message or a second access request message, and sending the access request message to other vehicle-mounted terminals through the CAN network includes:

[0043] When detecting that the communication channel of the wireless network is in an idle state, sending a first access request message to other vehicle-mounted terminals through the CAN network;

[0044] When it is detected that the communication channel of the wireless network is in an idle state, a second access request message is sent to other vehicle-mounted terminals via the CAN network.

[0045] Optionally, before accessing and using the communication channel of the wireless network to communicate with the second vehicle-mounted terminal when obtaining the access right to the communication channel of the wireless network, the method further includes:

[0046] When the third reply message sent by the other vehicle-mounted terminal is received through the CAN network, it is known that the priority determination process has been entered.

[0047] Optionally, when obtaining access authority to a communication channel of a wireless network, accessing and using the communication channel of the wireless network to communicate with the second vehicle-mounted terminal includes:

[0048] When obtaining access rights to the communication channel of the wireless network, accessing the communication channel of the wireless network, and sending a message frame to the second vehicle-mounted terminal through the communication channel of the wireless network;

[0049] When no confirmation message is received from the second vehicle-mounted terminal within a preset time period, if the current number of transmissions is less than the preset number of transmissions, the message frame is resent to the second vehicle-mounted terminal.

[0050] An electronic device comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the method described above when executed by the processor.

[0051] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described above is implemented.

[0052] A vehicle comprises a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the above method when executed by the processor. The embodiment of the present invention has the following advantages:

[0053] In an embodiment of the present invention, when the first vehicle-mounted terminal detects a triggering event that requires communication with the second vehicle-mounted terminal via a wireless network, it sends an access request message to other vehicle-mounted terminals via the CAN network. The other vehicle-mounted terminals respond to the access request message and compete with the first vehicle-mounted terminal for access to the communication channel of the wireless network. When the first vehicle-mounted terminal obtains access authority to the communication channel of the wireless network, it accesses and uses the communication channel of the wireless network to communicate with the second vehicle-mounted terminal, thereby realizing the use of the CAN network in the vehicle for channel competition access and the use of the wireless network for data transmission, thereby enabling wireless network transmission in the vehicle on the basis of ensuring timeliness. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0055] Figure 1 is a flowchart of the steps of a method for communication in a vehicle provided by some embodiments of the present invention;

[0056] Figure 2a is a schematic diagram of a vehicle architecture provided by some embodiments of the present invention;

[0057] Figure 2b is a schematic diagram of a message structure provided by some embodiments of the present invention;

[0058] Figure 2c is a schematic diagram of another message structure provided by some embodiments of the present invention;

[0059] Figure 3 is a flowchart of steps of another method for communication in a vehicle provided by some embodiments of the present invention;

[0060] Figure 4 It is a flowchart of the steps of another method for communication in a vehicle provided by some embodiments of the present invention. DETAILED DESCRIPTION

[0061] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0062] In the related art, the access method of the communication channel of the wireless network can adopt the RTS / CTS (Request ToSend / Clear To Send) mechanism. When the mechanism is adopted, once one of the nodes accesses the wireless channel through competition, the time it occupies the channel is uncontrollable for other nodes. Especially for large data transmission, the node that has occupied the channel may perform long-term, large-packet transmission. Before it officially completes the data packet transmission, other nodes cannot access the channel, resulting in the inability to transmit information with high timeliness requirements.

[0063] In addition, the potential terminal hiding problem of the RTS / CTS mechanism (due to the limited monitoring range, the terminal thinks the channel is idle through monitoring but it is not really idle, which leads to channel conflict problems) will increase the risk of wireless channel conflict and affect WiFi transmission efficiency.

[0064] Furthermore, in the relevant technology, the wireless data transmission simply classifies the service type priority into voice, video, Internet information, and background service. For each service type, only a certain gradient of competition window limits are specified, and for each piece of data, the specific competition backoff time is still random and uncontrollable.

[0065] In the embodiment of the present invention, based on the wireless-CAN hybrid network structure of the whole vehicle, the competitive allocation of wireless channels is completed through the highly timely CAN network, and then the wireless network is used for data transmission, and different levels are specified for specific business messages of each vehicle terminal to ensure fast and efficient wireless network access and subsequent timely transmission of large amounts of data and highly timely information.

[0066] Compared with the RTS / CTS channel contention access mechanism, the contention access mechanism of the embodiment of the present invention is completed through traditional physical channel monitoring combined with CAN wired network competition.

[0067] When the physical channel (communication channel of the wireless network) is monitored as idle, a channel silence request (i.e., the first access request message below) is quickly sent to all nodes through the CAN network. If no RF transmission is in progress and no terminal is in the multi-frame transmission gap, all irrelevant terminals enter the silent state, and the requested terminal quickly enters the receiving state. If a terminal is performing RF transmission, a reply type 2 (i.e., the second reply message below) is directly sent to reject the silence request. In this way, the problem that the hidden terminal cannot be found by physical channel monitoring can be perfectly avoided. If a terminal is in the gap of multi-frame transmission, a reply message type 3 (i.e., the third reply message below) is sent to quickly enter the service level decision (i.e., the priority decision below) process. When the physical channel monitoring is in the state of non-idle channel, a request message type 2 (i.e., the second access request message below) is sent through the CAN network to quickly enter the service level decision process.

[0068] Through the mechanism of the embodiment of the present invention, for services with high timeliness requirements, the waiting time is the CAN network decision time, or the time of one frame of wireless message, and the CAN network decision time consists of two parts, one is the time of terminal logic processing, which can be ignored; the other is the CAN network transmission time, most of which is the CAN network blocking time. By configuring a higher priority for the request message, the CAN network blocking time can be very small. In addition, the time of one frame of WiFi message is usually within 50us, and can be set by FPS (Frame Per Second), so based on the competitive access mechanism of the present invention, the transmission delay can be as low as 50us.

[0069] Moreover, different priorities are specified for specific vehicle terminals and specific message types of some specific terminals. Taking advantage of the high timeliness of the CAN network, terminals with high priority can obtain timely channel access rights to complete node data transmission. For specific messages of specific terminals, the highest priority data can obtain the fastest and most timely transmission. Due to the staggered data transmission channel (wireless channel) and contention allocation channel (wired CAN channel), high-priority terminals and high-priority data can even interrupt ongoing data transmission at a lower level.

[0070] Through the wireless access mechanism based on the wireless-CAN hybrid network proposed in the embodiment of the present invention, not only can the timeliness similar to that of wired data transmission be obtained, but also high / low priority data can be transmitted in time, which not only ensures the timely transmission of high priority data, but also makes full use of the wireless bandwidth and ensures ultra-large capacity data transmission.

[0071] The present invention will be further described below in conjunction with the accompanying drawings:

[0072] Reference Figure 1 , showing a step flow chart of a method for communication in a vehicle provided by some embodiments of the present invention, the vehicle has multiple on-board terminals, such as the on-board terminals are sensors and controllers of the vehicle.

[0073] Among them, multiple vehicle-mounted terminals can be connected through a CAN network, and multiple vehicle-mounted terminals can be connected through a wireless network. In some examples, multiple vehicle-mounted terminals can be connected directly through a wireless network, or they can be connected through a routing device in the vehicle to achieve a wireless network connection.

[0074] like Figure 2aThe vehicle terminal is an Ad Hoc node that has the characteristics of a transmitter, a host, and a router. The central AP (Access Point) connects the vehicle terminal through a CAN line to form a type of "ring" CAN network. At the same time, with the central AP as the center, the vehicle terminals in front, behind, on the left, and on the right of the vehicle form a "grid-like" wireless communication network according to certain routing rules. In some examples, the vehicle terminals can communicate directly or directly through the central AP routing forwarding. The data collected by each vehicle terminal can be sent directly to any desired destination vehicle terminal, and can also receive instructions sent by other vehicle terminals.

[0075] Specifically, the following steps may be included:

[0076] Step 11, other vehicle-mounted terminals receive an access request message sent by the first vehicle-mounted terminal through the CAN network; wherein the access request message is a message sent by the first vehicle-mounted terminal when a triggering event is detected that requires communication with the second vehicle-mounted terminal through a wireless network.

[0077] In some embodiments of the present invention, the access request message may be a first access request message, and the first access request message is an access request message sent by the first vehicle-mounted terminal when detecting that a communication channel of the wireless network is in an idle state.

[0078] In some embodiments of the present invention, the access request message may be a second access request message, where the second access request message is an access request message sent by the first vehicle-mounted terminal when detecting that a communication channel of the wireless network is in a non-idle state.

[0079] In actual applications, when the first vehicle terminal wants to send a message (such as data or instructions) to the second vehicle terminal through a wireless network, the first vehicle terminal can detect the trigger event, and then detect whether the communication channel of the wireless network within the coverage range of the first vehicle terminal is in an idle state.

[0080] If it is detected that the communication channel of the wireless network is in an idle state, the first vehicle-mounted terminal can send a first access request message through the CAN network. If it is detected that the communication channel of the wireless network is not idle, the first vehicle-mounted terminal can send a second access request message through the CAN network, attempting to put all other unrelated vehicle-mounted terminals into a radio silence state, so that the first vehicle-mounted terminal itself can access the communication channel of the wireless network.

[0081] Step 12: The other vehicle-mounted terminals compete with the first vehicle-mounted terminal for accessing a communication channel of a wireless network in response to the access request message.

[0082] After receiving the message, other vehicle terminals parse the message and, when determining that the received message is an access request message, can trigger the access competition mechanism of the communication channel of the wireless network, thereby realizing access competition for the communication channel of the wireless network using the CAN network.

[0083] In some examples, when the access contention mechanism determines that the first vehicle terminal obtains access rights to the communication channel of the wireless network, the first vehicle terminal can access the communication channel of the wireless network and use the communication channel of the wireless network to communicate with the second vehicle terminal.

[0084] Specifically, when the access competition mechanism determines that the first vehicle terminal obtains access rights to the communication channel of the wireless network, the first vehicle terminal and the second vehicle terminal can access the communication channel of the wireless network and send message frames to the second vehicle terminal through the communication channel of the wireless network.

[0085] In some examples, a preset duration can be set, such as 1 minute, and a countdown using the preset duration can be used when starting to send the message frame. When no confirmation message is received from the second vehicle terminal within the preset duration, it can be determined whether the current number of times the message frame is sent is less than the preset number. If the current number of times the message frame is sent is less than the preset number, the message frame is resent to the second vehicle terminal. If the current number of times the message frame is sent is greater than or equal to the preset number, resending is stopped.

[0086] In some examples, the message frame may include multiple frames, each frame may be sent separately, and the preset duration and the preset number of times mentioned above may be directly determined.

[0087] In some embodiments of the present invention, the competing with the first vehicle-mounted terminal for accessing a communication channel of a wireless network in response to the access request message includes:

[0088] In response to the access request message, the wireless network usage status of the vehicle is detected, and according to the wireless network usage status, the vehicle competes with the first vehicle terminal for accessing the communication channel of the wireless network.

[0089] After receiving the access request message, other vehicle-mounted terminals can use their own wireless network usage status, such as whether the wireless network usage status includes whether it is in a wireless transmission state, whether it is in a multi-frame transmission gap, etc., and then can compete with the first vehicle-mounted terminal for access to the communication channel of the wireless network according to their own wireless network usage status to determine whether to maintain radio silence or continue to use the communication channel of the wireless network and refuse the first vehicle-mounted terminal to use the communication channel of the wireless network.

[0090] In some embodiments of the present invention, the competing with the first vehicle-mounted terminal for accessing a communication channel of the wireless network according to the wireless network usage status includes:

[0091] When the wireless network usage status indicates that the other vehicle-mounted terminals are in a multi-frame transmission gap, a priority decision is made with the first vehicle-mounted terminal; when the result of the priority decision indicates that the first vehicle-mounted terminal has priority access to the communication channel of the wireless network, a first reply message is sent through the CAN network and a radio silence state is entered to allow the first vehicle-mounted terminal to have priority access to the communication channel of the wireless network; when the result of the priority decision indicates that the other vehicle-mounted terminals have priority access to the communication channel of the wireless network, a second reply message is sent through the CAN network to deny the first vehicle-mounted terminal access to the communication channel of the wireless network.

[0092] In actual applications, the message sent by the vehicle-mounted terminal may have multiple frames, and there are sending gaps between multiple message frames. If other vehicle-mounted terminals are in the multi-frame sending gap, it can trigger other vehicle-mounted terminals to make a priority decision with the first vehicle-mounted terminal, that is, to determine whether other vehicle-mounted terminals or the first vehicle-mounted terminal have priority to access and use the communication channel of the wireless network.

[0093] When the result of the priority determination indicates that the first vehicle-mounted terminal has priority access to the communication channel of the wireless network, other vehicle-mounted terminals can send first reply messages through the CAN network, and other vehicle-mounted terminals enter a radio silence state. After receiving the first reply message, the first vehicle-mounted terminal learns that it can have priority access to the communication channel of the wireless network compared to other vehicle-mounted terminals that sent the first reply message. After receiving the first reply messages sent by all other vehicle-mounted terminals, the first vehicle-mounted terminal obtains access rights to the communication channel of the wireless network, and can then access and use the communication channel of the wireless network to communicate with the second vehicle-mounted terminal.

[0094] When the result of the priority determination indicates that other vehicle-mounted terminals have priority in accessing the communication channel of the wireless network, the other vehicle-mounted terminals can send a second reply message through the CAN network, that is, the other vehicle-mounted terminals themselves continue to use the communication channel of the wireless network, and refuse the first vehicle-mounted terminal to use the communication channel of the wireless network. The first vehicle-mounted terminal can try to send an access request message again to try to put all other irrelevant vehicle-mounted terminals into a radio silence state, so that the first vehicle-mounted terminal itself can access the communication channel of the wireless network, that is, repeat the steps of the embodiment of the present invention.

[0095] In some embodiments of the present invention, the priority determination with the first vehicle-mounted terminal includes: determining the first priority of the current message in the multi-frame transmission gap; determining the second priority of the new message to be sent based on the access request message; when the second priority is greater than the first priority, determining that the first vehicle-mounted terminal has priority access to the communication channel of the wireless network; when the second priority is less than or equal to the first priority, determining that the other vehicle-mounted terminals have priority access to the communication channel of the wireless network.

[0096] In some embodiments of the present invention, the determining the first priority of the current message in the multi-frame transmission gap includes: determining the first terminal type of the other vehicle-mounted terminal and the first message type of the current message in the multi-frame transmission gap, and determining the first priority of the current message in the multi-frame transmission gap according to the first terminal type and the first message type;

[0097] In some embodiments of the present invention, determining the second priority of the new message to be sent based on the access request message includes: determining the second terminal type of the first vehicle-mounted terminal and the second message type of the new message to be sent from the access request message, and determining the second priority of the new message to be sent based on the second terminal type and the second message type.

[0098] In practical applications, there are multiple types of vehicle-mounted terminals in a vehicle, and different types of vehicle-mounted terminals may have different priorities. Moreover, for the same or the same type of vehicle-mounted terminal, the messages sent may be of different types, and different types of messages may have different priorities.

[0099] As shown in Table 1 below, vehicle sensors (i.e., vehicle-mounted terminals) can be divided into five categories according to their association with personal safety and the probability of sudden abnormalities, namely, prompt sensors, entertainment information terminals, environmental perception sensors, intelligent driving sensors / ECUs (Electronic Control Units), and vehicle control ECUs / body status sensors. The corresponding priorities are assigned values ​​1-5, and the higher the value, the higher the priority level. Moreover, within each type of sensor, messages are divided into four categories according to timeliness requirements, and are assigned values ​​1-4, respectively. The higher the value, the higher the priority level. Timeliness category 1 is a background message, and timeliness category 4 is an immediate execution message.

[0100]

[0101] Based on this, the priorities of different terminal types and different message types can be set in advance. When making priority decisions for the first vehicle-mounted terminal and other vehicle-mounted terminals, the first terminal type of other vehicle-mounted terminals can be determined for other vehicle-mounted terminals, and then the corresponding priority can be determined based on the first terminal type. The first message type of the current message in the multi-frame sending gap in other vehicle-mounted terminals can be determined, and the corresponding priority can be determined based on the first message type. Then, the first priority can be obtained by combining the corresponding priority of the first terminal type and the corresponding priority of the first message type.

[0102] In some examples, the first priority is obtained by combining the priority corresponding to the first terminal type and the priority corresponding to the first message type, and the following formula may be used:

[0103] First priority = the priority corresponding to the first terminal type 第一消息类型相应的优先级

[0104] For the first vehicle-mounted terminal, the access request message sent by it can carry the second terminal type of the first vehicle-mounted terminal and the second message type of the new message to be sent, and then determine the corresponding priority based on the second terminal type, and can determine the corresponding priority based on the second message type, and then combine the corresponding priority of the second terminal type and the corresponding priority of the second message type to obtain the second priority.

[0105] In some examples, the second priority is obtained by combining the priority corresponding to the second terminal type and the priority corresponding to the second message type, and the following formula may be used:

[0106] Second priority = the priority corresponding to the second terminal type 第二消息类型相应的优先级

[0107] After obtaining the first priority and the second priority, a comparison can be made. When the second priority is greater than the first priority, it is determined that the first vehicle-mounted terminal has priority access to the communication channel of the wireless network; when the second priority is less than or equal to the first priority, it is determined that other vehicle-mounted terminals have priority access to the communication channel of the wireless network.

[0108] In the embodiment of the present invention, whether a message needs to be sent first is determined by the size of the message priority. Through calculation, it can be found that the priority sequence number of all time-sensitive class 1 messages (background messages) is 1, and whoever requests first is sent first; similarly, for time-sensitive class 4 messages, the priority of a lower priority sensor is always smaller than the class 4 messages of a sensor with a higher priority level, but larger than the class 3 messages of a sensor with a higher priority level, and this rule can be deduced by analogy.

[0109] In some embodiments of the present invention, before performing priority determination with the first vehicle-mounted terminal, it also includes: when the access request message is a first access request message, sending a third reply message through the CAN network to trigger entering the priority determination process.

[0110] In actual applications, the first vehicle-mounted terminal sends a first access request message when the communication channel of the wireless network is in an idle state, and sends a second access request message when the communication channel of the wireless network is in a non-idle state. When other vehicle-mounted terminals receive the first access request message, if they are in a multi-frame transmission gap, they can send a third reply message through the CAN network and enter the priority determination process mentioned above. When other vehicle-mounted terminals receive the second access request message, they do not need to send a third reply message, but actively determine whether they are in a wireless transmission state and whether they are in a multi-frame transmission gap. If they are in a multi-frame transmission gap, they enter the priority determination process mentioned above, thereby quickly entering the service level determination process.

[0111] In some embodiments of the present invention, the first reply message may carry progress information, and the progress information may be used to enable the communication peer of other vehicle-mounted terminals, or the communication peer and the routing device to record the sending progress of the current message in the multi-frame sending gap.

[0112] In actual applications, when the result of the priority determination indicates that the first vehicle-mounted terminal has priority access to the communication channel of the wireless network, other vehicle-mounted terminals need to suspend the sending of subsequent frames. In order to facilitate the subsequent sending of the remaining frames, other vehicle-mounted terminals can obtain and record progress information. The progress information may include the sequence number of the currently sent frame, and the progress information can be written into the first reply message. The communication peers and routing devices of other vehicle-mounted terminals can obtain and store the progress information from the first reply message, and then use it in the next transmission to achieve the function of breakpoint resumption.

[0113] The following is an exemplary description of the message structure involved in the embodiment of the present invention:

[0114] like Figure 2b and Figure 2c , access request messages (including the first access request message and the second access request message), reply messages (including the first reply message, the second reply message, and the third reply message) may include an arbitration field, a control field, a data frame part, a CRC (Cyclic Redundancy Check) part, and an ACK (Acknowledge) part.

[0115] Among them, the arbitration field is uniformly assigned by the whole vehicle, but in order to prevent the vehicle CAN network from being blocked and causing the information to be unable to be sent in time, the access request message and reply message are assigned to different arbitration fields with sufficiently high priorities.

[0116] For access request messages, such as Figure 2b The data frame part includes the request message type, the request terminal ID number, the request message sequence number, the request terminal type value, the request message priority assignment, the request destination terminal ID number, and the expected number of data frames.

[0117] Among them, the request message type can be assigned 1 and 2, representing the first access request message and the second access request message respectively; the request terminal ID number can be a component code or other numerical value with the uniqueness of the whole vehicle; the request message sequence number is used to distinguish different request batches, and the value range is between 0-255. Each terminal assigns and manages the sequence number by itself. Every time the terminal sends a request, the sequence number is automatically increased by 1, and after 255, it starts from 1 again; the request terminal type value is the terminal type mentioned above; the request message priority assignment is the corresponding assignment according to different terminal types and different message priorities mentioned above; the request destination terminal ID number represents the destination of this data transmission; the expected number of data frames is the value of the expected number of transmitted data bytes / the number of transmitted bytes per frame.

[0118] For reply messages, such as Figure 2c The data frame part includes the reply message type, reply terminal ID number, existing terminal ID number, sending completion degree, request terminal ID number, request message sequence number, request terminal type value, request message priority value, request destination terminal ID number, and expected number of data frames.

[0119] Among them, the requesting terminal ID number, request message sequence number, requesting terminal type value, request message priority value, request destination terminal ID number, and expected number of data frames are the same as the access request message mentioned above; the reply message type can take values ​​1, 2, and 3, representing the first reply message, the second reply message, and the third reply message, respectively. Different reply types will enter different processes; the replying terminal ID number can also be a component code, or other numerical values ​​with vehicle uniqueness characteristics, which represents the terminal that actively or passively performs priority comparison; the existing terminal ID number is taken in the same way as the replying terminal ID number, which represents the terminal that is currently interacting with the replying terminal ID number for wireless services (i.e., the ID number of the communication peer); the sending completion degree (i.e., the progress information mentioned above) is assigned by the terminal that is currently performing wireless transmission to facilitate the continuation of the last wireless transmission after the priority comparison fails.

[0120] In some embodiments of the present invention, competing with the first vehicle-mounted terminal for access to a communication channel of the wireless network according to the wireless network usage status includes:

[0121] When the wireless network usage status indicates that the other vehicle-mounted terminal is in a wireless transmission state, a second reply message is sent through the CAN network to deny the first vehicle-mounted terminal from accessing the communication channel of the wireless network.

[0122] In actual applications, if other vehicle-mounted terminals are in a wireless transmission state, the other vehicle-mounted terminals can send a second reply message through the CAN network, that is, the other vehicle-mounted terminals themselves continue to use the communication channel of the wireless network, and refuse the first vehicle-mounted terminal to use the communication channel of the wireless network. Then, the first vehicle-mounted terminal can try to send an access request message again to try to put all other irrelevant vehicle-mounted terminals into a radio silence state, so that the first vehicle-mounted terminal itself can access the communication channel of the wireless network, that is, repeat the steps of the embodiment of the present invention.

[0123] In some embodiments of the present invention, competing with the first vehicle-mounted terminal for access to a communication channel of the wireless network according to the wireless network usage status includes:

[0124] When the wireless network usage status indicates that the other vehicle-mounted terminals are not in the wireless transmission state and are not in the multi-frame transmission gap, a first reply message is sent through the CAN network and a radio silence state is entered to suspend access to the communication channel of the wireless network.

[0125] In actual applications, if other vehicle-mounted terminals are not in the wireless transmission state and are not in the multi-frame transmission gap, other vehicle-mounted terminals can send the first reply message through the CAN network, and other vehicle-mounted terminals enter the radio silence state. After receiving the first reply message, the first vehicle-mounted terminal learns that it can have priority access to the communication channel of the wireless network compared to other vehicle-mounted terminals that sent the first reply message. After receiving the first reply messages sent by all other vehicle-mounted terminals, the first vehicle-mounted terminal obtains access rights to the communication channel of the wireless network, and can then access and use the communication channel of the wireless network to communicate with the second vehicle-mounted terminal.

[0126] In an embodiment of the present invention, when the first vehicle-mounted terminal detects a triggering event that requires communication with the second vehicle-mounted terminal via a wireless network, it sends an access request message to other vehicle-mounted terminals via the CAN network. The other vehicle-mounted terminals respond to the access request message and compete with the first vehicle-mounted terminal for access to the communication channel of the wireless network. When the first vehicle-mounted terminal obtains access authority to the communication channel of the wireless network, it accesses and uses the communication channel of the wireless network to communicate with the second vehicle-mounted terminal, thereby realizing the use of the CAN network in the vehicle for channel competition access and the use of the wireless network for data transmission, thereby enabling wireless network transmission in the vehicle on the basis of ensuring timeliness.

[0127] Reference Figure 3 , shows a flowchart of another method for communication in a vehicle provided by some embodiments of the present invention, which may specifically include the following steps:

[0128] Step 31, when the first vehicle terminal detects a triggering event for communicating with the second vehicle terminal via a wireless network, the first vehicle terminal sends an access request message to other vehicle terminals via the CAN network to compete with the other vehicle terminals for accessing the communication channel of the wireless network.

[0129] In some embodiments of the present invention, the access request message is a first access request message or a second access request message, and the sending of the access request message to other vehicle-mounted terminals through the CAN network includes: when it is detected that the communication channel of the wireless network is in an idle state, sending the first access request message to other vehicle-mounted terminals through the CAN network; when it is detected that the communication channel of the wireless network is in an idle state, sending the second access request message to other vehicle-mounted terminals through the CAN network.

[0130] Step 32: When the first vehicle-mounted terminal obtains access authority to the communication channel of the wireless network, it accesses and uses the communication channel of the wireless network to communicate with the second vehicle-mounted terminal.

[0131] In some embodiments of the present invention, when obtaining access rights to a communication channel of a wireless network, accessing and using the communication channel of the wireless network to communicate with the second vehicle-mounted terminal includes:

[0132] When obtaining access rights to the communication channel of the wireless network, access the communication channel of the wireless network, and send a message frame to the second vehicle-mounted terminal through the communication channel of the wireless network; when no confirmation message is received from the second vehicle-mounted terminal within a preset time length, if the current number of transmissions is less than the preset number, resend the message frame to the second vehicle-mounted terminal.

[0133] In some embodiments of the present invention, when obtaining access rights to the communication channel of the wireless network, before accessing and using the communication channel of the wireless network to communicate with the second vehicle-mounted terminal, it also includes: when receiving the first reply message sent by all other vehicle-mounted terminals through the CAN network, determining whether to obtain access rights to the communication channel of the wireless network.

[0134] The first reply message is a reply message sent when the other vehicle-mounted terminal is not in a wireless transmission state and is not in a multi-frame transmission gap;

[0135] Alternatively, the first reply message is a reply message sent when the other vehicle-mounted terminal is in a multi-frame transmission gap and the result of the priority arbitration with the first vehicle-mounted terminal indicates that the first vehicle-mounted terminal has priority access to the communication channel of the wireless network.

[0136] In some embodiments of the present invention, when obtaining access rights to the communication channel of the wireless network, before accessing and using the communication channel of the wireless network to communicate with the second vehicle-mounted terminal, it also includes: when receiving a second reply message sent by the other vehicle-mounted terminal through the CAN network, determining that access rights to the communication channel of the wireless network have not been obtained.

[0137] Wherein, the second reply message is a reply message sent when the other vehicle-mounted terminal is in a wireless transmission state;

[0138] Alternatively, the second reply message is a reply message sent when the other vehicle-mounted terminal is in a multi-frame transmission gap and the result of the priority arbitration with the first vehicle-mounted terminal indicates that the other vehicle-mounted terminal has priority access to the communication channel of the wireless network.

[0139] In some embodiments of the present invention, when obtaining access rights to the communication channel of the wireless network, before accessing and using the communication channel of the wireless network to communicate with the second vehicle-mounted terminal, it also includes: when a third reply message sent by the other vehicle-mounted terminal is received through the CAN network, the priority determination process is entered.

[0140] The following combination Figure 4 Steps 100-112 and steps 201-217 are used to exemplarily illustrate the present invention:

[0141] After each terminal (i.e., the vehicle-mounted terminal) has completed the definition of its own terminal type and message priority (100), the terminal (i.e., the first vehicle-mounted terminal) needs to send data to other terminals (i.e., the second vehicle-mounted terminal) under the stimulation of a certain event 101 (i.e., a triggering event) and detect the physical channel (i.e., the communication channel of the wireless network) within the coverage area 102.

[0142] If the detected channel is in idle state, the process proceeds to step 103 and sends a wireless access request 103 via the CAN line, i.e., sends an access request message type 1 (i.e., the first access request message) to the vehicle CAN network, in an attempt to put all other irrelevant terminals into a radio silent state.

[0143] After the request type 1 message is sent, all terminals parse the message and first extract the byte where the "request type" is equal to 1. Then, all terminals (i.e., other vehicle-mounted terminals) including the requested terminal (i.e., the second vehicle-mounted terminal) immediately enter process 104 or process 110 to determine whether they are performing wireless transmission or are in a multi-frame gap.

[0144] If wireless transmission is in progress, the process 107 or 108 is entered to send a reply message type 2 (i.e., the second reply message). The requesting terminal (i.e., the first vehicle-mounted terminal) parses the reply message, first extracts the byte where the reply message type is located, and after learning that its value is 2, returns to the process 102 to continue monitoring whether the channel is idle.

[0145] If the terminal enters the process 104 or 110 and finds that it is not performing RF transmission but is in a multi-frame transmission gap, it continues to enter the process 105 or 111 and replies with message type 3 (i.e., the third reply message), requesting to enter the priority comparison process 205 (i.e., the priority determination process). When other terminals receive the reply message and parse the message type as 3, they enter the silent state.

[0146] For the priority comparison process, there are two cases:

[0147] In one case, when the terminal sends a reply message type 3 (i.e., the third reply message), the terminal starts the priority comparison process. In this case, other terminals are already in a silent state, and only the specific terminal that sends the reply message type 3 uses the information in the reply message to perform priority comparison on the MCU side.

[0148] Another situation is that when the requesting terminal finds that the channel is busy, it actively sends out a request message type 2 (i.e., a second access request message). In this situation, the requesting terminal sends out a request message type 2 at the beginning. All terminals need to parse the request message first. When they know that the message type is request type 2, they determine whether they are in a wireless transmission state. If so, they send out a reply message 2, and enter process 108. If the terminal is not in a wireless transmission state, it needs to further determine whether it is in a multi-frame gap. If so, it enters process 205 to perform a priority comparison process, otherwise it enters radio silence.

[0149] In the priority comparison process, the terminal in the multi-frame gap is responsible for the priority comparison process and sends a reply message type 1 or 2 (i.e., the first reply message or the second reply message) depending on the comparison result. The priority comparison mainly compares the priority sequence of the currently ongoing radio service with the priority sequence of the currently requested radio service.

[0150] If the current request sequence (i.e., the second priority) is ≤ the current ongoing sequence (i.e., the first priority), a reply message type 2 (i.e., the second reply message) is sent to enter process 107; if the current request sequence (i.e., the second priority) is greater than the current ongoing sequence (i.e., the first priority), a reply message type 1 (i.e., the first reply message) is sent to enter process 207.

[0151] Among them, the reply message type 1 message (i.e., the first reply message) still includes the requested destination terminal ID number (i.e., the ID number of the second vehicle-mounted terminal). When other vehicle-mounted terminals detect that the "request terminal ID number" in the message corresponds to their own ID number, they enter the waiting state and start a 1-minute countdown, i.e., process 211. The countdown is mainly set to prevent the requested terminal from being in the waiting state all the time. Synchronously, after receiving the reply type 1 (i.e., the first reply message), the requesting terminal (i.e., the first vehicle-mounted terminal) enters the transmitting state to send a message, and monitors whether it can receive the ACK reply from the destination terminal (i.e., the second vehicle-mounted terminal) within a certain period of time. If not, it will try again after the countdown ends. A total of 3 attempts are made. If the ACK reply from the destination terminal (i.e., the second vehicle-mounted terminal) can be received within the specified time, the next frame will be sent or the current transmission will be completed.

[0152] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0153] Some embodiments of the present invention further provide a device for communicating in a vehicle, comprising a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the above method when executed by the processor.

[0154] Some embodiments of the present invention further provide an electronic device, comprising a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the above method is implemented when the computer program is executed by the processor.

[0155] Some embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, and the computer program implements the above method when executed by a processor.

[0156] Some embodiments of the present invention further provide a computer program product, including a computer program, which implements the above method when executed by a processor.

[0157] Some embodiments of the present invention further provide a vehicle, comprising a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the above method is implemented when the computer program is executed by the processor.

[0158] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0159] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0160] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0161] Those skilled in the art will appreciate that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0162] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0163] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0164] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0165] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0166] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the above elements.

[0167] The above is a detailed introduction to a method, electronic device, medium and program product for communication in a vehicle. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for a person skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for communication in a vehicle, It is characterized in that The vehicle has a plurality of vehicle-mounted terminals, the plurality of vehicle-mounted terminals are connected via a CAN network, and the plurality of vehicle-mounted terminals are connected via a wireless network. The method includes: The other vehicle-mounted terminals receive the access request message sent by the first vehicle-mounted terminal through the CAN network; wherein the access request message is a message sent by the first vehicle-mounted terminal when a triggering event is detected that requires communication with the second vehicle-mounted terminal through the wireless network; The other vehicle-mounted terminal detects its own wireless network usage status in response to the access request message, and competes with the first vehicle-mounted terminal for access to the communication channel of the wireless network according to the wireless network usage status.

2. The method according to claim 1, It is characterized in that The competing with the first vehicle-mounted terminal for accessing a communication channel of the wireless network according to the wireless network usage status includes: When the wireless network usage status indicates that the other vehicle-mounted terminal is in a multi-frame transmission gap, performing priority determination with the first vehicle-mounted terminal; When the result of the priority determination indicates that the first vehicle-mounted terminal has priority access to the communication channel of the wireless network, sending a first reply message through the CAN network and entering a radio silence state, so that the first vehicle-mounted terminal has priority access to the communication channel of the wireless network; When the result of the priority arbitration indicates that the other vehicle-mounted terminals have priority in accessing the communication channel of the wireless network, a second reply message is sent through the CAN network to deny the first vehicle-mounted terminal from accessing the communication channel of the wireless network.

3. The method according to claim 2, It is characterized in that The performing priority determination with the first vehicle-mounted terminal includes: Determine the first priority of the current message in the multi-frame transmission gap; Determining, according to the access request message, a second priority level of the new message to be sent; When the second priority is greater than the first priority, determining that the first vehicle-mounted terminal has priority access to the communication channel of the wireless network; When the second priority is less than or equal to the first priority, it is determined that the other vehicle-mounted terminals have priority access to the communication channel of the wireless network.

4. The method according to claim 3, It is characterized in that The determining of the first priority of the current message in the multi-frame transmission gap includes: Determine a first terminal type of the other vehicle-mounted terminal and a first message type of the current message in the multi-frame transmission gap, and determine a first priority of the current message in the multi-frame transmission gap according to the first terminal type and the first message type; The step of determining, according to the access request message, a second priority level of the new message to be sent, comprises: The second terminal type of the first vehicle-mounted terminal and the second message type of the new message to be sent are determined from the access request message, and the second priority of the new message to be sent is determined according to the second terminal type and the second message type.

5. The method according to claim 2, It is characterized in that The first reply message carries progress information, and the progress information is used to enable the communication peer of the other vehicle-mounted terminal, or the communication peer and the routing device to record the sending progress of the current message in the multi-frame sending gap.

6. The method according to claim 2, It is characterized in that The access request message is a first access request message or a second access request message. The first access request message is an access request message sent by the first vehicle-mounted terminal when it detects that the communication channel of the wireless network is in an idle state. The second access request message is an access request message sent by the first vehicle-mounted terminal when it detects that the communication channel of the wireless network is in a non-idle state.

7. The method according to claim 6, It is characterized in that Before performing the priority decision with the first vehicle-mounted terminal, the method further includes: In the case where the access request message is the first access request message, a third reply message is sent through the CAN network to trigger entering the priority decision process.

8. The method according to any one of claims 1 to 7, It is characterized in that Competing with the first vehicle-mounted terminal for accessing a communication channel of the wireless network according to the wireless network usage status includes: When the wireless network usage status indicates that the other vehicle-mounted terminal is in a wireless transmission state, a second reply message is sent through the CAN network to deny the first vehicle-mounted terminal from accessing the communication channel of the wireless network.

9. The method according to any one of claims 1 to 7, It is characterized in that Competing with the first vehicle-mounted terminal for accessing a communication channel of the wireless network according to the wireless network usage status includes: When the wireless network usage status indicates that the other vehicle-mounted terminals are not in the wireless transmission state and are not in the multi-frame transmission gap, a first reply message is sent through the CAN network and a radio silence state is entered to suspend access to the communication channel of the wireless network.

10. A method of communicating in a vehicle, It is characterized in that The vehicle has a plurality of vehicle-mounted terminals, the plurality of vehicle-mounted terminals are connected via a CAN network, and the plurality of vehicle-mounted terminals are connected via a wireless network. The method includes: When the first vehicle-mounted terminal detects a triggering event that requires communication with the second vehicle-mounted terminal via a wireless network, the first vehicle-mounted terminal sends an access request message to other vehicle-mounted terminals via a CAN network to compete with the other vehicle-mounted terminals for access to a communication channel of the wireless network; wherein the other vehicle-mounted terminals respond to the access request message, detect their own wireless network usage status, and compete with the first vehicle-mounted terminal for access to a communication channel of the wireless network according to the wireless network usage status; When the first vehicle-mounted terminal obtains the access right to the communication channel of the wireless network, it accesses and uses the communication channel of the wireless network to communicate with the second vehicle-mounted terminal.

11. The method according to claim 10, It is characterized in that Before accessing and using the communication channel of the wireless network to communicate with the second vehicle-mounted terminal when obtaining the access right of the communication channel of the wireless network, the method further includes: When first reply messages sent by all other vehicle-mounted terminals are received through the CAN network, determining to obtain access rights to the communication channel of the wireless network; The first reply message is a reply message sent when the other vehicle-mounted terminal is not in a wireless transmission state and is not in a multi-frame transmission gap; Alternatively, the first reply message is a reply message sent when the other vehicle-mounted terminal is in a multi-frame transmission gap and the result of the priority arbitration with the first vehicle-mounted terminal indicates that the first vehicle-mounted terminal has priority access to the communication channel of the wireless network.

12. The method according to claim 11, It is characterized in that Before accessing and using the communication channel of the wireless network to communicate with the second vehicle-mounted terminal when obtaining the access right of the communication channel of the wireless network, the method further includes: When receiving the second reply message sent by the other vehicle-mounted terminal through the CAN network, determining that the access authority to the communication channel of the wireless network is not obtained; Wherein, the second reply message is a reply message sent when the other vehicle-mounted terminal is in a wireless transmission state; Alternatively, the second reply message is a reply message sent when the other vehicle-mounted terminal is in a multi-frame transmission gap and the result of the priority arbitration with the first vehicle-mounted terminal indicates that the other vehicle-mounted terminal has priority access to the communication channel of the wireless network.

13. The method according to any one of claims 10 to 12, It is characterized in that The access request message is a first access request message or a second access request message, and sending the access request message to other vehicle-mounted terminals through the CAN network includes: When detecting that the communication channel of the wireless network is in an idle state, sending a first access request message to other vehicle-mounted terminals through the CAN network; When it is detected that the communication channel of the wireless network is in an idle state, a second access request message is sent to other vehicle-mounted terminals via the CAN network.

14. The method according to claim 13, It is characterized in that Before accessing and using the communication channel of the wireless network to communicate with the second vehicle-mounted terminal when obtaining the access right of the communication channel of the wireless network, the method further includes: When the third reply message sent by the other vehicle-mounted terminal is received through the CAN network, it is known that the priority determination process has been entered.

15. The method according to claim 10, It is characterized in that When obtaining access rights to the communication channel of the wireless network, accessing and using the communication channel of the wireless network to communicate with the second vehicle-mounted terminal includes: When obtaining access rights to the communication channel of the wireless network, accessing the communication channel of the wireless network, and sending a message frame to the second vehicle-mounted terminal through the communication channel of the wireless network; When no confirmation message is received from the second vehicle-mounted terminal within a preset time period, if the current number of transmissions is less than the preset number of transmissions, the message frame is resent to the second vehicle-mounted terminal.

16. An electronic device, It is characterized in that The method comprises a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the method according to any one of claims 1 to 15 when executed by the processor.

17. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 15 is implemented.

18. A vehicle, It is characterized in that The method comprises a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the method according to any one of claims 1 to 15 when executed by the processor.

Citation Information

Patent Citations

  • Real-time synchronization method for hybrid network

    KR1020090112936A