Multi-form combined controller and communication method
By splitting the main control board into the main control module and interface module, and combining the resource sub-modules, a multi-form combination controller is realized, which solves the problems of fixed structure and difficult maintenance of vulnerable components of the existing Hongmeng controller, and realizes flexible hardware Resource allocation and rapid iteration reduce maintenance costs and resource waste.
Patent Information
- Application Number
- CN202410779318.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-10-01
- 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, difficulty in maintaining vulnerable components, and redundant waste of hardware resources.
Design a multi-form combination controller. By splitting the main control board into the main control module and interface module, combined with resource sub-modules, different forms of combinations can be realized to meet the needs of different application scenarios. Through the drawer structure and CAN bus hardware The filtering mechanism implements hot swapping and unique identification allocation of resource submodules.
It realizes hardware resource configuration based on application scenario requirements, reduces post-maintenance costs, reduces resource waste, and supports rapid iteration and on-demand configuration.
Smart Images

Figure CN118733354A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of controller technology, and in particular to a multi-modal combination controller and a communication method. Background Art
[0002] Hongmeng controller is a controller developed based on Hongmeng open source system. The structure of existing Hongmeng controller is usually composed of shell, main control board and wiring terminals. Figure 1 It 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 a terminal block 3'. The main control board 2' is inserted into the center of the housing 1', sealed with a panel with an opening, and fixed with screws. The terminal block 3' is inserted from the opening and connected to the main control board 2'.
[0003] However, the existing Hongmeng controller has the following problems: 1) The shell and the 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 vulnerable components on the main control board (such as relays, etc.). When the vulnerable components fail, the main control board needs to be replaced, which makes the product difficult to operate and maintain in the later stage; 3) For application scenarios with few interface resource requirements (such as control requirements that only need to light up a lamp), it is easy to cause redundant waste of hardware resources. Therefore, it is necessary to study a controller with a new structure that can 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 different application scenarios for hardware resources and reduce the subsequent maintenance costs.
[0005] In a first aspect, an embodiment of the present invention provides a controller of a multi-mode combination, comprising: a main control board, the main control board comprising a main control module and an interface module;
[0006] The main control module is provided with at least one connecting socket externally, 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 of 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 allocates 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] The embodiment of the present invention provides a controller and communication method with a multi-form combination, the controller comprising: a main control board, the main control board comprising a main control module and an interface module; the main control module is provided with at least one connection socket, the connection socket comprises a signal harness; the interface module comprises at least one resource submodule, the module types of different resource submodules are different, the resource submodule 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 above technical scheme can be arbitrarily combined in the form of a main control module + resource submodule according to the application scenario requirements, so as to meet the control requirements of hardware resources in different application scenarios, and the combination of the main control module and the resource submodule forms products of different forms; in addition, when the resource submodule is damaged, the wiring of the wiring terminal can remain unchanged, and the resource submodule can be directly replaced, which reduces the later maintenance cost. It is convenient for 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, it is possible to configure the resource submodule on demand, which reduces the waste of resources.
[0014] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily 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 It is a structural schematic diagram of a multi-modal combination controller in the prior art;
[0017] Figure 2A schematic diagram of the structure of a main control board in a controller with a multi-form combination provided in the first embodiment of the present invention;
[0018] Figure 3 This is a diagram showing an example of the hardware structure of a main control board in a controller with a multi-form combination provided in the first embodiment of the present invention;
[0019] Figure 4 A schematic diagram of the hardware structure of a controller with multiple combinations 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 Embodiment 2 of the present invention. DETAILED DESCRIPTION
[0021] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme 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 described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0022] It should be noted that the terms "first", "second", etc. in the specification 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 data 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 that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0023] Embodiment 1
[0024] Figure 2 This is a schematic diagram of the structure of a main control board in a multi-mode combination controller provided in 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-modal combined controller includes: a main control board 10, wherein the main control board 10 includes a main control module 11 and an interface module 12;
[0025] The main control module 11 is provided with at least one connection socket 111 externally, and the connection socket 111 includes a signal harness;
[0026] The interface module 12 includes at least one resource submodule 121, and the module types of different resource submodules are different from each other. The resource submodule reserves 121 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 through 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 shell and main control board of the existing controller are relatively fixed in form, it is impossible to expand the interface resources, which limits the application scenarios of the controller; in this embodiment, the main control part circuit of the main control board is separated from the peripheral interface part circuit to realize a controller device with a free combination of resource forms and multiple forms. Specifically, the main control part circuit of the main control board is separated from the peripheral interface part circuit, and the main control part 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, and the connection socket 111 includes a signal harness, which can 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 number of connection sockets 111 reserved in the main control module 11 can be set according to actual conditions, and each connection socket 111 contains the same signal harness. This is equivalent to the same functions provided by each connection socket 111 and the signal harness. If the multi-form combination controller is used in more application scenarios, more connection sockets can be reserved; if the multi-form combination controller is used in fewer application scenarios, fewer connection sockets can be reserved. In this embodiment, there is no specific restriction on the connection method between the signal harness and the connection socket 111. For example, the signal harness can contact 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 of the main control board is separated from the peripheral interface circuit, and the peripheral interface circuit is recorded as the interface module 20. The peripheral interface circuit is simply classified into a plurality of 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 communicate with 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 microprocessor 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 to form a resource submodule 121. In this embodiment, the programs burned into different resource submodules are different, and the types of functions they implement are also different. Exemplarily, the resource submodule 121 can 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 specific module type can also be customized according to the actual needs of the project.
[0033] For example, Figure 3 This is a hardware structure example diagram of a main control board in a multi-mode combination controller provided in the first embodiment of the present invention, such as 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 known that based on this embodiment, the main control board is divided into a main control module 11 and an interface module 12, and the interface module 12 includes different types of resource sub-modules 121, so as to ensure 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, so as to meet 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 wiring of the terminal block can remain unchanged, and the resource sub-module can be directly pulled out and replaced, which greatly reduces the subsequent maintenance costs. It is convenient for 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, which reduces resource waste.
[0035] It is understandable that the multi-form combination controller provided in this embodiment includes not only the main control board 10, but also a housing and connection terminals for carrying the main control board 10. The housing needs to match the shape of the main control board 10 to ensure convenient connection and disconnection between the resource submodule 121 and the main control module 11.
[0036] When configuring resource combinations, redundant slots can be replaced by empty slot placeholders, thus saving hardware costs. For example, a multi-mode combination controller has six slots in total, but a project only needs a resource submodule in one slot to support the project. In this case, the remaining five slots do not need to be connected to real resource submodules, but only empty slot placeholders can be inserted. Empty slot placeholders can be placed on the empty slots.
[0037] The embodiment of the present invention provides a controller with a multi-form combination, which includes: a main control board, the main control board includes a main control module and an interface module; the main control module is provided with at least one connection socket, and the connection socket includes a signal harness; the interface module includes at least one resource submodule, and the module types of different resource submodules are different from each other, and the resource submodule 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 a signal harness; the second peripheral interface of the resource submodule is connected to the device to be controlled. The above technical scheme can be arbitrarily combined in the form of a main control module + resource submodule according to the application scenario requirements to meet the control requirements of hardware resources in different application scenarios. The combination of the main control module and the resource submodule forms products of different forms; in addition, when the resource submodule is damaged, the wiring of the terminal block can remain unchanged, and the resource submodule can be directly replaced, which reduces the subsequent maintenance cost. It is convenient for 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, it is possible to configure the resource submodule on demand, which reduces the waste of resources.
[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 at least includes: 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 wire is a wire connected to the earth, the casing, or a reference potential of zero. It should be clear 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 also may include other required signal lines, which are integrated together to form a signal wiring harness.
[0040] Optionally, the resource submodule includes a micro control unit, and the micro control unit 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 through these peripheral interfaces. The micro control unit is used to control and manage the first peripheral interface and the second peripheral interface. Exemplarily, the micro control unit can control the slot detection line connected to the slot detection line interface to perform voltage signal detection on the slot, and the voltage signals detected by the slot detection line at different slots are different, and the micro control unit can convert the voltage signal into the slot number of the slot.
[0042] Optionally, the structure of the controller adopts a drawer-type manner, 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-type method, and the resource sub-module 121 can be connected to the main control module 11 by inserting the resource sub-module 121 into the drawer cavity of the controller. By inserting different resource sub-modules into the drawer cavity of the controller, the needs of different application scenarios can be met, and the operation is simple. When the wearing parts of the resource module are damaged, the wiring of the terminal block can remain unchanged, and the resource sub-module can be directly pulled out and replaced, which reduces the later maintenance cost.
[0044] Optionally, the signal harness contacts the connection socket in the form of a pin.
[0045] In this embodiment, the signal harness can be contacted 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 shell 20 and a wiring terminal 30; the main control board 10 is inserted into the shell 20, the shell 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 terminal 30 is 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 submodule. It should be clear that the resource submodule 121 needs to be inserted into the main control module 11 of the control board 10 through the opening reserved by the shell 20. Therefore, it is necessary to reserve the same number of openings as the connection seat, and the position of the opening matches the position of the slot reserved for inserting the resource submodule on the main control board to ensure that each connection seat can be inserted into the resource submodule 121. Among them, each opening is inserted with a wiring terminal 30. The wiring 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 are used to tighten or loosen. 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 welding them or winding 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 module 10 (not shown in the figure because it is inserted into 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] In the above technical solution, the controller form can be arbitrarily combined in the form of main control module + resource module according to the application scenario requirements to meet the control requirements of hardware resources in different application scenarios. When the wearing parts of the resource module are damaged, the wiring of the terminal block can remain unchanged, and the resource sub-module can be directly pulled out and replaced, which reduces the subsequent maintenance cost. The combination of the main control module and the sub-module forms products of different forms. It is convenient for the rapid iteration of products. Solving the problem of one module is equivalent to solving the problem of a class of products. In addition, it reduces resource waste and can configure the resource sub-module on demand.
[0052] Embodiment 2
[0053] Figure 5 The flowchart of a communication method of a multi-mode combination controller provided in the second embodiment of the present invention is shown. The method is applicable to the case of controlling hardware in different scenarios, and the method 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 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 module separately, 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 includes 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 is made for the peripheral interface circuit, which is 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, which is recorded as the first peripheral interface, and the other type of peripheral interface is used to pass through the device to be controlled, which is recorded as the second peripheral interface. The device to be controlled may be specifically understood as a device that needs to be subjected to 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 submodule 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 submodule. The protocol supports automatic identification of module types and slots, and the main control module can automatically detect and configure the connected extended resource submodule without manual intervention. When the main control module detects that the resource submodule is inserted into the drawer cavity of the multi-modal combination controller, the main control module can assign a unique identifier to the resource submodule according to the module type, module access position (slot number) and module identification number of the inserted resource submodule, which is recorded as the submodule unified identification number (for example, recorded as CANID).
[0057] S202: filtering data sent by the resource submodule corresponding to the resource submodule uniform identification number through the hardware filtering mechanism of the resource submodule based on the controller area network bus.
[0058] In this embodiment, with the help of the CAN bus hardware filtering mechanism, the resource submodule can only filter the data sent by the assigned CANID, shielding the interference of communication data of other resource submodules, and maximizing the real-time response of the resource submodule to the CAN bus command. The communication control protocol supports hot plugging of resource submodules, which is convenient for upgrading and maintenance of resource submodules.
[0059] The above technical solution can be combined arbitrarily in the form of main control module + resource sub-module according to the application scenario requirements to meet the control requirements of hardware resources in different application scenarios. The combination of main control module and resource sub-module forms products of different forms. In addition, when the resource sub-module is damaged, the wiring of the terminal block can remain unchanged, and the resource sub-module can be directly replaced, which reduces the subsequent maintenance cost. It is convenient for the rapid iteration of products. 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, which reduces resource waste.
[0060] As an optional embodiment of the embodiment of the present invention, based on the above embodiment, 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 allocates 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 through the resource sub-module.
[0062] The submodule information at least includes: 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 controller of the multi-form combination, 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 identification 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 be specifically 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 controller of the multi-form combination.
[0064] In this embodiment, after the resource submodule is inserted into the drawer cavity of the multi-mode combination controller, it can send its own submodule information to the main control module, or it can periodically send its own submodule information to the main control module. When several resource submodules are inserted into the drawer cavity of the multi-mode combination controller, several resource submodules will correspondingly send their own submodule 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, when the main control module receives the submodule information sent by the resource submodule, it will assign a unique identification number to the resource submodule according to the submodule information, which is recorded as the submodule unified identification number. That is, a corresponding mapping table is set for the submodule information of different resource submodules and the submodule unified identification number. 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 also 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 connection socket positions will use slot detection lines for slot detection. The slot detection line will collect voltage values for the corresponding connection sockets. The voltage values collected for different connection sockets are different. The MCU in the resource submodule will collect the voltage value of the pin, and then convert a slot number based on the voltage value. Each resource submodule will know its own slot number, and then send its own slot number to the bus through the CAN bus. The main control module will receive the data reported by all resource submodules, so that it knows which resource submodule is plugged into which position.
[0070] In this embodiment, different resource submodules are burned with different programs. 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 the resource submodule will be powered after it is connected to the slot. After power supply, the resource submodule will automatically take the voltage value collected and identified, and convert a slot number according to the voltage value. Assuming that the controller with a multi-form combination has 6 slots, for example, if the slot number of the resource submodule inserted is detected to be 6, the slot number 6 will be put into the CAN data. Exemplarily, 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, and the resource submodule will report the CAN data to the main control module. When all resource sub-modules are inserted, the main control module will receive 6 different slot numbers and the resource sub-module ID and module type, and can assign a sub-module unified identification number (CANID) to each resource sub-module, thereby making a mapping table. When you want to control it later, you will know which resource sub-module to control according to the mapping table. The resource sub-module ID can use the unique ID of the microprocessor chip at the factory. The main control module will monitor the data reported by the resource sub-module. After receiving this data, it will know which slot has the resource sub-module inserted, what the resource sub-module ID is, and what the module type of the resource sub-module is.
[0071] For example, considering that all resource submodules can receive data when the main control module sends data to the bus, there is a problem. If there is no submodule unified identification number (CANID), all resource submodules will receive the data sent by the main control module and perform the same operation, and there is no way to distinguish them. Therefore, the main control module assigns a unique submodule unified identification number to each inserted resource submodule, so that the resource submodule can identify its own related data based on the submodule unified identification number. For example, slot 1 is inserted with resource submodule A, slot 2 is inserted with resource submodule B, resource submodule A's ID is IDA, and resource submodule B's ID 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 communication data of other resource sub-modules 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-modal combination controller provided in the embodiment of the present invention can be executed by the multi-modal combination controller provided in any embodiment of the present invention, and has the corresponding beneficial effects of the multi-modal combination controller.
[0074] Note that the above are only preferred embodiments of the present invention and the technical principles used. 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 more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A controller with multiple forms, characterized in that: include: A main control board, the main control board comprising a main control module and an interface module; The main control module is provided with at least one connecting socket externally, 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.
2. The controller according to claim 1, characterized in that: The signal wire 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, characterized in that: The resource submodule includes a micro control unit, and the micro control unit 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.
4. The controller according to claim 1, characterized in that: The structure of the controller adopts a drawer-type manner, and the resource submodule is inserted into the drawer cavity of the controller.
5. The controller according to claim 1, characterized in that: The signal harness contacts the connection base in a pin-type manner.
6. The controller according to claim 1, characterized in that: The main control module communicates with the resource submodule via a controller area network bus.
7. The controller according to claim 1, characterized in that: Also includes: Housing and terminals; The main control board is inserted into the shell, the shell 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 reserved on the main control board for inserting the resource submodules; The wiring terminal is inserted from the opening position and connected to the main control board.
8. A communication method for a controller with multiple combinations, characterized in that: The method applied to the multi-modal combination controller according to any one of claims 1 to 7 comprises: When the main control module detects that the resource submodule is inserted into the drawer cavity of the controller, the main control module allocates 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.
9. The method according to claim 8, 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 at least includes: 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.
10. The method according to claim 9, 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
Multi-type IO board card management system and method based on universal controller
CN116226019A
Universal modular pluggable region optimization controller capable of being assembled and access verification method
CN118192388A
Modular flexible load monitoring device
CN209858976U
Intelligent controller of Internet of Things
CN217279336U
Control device and control system
CN218124727U
