CN111610732B - Method, device and equipment for replacing configurable input/output module - Google Patents

Method, device and equipment for replacing configurable input/output module Download PDF

Info

Publication number
CN111610732B
CN111610732B CN202010350797.3A CN202010350797A CN111610732B CN 111610732 B CN111610732 B CN 111610732B CN 202010350797 A CN202010350797 A CN 202010350797A CN 111610732 B CN111610732 B CN 111610732B
Authority
CN
China
Prior art keywords
input
output module
identification code
configuration information
identification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010350797.3A
Other languages
Chinese (zh)
Other versions
CN111610732A (en
Inventor
张健
张国辉
刘凯
袁东明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tongfang Technovator International Technology Beijing Co ltd
Original Assignee
Tongfang Technovator International Technology Beijing Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tongfang Technovator International Technology Beijing Co ltd filed Critical Tongfang Technovator International Technology Beijing Co ltd
Priority to CN202010350797.3A priority Critical patent/CN111610732B/en
Publication of CN111610732A publication Critical patent/CN111610732A/en
Application granted granted Critical
Publication of CN111610732B publication Critical patent/CN111610732B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25124Configure attributes of parameters

Abstract

One or more embodiments of the present disclosure provide a method, an apparatus, and a device for replacing a configurable input/output module, wherein the method for replacing a configurable input/output module applied to a host controller includes: sending a request message for reading an identification code to an input/output module at a preset time interval, wherein the identification code is used for identifying the input/output module; receiving a first identification code sent by the input/output module; comparing the first identification code with a second identification code stored in advance, wherein the second identification code is generated by the main controller according to the configuration information of the input/output module and the identification information of the input/output module; and under the condition that the first identification code is inconsistent with the second identification code, issuing target configuration information to the input/output module.

Description

Method, device and equipment for replacing configurable input/output module
Technical Field
One or more embodiments of the present disclosure relate to the field of automation control technologies, and in particular, to a method, an apparatus, and a device for replacing a configurable input/output module.
Background
I/O modules are I/O modules, where I represents input and O represents output. The input types are: voltage, current, resistance, pulse, switching signal, etc. The output types are: voltage, current, switching signal, etc. Currently, I/O modules can be divided into two categories depending on whether they are configurable: non-configurable and configurable. The I/O channel of the non-configurable I/O module is fixed and the type of the channel is fixed. The input/output channel type of the configurable I/O module is configurable, i.e. the channel can be configured as either a voltage or a current, or a resistor, etc.
For configurable I/O modules, because I/O channels are various in types, the configurable I/O modules can be used in an engineering field after being configured, when the models are damaged on the field and need to be replaced, most of current factories and merchants configure new I/O modules to the field by engineering personnel, or configure the I/O modules synchronously after the I/O modules are replaced on the field and connected with a field control system through PC (personal computer) end software, so that the working time of field workers is increased, the engineering personnel are required to operate control system software skillfully, and the configuration efficiency is low.
Disclosure of Invention
In view of the above, an object of one or more embodiments of the present disclosure is to provide a method, an apparatus and a device for replacing a configurable i/o module, so as to solve the above problems.
One or more embodiments of the present specification provide a method of replacing a configurable input/output module, applied to a host controller, the method including: sending a request message for reading an identification code to an input/output module at a preset time interval, wherein the identification code is used for identifying the input/output module; receiving a first identification code sent by the input/output module; comparing the first identification code with a second identification code stored in advance, wherein the second identification code is generated by the main controller according to the configuration information of the input/output module and the identification information of the input/output module; and under the condition that the first identification code is inconsistent with the second identification code, issuing target configuration information to the input/output module.
Optionally, the method further includes: receiving target configuration information for the input/output module; sending the target configuration information to the input/output module and requesting to acquire identification information of the input/output module; receiving the identification information sent by the input/output module; and generating the second identification code according to the target configuration information and the identification information.
Optionally, the identification information is global identification information of a central processing unit CPU of the input/output module.
Optionally, generating the second identification code according to the target configuration information and the identification information includes: generating a first hash value of the target configuration information through a preset hash algorithm; and forming the second identification code by the first hash value and the identification information.
One or more embodiments of the present specification also provide a method of replacing a configurable input/output module, applied to an input/output module, the method including: generating a first identification code according to the configuration information of the input/output module and the identification information of the input/output module, wherein the first identification code is used for identifying the input/output module; receiving a request message for reading an identification code sent by a main controller; and sending the first identification code to the main controller.
Optionally, the method further includes: after a first identification code generated in advance is sent to the main controller, target configuration information sent by the main controller is received, the target configuration information is updated to the configuration information of the input/output module, the updated first identification code is generated according to the target configuration information and the identification information, and the input/output module is identified by the updated first identification code.
Optionally, generating a first identification code according to the configuration information of the input/output module and the identification information of the input/output module includes: generating a second hash value of the configuration information through a preset hash algorithm; and forming the first identification code by the second hash value and the identification information.
One or more embodiments of the present specification provide an apparatus for replacing a configurable input/output module, applied to a main controller, the apparatus including: a first sending module, configured to send a request message for reading an identification code to an input/output module at a preset time interval, where the identification code is used to identify the input/output module; the first receiving module is used for receiving the first identification code sent by the input/output module; the comparison module is used for comparing the first identification code with a second identification code which is stored in advance, wherein the second identification code is generated by the main controller according to the configuration information of the input/output module and the identification information of the input/output module; and the issuing module is used for issuing target configuration information to the input/output module under the condition that the first identification code is inconsistent with the second identification code.
One or more embodiments of the present specification provide an apparatus for replacing a configurable input/output module, applied to an input/output module, the apparatus comprising: the device comprises a first generation module, a second generation module and a control module, wherein the first generation module is used for generating a first identification code according to configuration information of the input/output module and identification information of the input/output module, and the first identification code is used for identifying the input/output module; the second receiving module is used for receiving a request message for reading the identification code, which is sent by the main controller; and the second sending module is used for sending the first identification code to the main controller.
One or more embodiments of the present specification provide an electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing any of the above-described methods of replacing a configurable input/output module when executing the program.
As can be seen from the foregoing, in the method for replacing a configurable input/output module according to one or more embodiments of the present disclosure, a main controller periodically obtains a first identification code of the input/output module, compares the first identification code with a second identification code stored in advance, determines whether the input/output module is changed or not according to uniqueness of the identification code of the input/output module, and sends target configuration information to the input/output module when it is determined that the input/output module is changed, so that the input/output module can be configured according to the target configuration information, thereby achieving an objective of automatically synchronizing configuration information of the input/output module without manual intervention, facilitating configuration of the input/output module, and improving configuration efficiency.
Drawings
In order to more clearly illustrate one or more embodiments or prior art solutions of the present specification, the drawings that are needed in the description of the embodiments or prior art will be briefly described below, and it is obvious that the drawings in the following description are only one or more embodiments of the present specification, and that other drawings may be obtained by those skilled in the art without inventive effort from these drawings.
FIG. 1 is a flow diagram illustrating a method of replacing a configurable input/output module in accordance with one or more embodiments of the present description;
FIG. 2 is a flow diagram illustrating a method of replacing a configurable input/output module in accordance with one or more embodiments of the present description;
FIG. 3 is a flow diagram illustrating a method of replacing a configurable input/output module in accordance with one or more embodiments of the present description;
FIG. 4 is a block diagram illustrating an apparatus for replacing a configurable input/output module in accordance with one or more embodiments of the disclosure;
FIG. 5 is a block diagram illustrating an apparatus for replacing a configurable input/output module in accordance with one or more embodiments of the disclosure;
FIG. 6 is a block diagram illustrating an electronic device in accordance with one or more embodiments of the present description.
Detailed Description
For the purpose of promoting a better understanding of the objects, aspects and advantages of the present disclosure, reference is made to the following detailed description taken in conjunction with the accompanying drawings.
It is to be noted that unless otherwise defined, technical or scientific terms used in one or more embodiments of the present specification should have the ordinary meaning as understood by those of ordinary skill in the art to which this disclosure belongs. The use of "first," "second," and similar terms in one or more embodiments of the specification is not intended to indicate any order, quantity, or importance, but rather is used to distinguish one element from another. The word "comprising" or "comprises", and the like, means that the element or item listed before the word covers the element or item listed after the word and its equivalents, but does not exclude other elements or items. The terms "connected" or "coupled" and the like are not restricted to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", and the like are used merely to indicate relative positional relationships, and when the absolute position of the object being described is changed, the relative positional relationships may also be changed accordingly.
In a possible application scenario of an I/O module (hereinafter, also referred to as an I/O module), a field engineer converts an I/O module a1 originally running in the a station into the B station for use, and then converts an a1 module back into the a station for use, since the a1 module is reconfigured while the B station is in use, the configuration information of the a module has been changed, and at this time, the a module is converted back into the a station for use, the configuration of the a station cannot be adapted, and unpredictable errors may be generated due to errors in the configuration information. Therefore, how to timely discover the change of the configuration information of the I/O module so as to timely control the change of the configuration information of the I/O module is a problem to be solved.
One or more embodiments of the present specification provide a method for replacing a configurable input/output module, the method being applied to a host controller, wherein the input/output module may be a configurable input/output module, and fig. 1 is a flowchart illustrating a method for replacing a configurable input/output module according to one or more embodiments of the present specification, as shown in fig. 1, the method comprising:
step 101: sending a request message for reading an identification code to an input/output module at a preset time interval, wherein the identification code is used for identifying the input/output module;
for example, after the main controller is powered on every time, an information frame is sent to the input/output module at a preset time interval to request to acquire the identification code of the input/output module.
Alternatively, the identification code of the input/output module may be represented by a string of characters, for example, to identify the information of the input/output module.
Step 102: receiving a first identification code sent by the input/output module;
optionally, the input/output module may have a first identification code pre-stored therein, and the first identification code may be generated by the input/output module according to the configuration information of the input/output module and the CPU global unique ID of the input/output module.
Step 103: comparing the first identification code with a second identification code stored in advance, wherein the second identification code is generated by the main controller according to the configuration information of the input/output module and the identification information of the input/output module;
optionally, before step 103, the main controller receives configuration information of the input/output module from the user, and issues the configuration information to the input/output module so that the input/output module performs configuration according to the configuration information, and the main controller requests the input/output module to obtain identification information of the input/output module, and generates a second identification code according to the identification information and the configuration information of the input/output module. After the main controller obtains the first identification code from the input/output module, whether the input/output module is changed or not is determined by comparing the first identification code with the second identification code, if the first identification code is consistent with the second identification code, the input/output module is not changed, and if the first identification code is inconsistent with the second identification code, the input/output module is changed.
Step 104: and under the condition that the first identification code is inconsistent with the second identification code, issuing target configuration information to the input/output module.
Optionally, when it is determined in step 103 that the first identification code is not consistent with the second identification code, it is determined that the input/output module is changed, at this time, the configuration information in the input/output module is not consistent with the target configuration information of the input/output module stored in the main controller, and in order to ensure that the input/output module can normally operate, the main controller may issue the target configuration information to the input/output module, so that the input/output module updates to its own configuration information according to the target configuration information, and operates with the target configuration information.
In one or more embodiments of the present disclosure, a main controller periodically obtains a first identification code of an input/output module, compares the first identification code with a second identification code stored in advance, determines whether the input/output module has been changed through uniqueness of the identification code of the input/output module, and sends target configuration information to the input/output module when the input/output module has been changed, so that the input/output module can be configured according to the target configuration information, thereby achieving an objective of automatically synchronizing configuration information of the input/output module without manual intervention, facilitating configuration of the input/output module, and improving configuration efficiency.
The above-described change of the module a means a case where the module a is connected by replacing it with another module at the interface to which the module a is originally connected.
In one or more embodiments of the present disclosure, the method for replacing a configurable input/output module may further include:
receiving target configuration information for the input/output module; for example, user configuration information for an input/output module is received.
Sending the target configuration information to the input/output module and requesting to acquire identification information of the input/output module; and sending the target configuration information to the input/output module so that the input/output module performs configuration according to the target configuration information.
Receiving the identification information sent by the input/output module;
and generating the second identification code according to the target configuration information and the identification information. After the second identification code is generated, the second identification code can be stored, and the corresponding relation between the input/output module and the second identification code is recorded.
In one or more embodiments of the present description, the identification information may be a CPU global unique ID of the input/output module.
In one or more embodiments of the present description, generating the second identification code according to the target configuration information and the identification information may include:
generating a first hash value of the target configuration information through a preset hash algorithm; for example, a HASH value (which is an example of a first HASH value) is generated for the target configuration information by a secure HASH algorithm; and forming the second identification code by the first hash value and the identification information. For example, the first hash value may be concatenated with the CPU global unique ID of the input/output module to obtain a character string, and the character string may be used as the second identification code, where the first hash value may be preceded or the CPU global unique ID of the input/output module may be preceded when the first hash value and the CPU global unique ID of the input/output module are concatenated, and the positions of the first hash value and the CPU global unique ID of the input/output module are not limited.
One or more embodiments of the present specification further provide another method for replacing a configurable input/output module, the method being executable by an input/output module, and fig. 2 is a flowchart illustrating a method for replacing a configurable input/output module according to one or more embodiments of the present specification, as shown in fig. 2, the method comprising:
step 201: generating a first identification code according to the configuration information of the input/output module and the identification information of the input/output module, wherein the first identification code is used for identifying the input/output module;
optionally, the configuration information of the input/output module in step 201 may be configuration information stored in the input/output module.
The manner of generating the first identification code according to the configuration information of the input/output module and the identification information of the input/output module is consistent with the manner of generating the second identification code by the main controller according to the configuration information of the input/output module and the identification information of the input/output module, and details are not repeated here.
Step 202: receiving a request message for reading an identification code sent by a main controller;
wherein, the request message of the identification code is used for requesting to acquire the first identification code of the input/output module.
Step 203: and sending the first identification code to the main controller.
In the method for replacing a configurable input/output module according to one or more embodiments of the present disclosure, after receiving a request message of an identification code of a host controller, an input/output module sends a first identification code generated in advance according to its own identification information and its own configuration information to the host controller, so that the host controller can compare the first identification code with a second identification code generated in advance based on the configuration information of the input/output module and the identification information, and when the first identification code and the second identification code are consistent, it can be determined that the input/output module is not changed, otherwise, it can be determined that the input/output module is changed, so that the host controller can know a change condition of the input/output module managed by the host controller in real time. For example, after the configurable input/output module is replaced on site by the user, the main controller can compare the first identification code acquired from the input/output module with the pre-stored second identification code, and immediately synchronize the configuration information of the input/output module to the input/output module if the first identification code and the second identification code are not consistent. So that the input/output module can automatically synchronize the module configuration information without manual intervention.
According to one or more embodiments of the present disclosure, the method for replacing a configurable input/output module may further include:
after a first identification code generated in advance is sent to the main controller, target configuration information sent by the main controller is received, the target configuration information is updated to the configuration information of the input/output module, the updated first identification code is generated according to the target configuration information and the identification information, and the input/output module is identified by the updated first identification code. After the updated first identification code is generated, when the input/output module acquires an identification code acquisition request sent by the main controller, the updated first identification code is sent to the main controller, and correspondingly, after the main controller receives the updated first identification code, the identification code is compared with a prestored second identification code to determine whether the input/output module is changed.
In one or more embodiments of the present description, generating the first identification code according to the configuration information of the input/output module and the identification information of the input/output module may include: generating a second hash value of the configuration information through a preset hash algorithm; and forming the first identification code by the second hash value and the identification information. It should be noted that, when the input/output module generates the first identification code and the main controller generates the second identification code, the used preset hash algorithm is the same, and the main controller can inform the input/output module of the preset hash algorithm by configuring information for the input/output module.
The operations performed by the main controller and the i/o module in the method for replacing the configurable i/o module are described above. In order to clearly illustrate the information interaction between the controller and the input/output module in the method, the method is further described below by way of an example.
As shown in fig. 3, in this example, the method of replacing the configurable input/output module may include the following processes:
the main controller receives target configuration information of a user on an A module (which is an example of the input/output module);
the main controller generates a HASH value by using a secure HASH algorithm according to the target configuration information of the module A by the user;
the main controller asks the module A for the CPU global unique ID of the module, and the ID and the generated HASH form a character sequence;
the main controller sends the target configuration information to the module a (it should be noted that the main controller may send the target configuration information to the module a after acquiring the target configuration information of the module a by the user, or may send the target configuration information to the module a after generating the identification code based on the target configuration information, where this embodiment does not limit the timing for the main controller to execute this step);
the module A uses the same secure HASH algorithm to generate a HASH value for target configuration information, and forms a character sequence with the CPU global unique ID of the module A;
when the main controller normally operates, the main controller periodically sends (for example, immediately sends when the main controller is powered on) an information frame requesting the identification code of the module a to the module a, and the module a responds to the information and sends the identification code of the module a to the main controller;
and the main controller compares whether the received identification code is consistent with the identification code of the module A stored in advance by the main controller, if so, the module A is considered to be unchanged, the target configuration information is not sent to the module A, and if not, the target configuration information is immediately sent to the module A.
One or more embodiments of the present specification further provide an apparatus for replacing a configurable input/output module, the apparatus being applied to a main controller, fig. 4 is a block diagram of the apparatus, and as shown in fig. 4, the apparatus 40 includes:
a first sending module 41, configured to send a request message for reading an identification code to an input/output module at a preset time interval, where the identification code is used to identify the input/output module;
a first receiving module 42, configured to receive the first identification code sent by the input/output module;
a comparison module 43, configured to compare the first identification code with a second identification code stored in advance, where the second identification code is generated by the main controller according to the configuration information of the input/output module and the identification information of the input/output module;
and the issuing module 44 is configured to issue the target configuration information to the input/output module when the first identifier is inconsistent with the second identifier.
In one or more embodiments of the present disclosure, the apparatus for replacing a configurable input/output module may further include:
a third receiving module for receiving target configuration information for the input/output module;
the third sending module is used for sending the target configuration information to the input/output module and requesting to acquire the identification information of the input/output module;
a fourth receiving module, configured to receive the identification information sent by the input/output module;
and the second generating module is used for generating the second identification code according to the target configuration information and the identification information.
In one or more embodiments of the present description, the identification information may be central processing unit CPU global identification information of the input/output module.
In one or more embodiments of the present specification, the second generating module is configured to:
generating a first hash value of the target configuration information through a preset hash algorithm;
and forming the second identification code by the first hash value and the identification information.
One or more embodiments of the present specification further provide another apparatus for replacing a configurable input/output module, the apparatus being applied to an input/output module, fig. 5 is a block diagram of the apparatus, and as shown in fig. 5, the apparatus 50 includes:
a first generating module 51, configured to generate a first identification code according to configuration information of the input/output module and identification information of the input/output module, where the first identification code is used to identify the input/output module;
a second receiving module 52, configured to receive a request message for reading an identification code sent by the host controller;
and a second sending module 53, configured to send the first identification code to the main controller.
In one or more embodiments of the present disclosure, the input/output module may further include:
and a fifth receiving module, configured to receive target configuration information sent by the main controller after sending the pre-generated first identifier to the main controller, update the target configuration information to the configuration information of the input/output module, generate an updated first identifier according to the target configuration information and the identifier information, and identify the input/output module using the updated first identifier.
In one or more embodiments of the present description, the first generating module may be configured to:
generating a second hash value of the configuration information through a preset hash algorithm;
and forming the first identification code by the second hash value and the identification information.
In one or more embodiments of the present description, there is also provided an electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing any of the methods of replacing a configurable input/output module as provided in one or more embodiments of the present description when executing the program.
It should be noted that the method of one or more embodiments of the present disclosure may be performed by a single device, such as a computer or server. The method of the embodiment can also be applied to a distributed scene and completed by the mutual cooperation of a plurality of devices. In such a distributed scenario, one of the devices may perform only one or more steps of the method of one or more embodiments of the present disclosure, and the devices may interact with each other to complete the method.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
For convenience of description, the above devices are described as being divided into various modules by functions, and are described separately. Of course, the functionality of the modules may be implemented in the same one or more software and/or hardware implementations in implementing one or more embodiments of the present description.
The apparatus of the foregoing embodiment is used to implement the corresponding method in the foregoing embodiment, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Fig. 6 is a schematic diagram illustrating a more specific hardware structure of an electronic device according to this embodiment, where the electronic device may include: a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050. Wherein the processor 1010, memory 1020, input/output interface 1030, and communication interface 1040 are communicatively coupled to each other within the device via bus 1050.
The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solutions provided in the embodiments of the present disclosure.
The Memory 1020 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, or the like. The memory 1020 may store an operating system and other application programs, and when the technical solution provided by the embodiments of the present specification is implemented by software or firmware, the relevant program codes are stored in the memory 1020 and called to be executed by the processor 1010.
The input/output interface 1030 is used for connecting an input/output module to input and output information. The i/o module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The communication interface 1040 is used for connecting a communication module (not shown in the drawings) to implement communication interaction between the present apparatus and other apparatuses. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, Bluetooth and the like).
Bus 1050 includes a path that transfers information between various components of the device, such as processor 1010, memory 1020, input/output interface 1030, and communication interface 1040.
It should be noted that although the above-mentioned device only shows the processor 1010, the memory 1020, the input/output interface 1030, the communication interface 1040 and the bus 1050, in a specific implementation, the device may also include other components necessary for normal operation. In addition, those skilled in the art will appreciate that the above-described apparatus may also include only those components necessary to implement the embodiments of the present description, and not necessarily all of the components shown in the figures.
Computer-readable media of the present embodiments, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; within the spirit of the present disclosure, features from the above embodiments or from different embodiments may also be combined, steps may be implemented in any order, and there are many other variations of different aspects of one or more embodiments of the present description as described above, which are not provided in detail for the sake of brevity.
In addition, well-known power/ground connections to Integrated Circuit (IC) chips and other components may or may not be shown in the provided figures, for simplicity of illustration and discussion, and so as not to obscure one or more embodiments of the disclosure. Furthermore, devices may be shown in block diagram form in order to avoid obscuring the understanding of one or more embodiments of the present description, and this also takes into account the fact that specifics with respect to implementation of such block diagram devices are highly dependent upon the platform within which the one or more embodiments of the present description are to be implemented (i.e., specifics should be well within purview of one skilled in the art). Where specific details (e.g., circuits) are set forth in order to describe example embodiments of the disclosure, it should be apparent to one skilled in the art that one or more embodiments of the disclosure can be practiced without, or with variation of, these specific details. Accordingly, the description is to be regarded as illustrative instead of restrictive.
While the present disclosure has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of these embodiments will be apparent to those of ordinary skill in the art in light of the foregoing description. For example, other memory architectures (e.g., dynamic ram (dram)) may use the discussed embodiments.
It is intended that the one or more embodiments of the present specification embrace all such alternatives, modifications and variations as fall within the broad scope of the appended claims. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of one or more embodiments of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (5)

1. A method for replacing a configurable input/output module, the method being applied to a host controller, the method comprising:
sending a request message for reading an identification code to an input/output module at a preset time interval, wherein the identification code is used for identifying the input/output module;
receiving a first identification code sent by the input/output module, wherein the first identification code is generated by the input/output module according to self configuration information and self identification information, and the identification information is Central Processing Unit (CPU) global identification information of the input/output module;
comparing the first identification code with a second identification code stored in advance, wherein the second identification code is generated by the main controller according to the configuration information of the input/output module and the identification information of the input/output module;
under the condition that the first identification code is inconsistent with the second identification code, target configuration information is issued to the input/output module;
wherein the method further comprises:
receiving target configuration information for the input/output module;
sending the target configuration information to the input/output module and requesting to acquire identification information of the input/output module;
receiving the identification information sent by the input/output module;
generating the second identification code according to the target configuration information and the identification information, including:
generating a first hash value of the target configuration information through a preset hash algorithm;
and forming the second identification code by the first hash value and the identification information.
2. A method for replacing a configurable input/output module, the method comprising:
generating a first identification code according to the configuration information of the input/output module and the identification information of the input/output module, wherein the first identification code is used for identifying the input/output module;
receiving a request message for reading an identification code sent by a main controller;
sending the first identification code to the main controller;
under the condition that the first identification code is inconsistent with a second identification code pre-stored in the main controller, receiving target configuration information issued by the main controller; the second identification code is generated by the main controller according to the configuration information of the input/output module and the identification information of the input/output module;
wherein the method further comprises:
after a first identification code generated in advance is sent to the main controller, target configuration information sent by the main controller is received, the target configuration information is updated to the configuration information of the input/output module, the updated first identification code is generated according to the target configuration information and the identification information, and the input/output module is identified by the updated first identification code;
generating a first identification code according to the configuration information of the input/output module and the identification information of the input/output module, including:
generating a second hash value of the configuration information through a preset hash algorithm;
and forming the first identification code by the second hash value and the identification information.
3. An apparatus for replacing a configurable input/output module, the apparatus being adapted for use with a host controller, the apparatus comprising:
a first sending module, configured to send a request message for reading an identification code to an input/output module at a preset time interval, where the identification code is used to identify the input/output module;
the first receiving module is used for receiving a first identification code sent by the input/output module, wherein the first identification code is generated by the input/output module according to self configuration information and self identification information, and the identification information is Central Processing Unit (CPU) global identification information of the input/output module;
the comparison module is used for comparing the first identification code with a second identification code which is stored in advance, wherein the second identification code is generated by the main controller according to the configuration information of the input/output module and the identification information of the input/output module;
the issuing module is used for issuing target configuration information to the input/output module under the condition that the first identification code is inconsistent with the second identification code;
wherein the master controller is further configured to:
receiving target configuration information for the input/output module;
sending the target configuration information to the input/output module and requesting to acquire identification information of the input/output module;
receiving the identification information sent by the input/output module;
generating the second identification code according to the target configuration information and the identification information, including:
generating a first hash value of the target configuration information through a preset hash algorithm;
and forming the second identification code by the first hash value and the identification information.
4. An apparatus for replacing a configurable input/output module, the apparatus being adapted for use with an input/output module, the apparatus comprising:
the device comprises a first generation module, a second generation module and a control module, wherein the first generation module is used for generating a first identification code according to configuration information of the input/output module and identification information of the input/output module, and the first identification code is used for identifying the input/output module;
the second receiving module is used for receiving a request message for reading the identification code, which is sent by the main controller;
the second sending module is used for sending the first identification code to the main controller;
the second receiving module is further configured to receive target configuration information issued by the main controller when the first identification code is inconsistent with a second identification code pre-stored in the main controller; the second identification code is generated by the main controller according to the configuration information of the input/output module and the identification information of the input/output module;
wherein the input/output module is further configured to:
after a first identification code generated in advance is sent to the main controller, target configuration information sent by the main controller is received, the target configuration information is updated to the configuration information of the input/output module, the updated first identification code is generated according to the target configuration information and the identification information, and the input/output module is identified by the updated first identification code;
generating a first identification code according to the configuration information of the input/output module and the identification information of the input/output module, including:
generating a second hash value of the configuration information through a preset hash algorithm;
and forming the first identification code by the second hash value and the identification information.
5. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of replacing a configurable input/output module as claimed in any one of claims 1 to 2 when executing the program.
CN202010350797.3A 2020-04-28 2020-04-28 Method, device and equipment for replacing configurable input/output module Active CN111610732B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010350797.3A CN111610732B (en) 2020-04-28 2020-04-28 Method, device and equipment for replacing configurable input/output module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010350797.3A CN111610732B (en) 2020-04-28 2020-04-28 Method, device and equipment for replacing configurable input/output module

Publications (2)

Publication Number Publication Date
CN111610732A CN111610732A (en) 2020-09-01
CN111610732B true CN111610732B (en) 2021-09-24

Family

ID=72203184

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010350797.3A Active CN111610732B (en) 2020-04-28 2020-04-28 Method, device and equipment for replacing configurable input/output module

Country Status (1)

Country Link
CN (1) CN111610732B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101010667A (en) * 2004-09-02 2007-08-01 汤姆森许可贸易公司 Method for dynamic configuration of an electronic system with variable input and output signals
CN102664754A (en) * 2012-04-19 2012-09-12 华为技术有限公司 Method and device for updating port index and multiple device system
CN102681844A (en) * 2012-03-12 2012-09-19 成都金亚科技股份有限公司 Method for identifying legality of terminal software of set-top box
CN104537299A (en) * 2014-12-10 2015-04-22 深圳先进技术研究院 Method and system for detecting electronic device, and related apparatuses
CN104584521A (en) * 2012-02-23 2015-04-29 模拟和密码有限公司 Mobile communication device
CN104618146A (en) * 2015-01-04 2015-05-13 上海雷尼威尔技术有限公司 Input and output configurable safety device control system and method
CN105743686A (en) * 2014-12-12 2016-07-06 中兴通讯股份有限公司 Port attribute inheritance method and device
US10250679B1 (en) * 2016-03-30 2019-04-02 EMC IP Holding Company LLC Enabling snapshot replication for storage
US10541686B1 (en) * 2018-11-15 2020-01-21 Xilinx, Inc. Circuit and method for ensuring a stable IO interface during partial reconfiguration of a reprogrammable integrated circuit device

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5768632A (en) * 1996-03-22 1998-06-16 Allen-Bradley Company, Inc. Method for operating inductrial control with control program and I/O map by transmitting function key to particular module for comparison with function code before operating
US6199137B1 (en) * 1999-01-05 2001-03-06 Lucent Technolgies, Inc. Method and device for controlling data flow through an IO controller
US7725205B1 (en) * 2006-09-21 2010-05-25 Novellus Systems, Inc. Apparatus and methods for providing a homogenous I/O interface for controlling a heterogenous mixture of hardware I/O systems
TWI426388B (en) * 2010-05-20 2014-02-11 Nuvoton Technology Corp Super i/o module, computer system and control method thereof
CN104272204B (en) * 2012-03-15 2017-07-11 施耐德电器工业公司 Device address management in automation control system
CN103338110B (en) * 2013-06-19 2016-08-10 广东工业大学 RFID safety authentication based on dynamic I D band search key
US8868808B1 (en) * 2014-03-26 2014-10-21 Cae Inc. Configurable simulator with a plurality of configurable modular cards
EP3859728B1 (en) * 2014-07-10 2024-02-14 Intelligent Platforms, LLC Apparatus and method for electronic labeling of electronic equipment
DE112015006395B4 (en) * 2015-04-01 2024-01-25 Balluff Gmbh Information display of an IO-Link module
US10509736B2 (en) * 2016-07-29 2019-12-17 Advanced Micro Devices, Inc. Controlling access by IO devices to pages in a memory in a computing device
CN106921663B (en) * 2017-03-03 2020-04-10 浙江智贝信息科技有限公司 Identity continuous authentication system and method based on intelligent terminal software/intelligent terminal
CN108377202A (en) * 2018-02-11 2018-08-07 广东美的厨房电器制造有限公司 The distribution method, apparatus and system of smart machine

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101010667A (en) * 2004-09-02 2007-08-01 汤姆森许可贸易公司 Method for dynamic configuration of an electronic system with variable input and output signals
CN104584521A (en) * 2012-02-23 2015-04-29 模拟和密码有限公司 Mobile communication device
CN102681844A (en) * 2012-03-12 2012-09-19 成都金亚科技股份有限公司 Method for identifying legality of terminal software of set-top box
CN102664754A (en) * 2012-04-19 2012-09-12 华为技术有限公司 Method and device for updating port index and multiple device system
CN104537299A (en) * 2014-12-10 2015-04-22 深圳先进技术研究院 Method and system for detecting electronic device, and related apparatuses
CN105743686A (en) * 2014-12-12 2016-07-06 中兴通讯股份有限公司 Port attribute inheritance method and device
CN104618146A (en) * 2015-01-04 2015-05-13 上海雷尼威尔技术有限公司 Input and output configurable safety device control system and method
US10250679B1 (en) * 2016-03-30 2019-04-02 EMC IP Holding Company LLC Enabling snapshot replication for storage
US10541686B1 (en) * 2018-11-15 2020-01-21 Xilinx, Inc. Circuit and method for ensuring a stable IO interface during partial reconfiguration of a reprogrammable integrated circuit device

Also Published As

Publication number Publication date
CN111610732A (en) 2020-09-01

Similar Documents

Publication Publication Date Title
JP5051466B2 (en) Field device management apparatus, field device management system, computer program, recording medium
EP3042254B1 (en) Systems and methods for virtualizing a programmable logic controller
CN108459792B (en) Flow switching method and device and computer equipment
CN111628897B (en) Intelligent equipment initialization method, device and system
CN105224456A (en) A kind of test script generates methods, devices and systems
CN108830605B (en) Mobile payment method, device and payment system
CN110147410B (en) Data verification method, system, device and equipment in block chain type account book
CN111917579A (en) Distributed training method, device, equipment and storage medium
CN111610732B (en) Method, device and equipment for replacing configurable input/output module
CN106302011B (en) Multi-terminal-based test method and terminal
CN111147586B (en) Equipment end control method and device and conference system
CN112463067A (en) Data protection method and equipment in NVMe-oF scene
US10310798B2 (en) Programmable display, information processing apparatus, recording medium, and screen display system
CN107566519B (en) Code operation method and device, server and server cluster
CN106126429B (en) A kind of test method and equipment
CN112437079B (en) Intranet access method and device
CN112287327B (en) Method, device, medium and equipment for easily reconstructing single sign-on system
CN114968225A (en) Micro-service unified construction method, environment generation method and related equipment
CN112000319A (en) Logistics service code generation method, client, electronic equipment and system
KR20140147159A (en) method for monitoring hardware apparatus
CN113703996A (en) Access control method, device and medium based on user and YANG model grouping
CN112333294A (en) Log merging method, device, medium and equipment
CN113111047B (en) Data processing method and device and electronic equipment
CN115314247B (en) Internet of things equipment management method and related equipment
US11044151B2 (en) Method for creating a configuration for setting up a configuration-specific web-based application and generating the configuration-specific web-based application

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant