CN111147104A - Modular intelligent fusion terminal and module interface matching method based on analog bus communication - Google Patents
Modular intelligent fusion terminal and module interface matching method based on analog bus communication Download PDFInfo
- Publication number
- CN111147104A CN111147104A CN201911045419.8A CN201911045419A CN111147104A CN 111147104 A CN111147104 A CN 111147104A CN 201911045419 A CN201911045419 A CN 201911045419A CN 111147104 A CN111147104 A CN 111147104A
- Authority
- CN
- China
- Prior art keywords
- user module
- module
- interface
- universal
- modular intelligent
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B3/00—Line transmission systems
- H04B3/02—Details
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R19/00—Arrangements for measuring currents or voltages or for indicating presence or sign thereof
- G01R19/0084—Arrangements for measuring currents or voltages or for indicating presence or sign thereof measuring voltage only
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R27/00—Arrangements for measuring resistance, reactance, impedance, or electric characteristics derived therefrom
- G01R27/02—Measuring real or complex resistance, reactance, impedance, or other two-pole characteristics derived therefrom, e.g. time constant
Abstract
The invention provides a method for matching a modular intelligent fusion terminal and a module interface based on analog bus communication, and the modular intelligent fusion terminal and a user module based on the method. When the method is applied, the automatic identification of various buses and various equipment type combinations can be realized, and the corresponding sub-functions are started to realize the functional requirements of users; any user module can be inserted into any slot, and the expansion and operation of the user module are facilitated.
Description
Technical Field
The invention relates to the fields of power consumption information acquisition, distribution transformer monitoring, power consumption load adjustment and the like of power consumers, and realizes the automatic matching of a terminal body and various interfaces and functional modules through an intelligent fusion terminal module interface software and hardware realization method based on analog bus self-adaption, thereby improving the compatibility, expandability and maintainability of a system.
Background
In the field of power distribution terminal equipment, the modular design and the universal slot design of a hardware terminal become the basic design mode of equipment hardware, and the equipment has the advantages of customization and convenience in expansion; the modular terminal still has the following limitations:
1. various bus communication protocols can be adopted, but the user module is required to be inserted into the corresponding slot strictly according to requirements, namely the communication interface position between the user module and the terminal is required to be fixed.
2. The method is not limited by the insertion sequence and the insertion position, but the communication mode between the hardware terminal and the module is fixed, namely, the communication can be carried out by adopting the same interface bus type.
According to the method, the multi-bus multifunctional adaptation of the terminal module needs a plurality of hardware versions and a plurality of software versions, and the research, development and maintenance costs of software and hardware are greatly increased.
In summary, the design in the prior art does not realize the interface bus independence and the module function independence of the modular design, and cannot meet the use requirement.
Disclosure of Invention
The invention provides a method for matching a modularized intelligent fusion terminal and a module interface based on analog bus communication, and the modularized intelligent fusion terminal and a user module based on the method, aiming at realizing the independence of interface buses and the independence of module functions in modularized design and achieving the purpose of dynamically matching a hardware terminal with a plurality of buses and a plurality of functional user modules.
The technical scheme of the invention is as follows:
the invention provides a method for matching a modular intelligent fusion terminal and a module interface based on analog bus communication, which comprises the following steps:
s1, establishing a user module feature configuration table: distributing corresponding voltage detection values according to the characteristics of each user module, and inputting a user module characteristic configuration table;
s2, configuring the user module: configuring a corresponding voltage division circuit for each user module, and configuring a resistance value in the voltage division circuit according to the reference voltage of each user module and the voltage detection value distributed in the configuration table, so that the output voltage value of the corresponding detection position of the voltage division circuit is in the corresponding voltage detection value range of the configuration table;
s3, matching: the method comprises the steps of inserting a user module into any one universal interface of a modular intelligent fusion terminal, carrying out voltage detection on each universal interface in real time by the modular intelligent fusion terminal, searching a user module characteristic configuration table according to the voltage detection value of each universal interface, obtaining the characteristics of each user module, inputting the serial number of the universal interface and the corresponding characteristics of the user module into an IO mapping table of the universal interface, and completing matching.
Further, the user module characteristics include a bus type, whether the MCU is included, and a module function type.
Further, bus types include UART, IIC, and SPI buses; the module function types comprise infrared, Bluetooth, RS485, EEPROM, clock chip, temperature sensor, AD sampling and wireless.
Further, in step S3, when the voltage detection value of the universal interface is 0, no user module is inserted.
Further, in step S3, when the user module characteristics obtained by table lookup include MCU, the modularized intelligent convergence terminal communicates with the user module, and the modularized intelligent convergence terminal sends a custom message to further obtain the function type of the user module.
A modularized intelligent fusion terminal used in a method for matching the modularized intelligent fusion terminal with a module interface based on analog bus communication comprises a main control board and a plurality of universal interfaces, wherein the main control board comprises an ARM chip and a power circuit, the power circuit is respectively connected with the power ends of the universal interfaces, and the ARM chip is respectively connected with an identification port line and a communication port line corresponding to the universal interfaces;
the master control board is internally provided with a user module characteristic configuration table and a universal interface IO mapping table, the master control board carries out voltage detection on each universal interface in real time, searches the user module characteristic configuration table according to the voltage detection value of each universal interface, acquires the characteristics of each user module, and records the serial number of the universal interface and the corresponding user module characteristics into the universal interface IO mapping table.
Further, the general interface is provided with 1-4 communication port lines and 1 ADC identification port line.
Further, the universal interfaces are 6 groups.
Furthermore, the modular intelligent fusion terminal is provided with universal interfaces with the same number of communication interface lines; or configuring communication interfaces with different numbers of communication interface lines.
A user module used in a matching method of a modularized intelligent fusion terminal and a module interface based on analog bus communication comprises a module body and a voltage division circuit, wherein a resistance value in the voltage division circuit is configured according to a reference voltage of each user module and a voltage detection value distributed in a configuration table, so that an output voltage value of a corresponding detection position of the voltage division circuit is in a corresponding voltage detection value range of the configuration table.
The invention has the beneficial effects that:
when the method is applied, the automatic identification of various buses and various equipment type combinations can be realized, and the corresponding sub-functions are started to realize the functional requirements of users; any user module can be inserted into any slot, and the expansion and operation of the user module are facilitated.
The method of the invention can effectively improve the development, production, upgrade and maintenance efficiency of the terminal and the product compatibility.
Additional features and advantages of the invention will be set forth in the detailed description which follows.
Drawings
The above and other objects, features and advantages of the present invention will become more apparent by describing in more detail exemplary embodiments thereof with reference to the attached drawings, in which like reference numerals generally represent like parts throughout.
Fig. 1 is a schematic structural diagram of a modular intelligent convergence terminal in the invention.
Fig. 2 is a schematic circuit connection diagram of the main control board of the modular intelligent convergence terminal in the invention.
Detailed Description
Preferred embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While the preferred embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be limited to the embodiments set forth herein.
A modularized intelligent fusion terminal based on analog bus communication comprises a main control board and a plurality of universal interfaces, wherein the main control board comprises an ARM chip and a power circuit, the power circuit is respectively connected with the power ends of the universal interfaces, and the ARM chip is respectively connected with an identification port line and a communication port line corresponding to the universal interfaces; the master control board is internally provided with a user module characteristic configuration table and a universal interface IO mapping table, the master control board carries out voltage detection on each universal interface in real time, searches the user module characteristic configuration table according to the voltage detection value of each universal interface, acquires the characteristics of each user module, and inputs the serial number of the universal interface and the corresponding user module characteristics into the universal interface IO mapping table.
Further, the universal interface is provided with 1-4 communication port lines and 1 ADC identification port line; the general interfaces are 6 groups as shown in fig. 1; the modularized intelligent integrated terminal is provided with general interfaces with the same number of communication port lines, as shown in fig. 2, the general interfaces can be set to be 4 communication port lines, and the number of the accessed user module communication port lines can be inserted when the number is not more than 4; or the modular intelligent convergence terminal can be configured with communication interfaces with different numbers of communication interface lines, for example: 2 universal interfaces with 2 communication port lines, 2 universal interfaces with 1 communication port line and 4 universal interfaces with 4 communication port lines are configured.
A user module based on analog bus communication comprises a module body and a voltage division circuit, wherein a configuration table is inquired, a voltage detection value configured for the type of user module is obtained, and a resistance value in the voltage division circuit is configured according to a reference voltage of the user module and the voltage detection value distributed in the configuration table, so that the output voltage value of the corresponding detection position of the voltage division circuit is in the range of the corresponding voltage detection value of the configuration table; when the user module comprises the MCU, the user module can communicate with the modular intelligent integration terminal and send a message to inform the module function.
A modular intelligent fusion terminal and module interface matching method based on analog bus communication comprises the following steps:
s1, establishing a user module feature configuration table: distributing corresponding voltage detection values according to the characteristics of each user module, and inputting a user module characteristic configuration table;
s2, configuring the user module: configuring a corresponding voltage division circuit for each user module, and configuring a resistance value in the voltage division circuit according to the reference voltage of each user module and the voltage detection value distributed in the configuration table, so that the output voltage value of the corresponding detection position of the voltage division circuit is in the corresponding voltage detection value range of the configuration table;
s3, matching: inserting a user module into any one universal interface of the modular intelligent fusion terminal, carrying out voltage detection on each universal interface by the modular intelligent fusion terminal in real time, searching a user module characteristic configuration table according to the voltage detection value of each universal interface, and acquiring the characteristics of each user module;
when the voltage detection value of the universal interface is 0, no user module is inserted;
and when the user module characteristics obtained by table lookup contain the MCU, the modular intelligent fusion terminal communicates with the user module, and the modular intelligent fusion terminal sends a custom message to further obtain the function type of the user module.
And inputting the serial number of the universal interface and the corresponding characteristics of the user module into an IO mapping table of the universal interface to complete matching.
Further, the user module characteristics include a bus type, whether the MCU is included, and a module function type. Bus types include, but are not limited to, UART, IIC, and SPI buses; the module function types include, but are not limited to, infrared, bluetooth, RS485, EEPROM, clock chip, temperature sensor, AD sampling, and wireless.
The first embodiment is as follows:
the modularized intelligent integrated terminal based on analog bus communication is shown in fig. 1, and mainly comprises a main control board 11 for module identification and module communication, and universal interfaces 1-6 for completing all functions. The main control board is mainly composed of an ARM chip and a power circuit, wherein the power circuit provides power for the universal interface, and the ARM chip provides an identification port line and a communication port line for the universal interface.
To better illustrate that the hardware terminal of the present invention dynamically matches a plurality of user modules of a plurality of buses, a modular intelligent convergence terminal hardware general interface IO mapping table is first established, as shown in table 1. And the hardware circuit design of the terminal is realized according to the table, as shown in figure two.
Table 1 modular intelligent integrated terminal general interface IO mapping table
In order to better describe the automatic identification and dynamic matching of the software, the invention provides 4 types of function modules for explanation. The user module 1 is UART bus communication mode, including MCU, with micro-power wireless function. The user module 2 is in a UART bus communication mode, does not contain an MCU and has the function of an infrared module. The user module 3 is in IIC bus communication mode, does not contain MCU, and is an EEPROM storage function module. The user module 4 is in SPI bus communication mode, comprises MCU and has remote communication function.
The bus type and the function type of the 4 functional modules are not limited, and the 6 communication interfaces of the main control board do not have a fixed corresponding relation, so that the interface bus independence and the module function independence of the modularized intelligent fusion terminal are realized. To this end we will insert any combination of channels and the mapping table is shown in table 2.
Table 2 general interface and user module mapping table
Socket opening | User |
Universal interface | |
1 | 3 |
|
1 |
General interface 3 | - |
|
2 |
Universal interface 5 | - |
|
4 |
The implementation steps of automatic identification and dynamic matching are described below.
The main control board starts the process of the system manager, the system manager starts the thread of the user module, and the thread of the user module is responsible for monitoring and managing the user module.
And the system manager user module thread reads the identification pins of the 6-channel in real time, and when the monitoring voltage of the channel is 0V, the module is not inserted. When the monitored voltage of the channel is not 0, the identification and matching are continued.
The voltage detection values of the identification port lines in the universal interfaces are matched with the subscriber module feature configuration table in table 3, and the matching results are assumed to be shown in table 4.
TABLE 3 subscriber module feature configuration Table
TABLE 4 subscriber module automatic identification and dynamic matching result table
Communication resources of the user module are acquired according to the IO mapping table of the modular intelligent convergence terminal universal interface in table 1, and the final acquisition result is shown in table 5 below. According to the configuration of the table to the bus communication in the program, the interface functions of the common IO analog UART, IIC and SPI buses are realized through software codes.
TABLE 5 terminal hardware IO function Table
Because the universal interface 2 and the universal interface 6 contain the MCU, the UART2 and the SPI6 channel are needed to carry out self-defined message communication to further obtain the module function, and the module type is analyzed to obtain the micro-power wireless and remote signaling remote control function.
The system manager user module thread starts the micropower wireless, EEPROM, infrared and remote signaling remote control functions according to the effective information inserted into the user module, and various functions of the user are realized.
According to the steps, the ADC is used for identifying the bus type of the module and judging whether the MCU is contained or not, the function of the user module is further obtained, and because the bus communication is simulated by adopting the common IO port line, the compatibility and the expandability are good, the bus independence and the module function independence of the module interface are solved, the product maintainability is improved, and the product research, development and maintenance cost is reduced.
Having described embodiments of the present invention, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments.
Claims (10)
1. A modular intelligent fusion terminal and module interface matching method based on analog bus communication is characterized by comprising the following steps:
s1, establishing a user module feature configuration table: distributing corresponding voltage detection values according to the characteristics of each user module, and inputting a user module characteristic configuration table;
s2, configuring the user module: configuring a corresponding voltage division circuit for each user module, and configuring a resistance value in the voltage division circuit according to the reference voltage of each user module and the voltage detection value distributed in the configuration table, so that the output voltage value of the corresponding detection position of the voltage division circuit is in the corresponding voltage detection value range of the configuration table;
s3, matching: the method comprises the steps of inserting a user module into any one universal interface of a modular intelligent fusion terminal, carrying out voltage detection on each universal interface in real time by the modular intelligent fusion terminal, searching a user module characteristic configuration table according to the voltage detection value of each universal interface, obtaining the characteristics of each user module, inputting the serial number of the universal interface and the corresponding characteristics of the user module into an IO mapping table of the universal interface, and completing matching.
2. The method as claimed in claim 1, wherein the user module features include bus type, whether MCU is included, and module function type.
3. The modular intelligent convergence terminal and module interface matching method based on analog bus communication of claim 2, wherein the bus types include UART, IIC and SPI buses; the module function types comprise infrared, Bluetooth, RS485, EEPROM, clock chip, temperature sensor, AD sampling and wireless.
4. The method as claimed in claim 1, wherein in step S3, when the voltage detection value of the universal interface is 0, no user module is inserted.
5. The method as claimed in claim 1, wherein in step S3, when the user module features obtained from the lookup table include MCU, the modular intelligent convergence terminal communicates with the user module, and the modular intelligent convergence terminal sends a custom message to further obtain the function type of the user module.
6. The modular intelligent convergence terminal and the modular interface matching method based on the analog bus communication of any one of claims 1-5, wherein the convergence terminal comprises a main control board and a plurality of universal interfaces, the main control board comprises an ARM chip and a power circuit, the power circuit is respectively connected with the power ends of the universal interfaces, and the ARM chip is respectively connected with the identification port line and the communication port line corresponding to the universal interfaces;
the master control board is internally provided with a user module characteristic configuration table and a universal interface IO mapping table, the master control board carries out voltage detection on each universal interface in real time, searches the user module characteristic configuration table according to the voltage detection value of each universal interface, acquires the characteristics of each user module, and inputs the serial number of the universal interface and the corresponding user module characteristics into the universal interface IO mapping table.
7. The modular intelligent convergence terminal of claim 6, wherein the common interface has 1-4 communication port lines and 1 ADC identification port line.
8. The modular intelligent convergence terminal of claim 6, wherein the universal interfaces are 6 sets.
9. The modular intelligent convergence terminal of claim 6, wherein the modular intelligent convergence terminal is configured with a common interface having the same number of communication port lines; or configuring communication interfaces with different numbers of communication interface lines.
10. A user module used in the method for matching the interface between the modular intelligent convergence terminal and the module based on analog bus communication of claims 1-5, wherein the user module comprises a module body and a voltage divider circuit, and the resistance value of the voltage divider circuit is configured according to the reference voltage of each user module and the voltage detection value allocated in the configuration table, so that the output voltage value of the voltage divider circuit at the corresponding detection position is within the corresponding voltage detection value range of the configuration table.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911045419.8A CN111147104A (en) | 2019-10-30 | 2019-10-30 | Modular intelligent fusion terminal and module interface matching method based on analog bus communication |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911045419.8A CN111147104A (en) | 2019-10-30 | 2019-10-30 | Modular intelligent fusion terminal and module interface matching method based on analog bus communication |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111147104A true CN111147104A (en) | 2020-05-12 |
Family
ID=70516907
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911045419.8A Pending CN111147104A (en) | 2019-10-30 | 2019-10-30 | Modular intelligent fusion terminal and module interface matching method based on analog bus communication |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111147104A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113038300A (en) * | 2021-02-05 | 2021-06-25 | 宁波三星医疗电气股份有限公司 | Communication method for modular electric energy meter and modular electric energy meter applying same |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100176968A1 (en) * | 2002-12-10 | 2010-07-15 | White Ii Melvin Joseph | Power Line Communication Apparatus and Method of Using the Same |
CN102004474A (en) * | 2010-09-16 | 2011-04-06 | 西北工业大学 | Detection and controller for aircraft integration test general interface |
CN104345238A (en) * | 2014-11-10 | 2015-02-11 | 深圳市元征科技股份有限公司 | Automatic identification device and method for automobile diagnosis adapter type |
CN106374308A (en) * | 2016-10-10 | 2017-02-01 | 普天智能照明研究院有限公司 | Connection piece in modular wall panel |
CN107832247A (en) * | 2017-09-25 | 2018-03-23 | 南京天溯自动化控制系统有限公司 | The data concentrator of adaptive communications |
CN108964276A (en) * | 2018-07-16 | 2018-12-07 | 河南理工大学 | Support the electricity consumption control terminal and system and load discrimination method of automatic demand response |
CN109445342A (en) * | 2018-11-07 | 2019-03-08 | 珠海派诺科技股份有限公司 | Open port automatic recognition system, method and storage medium |
-
2019
- 2019-10-30 CN CN201911045419.8A patent/CN111147104A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100176968A1 (en) * | 2002-12-10 | 2010-07-15 | White Ii Melvin Joseph | Power Line Communication Apparatus and Method of Using the Same |
CN102004474A (en) * | 2010-09-16 | 2011-04-06 | 西北工业大学 | Detection and controller for aircraft integration test general interface |
CN104345238A (en) * | 2014-11-10 | 2015-02-11 | 深圳市元征科技股份有限公司 | Automatic identification device and method for automobile diagnosis adapter type |
CN106374308A (en) * | 2016-10-10 | 2017-02-01 | 普天智能照明研究院有限公司 | Connection piece in modular wall panel |
CN107832247A (en) * | 2017-09-25 | 2018-03-23 | 南京天溯自动化控制系统有限公司 | The data concentrator of adaptive communications |
CN108964276A (en) * | 2018-07-16 | 2018-12-07 | 河南理工大学 | Support the electricity consumption control terminal and system and load discrimination method of automatic demand response |
CN109445342A (en) * | 2018-11-07 | 2019-03-08 | 珠海派诺科技股份有限公司 | Open port automatic recognition system, method and storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113038300A (en) * | 2021-02-05 | 2021-06-25 | 宁波三星医疗电气股份有限公司 | Communication method for modular electric energy meter and modular electric energy meter applying same |
CN113038300B (en) * | 2021-02-05 | 2023-05-26 | 宁波三星医疗电气股份有限公司 | Modularized electric energy meter communication method and modularized electric energy meter applying same |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108108323B (en) | Signal picker and its method for multiplexing interface | |
CN106864300B (en) | A kind of automatic switching control equipment and method for supporting polymorphic type electric car charging gun | |
CN102545875B (en) | Level identification switching circuit | |
CN101119123A (en) | Electronic equipments with accessory identifying function and identifying method thereof | |
CN111147104A (en) | Modular intelligent fusion terminal and module interface matching method based on analog bus communication | |
CN108386965A (en) | Pass through the PLC network-building methods of the pairing of equipment unique encodings and identification card pairing | |
CN108319564A (en) | A kind of method of identification power source communications bus ID in power supply-distribution system | |
CN112822174B (en) | Data acquisition intelligent module, data acquisition box and data acquisition method | |
CN112235325B (en) | Method and system for performing access control on functional module connected with intelligent terminal | |
CN105116807B (en) | A kind of modular controller automatically configures the system and method for module information | |
CN109743240B (en) | Interface switching device and method for communication equipment | |
CN206892602U (en) | A kind of distributed capture device peculiar to vessel | |
CN204440140U (en) | Kitchen appliance parametric controller, kitchen appliance and intelligent control system | |
CN102184313A (en) | System and method for identifying multi-type blood glucose test strip | |
CN112186398B (en) | Connecting device, household appliance, and signal processing method and device of household appliance | |
CN209149340U (en) | A kind of adaptability wider array of electronics price tag base station | |
CN207867326U (en) | The system for carrying out intelligent measurement based on several sensing equipments | |
CN110838729A (en) | Distributed power distribution automation terminal | |
CN207741273U (en) | Air-conditioning site monitor and monitoring air-conditioner | |
CN207946664U (en) | Storage card and industrial equipment | |
CN216526830U (en) | Data acquisition board card with temperature control function | |
CN109302194A (en) | Mbus host receives circuit | |
CN218181363U (en) | Data acquisition expansion circuit for ecological environment monitoring | |
CN201699758U (en) | Terminal address storing device of central air conditioner | |
CN208985367U (en) | Control circuit and electronic equipment are expanded in upgrading |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200512 |