System and method for monitoring and controlling vehicle-mounted equipment of command communication vehicle based on single chip microcomputer
By using a microcontroller-based distributed monitoring and control system, the problems of low power consumption and all-weather monitoring in the central control system of the command and communication vehicle were solved, realizing intelligent, real-time perception and remote control of the on-board equipment, and improving the reliability and safety of the system.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- ANHUI SUN CREATE ELECTRONICS
- Filing Date
- 2026-01-22
- Publication Date
- 2026-04-14
AI Technical Summary
The existing command and communication vehicle central control system is unable to achieve low-power, all-weather, and safe linkage intelligent monitoring of on-board equipment, resulting in the inability to detect potential hazards such as battery depletion and unclosed doors in a timely manner.
The system adopts a microcontroller-based distributed monitoring and control system, including control units and execution units. It achieves efficient data interaction through a master-slave serial communication mechanism, integrates CAN bus, GSM communication modules and Ethernet functions, and combines intelligent power management strategies to support multi-level cascading expansion, realizing comprehensive perception and remote control of vehicle equipment.
It enables continuous status monitoring and control of various onboard equipment in command and communication vehicles, reduces energy consumption, improves system reliability and security, ensures real-time monitoring of equipment status and abnormal alarms, and avoids safety hazards.
Smart Images

Figure CN121857488A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of on-vehicle equipment monitoring and control, and particularly to a monitoring and control system and method for on-vehicle equipment of a command communication vehicle based on a single-chip microcomputer. Background Art
[0002] A command communication vehicle is a mobile command platform formed by installing various special equipment such as communication, lifting, and power supply on a general vehicle. With the increase in functional requirements, the on-vehicle equipment is becoming increasingly numerous, and the management complexity has increased significantly. Currently, the mainstream solution relies on an on-vehicle industrial control computer to build a central control system. The industrial control computer has high power consumption and cannot work continuously in the vehicle parking or power-off state, making it difficult to achieve long-term unattended monitoring of the equipment status, and it is easy to cause hidden dangers such as battery discharge and cabin doors not closed that cannot be discovered in time. Therefore, there is an urgent need for a new type of monitoring and control system with a simple structure, low power consumption, high integration, and vehicle status linkage ability to achieve comprehensive perception, intelligent early warning, and remote control of on-vehicle equipment. Summary of the Invention
[0003] This application provides a monitoring and control system and method for on-vehicle equipment of a command communication vehicle based on a single-chip microcomputer, which solves the technical problem that it is difficult for the existing central control system of a command communication vehicle to achieve intelligent monitoring of on-vehicle equipment with low power consumption, all-weather, and safe linkage.
[0004] To achieve the above object, this application adopts the following technical solutions: In the first aspect, a monitoring and control system for on-vehicle equipment of a command communication vehicle based on a single-chip microcomputer is provided, including: a control unit and an execution unit; The control unit includes a single-chip microcomputer, and the single-chip microcomputer is respectively connected to an input module, a network communication module, an output module, a GSM communication module, a serial port one communication module, and a power control module; The execution unit includes a DMA relay controller, and the DMA relay controller is respectively connected to a DI digital input module, a serial port two communication module, a power module, an AI analog input module, and a DO relay output module; Among them, the serial port one communication module of the control unit is connected to the serial port two communication module of the execution unit through a serial bus for uploading the collected data and receiving control instructions; the power control module of the control unit is electrically connected to the power module of the execution unit for controlling the on-off of the power supply of the execution unit by the control unit.
[0005] Based on the above technical solutions, the microcontroller-based vehicle-mounted equipment monitoring and control system for command and communication vehicles provided in this application adopts a distributed design with separate control and execution units. Efficient data interaction is achieved through a master-slave serial communication mechanism, which not only enhances the overall operational stability but also facilitates flexible expansion of I / O interfaces according to task requirements. The execution unit supports multi-level cascading and can adapt to different scales and types of vehicle-mounted equipment configurations. The control unit integrates a CAN bus interface, a GSM communication module, and Ethernet communication functions, enabling real-time synchronization of equipment status with the host computer during vehicle operation and proactive sending of abnormal alarms via the GSM communication module while parked, achieving unattended monitoring. Simultaneously, the system introduces an intelligent power management strategy: automatically cutting off power to the execution unit in the absence of abnormalities and putting the microcontroller into a low-power mode, significantly reducing standby power consumption and meeting the energy-saving requirements for long-term deployment of special vehicles. Furthermore, through the coordinated operation of the DI digital input module, the AI analog input module, and the DO relay output module, the system can comprehensively sense and remotely control key parameters such as the boarding door, support legs, battery voltage, fluid level, temperature, and humidity, effectively avoiding safety hazards caused by equipment failure to reset or abnormal status. This invention features a flexible architecture and low energy consumption, enabling continuous status monitoring and control of various onboard equipment in the command and communication vehicle, further enhancing the vehicle's usability and safety.
[0006] In conjunction with the first aspect above, in one possible implementation, the input unit of the control unit is used to connect to the vehicle CAN bus to obtain vehicle operating status information, the output module is used to connect to the in-vehicle display screen and alarm, the network communication module is used to connect to the host computer for data interaction, the GSM communication module is used to send alarm information to the remote terminal, and the power control module is electrically connected to the power module of the execution unit to control the power supply on and off.
[0007] In conjunction with the first aspect above, in one possible implementation, the DI digital input module of the execution unit is used to connect to a limit switch to detect the reset state of the vehicle-mounted equipment; the AI analog input module is used to collect vehicle status data, including oil level, liquid level, temperature, and humidity; and the DO relay output module is used to connect to the power control terminal of the vehicle-mounted equipment for remote power-on / off control.
[0008] In conjunction with the first aspect above, in one possible implementation, the DMA relay controller supports multiple unit cascade expansions to increase the number of interfaces for the DI digital input module, AI analog input module, and DO relay output module.
[0009] In conjunction with the first aspect above, in one possible implementation, the state of the monitoring system includes: After the monitoring system enters the working mode, the control unit establishes a connection with the host computer through the network communication module, and uses a network interrupt procedure mechanism to upload the real-time collected vehicle equipment status information and vehicle status information to the host computer, while receiving and executing the equipment control commands issued by the host computer.
[0010] In conjunction with the first aspect above, in one possible implementation, the serial communication between the control unit and the execution unit adopts a master-slave architecture, whereby the control unit initiates a communication request, and the execution unit responds and returns acquired data or executes control commands; the power control module is controlled by the microcontroller and is used to manage the power supply status of the execution unit.
[0011] Secondly, this application provides a method for monitoring and controlling onboard equipment of a command and communication vehicle based on a microcontroller, including: When the monitoring system is in standby mode, it is woken up by a corresponding wake-up method based on the vehicle status. The vehicle status includes parked and driving states. The monitoring system is a system composed of a control unit and an execution unit, used to monitor the status of the on-board equipment. The wake-up methods include timed wake-up and button wake-up. Button wake-up includes a vehicle start signal and a switch signal, wherein the switch signal is a manual button switch, which wakes up the system. When the vehicle is parked, the monitoring system is periodically woken up by the real-time clock built into the microcontroller at preset time intervals. After each timed wake-up, the monitoring system executes the equipment monitoring program. If the status of the on-board equipment is abnormal, it sends a warning message to the remote terminal through the GSM communication module and returns to standby mode. When the vehicle is in motion, the monitoring system is woken up by pressing a button. After being woken up, the monitoring system executes the equipment monitoring program. If the status of the on-board equipment is abnormal, it performs the corresponding operation based on the button wake-up signal and interacts with the host computer through network interruption to upload the status information of the vehicle and equipment.
[0012] In conjunction with the second aspect above, in one possible implementation, the button wake-up method is a vehicle start signal, including: If the monitoring system receives a vehicle start signal, it executes a device monitoring program to detect the status of the on-board equipment; it determines whether the on-board equipment has any abnormal status that affects driving safety; if so, it sends a warning message to a remote terminal via the GSM communication module and does not allow the vehicle to enter driving mode until the abnormal status is eliminated; otherwise, it allows the vehicle to enter driving mode; wherein, the remote terminal includes an in-vehicle display screen and an alarm.
[0013] In conjunction with the second aspect above, in one possible implementation, the button wake-up method is a switch signal, including: If the monitoring system receives a switch signal, it establishes communication with the host computer through a network interrupt program and uploads the status information of the vehicle-mounted equipment to the host computer. If the monitoring system receives a switch signal again, it terminates the current monitoring process, shuts down the device monitoring program, and enters standby mode.
[0014] In conjunction with the second aspect above, in one possible implementation, in the standby mode, the microcontroller of the control unit controls the power control module to disconnect the power supply to the power module in the execution unit.
[0015] Thirdly, this application provides a microcontroller-based monitoring and control device for onboard equipment of a command and communication vehicle, comprising: a processor and a storage medium; the storage medium includes instructions, and the processor is used to execute the instructions to implement the methods described in the first aspect and any possible implementation thereof. This microcontroller-based monitoring and control device for onboard equipment of a command and communication vehicle can be an electronic device or a chip within an electronic device.
[0016] Fourthly, this application provides a computer-readable storage medium storing instructions that, when executed on a microcontroller-based command and communication vehicle on-board equipment monitoring and control device, cause the microcontroller-based command and communication vehicle on-board equipment monitoring and control device to perform the methods described in the first aspect and any possible implementation thereof.
[0017] Fifthly, this application provides a computer program product containing instructions that, when the computer program product is run on a microcontroller-based command and communication vehicle on-board equipment monitoring and control device, causes the microcontroller-based command and communication vehicle on-board equipment monitoring and control device to perform the methods described in the first aspect and any possible implementation thereof.
[0018] This application provides a microcontroller-based monitoring and control system and method for onboard equipment in command and communication vehicles. The microcontroller-based hardware system and intelligent control method are organically combined to form a highly efficient, reliable, and low-power solution for monitoring and controlling onboard equipment in command and communication vehicles. The system adopts a distributed architecture with separate control and execution units, supporting multi-level cascading expansion and strong adaptability. The method introduces a standby-wake-up mechanism, triggering equipment status monitoring via timed or button-activated operation to achieve "on-demand operation and normal sleep mode." In parked mode, the system can automatically and periodically detect key parameters such as battery power, fluid level, and limit switches, remotely alerting via GSM module in case of abnormalities. Upon vehicle startup, it quickly completes a safety self-check to ensure driving safety. The control unit integrates CAN bus, Ethernet, and GSM triple communication capabilities, accommodating real-time interaction during operation and unattended monitoring during parking. Simultaneously, by dynamically cutting off power to the execution unit and putting the microcontroller into a low-power mode, static energy consumption is significantly reduced. The hardware-software co-design not only enables integrated perception, remote control, and intelligent early warning of on-board equipment, but also significantly improves the system's reliability, energy efficiency, and automation level, fully meeting the stringent requirements of special vehicles for high safety, high availability, and long-term deployment capabilities.
[0019] It should be understood that the descriptions of technical features, technical solutions, beneficial effects, or similar language in this application do not imply that all features and advantages can be achieved in any single embodiment. Rather, it is understood that the description of a feature or beneficial effect means that a specific technical feature, technical solution, or beneficial effect is included in at least one embodiment. Therefore, the descriptions of technical features, technical solutions, or beneficial effects in this specification do not necessarily refer to the same embodiment. Furthermore, the technical features, technical solutions, and beneficial effects described in this embodiment can be combined in any suitable manner. Those skilled in the art will understand that embodiments can be implemented without one or more specific technical features, technical solutions, or beneficial effects of a particular embodiment. In other embodiments, additional technical features and beneficial effects may be identified in specific embodiments that do not embody all embodiments. Attached Figure Description
[0020] Figure 1 A system architecture diagram of a microcontroller-based vehicle-mounted equipment monitoring and control system for command and communication vehicles is provided for embodiments of this application; Figure 2 A flowchart illustrating a microcontroller-based method for monitoring and controlling onboard equipment in a command and communication vehicle, as provided in this application embodiment; Figure 3 A schematic flowchart of a device monitoring procedure method provided in an embodiment of this application; Figure 4 A flowchart illustrating a network interruption procedure method provided in an embodiment of this application; Figure 5 A flowchart illustrating a method for shutting down a device monitoring program, provided in an embodiment of this application; Figure 6 A schematic diagram of a product form of a microcontroller-based vehicle-mounted equipment monitoring and control system for command and communication vehicles provided in this application embodiment; Figure 7 This is a schematic diagram of the structure of a monitoring and control device provided in an embodiment of this application; Figure 8 This is a schematic diagram of the hardware structure of a monitoring and control device provided in an embodiment of this application. Detailed Implementation
[0021] The technical solution of the present invention will be clearly and completely described below with reference to the embodiments. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0022] The microcontroller-based monitoring and control method for onboard equipment of a command and communication vehicle provided in this application can be applied to, for example... Figure 1 In the microcontroller-based vehicle-mounted equipment monitoring and control system 100 shown, such as Figure 1 As shown, the system includes: a control unit 1 and an execution unit 2; The control unit 1 includes a microcontroller 11, which is connected to an input module 12, a network communication module 13, an output module 14, a GSM communication module 15, a serial port communication module 16, and a power control module 17. The input unit 12 of the control unit 1 is used to connect to the vehicle CAN bus to obtain vehicle operating status information, the output module 14 is used to connect to the in-vehicle display screen and alarm, the network communication module 13 is used to connect to the host computer for data interaction, and the GSM communication module 15 is used to send alarm information to the remote terminal and remotely prompt the system for abnormal conditions when the vehicle is parked.
[0023] Execution unit 2 includes a DMA relay controller 21, which is connected to a DI digital input module 22, a serial port 2 communication module 23, a power supply module 24, an AI analog input module 25, and a DO relay output module 26. Among them, the DI digital input module 25 of the execution unit 2 is used to connect to the limit switch and to detect the reset status of the vehicle equipment; the AI analog input module 25 is used to collect vehicle status data; and the DO relay output module 26 is used to connect to the power control terminal of the vehicle equipment for remote power on / off control. The vehicle status data includes oil level, liquid level, temperature, and humidity.
[0024] Furthermore, the serial communication between the control unit 1 and the execution unit 2 adopts a master-slave architecture, where the control unit 1 initiates a communication request, and the execution unit responds and returns the acquired data or executes control commands; the power control module 14 is controlled by the microcontroller 11 and is used to manage the power supply status of the execution unit 1.
[0025] The serial port communication module 16 of the control unit 1 is connected to the serial port communication module 2 of the execution unit 2 via a serial bus, and is used to upload collected data and receive control commands; the power control module 17 of the control unit 1 is electrically connected to the power module 24 of the execution unit 2, and is used to dynamically control the power supply of the execution unit 2 by the control unit 1 to achieve low-energy operation of the system.
[0026] It should be noted that the DMA relay controller 21 supports multiple unit cascading expansions to increase the number of interfaces of the DI digital input module 22, the AI analog input module 25, and the DO relay output module 26.
[0027] After the monitoring device enters the working mode, the control unit 1 establishes a connection with the host computer through the network communication module 13, and uses the network interrupt procedure mechanism to upload the real-time collected vehicle device status information and vehicle status information to the host computer, while receiving and executing the device control commands issued by the host computer.
[0028] Based on the above technical solution, a distributed architecture with separate control unit 1 and execution unit 2 is adopted. High-efficiency collaboration is achieved through master-slave serial communication, which improves system reliability and facilitates functional expansion. Execution unit 2 supports multi-level cascading, flexibly adapting to different vehicle models and equipment configuration requirements. Control unit 1 integrates CAN bus access, GSM remote alarm, and Ethernet communication capabilities, enabling real-time data interaction with the host computer. Even during parking, it can proactively push abnormal information via GSM communication module 15, ensuring 24 / 7 safety monitoring. The monitoring system features an intelligent power management mechanism, dynamically cutting off power to execution unit 2 from control unit 1 and putting the microcontroller into a low-power mode, significantly reducing static energy consumption, making it particularly suitable for special vehicles with long service life. Furthermore, the DI digital input module 22, AI analog input module 25, and DO relay output module 26 comprehensively cover limit status, environmental parameters, and equipment power control, achieving integrated monitoring and remote control of key elements such as the access door, support legs, and hydraulic / electrical systems, effectively preventing safety accidents caused by equipment failure to reset or abnormal status. The overall solution has a clear structure, complete functions, low power consumption, and strong scalability, which significantly improves the intelligent operation and maintenance level and mission support capability of the command and communication vehicle.
[0029] like Figure 2 As shown, the second aspect of the present invention provides a method for monitoring and controlling on-board equipment of a command and communication vehicle based on a microcontroller, comprising the following steps: When the monitoring system is in standby mode, it is woken up by a corresponding wake-up method based on the vehicle status. The vehicle status includes parked and driving states. The monitoring system is a system composed of a control unit 1 and an execution unit 2, used to monitor the status of the on-board equipment. The wake-up methods include timed wake-up and button wake-up. Button wake-up includes a vehicle start signal and a switch signal, wherein the switch signal is a manual button switch, which wakes up the system. When the vehicle is parked, the monitoring system is periodically woken up by the real-time clock built into the microcontroller 11 at preset time intervals. After each timed wake-up, the monitoring system executes the equipment monitoring program. If the status of the on-board equipment is abnormal, it sends a warning message to the remote terminal through the GSM communication module 15 and returns to standby mode. When the vehicle is in motion, the monitoring system is woken up by pressing a button. After being woken up, the monitoring system executes the equipment monitoring program. If the status of the on-board equipment is abnormal, it performs the corresponding operation based on the button wake-up signal and interacts with the host computer through network interruption to upload the status information of the vehicle and equipment.
[0030] Among them, such as Figure 3 As shown, the equipment monitoring procedure flow is as follows: After the monitoring system is awakened, the power control module 14 of the control unit 1 supplies power to the execution unit 1, thereby establishing a serial communication connection between the control unit 1 and the execution unit 2. The control unit collects data from different sensors through the AI analog input module 25 of the execution unit, covering various parameters such as battery power, fuel tank level, and ambient temperature and humidity. In addition, the control unit uses the DI digital input module 22 of the execution unit to detect the status of various limit switches to determine whether the relevant equipment has been correctly reset. The control unit 1 saves the data obtained from the execution unit 2 into memory variables, packages it, and sends it to the host computer through the network communication module 13.
[0031] It should be noted that during the long-term parking of the command and communication vehicle, the monitoring system can periodically and autonomously monitor the status of the on-board equipment and take automatic measures based on the monitoring results, thereby achieving continuous monitoring of the command and communication vehicle equipment.
[0032] In addition, the monitoring system can also be activated by pressing a button in standby mode; button activation methods include vehicle start signal and power switch signal. When the button wake-up method is the vehicle start signal, if the monitoring system receives the vehicle start signal, the monitoring system executes the device monitoring program to detect the status of the vehicle-mounted equipment; determines whether the vehicle-mounted equipment has an abnormal status that affects driving safety; if yes, it sends a warning message to the remote terminal through the GSM communication module 15 and does not allow the vehicle to enter the driving state until the abnormal status is eliminated; otherwise, it allows the vehicle to enter the driving state.
[0033] When the button wake-up method is a switch signal, if the monitoring system receives the switch signal, it establishes communication with the host computer through the network interrupt program and uploads the status information of the vehicle equipment to the host computer; if the monitoring system receives the switch signal again, it terminates the current monitoring process, closes the device monitoring program, and enters standby mode.
[0034] Among them, such as Figure 4 The flow of the network interrupt procedure is shown below: When the network communication module 13 receives the control command data packet from the host computer, the microcontroller 11 parses the control command data packet. Based on the parsing result, the control unit 1 sends the corresponding control command to the serial port communication module 23 of the execution unit 2 through the serial port communication module 16. If the control command is the output command of the DO relay output module 26, the power supply of the relay output module 26 is turned on or off. If the control command is a query command, the device monitoring program is called to return data. If it is a special command (such as system restart), the corresponding operation is executed. After execution, the system generates an execution result feedback message, such as "success" or "failure", and sends the control command back to the host computer through the network communication module 13 to realize closed-loop control. After the feedback is sent, the program exits and waits for the next command.
[0035] like Figure 5 The procedure for shutting down the device monitoring program is as follows: The monitoring system is activated by a button or external signal. At this time, the system is in working condition and needs to be shut down in an orderly manner.
[0036] The system determines whether the shutdown request originates from a host computer, such as a remote dispatch platform. If not, it outputs the message "Please shut down the host computer first" and terminates the current process to prevent unauthorized shutdown. If yes, it shuts down the AC output / input contactors and the DC output / input contactors. Shutting down the AC output contactors disconnects the power to AC loads (such as lights and air conditioners); shutting down the DC output contactors disconnects the power to DC devices (such as radios, pan-tilt units, and tripping mechanisms); shutting down the AC input contactors disconnects the mains power or generator power; and shutting down the DC input contactors disconnects the battery or other DC power input. Control unit 1, through power control module 17, cuts off the power supply to execution unit 2, causing it to completely stop working. Simultaneously, microcontroller 11 enters low-power mode, retaining only basic wake-up functionality. With all power and loads now off, the system completes the safe shutdown process and finally enters low-power standby mode. In this mode, the system can be woken up periodically or restarted by pressing a button.
[0037] Based on the above technical solutions, a microcontroller-based method for monitoring and controlling onboard equipment in command and communication vehicles is provided. With its high efficiency, flexibility, and intelligent management, it demonstrates significant advantages in the field of special vehicle operation and maintenance. First, after power-on initialization, the system can quickly perform a comprehensive status check on the onboard equipment, ensuring that it automatically enters standby mode after normal operation. It enters a low-power state by cutting off the power supply to execution unit 2 and shutting down the power supply to peripherals, greatly reducing energy consumption, making it particularly suitable for command and communication vehicles parked for extended periods. Second, the system supports both timed wake-up and button wake-up, ensuring timely response under any circumstances. Whether it's a periodic check or an emergency start, it can immediately begin work and complete equipment status assessment, improving system response speed and reliability. Furthermore, by integrating the GSM communication module 15, it can promptly send early warning information to the superior terminal when an anomaly is detected, realizing remote monitoring and fault early warning, effectively avoiding the risk of task interruption due to equipment failure. The application of the AI analog input module 25 and the DI digital input module 22 enables the monitoring system to accurately collect environmental parameters and limit switch status, providing solid data support for the safe operation of the onboard equipment. Of particular note is that this method employs a network interrupt procedure mechanism to achieve real-time data uploading and command reception, ensuring efficient and stable information exchange between the host computer and the vehicle-mounted equipment. Overall, this not only improves the automation management level of the command and communication vehicle but also significantly enhances its adaptability and survivability in complex environments, which is of great significance for improving the mission execution efficiency and safety of special vehicles.
[0038] like Figure 6 As shown, the third aspect of the present invention provides a product form of a microcontroller-based vehicle-mounted equipment monitoring and control system for command and communication vehicles; wherein, the front of the product includes an information display screen 31, a system indicator light 32, a system switch button 33, and a buzzer 34; the back of the product includes a network interface 35, a serial port 36, a control interface 37, and a power interface 38. Among them, serial port 36 includes serial port-1, serial port-2 and serial port-3; control interface 37 includes control-1 and control-2; system indicator 32 includes system power indicator, module power indicator and working status indicator.
[0039] The above primarily describes the solutions of the embodiments of this application from the perspective of device implementation. It is understood that each device, such as a microcontroller-based onboard monitoring and control device for a command and communication vehicle, includes at least one of the hardware structures and software modules corresponding to each function in order to achieve the aforementioned functions. Those skilled in the art should readily recognize that, based on the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0040] This application embodiment can divide the microcontroller-based on-board equipment monitoring and control device for command and communication vehicles into functional units according to the above method example. For example, each function can be divided into separate functional units, or two or more functions can be integrated into one processing unit. The integrated unit can be implemented in hardware or as a software functional unit. It should be noted that the unit division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.
[0041] When using integrated units, Figure 7 The diagram shows a possible structural schematic of the microcontroller-based vehicle-mounted equipment monitoring and control device (referred to as monitoring and control device 50) involved in the above embodiments. The monitoring and control device 50 includes a processing unit 501 and a communication unit 502, and may also include a storage unit 503. Figure 7 The structural diagram shown can be used to illustrate the structure of the microcontroller-based vehicle-mounted equipment monitoring and control device for command and communication vehicles involved in the above embodiments.
[0042] The processing unit 501 can be a processor or a controller, and the communication unit 502 can be a communication interface, transceiver, transceiver circuit, transceiver device, etc. The term "communication interface" is a general term and may include one or more interfaces. The storage unit 503 can be a memory. When the monitoring and control device 50 is a chip, the processing unit 501 can be a processor or a controller, and the communication unit 502 can be an input interface and / or an output interface, pins, or circuits, etc. The storage unit 503 can be a storage unit within the chip (e.g., a register, cache, etc.) or a storage unit located outside the chip (e.g., read-only memory (ROM), random access memory (RAM, etc.).
[0043] The communication unit can also be called a transceiver unit. The antenna and control circuit with transceiver functions in the monitoring and control device 50 can be considered as the communication unit 502 of the monitoring and control device 50, and the processor with processing functions can be considered as the processing unit 501 of the monitoring and control device 50. Optionally, the device in the communication unit 502 used to implement the receiving function can be considered as a communication unit, which is used to execute the receiving steps in the embodiments of this application. The communication unit can be a receiver, a receiver circuit, etc. The device in the communication unit 502 used to implement the transmitting function can be considered as a transmitting unit, which is used to execute the transmitting steps in the embodiments of this application. The transmitting unit can be a transmitter, a transmitter, a transmitting circuit, etc.
[0044] Figure 7 If the integrated units in the process are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. Storage media for storing computer software products include various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory, random access memory, magnetic disks, or optical disks.
[0045] Figure 7 The units in the process can also be called modules; for example, a processing unit can be called a processing module.
[0046] This application also provides a hardware structure diagram of a microcontroller-based on-board equipment monitoring and control device for command and communication vehicles (denoted as monitoring and control device 60), see [link to relevant documentation]. Figure 8 The monitoring and control device 60 includes a processor 601, and optionally, a memory 602 connected to the processor 601.
[0047] In the first possible implementation, see Figure 8The monitoring and control device 60 also includes a transceiver 603. The processor 601, memory 602, and transceiver 603 are connected via a bus. The transceiver 603 is used to communicate with other devices or communication networks. Optionally, the transceiver 603 may include a transmitter and a receiver. The device in the transceiver 603 that implements the receiving function can be considered as a receiver, which is used to perform the receiving steps in the embodiments of this application. The device in the transceiver 603 that implements the transmitting function can be considered as a transmitter, which is used to perform the transmitting steps in the embodiments of this application.
[0048] Based on the first possible implementation method Figure 8 The structural diagram shown can be used to illustrate the structure of the microcontroller-based vehicle-mounted equipment monitoring and control device for command and communication vehicles involved in the above embodiments.
[0049] in, Figure 8 This can also be illustrated by the system chip in the on-board equipment monitoring and control device of a microcontroller-based command and communication vehicle. In this case, the actions performed by the aforementioned microcontroller-based on-board equipment monitoring and control device of the command and communication vehicle can be implemented by this system chip. The specific actions performed can be found above and will not be repeated here.
Claims
1. A microcontroller-based monitoring and control system for onboard equipment of a command and communication vehicle, characterized in that, It includes a control unit (1) and an execution unit (2); The control unit (1) includes a microcontroller (11), which is connected to an input module (12), a network communication module (13), an output module (14), a GSM communication module (15), a serial port communication module (16), and a power control module (17). The execution unit (2) includes a DMA relay controller (21), which is connected to the DI digital input module (22), the serial port 2 communication module (23), the power supply module (24), the AI analog input module (25), and the DO relay output module (26). The serial port communication module (16) of the control unit (1) is connected to the serial port communication module (2) of the execution unit (2) via a serial bus, and is used to upload collected data and receive control commands; the power control module (17) of the control unit (1) is electrically connected to the power module (24) of the execution unit (2), and is used to control the power supply of the execution unit (2) by the control unit (1).
2. The microcontroller-based vehicle-mounted equipment monitoring and control system for command and communication vehicles according to claim 1, characterized in that, The input unit (12) of the control unit (1) is used to connect to the vehicle CAN bus to obtain vehicle operating status information, the output module (14) is used to connect to the in-vehicle display screen and alarm, the network communication module (13) is used to connect to the host computer for data interaction, the GSM communication module (15) is used to send alarm information to the remote terminal, and the power control module (14) is electrically connected to the power module (24) of the execution unit to control the power supply on and off.
3. The microcontroller-based vehicle-mounted equipment monitoring and control system for command and communication vehicles according to claim 1, characterized in that, The DI digital input module (25) of the execution unit (2) is used to connect to the limit switch and to detect the reset status of the vehicle equipment. The AI analog input module (25) is used to collect vehicle status data, including oil level, liquid level, temperature and humidity. The DO relay output module (26) is used to connect to the power control terminal of the vehicle equipment and to remotely control the power on and off.
4. The microcontroller-based vehicle-mounted equipment monitoring and control system for command and communication vehicles according to claim 1, characterized in that, The DMA relay controller (21) supports multiple unit cascading expansions to increase the number of interfaces of the DI digital input module (22), AI analog input module (25), and DO relay output module (26).
5. The microcontroller-based vehicle-mounted equipment monitoring and control system for command and communication vehicles according to claim 1, characterized in that, The status of the monitoring system includes: After the monitoring system enters the working mode, the control unit (1) establishes a connection with the host computer through the network communication module (13) and uses the network interrupt program mechanism to upload the real-time collected vehicle equipment status information and vehicle status information to the host computer, while receiving and executing the equipment control instructions issued by the host computer.
6. The microcontroller-based vehicle-mounted equipment monitoring and control system for command and communication vehicles according to claim 1, characterized in that, The serial communication between the control unit (1) and the execution unit (2) adopts a master-slave architecture. The control unit (1) initiates a communication request, and the execution unit responds and returns the collected data or executes the control command. The power control module (14) is controlled by the microcontroller (11) and is used to manage the power supply status of the execution unit (1).
7. A method for monitoring and controlling onboard equipment of a command and communication vehicle based on a microcontroller, operating based on the microcontroller-based monitoring and control system for onboard equipment of a command and communication vehicle as described in claims 1-6, characterized in that, include: When the monitoring system is in standby mode, it is woken up by the corresponding wake-up method based on the vehicle status; wherein, the vehicle status includes parked status and driving status; the monitoring system is a system composed of a control unit (1) and an execution unit (2) for monitoring the status of the vehicle equipment; the wake-up method includes timed wake-up and button wake-up; button wake-up includes vehicle start signal and switch signal, wherein the switch signal is a manual button switch to wake up the system; When the vehicle is parked, the monitoring system is periodically woken up by the real-time clock built into the microcontroller (11) at preset time intervals. After each timed wake-up, the monitoring system executes the equipment monitoring program. If the status of the on-board equipment is abnormal, it sends a warning message to the remote terminal through the GSM communication module (15), and the monitoring system returns to standby mode. When the vehicle is in motion, the monitoring system is woken up by pressing a button. After being woken up, the monitoring system executes the equipment monitoring program. If the status of the on-board equipment is abnormal, it performs the corresponding operation based on the button wake-up signal and interacts with the host computer through network interruption to upload the status information of the vehicle and equipment.
8. The method for monitoring and controlling onboard equipment of a command and communication vehicle based on a microcontroller according to claim 7, characterized in that, The button wake-up method is a vehicle start signal, including: If the monitoring system receives a vehicle start signal, the monitoring system executes the equipment monitoring program to detect the status of the vehicle-mounted equipment; determines whether the vehicle-mounted equipment has an abnormal status that affects driving safety; if yes, it sends a warning message to the remote terminal through the GSM communication module (15) and does not allow the vehicle to enter the driving state until the abnormal status is eliminated; if no, it allows the vehicle to enter the driving state.
9. The method for monitoring and controlling onboard equipment of a command and communication vehicle based on a microcontroller according to claim 7, characterized in that, The button wake-up method is a switch signal, including: If the monitoring system receives a switch signal, it establishes communication with the host computer through a network interrupt program and uploads the status information of the vehicle-mounted equipment to the host computer. If the monitoring system receives a switch signal again, it terminates the current monitoring process, shuts down the device monitoring program, and enters standby mode.
10. The method for monitoring and controlling onboard equipment of a command and communication vehicle based on a single-chip microcomputer according to claim 7, characterized in that, In the standby mode, the microcontroller (11) of the control unit (1) controls the power control module (17) to disconnect the power supply to the power module (24) in the execution unit (2).