A vehicle terminal service communication establishment method, a vehicle wireless terminal and a vehicle
By establishing a communication request and response link between the network access device and the microcontroller unit, the communication interruption problem during microcontroller unit restart is solved, enabling rapid restoration of communication connection and ensuring the stability of the communication link.
Patent Information
- Application Number
- CN202310524929.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-10
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2043-05-10
AI Technical Summary
When the microcontroller restarts, communication between the network access device and the microcontroller is interrupted, making communication unrecoverable. This is especially true when the MCU malfunctions or experiences electromagnetic interference, as existing technologies cannot effectively restore the communication connection.
By establishing a communication request and response link between the network access device and the microcontroller unit, and using the communication request and response link to re-establish the connection after communication interruption, including through the SPI communication circuit of the communication request port and the response port, the network access device and the microcontroller unit can be assisted in restoring communication.
After the microcontroller unit restarts, the network access device and the microcontroller unit can quickly resume communication, overcoming the communication interruption problem caused by MCU failure and ensuring the stability of the communication link.
Smart Images

Figure CN116506466B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of microcontroller unit (MCU) control technology, and in particular to a method for establishing service communication for an in-vehicle terminal, an in-vehicle wireless terminal, and a vehicle. Background Technology
[0002] As the main control chip of T-BOX (telematics box, vehicle wireless terminal), the MCU (Microcontroller Unit) has the following main functions: power supply control of module circuits, configuration of module circuits (power on / off control of module circuits and selection of module circuit operating modes, etc.), communication with module circuits, and detection of input signals.
[0003] When the MCU is subjected to severe electromagnetic interference or the program crashes uncontrollably, the watchdog circuit will forcibly reset and restart the MCU. At this time, the entire T-BOX will be forced to restart. As the main communication component in the T-BOX, the NAD (Network Access Device) module will also be interrupted during the MCU reset and restart process. In addition, if the NAD is communicating with the MCU as a communication master and the MCU is communicating as a communication slave, and the MCU malfunctions, causing the communication between the two to be interrupted, even if the MCU resets and restarts and the NAD starts up, communication between the two will still be impossible, which may cause significant losses. Summary of the Invention
[0004] In view of this, the purpose of this application is to propose a method for establishing service communication for an in-vehicle terminal, an in-vehicle wireless terminal, and a vehicle, which can ensure that communication between the network access end and the microcontroller can be quickly restored after the microcontroller restarts.
[0005] To achieve the above objectives, this application provides a method for establishing service communication in a vehicle-mounted terminal, applied to a network access device, comprising:
[0006] Receive feedback signals from the microcontroller unit;
[0007] In response to the interruption of the feedback signal, a fault in the microcontroller unit is confirmed, and a first communication request is sent to the microcontroller unit.
[0008] Based on the received response information, a new communication connection is established with the microcontroller unit;
[0009] The response information is sent by the restarted microcontroller unit after receiving the first communication request.
[0010] This application also provides a method for establishing service communication in a vehicle terminal, applied to a microcontroller unit, including:
[0011] Receive the first communication request signal sent by the network access device and send a response message to the network access device;
[0012] Based on the received communication signals, a feedback signal is sent to the network access device;
[0013] The communication signal is sent by the network access device after receiving the response information.
[0014] This application also provides a vehicle-mounted wireless terminal, characterized in that it includes a network access device, the network access device being used to execute the vehicle-mounted terminal service communication establishment method as described in any one of claims 1 to 6.
[0015] This application also provides a vehicle, characterized in that it includes the vehicle-mounted wireless terminal as described in claim 9 and the microcontroller unit, wherein the microcontroller unit is used to execute the vehicle-mounted terminal service communication establishment method as described in claim 7 or 8.
[0016] As can be seen from the above, this application provides a method for establishing service communication for an in-vehicle terminal, an in-vehicle wireless terminal, and a vehicle. The network access device receives a feedback signal from a microcontroller unit; in response to an interruption of the feedback signal, it confirms a fault in the microcontroller unit and sends a first communication request to the microcontroller unit via a communication request and response link. The communication request and response link is used to assist the network access device in re-establishing a communication connection with the microcontroller unit after a communication interruption between the network access device and the microcontroller unit; and it re-establishes a communication connection with the microcontroller unit based on the response information received through the communication request and response link. The response information is obtained from a restarted... The microcontroller unit sends the request after receiving the first communication request. By establishing a communication request and response link between the network access device and the microcontroller unit in advance, when the communication between the network access device and the microcontroller unit is interrupted and the network access device cannot establish a connection with the microcontroller unit through the serial peripheral interface, the connection between the network access device and the microcontroller unit can be re-established through the communication request and response link. This overcomes the problem that if the NAD is used as the communication master and the MCU is used as the communication slave, and the MCU fails, the communication between the two will be interrupted. Even if the MCU is reset and restarted, the communication between the two cannot be resumed. This ensures that the network access device and the microcontroller unit can quickly resume communication after the microcontroller unit restarts. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in this application or related technologies, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 This is a flowchart illustrating a method for establishing service communication for a vehicle-mounted terminal according to an embodiment of this application;
[0019] Figure 2 This is a schematic diagram of an SPI communication circuit including a communication request port and a response port, according to an embodiment of this application.
[0020] Figure 3 This is a schematic diagram of a power supply circuit including a first power supply component according to an embodiment of this application;
[0021] Figure 4 This is a schematic diagram of the power-on / off control circuit of a network access device including a third capacitor, according to an embodiment of this application.
[0022] Figure 5 A flowchart illustrating another method for establishing vehicle terminal service communication according to an embodiment of this application;
[0023] Figure 6 This is a flowchart illustrating the information interaction between the network access device and the microcontroller unit in an embodiment of this application.
[0024] Figure 7 This is a schematic diagram of the structure of a vehicle-mounted terminal service communication establishment device according to an embodiment of this application;
[0025] Figure 8 This is a schematic diagram of another vehicle-mounted terminal service communication establishment device according to an embodiment of this application;
[0026] Figure 9 This is a schematic diagram of the structure of a network access device according to an embodiment of this application;
[0027] Figure 10 This is a schematic diagram of the structure of a microcontroller unit according to an embodiment of this application. Detailed Implementation
[0028] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with specific embodiments and the accompanying drawings.
[0029] It should be noted that, unless otherwise defined, the technical or scientific terms used in the embodiments of this application should have the ordinary meaning understood by one of ordinary skill in the art to which this application pertains. The terms "first," "second," and similar terms used in the embodiments of this application do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" or "including" mean that the element or object preceding the word encompasses the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. Terms such as "upper," "lower," "left," and "right" are only used to indicate relative positional relationships; when the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0030] Figure 1 This is a flowchart illustrating a method for establishing service communication between a vehicle-mounted terminal, as provided in an embodiment of this application. This embodiment is applicable to situations where communication between a network access device and a microcontroller unit is interrupted due to a microcontroller unit failure and restart, requiring rapid restoration of communication. This method is applied to the network access device and can be executed by a vehicle-mounted terminal service communication establishment device based on microcontroller unit restart, installed within the network access device. This device can be implemented in software and / or hardware and can be configured within the network access device. Figure 1 As shown, the method may include the following steps:
[0031] S110: Receives feedback signals from the microcontroller unit.
[0032] Generally, if the communication link is fault-free, the microcontroller unit and the network access device can communicate normally. The network access device can act as either a master or a slave in the communication link, and similarly, the microcontroller unit can act as either a master or a slave. Specifically, when the network access device acts as the master and the microcontroller unit as the slave, the microcontroller unit sends a corresponding feedback signal to the network access device after receiving information from it. The network access device receives the feedback signal, confirming that the microcontroller unit can communicate normally. The feedback signal indicates that the microcontroller unit is capable of performing the required communication.
[0033] For example, when a network access device needs to establish a communication connection with a microcontroller unit, the network access device sends a communication request to the microcontroller unit. Upon receiving the communication request, the microcontroller unit responds by sending a feedback signal corresponding to the communication request to the network access device (this feedback signal is a first confirmation message, used to confirm that the microcontroller unit can establish a communication connection with the network access device). Upon receiving the feedback signal, the network access device establishes a communication connection with the microcontroller unit. As another example, when a network access device needs to send communication information to the microcontroller unit, the network access device sends the communication information to the microcontroller unit. Upon receiving the communication information, the microcontroller unit responds by sending a feedback signal corresponding to the communication information to the network access device (this feedback signal is a second confirmation message, used to confirm that the microcontroller unit has successfully received the communication information). Upon receiving the feedback signal, the network access device determines that the microcontroller unit has successfully received the communication information and does not need to resend the communication information.
[0034] S120. In response to the interruption of the feedback signal, a microcontroller failure is confirmed, and a first communication request is sent to the microcontroller through the communication request and response link. The communication request and response link is used to assist the network access device and the microcontroller in re-establishing a communication connection after the communication between the network access device and the microcontroller is interrupted.
[0035] If the network access device does not receive a feedback signal from the microcontroller unit during communication, i.e., the feedback signal is interrupted, it can be confirmed that the microcontroller unit has failed, and communication between the network access device and the microcontroller unit is interrupted. Generally, the microcontroller unit and the network access device communicate using the SPI (Serial Peripheral Interface) communication protocol. However, when the network access device acts as the communication master and the microcontroller unit acts as the communication slave, if the microcontroller unit fails (faults include, but are not limited to, severe electromagnetic interference to the microcontroller unit or uncontrollable program crashes), the network access device cannot resume communication with the microcontroller unit via the SPI communication protocol. Therefore, preferably, a communication request and response link (i.e., an out-of-band communication interface, used to supplement the SPI protocol) can be established between the network access device and the microcontroller unit to assist in restoring communication between them.
[0036] Specifically, the network access device can send a first communication request to the microcontroller unit at a preset frequency via a communication request and response link. This first communication request is a request from the network access device to re-establish a communication connection with the microcontroller unit. For example, if the network access device sends a communication request to the microcontroller unit, and the microcontroller unit fails to respond to the request due to a fault (i.e., the feedback signal is interrupted), the network access device can re-initiate the first communication request to the microcontroller unit at a preset frequency via the communication request and response link until the microcontroller unit restarts and communication is re-established. As another example, if the network access device sends communication information to the microcontroller unit, and the microcontroller unit fails to send corresponding confirmation information due to a fault (i.e., the feedback signal is interrupted), the network access device can also re-initiate the first communication request to the microcontroller unit at a preset frequency via the communication request and response link until the microcontroller unit restarts and communication is re-established.
[0037] S130. Based on the response information received through the communication request and response link, re-establish the communication connection with the microcontroller unit; wherein the response information is sent by the restarted microcontroller unit after receiving the first communication request.
[0038] Preferably, the network access device can receive response information sent by the microcontroller unit through the communication request and response link, and re-establish a communication connection with the microcontroller unit. The response information confirms that the microcontroller unit can establish a communication connection with the network access device.
[0039] Preferably, the communication request and response link may include a communication request port and a response port. Specifically, the network access device can connect to the microcontroller unit through the communication request port, and the microcontroller unit can connect to the network access device through the response port. When the network access device, acting as a communication master, and the microcontroller unit, acting as a communication slave, are communicating, if the microcontroller unit malfunctions, the network access device will send a first communication request to the microcontroller unit at a preset frequency through the communication request port. After restarting, the microcontroller unit will receive the first communication request and send the response information corresponding to the first communication request to the network access device through the response port. Upon receiving the response information, the network access device will re-establish the communication connection with the microcontroller unit. Figure 2 A schematic diagram of an SPI communication circuit including a communication request port and a response port is provided for an embodiment of this application, as shown below. Figure 2As shown, 21 is the communication request port, 22 is the response port, 23 is the microcontroller unit, 24 is the network access device, and 25 is the voltage conversion chip. Specifically, communication port 231 of the microcontroller unit 23 is connected to the communication request port 21, and communication port 232 of the microcontroller unit 23 is connected to the response port 22. Similarly, communication port 241 of the network access device 24 is connected to the communication request port 21, and communication port 242 of the network access device 24 is connected to the response port 22.
[0040] In this embodiment, the network access device receives a feedback signal from the microcontroller unit (MCU). In response to an interruption in the feedback signal, it confirms a malfunction in the MCU and sends a first communication request to the MCU via a communication request and response link. This communication request and response link assists the network access device in re-establishing a communication connection with the MCU after a communication interruption. Based on the response information received through the communication request and response link, it re-establishes a communication connection with the MCU. The response information is sent by the restarted MCU after receiving the first communication request. By pre-establishing a communication request and response link between the network access device and the MCU, when communication between the network access device and the MCU is interrupted and the network access device cannot establish a connection with the MCU through the serial peripheral interface, it can re-establish a connection with the MCU via the communication request and response link. This overcomes the existing problem where, if the NAD (Network Access Device) acts as the communication master and the MCU acts as the communication slave, a MCU malfunction causes a communication interruption, and even after the MCU is reset and restarted, communication between the two cannot resume. This ensures that communication between the network access device and the MCU can be quickly restored after the MCU restarts.
[0041] In some embodiments, the method for establishing service communication for an in-vehicle terminal further includes: receiving a second communication request from a microcontroller unit; and sending status synchronization data to the microcontroller unit based on the received second communication request.
[0042] In this embodiment, during communication between the microcontroller unit (MCU) as a communication master and the network access device as a communication slave, the states of each module circuit, including the network access device, are synchronized in real time. However, during the period from the MCU failure to the restart completion, the MCU cannot synchronize the states of each module circuit. Therefore, in order to send control commands based on the current states of each module circuit after the MCU restarts, the MCU needs to obtain the current states of each module circuit after restarting. Preferably, when the MCU fails, after restarting, it can resend a second communication request to the network access device via the SPI communication protocol to synchronize the current state of the network access device. Correspondingly, the network access device receives the second communication request and sends the corresponding state synchronization data to the MCU. The second communication request is issued by the MCU requesting to obtain the current state of the network access device.
[0043] In some embodiments, the system further includes supplying power from an auxiliary power supply module in response to an interruption of the feedback signal.
[0044] In this embodiment, if the microcontroller enables the power chip to supply power to the network access device, then when the microcontroller malfunctions and cannot enable the power chip to supply power to the network access device, the network access device will restart.
[0045] Therefore, it is preferable to connect an auxiliary power supply module to the network access device. When the network access device determines that the feedback signal is interrupted, it can be further determined that the microcontroller unit is faulty and the power chip cannot supply power to the network access device. At this time, the auxiliary power supply module can provide power to the network access device during the microcontroller unit's restart process. Specifically, the auxiliary power supply module is used to supply power to the network access device during the microcontroller unit's restart process.
[0046] In some embodiments, the auxiliary power supply module includes a power chip and a first power supply component; the step of supplying power by the auxiliary power supply module in response to the interruption of the feedback signal includes: in response to the interruption of the feedback signal, the first power supply component sends an enable signal to the enable terminal of the power chip, so that the power chip supplies power to the network access device.
[0047] Specifically, the first power supply component is connected to the enable pin of the power chip, and the power chip is connected to the network access device. During the microcontroller restart process, the first power supply component provides a high-level enable signal to the enable pin of the power chip, enabling the power chip to supply power to the network access device based on this enable signal. Preferably, the first power supply component is a first capacitor; specifically, the first capacitor has a capacitance of 1nF and a rated voltage of 50V. Figure 3A schematic diagram of a power supply circuit including a first power supply component is provided for an embodiment of this application, as shown below. Figure 3 As shown, 31 is a power supply chip, and the EN pin is the enable pin 11 of the power supply chip 31. 32 is the first power supply component, which is connected to the enable pin 11. 33 is the power supply control port of the microcontroller unit, which is also connected to the enable pin 11 and is used to transmit the control signal MCU_MAIN_4V_EN to the enable pin 11. When the microcontroller unit malfunctions, the control signal MCU_MAIN_4V_EN is missing. In this case, the first power supply component 32 can provide a high level to the enable pin 11 of the power supply chip 31; for example, the high level can be 4V.
[0048] In this embodiment, when the network access device determines that the feedback signal is interrupted, it can further determine that the microcontroller is faulty and the microcontroller cannot enable the power chip to supply power to the network access device. At this time, an electrical connection can be established with the first power supply component, that is, the first capacitor is used to provide a high level to the enable pin of the power chip so that the power chip can supply power to the network access device.
[0049] In some embodiments, the auxiliary power supply module includes a second power supply component; the step of supplying power to the auxiliary power supply module in response to the interruption of the feedback signal includes: supplying power to the second power supply component in response to the interruption of the feedback signal; wherein the second power supply component is connected to the power supply pin of the network access device.
[0050] The second power supply component is used to supply power to the network access device during the microcontroller restart process, or to continue supplying power to the network access device after the first capacitor is depleted and the power chip can no longer supply power to the network access device. Preferably, the second capacitor is an aluminum electrolytic capacitor, whose capacity can ensure that the network access device can operate normally for more than 2 seconds and can effectively cope with power fluctuations within 100ms (the restart and re-initialization cycle of the microcontroller is generally less than 100ms).
[0051] For example, when the network access device determines that the feedback signal is interrupted, it can further determine that the microcontroller unit is faulty. The microcontroller unit cannot enable the power chip to supply power to the network access device, and the first capacitor cannot enable the power chip to supply power to the network access device. At this time, the second power supply component can be used to supply power to the network access device.
[0052] In some embodiments, the auxiliary power supply module includes a third power supply component; the step of supplying power to the auxiliary power supply module in response to the interruption of the feedback signal includes: supplying power to the third power supply component in response to the interruption of the feedback signal; wherein the third power supply component is connected to the power on / off pin of the network access device.
[0053] The third power supply component provides a high level to the power-on / off pin of the network access device during the microcontroller restart process, preventing the network access device from shutting down due to the power-on / off pin being at a low level. To further prevent accidental shutdown of the network access device, it is preferable to set the power-on / off pin of the network access device to remain at a low level for more than 2 seconds before shutdown. Preferably, the third power supply component is a third capacitor with a capacitance of 1μF and a rated voltage of 50V. Figure 4 A schematic diagram of a network access device power-on / off control circuit including a third capacitor is provided for an embodiment of this application, as shown below. Figure 4 As shown, 41 is the power-on / off pin of the network access device, 42 is the third capacitor, and 43 is the power-on / off control port of the microcontroller unit. The power-on / off control port 43 is connected to the power-on / off pin 41 and is used to transmit the control signal MCU_NAD_PWRKEY to the power-on / off pin 41. The third capacitor 42 is connected to the power-on / off pin 41. When the microcontroller unit malfunctions, the control signal MCU_NAD_PWRKEY is missing. In this case, the third capacitor 42 provides a high level to the power-on / off pin 41.
[0054] In this embodiment, when the network access device determines that the feedback signal is interrupted, it can further determine that the microcontroller unit is faulty. The microcontroller unit cannot keep the power-on / off pin of the network access device in a high-level state. At this time, an electrical connection can be established with the third power supply component, that is, the third power supply component is used to provide a high level to the power-on / off pin of the network access device to avoid the network access device being shut down accidentally. Figure 5 This is a flowchart illustrating another method for establishing in-vehicle terminal service communication according to an embodiment of this application. This embodiment is applicable to situations where ongoing communication between the network access device and the microcontroller is interrupted due to a microcontroller malfunction and restart, requiring rapid restoration of communication. This method is applied to the microcontroller and can be executed by an in-vehicle terminal service communication establishment device based on the microcontroller restart, which is installed within the microcontroller. This device can be implemented in software and / or hardware and can be configured within the microcontroller. Figure 5 As shown, the method may include the following steps:
[0055] S210. Receive a first communication request signal from a network access device via a communication request and response link, and send a response message to the network access device. The communication request and response link is used to assist the network access device in re-establishing a communication connection with the microcontroller unit after communication between the network access device and the microcontroller unit is interrupted.
[0056] S220. Based on the received communication signal, send a feedback signal to the network access device; wherein the communication signal is sent by the network access device after receiving the response information.
[0057] Specifically, the microcontroller unit can receive a first communication request from the network access device at a preset frequency via a communication request and response link, and respond to the first communication request by sending a response message to re-establish the communication connection between the microcontroller unit and the network access device. After the communication connection between the two is re-established, the microcontroller unit receives the communication signals sent by the network access device and sends a feedback signal to the network access device confirming that the communication signals have been received.
[0058] In this embodiment, the microcontroller unit receives a first communication request signal from a network access device via a communication request and response link, and sends a response message to the network access device. The communication request and response link is used to assist the network access device in re-establishing a communication connection with the microcontroller unit after a communication interruption. Based on the received communication signal, a feedback signal is sent to the network access device. The communication signal is sent by the network access device after receiving the response message. By establishing a communication request and response link in advance between the network access device and the microcontroller unit, when communication between the network access device and the microcontroller unit is interrupted, and the microcontroller unit cannot receive information sent by the network access device through the serial peripheral interface, thus failing to establish a connection with the network access device, a new connection can be established through the communication request and response link. This overcomes the existing problem where, if the NAD (Network Access Device) acts as the communication master and the MCU (Microcontroller Unit) acts as the communication slave, a MCU malfunction causes a communication interruption, and even after the MCU is reset and restarted, communication between the two cannot resume. This ensures that communication between the network access device and the microcontroller unit can be quickly restored after the microcontroller unit restarts.
[0059] In some embodiments, the method further includes: sending a second communication request to the network access device; and receiving status synchronization data sent by the network access device based on the second communication request.
[0060] In this embodiment, during communication between the microcontroller unit (MCU) as a communication master and the network access device as a communication slave, the states of each module circuit, including the network access device, are synchronized in real time. However, during the period from the MCU failure to the restart completion, the MCU cannot synchronize the states of each module circuit. Therefore, in order to send control commands based on the current states of each module circuit after the MCU restarts, the MCU needs to obtain the current states of each module circuit after restarting. Preferably, when the MCU fails, after restarting, it can resend a second communication request to the network access device via the SPI communication protocol. The network access device receives the second communication request and sends the corresponding state synchronization data to the MCU. The MCU receives the state synchronization data to synchronize the current state of the network access device.
[0061] Figure 6 This is a flowchart illustrating the information interaction between a network access device and a microcontroller unit provided in an embodiment of this application. Figure 6 As shown, the method may include the following steps:
[0062] S310, The network access device receives the first feedback signal sent by the microcontroller unit;
[0063] S320. If the network access device responds to the interruption of the feedback signal, it confirms that the microcontroller unit is faulty and sends a first communication request to the microcontroller unit through the communication request and response link. The communication request and response link is used to assist the network access device and the microcontroller unit in re-establishing a communication connection after the communication between the network access device and the microcontroller unit is interrupted.
[0064] S330, the microcontroller unit receives a first communication request signal sent by the network access device through the communication request and response link, and sends response information to the network access device;
[0065] S340. The network access device re-establishes a communication connection with the microcontroller unit based on the response information received through the communication request and response link; wherein the response information is sent by the restarted microcontroller unit after receiving the first communication request.
[0066] S350, the microcontroller sends a second feedback signal to the network access device based on the received communication signal; wherein, the communication signal is sent by the network access device after receiving the response information.
[0067] In this embodiment, the network access device receives a first feedback signal from the microcontroller unit. In response to an interruption in the feedback signal, the network access device confirms a microcontroller unit malfunction and sends a first communication request to the microcontroller unit via a communication request and response link. This communication request and response link assists the network access device in re-establishing a communication connection with the microcontroller unit after a communication interruption. The microcontroller unit receives the first communication request signal from the network access device via the communication request and response link and sends a response message to the network access device. Based on the response message received via the communication request and response link, the network access device re-establishes a communication connection with the microcontroller unit. The response message is sent by the restarted microcontroller unit after receiving the first communication request. Based on the received communication signal, the microcontroller sends a second feedback signal to the network access device. This communication signal is sent by the network access device after receiving the response information. By pre-establishing a communication request and response link between the network access device and the microcontroller, when communication between the network access device and the microcontroller is interrupted, and the network access device cannot send information to the microcontroller through the serial peripheral interface, and the microcontroller cannot receive information sent by the network access device through the serial peripheral interface, thus preventing communication between them, the connection can be re-established through the communication request and response link. This overcomes the existing problem where, if the NAD (Network Access Device) acts as the communication master and the MCU (Microcontroller Unit) acts as the communication slave, a MCU malfunction causes a communication interruption, and even after the MCU is reset and restarted, communication cannot resume. This ensures that communication between the network access device and the microcontroller can be quickly restored after the microcontroller restarts.
[0068] In some embodiments, the information interaction between the network access device and the microcontroller unit further includes: the microcontroller unit sending a second communication request to the network access device; the network access device receiving the second communication request from the microcontroller unit; the network access device sending status synchronization data to the microcontroller unit based on the received second communication request; and the microcontroller unit receiving the status synchronization data sent by the network access device based on the second communication request, so that after the microcontroller unit restarts, it can send control commands based on the current status of the network access device.
[0069] It should be noted that the method in this embodiment can be executed by a single device, such as a computer or server. The method can also be applied in a distributed scenario, where multiple devices cooperate to complete the task. In such a distributed scenario, one of these devices may execute only one or more steps of the method in this embodiment, and the multiple devices will interact with each other to complete the method described.
[0070] It should be noted that the above description describes some embodiments of this application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in a different order than that shown in the above embodiments and still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0071] Based on the same inventive concept, and corresponding to any of the methods in the above embodiments, this application also provides a vehicle-mounted terminal service communication establishment device, which is disposed in a network access device. (Reference) Figure 7 The vehicle-mounted terminal service communication establishment device includes:
[0072] Feedback signal receiving module 410 is used to receive feedback signals sent by the microcontroller unit;
[0073] The first communication request sending module 420 is used to respond to the interruption of the feedback signal, confirm the microcontroller unit failure, and send a first communication request to the microcontroller unit through the communication request and response link. The communication request and response link is used to assist the network access device and the microcontroller unit in re-establishing a communication connection after the communication between the network access device and the microcontroller unit is interrupted.
[0074] The communication re-establishment module 430 is used to re-establish a communication connection with the microcontroller unit based on the response information received through the communication request and response link; wherein the response information is sent by the restarted microcontroller unit after receiving the first communication request.
[0075] In this embodiment, the network access device receives a feedback signal from the microcontroller unit via a feedback signal receiving unit. In response to an interruption of the feedback signal, the first communication request sending module confirms a microcontroller malfunction and sends a first communication request to the microcontroller unit via a communication request and response link. This communication request and response link assists the network access device in re-establishing a communication connection with the microcontroller unit after a communication interruption. The communication re-establishment module re-establishes a communication connection with the microcontroller unit based on the response information received via the communication request and response link. The response information is generated by the restarted microcontroller unit. The control unit sends the request after receiving the first communication request. By establishing a communication request and response link between the network access device and the microcontroller in advance, when the communication between the network access device and the microcontroller is interrupted and the network access device cannot establish a connection with the microcontroller through the serial peripheral interface, the connection between the network access device and the microcontroller can be re-established through the communication request and response link. This overcomes the problem that if the NAD is used as a communication master and the MCU is used as a communication slave, and the MCU fails, the communication between the two will be interrupted. Even if the MCU is reset and restarted, the communication between the two cannot be resumed. This ensures that the network access device and the microcontroller can quickly resume communication after the microcontroller restarts.
[0076] Based on the above embodiments, the device further includes: a first state synchronization module, used to receive a second communication request issued by the microcontroller unit; and to send state synchronization data to the microcontroller unit based on the received second communication request.
[0077] Based on the above embodiments, the device further includes an auxiliary power supply module connection module, which is used to supply power from the auxiliary power supply module in response to the interruption of the feedback signal.
[0078] Based on the above embodiments, the auxiliary power supply module further includes a power chip and a first power supply component; the auxiliary power supply module connection module includes a first power supply component connection module, which, in response to the interruption of the feedback signal, sends an enable signal to the enable terminal of the power chip so that the power chip supplies power to the network access device.
[0079] Based on the above embodiments, the auxiliary power supply module further includes a second power supply component; the auxiliary power supply module connection module further includes a second power supply component connection module, which is used to supply power by the second power supply component in response to the interruption of the feedback signal; wherein, the second power supply component is connected to the power supply pin of the network access device.
[0080] Based on the above embodiments, the auxiliary power supply module further includes a third power supply component; the auxiliary power supply module connection module further includes a third power supply component connection module, which is used to supply power by the third power supply component in response to the interruption of the feedback signal; wherein, the third power supply component is connected to the power on / off pin of the network access device.
[0081] For ease of description, the above devices are described in terms of function, divided into various modules. Of course, in implementing this application, the functions of each module can be implemented in one or more software and / or hardware.
[0082] The apparatus of the above embodiments is used to implement the vehicle terminal service communication establishment method applied to the network access device in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0083] Based on the same inventive concept, and corresponding to any of the methods in the above embodiments, this application also provides a vehicle-mounted terminal service communication establishment device, which is disposed in a microcontroller unit. (Reference) Figure 8 The vehicle-mounted terminal service communication establishment device includes:
[0084] The first communication request receiving module 510 is used to receive a first communication request signal sent by the network access device through a communication request and response link, and send response information to the network access device. The communication request and response link is used to assist the network access device and the microcontroller in re-establishing a communication connection after the communication between the network access device and the microcontroller is interrupted.
[0085] The feedback signal sending module 520 is used to send a feedback signal to the network access device based on the received communication signal; wherein the communication signal is sent by the network access device after receiving the response information.
[0086] In this embodiment, the microcontroller unit (MCU) receives a first communication request signal from a network access device via a first communication request and response link. The receiving module then sends a response message to the network access device. This communication request and response link assists the network access device in re-establishing a communication connection with the MCU after a communication interruption. A feedback signal sending module sends a feedback signal to the network access device based on the received communication signal. This communication signal is sent by the network access device after receiving the response message. By establishing a communication request and response link beforehand between the network access device and the MCU, when communication between the network access device and the MCU is interrupted, and the MCU cannot receive information from the network access device via the serial peripheral interface, thus preventing a connection establishment, a re-establishment of the connection can be achieved through the communication request and response link. This overcomes the problem in existing systems where, if the NAD (Network Access Device) acts as the communication master and the MCU acts as the communication slave, a MCU malfunction causes a communication interruption, and even after the MCU is reset and restarted, communication between the two cannot resume. This ensures that communication between the network access device and the MCU can be quickly restored after the MCU restarts.
[0087] Based on the above embodiments, the device further includes: a second state synchronization module, used to send a second communication request to the network access device; and to receive state synchronization data sent by the network access device based on the second communication request.
[0088] For ease of description, the above devices are described in terms of function, divided into various modules. Of course, in implementing this application, the functions of each module can be implemented in one or more software and / or hardware.
[0089] The apparatus described above is used to implement the vehicle terminal service communication establishment method applied to the microcontroller unit in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0090] Based on the same inventive concept, corresponding to any of the above embodiments applied to the network access device, this application also provides a network access device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the vehicle terminal service communication establishment method for the network access device described in any of the above embodiments.
[0091] Figure 9This embodiment illustrates a more specific hardware structure diagram of a network access device. The network access device may include: a processor 910, a memory 920, an input / output interface 930, a communication interface 940, and a bus 950. The processor 910, memory 920, input / output interface 930, and communication interface 940 are interconnected internally via the bus 950.
[0092] The processor 910 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0093] The memory 920 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 920 can store the operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program code is stored in the memory 920 and is called and executed by the processor 910.
[0094] The input / output interface 930 is used to connect input / output modules to enable information input and output. Input / output modules can be configured as components within the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Input devices may include keyboards, mice, touchscreens, microphones, various sensors, etc., while output devices may include displays, speakers, vibrators, indicator lights, etc.
[0095] The communication interface 940 is used to connect the communication module (not shown in the figure) to enable communication between this device and other devices. The communication module can communicate via wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).
[0096] Bus 950 includes a pathway for transmitting information between various components of the device, such as processor 910, memory 920, input / output interface 930, and communication interface 940.
[0097] It should be noted that although the above-described device only shows the processor 910, memory 920, input / output interface 930, communication interface 940, and bus 950, in specific implementations, the device may also include other components necessary for normal operation. Furthermore, those skilled in the art will understand that the above-described device may only include the components necessary for implementing the embodiments of this specification, and not necessarily all the components shown in the figures.
[0098] The network access device in the above embodiments is used to implement the corresponding vehicle terminal service communication establishment method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0099] Based on the same inventive concept, corresponding to any of the above embodiments applied to the microcontroller terminal, this application also provides a microcontroller terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the vehicle terminal service communication establishment method applied to the microcontroller terminal as described in any of the above embodiments.
[0100] Figure 10 This embodiment illustrates a more specific hardware structure diagram of a microcontroller unit. The microcontroller unit may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, memory 1020, input / output interface 1030, and communication interface 1040 are interconnected internally via the bus 1050.
[0101] The processor 1010 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0102] The memory 1020 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program code is stored in the memory 1020 and is called and executed by the processor 1010.
[0103] The input / output interface 1030 is used to connect input / output modules to realize information input and output. Input / output modules can be configured as components within the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Input devices may include keyboards, mice, touchscreens, microphones, various sensors, etc., while output devices may include displays, speakers, vibrators, indicator lights, etc.
[0104] The communication interface 1040 is used to connect a communication module (not shown in the figure) to enable communication between this device and other devices. The communication module can communicate via wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).
[0105] Bus 1050 includes a pathway for transmitting information between various components of the device, such as processor 1010, memory 1020, input / output interface 1030, and communication interface 1040.
[0106] It should be noted that although the above-described device only shows the processor 1010, memory 1020, input / output interface 1030, communication interface 1040, and bus 1050, in specific implementations, the device may also include other components necessary for normal operation. Furthermore, those skilled in the art will understand that the above-described device may only include the components necessary for implementing the embodiments of this specification, and not necessarily all the components shown in the figures.
[0107] The microcontroller unit in the above embodiments is used to implement the corresponding vehicle terminal service communication establishment method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0108] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this application also provides a non-transitory computer-readable storage medium storing computer instructions, which are used to cause the computer to execute the vehicle terminal service communication establishment method applied to the network access device end as described in any of the above embodiments, and / or, the computer instructions are used to cause the computer to execute the vehicle terminal service communication establishment method applied to the microcontroller end as described in any of the above embodiments.
[0109] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device.
[0110] The computer instructions stored in the storage medium of the above embodiments are used to cause the computer to execute the vehicle terminal service communication establishment method as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0111] Based on the same inventive concept, and corresponding to any of the above-described embodiments applied to the network access device, this application also provides a vehicle-mounted wireless terminal, including a network access device, which is used to execute any vehicle-mounted terminal service communication establishment method applied to the network access device.
[0112] The vehicle-mounted wireless terminal in the above embodiments includes a network access device for executing any vehicle-mounted terminal service communication establishment method applied to the network access device, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0113] Based on the same inventive concept, corresponding to any of the above embodiments, this application also provides a vehicle, including the vehicle-mounted wireless terminal and microcontroller unit described in the above embodiments, wherein the microcontroller unit is used to execute any vehicle-mounted terminal service communication establishment method applied to the microcontroller unit.
[0114] The vehicle in the above embodiments includes an in-vehicle wireless terminal and a microcontroller unit. The in-vehicle wireless terminal is used to execute any in-vehicle terminal service communication establishment method applied to the network access device using a network access device. The microcontroller unit is used to execute any in-vehicle terminal service communication establishment method applied to the microcontroller unit. It has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0115] Those skilled in the art should understand that the discussion of any of the above embodiments is merely exemplary and is not intended to imply that the scope of this application (including the claims) is limited to these examples; within the framework of this application, the technical features of the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations of different aspects of the embodiments of this application as described above, which are not provided in the details for the sake of brevity.
[0116] Additionally, to simplify the description and discussion, and to avoid obscuring the embodiments of this application, the well-known power / ground connections to integrated circuit (IC) chips and other components may or may not be shown in the provided drawings. Furthermore, the apparatus may be shown in block diagram form to avoid obscuring the embodiments of this application, and this also takes into account the fact that the details of the implementation of these block diagram apparatuses are highly dependent on the platform on which the embodiments of this application will be implemented (i.e., these details should be fully understood by those skilled in the art). While specific details (e.g., circuits) have been set forth to describe exemplary embodiments of this application, it will be apparent to those skilled in the art that the embodiments of this application can be implemented without these specific details or with variations thereof. Therefore, these descriptions should be considered illustrative rather than restrictive.
[0117] Although this application has been described in conjunction with specific embodiments thereof, many substitutions, modifications, and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may be used with the embodiments discussed.
[0118] The embodiments of this application are intended to cover all such substitutions, modifications, and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the embodiments of this application should be included within the protection scope of this application.
Claims
1. A method for establishing service communication in a vehicle-mounted terminal, applied to a network access device, characterized in that, include: Receive feedback signals from the microcontroller unit; In response to the interruption of the feedback signal, a microcontroller failure is confirmed, and a first communication request is sent to the microcontroller through a communication request and response link. The communication request and response link is used to assist the network access device and the microcontroller in re-establishing a communication connection after the communication between the network access device and the microcontroller is interrupted. Based on the response information received through the communication request and response link, a new communication connection is established with the microcontroller unit; The response information is sent by the restarted microcontroller unit after receiving the first communication request.
2. The method according to claim 1, characterized in that, Also includes: Receive the second communication request from the microcontroller unit; Based on the received second communication request, status synchronization data is sent to the microcontroller unit.
3. The method according to claim 1, characterized in that, It also includes, In response to the interruption of the feedback signal, power is supplied by the auxiliary power supply module.
4. The method according to claim 3, characterized in that, The auxiliary power supply module includes a power chip and a first power supply component; The response to the interruption of the feedback signal, which is powered by the auxiliary power supply module, includes: In response to the interruption of the feedback signal, the first power supply component sends an enable signal to the enable terminal of the power chip, so that the power chip supplies power to the network access device.
5. The method according to claim 3, characterized in that, The auxiliary power supply module includes a second power supply component; The response to the interruption of the feedback signal, which is powered by the auxiliary power supply module, includes: In response to the interruption of the feedback signal, power is supplied by the second power supply component; The second power supply component is connected to the power supply pin of the network access device.
6. The method according to claim 3, characterized in that, The auxiliary power supply module includes a third power supply component; The response to the interruption of the feedback signal, which is powered by the auxiliary power supply module, includes: In response to the interruption of the feedback signal, power is supplied by the third power supply component; The third power supply component is connected to the power on / off pin of the network access device.
7. A method for establishing service communication in a vehicle-mounted terminal, applied to a microcontroller unit, characterized in that, include: Through the communication request and response link, a first communication request signal sent by the network access device is received, and a response information is sent to the network access device to re-establish the communication connection between the microcontroller and the network access device. The communication request and response link is used to assist the network access device and the microcontroller in re-establishing the communication connection after the communication between the network access device and the microcontroller is interrupted. Based on the received communication signals, a feedback signal is sent to the network access device; The communication signal is sent by the network access device after receiving the response information; The response information is sent by the restarted microcontroller unit after receiving the first communication request.
8. The method according to claim 7, characterized in that, Also includes: Send a second communication request to the network access device; Receive the status synchronization data sent by the network access device based on the second communication request.
9. A vehicle-mounted wireless terminal, characterized in that, It includes a network access device, which is used to perform the vehicle terminal service communication establishment method as described in any one of claims 1 to 6.
10. A vehicle, characterized in that, It includes the vehicle-mounted wireless terminal as described in claim 9 and the microcontroller unit, wherein the microcontroller unit is used to execute the vehicle-mounted terminal service communication establishment method as described in claim 7 or 8.
Citation Information
Patent Citations
Vehicle-mounted T-BOX system and call control method
CN109379502A
Communication retry method over digital wireless systems
US20040198366A1