A multi-channel vehicle communication system and control method, device and medium
By designing a multi-channel vehicle communication system and a dual backup communication link in the vehicle T-BOX system, the communication failure problem caused by hardware failure is solved, and the stable operation and fault recovery of vehicle functions are achieved.
Patent Information
- Application Number
- CN202510084163.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-20
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2045-01-20
AI Technical Summary
When existing vehicle T-BOX systems fail hardware, communication failure may lead to vehicle function failure and lack fault awareness and recovery mechanisms.
A multi-channel vehicle communication system is designed, including a GPIO interface group, a serial communication interface group and a SPI interface group, and the redundancy is increased through level conversion chips to realize a dual backup communication link. The system dynamically switches the communication interface to recover the fault through the heartbeat detection signal and response packet.
When hardware failure occurs, redundant interface switching is used to ensure the normal operation of the basic functions of the vehicle communication system and realize the early perception and recovery of faults.
Smart Images

Figure CN119556999B_ABST
Abstract
Description
Background Art
[0002] The current vehicle T-BOX (Telematics BOX, in-vehicle communication terminal) products include two major parts: 4G / 5G communication modules and MCU (Microcontroller Unit. In automobiles, MCU is used as the core component of ECU (Electronic Control Unit) to perform the calculation and control functions of ECU. MCU is the core processing unit of ECU and has more advanced calculation and control functions. It is responsible for parsing and executing ECU software programs and processing the logical relationship between sensor input and actuator output. MCU is also responsible for managing hardware resources such as system memory, clock, communication interface, and coordinating the work of various subsystems).
[0003] In traditional designs, the functions of the signal corresponding pins between the communication module and the MCU are fixed, and they are fixed after the program and hardware are initialized. However, the hardware failure of the vehicle ECU is random. For example, during transportation, installation and operation, various unexpected situations may occur, which may cause the failure of some hardware functions. At this time, if communication is carried out according to the original communication logic, various communication failures may occur, which will affect the normal use of the vehicle.
[0004] Therefore, how to ensure the normal use of the basic functions of the vehicle when some hardware fails and allow the car manufacturer to perceive the failure in advance is a technical problem that needs to be solved urgently. Summary of the invention
[0005] In view of the above technical problems, the technical solution adopted by the present invention is:
[0006] According to one aspect of the present application, a multi-channel vehicle communication system is provided, which is configured in a T-BOX device of a vehicle, the T-BOX device including a communication module of the vehicle and a micro-control unit of the vehicle;
[0007] The multi-channel vehicle communication system includes:
[0008] GPIO interface group, used for transmitting the control wake-up signal sent by the communication module to the micro-control unit, and the communication wake-up signal sent by the micro-control unit to the communication module; the control wake-up signal is used to wake up the micro-control unit in a dormant state; the communication wake-up signal is used to wake up the communication module in a dormant state;
[0009] A serial communication interface group, used for transmitting instruction data that meets preset data volume requirements and preset data type requirements between the communication module and the micro-control unit;
[0010] The SPI interface group is used to transmit SPI data between the communication module and the micro-control unit; the data volume of the SPI data is greater than the data volume of the instruction data.
[0011] In an exemplary embodiment of the present application, the GPIO interface group includes:
[0012] A first GPIO interface is communicatively connected to the communication module and is used to send a control wake-up signal to the micro-control unit and receive a communication wake-up signal sent by the micro-control unit;
[0013] The second GPIO interface is connected to the micro-control unit for sending a communication wake-up signal to the communication module and receiving a control wake-up signal sent by the communication module;
[0014] The first GPIO interface and the second GPIO interface are connected through a first level conversion chip.
[0015] In an exemplary embodiment of the present application, the serial communication interface group includes:
[0016] A first communication interface, which is communicatively connected to the communication module and is used to send instruction data to the micro-control unit and receive instruction data sent by the micro-control unit;
[0017] The second communication interface is connected to the micro-control unit for sending command data to the communication module and receiving command data sent by the communication module.
[0018] In an exemplary embodiment of the present application, the first communication interface and the second communication interface are connected via a first level conversion chip.
[0019] In an exemplary embodiment of the present application, the SPI interface group includes a first SPI interface and a second SPI interface connected to each other via a second level conversion chip;
[0020] in:
[0021] A first SPI interface is communicatively connected to the communication module and is used to send SPI data to the micro-control unit and receive SPI data sent by the micro-control unit;
[0022] The second SPI interface is connected to the micro-control unit for sending SPI data to the communication module and receiving SPI data sent by the communication module.
[0023] In an exemplary embodiment of the present application, the first SPI interface and the second SPI interface are connected via an MRdy signal line, an SRdy signal line, an SCLK signal line, a CS signal line, a MISO signal line, and a MOSI signal line;
[0024] in:
[0025] MRdy signal line, used to transmit the MRdy signal sent by the communication module to the micro-control unit; the MRdy signal is a signal to notify the micro-control unit to receive SPI data;
[0026] SRdy signal line, used to transmit the SRdy signal sent by the micro-control unit to the communication module; the SRdy signal is a signal to notify the communication module to prepare to send SPI data;
[0027] SCLK signal line, used to transmit the clock signal sent by the communication module to the micro control unit;
[0028] CS signal line, used to transmit the chip select signal sent by the communication module to the micro control unit; the chip select signal is an enable signal for enabling the SPI function of the micro control unit;
[0029] MISO signal line, used to transmit SPI data sent by the micro-control unit to the communication module;
[0030] The MOSI signal line is used to transmit SPI data sent by the communication module to the micro-control unit.
[0031] In an exemplary embodiment of the present application, the MRdy signal line is also used to transmit a control wake-up signal sent by the communication module to the micro-control unit;
[0032] The SRdy signal line is also used to transmit the communication wake-up signal sent by the micro-control unit to the communication module.
[0033] According to one aspect of the present application, a control method for a multi-channel vehicle communication system is provided, which is applied to the multi-channel vehicle communication system described above, and includes:
[0034] The communication module sends a heartbeat detection signal to the micro-control unit through the serial communication interface group and the SPI interface group at the same time every preset detection period;
[0035] After receiving the heartbeat detection signal, the microcontroller sends a heartbeat response packet to the communication module;
[0036] In the receiving period, if any interface of the serial communication interface group and the SPI interface group receives a heartbeat response packet, the receiving state of the heartbeat response packet of the interface is determined as a normal state; if any interface of the serial communication interface group and the SPI interface group does not receive the heartbeat response packet, the receiving state of the heartbeat response packet of the interface is determined as an abnormal state; wherein the starting time of the receiving period is the time when the communication module sends the heartbeat response packet, and the length of the receiving period is a preset time length;
[0037] If the receiving state of the heartbeat response packet of any interface of the serial communication interface group is abnormal, the communication function of the serial communication interface group is switched to the SPI interface group;
[0038] If the receiving state of the heartbeat response packet of any interface of the SPI interface group is abnormal, the communication function of the SPI interface group is switched to the serial communication interface group.
[0039] According to one aspect of the present application, a non-transitory computer-readable storage medium is provided, in which at least one instruction or at least one program is stored. The at least one instruction or the at least one program is loaded and executed by a processor to implement the aforementioned control method of the multi-channel vehicle communication system.
[0040] According to one aspect of the present application, an electronic device is provided, including a processor and the aforementioned non-transitory computer-readable storage medium.
[0041] The present invention has at least the following beneficial effects:
[0042] The multi-channel vehicle communication system of the present invention comprises a GPIO interface group, a serial communication interface group, and an SPI interface group; the GPIO interface group is used to transmit a control wake-up signal sent by a communication module to a micro-control unit, and a communication wake-up signal sent by the micro-control unit to the communication module; the control wake-up signal is used to wake up the micro-control unit in a dormant state; the communication wake-up signal is used to wake up the communication module in a dormant state; the serial communication interface group is used to transmit instruction data that meets a preset data volume requirement and a preset data type requirement between the communication module and the micro-control unit; the SPI interface group is used to transmit SPI data between the communication module and the micro-control unit; the data volume of the SPI data is greater than the data volume of the instruction data. A serial communication link is added to the hardware, and the communication mode of the 5-line SPI signal is changed to the communication mode of the 6-line SPI signal. In the case that only 3 signal lines are added to the existing T-BOX device, the coexistence of the 6-line SPI signal is realized, and the hardware redundancy of the existing solution is improved. The MRdy signal and the SRdy signal in the 6-line SPI signal can be used as redundant backups of the RI signal and the DTR signal, and double backup is achieved on the communication link, so that when a communication failure occurs in one of the communication links, it is switched to the backup link to restore the communication failure. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0044] Figure 1 It is the module communication principle diagram in the existing T-BOX device;
[0045] Figure 2A communication principle diagram of a multi-channel vehicle communication system provided by an embodiment of the present invention;
[0046] Figure 3 A communication principle diagram of a multi-channel vehicle communication system provided by an embodiment of the present invention when a micro-control unit sends a communication wake-up signal to a communication module;
[0047] Figure 4 A communication principle diagram of a multi-channel vehicle communication system provided by an embodiment of the present invention when a communication module sends a control wake-up signal to a micro-control unit;
[0048] Figure 5 A communication transmission timing diagram of SPI data of a multi-channel vehicle communication system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0049] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0050] As an important device of the Internet of Vehicles, T-BOX plays the role of a data channel, such as uploading the collected vehicle CAN data to the cloud server or TSP platform (Telematics Service Provider, a data and service-based Internet of Vehicles platform system established by various automobile manufacturers), receiving remote vehicle control commands from mobile phones and sending them to the vehicle-related ECU, receiving the firmware package for the vehicle ECU upgrade and initiating an upgrade request, etc. To achieve this function, T-BOX contains two main parts: a 4G or 5G communication module for remote wireless communication and establishing a communication connection with the TSP platform; an MCU chip for communicating with the CAN network of the vehicle and controlling the T-BOX to enter sleep or wake up states. All data flows pass through these two functional modules. Therefore, the reliability of the communication between the two modules is very important. If there is a problem with the communication link, remote control, sleep wake-up, OTA upgrade (Over The Air, air download technology, online vehicle equipment software upgrade) and other operations of the vehicle cannot be achieved.
[0051] When designing T-BOX in the current industry, the communication module and MCU are generally connected through two GPIO signals plus a 5-wire SPI interface, such as Figure 1 As shown. Among them, Figure 1The DTR signal of the GPIO signal in the MCU is used to wake up the communication module when the MCU is in sleep mode. For example, when the user opens the car door with the key, the MCU wakes up the 4G / 5G communication module through the DTR signal; the RI signal is used for the communication module to wake up the MCU in sleep mode, such as remotely waking up the vehicle when receiving a text message or a call.
[0052] In the 5-wire SPI interface, the 4G / 5G communication module is the master module and the MCU module is the slave module. Figure 1 SCLK is the clock signal, which is used for clock synchronization between the master and slave modules; CS is the selection signal, which is used to select the SPI slave device; MOSI is the data signal, which is sent by the master module and received by the slave module; MISO is the data signal, which is sent by the slave module and received by the master module. The master and slave modules can send and receive data at the same time; SYNC is the synchronization signal. When the data between the master and slave modules is not synchronized, the master module will send a synchronization signal to the slave module to resynchronize the signal. The communication module transmits and sends data by periodically calling the SPI interface, such as a cycle of 10 milliseconds.
[0053] After the signals of these GPIO interfaces and SPI interfaces are initialized, the communication functions are fixed and no longer adjusted dynamically. For example, if the DTR signal pin is interrupted due to hardware failure or other reasons, the MCU will not be able to wake up the communication module through the signal, and the owner will not be able to use the car navigation and other functions when driving; or the communication module is always in the awake state when the whole vehicle is dormant and cannot sleep. If it takes too long, the battery power of the vehicle will be exhausted, causing the vehicle to be unable to start; if the RI signal line fails, the communication module cannot wake up the MCU, and the owner's remote control instructions will not take effect; if the level conversion chip of the SPI interface fails, the vehicle CAN data will not be uploaded, and remote upgrades and other operations will not be possible. These problems are caused by the fact that the communication link between the communication module and the MCU is too single, there is no redundant backup in the hardware, and the software cannot be dynamically adjusted. Therefore, once some key components fail, it will affect the normal use of the vehicle.
[0054] Therefore, in view of the shortcomings of the prior art solutions in that there is no backup in communication links and important signals, a multi-channel vehicle communication system of the present application is proposed.
[0055] like Figure 2 As shown, a multi-channel vehicle communication system described in the present application is configured in a T-BOX device of a vehicle, and the T-BOX device includes a vehicle communication module (i.e. Figure 2 4G / 5G communication module in the vehicle) and the vehicle's microcontroller unit (i.e. Figure 2 MCU chip in the device).
[0056] Among them, the multi-channel vehicle communication system includes a GPIO interface group (i.e. Figure 2 GPIO-M and GPIO-S in the serial communication interface group (i.e. Figure 2 Serial port M and serial port S) and SPI interface group (ie Figure 2 6-wire SPI master and 6-wire SPI slave in SPI.
[0057] The GPIO interface group is used to transmit the control wake-up signal sent by the communication module to the micro-control unit (i.e. Figure 2 RI signal in), and the communication wake-up signal sent by the micro-control unit to the communication module (i.e. Figure 2 The DTR signal in the control wake-up signal is used to wake up the micro-control unit in the dormant state; the communication wake-up signal is used to wake up the communication module in the dormant state.
[0058] The RI signal is a signal sent by the communication module to the micro-control unit. It is used to wake up the micro-control unit when receiving text messages or phone calls, and then wake up the CAN network of the entire vehicle. If the signal fails, the vehicle cannot be woken up and the remote control command fails.
[0059] The DTR signal is a signal sent by the micro-control unit to the communication module. It is used to wake up the communication module and provide wireless communication services for the entire vehicle. When the signal fails, the vehicle navigation, in-vehicle entertainment functions, etc. cannot be used.
[0060] Further, the GPIO interface group includes a first level conversion chip (ie Figure 2 The first GPIO interface (i.e. Figure 2 GPIO-M in the GPIO interface and the second GPIO interface (i.e. Figure 2 GPIO-S in the communication module); the first GPIO interface is communicatively connected to the communication module, and is used to send a control wake-up signal to the micro-control unit, and receive a communication wake-up signal sent by the micro-control unit; the second GPIO interface is communicatively connected to the micro-control unit, and is used to send a communication wake-up signal to the communication module, and receive a control wake-up signal sent by the communication module.
[0061] The serial communication interface group is used to transmit instruction data (i.e. Figure 2 The TX signal and RX signal in the module are important but small data, providing full-duplex signal communication. The serial communication interface group serves as a supplement to the SPI interface group to avoid communication failure due to failure of the SPI controller inside the module or failure of the level conversion chip.
[0062] Further, the serial communication interface group includes first communication interfaces (i.e. Figure 2 The serial port M in the second communication interface (i.e. Figure 2The first communication interface is connected to the communication module for communication, and is used to send command data to the micro-control unit, and receive command data sent by the micro-control unit; the second communication interface is connected to the micro-control unit for communication, and is used to send command data to the communication module, and receive command data sent by the communication module.
[0063] The SPI interface group is used to transmit SPI data between the communication module and the microcontroller unit. The amount of SPI data is greater than that of instruction data. SPI data is periodic signal data with large data volume and frequent transmission, such as CAN periodic signal or ECU firmware upgrade data.
[0064] Further, the SPI interface group includes a second level conversion chip (ie Figure 2 The first SPI interface (i.e. Figure 2 6-wire SPI master) and the second SPI interface (i.e. Figure 2 6-wire SPI slave in the device); a first SPI interface is communicatively connected to the communication module, and is used to send SPI data to the micro-control unit, and receive SPI data sent by the micro-control unit; a second SPI interface is communicatively connected to the micro-control unit, and is used to send SPI data to the communication module, and receive SPI data sent by the communication module.
[0065] Among them, the first SPI interface and the second SPI interface of the SPI interface group are connected through the MRdy signal line, the SRdy signal line, the SCLK signal line, the CS signal line, the MISO signal line, and the MOSI signal line.
[0066] The MRdy signal line is used to transmit the MRdy signal sent by the communication module to the micro-control unit. The MRdy signal is a signal to notify the micro-control unit to prepare to receive SPI data.
[0067] The MRdy signal is a signal sent by the communication module to the micro-control unit. When the communication module has SPI data to send, it pulls down the MRdy signal to notify the micro-control unit to prepare the DMA memory (Direct Memory Access) to receive SPI data. When the micro-control unit is ready, it pulls down the SRdy signal to notify the communication module to allow sending, and then the communication module sends and receives data simultaneously through the four signal lines of SCLK, CS, MISO, and MOSI.
[0068] The SRdy signal line is used to transmit the SRdy signal sent by the micro-control unit to the communication module. The SRdy signal is a preparation signal for notifying the communication module to send SPI data.
[0069] When the micro-control unit has SPI data to send, it will also actively pull down the SRdy signal to notify the communication module to initiate an SPI request to receive the data from the micro-control unit.
[0070] The SCLK signal line is used to transmit the clock signal sent by the communication module to the micro control unit.
[0071] The SCLK signal is a clock signal, which is output from the communication module to the micro-control unit to provide clock synchronization function when transmitting data.
[0072] The CS signal line is used to transmit the chip select signal sent by the communication module to the micro control unit. The chip select signal is an enable signal for enabling the SPI function of the micro control unit.
[0073] The MISO signal line is used to transmit SPI data sent by the micro-control unit to the communication module.
[0074] The MOSI signal line is used to transmit SPI data sent by the communication module to the micro control unit.
[0075] The GPIO interface group and the serial communication interface group share a level conversion chip (i.e., the first level conversion chip), and the SPI interface group uses a separate level conversion chip (i.e., the second level conversion chip), so that when a hardware failure occurs in one level conversion chip, the channel provided by the other level conversion chip can still ensure the basic communication function of the system.
[0076] In addition, the MRdy signal line is also used to transmit the control wake-up signal sent by the communication module to the micro-control unit, and the SRdy signal line is also used to transmit the communication wake-up signal sent by the micro-control unit to the communication module. The MRdy signal line and the SRdy signal line are used as backups for the RI signal and the DTR signal respectively. The software periodically detects the communication link of the serial communication interface group and the heartbeat of the SPI channel. When one of the channels is found to be blocked, it dynamically switches to another channel and reduces the amount of CAN data transmission when necessary. When waking up from sleep, the status of the RI signal and the DTR signal is recorded. When the corresponding hardware fails, the software switches the relevant functions to the MRdy signal and the SRdy signal to achieve communication failure recovery.
[0077] The present invention adds a serial communication link (TX signal and RX signal) in hardware, and changes the communication mode of the 5-wire SPI signal to the communication mode of the 6-wire SPI signal. In the case that only 3 signal lines are added to the existing T-BOX device, the 6-wire SPI signal coexists and is connected through two level conversion chips, thereby improving the hardware redundancy of the existing solution. In addition, the MRdy signal and the SRdy signal in the 6-wire SPI signal can be used as redundant backups of the RI signal and the DTR signal, and dual backup is achieved in the communication link. In the software, the hardware function is monitored in real time, and the communication link is dynamically adjusted, so that the communication failure can be recovered without the user's perception.
[0078] In addition, the present application also provides a control method for a multi-channel vehicle communication system, which is applied to the above-mentioned multi-channel vehicle communication system, and the method includes:
[0079] The communication module sends a heartbeat detection signal to the micro-control unit through the serial communication interface group and the SPI interface group at the same time every preset detection period;
[0080] After receiving the heartbeat detection signal, the microcontroller sends a heartbeat response packet to the communication module;
[0081] In the receiving period, if any interface of the serial communication interface group and the SPI interface group receives a heartbeat response packet, the receiving state of the heartbeat response packet of the interface is determined as a normal state; if any interface of the serial communication interface group and the SPI interface group does not receive the heartbeat response packet, the receiving state of the heartbeat response packet of the interface is determined as an abnormal state; wherein the starting time of the receiving period is the time when the communication module sends the heartbeat response packet, and the length of the receiving period is a preset time length;
[0082] If the receiving state of the heartbeat response packet of any interface of the serial communication interface group is abnormal, the communication function of the serial communication interface group is switched to the SPI interface group;
[0083] If the receiving state of the heartbeat response packet of any interface of the SPI interface group is abnormal, the communication function of the SPI interface group is switched to the serial communication interface group.
[0084] like Figure 3 As shown in the figure, when the micro-control unit wakes up the communication module, the micro-control unit pulls down the DTR signal and the SRdy signal at the same time, and prepares the wake-up command on the SPI slave interface, waiting for the communication module to read data through the SPI signal. After the communication module is awakened, it will detect the trigger status of the pins corresponding to the DTR and SRdy signals. If both are triggered, it means that the two signal links are normal. Otherwise, there is a problem with one of the links, which is marked as a failure state (i.e., an abnormal state), and saves the relevant detection records, and then reports the fault information through the TSP platform.
[0085] like Figure 4 As shown in the figure, when the communication module wakes up the micro-control unit, the communication module pulls down the RI signal and the MRdy signal at the same time, and prepares the wake-up command on the SPI master interface. After the micro-control unit is awakened, it will detect the trigger status of the pins corresponding to the RI signal and the MRdy signal. If both are triggered, it means that the wake-up link from the communication module to the micro-control unit is normal. Otherwise, the untriggered link is marked as a failed state, the relevant detection records are saved, and the fault information is reported through TSP.
[0086] For the basic communication functions of the multi-channel vehicle communication system of the present application, when the data volume is relatively small (e.g., less than 255 bytes), such as control commands, simple query commands, etc., it is transmitted through the serial communication interface group. The transmission channel of the SPI interface group is used for large data transmission of the vehicle, such as CAN signal reporting, OTA upgrade, etc. During SPI data transmission, the MRdy signal is used to notify the micro-control unit to prepare to receive SPI data. After the micro-control unit is ready, the SRdy signal is pulled down to notify the communication module, and the communication module initiates SPI transmission. The entire timing diagram is shown in FIG. Figure 5 As shown. In traditional 4-wire or 5-wire SPI signals, the communication module needs to poll every 10 milliseconds or so, and continuous polling also brings about the problem of high CPU occupancy. However, through the 6-wire SPI signal described in this application, the preparation of the MRdy signal and the SRdy signal can be completed in less than 1 millisecond, the response is timely, and the CPU utilization will not be occupied when there is no data transmission. When the MRdy signal or the SRdy signal is marked as an invalid state, the SPI interface group can return to the 4-wire SPI transmission mode.
[0087] The software system of the communication module sends a heartbeat detection signal to the micro-control unit through the serial communication interface group and the SPI interface group every 30 seconds. The micro-control unit returns the heartbeat response packet through the original route. Each interface is marked as normal after receiving the response packet, otherwise the mark is invalid. When one communication link is marked as invalid, the communication function is temporarily switched to another one. If the communication of the SPI signal is marked as abnormal, the communication with the micro-control unit is switched to the serial communication interface group, and some CAN data reporting functions with large data volume are discarded to ensure the minimum communication requirements of the system, and at the same time report fault information through the TSP platform.
[0088] The present invention proposes a multi-channel vehicle communication system with fault detection, which mainly increases redundancy in hardware and increases the ability of fault monitoring and dynamic function switching in software, and improves the shortcomings of existing solutions through these two aspects. A heterogeneous serial communication interface group is added in hardware to reduce the probability that all interfaces cannot be used due to hardware failure, and a GPIO pin is added to the SPI interface group to speed up the communication rate, and can also serve as a hardware backup for DTR signals and RI signals. Each group of communication interfaces is connected to the communication module and the micro-control unit through a separate level conversion chip; the hardware status monitoring function is added in software, and the pin function and communication mode are dynamically switched when a hardware fault is detected, so as to ensure that the T-BOX can complete the basic functions to the greatest extent.
[0089] An embodiment of the present invention further provides a computer program product, which includes program code. When the program product is run on an electronic device, the program code is used to enable the electronic device to execute the steps of the method according to various exemplary embodiments of the present invention described above in this specification.
[0090] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0091] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by combining software with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0092] In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
[0093] It will be appreciated by those skilled in the art that various aspects of the present invention may be implemented as a system, method or program product. Therefore, various aspects of the present invention may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as a "circuit", "module" or "system".
[0094] The electronic device according to this embodiment of the present invention is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0095] The electronic device is presented in the form of a general-purpose computing device. The components of the electronic device may include, but are not limited to: the at least one processor mentioned above, the at least one storage device mentioned above, and a bus connecting different system components (including storage devices and processors).
[0096] The storage stores program codes, which can be executed by the processor, so that the processor executes the steps according to various exemplary embodiments of the present invention described in the above “Exemplary Method” section of this specification.
[0097] The memory may include readable media in the form of volatile memory, such as random access memory (RAM) and / or cache memory, and may further include read only memory (ROM).
[0098] The storage may also include a program / utility having a set (at least one) of program modules, such program modules including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0099] The bus may represent one or more of several types of bus structures including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures.
[0100] The electronic device may also communicate with one or more external devices (e.g., keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable a user to interact with the electronic device, and / or any device that enables the electronic device to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface. Furthermore, the electronic device may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter.
[0101] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible implementations, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of the present specification.
[0102] The program product may be any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0103] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0104] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0105] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0106] In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to an exemplary embodiment of the present invention, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.
[0107] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0108] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A multi-channel vehicle communication system, characterized in that: is configured in a T-BOX device of a vehicle, the T-BOX device comprising a communication module of the vehicle and a micro-control unit of the vehicle; The multi-channel vehicle communication system comprises: A GPIO interface group, used for transmitting a control wake-up signal sent by the communication module to the micro-control unit, and a communication wake-up signal sent by the micro-control unit to the communication module; the control wake-up signal is used to wake up the micro-control unit in a dormant state; the communication wake-up signal is used to wake up the communication module in a dormant state; the GPIO interface group includes a first GPIO interface and a second GPIO interface connected to each other through a first level conversion chip; A serial communication interface group, used for transmitting instruction data that meets preset data volume requirements and preset data type requirements between the communication module and the micro-control unit; An SPI interface group, used for transmitting SPI data between the communication module and the micro-control unit; the data volume of the SPI data is greater than the data volume of the instruction data; the SPI interface group includes a first SPI interface and a second SPI interface connected to each other through a second level conversion chip; Wherein, the control method of the multi-channel vehicle communication system includes: The communication module simultaneously sends a heartbeat detection signal to the micro-control unit through the serial communication interface group and the SPI interface group at every preset detection period; After receiving the heartbeat detection signal, the micro-control unit sends a heartbeat response packet to the communication module; During a receiving period, if any interface of the serial communication interface group and the SPI interface group receives the heartbeat response packet, the receiving state of the heartbeat response packet of the interface is determined to be a normal state; if any interface of the serial communication interface group and the SPI interface group does not receive the heartbeat response packet, the receiving state of the heartbeat response packet of the interface is determined to be an abnormal state; wherein the start time of the receiving period is the time when the communication module sends the heartbeat response packet, and the length of the receiving period is a preset time length; If the receiving state of the heartbeat response packet of any interface of the serial communication interface group is an abnormal state, the communication function of the serial communication interface group is switched to the SPI interface group; If the receiving state of the heartbeat response packet of any interface of the SPI interface group is an abnormal state, the communication function of the SPI interface group is switched to the serial communication interface group.
2. The multi-channel vehicle communication system according to claim 1, characterized in that: The first GPIO interface is communicatively connected to the communication module, and is used to send the control wake-up signal to the micro-control unit, and receive the communication wake-up signal sent by the micro-control unit; The second GPIO interface is communicatively connected to the micro-control unit, and is used to send the communication wake-up signal to the communication module, and receive the control wake-up signal sent by the communication module.
3. The multi-channel vehicle communication system according to claim 2, characterized in that: The serial communication interface group includes: A first communication interface, communicatively connected to the communication module, and used for sending instruction data to the micro-control unit and receiving instruction data sent by the micro-control unit; The second communication interface is communicatively connected to the micro-control unit and is used to send instruction data to the communication module and receive instruction data sent by the communication module.
4. The multi-channel vehicle communication system according to claim 3, characterized in that: The first communication interface and the second communication interface are connected via the first level conversion chip.
5. The multi-channel vehicle communication system according to claim 4, characterized in that: The first SPI interface is communicatively connected to the communication module, and is used to send SPI data to the micro-control unit, and receive SPI data sent by the micro-control unit; The second SPI interface is communicatively connected to the micro-control unit and is used to send SPI data to the communication module and receive SPI data sent by the communication module.
6. The multi-channel vehicle communication system according to claim 5, characterized in that: The first SPI interface and the second SPI interface are connected via an MRdy signal line, an SRdy signal line, an SCLK signal line, a CS signal line, a MISO signal line, and a MOSI signal line; in: An MRdy signal line, used for transmitting the MRdy signal sent by the communication module to the micro-control unit; the MRdy signal is a preparation signal for notifying the micro-control unit to receive SPI data; An SRdy signal line, used for transmitting an SRdy signal sent by the micro-control unit to the communication module; the SRdy signal is a preparation signal for notifying the communication module to send SPI data; An SCLK signal line, used for transmitting a clock signal sent by the communication module to the micro-control unit; The CS signal line is used to transmit a chip select signal sent by the communication module to the micro control unit; the chip select signal is an enable signal for enabling the SPI function of the micro control unit; A MISO signal line, used for transmitting SPI data sent by the micro-control unit to the communication module; The MOSI signal line is used to transmit the SPI data sent by the communication module to the micro control unit.
7. The multi-channel vehicle communication system according to claim 6, characterized in that: The MRdy signal line is also used to transmit the control wake-up signal sent by the communication module to the micro control unit; The SRdy signal line is also used to transmit the communication wake-up signal sent by the micro-control unit to the communication module.
8. A non-transitory computer-readable storage medium, wherein at least one instruction or at least one program is stored in the storage medium, and the at least one instruction or the at least one program is loaded and executed by a processor to implement the control method of the multi-channel vehicle communication system as described in any one of claims 1-7.
9. An electronic device, characterized in that: The invention comprises a processor and the non-transitory computer-readable storage medium as claimed in claim 8.
Citation Information
Patent Citations
Wake-up system and wake-up method of vehicle controller
CN117518909A
Domain controller standby control method and device, storage medium and vehicle
CN118759925A