A multi-modal combination controller and communication method
By splitting the main control board into main control module and interface module, the multi-form combination of Hongmeng controller is realized, solving the problem of structural fixation and maintenance difficulties in the existing technology, and achieving flexible hardware resource configuration and low-cost maintenance.
Patent Information
- Application Number
- CN202410779318.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2025-08-12
- Estimated Expiration
- 2044-06-17
AI Technical Summary
The existing Hongmeng controller has a fixed structure and cannot expand interface resources, resulting in limited application scenarios, high R&D costs, difficulty in replacing vulnerable components, and serious waste of hardware resources.
The main control board is split into a main control module and an interface module. The main control module can be freely combined with multiple types of resource submodules. The resource submodule can be directly replaced when it is easily damaged. The controller LAN bus is used for communication and a unique identification number is assigned to filter data.
It realizes flexible configuration of hardware resources according to the needs of application scenarios, reduces maintenance costs, reduces resource waste, and supports rapid iteration and on-demand configuration.
Smart Images

Figure CN118733354B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of controllers, and in particular to a multi-modal combination controller and a communication method. Background Art
[0002] The HarmonyOS controller is developed based on the HarmonyOS open source system. Existing HarmonyOS controllers typically consist of a housing, a main control board, and terminal blocks. Figure 1 This is a structural diagram of a Hongmeng controller in the prior art, such as Figure 1 As shown, the Hongmeng controller consists of a housing 1', a main control board 2', and terminal blocks 3'. The main control board 2' is inserted into the center of the housing 1', sealed with a panel with an opening, and secured with screws. The terminal blocks 3' are inserted through the opening and connected to the main control board 2'.
[0003] However, the existing Hongmeng controller has the following problems: 1) The shell and main control board are relatively fixed in shape, and the interface resources cannot be expanded, which limits the application scenarios of the Hongmeng controller. In order to meet a new application scenario, a new hardware needs to be made, which takes too long and has high R&D costs. 2) There are fragile components on the main control board (such as relays, etc.). When fragile components fail, the main control board needs to be replaced, which makes the later operation and maintenance of the product difficult; 3) For application scenarios with few interface resource requirements (such as control requirements that only require lighting a light), it is easy to cause redundant waste of hardware resources. Therefore, it is necessary to study a controller with a new structure to solve the above problems. Summary of the Invention
[0004] The embodiments of the present invention provide a controller and a communication method with a multi-modal combination, which can meet the control requirements of hardware resources in different application scenarios and reduce subsequent maintenance costs.
[0005] In a first aspect, an embodiment of the present invention provides a controller with a multi-mode combination, comprising: a main control board, the main control board including a main control module and an interface module;
[0006] The main control module is provided with at least one connecting socket, and the connecting socket includes a signal wiring harness;
[0007] The interface module includes at least one resource sub-module, the module types of different resource sub-modules are different from each other, and the resource sub-module is reserved with a first peripheral interface and a second peripheral interface;
[0008] The first peripheral interface of the resource submodule is connected to the main control module through the signal harness;
[0009] The second peripheral interface of the resource submodule is connected to the device to be controlled.
[0010] In a second aspect, an embodiment of the present invention provides a communication method for a multi-mode combination controller, which is applied to the multi-mode combination controller described in the embodiment of the first aspect, and the method includes:
[0011] When the main control module detects that the resource submodule is inserted into the drawer cavity of the controller, the main control module assigns a unique submodule unified identification number to the resource submodule;
[0012] The data sent by the resource submodule corresponding to the submodule unified identification number is filtered through the hardware filtering mechanism of the resource submodule based on the controller area network bus.
[0013] An embodiment of the present invention provides a controller and communication method with a multi-configuration configuration. The controller includes: a main control board, the main control board including a main control module and an interface module; the main control module is provided with at least one external connector, the connector including a signal wiring harness; the interface module includes at least one resource submodule, different resource submodules having different module types, the resource submodule having a first peripheral interface and a second peripheral interface; the first peripheral interface of the resource submodule is connected to the main control module via the signal wiring harness; and the second peripheral interface of the resource submodule is connected to the device to be controlled. The above technical solution can be arbitrarily combined in a main control module + resource submodule configuration according to application scenario requirements to meet the hardware resource control requirements of different application scenarios. The combination of the main control module and resource submodule forms a product with different configurations. In addition, if a resource submodule is damaged, the terminal wiring remains unchanged and the resource submodule can be directly replaced, reducing subsequent maintenance costs. This facilitates rapid product iteration; solving a problem for one module is equivalent to solving problems for a class of products. Furthermore, resource submodules can be configured on demand, reducing resource waste.
[0014] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0016] Figure 1 This is a schematic diagram of the structure of a multi-modal combination controller in the prior art;
[0017] Figure 2A schematic structural diagram of a main control board in a multi-mode combination controller provided in the first embodiment of the present invention;
[0018] Figure 3 This is an example diagram of the hardware structure of a main control board in a multi-mode combination controller provided in the first embodiment of the present invention;
[0019] Figure 4 A schematic diagram of the hardware structure of a multi-mode combination controller provided in the first embodiment of the present invention;
[0020] Figure 5 A flowchart of a communication method for a multi-modal combination controller provided in the second embodiment of the present invention. DETAILED DESCRIPTION
[0021] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.
[0022] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0023] Example 1
[0024] Figure 2 This is a schematic diagram of the structure of a main control board in a multi-mode combination controller provided by the first embodiment of the present invention. The multi-mode combination controller can be applied to control hardware in different scenarios. Figure 2 As shown, the multi-mode combination controller includes: a main control board 10, which includes a main control module 11 and an interface module 12;
[0025] The main control module 11 is provided with at least one connecting socket 111 externally, and the connecting socket 111 includes a signal wiring harness;
[0026] The interface module 12 includes at least one resource submodule 121. Different resource submodules have different module types. The resource submodule 121 is reserved with a first peripheral interface and a second peripheral interface.
[0027] The first peripheral interface of the resource submodule 121 is connected to the main control module 11 via a signal harness;
[0028] The second peripheral interface of the resource submodule 121 is connected to the device to be controlled.
[0029] Considering that the existing controllers have relatively fixed shells and main control board shapes, it is impossible to expand interface resources, which limits the application scenarios of the controllers. In this embodiment, the main control circuit of the main control board is separated from the peripheral interface circuit to realize a controller device with a free combination of resource shapes and multiple forms. Specifically, the main control circuit of the main control board is separated from the peripheral interface circuit, and the main control circuit is formed into a separate module, which is recorded as the main control module 11. The main control module 11 can reserve a certain number of connection sockets 111 for the outside. The connection socket 111 includes a signal harness. The signal harness may include signal lines such as the controller area network bus (Controller Area Network, CAN), power line, ground line (GND), and slot detection line.
[0030] In this embodiment, the specific number of connection sockets 111 reserved for the main control module 11 can be set according to actual conditions, and each connection socket 111 contains the same signal wiring harness. This is equivalent to the same functions provided by each connection socket 111 and the signal wiring harness. If the multi-form combination controller is used in a large number of application scenarios, more connection sockets can be reserved; if the multi-form combination controller is used in a small number of application scenarios, fewer connection sockets can be reserved. In this embodiment, there is no specific restriction on the connection method between the signal wiring harness and the connection socket 111. For example, the signal wiring harness can be in contact with the connection socket 111 of the main control board 10 in the form of a pin.
[0031] Continuing with the above description, the main control circuit and the peripheral interface circuit of the main control board are separated, and the peripheral interface circuit is recorded as the interface module 12. The peripheral interface circuit is simply classified into multiple different types of resource sub-modules 121. Among them, the resource sub-module 121 can be specifically understood as a module that provides an interface to the outside. The resource sub-module 121 includes two types of peripheral interfaces, one type of peripheral interface is used to communicate with the main control module 11, recorded as the first peripheral interface, and the other type of peripheral interface is used to connect to the device to be controlled, recorded as the second peripheral interface. Among them, the device to be controlled can be specifically understood as a device that needs to be controlled by a controller with a multi-form combination of relays, or data signal input, or digital signal input, or voltage acquisition, or current acquisition, etc.
[0032] In this embodiment, a small microcontroller unit (MCU) is added to each resource submodule 121 to manage and control the peripheral interfaces of the resource submodule 121. The MCU reserves a CAN bus interface and a slot detection interface for external devices, forming a resource submodule 121. In this embodiment, different resource submodules are programmed with different programs and implement different types of functions. Exemplarily, a resource submodule 121 may include a relay control module, a digital signal input module, a digital signal output module, a voltage acquisition module, a current acquisition module, etc. The specific module type can also be customized according to the actual needs of the project.
[0033] For example, Figure 3 This is an example diagram of the hardware structure of a main control board in a multi-mode combination controller provided in the first embodiment of the present invention, as shown in FIG. Figure 3 As shown, the resource submodule 121 in the main control board 10 of the multi-mode combination controller is connected to the connection socket 111 through a signal harness, thereby realizing the control function of the entire multi-mode combination controller.
[0034] From the above description, it can be seen that based on this embodiment, the main control board is divided into a main control module 11 and an interface module 12. The interface module 12 contains different types of resource sub-modules 121, thereby ensuring that the controller form can be arbitrarily combined in the form of a main control module + resource sub-module according to the application scenario requirements, meeting the control requirements of different application scenarios for hardware resources. The combination of the main control module and the resource sub-module forms products of different forms. When the wearing parts of the resource sub-module are damaged, the terminal wiring can remain unchanged, and the resource sub-module can be directly pulled out and replaced, which greatly reduces the subsequent maintenance costs. It facilitates the rapid iteration of products, and solving the problem of one module is equivalent to solving the problem of a class of products. In addition, the resource sub-module can be configured on demand, reducing resource waste.
[0035] It is understood that the multi-modal controller provided in this embodiment includes, in addition to the main control board 10, a housing and connection terminals for supporting the main control board 10. The housing needs to match the shape of the main control board 10 to facilitate connection and disconnection between the resource submodule 121 and the main control module 11.
[0036] When configuring resource combinations, you can replace excess slots with empty slot placeholders, saving hardware costs. For example, a multi-mode controller has six slots, but a project only requires a resource submodule in one slot. In this case, the remaining five slots do not need to be connected to actual resource submodules; instead, empty slot placeholders can be placed in the remaining slots.
[0037] An embodiment of the present invention provides a controller with a multi-form combination, comprising: a main control board, the main control board including a main control module and an interface module; the main control module is provided with at least one external connection socket, the connection socket including a signal wiring harness; the interface module includes at least one resource sub-module, the module types of different resource sub-modules are different, and the resource sub-module is reserved with a first peripheral interface and a second peripheral interface; the first peripheral interface of the resource sub-module is connected to the main control module via a signal wiring harness; the second peripheral interface of the resource sub-module is connected to the device to be controlled. The above technical solution can be arbitrarily combined in the form of a main control module + resource sub-module according to the requirements of the application scenario to meet the control requirements of hardware resources in different application scenarios. The combination of the main control module and the resource sub-module forms products of different forms; in addition, when the resource sub-module is damaged, the terminal wiring can remain unchanged, and the resource sub-module can be directly replaced, reducing the subsequent maintenance costs. It facilitates the rapid iteration of products, and solving the problem of one module is equivalent to solving the problem of a class of products. In addition, the resource sub-module can be configured on demand, reducing resource waste.
[0038] Optionally, the signal harness includes at least a controller area network bus, a power line, a ground line, and a slot detection line.
[0039] In this embodiment, the signal wiring harness includes at least: a CAN bus, a power line, a ground line, and a slot detection line. Among them, the power line is used to supply power to the resource submodule 121, the CAN bus is used to support communication between the main control module 11 and the resource submodule 121, and the slot detection line is used to detect the slot number of the slot into which the resource submodule is inserted. The ground line is a wire connected to the earth, the housing, or a reference potential of zero. It should be understood that the signal wiring harness not only includes signal lines such as the CAN bus, the power line, the ground line, and the slot detection line, but may also include other required signal lines, which are integrated together to form the signal wiring harness.
[0040] Optionally, the resource submodule includes a micro control unit, which is used to control and manage the first peripheral interface and the second peripheral interface. The first peripheral interface includes a controller area network bus interface and a slot detection line interface.
[0041] In this embodiment, the first peripheral interface includes a CAN bus interface and a slot detection line interface, and the resource submodule 121 is connected to the main control module 11 via these peripheral interfaces. The microcontroller unit is used to control and manage the first peripheral interface and the second peripheral interface. For example, the microcontroller unit can control the slot detection line connected to the slot detection line interface to perform voltage signal detection on the slot. The voltage signals detected by the slot detection line at different slots are different, and the microcontroller unit can convert the voltage signal into the slot number of the slot.
[0042] Optionally, the controller adopts a drawer-type structure, and the resource submodule is inserted into the drawer cavity of the controller.
[0043] In this embodiment, the hardware structure of the multi-modal controller adopts a drawer-style design. Simply inserting the resource submodule 121 into the controller's drawer cavity connects it to the main control module 11. By inserting different resource submodules into the controller's drawer cavity, the requirements of different application scenarios can be met, providing simplified operation. If a resource module's consumable parts are damaged, the terminal connections remain unchanged, and the resource submodule can be simply removed and replaced, reducing subsequent maintenance costs.
[0044] Optionally, the signal harness contacts the connection base in the form of a pin.
[0045] In this embodiment, the signal harness can be brought into contact with the connection socket of the main control board in the form of a pin.
[0046] Optionally, the main control module communicates with the resource sub-module via a controller area network bus.
[0047] In this embodiment, the main control module 11 and the resource sub-module 121 are connected and communicated in the form of a CAN bus.
[0048] Optionally, the controller also includes: a housing 20 and wiring terminals 30; the main control board 10 is inserted into the housing 20, the housing 20 is sealed with a panel with openings and fixed with screws, the number of openings is consistent with the number of connecting sockets, and the position of the openings matches the position of the slot reserved for inserting the resource sub-module on the main control board; the wiring terminals 30 are inserted from the opening position and connected to the main control board 10.
[0049] Among them, the slot can be understood as a slot on the main control board for inserting the resource sub-module. It should be clear that the resource sub-module 121 needs to be inserted into the main control module 11 of the main control board 10 through the opening reserved in the shell 20. Therefore, it is necessary to reserve the same number of openings as the connection sockets. The positions of the openings match the positions of the slots reserved for inserting the resource sub-modules on the main control board to ensure that each connection socket can be inserted into the resource sub-module 121. Among them, each opening is inserted with a terminal 30. The terminal is used to facilitate the connection of wires. It is actually a piece of metal sheet sealed in insulating plastic. There are holes at both ends for inserting wires and screws for tightening or loosening. For example, two wires sometimes need to be connected and sometimes need to be disconnected. At this time, they can be connected with terminals and can be disconnected at any time without having to weld them or wrap them together. It is very convenient and quick.
[0050] For example, Figure 4A schematic diagram of the hardware structure of a controller with multiple combinations provided in the first embodiment of the present invention is shown in FIG. Figure 4 As shown, the multi-form combination controller includes a main control board 10 (not shown in the figure because it is inserted inside the shell 20), a shell 20 and a terminal block 30. The hardware structure of the multi-form combination controller adopts a drawer-type method, and the resource sub-module 121 can be inserted into the drawer cavity of the controller.
[0051] With this technical solution, the controller form factor can be arbitrarily combined into a main control module + resource module configuration, tailored to the application scenario's hardware resource control requirements. If a resource module's consumable parts are damaged, the terminal block wiring remains unchanged, and the resource submodule can simply be removed and replaced, reducing ongoing maintenance costs. The combination of the main control module and submodules creates a variety of product forms, facilitating rapid product iteration. Solving a problem with one module is equivalent to solving problems for an entire category of products. Furthermore, resource waste is reduced, enabling on-demand configuration of resource submodules.
[0052] Example 2
[0053] Figure 5 This is a flow chart of a communication method for a multi-mode combination controller provided in the second embodiment of the present invention. This method is applicable to the control of hardware in different scenarios, and is applied to the multi-mode combination controller mentioned above. Figure 5 As shown, the method includes:
[0054] S201 : When the main control module detects that the resource sub-module is inserted into the drawer cavity of the controller, the main control module allocates a unique sub-module unified identification number to the resource sub-module.
[0055] In this embodiment, the main control circuit of the main control board is separated from the peripheral interface circuit to realize a controller device with a free combination of resource forms and multi-form combination. Specifically, the main control circuit of the main control board is separated from the peripheral interface circuit, and the main control circuit is formed into a separate module, which is recorded as the main control module. The main control module can reserve a certain number of connection sockets for the outside, and the connection socket contains a signal harness, which can include signal lines such as CAN bus, power line, ground line (GND), slot detection line, etc. The peripheral interface part is recorded as an interface module. A simple classification of the peripheral interface circuit is performed and divided into multiple different types of resource sub-modules. Among them, the resource sub-module can be specifically understood as a module that provides an interface to the outside. The resource sub-module includes two types of peripheral interfaces, one type of peripheral interface is used to communicate with the main control module, recorded as the first peripheral interface, and the other type of peripheral interface is used to connect to the device to be controlled, recorded as the second peripheral interface. The device to be controlled may be specifically understood as a device that requires relay control, data signal input, digital signal input, voltage acquisition, current acquisition, etc. through a controller in a multi-mode combination.
[0056] In this embodiment, the communication protocol between the main control module and the resource sub-module is designed based on the CAN data domain, which is simple and efficient and can ensure reliable communication between the main controller and the extended resource sub-module. The protocol supports automatic identification of module types and slots, and the main control module can automatically detect and configure the connected extended resource sub-module without manual intervention. When the main control module detects that the resource sub-module is inserted into the drawer cavity of the multi-modal combination controller, the main control module can assign a unique identifier to the resource sub-module based on the module type, module access position (slot number) and the module's own identification number of the inserted resource sub-module, which is recorded as the sub-module unified identification number (for example, recorded as CANID).
[0057] S202: Filter the data sent by the resource submodule corresponding to the unified identification number of the resource submodule through the hardware filtering mechanism of the resource submodule based on the controller area network bus.
[0058] In this embodiment, the CAN bus hardware filtering mechanism allows the resource submodule to filter only data sent by the assigned CAN ID, shielding it from interference from communication data from other resource submodules. This maximizes the resource submodule's real-time response to CAN bus commands. The communication control protocol supports hot-swappable resource submodules, facilitating upgrades and maintenance.
[0059] The above technical solution can be combined in any combination of a main control module and resource submodules, depending on the application scenario, to meet the hardware resource control requirements of different application scenarios. The combination of the main control module and resource submodules creates a variety of product forms. In addition, if a resource submodule is damaged, the terminal wiring can remain unchanged and the resource submodule can be directly replaced, reducing subsequent maintenance costs. This facilitates rapid product iteration; solving a problem with one module is equivalent to solving problems for an entire category of products. Furthermore, the ability to configure resource submodules on demand reduces resource waste.
[0060] As an optional embodiment of the embodiment of the present invention, based on the above embodiment, it can be optimized that when the main control module detects that the resource sub-module is inserted into the cavity of the multi-form combination controller, the main control module assigns a unique sub-module unified identification number to the resource sub-module, including:
[0061] a1) After the resource sub-module is inserted into the drawer cavity of the multi-mode combination controller, sub-module information related to the resource sub-module is sent to the main control module via the resource sub-module.
[0062] The submodule information includes at least: the module type of the resource submodule, the module's own identification number, and the module access location.
[0063] In this embodiment, when the resource submodule is inserted into the drawer cavity of the multi-form combination controller, the resource submodule will send information related to itself to the main control module. In this embodiment, the information related to the resource submodule is recorded as the submodule information of the resource submodule. The submodule information of the resource submodule may include the module type of the resource submodule, the module's own identification number and the module access position. Among them, the module type of the resource submodule may be a relay control module, a digital signal input module, a digital signal output module, a voltage acquisition module, a current acquisition module, etc. The module's own identification number can be understood as the unique identifier of the module. For example, the module's own identification number of the resource submodule can use the unique ID of the microprocessor unit chip when it leaves the factory. The module access position can specifically be understood as the slot number to which the resource submodule is connected. This information can be obtained by analyzing and processing by the microprocessor in the resource submodule after the resource submodule is inserted into the drawer cavity of the multi-form combination controller.
[0064] In this embodiment, the resource sub-module may transmit its sub-module information to the main control module after being inserted into the drawer cavity of the multi-mode combination controller, or may periodically transmit its sub-module information to the main control module. If multiple resource sub-modules are inserted into the drawer cavity of the multi-mode combination controller, then correspondingly, multiple resource sub-modules will transmit their sub-module information to the main control module.
[0065] b1) Allocate a unique sub-module unified identification number to the resource sub-module according to the sub-module information through the main control module.
[0066] In this embodiment, after the main control module receives the submodule information sent by the resource submodule, it will assign a unique identification number to the resource submodule based on the submodule information, which is recorded as the submodule unified identification number. In other words, a corresponding mapping table is set for the submodule information and submodule unified identification numbers of different resource submodules. The main control module will send the submodule unified identification number assigned to the resource submodule to the resource submodule. Exemplarily, when multiple resource submodules are inserted into the drawer cavity of a controller with a multi-form combination and are connected to different connection sockets respectively, different submodule unified identification numbers are assigned to different resource submodules. This ensures that when the resource submodule receives CAN data, it only needs to filter out the CAN data related to itself.
[0067] The above technical solution specifies the step of allocating a unique sub-module unified identification number to a resource sub-module, and provides a basis for subsequently shielding interference from communication data of other resource sub-modules.
[0068] Furthermore, the method can be optimized so that after the resource sub-module is inserted into the drawer cavity of the multi-form combination controller, the method also includes: determining the slot number of the slot into which the resource sub-module is inserted based on the voltage value collected by the slot detection line through the microprocessor unit in the resource sub-module, and using the slot number as the module access position.
[0069] In this embodiment, different connector positions are detected using slot detection lines. The slot detection lines collect voltage values for the corresponding connectors, and the voltage values collected for different connectors are different. The MCU in the resource submodule collects the voltage values of the pins and converts them into a slot number. Each resource submodule knows its slot number and then sends its slot number to the bus via the CAN bus. The main control module receives data reported by all resource submodules and knows which resource submodule is plugged into which position.
[0070] In this embodiment, the programs burned into different resource submodules are different. Each resource submodule corresponds to a type, and this type is determined by the function of the program burned by the MCU. The main control module will monitor the data on the CAN bus, and after the resource submodule is connected to the slot, it will be powered. After power is supplied, the resource submodule will automatically take the voltage value collected and identified, and convert a slot number based on the voltage value. Assuming that the controller with a multi-mode combination has 6 slots, for example, if it is detected that the slot number of the resource submodule is 6, the slot number 6 will be placed in the CAN data. For example, one byte in the CAN data represents the slot number of the sub-resource module, another byte represents the unique ID of the resource submodule, and another byte represents the module type of the resource submodule. The resource submodule will report the CAN data to the main control module. Once all resource submodules are installed, the main control module receives six different slot numbers, the resource submodule ID, and the module type. It then assigns a unified submodule identification number (CANID) to each resource submodule, creating a mapping table. Later, when control is desired, the mapping table identifies the resource submodule to control. The resource submodule ID can be the unique factory ID of the microprocessor chip. The main control module monitors the data reported by the resource submodule. Upon receiving this data, it determines which slot the resource submodule is inserted into, its ID, and its module type.
[0071] For example, considering that all resource sub-modules can receive data when the main control module sends data to the bus, there is a problem. If there is no sub-module unified identification number (CANID), all resource sub-modules will receive the data sent by the main control module and perform the same operation, and there will be no way to distinguish them. Therefore, the main control module assigns a unique sub-module unified identification number to each inserted resource sub-module, allowing the resource sub-module to identify its own related data based on the sub-module unified identification number. For example, slot 1 is inserted with resource sub-module A, and slot 2 is inserted with resource sub-module B. The ID of resource sub-module A is IDA, and the ID of resource sub-module B is IDB. When the main control module receives the sub-module information reported by resource sub-module A and resource sub-module B, it will assign a unique sub-module unified identification number to A and B respectively, recorded as CANIDA and CANIDB respectively. For example, if the CANID assigned to resource sub-module A is CANIDA, the data related to resource sub-module A and the assigned CANIDA will be assigned to one piece of data. All resource sub-modules will receive the CAN data sent by the main control module. After receiving the CAN data, they will compare whether the sub-module unified identification number is consistent with their own sub-module unified identification number. If they are not consistent, the resource sub-module will not respond. If they are consistent, the resource sub-module will respond, thereby shielding the interference of other resource sub-module communication data and avoiding the waste of computing resources.
[0072] The above technical solution concretizes the step of determining the slot number of the slot into which the resource sub-module is inserted.
[0073] The communication method of the multi-mode combination controller provided in the embodiment of the present invention can be executed by the multi-mode combination controller provided in any embodiment of the present invention, and has the corresponding beneficial effects of the multi-mode combination controller.
[0074] Note that the above are only preferred embodiments of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments, and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments and may include many other equivalent embodiments without departing from the concept of the present invention. The scope of the present invention is determined by the scope of the appended claims.
Claims
1. A controller with multiple configurations, characterized in that: include: A main control board, a housing and wiring terminals, wherein the main control board includes a main control module and an interface module; The main control module is provided with at least one connecting socket, and the connecting socket includes a signal wiring harness; The interface module includes at least one resource sub-module, the module types of different resource sub-modules are different from each other, and the resource sub-module is reserved with a first peripheral interface and a second peripheral interface; The first peripheral interface of the resource submodule is connected to the main control module through the signal harness; The second peripheral interface of the resource submodule is connected to the device to be controlled; The main control module allocates a unique submodule unified identification number to the resource submodule according to the module type, module identification number and module access position of the inserted resource submodule; The resource submodule includes a micro control unit, which is used to control and manage the first peripheral interface and the second peripheral interface, wherein the first peripheral interface includes a controller area network bus interface and a slot detection line interface; The controller adopts a drawer-type structure, and the resource submodule is inserted into the drawer cavity of the controller; The module identification number of the resource submodule adopts the unique ID of the micro control unit chip when it leaves the factory; The main control board is inserted into the housing, which is sealed with a panel with openings and fixed with screws. The number of the openings is consistent with the number of the connecting sockets, and the positions of the openings match the positions of the slots on the main control board reserved for inserting the resource submodules. The connection terminal is inserted from the opening position and connected to the main control board, wherein each opening is inserted with a connection terminal, and the connection terminal is a metal sheet sealed in insulating plastic.
2. The controller according to claim 1, characterized in that The signal wiring harness at least includes: a controller area network bus, a power line, a ground line, and a slot detection line.
3. The controller according to claim 1, wherein: The signal harness contacts the connection base in a pin-type manner.
4. The controller according to claim 1, wherein: The main control module communicates with the resource submodule via a controller area network bus.
5. A communication method for a controller with a multi-modal combination, characterized in that: The method applied to the multi-modal combination controller according to any one of claims 1 to 4 comprises: When the main control module detects that the resource submodule is inserted into the drawer cavity of the controller, the main control module assigns a unique submodule unified identification number to the resource submodule; The data sent by the resource submodule corresponding to the submodule unified identification number is filtered through the hardware filtering mechanism of the resource submodule based on the controller area network bus.
6. The method according to claim 5, characterized in that When the main control module detects that the resource sub-module is inserted into the cavity of the controller, the main control module allocates a unique sub-module unified identification number to the resource sub-module, including: When the resource submodule is inserted into the drawer cavity of the controller, the submodule information related to the resource submodule is sent to the main control module through the resource submodule, and the submodule information includes at least: the module type of the resource submodule, the module's own identification number and the module access position; The main control module allocates a unique sub-module unified identification number to the resource sub-module according to the sub-module information.
7. The method according to claim 6, characterized in that After the resource submodule is inserted into the drawer cavity of the controller, the method further includes: The microprocessing unit in the resource submodule determines the slot number of the slot into which the resource submodule is inserted based on the voltage value collected by the slot detection line, and uses the slot number as the module access position.
Citation Information
Patent Citations
Universal modular pluggable region optimization controller capable of being assembled and access verification method
CN118192388A
Control device and control system
CN218124727U