CN111427282A - Port mode configuration method and device, storage medium and building control system - Google Patents

Port mode configuration method and device, storage medium and building control system Download PDF

Info

Publication number
CN111427282A
CN111427282A CN202010215272.9A CN202010215272A CN111427282A CN 111427282 A CN111427282 A CN 111427282A CN 202010215272 A CN202010215272 A CN 202010215272A CN 111427282 A CN111427282 A CN 111427282A
Authority
CN
China
Prior art keywords
input
expansion module
port
mode
output
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.)
Granted
Application number
CN202010215272.9A
Other languages
Chinese (zh)
Other versions
CN111427282B (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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202010215272.9A priority Critical patent/CN111427282B/en
Publication of CN111427282A publication Critical patent/CN111427282A/en
Application granted granted Critical
Publication of CN111427282B publication Critical patent/CN111427282B/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

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Programmable Controllers (AREA)

Abstract

The invention discloses a port mode configuration method, a port mode configuration device, a storage medium and a building control system of an expansion module, wherein the method comprises the following steps: automatically configuring the input mode of the input port of the expansion module to obtain a determined input mode of the input port of the expansion module; and/or automatically configuring the output mode of the output port of the expansion module to obtain the determined output mode of the output port of the expansion module; and reporting the determined input mode of the input port of the expansion module and/or the determined output mode of the output port of the expansion module to a preset control end so that the control end controls the input port of the expansion module according to the determined input mode and/or controls the output port of the expansion module according to the determined output mode. According to the scheme, the problem that the point location configuration operation difficulty of the point location interface in the building control system is high can be solved, and the effect of improving the operation convenience of the point location configuration of the point location interface in the building control system is achieved.

Description

Port mode configuration method and device, storage medium and building control system
Technical Field
The invention belongs to the technical field of building control, and particularly relates to a port mode configuration method and device of an expansion module, a storage medium and a building control system, in particular to a port mode automatic configuration method and device of an I/O expansion module based on building control equipment, a storage medium and a building control system.
Background
With the continuous development and progress of building automatic control systems, more and more building buildings use the building automatic control systems. The building automatic control system needs to rely on a network controller and a plurality of point location interfaces to control the building, the number of devices in the building is large, and in the aspects of installation and point location configuration (namely mode configuration of the point location interfaces), after constructors install the building control devices, the constructors need to carry out mode configuration on the used point location interfaces, so that huge workload is brought to the constructors who install the building control system.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The present invention aims to solve the above-mentioned drawbacks, and provide a port mode configuration method and apparatus for an expansion module, a storage medium, and a building control system, so as to solve the problem of difficult point location configuration operation of a point location interface in the building control system, and achieve the effect of improving operation convenience of point location configuration of the point location interface in the building control system.
The invention provides a port mode configuration method of an expansion module, which comprises the following steps: the port mode configuration method of the I/O expansion module applied to the building control system comprises the following steps: automatically configuring the input mode of the input port of the expansion module to obtain a determined input mode of the input port of the expansion module; and/or automatically configuring the output mode of the output port of the expansion module to obtain the determined output mode of the output port of the expansion module; and reporting the determined input mode of the input port of the expansion module and/or the determined output mode of the output port of the expansion module to a preset control end so that the control end controls the input port of the expansion module according to the determined input mode and/or controls the output port of the expansion module according to the determined output mode.
Optionally, wherein automatically configuring an input mode of an input port of the expansion module includes: after the input port of the expansion module is powered on, configuring the input mode of the input port of the expansion module according to the input voltage and the input resistance of the input port of the expansion module; the input mode of the input port of the expansion module comprises the following steps: a resistance input mode, a voltage input mode, a current input mode, and/or a switching value input mode; and/or automatically configuring the output mode of the output port of the expansion module, wherein the automatic configuration comprises the following steps: after the output port of the expansion module is powered on, configuring the output mode of the output port of the expansion module according to the access equipment resistance of the output port of the expansion module; wherein, the output mode of the output port of the expansion module comprises: a voltage output mode, and/or a current output mode.
Optionally, configuring an input mode of the input port of the expansion module according to the input voltage and the input resistance of the input port of the expansion module includes: determining whether an input port of the expansion module can detect an input voltage; if the input voltage can be detected, determining whether the input port of the expansion module can detect the input resistance; if the input resistor can be detected and the detected resistance value of the input resistor reaches a first set resistance value, determining that the input mode of the input port of the expansion module is a current input mode; if the input resistor cannot be detected or the input resistor can be detected and the detected resistance value of the input resistor is smaller than a second set resistance value, determining that the input mode of the input port of the expansion module is a voltage input mode; the second set resistance is much smaller than the first set resistance.
Optionally, the configuring the input mode of the input port of the expansion module according to the input voltage and the input resistance of the input port of the expansion module further includes: in the case that the input voltage cannot be detected, determining whether the input port of the expansion module can detect the input resistance; if the input port of the expansion module can detect the input resistor and the detected resistance value of the input resistor is smaller than the third set resistance value, determining that the input mode of the input port of the expansion module is a resistor input mode; the third set resistance value is larger than the first set resistance value; if the input port of the expansion module can detect the input resistor and the detected resistance value of the input resistor jumps between the fourth set resistance value and the fifth set resistance value within the set time length, determining that the input mode of the input port of the expansion module is a switch input mode; the fifth set resistance value is far larger than the fourth set resistance value; if the input port of the expansion module can detect the input resistor and the detected resistance value of the input resistor tends to infinity, whether the input port of the expansion module can detect the input voltage is determined again.
Optionally, configuring an output mode of the output port of the expansion module according to the access device resistance of the output port of the expansion module, including: an analog quantity detection circuit is arranged at an output port of the expansion module, and a resistance value between the output port of the expansion module and a grounding port is detected through the analog quantity detection circuit to serve as an access equipment resistance of the output port of the expansion module; if the resistance value of the access equipment resistor of the output port of the expansion module is smaller than the sixth set resistor, determining that the output mode of the output port of the expansion module is a current output mode; if the resistance value of the access equipment resistor of the output port of the expansion module is greater than or equal to the sixth set resistor and less than the seventh resistor, determining that the output mode of the output port of the expansion module is a voltage output mode; if the resistance value of the access equipment resistor of the output port of the expansion module tends to the fifth resistor, the resistance value between the output port of the expansion module and the grounding port is detected again; the fifth resistance is much greater than the sixth resistance.
In another aspect, the present invention provides a port mode configuration apparatus for an expansion module, including: the port mode configuration device applied to the I/O expansion module in the building control system comprises: the configuration unit is used for automatically configuring the input mode of the input port of the expansion module to obtain a determined input mode of the input port of the expansion module; and/or the configuration unit is further used for automatically configuring the output mode of the output port of the expansion module to obtain the determined output mode of the output port of the expansion module; and the control unit is used for reporting the determined input mode of the input port of the expansion module and/or the determined output mode of the output port of the expansion module to a preset control end so that the control end controls the input port of the expansion module according to the determined input mode and/or controls the output port of the expansion module according to the determined output mode.
Optionally, the automatically configuring, by the configuration unit, the input mode of the input port of the expansion module includes: after the input port of the expansion module is powered on, configuring the input mode of the input port of the expansion module according to the input voltage and the input resistance of the input port of the expansion module; the input mode of the input port of the expansion module comprises the following steps: a resistance input mode, a voltage input mode, a current input mode, and/or a switching value input mode; and/or the configuration unit automatically configures the output mode of the output port of the expansion module, and the configuration unit comprises: after the output port of the expansion module is powered on, configuring the output mode of the output port of the expansion module according to the access equipment resistance of the output port of the expansion module; wherein, the output mode of the output port of the expansion module comprises: a voltage output mode, and/or a current output mode.
Optionally, the configuring unit configures an input mode of the input port of the expansion module according to the input voltage and the input resistance of the input port of the expansion module, and includes: determining whether an input port of the expansion module can detect an input voltage; if the input voltage can be detected, determining whether the input port of the expansion module can detect the input resistance; if the input resistor can be detected and the detected resistance value of the input resistor reaches a first set resistance value, determining that the input mode of the input port of the expansion module is a current input mode; if the input resistor cannot be detected or the input resistor can be detected and the detected resistance value of the input resistor is smaller than a second set resistance value, determining that the input mode of the input port of the expansion module is a voltage input mode; the second set resistance is much smaller than the first set resistance.
Optionally, the configuration unit configures an input mode of the input port of the expansion module according to the input voltage and the input resistance of the input port of the expansion module, and further includes: in the case that the input voltage cannot be detected, determining whether the input port of the expansion module can detect the input resistance; if the input port of the expansion module can detect the input resistor and the detected resistance value of the input resistor is smaller than the third set resistance value, determining that the input mode of the input port of the expansion module is a resistor input mode; the third set resistance value is larger than the first set resistance value; if the input port of the expansion module can detect the input resistor and the detected resistance value of the input resistor jumps between the fourth set resistance value and the fifth set resistance value within the set time length, determining that the input mode of the input port of the expansion module is a switch input mode; the fifth set resistance value is far larger than the fourth set resistance value; if the input port of the expansion module can detect the input resistor and the detected resistance value of the input resistor tends to infinity, whether the input port of the expansion module can detect the input voltage is determined again.
Optionally, the configuring unit configures the output mode of the output port of the expansion module according to the access device resistance of the output port of the expansion module, and includes: an analog quantity detection circuit is arranged at an output port of the expansion module, and a resistance value between the output port of the expansion module and a grounding port is detected through the analog quantity detection circuit to serve as an access equipment resistance of the output port of the expansion module; if the resistance value of the access equipment resistor of the output port of the expansion module is smaller than the sixth set resistor, determining that the output mode of the output port of the expansion module is a current output mode; if the resistance value of the access equipment resistor of the output port of the expansion module is greater than or equal to the sixth set resistor and less than the seventh resistor, determining that the output mode of the output port of the expansion module is a voltage output mode; if the resistance value of the access equipment resistor of the output port of the expansion module tends to the fifth resistor, the resistance value between the output port of the expansion module and the grounding port is detected again; the fifth resistance is much greater than the sixth resistance.
In accordance with another aspect of the present invention, there is provided a building control system, comprising: the port mode configuration device of the expansion module is described above.
In accordance with the above method, a further aspect of the present invention provides a storage medium comprising: the storage medium has stored therein a plurality of instructions; the instructions are used for loading and executing the port mode configuration method of the expansion module by the processor.
In accordance with the above method, a further aspect of the present invention provides a building control system, comprising: a processor for executing a plurality of instructions; a memory to store a plurality of instructions; the instructions are used for being stored by the memory, and loaded and executed by the processor, so as to implement the port mode configuration method of the expansion module.
According to the scheme of the invention, the automatic configuration of the port mode of the I/O expansion module is realized through the cooperation of program logic and hardware, the automatic configuration of the port mode can be realized, the workload of operation of installation personnel and user personnel is reduced, and the configuration time is saved.
Furthermore, the scheme of the invention can automatically configure the input port mode through program logic and automatically configure the output port mode through detecting the internal resistance value of the access equipment, thereby solving the problem of large operation amount of point location configuration of the I/O expansion module and simplifying the operation amount of point location configuration of the I/O expansion module.
Furthermore, according to the scheme of the invention, the input port mode is automatically configured through program logic, and the output port mode is automatically configured through detecting the internal resistance value of the access equipment, so that the problem of large operation amount of point location configuration of the I/O expansion module can be solved, the problem of complex point location configuration of the I/O expansion module can be solved, and the operation complexity of the point location configuration of the I/O expansion module is simplified.
Furthermore, the scheme of the invention can simplify the port mode configuration difficulty of the I/O expansion module and improve the configuration efficiency by automatically configuring the input port mode and the output port mode based on the I/O expansion module.
Further, according to the scheme of the invention, voltage and resistance judgment is used in the judgment basis through an interface aiming at the I/O expansion module of the building control equipment; in the judgment mode, the modes such as voltage, resistance, current and switch are detailed, the accuracy of interface mode configuration of the I/O expansion module of the building control equipment can be improved, and the flexibility and convenience of the use of the building control equipment can also be improved.
Therefore, according to the scheme provided by the invention, the mode of the input port is automatically configured through program logic, and the mode of the output port is automatically configured through detecting the internal resistance value of the access equipment, so that the problem of high difficulty in point location configuration operation of the point location interface in the building control system is solved, and the effect of improving the operation convenience of the point location configuration of the point location interface in the building control system is achieved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
Fig. 1 is a flowchart illustrating a port mode configuration method of an expansion module according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating an embodiment of determining an input mode according to an input resistance when an input voltage is applied to an input port according to the method of the present invention;
FIG. 3 is a flow chart illustrating an embodiment of determining an input mode according to an input resistance under the condition that there is no input voltage at an input port in the method of the present invention;
fig. 4 is a schematic flowchart of an embodiment of configuring an output mode of an output port of an expansion module according to an access device resistance of the output port of the expansion module in the method of the present invention;
FIG. 5 is a schematic structural diagram of a port mode configuration device of an expansion module according to an embodiment of the present invention;
FIG. 6 is a flow chart of an input mode automatic configuration determination for one embodiment of the building control system of the present invention;
FIG. 7 is a flow chart of an output mode auto-configuration determination for one embodiment of the building control system of the present invention;
FIG. 8 is an output port auto-id pattern diagram of one embodiment of the building control system of the present invention;
FIG. 9 is a topological diagram of a controller and expansion modules of an embodiment of the building control system of the present invention.
The reference numbers in the embodiments of the present invention are as follows, in combination with the accompanying drawings:
102-a configuration unit; 104-control unit.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the specific embodiments of the present invention and the accompanying drawings. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
According to an embodiment of the present invention, a port mode configuration method of an expansion module is provided, as shown in fig. 1, which is a schematic flow chart of an embodiment of the method of the present invention. The port mode configuration method of the expansion module can be applied to port mode configuration of an I/O expansion module in a building control system, namely, can be applied to port mode configuration of a field device I/O expansion module in the building control system, a port of the expansion module can comprise an input port of the expansion module and/or an output port of the expansion module, and the port mode configuration method of the expansion module can comprise the following steps: step S110 and/or step S120; the method can also comprise the following steps: step S130.
At step S110, the input mode of the input port of the expansion module is automatically configured, that is, the external device input mode of the input port of the expansion module is configured, so as to obtain the determined input mode of the input port of the expansion module.
Optionally, the automatically configuring the input mode of the input port of the expansion module in step S110 may include: under the condition that the field external input equipment of the building control system is installed and operates and is connected to the input port of the I/O expansion module, if the field external input equipment is the switch equipment, after the switch of the switch equipment is turned over, after the input port of the expansion module is electrified, the input mode of the input port of the expansion module is configured according to the input voltage and the input resistance of the input port of the expansion module. For example: in an optional specific example, when the input port mode of the I/O expansion module is automatically configured, a constructor finishes installing field devices of the building control system, operates external devices and connects the external devices to the input port of the I/O expansion module, automatically configures the corresponding port mode after the expansion module is powered on, and needs to toggle once to switch if the external devices are switch devices.
The input mode of the input port of the expansion module may include: a resistive input mode, a voltage input mode, a current input mode, and/or a switching value input mode. For example: the input port can be configured into a resistance input mode (such as 0-100k omega), a voltage input mode (such as 0-10V), a current input mode (0-20mA, a 470 omega resistor needs to be connected in the current input mode), a switching value input mode and the like through judgment of program logic.
Therefore, the input mode of the input port of the expansion module is configured according to the input voltage and the input resistance of the input port of the expansion module, so that the mode configuration of the input port of the expansion module is more convenient and accurate, and the multiple modes also facilitate flexible use of users.
More optionally, configuring an input mode of the input port of the expansion module according to the input voltage and the input resistance of the input port of the expansion module may include: and determining the input mode according to the input resistance under the condition that the input voltage exists at the input port.
Referring to the flow diagram of an embodiment of the method of the present invention shown in fig. 2, in which the input mode is determined according to the input resistance when the input voltage is applied to the input port, a specific process of determining the input mode according to the input resistance when the input voltage is applied to the input port is further described, which may include: step S210 to step S240.
Step S210, determining whether the input port of the expansion module can detect the input voltage.
For example: after the I/O expansion module is installed and powered on and started, the voltage of the input port of the I/O expansion module is detected in the first step, and the voltage value is read to judge whether the input port of the I/O expansion module has the voltage value.
In step S220, in the case that the input voltage can be detected, it is determined whether the input port of the expansion module can detect the input resistance.
For example: and if the voltage value at the input port of the I/O expansion module is judged to exist, the resistance of the input port of the I/O expansion module is detected, and the resistance value is read to judge whether the input port of the I/O expansion module has the resistance value.
In step S230, if the input resistor can be detected and the detected resistance value of the input resistor reaches the first set resistance value, it is determined that the input mode of the input port of the expansion module is the current input mode.
For example: if the input port of the I/O expansion module detects that a voltage value exists and a resistance value close to 470 omega is read, the current input mode is determined.
In step S240, if the input resistor is not detected or can be detected and the detected resistance value of the input resistor is smaller than the second set resistance value, the input mode of the input port of the expansion module is determined to be the voltage input mode. The second set resistance is much smaller than the first set resistance.
For example: if the input port of the I/O expansion module detects that the voltage value exists and the resistance value is not read or is smaller, the voltage input mode is judged.
Therefore, the input mode is determined by further following whether the resistance can be detected or not under the condition that the input voltage can be detected by the input port of the expansion module, so that the determination of the input mode is more accurate.
Further optionally, configuring an input mode of the input port of the expansion module according to the input voltage and the input resistance of the input port of the expansion module, which may further include: the process of determining the input mode from the input resistance in the absence of an input voltage at the input port.
In the following, referring to a flowchart of an embodiment of determining the input mode according to the input resistance when the input port has no input voltage in the method of the present invention shown in fig. 3, a specific process of determining the input mode according to the input resistance when the input port has no input voltage is further described, which may include: step S310 to step S340.
In step S310, in the case that the input voltage cannot be detected, it is determined whether the input port of the expansion module can detect the input resistance.
For example: and if the input port of the I/O expansion module is judged to have a voltage value, if the input port of the I/O expansion module detects no voltage value, detecting the resistance of the input port of the I/O expansion module.
In step S320, if the input port of the expansion module can detect the input resistor and the detected resistance value of the input resistor is smaller than the third set resistance value, it is determined that the input mode of the input port of the expansion module is the resistor input mode. The third set resistance is greater than the first set resistance, and in fact, the third set resistance is much greater than the first set resistance.
For example: if the input port of the I/O expansion module detects that no voltage value exists and the read value is less than 100 kilo-ohms, the resistance input mode is judged.
In step S330, if the input port of the expansion module can detect the input resistor and the detected resistance value of the input resistor jumps between the fourth set resistance value and the fifth set resistance value within the set time period, it is determined that the input mode of the input port of the expansion module is the switch input mode. The fifth set resistance is much greater than the fourth set resistance.
For example: if the input port of the I/O expansion module detects no voltage value, if the resistance value is detected to jump between a numerical value and infinity within a period of time, the input mode is judged to be the switching value input mode.
In step S340, if the input port of the expansion module can detect the input resistor and the detected resistance value of the input resistor tends to infinity, it is determined again whether the input port of the expansion module can detect the input voltage.
Thus, the input mode is determined by further following whether the resistance can be detected or not in the case where the input port of the expansion module fails to detect the input voltage, so that the determination of the input mode is more accurate.
At step S120, the output mode of the output port of the expansion module is automatically configured, i.e. the external device output mode of the output port of the expansion module is configured, so as to obtain the determined output mode of the output port of the expansion module.
For example: the configuration mode of the I/O expansion module is divided into input port mode automatic configuration and output port mode automatic configuration by adopting building automatic control equipment and matching program logic and hardware, so that the automatic configuration of the port mode of the I/O expansion module is realized, the workload of operation is reduced for installers and users, the configuration time is saved, and the control can be realized after the installation. The input port mode can be automatically configured through program logic, the output port mode can be automatically configured through detecting the internal resistance value of the access equipment, the problem of large operation amount of point location configuration of the I/O expansion module can be solved, and the problem of complex point location configuration of the I/O expansion module can be solved.
Optionally, the automatically configuring the output mode of the output port of the expansion module in step S120 may include: and under the condition that the field external output equipment of the building control system is installed and operates and is connected to the output port of the I/O expansion module, after the output port of the expansion module is powered on, configuring the output mode of the output port of the expansion module according to the access equipment resistance of the output port of the expansion module. The access device resistor of the output port of the expansion module is the resistor of the external access device. For example: when the output port mode of the I/O expansion module is automatically configured, a constructor finishes installing field equipment of the building control system, operates external equipment and connects the external equipment to the output port of the I/O expansion module, and automatically configures the corresponding port mode after the expansion module is electrified.
The output mode of the output port of the expansion module may include: a voltage output mode, and/or a current output mode. For example: the automatic configuration of the output port is determined by detecting the resistance value of the accessed external device, and can be configured into a voltage output mode and a current output mode.
For example: for the interface of the field device I/O expansion module of the building automatic control system, voltage and resistance judgment is used in the judgment basis. In terms of a judging mode, the mode is divided into modes such as voltage, resistance, current, switch and the like.
Therefore, the output mode of the output port of the expansion module is configured according to the access equipment resistor of the output port of the expansion module, so that the mode configuration of the output port of the expansion module is more convenient and accurate, and the multiple modes are convenient for users to use flexibly.
More optionally, configuring the output mode of the output port of the expansion module according to the access device resistance of the output port of the expansion module, which may be combined with a flowchart of an embodiment, shown in fig. 4, of configuring the output mode of the output port of the expansion module according to the access device resistance of the output port of the expansion module in the method of the present invention, to further describe a process of configuring the output mode of the output port of the expansion module according to the access device resistance of the output port of the expansion module, which may include: step S410 to step S440.
In step S410, an analog quantity detection circuit is disposed at the output port of the expansion module, and a resistance value between the output port of the expansion module and the ground port is detected by the analog quantity detection circuit, so as to serve as an access device resistance of the output port of the expansion module. The analog quantity detection circuit may include an output module circuit and an AD value detection circuit, which are respectively connected to the output port of the expansion module.
In step S420, if the resistance value of the access device resistor of the output port of the expansion module is smaller than the sixth setting resistor, it is determined that the output mode of the output port of the expansion module is the current output mode.
For example: and detecting a resistance value between the output port of the expansion module and the grounding port through the analog quantity detection circuit, and if the detected resistance value is less than 500 omega, switching in a current device, and configuring the output port into a current output mode.
In step S430, if the resistance value of the access device resistor of the output port of the expansion module is greater than or equal to the sixth setting resistor and is less than the seventh resistor, it is determined that the output mode of the output port of the expansion module is the voltage output mode.
For example: and detecting the resistance value between the output port of the expansion module and the grounding port through the analog quantity detection circuit, and if the detected resistance value is in the range of 500-100 k omega, switching in a voltage device, and configuring the output port into a voltage output mode.
Step S440, if the resistance value of the access device resistor of the output port of the expansion module tends to the fifth resistor, re-detecting the resistance value between the output port of the expansion module and the ground port; the fifth resistance is much greater than the sixth resistance.
For example: and detecting the resistance value between the output port and the grounding port of the expansion module through the analog quantity detection circuit, and if the detected resistance value tends to infinity, judging that the equipment is not accessed, and returning to detect again.
Therefore, the output mode of the output port of the expansion module is configured according to the access equipment resistance of the output port of the expansion module, the configuration mode is simple and convenient, and the configuration result is accurate.
In step S130, the determined input mode of the input port of the expansion module and/or the determined output mode of the output port of the expansion module are reported to the preset control end, so that the control end controls the input port of the expansion module according to the determined input mode and/or controls the output port of the expansion module according to the determined output mode. For example: and after the input port of the I/O expansion module determines the input mode, the I/O expansion module reports the mode data of each port to the network controller. For another example: and after the port determines the output mode, the I/O expansion module reports the mode data of each port to the network controller.
Therefore, the mode of the input port and the mode of the output port of the I/O expansion module in the building control system are automatically configured respectively, so that the mode automatic configuration of the input port and the mode automatic configuration of the output port of the expansion module can be realized respectively, and the workload and the operation complexity of manual configuration are greatly reduced.
After a large number of tests, the technical scheme of the embodiment is adopted, and the automatic configuration of the port mode of the I/O expansion module is realized through the cooperation of program logic and hardware, so that the automatic configuration of the port mode can be realized, the workload of operation of installation personnel and user personnel is reduced, and the configuration time is saved.
According to the embodiment of the invention, the port mode configuration device of the expansion module corresponding to the port mode configuration method of the expansion module is also provided. Referring to fig. 5, a schematic diagram of an embodiment of the apparatus of the present invention is shown. The port mode configuration device of the expansion module can be applied to port mode configuration of an I/O expansion module in a building control system, namely can be applied to port mode configuration of a field device I/O expansion module in the building control system, a port of the expansion module can comprise an input port of the expansion module and/or an output port of the expansion module, and the port mode configuration device of the expansion module can comprise: a configuration unit 102 and a control unit 104.
In an alternative example, the configuration unit 102 may be configured to automatically configure the input mode of the input port of the extension module, that is, configure the external device input mode of the input port of the extension module, so as to obtain the determined input mode of the input port of the extension module. The specific functions and processes of the configuration unit 102 are shown in step S110.
Optionally, the automatically configuring, by the configuration unit 102, the input mode of the input port of the expansion module may include: the configuration unit 102 may be further specifically configured to, when the field external input device of the building control system is installed and the field external input device is operated and connected to the input port of the I/O expansion module, if the field external input device is a switch device, after the switch of the switch device is toggled and the input port of the expansion module is powered on, configure the input mode of the input port of the expansion module according to the input voltage and the input resistance of the input port of the expansion module. For example: in an optional specific example, when the input port mode of the I/O expansion module is automatically configured, a constructor finishes installing field devices of the building control system, operates external devices and connects the external devices to the input port of the I/O expansion module, automatically configures the corresponding port mode after the expansion module is powered on, and needs to toggle once to switch if the external devices are switch devices.
The input mode of the input port of the expansion module may include: a resistive input mode, a voltage input mode, a current input mode, and/or a switching value input mode. For example: the input port can be configured into a resistance input mode (such as 0-100k omega), a voltage input mode (such as 0-10V), a current input mode (0-20mA, a 470 omega resistor needs to be connected in the current input mode), a switching value input mode and the like through judgment of program logic.
Therefore, the input mode of the input port of the expansion module is configured according to the input voltage and the input resistance of the input port of the expansion module, so that the mode configuration of the input port of the expansion module is more convenient and accurate, and the multiple modes also facilitate flexible use of users.
More optionally, the configuring unit 102 configures the input mode of the input port of the expansion module according to the input voltage and the input resistance of the input port of the expansion module, and may include: the process of determining the input mode according to the input resistance when the input port has the input voltage may specifically be as follows:
the configuration unit 102 may be further configured to determine whether the input port of the expansion module can detect the input voltage. The specific functions and processes of the configuration unit 102 are also referred to in step S210.
For example: after the I/O expansion module is installed and powered on and started, the voltage of the input port of the I/O expansion module is detected in the first step, and the voltage value is read to judge whether the input port of the I/O expansion module has the voltage value.
The configuration unit 102 may be further configured to determine whether the input port of the expansion module can detect the input resistance if the input voltage can be detected. The specific functions and processes of the configuration unit 102 are also shown in step S220.
For example: and if the voltage value at the input port of the I/O expansion module is judged to exist, the resistance of the input port of the I/O expansion module is detected, and the resistance value is read to judge whether the input port of the I/O expansion module has the resistance value.
The configuration unit 102 may be further configured to determine that the input mode of the input port of the expansion module is the current input mode if the input resistor is detected and the detected resistance value of the input resistor reaches the first set resistance value. The specific functions and processes of the configuration unit 102 are also referred to in step S230.
For example: if the input port of the I/O expansion module detects that a voltage value exists and a resistance value close to 470 omega is read, the current input mode is determined.
The configuration unit 102 may be further configured to determine that the input mode of the input port of the expansion module is the voltage input mode if the input resistor cannot be detected or the input resistor can be detected and the detected resistance value of the input resistor is smaller than the second set resistance value. The second set resistance is much smaller than the first set resistance. The specific functions and processes of the configuration unit 102 are also referred to in step S240.
For example: if the input port of the I/O expansion module detects that the voltage value exists and the resistance value is not read or is smaller, the voltage input mode is judged.
Therefore, the input mode is determined by further following whether the resistance can be detected or not under the condition that the input voltage can be detected by the input port of the expansion module, so that the determination of the input mode is more accurate.
Further optionally, the configuring unit 102 configures an input mode of the input port of the expansion module according to the input voltage and the input resistance of the input port of the expansion module, and may further include: the process of determining the input mode according to the input resistance under the condition that the input port has no input voltage may specifically be as follows:
the configuration unit 102 may be further configured to determine whether the input port of the expansion module can detect the input resistance if the input voltage cannot be detected. The specific functions and processes of the configuration unit 102 are also referred to in step S310.
For example: and if the input port of the I/O expansion module is judged to have a voltage value, if the input port of the I/O expansion module detects no voltage value, detecting the resistance of the input port of the I/O expansion module.
The configuration unit 102 may be further specifically configured to determine that the input mode of the input port of the expansion module is the resistance input mode if the input port of the expansion module can detect the input resistance and the detected resistance value of the input resistance is smaller than a third set resistance value. The third set resistance is greater than the first set resistance, and in fact, the third set resistance is much greater than the first set resistance. The specific functions and processes of the configuration unit 102 are also referred to in step S320.
For example: if the input port of the I/O expansion module detects that no voltage value exists and the read value is less than 100 kilo-ohms, the resistance input mode is judged.
The configuration unit 102 may be further configured to determine that the input mode of the input port of the expansion module is the switch input mode if the input port of the expansion module can detect the input resistor and the detected resistance value of the input resistor jumps between the fourth set resistance value and the fifth set resistance value within the set time period. The fifth set resistance is much greater than the fourth set resistance. The specific functions and processes of the configuration unit 102 are also referred to in step S330.
For example: if the input port of the I/O expansion module detects no voltage value, if the resistance value is detected to jump between a numerical value and infinity within a period of time, the input mode is judged to be the switching value input mode.
The configuration unit 102 may be further configured to, if the input port of the expansion module can detect the input resistor and the detected resistance value of the input resistor tends to infinity, re-determine whether the input port of the expansion module can detect the input voltage. The specific functions and processes of the configuration unit 102 are also referred to in step S340.
Thus, the input mode is determined by further following whether the resistance can be detected or not in the case where the input port of the expansion module fails to detect the input voltage, so that the determination of the input mode is more accurate.
And/or, in an optional example, the configuration unit 102 may be further configured to automatically configure an output mode of the output port of the expansion module, that is, configure an external device output mode of the output port of the expansion module, so as to obtain a determined output mode of the output port of the expansion module. The specific functions and processes of the configuration unit 102 are also referred to in step S120.
For example: the configuration mode of the I/O expansion module is divided into input port mode automatic configuration and output port mode automatic configuration by adopting building automatic control equipment and matching program logic and hardware, so that the automatic configuration of the port mode of the I/O expansion module is realized, the workload of operation is reduced for installers and users, the configuration time is saved, and the control can be realized after the installation. The input port mode can be automatically configured through program logic, the output port mode can be automatically configured through detecting the internal resistance value of the access equipment, the problem of large operation amount of point location configuration of the I/O expansion module can be solved, and the problem of complex point location configuration of the I/O expansion module can be solved.
Optionally, the automatically configuring, by the configuration unit 102, the output mode of the output port of the expansion module may include: the configuration unit 102 may be further configured to configure the output mode of the output port of the expansion module according to the access device resistance of the output port of the expansion module after the output port of the expansion module is powered on, when the field external output device of the building control system is installed and the field external output device is operated and connected to the output port of the I/O expansion module. For example: when the output port mode of the I/O expansion module is automatically configured, a constructor finishes installing field equipment of the building control system, operates external equipment and connects the external equipment to the output port of the I/O expansion module, and automatically configures the corresponding port mode after the expansion module is electrified.
The output mode of the output port of the expansion module may include: a voltage output mode, and/or a current output mode. For example: the automatic configuration of the output port is determined by detecting the resistance value of the accessed external device, and can be configured into a voltage output mode and a current output mode.
For example: for the interface of the field device I/O expansion module of the building automatic control system, the judgment basis is voltage and resistance judgment; in terms of a judging mode, the mode is divided into modes such as voltage, resistance, current, switch and the like.
Therefore, the output mode of the output port of the expansion module is configured according to the access equipment resistor of the output port of the expansion module, so that the mode configuration of the output port of the expansion module is more convenient and accurate, and the multiple modes are convenient for users to use flexibly.
More optionally, the configuring unit 102 configures the output mode of the output port of the expansion module according to the access device resistance of the output port of the expansion module, and may include:
the configuration unit 102 may be further configured to set an analog quantity detection circuit at the output port of the expansion module, and detect a resistance value between the output port of the expansion module and the ground port through the analog quantity detection circuit, so as to serve as an access device resistance of the output port of the expansion module. The specific functions and processes of the configuration unit 102 are also referred to in step S410. The analog quantity detection circuit may include an output module circuit and an AD value detection circuit, which are respectively connected to the output port of the expansion module.
The configuration unit 102 may be further specifically configured to determine that the output mode of the output port of the expansion module is the current output mode if the resistance value of the access device resistor of the output port of the expansion module is smaller than the sixth setting resistor. The specific functions and processes of the configuration unit 102 are also referred to in step S420.
For example: and detecting a resistance value between the output port of the expansion module and the grounding port through the analog quantity detection circuit, and if the detected resistance value is less than 500 omega, switching in a current device, and configuring the output port into a current output mode.
The configuration unit 102 may be further specifically configured to determine that the output mode of the output port of the expansion module is the voltage output mode if the resistance value of the access device resistor of the output port of the expansion module is greater than or equal to the sixth set resistor and is less than the seventh resistor. The specific functions and processes of the configuration unit 102 are also referred to in step S430.
For example: and detecting the resistance value between the output port of the expansion module and the grounding port through the analog quantity detection circuit, and if the detected resistance value is in the range of 500-100 k omega, switching in a voltage device, and configuring the output port into a voltage output mode.
The configuration unit 102 may be further configured to detect a resistance value between the output port of the expansion module and the ground port again if a resistance value of the access device resistor of the output port of the expansion module tends to a fifth resistor; the fifth resistance is much greater than the sixth resistance. The specific functions and processes of the configuration unit 102 are also shown in step S440.
For example: and detecting the resistance value between the output port and the grounding port of the expansion module through the analog quantity detection circuit, and if the detected resistance value tends to infinity, judging that the equipment is not accessed, and returning to detect again.
Therefore, the output mode of the output port of the expansion module is configured according to the access equipment resistance of the output port of the expansion module, the configuration mode is simple and convenient, and the configuration result is accurate.
In an optional example, the control unit 104 may be configured to report the determined input mode of the input port of the expansion module and/or the determined output mode of the output port of the expansion module to a preset control terminal, so that the control terminal controls the input port of the expansion module according to the determined input mode and/or controls the output port of the expansion module according to the determined output mode. The specific function and processing of the control unit 104 are shown in step S130. For example: and after the input port of the I/O expansion module determines the input mode, the I/O expansion module reports the mode data of each port to the network controller. For another example: and after the port determines the output mode, the I/O expansion module reports the mode data of each port to the network controller.
Therefore, the mode of the input port and the mode of the output port of the I/O expansion module in the building control system are automatically configured respectively, so that the mode automatic configuration of the input port and the mode automatic configuration of the output port of the expansion module can be realized respectively, and the workload and the operation complexity of manual configuration are greatly reduced.
Since the processes and functions implemented by the apparatus of this embodiment substantially correspond to the embodiments, principles and examples of the method shown in fig. 1 to 4, the description of this embodiment is not detailed, and reference may be made to the related descriptions in the foregoing embodiments, which are not repeated herein.
Through a large number of tests, the technical scheme of the invention can solve the problem of large operation amount of point location configuration of the I/O expansion module by automatically configuring the input port mode through program logic and automatically configuring the output port mode through detecting the internal resistance value of the access equipment, and can reduce the operation amount of point location configuration of the I/O expansion module.
There is also provided, in accordance with an embodiment of the present invention, a building control system corresponding to a port mode configuration device of an expansion module. The building control system may include: the port mode configuration device of the expansion module is described above.
The building automatic control system cannot meet the control of building equipment only by a network controller, and needs to improve the control and data acquisition of more point locations by adding point location expansion interfaces such as I/O expansion modules, each I/O expansion module has independent operation capacity and can process and report acquired data to the network controller, so that the operation load pressure of the network controller is reduced. Since the input/output port of the I/O expansion module is connected to an external device (e.g., a temperature and humidity sensor) during use, in order to better identify the value received from the sensor feedback, it is necessary to match the input/output mode of the input/output port of the I/O expansion module, i.e., the point location configuration mode, with the category of the value fed back from the sensor. Manually configuring a port mode, namely accessing IO module equipment into equipment of a building control system, and configuring point ports corresponding to corresponding modules one by one from a client of the PC building control system; when the usage amount of the expansion module is large, a lot of time is consumed for manually configuring the point location, and the operation is complex and easy to make mistakes.
The invention provides a port mode automatic configuration method based on an I/O expansion module of building control equipment, which adopts building automatic control equipment, realizes the automatic configuration of the port mode of the I/O expansion module through the cooperation of program logic and hardware, reduces the operation workload for installation personnel and user personnel, saves the configuration time, and can be controlled after being installed.
According to the scheme, the input port mode is automatically configured through program logic, the output port mode is automatically configured through detecting the internal resistance value of the access equipment, the problem that the point location configuration operation amount of the I/O expansion module is large can be solved, and the problem that the point location configuration of the I/O expansion module is complex can be solved.
Specifically, in the scheme of the present invention, the configuration manner of the I/O expansion module can be described by dividing into two aspects, the first aspect is input port mode automatic configuration, and the second aspect is output port mode automatic configuration. The input port can be configured into a resistance input mode (such as 0-100k omega), a voltage input mode (such as 0-10V), a current input mode (0-20mA, a 470 omega resistor needs to be connected in the current input mode), a switching value input mode and the like through judgment of program logic. The automatic configuration of the output port is determined by detecting the resistance value of the accessed external device, and can be configured into a voltage output mode and a current output mode.
For example: the resistor which needs to be connected in the current input mode is connected between the input port and the ground port. The IO expansion module cannot directly detect the current value, when a constant current source to be detected is connected, a voltage can be generated on the resistor, and the IO expansion module detects the voltage of the resistor and calculates the voltage as the current value on software logic.
In an alternative embodiment, a specific implementation process of the scheme of the present invention can be exemplarily described with reference to the examples shown in fig. 6 to 9.
In an optional specific example, when the input port mode of the I/O expansion module is automatically configured, a constructor finishes installing field devices of the building control system, operates external devices and connects the external devices to the input port of the I/O expansion module, automatically configures the corresponding port mode after the expansion module is powered on, and needs to toggle once to switch if the external devices are switch devices.
For example: the field device of a building control system comprises: network controllers and expansion modules (including IO expansion modules) of the building system. The external device can be various sensors, such as a temperature and humidity sensor, a photoresistor (illumination intensity sensor) and the like.
For example: the switching device may be conventional switching hardware, such as a switch for a lamp. The value input by the switching device is a resistance value which is small when switched on and only the resistance of the connected device; when the switch is open, the resistance will tend to infinity. The purpose of the toggle switch is to let the software recognize that this is an input of the switching value 1, 0.
Fig. 6 may show a decision flow when the analysis input port is automatically configured. As shown in fig. 6, the logic for determining automatic configuration of input port mode may include:
step 11, after the I/O expansion module is installed and powered on and started, detecting the voltage of the input port of the I/O expansion module, reading the voltage value to judge whether the input port of the I/O expansion module has the voltage value, and executing step 12 or step 13 according to the detection result.
And step 12, if the input port of the I/O expansion module detects that the voltage value exists, judging in the second step, detecting the resistance of the input port of the I/O expansion module, and reading the resistance value to judge whether the input port of the I/O expansion module has the resistance value. Thus, the mode is judged logically by the voltage resistance value which can be input, and the specific value of the input can be determined; only if the mode is correct, correct data can be reported to an upper computer; since the resistance between the port and the ground is infinite when the device is not engaged, the first determination is not suitable for determination with the resistance.
Alternatively, if a resistance value close to 470 Ω is read, the current input mode is determined.
Alternatively, if the resistance value is not read or is small, the voltage input mode is determined.
And step 13, returning to the operation after the first step, and if the input port of the I/O expansion module detects that no voltage value exists, performing resistance detection of a second step, namely detecting the resistance of the input port of the I/O expansion module.
Optionally, if the read value is less than 100 kilo-ohms, the resistive input mode is determined.
Alternatively, if the resistance value is detected to jump between a value and infinity within a period of time, the switching value input mode is determined.
Optionally, if the input port detects infinite resistance in the case of no external device being connected, the loop mode is returned to the start of the loop mode determination detection, that is, the loop mode returns to step 11 for re-detection.
Step 15, fig. 9 may show the connection mode between the network controller and the expansion module. When the input port of the I/O expansion module determines the input mode, as shown in fig. 9, the I/O expansion module reports the mode data of each port to the network controller.
In an optional specific example, when the output port mode of the I/O expansion module is automatically configured, a constructor finishes installing field devices of the building control system, operates external devices and connects the external devices to the output port of the I/O expansion module, and automatically configures the corresponding port mode after the expansion module is powered on.
Fig. 7 may show a decision flow when analyzing the automatic configuration of the output port. As shown in fig. 7, the logic for determining automatic configuration of output port mode of the I/O expansion module includes:
step 21, adding an analog quantity detection circuit in the output circuit. Fig. 8 may show a design manner of the output port auto-discrimination function mode. As shown in fig. 8, the output port of the I/O expansion module is connected to the output module circuit and the AD value detection circuit, the ground port is connected to the ground, an external device can be connected between the two ports (i.e., the output port and the ground port), the resistance value between the two ports is detected, and the output mode is determined according to the detection result.
For example: the analog quantity detection circuit mainly detects an analog value (the analog quantity is a voltage value resistance value with a specific numerical value and the like), and the circuit group detects a resistance value of an accessed external device, is used for judging the type of the accessed device and determines the mode of an output port.
Optionally, if the detected resistance value tends to infinity, it is determined that the device is not accessed, and the detection may be returned to the re-detection.
Optionally, if the detected resistance value is less than 500 Ω, the output port is configured in a current output mode for current device access.
Optionally, if the detected resistance value is in a range from 500 Ω to 100k Ω, the output port is configured to be in a voltage output mode for voltage device access.
The maximum output value of the output port is 10 volts or 20 milliamperes, and 500 Ω is calculated through a formula I which is U/R and is used for judging the voltage and current equipment. When the voltage is output to the maximum, the resistance of the access equipment is less than 500 omega, so that the current value exceeds the maximum output current value; the resistance of the access device is larger than 500 omega when the current is output to the maximum, which can cause the voltage value to exceed the maximum output voltage value.
Step 22, after the port determines the mode, as shown in fig. 9, the I/O expansion module reports the mode data of each port to the network controller.
Therefore, the scheme of the invention mainly relates to hardware which is an interface of an I/O expansion module of field equipment of a building automatic control system, and voltage and resistance judgment is used in the judgment basis; in terms of a judging mode, the mode is divided into modes such as voltage, resistance, current, switch and the like.
Since the processing and functions implemented by the building control system of this embodiment substantially correspond to the embodiments, principles and examples of the device shown in fig. 5, the description of this embodiment is not given in detail, and reference may be made to the related descriptions in the foregoing embodiments, which are not described herein again.
Through a large number of tests, the technical scheme of the invention can solve the problem of large operation amount of point location configuration of the I/O expansion module, solve the problem of complex point location configuration of the I/O expansion module and simplify the operation complexity of the point location configuration of the I/O expansion module by automatically configuring the input port mode through program logic and automatically configuring the output port mode through detecting the internal resistance value of the access equipment.
According to an embodiment of the present invention, there is also provided a storage medium corresponding to a port mode configuration method of an expansion module. The storage medium may include: the storage medium has stored therein a plurality of instructions; the instructions are used for loading and executing the port mode configuration method of the expansion module by the processor.
Since the processing and functions implemented by the storage medium of this embodiment substantially correspond to the embodiments, principles, and examples of the methods shown in fig. 1 to fig. 4, details are not described in the description of this embodiment, and reference may be made to the related descriptions in the foregoing embodiments, which are not described herein again.
Through a large number of tests, the technical scheme of the invention can simplify the port mode configuration difficulty of the I/O expansion module and improve the configuration efficiency by automatically configuring the input port mode and the output port mode based on the I/O expansion module.
According to the embodiment of the invention, a building control system corresponding to the port mode configuration method of the expansion module is also provided. The building control system can comprise: a processor for executing a plurality of instructions; a memory to store a plurality of instructions; the instructions are used for being stored by the memory, and loaded and executed by the processor, so as to implement the port mode configuration method of the expansion module.
Since the processing and functions implemented by the building control system of this embodiment substantially correspond to the embodiments, principles and examples of the methods shown in fig. 1 to fig. 4, the description of this embodiment is not detailed, and reference may be made to the related descriptions in the foregoing embodiments, which are not repeated herein.
Through a large number of tests, the technical scheme of the invention is adopted, and voltage and resistance judgment is used in the judgment basis through the interface aiming at the I/O expansion module of the building control equipment; in the judgment mode, the modes such as voltage, resistance, current and switch are detailed, the accuracy of interface mode configuration of the I/O expansion module of the building control equipment can be improved, and the flexibility and convenience of the use of the building control equipment can also be improved.
In summary, it is readily understood by those skilled in the art that the advantageous modes described above can be freely combined and superimposed without conflict.
The above description is only an example of the present invention, and is not intended to limit the present invention, and it is obvious to those skilled in the art that various modifications and variations can be made in the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims (12)

1. A port mode configuration method of an expansion module is applied to port mode configuration of an I/O expansion module in a building control system, and comprises the following steps:
automatically configuring the input mode of the input port of the expansion module to obtain a determined input mode of the input port of the expansion module; and/or the presence of a gas in the gas,
automatically configuring the output mode of the output port of the expansion module to obtain a determined output mode of the output port of the expansion module;
and reporting the determined input mode of the input port of the expansion module and/or the determined output mode of the output port of the expansion module to a preset control end so that the control end controls the input port of the expansion module according to the determined input mode and/or controls the output port of the expansion module according to the determined output mode.
2. The port mode configuration method of an expansion module according to claim 1, wherein,
the method for automatically configuring the input mode of the input port of the expansion module comprises the following steps:
after the input port of the expansion module is powered on, configuring the input mode of the input port of the expansion module according to the input voltage and the input resistance of the input port of the expansion module;
the input mode of the input port of the expansion module comprises the following steps: a resistance input mode, a voltage input mode, a current input mode, and/or a switching value input mode;
and/or the presence of a gas in the gas,
the automatic configuration of the output mode of the output port of the expansion module comprises the following steps:
after the output port of the expansion module is powered on, configuring the output mode of the output port of the expansion module according to the access equipment resistance of the output port of the expansion module;
wherein, the output mode of the output port of the expansion module comprises: a voltage output mode, and/or a current output mode.
3. The port mode configuration method of the expansion module according to claim 2, wherein configuring the input mode of the input port of the expansion module according to the input voltage and the input resistance of the input port of the expansion module comprises:
determining whether an input port of the expansion module can detect an input voltage;
if the input voltage can be detected, determining whether the input port of the expansion module can detect the input resistance;
if the input resistor can be detected and the detected resistance value of the input resistor reaches a first set resistance value, determining that the input mode of the input port of the expansion module is a current input mode;
if the input resistor cannot be detected or the input resistor can be detected and the detected resistance value of the input resistor is smaller than a second set resistance value, determining that the input mode of the input port of the expansion module is a voltage input mode; the second set resistance is much smaller than the first set resistance.
4. The port mode configuration method of an expansion module according to claim 3, wherein the input mode of the input port of the expansion module is configured according to an input voltage and an input resistance of the input port of the expansion module, further comprising:
in the case that the input voltage cannot be detected, determining whether the input port of the expansion module can detect the input resistance;
if the input port of the expansion module can detect the input resistor and the detected resistance value of the input resistor is smaller than the third set resistance value, determining that the input mode of the input port of the expansion module is a resistor input mode; the third set resistance value is larger than the first set resistance value;
if the input port of the expansion module can detect the input resistor and the detected resistance value of the input resistor jumps between the fourth set resistance value and the fifth set resistance value within the set time length, determining that the input mode of the input port of the expansion module is a switch input mode; the fifth set resistance value is far larger than the fourth set resistance value;
if the input port of the expansion module can detect the input resistor and the detected resistance value of the input resistor tends to infinity, whether the input port of the expansion module can detect the input voltage is determined again.
5. The port mode configuration method of the expansion module according to any one of claims 2 to 4, wherein configuring the output mode of the output port of the expansion module according to the access device resistance of the output port of the expansion module comprises:
an analog quantity detection circuit is arranged at an output port of the expansion module, and a resistance value between the output port of the expansion module and a grounding port is detected through the analog quantity detection circuit to serve as an access equipment resistance of the output port of the expansion module;
if the resistance value of the access equipment resistor of the output port of the expansion module is smaller than the sixth set resistor, determining that the output mode of the output port of the expansion module is a current output mode;
if the resistance value of the access equipment resistor of the output port of the expansion module is greater than or equal to the sixth set resistor and less than the seventh resistor, determining that the output mode of the output port of the expansion module is a voltage output mode;
if the resistance value of the access equipment resistor of the output port of the expansion module tends to the fifth resistor, the resistance value between the output port of the expansion module and the grounding port is detected again; the fifth resistance is much greater than the sixth resistance.
6. A port mode configuration device of an expansion module is applied to port mode configuration of an I/O expansion module in a building control system, and comprises the following components:
the configuration unit is used for automatically configuring the input mode of the input port of the expansion module to obtain a determined input mode of the input port of the expansion module; and/or the presence of a gas in the gas,
the configuration unit is also used for automatically configuring the output mode of the output port of the expansion module so as to obtain the determined output mode of the output port of the expansion module;
and the control unit is used for reporting the determined input mode of the input port of the expansion module and/or the determined output mode of the output port of the expansion module to a preset control end so that the control end controls the input port of the expansion module according to the determined input mode and/or controls the output port of the expansion module according to the determined output mode.
7. The port mode configuration device of an expansion module of claim 6, wherein,
the configuration unit automatically configures the input mode of the input port of the expansion module, and comprises the following steps:
after the input port of the expansion module is powered on, configuring the input mode of the input port of the expansion module according to the input voltage and the input resistance of the input port of the expansion module;
the input mode of the input port of the expansion module comprises the following steps: a resistance input mode, a voltage input mode, a current input mode, and/or a switching value input mode;
and/or the presence of a gas in the gas,
the configuration unit automatically configures the output mode of the output port of the expansion module, and comprises the following steps:
after the output port of the expansion module is powered on, configuring the output mode of the output port of the expansion module according to the access equipment resistance of the output port of the expansion module;
wherein, the output mode of the output port of the expansion module comprises: a voltage output mode, and/or a current output mode.
8. The port mode configuration device of the expansion module according to claim 7, wherein the configuration unit configures the input mode of the input port of the expansion module according to the input voltage and the input resistance of the input port of the expansion module, and includes:
determining whether an input port of the expansion module can detect an input voltage;
if the input voltage can be detected, determining whether the input port of the expansion module can detect the input resistance;
if the input resistor can be detected and the detected resistance value of the input resistor reaches a first set resistance value, determining that the input mode of the input port of the expansion module is a current input mode;
if the input resistor cannot be detected or the input resistor can be detected and the detected resistance value of the input resistor is smaller than a second set resistance value, determining that the input mode of the input port of the expansion module is a voltage input mode; the second set resistance is much smaller than the first set resistance.
9. The port mode configuration device of an expansion module according to claim 8, wherein the configuration unit configures the input mode of the input port of the expansion module according to the input voltage and the input resistance of the input port of the expansion module, further comprising:
in the case that the input voltage cannot be detected, determining whether the input port of the expansion module can detect the input resistance;
if the input port of the expansion module can detect the input resistor and the detected resistance value of the input resistor is smaller than the third set resistance value, determining that the input mode of the input port of the expansion module is a resistor input mode; the third set resistance value is larger than the first set resistance value;
if the input port of the expansion module can detect the input resistor and the detected resistance value of the input resistor jumps between the fourth set resistance value and the fifth set resistance value within the set time length, determining that the input mode of the input port of the expansion module is a switch input mode; the fifth set resistance value is far larger than the fourth set resistance value;
if the input port of the expansion module can detect the input resistor and the detected resistance value of the input resistor tends to infinity, whether the input port of the expansion module can detect the input voltage is determined again.
10. The port mode configuration device of the expansion module according to any one of claims 7 to 9, wherein the configuration unit configures the output mode of the output port of the expansion module according to the access device resistance of the output port of the expansion module, and includes:
an analog quantity detection circuit is arranged at an output port of the expansion module, and a resistance value between the output port of the expansion module and a grounding port is detected through the analog quantity detection circuit to serve as an access equipment resistance of the output port of the expansion module;
if the resistance value of the access equipment resistor of the output port of the expansion module is smaller than the sixth set resistor, determining that the output mode of the output port of the expansion module is a current output mode;
if the resistance value of the access equipment resistor of the output port of the expansion module is greater than or equal to the sixth set resistor and less than the seventh resistor, determining that the output mode of the output port of the expansion module is a voltage output mode;
if the resistance value of the access equipment resistor of the output port of the expansion module tends to the fifth resistor, the resistance value between the output port of the expansion module and the grounding port is detected again; the fifth resistance is much greater than the sixth resistance.
11. A building control system, comprising: port mode configuration means of an expansion module according to any of claims 6 to 10;
alternatively, it comprises:
a processor for executing a plurality of instructions;
a memory to store a plurality of instructions;
wherein the plurality of instructions are for being stored by the memory and loaded and executed by the processor by the port mode configuration method of the expansion module according to any one of claims 1 to 5.
12. A storage medium having a plurality of instructions stored therein; the plurality of instructions for loading and executing by a processor the port mode configuration method of the expansion module of any of claims 1 to 5.
CN202010215272.9A 2020-03-24 2020-03-24 Port mode configuration method and device, storage medium and building control system Active CN111427282B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010215272.9A CN111427282B (en) 2020-03-24 2020-03-24 Port mode configuration method and device, storage medium and building control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010215272.9A CN111427282B (en) 2020-03-24 2020-03-24 Port mode configuration method and device, storage medium and building control system

Publications (2)

Publication Number Publication Date
CN111427282A true CN111427282A (en) 2020-07-17
CN111427282B CN111427282B (en) 2021-05-25

Family

ID=71555449

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010215272.9A Active CN111427282B (en) 2020-03-24 2020-03-24 Port mode configuration method and device, storage medium and building control system

Country Status (1)

Country Link
CN (1) CN111427282B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114326642A (en) * 2022-01-05 2022-04-12 北京广利核系统工程有限公司 Interface matching method, device, equipment and medium for nuclear power DCS (distributed control System)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2459328A (en) * 2008-04-22 2009-10-28 Paul Anderson Dynamic access control to a computer network's switch port
CN102739447A (en) * 2012-06-27 2012-10-17 广东省电力调度中心 Method and system for configuring physical port of intelligent device of digitalized substation
CN105634986A (en) * 2014-11-30 2016-06-01 中国科学院沈阳自动化研究所 Switch implementation method and system
CN105680694A (en) * 2014-04-01 2016-06-15 英飞凌科技奥地利有限公司 System and method for a switched-mode power supply
CN105847042A (en) * 2016-03-18 2016-08-10 广州市苏瑞计算机科技有限公司 Communication system configuration method and device
CN106502941A (en) * 2016-11-25 2017-03-15 北京兆芯电子科技有限公司 Input/output expander, computer system and its collocation method
CN109766291A (en) * 2018-12-06 2019-05-17 珠海格力电器股份有限公司 A kind of method of automatic configuration and system of the port I/O

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2459328A (en) * 2008-04-22 2009-10-28 Paul Anderson Dynamic access control to a computer network's switch port
CN102739447A (en) * 2012-06-27 2012-10-17 广东省电力调度中心 Method and system for configuring physical port of intelligent device of digitalized substation
CN105680694A (en) * 2014-04-01 2016-06-15 英飞凌科技奥地利有限公司 System and method for a switched-mode power supply
CN105634986A (en) * 2014-11-30 2016-06-01 中国科学院沈阳自动化研究所 Switch implementation method and system
CN105847042A (en) * 2016-03-18 2016-08-10 广州市苏瑞计算机科技有限公司 Communication system configuration method and device
CN106502941A (en) * 2016-11-25 2017-03-15 北京兆芯电子科技有限公司 Input/output expander, computer system and its collocation method
CN109766291A (en) * 2018-12-06 2019-05-17 珠海格力电器股份有限公司 A kind of method of automatic configuration and system of the port I/O

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114326642A (en) * 2022-01-05 2022-04-12 北京广利核系统工程有限公司 Interface matching method, device, equipment and medium for nuclear power DCS (distributed control System)
CN114326642B (en) * 2022-01-05 2024-02-20 北京广利核系统工程有限公司 Interface matching method, device, equipment and medium for nuclear power DCS system

Also Published As

Publication number Publication date
CN111427282B (en) 2021-05-25

Similar Documents

Publication Publication Date Title
CN105573743B (en) Chip burning system and method and electronic equipment
CA2729247C (en) Data transfer between motors
CN108235801B (en) Access method and system of intelligent device
CN111427282B (en) Port mode configuration method and device, storage medium and building control system
CN111023262B (en) Modbus protocol conversion device and multi-online centralized control system
CN107818032A (en) A kind of mainboard, information Method of printing, system, device and storage medium
CN114019820A (en) Configuration method, device and system of smart home
JP3461097B2 (en) Power supply device for central processing unit and power supply method for computer system
CN113624482A (en) Performance test method and device for water valve, electronic equipment and storage medium
CN110459260B (en) Automatic test switching device, method and system
CN113363986A (en) Power supply system for power over Ethernet and power supply method thereof
CN110702969A (en) Method and device for identifying voltage mode and power supply
CN106444693A (en) Vehicle-mounted instrument and independent test method of hardware parts of vehicle-mounted instrument
CN107271810B (en) Device and method for comparing and detecting power consumption information acquisition terminal software
CN115981940A (en) Storage server testing method and device, electronic equipment and medium
CN113590401B (en) CPE equipment multifunctional test method, CPE equipment multifunctional test device, computer equipment and storage medium
CN114138312A (en) Upgrade test method, device, electronic equipment and computer readable storage medium
CN100397359C (en) Automatic control testing system and method for host board
CN107765119A (en) A kind of automatic detection machine starts abnormal method
CN112666445A (en) Detection method, detection device, electronic equipment and storage medium
JP2000018188A (en) Control device of level switch and water supply
CN111007815A (en) Centralized control host supporting dual-computer hot standby
CN111694300B (en) Automatic configuration method and device for control panel input and output ports
CN214201617U (en) Detection device
CN114487792B (en) Programmable board card online automatic detection device and method

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