Vehicle-mounted device communication method, vehicle-mounted device, storage medium, and electronic device
By using short-range communication connections between in-vehicle devices and relaying devices in neighboring vehicles, the problem of low communication reliability of in-vehicle products at high speeds is solved, thus improving the safety of vehicles and smart home appliances.
Patent Information
- Application Number
- CN202010598869.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-28
- Publication Date
- 2025-11-18
- Estimated Expiration
- 2040-06-28
AI Technical Summary
In-vehicle products have low communication reliability when driving at high speeds, especially in the early stages of 5G network deployment, where frequent call drops are a serious problem, affecting the safety of vehicles and smart home appliances.
A short-range communication connection is established between the onboard equipment of the first vehicle and the onboard equipment of the second vehicle, and the onboard equipment of the second vehicle is used as a relay to realize data transmission with the network, including sending and receiving data.
It improves the communication reliability of in-vehicle products and smart home appliances at high speeds, enhances product safety, and ensures the transmission of important information.
Smart Images

Figure CN113852938B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of mobile Internet, and more specifically, to a vehicle-mounted device communication method, a vehicle-mounted device, a storage medium, and an electronic device. Background Technology
[0002] When vehicles are traveling on highways, the high speeds, frequent switching between in-vehicle communication devices and networks, and varying network deployments among different operators can lead to frequent call drops. This is especially true as 5G network deployment is still in its early stages, which will significantly increase the likelihood of dropped calls. Furthermore, high-speed driving demands even higher safety standards. Therefore, improving the safety and reliability of in-vehicle products is of paramount importance. Summary of the Invention
[0003] This invention provides a vehicle-mounted device communication method, vehicle-mounted device, storage medium, and electronic device to at least solve the problem of low communication reliability of vehicle-mounted products when traveling at high speeds in related technologies.
[0004] According to an embodiment of the present invention, a vehicle-mounted device communication method is provided, comprising: a vehicle-mounted device of a first vehicle establishing a communication connection with a vehicle-mounted device of a second vehicle via short-range communication; the vehicle-mounted device of the first vehicle sending first data to a network terminal via the vehicle-mounted device of the second vehicle; and the vehicle-mounted device of the first vehicle receiving second data forwarded from the network terminal by the vehicle-mounted device of the second vehicle.
[0005] In one exemplary embodiment, before the on-board equipment of the first vehicle establishes a communication connection with the on-board equipment of the second vehicle via short-range communication, the method may further include sending the identification information of the first vehicle to the network terminal when the on-board equipment of the first vehicle is powered on.
[0006] In one exemplary embodiment, before the on-board equipment of the first vehicle establishes a communication connection with the on-board equipment of the second vehicle via short-range communication, the method may further include checking the network access status of the on-board equipment of the first vehicle.
[0007] Furthermore, the on-board equipment of the first vehicle establishing a communication connection with the on-board equipment of the second vehicle via short-range communication may include: establishing a communication connection with the on-board equipment of the second vehicle via short-range communication when the network access status of the on-board equipment of the first vehicle is abnormal.
[0008] In an exemplary embodiment, after establishing a communication connection with the on-board equipment of the second vehicle via short-range communication, the process may further include: the on-board equipment of the first vehicle sending a broadcast message requesting assistance to the on-board equipment of the second vehicle; the on-board equipment of the first vehicle receiving an authorization message for providing assistance from the on-board equipment of the second vehicle; the on-board equipment of the first vehicle sending a request type message to the on-board equipment of the second vehicle, wherein the request type message carries the reason for seeking assistance from the on-board equipment of the first vehicle and the network identification information of the on-board equipment of the first vehicle; the on-board equipment of the first vehicle receiving a response message from the on-board equipment of the second vehicle, wherein the response message carries information on whether the on-board equipment of the second vehicle and the on-board equipment of the first vehicle belong to the same network or different networks; and the on-board equipment of the first vehicle selecting the on-board equipment of the second vehicle as a communication relay based on the response message.
[0009] In an exemplary embodiment, the process of the on-board device of the first vehicle sending first data to the network via the on-board device of the second vehicle may include: the on-board device of the first vehicle sending the first data to the on-board device of the second vehicle, wherein the first data includes the identification information of the first vehicle.
[0010] In an exemplary embodiment, the process of the on-board unit of the first vehicle receiving second data forwarded from the network by the on-board unit of the second vehicle may include: the on-board unit of the first vehicle receiving the second data forwarded from the network by the on-board unit of the second vehicle, and parsing the data information sent to it by the network based on the identification information of the first vehicle carried in the second data.
[0011] According to another embodiment of the present invention, a vehicle-mounted device communication method is provided, comprising: establishing a communication connection between a vehicle-mounted device of a second vehicle and a vehicle-mounted device of a first vehicle via a short-range communication method; the vehicle-mounted device of the second vehicle receiving first data sent by the vehicle-mounted device of the first vehicle and sending the first data to a network terminal; the vehicle-mounted device of the second vehicle receiving second data from the network terminal and sending the second data to the vehicle-mounted device of the first vehicle.
[0012] In an exemplary embodiment, before the on-board device of the second vehicle receives the first data sent by the on-board device of the first vehicle, the method may further include: the on-board device of the second vehicle receiving a broadcast message requesting help sent by the on-board device of the first vehicle; the on-board device of the second vehicle sending an authorization message for providing help to the on-board device of the first vehicle; the on-board device of the second vehicle receiving a request type message sent by the on-board device of the first vehicle, wherein the request type message carries the reason for the on-board device of the first vehicle seeking help and the network identification information of the on-board device of the first vehicle; and the on-board device of the second vehicle sending a response message to the on-board device of the first vehicle, wherein the response message carries information on whether the on-board device of the second vehicle and the on-board device of the first vehicle belong to the same network or different networks.
[0013] Furthermore, before the on-board equipment of the second vehicle receives the first data sent by the on-board equipment of the first vehicle, it may also include: the on-board equipment of the second vehicle receiving the identification information of the first vehicle sent by the on-board equipment of the first vehicle.
[0014] In an exemplary embodiment, the on-board device of the second vehicle receives first data sent by the on-board device of the first vehicle and sends the first data to the network terminal, which may include: the on-board device of the second vehicle receiving the first data sent by the on-board device of the first vehicle and sending the identification information of the first vehicle and the first data to the network terminal.
[0015] In an exemplary embodiment, the on-board unit of the second vehicle receives second data from the network and sends the second data to the first vehicle, which may include: the on-board unit of the second vehicle receiving the second data from the network; the on-board unit of the second vehicle determining whether the second data is data to be forwarded based on the flag field in the data packet of the second data; when the second data is data to be forwarded, forwarding the second data to the on-board unit of the first vehicle based on the identification information of the first vehicle carried in the data of the second data.
[0016] According to another embodiment of the present invention, an in-vehicle device is provided, the in-vehicle device being located in a first vehicle, comprising: an establishment module for establishing a communication connection with an in-vehicle device in a second vehicle via near-field communication; a sending module for sending first data to a network terminal via the in-vehicle device in the second vehicle; and a receiving module for receiving second data forwarded from the network terminal by the in-vehicle device in the second vehicle.
[0017] In an exemplary embodiment, the sending module can also be used to send the identification information of the first vehicle to the network terminal when the on-board equipment of the first vehicle is powered on.
[0018] In one exemplary embodiment, it may further include: a checking module for checking the network access status of the on-board equipment of the first vehicle.
[0019] According to another embodiment of the present invention, an in-vehicle device is provided, the in-vehicle device being located in a second vehicle, comprising: a communication module for establishing a communication connection with an in-vehicle device of a first vehicle via a short-range communication method; a first transceiver module for receiving first data sent by the in-vehicle device of the first vehicle and sending the first data to a network end; and a second transceiver module for receiving second data from the network end and sending the second data to the in-vehicle device of the first vehicle.
[0020] According to yet another embodiment of the present invention, a computer-readable storage medium is also provided, wherein a computer program is stored therein, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed.
[0021] According to yet another embodiment of the present invention, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0022] Through the above embodiments of the present invention, since the on-board equipment of the first vehicle can transmit data with the network through the on-board equipment of the second vehicle when the network access is abnormal, the problem of low communication reliability of on-board products in related technologies can be solved, thereby improving the safety of on-board products during high-speed driving. Attached Figure Description
[0023] Figure 1 This is a flowchart of a vehicle-mounted device communication method according to an embodiment of the present invention;
[0024] Figure 2 This is a flowchart of an in-vehicle device communication method according to an optional embodiment of the present invention;
[0025] Figure 3 This is a structural block diagram of an in-vehicle device according to an embodiment of the present invention;
[0026] Figure 4 This is a structural block diagram of an in-vehicle device according to an optional embodiment of the present invention;
[0027] Figure 5 This is a structural block diagram of an in-vehicle communication system according to an embodiment of the present invention;
[0028] Figure 6 This is a schematic diagram of the layered structure of the vehicle's on-board module according to an embodiment of the present invention;
[0029] Figure 7 This is a schematic diagram of the layered structure of the adjacent vehicle on-board module according to an embodiment of the present invention;
[0030] Figure 8 This is a schematic diagram of the layered structure of the network processing module according to an embodiment of the present invention;
[0031] Figure 9 This is a flowchart of a secure communication method according to an embodiment of the present invention;
[0032] Figure 10 This is a flowchart of the process for selecting and assisting neighboring vehicles on different networks according to an embodiment of the present invention;
[0033] Figure 11 This is a flowchart of a secure communication method according to an optional embodiment of the present invention;
[0034] Figure 12 This is a schematic diagram of the data packet encapsulation format according to an embodiment of the present invention. Detailed Implementation
[0035] The embodiments of the present invention will be described in detail below with reference to the accompanying drawings and examples.
[0036] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0037] This embodiment provides a communication method for in-vehicle devices. Figure 1 This is a flowchart of a vehicle-mounted device communication method according to an embodiment of the present invention, such as... Figure 1 As shown, the process includes the following steps:
[0038] Step S101: The on-board equipment of the first vehicle establishes a communication connection with the on-board equipment of the second vehicle through short-range communication.
[0039] Step S102: The on-board equipment of the first vehicle sends the first data to the network terminal through the on-board equipment of the second vehicle;
[0040] In step S103, the on-board equipment of the first vehicle receives the second data forwarded from the network by the on-board equipment of the second vehicle.
[0041] Before step S101 in this embodiment, the method may further include: when the on-board equipment of the first vehicle is powered on, sending the identification information of the first vehicle to the network terminal.
[0042] Before step S101 in this embodiment, the method may further include: checking the network access status of the on-board equipment of the first vehicle.
[0043] In this embodiment, step S101 may include: establishing a communication connection with the in-vehicle equipment of the second vehicle through short-range communication when the network access status of the in-vehicle equipment of the first vehicle is abnormal.
[0044] Following step S101 in this embodiment, the method may further include: the on-board unit of the first vehicle sending a broadcast message requesting assistance to the on-board unit of the second vehicle; the on-board unit of the first vehicle receiving an authorization message for providing assistance from the on-board unit of the second vehicle; the on-board unit of the first vehicle sending a request type message to the on-board unit of the second vehicle, wherein the request type message carries the reason for the on-board unit of the first vehicle seeking assistance and the network identification information of the on-board unit of the first vehicle; the on-board unit of the first vehicle receiving a response message from the on-board unit of the second vehicle, wherein the response message carries information on whether the on-board unit of the second vehicle and the on-board unit of the first vehicle belong to the same network or different networks; and the on-board unit of the first vehicle selecting the on-board unit of the second vehicle as a communication relay based on the response message.
[0045] In this embodiment, step S102 may include: the on-board equipment of the first vehicle sending the first data to the on-board equipment of the second vehicle, wherein the first data includes the identification information of the first vehicle.
[0046] In this embodiment, step S103 may include: the on-board equipment of the first vehicle receiving the second data forwarded from the network terminal by the on-board equipment of the second vehicle, and parsing out the data information sent to itself by the network terminal based on the identification information of the first vehicle carried in the second data.
[0047] Through the above steps, since the on-board equipment of the first vehicle transmits data to the network through the on-board equipment of the second vehicle, the problem of low communication reliability in on-board products and smart home appliances in related technologies is solved, the reliability of communication of on-board products and smart home appliances is improved, and the security of product communication is enhanced.
[0048] This embodiment also provides a vehicle-mounted device communication method. Figure 2 This is a flowchart of an in-vehicle device communication method according to an optional embodiment of the present invention, such as... Figure 2 As shown, the process includes the following steps:
[0049] Step S201: The on-board equipment of the second vehicle establishes a communication connection with the on-board equipment of the first vehicle through short-range communication.
[0050] Step S202: The on-board equipment of the second vehicle receives the first data sent by the on-board equipment of the first vehicle and sends the first data to the network end;
[0051] In step S203, the on-board equipment of the second vehicle receives the second data from the network and sends the second data to the on-board equipment of the first vehicle.
[0052] Before step S202 in this embodiment, the method may further include: the on-board device of the second vehicle receiving a broadcast message requesting help sent by the on-board device of the first vehicle; the on-board device of the second vehicle sending an authorization message to the on-board device of the first vehicle to provide help; the on-board device of the second vehicle receiving a request type message sent by the on-board device of the first vehicle, wherein the request type message carries the reason for the on-board device of the first vehicle seeking help and the network identification information of the on-board device of the first vehicle; the on-board device of the second vehicle sending a response message to the on-board device of the first vehicle, wherein the response message carries information on whether the on-board device of the second vehicle and the on-board device of the first vehicle belong to the same network or different networks.
[0053] Before step S202 in this embodiment, the following may also be included: the on-board equipment of the second vehicle receives the identification information of the first vehicle sent by the on-board equipment of the first vehicle.
[0054] In this embodiment, step S202 may include: the on-board equipment of the second vehicle receiving the first data sent by the on-board equipment of the first vehicle, and sending the identification information of the first vehicle and the first data to the network terminal.
[0055] In this embodiment, step S203 may include: the on-board equipment of the second vehicle receiving the second data from the network; the on-board equipment of the second vehicle determining whether the second data is data to be forwarded based on the flag field in the data packet of the second data; when the second data is data to be forwarded, forwarding the second data to the on-board equipment of the first vehicle based on the identification information of the first vehicle carried in the data of the second data.
[0056] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0057] This embodiment also provides an in-vehicle device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0058] Figure 3 This is a structural block diagram of an in-vehicle device according to an embodiment of the present invention, such as... Figure 3 As shown, the device is located in the first vehicle and includes a setup module 10, a transmission module 20, and a receiving module 30.
[0059] The establishment module 10 is used to establish a communication connection with the on-board equipment of the second vehicle through short-range communication.
[0060] The sending module 20 is used to send first data to the network terminal through the on-board equipment of the second vehicle.
[0061] The receiving module 30 is used to receive second data from the network end forwarded by the on-board equipment of the second vehicle.
[0062] In this embodiment, the sending module 20 can also be used to send the identification information of the first vehicle to the network terminal when the on-board equipment of the first vehicle is powered on.
[0063] In this embodiment, it may also include: a checking module 40, used to check the network access status of the on-board equipment of the first vehicle.
[0064] Figure 4 This is a structural block diagram of an in-vehicle device according to an optional embodiment of the present invention, such as... Figure 4 As shown, the device is located in the second vehicle and includes a communication module 50, a first transceiver module 60, and a second transceiver module 70.
[0065] The communication module 50 is used to establish a communication connection with the on-board equipment of the first vehicle via short-range communication.
[0066] The first transceiver module 60 is used to receive first data sent by the vehicle-mounted equipment of the first vehicle and send the first data to the network end;
[0067] The second transceiver module 70 is used to receive second data from the network end and send the second data to the vehicle-mounted equipment of the first vehicle.
[0068] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.
[0069] Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed.
[0070] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0071] Embodiments of the present invention also provide an electronic device including a memory and a processor, the memory storing a computer program and the processor being configured to run the computer program to perform the steps in any of the above method embodiments.
[0072] In one exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.
[0073] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.
[0074] To facilitate understanding of the technical solutions provided by this invention, detailed descriptions will be given below in conjunction with specific scenario embodiments.
[0075] After a vehicle-mounted product experiences an abnormal disconnection from the 4G network, there are many situations where the connection cannot be restored. For example, in real-world network environments, vehicle-mounted products may experience data communication interruptions on LTE 4G networks, resulting in the inability to communicate with the network. In some cases, the product itself cannot recover from this state. For ordinary communication products such as data cards and mobile phones, users can restore the data connection by reopening the data connection through the user interface or by restarting the device. However, communication modules in vehicle-mounted products and smart home appliances cannot automatically repair themselves. Once this happens, it will result in the inability to receive information sent from the network, especially important information such as security patches sent by manufacturers or important notices. This is unsafe for vehicle-mounted products and smart home appliances.
[0076] The focus of this invention is to improve the reliability of communication in in-vehicle products and smart home appliances, thereby enhancing their security. For example, in in-vehicle products, when a vehicle is in a situation with no network, extremely weak network conditions, or abnormal disconnection due to other reasons, if the vehicle (i.e., the "first vehicle" mentioned above, hereinafter the same) cannot receive information from the network for a certain period of time, it can detect a neighboring vehicle (i.e., the "second vehicle" mentioned above, hereinafter the same) and establish a connection. The vehicle initiates a help message to transmit a unique identifier, such as the Vehicle Identification Number (VIN). The VIN is a set of characters assigned to a vehicle by the manufacturer for identification. The neighboring vehicle transmits the vehicle's VIN to the network. The network adds the VIN identifier to the data packets sent to the vehicle and sends them to the neighboring vehicle. The neighboring vehicle initiates a detection mechanism, detecting data packets carrying the VIN information and sending them to the vehicle. In this way, the uniqueness of the VIN is used to encapsulate packets to receive information sent to the vehicle from the network, including broadcast information.
[0077] The embodiments of the present invention can be applied to terminal products that can receive network and cloud control commands, such as vehicle products under 5G networks, NB-IoT products, smart home appliances, and autonomous driving systems.
[0078] With the advent of 5G networks and the development of vehicle-to-everything (V2X) and smart home appliances, in-vehicle products and notebook computers will be widely used. In this interconnected world, communication devices will become more closely integrated into our lives. This necessitates both reduced communication latency (1ms under 5G networks) and enhanced security. The embodiments of this invention can be used in environments such as 5G low-latency networks and leverage the interconnectedness of everything to improve the security of communication products.
[0079] The following is through Figures 5 to 8 The system architecture operating in the optional embodiments of the invention will be described. It is necessary to note that... Figures 5 to 8 The module divisions and functions involved are not exactly the same as those in the previous embodiments. Figure 5 This is a structural block diagram of an in-vehicle communication system according to an embodiment of the present invention, such as... Figure 5 As shown, the vehicle communication system of this embodiment includes a local vehicle on-board module 100, a neighboring vehicle on-board module 200, and a network processing module 300. There can be multiple neighboring vehicle on-board modules 200 (only one is shown in the figure). The local vehicle on-board module 100 is located in the local vehicle, the neighboring vehicle on-board module 200 is located in the neighboring vehicle, and the network processing module 300 is located at the network end. Both the local vehicle on-board module 100 and the neighboring vehicle on-board module 200 can communicate with the network processing module 300 through normal network communication methods. The local vehicle on-board module 100 and the neighboring vehicle on-board module 200 can communicate with each other through short-range communication.
[0080] Figure 6 This is a structural block diagram of the layered structure of the vehicle-mounted module according to an embodiment of the present invention, as shown below. Figure 6 As shown, the vehicle-mounted module 100 may further include a network inspection module 110, a neighbor vehicle discovery module 120, a neighbor vehicle forwarding module 130, and a data parsing module 140.
[0081] The network module 110 is mainly used to check the network status in real time to determine whether the network can be accessed normally.
[0082] The neighbor vehicle detection module 120 is mainly used to detect neighbor vehicle on-board modules and establish short-range communication with them in the event of network anomalies.
[0083] The receiving neighbor vehicle forwarding module 130 is mainly used to receive data packets from the network processing module 300 forwarded by the on-board module of the neighbor vehicle.
[0084] The data parsing module 140 is mainly used to parse its own data information from the data packet.
[0085] Figure 7 This is a structural block diagram of the layered structure of the adjacent vehicle on-board module according to an embodiment of the present invention, such as... Figure 7 As shown, the neighbor vehicle on-board module 200 may further include a local vehicle connection receiving module 210, an uploading identification module 220, a data packet checking module 230, and a data packet forwarding module 240.
[0086] The vehicle connection module 210 is mainly used to receive help request messages from the vehicle's on-board module, respond with authorization messages to the vehicle's on-board module, and establish short-range communication with the vehicle's on-board module.
[0087] The uploading module 220 is mainly used to upload the vehicle's identification to the network processing module.
[0088] The packet inspection module 230 is mainly used to inspect the received packets and determine whether they are forwarded packets or its own packets.
[0089] The forwarding data packet module 240 is mainly used to forward data packets sent by the network processing module to the vehicle's on-board module.
[0090] Figure 8 This is a structural block diagram of the layered structure of the network processing module according to an embodiment of the present invention, such as... Figure 8 As shown, the network processing module 300 further includes an identification module 310 and a packet assembly and sending module 320.
[0091] The identification receiving module 310 is used to receive the identification of this vehicle uploaded by the on-board module of a neighboring vehicle, and bind the identification of this vehicle to the IP address of the on-board module of this vehicle.
[0092] The packet assembly and transmission module 320 is used to encapsulate data packets destined for the vehicle's on-board module and then send them to the on-board modules of neighboring vehicles. Based on the above system structure, this embodiment of the invention provides a secure communication method. Figure 9 This is a flowchart of a secure communication method according to an embodiment of the present invention, such as... Figure 9 As shown, the communication method provided in this embodiment specifically includes the following steps:
[0093] Step S901: When the vehicle's on-board module is powered on, it sends information such as the vehicle's unique identification number (VIN) to the network terminal.
[0094] Step S902: The vehicle's onboard module checks the vehicle speed. When traveling at high speed (e.g., speed greater than n km / h, where n is a settable constant), it checks the network status in real time and whether the network can be accessed normally.
[0095] Check S903: Determine if network access is normal and whether external network assistance is needed.
[0096] Step S904: Discover the neighboring vehicle and send a message requesting the neighboring vehicle's network operator name. If the neighboring vehicle is registered on a different network and accepts the request, this vehicle sends a help message containing information such as the vehicle identification number (VIN).
[0097] Step S905: The neighboring vehicle's onboard unit will receive the vehicle identification number (VIN) of this vehicle and send it to the network terminal.
[0098] Step S906: The network adds a vehicle identification number (VIN) to the data sent to this vehicle and sends it to neighboring vehicles.
[0099] Step S907: The neighboring vehicle detects and forwards the data packet.
[0100] Step S908: The vehicle receives the data packet and checks whether it is its own information packet.
[0101] The following describes the selection and assistance process for vehicles on different networks in the above embodiments, such as... Figure 10 As shown, the main steps include the following:
[0102] Step S1001: This vehicle connects to the neighboring vehicle via the proximity discovery protocol and sends a request broadcast message to the neighboring vehicle. After detecting the request message, the neighboring vehicle sends authorization information in the same packet format.
[0103] Step 1002: This vehicle sends a help request according to event 1.
[0104] Event 1 is: This vehicle sends the reason for its request for help (information such as no network service or data packets not reaching the network) and the latest network identifier (MCC, MNC, etc.) of this vehicle to the neighboring vehicle.
[0105] Step S1003, the neighboring vehicle triggers event 2 to respond to this vehicle.
[0106] Event 2 is as follows: The neighboring vehicle obtains the assistance reason based on this vehicle, compares its own network identifier, and responds to this vehicle. If the network identifier comparison result is the same network side, the assistance level is set to 2; if the network identifier comparison result is different network side, the assistance level is set to 1.
[0107] Step S1004: This vehicle triggers event 3 to select a neighboring vehicle for assistance.
[0108] Event 3: This vehicle receives a reply from a neighboring vehicle and checks the help level. If this vehicle's self-check shows it is not in the service area, it selects a neighboring vehicle on a different network with a help level of 1 and disconnects other neighboring vehicles.
[0109] This invention also provides an optional secure communication method, which is described below in conjunction with the appendix. Figure 11 A detailed explanation of the entire implementation plan is provided below:
[0110] Step S1101: When the vehicle's onboard unit powers on, it sends its unique identification number, such as the vehicle's chassis number, to the network. The network then binds the received chassis number to the IP address assigned to the onboard product. When the network receives a request carrying chassis number information from a neighboring vehicle, it can identify which vehicle's information needs to be forwarded through that neighboring vehicle.
[0111] Step S1102: The vehicle's onboard network status is checked in real time to see if it has been unable to receive network information for an extended period and whether it can access the network normally. After completing the routine checks, if the network registration timeout occurs again and the problem persists, proceed to step S1103 for judgment.
[0112] Judgment S11033: If the network check result is normal, then use the normal network communication method; otherwise, proceed to step S1103.
[0113] Step S1104: This vehicle detects a nearby neighboring vehicle. Once a connection is established, it can be established using C-V2X (Mobile Vehicle-to-Everything) technology, which follows the 3GPP standard. After establishing the connection, this vehicle sends a request for help message and waits for a response from the neighboring vehicle. Upon receiving a response from the neighboring vehicle, this vehicle immediately sends its own information, such as its vehicle identification number (VIN), to the neighboring vehicle.
[0114] Step S1105: The neighboring vehicle receives the help request and the vehicle identification number (VIN) from this vehicle, sends the help request and VIN to the network, and starts the detection process to distinguish whether it is its own information packet or a data packet that needs to be forwarded to the neighboring vehicle.
[0115] Step S1106: The network terminal receives the request packet sent by the neighboring vehicle and the vehicle identification number (VIN) information of its own vehicle. Using the VIN, it matches the IP address with the VIN binding information described in step S1101, and generates a data packet carrying the VIN information to be sent to the neighboring vehicle. The network terminal can then proceed according to... Figure 12 The data packet encapsulation format is executed.
[0116] Step S1106: The neighboring vehicle receives a packet from the network and checks whether it carries a marker bit and vehicle identification number (VIN) information. If it carries this information, it is a data packet that needs to be sent to the vehicle in need of assistance, and the neighboring vehicle forwards the data packet to the vehicle in need.
[0117] Step S1107: After receiving the information data packet forwarded from the neighboring vehicle, this vehicle parses out the data information sent to it by the network.
[0118] The following example illustrates the data encapsulation format of the data packets in this embodiment. Figure 12 This is a schematic diagram of the data packet encapsulation format according to an embodiment of the present invention, such as... Figure 12 As shown, when encapsulating IP packets at the network end, data packets that need to be forwarded from neighboring vehicles to this vehicle are re-encapsulated. Specifically, unused options in the IP packet header can be used to set a flag to identify that this packet is a data packet that needs to be forwarded. For example, the flag can be set to 8 bits out of 32 bits, with the combination 10101010 to indicate that the flag is true. The vehicle's chassis number also needs to be added to the beginning of the data segment to encapsulate the new packet. When a neighboring vehicle receives the new packet, it needs to check if the flag is true. If it is true, it considers the packet to be forwarded to this vehicle; if it is not true, it considers it its own data packet and does not need to be forwarded.
[0119] This invention can be applied to situations where network access is impossible. This invention features improved product performance and restored network access capabilities.
[0120] The embodiments of the present invention can enhance the security of in-vehicle products and smart home appliances, and receive server-side and cloud-based control information and important data in the event of an anomaly that prevents network access.
[0121] The embodiments of the present invention can also notify users of abnormalities in in-vehicle products in a timely manner and instruct them to investigate as soon as possible.
[0122] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those described herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0123] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, or improvements made within the principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A communication method for a vehicle-mounted device, characterized in that, include: The onboard equipment of the first vehicle establishes a communication connection with the onboard equipment of the second vehicle via short-range communication. The onboard equipment of the first vehicle sends a broadcast message requesting assistance to the onboard equipment of the second vehicle; The on-board equipment of the first vehicle receives an authorization message for providing assistance in response from the on-board equipment of the second vehicle; The on-board equipment of the first vehicle sends a request type message to the on-board equipment of the second vehicle, wherein the request type message carries the reason for the on-board equipment of the first vehicle seeking help and the network identification information of the on-board equipment of the first vehicle. The on-board equipment of the first vehicle receives a response message sent by the on-board equipment of the second vehicle, wherein the response message carries information on whether the on-board equipment of the second vehicle and the on-board equipment of the first vehicle belong to the same network or different networks. The on-board equipment of the first vehicle selects the on-board equipment of the second vehicle as a communication relay according to the response message, including: when the first vehicle is not in the service area, selecting the on-board equipment of the second vehicle that belongs to a different network than the on-board equipment of the first vehicle as a communication relay. The on-board equipment of the first vehicle sends the first data to the network terminal through the on-board equipment of the second vehicle; The on-board equipment of the first vehicle receives second data from the network forwarded by the on-board equipment of the second vehicle.
2. The method according to claim 1, characterized in that, Before the onboard equipment of the first vehicle establishes a communication connection with the onboard equipment of the second vehicle via short-range communication, it also includes, When the on-board equipment of the first vehicle is powered on, the identification information of the first vehicle is sent to the network terminal.
3. The method according to claim 1, characterized in that, Before the onboard equipment of the first vehicle establishes a communication connection with the onboard equipment of the second vehicle via short-range communication, it also includes, Check the network access status of the on-board equipment of the first vehicle.
4. The method according to claim 3, characterized in that, The onboard equipment of the first vehicle establishes a communication connection with the onboard equipment of the second vehicle via short-range communication, including: If the network access status of the on-board equipment of the first vehicle is abnormal, a communication connection is established with the on-board equipment of the second vehicle through short-range communication.
5. The method according to claim 1, characterized in that, The first vehicle's onboard equipment sends first data to the network via the second vehicle's onboard equipment, including: The on-board equipment of the first vehicle sends the first data to the on-board equipment of the second vehicle, wherein the first data includes the identification information of the first vehicle.
6. The method according to claim 1, characterized in that, The second data received by the on-board equipment of the first vehicle from the network, forwarded by the on-board equipment of the second vehicle, includes: The on-board equipment of the first vehicle receives the second data forwarded from the network by the on-board equipment of the second vehicle, and parses out the data information sent to it by the network based on the identification information of the first vehicle carried in the second data.
7. A communication method for a vehicle-mounted device, characterized in that, include: The on-board equipment of the second vehicle establishes a communication connection with the on-board equipment of the first vehicle through a short-range communication method. The on-board equipment of the second vehicle receives a broadcast message requesting assistance sent by the on-board equipment of the first vehicle; The onboard equipment of the second vehicle sends an authorization message to the onboard equipment of the first vehicle to provide assistance; The on-board equipment of the second vehicle receives a request type message sent by the on-board equipment of the first vehicle, wherein the request type message carries the reason for the on-board equipment of the first vehicle to seek help and the network identification information of the on-board equipment of the first vehicle. The on-board equipment of the second vehicle sends a response message to the on-board equipment of the first vehicle. The response message carries information on whether the on-board equipment of the second vehicle and the on-board equipment of the first vehicle belong to the same network or different networks. When the first vehicle is not in the service area, the on-board equipment of the first vehicle selects the on-board equipment of the second vehicle, which belongs to a different network than the on-board equipment of the first vehicle, as a communication relay. The on-board equipment of the second vehicle receives the first data sent by the on-board equipment of the first vehicle and sends the first data to the network end; The on-board equipment of the second vehicle receives second data from the network and sends the second data to the first vehicle.
8. The method according to claim 7, characterized in that, Before the on-board equipment of the second vehicle receives the first data sent by the on-board equipment of the first vehicle, it further includes: The on-board equipment of the second vehicle receives the identification information of the first vehicle sent by the on-board equipment of the first vehicle.
9. The method according to claim 8, characterized in that, The on-board equipment of the second vehicle receives the first data sent by the on-board equipment of the first vehicle and sends the first data to the network terminal, including: The on-board equipment of the second vehicle receives the first data sent by the on-board equipment of the first vehicle, and sends the identification information of the first vehicle and the first data to the network terminal.
10. The method according to claim 8, characterized in that, The on-board equipment of the second vehicle receives second data from the network and sends the second data to the on-board equipment of the first vehicle, including: The on-board equipment of the second vehicle receives the second data from the network. The on-board equipment of the second vehicle determines whether the second data is data that needs to be forwarded based on the flag field in the data packet of the second data; When the second data is data that needs to be forwarded, the second data is forwarded to the vehicle-mounted equipment of the first vehicle according to the identification information of the first vehicle carried in the second data.
11. A vehicle-mounted device, located in a first vehicle, characterized in that, include: Establishment module for establishing a communication connection with the onboard equipment of the second vehicle via short-range communication; The sending module is used to send first data to the network terminal through the on-board equipment of the second vehicle; A receiving module is used to receive second data from the network forwarded by the on-board equipment of the second vehicle; The vehicle-mounted equipment is also used for: After establishing a communication connection with the on-board equipment of the second vehicle via short-range communication, a broadcast message requesting assistance is sent to the on-board equipment of the second vehicle; an authorization message for providing assistance is received from the on-board equipment of the second vehicle; a request type message is sent to the on-board equipment of the second vehicle, wherein the request type message carries the reason for the first vehicle's on-board equipment seeking assistance and the network identification information of the first vehicle's on-board equipment; a response message is received from the on-board equipment of the second vehicle, wherein the response message carries information on whether the on-board equipment of the second vehicle and the on-board equipment of the first vehicle belong to the same network or different networks; and the on-board equipment of the second vehicle is selected as a communication relay according to the response message, including: if the first vehicle is not in the service area, selecting the on-board equipment of the second vehicle belonging to a different network than the on-board equipment of the first vehicle as a communication relay.
12. The vehicle-mounted device according to claim 11, characterized in that, The sending module is further configured to send the identification information of the first vehicle to the network terminal when the on-board equipment of the first vehicle is powered on.
13. The vehicle-mounted device according to claim 11, characterized in that, Also includes: The inspection module is used to check the network access status of the on-board equipment of the first vehicle.
14. A vehicle-mounted device located in a second vehicle, characterized in that, include: The communication module is used to establish a communication connection with the on-board equipment of the first vehicle via short-range communication. The first transceiver module is used to receive the first data sent by the vehicle-mounted equipment of the first vehicle and send the first data to the network end; The second transceiver module is used to receive second data from the network end and send the second data to the vehicle-mounted equipment of the first vehicle; The vehicle-mounted equipment is also used for: Before receiving the first data sent by the on-board unit of the first vehicle, the system receives a broadcast message requesting assistance from the on-board unit of the first vehicle; sends an authorization message to the on-board unit of the first vehicle to provide assistance; receives a request type message from the on-board unit of the first vehicle, wherein the request type message carries the reason for the on-board unit of the first vehicle to seek assistance and the network identification information of the on-board unit of the first vehicle; and sends a response message to the on-board unit of the first vehicle, wherein the response message carries information on whether the on-board unit of the second vehicle and the on-board unit of the first vehicle belong to the same network or different networks, wherein, when the first vehicle is out of service area, the on-board unit of the first vehicle selects the on-board unit of the second vehicle, which belongs to a different network than the on-board unit of the first vehicle, as a communication relay.
15. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein the computer program is configured to perform the method described in any one of claims 1 to 10 when executed.
16. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to run the computer program to perform the method as described in any one of claims 1 to 10.
Citation Information
Patent Citations
Data transmission method, terminal, server, device and storage medium
CN110944307A