Controller port automatic configuration system and method and tamper-proof device thereof

By setting up tamper-proof devices between the controller port and external devices, dynamically allocating port correspondence relationships, the problem of malicious replacement or tampering during controller replacement is solved, automatic configuration and security improvement is achieved, and the stability of the control system is ensured. Sex and safety.

CN119272355APending Publication Date: 2025-01-07ATLAS COPCO (NANJING) CONSTR & MINING EQUIP CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411323592.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-23
Publication Date
2025-01-07

AI Technical Summary

Technical Problem

The prior art has failed to effectively avoid the problem of malicious replacement or tampering of the controller during replacement, resulting in threats to system security and stability.

Method used

By setting up a tamper-proof device between the controller port and the external device, dynamically allocating the correspondence between the input and output ports, so that the controller and the tamper-proof device are one by one, ensuring that the port configuration is random and unique, and avoiding the use of non-original parts.

Benefits of technology

It realizes automatic configuration during controller replacement, simplifies hardware replacement and upgrade processes, improves maintenance efficiency, reduces configuration errors and security risks, ensures the security and stability of the control system, and prevents malicious attacks and production interruptions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119272355A_ABST
    Figure CN119272355A_ABST
Patent Text Reader

Abstract

The invention discloses a controller port automatic configuration system and method and a tamper-proof device thereof, and belongs to the technical field of servers. Comprising a controller and a tamper-proof device, and the tamper-proof device is arranged between a control device and external equipment; the controller comprises an input end and an output end; the input end comprises at least two input ports, and the output end comprises at least two output ports; the corresponding relation between the input port of the controller and the external input port is randomly generated; the corresponding relation between the output port of the controller and the external output port is randomly generated; wherein the input end transmits a signal received from external equipment through the tamper-proof device to the controller, and the output end outputs a control signal generated by the controller through the tamper-proof device so as to drive the external equipment to work.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of servers, and more particularly to a system and method for automatically configuring a controller port and an anti-tampering device thereof. Background Art

[0002] At present, controllers are widely used in many fields as a technology or method to achieve the expected goals of the system by collecting, processing and feeding back information. Their configuration and replacement are constantly evolving due to factors such as technological progress, equipment aging and market demand. With the continuous development of technology and the continuous changes in the market, controllers will continue to play an important role and promote progress and development in various fields.

[0003] With the continuous advancement of technology, controllers are often accompanied by rapid updates and iterations. Therefore, in order to improve production efficiency and product quality, companies may choose to replace controllers to make them have higher performance, more advanced functions and lower costs. It may also be that as the use time increases, the hardware devices in the controller gradually age, resulting in performance degradation and increased failure rate. At this time, replacing the controller also becomes necessary. Furthermore, changes in market demand may also prompt companies to replace controllers. For example, when the market has higher requirements for product accuracy, quality and efficiency, companies may need to replace controllers to meet new market demands. In addition, in some cases, due to compatibility issues between different devices or systems, companies may also need to replace controllers to ensure the normal operation of the entire system.

[0004] In the related art, for example, Chinese patent document CN110096047B provides a method and system for upgrading a robot motion control system, which includes: obtaining an upgrade command from a host computer, turning on a switch flag and an upgrade flag of a main chip of the robot motion control system to start the upgrade, and turning off the switch flag after starting the upgrade; obtaining an upgrade data packet from the host computer, erasing and burning the main chip of the robot motion control system to upgrade it, and turning off the upgrade flag after the upgrade is completed. However, this solution does not provide any technical inspiration for the problem that the control system is easily replaced or tampered with maliciously when it is replaced. Summary of the invention

[0005] 1. Technical issues to be solved

[0006] In response to the problem of how to prevent the controller from being maliciously replaced or tampered with in the prior art, the present invention provides a system and method for automatically configuring the controller port and its anti-tampering device, which can dynamically allocate the input and output ports of the controller to prevent the controller from being maliciously replaced or tampered with when it is replaced.

[0007] 2. Technical solution

[0008] The purpose of the present invention is achieved through the following technical solutions.

[0009] The content of this application is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this application is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.

[0010] Some embodiments of the present application propose a system and method for automatic configuration of a controller port and an anti-tampering device thereof to solve the technical problems mentioned in the above background technology section.

[0011] As the first aspect of the present application, some embodiments of the present application provide a system for automatic configuration of a controller port, comprising a controller and an anti-tampering device, wherein the anti-tampering device is arranged between the control device and an external device; the controller comprises an input end and an output end; the input end comprises no less than 2 input ports, and the output end comprises no less than 2 output ports; the correspondence between the input port of the controller and the external input port is randomly generated; the correspondence between the output port of the controller and the external output port is randomly generated; wherein the input end transmits the signal received from the external device via the anti-tampering device to the controller, and the output end outputs the control signal generated by the controller via the anti-tampering device to drive the external device to work.

[0012] Furthermore, the input end of the controller includes one or more of a digital input port and an analog input port.

[0013] Furthermore, the input end of the controller includes one or more of a serial communication input port, a high-speed counting input port, a pulse output port and a frequency output port.

[0014] Furthermore, the anti-tampering device includes an input adapter, which connects the input end of the controller and the input port of the external device.

[0015] Furthermore, the anti-tampering device includes an output adapter, which connects the output end of the controller and the output port of the external device.

[0016] Furthermore, the controller dynamically allocates the correspondence between the input port of the controller and the external input port, and the correspondence between the output port of the controller and the external output port, so that the controller corresponds one-to-one with the anti-tampering device that cooperates with it.

[0017] Furthermore, the external device includes a first external device and a second external device, the first external device is used to generate an external signal to be transmitted to the controller; the second external device is used to receive a control signal output by the controller to drive the second external device to work.

[0018] Furthermore, the first external device includes one or more of a switch, a button and a sensor.

[0019] Furthermore, the second external device includes one or more of a solenoid valve, an indicator light, a relay and a heater.

[0020] As the second aspect of the present application, some embodiments of the present application provide a controller for a system for automatic configuration of a controller port, and a system for automatic configuration of the above-mentioned controller port. The system for automatic configuration of a controller port includes a controller, and the controller is used to collect, process and feedback information. The controller dynamically allocates the correspondence between the input port of the controller and the external input port, and the correspondence between the output port of the controller and the external output port to make the controller correspond one-to-one with the anti-tampering device that cooperates with it.

[0021] As the third aspect of the present application, some embodiments of the present application provide an anti-tampering device for a system for automatic configuration of a controller port, which is used for the above-mentioned system for automatic configuration of a controller port. The system for automatic configuration of a controller port includes a controller for collecting, processing and feedbacking information, and the anti-tampering device dynamically allocates the input and output of the controller.

[0022] As the fourth aspect of the present application, some embodiments of the present application provide a method for automatic configuration of controller ports implemented according to the above-mentioned system for automatic configuration of controller ports, comprising the following steps: randomly generating a correspondence between the input port of the controller and an external input port; randomly generating a correspondence between the output port of the controller and an external output port; dynamically allocating the correspondence between the input port of the controller and the external input port and the correspondence between the output port and the external output port, so that the controller corresponds one-to-one with the anti-tampering device that cooperates with it.

[0023] 3. Beneficial effects

[0024] Compared with the prior art, the advantages of the present invention are: it can avoid the use of non-original parts and ensure that the control system is not maliciously replaced or tampered with; the system for automatic configuration of the controller port simplifies the process of hardware replacement and upgrade. When the controller port needs to be replaced or upgraded, the system can automatically complete the configuration process without manual intervention or complicated setting steps, which not only improves maintenance efficiency, but also reduces configuration errors and safety hazards caused by human errors; by ensuring the security and stability of the control system, it prevents serious consequences such as production interruption and data leakage caused by malicious attacks or destruction of the control system, thereby improving the security and stability of the control system in many aspects. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1A schematic diagram of the system structure of automatic configuration of controller ports in one embodiment of the present invention;

[0026] Figure 2 A schematic diagram of a conventional controller connection form in one embodiment of the present invention;

[0027] Figure 3 A schematic diagram of a system connection form for automatic configuration of controller ports in an embodiment of the present invention;

[0028] Figure 4 A schematic diagram of another system connection form of automatic configuration of controller ports in one embodiment of the present invention. DETAILED DESCRIPTION

[0029] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0030] Combination Figures 1 to 4 A controller port automatic configuration system of the present invention comprises a controller and an anti-tampering device, wherein the controller is used to collect, process and feedback information, and the anti-tampering device is used to dynamically allocate the input and output of the controller.

[0031] In a specific embodiment, the controller includes a central processing unit (CPU), a memory, an input terminal, and an output terminal. The controller interacts with external devices through the input terminal and the output terminal, and the external devices that generate external signals include switches, sensors, etc. Through the input terminal, the signals enter the central processing unit for calculation and logical judgment, and finally drive external devices such as solenoid valves, indicator lights or relays through the output terminal.

[0032] Specifically, the external device includes a first external device and a second external device. The first external device is used to generate an external signal to transmit to the controller, including a switch and a sensor; the second external device includes a solenoid valve, an indicator light and a relay, which is used to receive the control signal output by the controller to drive the second external device to work.

[0033] Among them, the central processing unit (CPU) executes the instructions of the controller, performs processing tasks such as arithmetic operations and logical judgments, reads instructions and data from the memory, then executes these instructions, and stores the results back to the memory or sends them to the output port. The memory is used to store instructions and data. When the controller starts, the controller loads them from an external storage device (such as ROM, EEPROM or Flash) into the memory. The memory can be of many types, including random access memory (RAM) and read-only memory (ROM). RAM is used to temporarily store data and variables during program execution, while ROM stores unchanged program code. The input end is used to transmit the received external signals or instructions to the controller, the controller is used to collect, process and feedback information, and the output end is used to output the control signal generated by the controller to drive the external device or actuator to work.

[0034] In the workflow of the controller, external signals (such as switch state changes or sensor readings) enter the controller through the input port; the central processing unit reads these input signals and performs operations and logical judgments based on the instructions stored in the memory; based on the processing results, the central processing unit sends control signals to external devices through the output port to drive the opening and closing of the solenoid valve, the on and off of the indicator light, or the on and off of the relay, etc. Through the continuous repetition of this process, the continuous monitoring and control functions of the controller are realized.

[0035] In a specific embodiment, the input end includes a plurality of input ports, which are interfaces for receiving external signals or instructions. These signals include signals from various input ends such as sensors, switches, buttons, keyboards, mice or touch screens. The input ports can convert various physical quantities (such as temperature, pressure, speed, and position, etc.) or human operations (such as key and switch operations) into electrical signals or digital signals that can be processed or recognized by the system. For different types of controllers, the specific form and function of the input end are different, and the number, type and function of the input ports are also different.

[0036] Specifically, the number of input ports depends on the scale and requirements of the controller. For example, in large or complex controllers, hundreds or thousands of input ports are required to receive signals from various sensors and actuators; while in small or simple controllers, the number of input ports is relatively small.

[0037] The configuration and wiring of the input port also vary from controller to controller. Usually, the controller will provide a detailed wiring diagram and port definition so that the input port can be connected correctly. When wiring, adjustments are made according to parameters such as signal polarity, voltage range, current limit, etc. to ensure that the system can work properly and avoid damage.

[0038] Therefore, the input port is the interface for the controller to interact with the outside world, and is used to receive signals from external devices, such as switch status, sensor readings, etc. These signals are read and processed by the central processing unit (CPU) after appropriate conversion (such as analog to digital conversion). Specifically, the number and type of input ports depend on the specific needs and application scenarios of the controller.

[0039] In a specific embodiment, the output end includes a plurality of output ports, which can output the control signal generated by the controller to drive the external device or actuator to work. These output ports are designed according to the specific type, scale and requirements of the controller, and have different electrical characteristics and functions to ensure that the system can accurately and reliably achieve the control target.

[0040] Specifically, the voltage and current range of the output port needs to be matched according to the electrical characteristics of the external device to ensure that the signal can be transmitted correctly and drive the device to work. In addition, the output port needs to have a certain load capacity to drive external devices or actuators. When the load current exceeds the rated value of the port, additional protection measures are required, such as using relay isolation control. Similarly, the controller will provide detailed output port definitions and wiring diagrams so that the output port can be correctly connected to the external device. The wiring method of the output port needs to be selected according to the electrical characteristics of the external device and the requirements of the controller. For example, the relay output port usually drives the external device by controlling the coil of the relay; the transistor output port outputs the control signal by controlling the on and off of the transistor.

[0041] In order to protect the controller from external interference and damage, some protection measures are usually taken at the output port. For example, a photoelectric isolator is used to isolate the output signal from the internal circuit of the controller to reduce interference and improve the stability of the system; or a current limiting resistor or fuse is added before the output port to prevent overcurrent and short circuit faults from damaging the system.

[0042] The output ports are important interfaces for the controller to realize control functions. They realize precise control of the controller by outputting control signals, executing control decisions and driving external devices or actuators.

[0043] Therefore, the output port is used to send the results processed by the central processing unit (CPU) to external devices, such as solenoid valves, indicator lights, relays, etc. The output signal can be a digital signal (such as high and low levels) or an analog signal (such as voltage or current), depending on the interface requirements of the external device. The number and type of output ports also depend on the needs of the controller.

[0044] The anti-tampering device is used to dynamically allocate the corresponding relationship between the input port of the controller and the external input port, and the corresponding relationship between the output port and the external output port, so as to avoid tampering when the controller is replaced.

[0045] In a specific embodiment, the anti-tampering device includes an input adapter and an output adapter, wherein the input adapter is arranged between the input port of the controller and the external input port, and the output adapter is arranged between the input port of the controller and the external output port, so that when the controller is replaced, that is, whenever a new controller is assembled, or when multiple controllers are assembled, the controller will automatically allocate a combination of input ports and output ports.

[0046] Specifically, when the controller and the anti-tampering device are produced, the controller corresponds to the anti-tampering device that cooperates with it one by one; in addition, the corresponding relationship between the input port of the controller and the external input port, and the corresponding relationship between the output port and the external output port are dynamically allocated, that is, the corresponding relationship between the input port of the controller and the external input port, and the corresponding relationship between the output port and the external output port are randomly generated. When the controller and the anti-tampering device are produced and shipped, the corresponding relationship between the input port of the controller and the external input port, and the corresponding relationship between the output port and the external output port can be dynamically allocated, and the controller and the anti-tampering device that cooperates with it can be one by one.

[0047] like Figure 2 The figure shows a traditional controller connection diagram without anti-tampering devices. It can be seen that when the control scheme is determined, the specific functions of the input ports Input1, Input2, Input3 and the output ports Output1, Output2, Output3 are determined accordingly, and the program inside the controller will run according to the corresponding functions of the input and output ports. Because such a controller has fixed input and output ports, when the controller needs to be replaced due to a fault, such a controller is very easy to be maliciously replaced or tampered with, such as using non-original parts.

[0048] like Figure 3 and Figure 4As shown, it is a schematic diagram of any two of the cases listed in the controller connection form of this solution, and the input and output port layout of the controller can be in various forms. Through the anti-tampering device, the external input port is connected to the input port of the controller through the input adapter, so that there is a one-to-one correspondence between the controller and the anti-tampering device, and the input port of the controller and the external input port are a random correspondence obtained by dynamic allocation, and the output port of the controller and the external output port are also a random correspondence obtained by dynamic allocation. Therefore, when replacing the controller, it is necessary to synchronously replace the one-to-one corresponding input adapter and output adapter matched by the new controller when it is produced. Figure 3 and Figure 4 The programs of the two controllers listed in are actually the same, except that the random correspondence between the input ports of the controller and the external input ports and the random correspondence between the output ports of the controller and the external output ports are different.

[0049] like Figure 3 As shown, the external input ports Input1, Input2 and Input3 are connected to the input ports in1, in2 and in3 of the controller respectively through the input connector; the output ports out1, out2 and out3 of the controller are connected to the external output ports Output1, Output2 and Output3 respectively through the output connector.

[0050] like Figure 4 As shown, the external input ports Input1, Input2 and Input3 are connected to the input ports in2, in3 and in1 of the controller respectively through the input connector, and the output ports out1, out2 and out3 of the controller are connected to the external output ports Output3, Output1 and Output2 respectively through the output connector.

[0051] In a specific embodiment, the input port and output port of the controller are not limited to the listed in1, in2, in3 and out1, out2, out3, and there can be more numbers and more permutations and combinations in actual applications. As shown in Table 1, whenever the controller is replaced or multiple controllers are assembled, the controller will automatically select a combination from the combinations in Table 1 for configuration, and the corresponding input and output adapters can be selected according to the configured combination.

[0052] Table 1 Controller input and output port combinations

[0053]

[0054] Specifically, the one-to-one correspondence between the controller and the anti-tampering device, the random correspondence between the controller's input port and the external input port is dynamically assigned, and the random correspondence between the controller's output port and the external output port is also dynamically assigned. This is achieved through the configuration of the controller, that is, the embedded control program.

[0055] The automatic configuration system of the controller port in this solution simplifies the process of hardware replacement and upgrade, without the need for manual intervention or complicated setup steps, thereby improving maintenance efficiency and reducing configuration errors and safety hazards caused by human errors. In addition, it can ensure the security and stability of the control system, prevent serious consequences such as production interruption and data leakage caused by malicious attacks or destruction of the control system, improve the security and stability of the control system in many aspects, avoid the use of non-original parts, and ensure that the control system is not maliciously replaced or tampered with.

[0056] The above schematically describes the invention and its implementation methods, which is not restrictive. Without departing from the spirit or basic features of the invention, the invention can be implemented in other specific forms. What is shown in the accompanying drawings is only one of the implementation methods of the invention. The actual structure is not limited to this, and any figure mark in the claims should not limit the claims involved. Therefore, if a person of ordinary skill in the art is inspired by it, without departing from the purpose of the invention, a structural method and an embodiment similar to the technical solution are designed without creativity, which should all fall within the scope of protection of this patent. In addition, the word "including" does not exclude other elements or steps, and the word "one" before the element does not exclude the inclusion of "multiple" elements. The multiple elements stated in the product claim can also be implemented by one element through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any specific order.

Claims

1. A system for automatic configuration of controller ports, characterized in that: It includes a controller and an anti-tampering device, wherein the anti-tampering device is arranged between the control device and the external device; The controller includes an input end and an output end; the input end includes no less than 2 input ports, and the output end includes no less than 2 output ports; The corresponding relationship between the input port of the controller and the external input port is randomly generated; the corresponding relationship between the output port of the controller and the external output port is randomly generated; The input end transmits the signal received from the external device via the anti-tampering device to the controller, and the output end outputs the control signal generated by the controller via the anti-tampering device to drive the external device to work.

2. The system for automatic configuration of controller ports according to claim 1, characterized in that: The input end of the controller includes one or more of a digital input port and an analog input port.

3. The system for automatic configuration of controller ports according to claim 1, characterized in that: The input end of the controller includes one or more of a serial communication input port, a high-speed counting input port, a pulse output port and a frequency output port.

4. The system for automatic configuration of controller ports according to claim 1, characterized in that: The anti-tampering device includes an input adapter, which connects an input end of the controller and an input port of an external device.

5. The system for automatic configuration of controller ports according to claim 1, characterized in that: The anti-tampering device includes an output adapter, and the output adapter connects the output end of the controller and the output port of the external device.

6. The system for automatic configuration of controller ports according to claim 1, characterized in that: The controller dynamically allocates the correspondence between the input port of the controller and the external input port, and the correspondence between the output port of the controller and the external output port, so that the controller corresponds one-to-one with the anti-tampering device that cooperates with it.

7. The system for automatic configuration of controller ports according to claim 1, characterized in that: The external device includes a first external device and a second external device. The first external device is used to generate an external signal to transmit to the controller; the second external device is used to receive a control signal output by the controller to drive the second external device to work.

8. The system for automatic configuration of controller ports according to claim 7, characterized in that: The first external device includes one or more of a switch, a button, and a sensor.

9. The system for automatic configuration of controller ports according to claim 7, characterized in that: The second external device includes one or more of a solenoid valve, an indicator light, a relay, and a heater.

10. A controller for a system for automatic configuration of a controller port, characterized in that: A system for automatic configuration of controller ports as described in any one of claims 1 to 9, the system comprising a controller for collecting, processing and feeding back information, the controller dynamically assigning correspondences between input ports of the controller and external input ports and between output ports of the controller and external output ports so that the controller corresponds one-to-one with the anti-tampering device that cooperates with it.

11. An anti-tampering device for a system for automatic configuration of a controller port, characterized in that: A system for automatic configuration of controller ports as claimed in any one of claims 1 to 9, wherein the system comprises a controller for collecting, processing and feeding back information, and the anti-tampering device dynamically allocates input and output of the controller.

12. A method for automatic configuration of a controller port implemented by the system for automatic configuration of a controller port according to any one of claims 1 to 9, characterized in that: The following steps are involved: Randomly generate the corresponding relationship between the input port of the controller and the external input port; Randomly generate the corresponding relationship between the output port of the controller and the external output port; The corresponding relationship between the input port of the controller and the external input port, as well as the corresponding relationship between the output port and the external output port, is dynamically allocated so that the controller corresponds one-to-one with the anti-tampering device that cooperates with it.

Citation Information

Patent Citations

  • An upgrade method and system for a robot motion control system

    CN110096047B