CN111766806A - PC serial port I2C and multichannel IO control system - Google Patents
PC serial port I2C and multichannel IO control system Download PDFInfo
- Publication number
- CN111766806A CN111766806A CN202010542843.XA CN202010542843A CN111766806A CN 111766806 A CN111766806 A CN 111766806A CN 202010542843 A CN202010542843 A CN 202010542843A CN 111766806 A CN111766806 A CN 111766806A
- Authority
- CN
- China
- Prior art keywords
- module
- port
- serial port
- control system
- mcu
- 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
- 238000004891 communication Methods 0.000 claims description 17
- 238000012360 testing method Methods 0.000 claims description 14
- 239000013078 crystal Substances 0.000 claims description 3
- 238000012544 monitoring process Methods 0.000 claims description 3
- 238000005516 engineering process Methods 0.000 abstract description 3
- 238000005259 measurement Methods 0.000 abstract description 3
- 230000002093 peripheral effect Effects 0.000 abstract description 2
- 238000004519 manufacturing process Methods 0.000 description 11
- 238000011161 development Methods 0.000 description 5
- 230000010354 integration Effects 0.000 description 3
- 230000007547 defect Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000000034 method Methods 0.000 description 1
- 238000003908 quality control method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0428—Safety, monitoring
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/26—Pc applications
- G05B2219/2612—Data acquisition interface
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Programmable Controllers (AREA)
Abstract
The invention provides a PC serial port I2C and multichannel IO control system, which comprises an MCU module, upper computer software, a relay control module and a multichannel IO signal acquisition module. The MCU and the upper computer are independent, so that the invention has strong compatibility, and a user selects the module type according to the actual situation, so that the compatibility and the stability of the module to be controlled are greatly improved. The MCU peripheral module is developed by adopting an embedded system, takes application as a center, takes a computer technology as a basis, and is suitable for the requirements of field measurement and control and universalization of functions, reliability, cost, volume, power consumption and the like.
Description
Technical Field
The invention relates to the field of automatic testing, in particular to a PC serial port I2C and multi-channel IO control system.
Background
The cooperative control is an important link of manufacturing automation, the development of science and technology leads to more and more automatic control modes, the requirements of data signal acquisition and control integration are higher and higher, and meanwhile, the signal acquisition not only needs to meet basic functions, but also needs to realize real-time control and the like.
Therefore, the system breaks through the traditional general automatic control system, establishes the complete and unified technical standard and specification of the automatic manufacturing field and the intelligent track connection, constructs a multifunctional automatic test control system based on the automatic manufacturing field, provides a diversified data exchange platform, develops intelligent automatic data control equipment, and meets the urgent need of the current automatic manufacturing field in terms of realizing the flexibility of the system.
However, at present, automation schemes related to various fields such as mechanical manufacturing, food processing, electronic product production and the like generally adopt relatively high-cost control modes such as a PLC (programmable logic controller), a motion controller and the like, and the relative development period is long and the cost is high. The system aims at quickly establishing an automation and automation test scheme for signal collection and control, and is characterized by short development period, strong practicability, strong expandability and the like.
Disclosure of Invention
The invention aims to overcome the defects in the prior art, and provides a PC serial port I2C and multi-channel IO control system applied to the field of automatic testing.
In order to achieve the purpose, the invention adopts the following technical scheme:
a PC serial port I2C and multi-channel IO control system comprises an MCU module, an upper computer, a relay control module and an IO signal acquisition module, wherein,
the MCU module comprises a singlechip, a power supply and indicator lamp circuit, a TTL-to-RS 232 circuit, a receiving and transmitting circuit and a crystal oscillator circuit, and is connected with the relay control module through a TXD port, an RXD port and a GND port;
the upper computer is used for controlling the MCU module to communicate with the to-be-tested machine and judging the communication state;
the MCU module controls the relay control module by adopting an I2C bus;
the IO signal acquisition module is an MCU module expansion IO module.
Preferably, the TXD port, the RXD port and the related IO signals all use a DB25 terminal as an expansion port.
Preferably, a connection port of the relay control module and the MCU module adopts an XH2.54-4P terminal, and a connection port of the relay control module and the to-be-tested machine adopts a DB25 terminal.
Preferably, the IO signals input and output by the IO signal acquisition module are all TTL levels.
Preferably, the upper computer displays the IO signal through a boolean display module and monitors the communication state in real time.
Preferably, the upper computer is used for monitoring the running states of the MCU module, the relay control module and the IO signal acquisition module in real time.
Preferably, the upper computer sends communication data to the MCU module through a PC serial port and reads return data of the MCU module.
Preferably, the upper computer judges whether the on-off state of the relay expansion module is normal or not and judges whether the communication between the internal machine and the external machine of the machine to be tested is normal or not according to data returned by the MCU module.
Preferably, an RS232 chip is integrated in the MCU module.
Preferably, the singlechip adopts an STC 89C58 core chip.
Compared with the prior art, the invention has the following technical effects:
the invention provides a unified and universal system multi-module control platform, which is characterized in that corresponding instrument modules and acquisition card acquisition modules are configured according to the test requirements of products, the functions of instruments are integrated by developing test software, the test of product function indexes is realized, the test state is uploaded to a computer end and then uploaded to a database or a server, and the system multi-module control platform is convenient to call at any time.
Drawings
FIG. 1 is a block diagram of a PC serial port to I2C and multi-channel IO control system of the present invention;
FIG. 2 is a flow chart of the work of the PC serial port I2C and multi-channel IO control system of the present invention.
Detailed Description
The following further describes embodiments of the present invention with reference to the drawings. It should be noted that the description of the embodiments is provided to help understanding of the present invention, but the present invention is not limited thereto. In addition, the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
As shown in FIG. 1, a PC serial port I2C and multi-channel IO control system comprises an MCU module, an upper computer, a relay control module and an IO signal acquisition module.
The MCU module comprises a singlechip, a power supply and indicator light circuit, a TTL-to-RS 232 circuit, a receiving and transmitting circuit and a crystal oscillator circuit, and is connected with the relay control module through a TXD port, an RXD port and a GND port; MCU module interface adopts I2C bus mode and each module interconnection, with for the host computer DB9 interface connection, response speed is fast, the good reliability, the expansibility is strong. In this embodiment, the MCU module selects an STC series 89C58 core chip, which has high performance, low power consumption, low cost, high versatility and good anti-interference. External use is expanded through the IO port, and external use is expanded through DB25 mouth to IIC bus and the IO port of expansion external use, and the extension is convenient. And the RS232 is connected with the PC terminal to realize real-time control.
The RS232 chip is integrated in the MCU module, so that the stability is ensured, and the expandability of the MCU module is enhanced.
The host computer is connected with the MCU module through a serial port interface, and the RS232 traditional communication mode is adopted, so that the universality of the system is greatly improved. The upper computer is used for controlling the MCU module to communicate with the machine to be tested and judging the communication state; the relay control module and the IO signal acquisition module are respectively formed by extracting and optimizing according to an automation scheme commonly used at ordinary times, and the upper computer plays a role in controlling and monitoring the state of the relay in real time and the control terminal for IO signal collection. The upper computer sends the communication data to the MCU module through the PC serial port and reads the return data of the MCU module. And the upper computer judges whether the on-off state of the relay expansion module is normal or not and judges whether the communication between the internal machine and the external machine of the machine to be tested is normal or not according to the data returned by the MCU module.
The selection of the relay model of the relay extension module is selected by a customer, the practicability is greatly increased, and the MCU module adopts an I2C bus to control the relay control module.
And the IO signal acquisition module is an MCU module expansion IO module. IO signals input and output by the IO signal acquisition module are TTL levels. And the upper computer displays the IO signal through the Boolean display module and monitors the communication state in real time.
In this embodiment, the TXD port, the RXD port, and the related IO signals all use the DB25 terminal as an expansion port. The connector of the relay control module and the MCU module adopts an XH2.54-4P terminal, and the connector of the relay control module and the to-be-tested machine adopts a DB25 terminal.
The multichannel IO control system of this embodiment relies on MCU and virtual instrument, in order to adapt to the requirement of the multiple use and the integration in the automatic test field, adopts open, modularization standard.
The MCU and the upper computer are independent, so that the invention has strong compatibility, and a user selects the module type according to the actual situation, so that the compatibility and the stability of the module to be controlled are greatly improved. The MCU peripheral module is developed by adopting an embedded system, takes application as a center, takes a computer technology as a basis, and is suitable for the requirements of field measurement and control and universalization of functions, reliability, cost, volume, power consumption and the like.
In order to overcome the defects that the original automation scheme is high in cost, long in development period and not suitable for automation test integration, the invention provides a system which is compatible with communication control of each module and can be expanded at will, so that a user can use the system conveniently and quickly, and the production development efficiency is greatly improved.
The PC serial port I2C and multi-channel IO control system integrates multiple functions of a virtual instrument, test measurement, computer programming, data transmission and the like, is suitable for a multifunctional automatic control system in the field of automatic manufacturing, can ensure that the module state of automatic production is transmitted to a data terminal in real time, realizes quick response, timely processes abnormity in the production process, avoids loss caused by abnormity, and is suitable for quickly realizing the requirements of an automatic scheme on functions, reliability, cost, volume, power consumption and the like from the aspects of cost input, production efficiency and quality control. The system can flexibly expand hardware and quickly establish a test program. The configuration can be flexibly carried out according to the requirements of users; the system is easy to use, fast in expansibility and portable. The universal, flexible and standard automatic control system is provided for users. Description of the function: the user module project is directly controlled and completed by a computer without manual operation instruments, and the system is internally provided with an extensible corresponding IIC control module and can provide power output externally. The test product, the test control box, various instruments, a power supply, a load and the like are directly communicated with the computer, data exchange is realized through a network, and the detection result is stored in the database. The data is stable and reliable, has no loss, and supports a single-channel independent mode and a multi-channel polling mode.
As shown in fig. 2, the multi-channel IO control system of the present embodiment has the following work flow:
the system industrial computer carries out control test through the host computer, and when the MCU module received the retrieval signal of PC end host computer, the MCU module adopted I2C bus mode to carry out equipment state, IO signal retrieval, accomplished the communication, then uploaded the interactive data of communication to the host computer through the serial ports, the host computer judges through the data that the MCU module uploaded whether normal and make corresponding processing of communication.
The host computer monitors the IO signal state and the relay state of the MCU module in real time, the host computer can not only check the point state of the MCU module in real time, but also can control the MCU module in real time, great convenience is provided for realizing automation, and the IIC bus mode adopted by the MCU has the advantages of high speed, strong expandability, strong transportability and low cost.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art should be considered to be within the technical scope of the present invention, and the technical solutions and the inventive concepts thereof according to the present invention should be equivalent or changed within the scope of the present invention.
Claims (10)
1. A PC serial port I2C and multi-channel IO control system is characterized by comprising an MCU module, an upper computer, a relay control module and an IO signal acquisition module, wherein,
the MCU module comprises a singlechip, a power supply and indicator lamp circuit, a TTL-to-RS 232 circuit, a receiving and transmitting circuit and a crystal oscillator circuit, and is connected with the relay control module through a TXD port, an RXD port and a GND port;
the upper computer is used for controlling the MCU module to communicate with the to-be-tested machine and judging the communication state;
the MCU module controls the relay control module by adopting an I2C bus;
the IO signal acquisition module is an MCU module expansion IO module.
2. The PC serial port to I2C and multi-channel IO control system of claim 1, wherein the TXD port, the RXD port and the related IO signals all use DB25 terminals as expansion ports.
3. The system of claim 1, wherein a port for connecting the relay control module and the MCU module is an XH2.54-4P terminal, and a port for connecting the relay control module and a device under test is a DB25 terminal.
4. The PC serial port I2C and multi-channel IO control system of claim 1, wherein IO signals input and output by the IO signal acquisition module are all TTL levels.
5. The PC serial port to I2C and multichannel IO control system of claim 4, wherein the host computer displays the IO signal through a Boolean display module and monitors the communication state in real time.
6. The PC serial port I2C and multichannel IO control system according to claim 1, wherein the upper computer is used for monitoring the running states of the MCU module, the relay control module and the IO signal acquisition module in real time.
7. The system of claim 1, wherein the host computer sends communication data to the MCU module through the PC serial port and reads return data of the MCU module.
8. The PC serial port to I2C and multichannel IO control system according to claim 7, characterized in that the host computer judges whether the on-off state of the relay expansion module is normal and whether the communication between the internal and external machines of the to-be-tested machine is normal through the data returned by the MCU module.
9. The PC serial port to I2C and multi-channel IO control system of any one of claims 7-8, wherein an RS232 chip is integrated in the MCU module.
10. The PC serial port to I2C and multi-channel IO control system of claim 1, wherein the single chip microcomputer adopts STC 89C58 kernel chip.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010542843.XA CN111766806A (en) | 2020-06-15 | 2020-06-15 | PC serial port I2C and multichannel IO control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010542843.XA CN111766806A (en) | 2020-06-15 | 2020-06-15 | PC serial port I2C and multichannel IO control system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111766806A true CN111766806A (en) | 2020-10-13 |
Family
ID=72722161
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010542843.XA Pending CN111766806A (en) | 2020-06-15 | 2020-06-15 | PC serial port I2C and multichannel IO control system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111766806A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101158855A (en) * | 2007-10-25 | 2008-04-09 | 苏州工业园区新大诚科技发展有限公司 | Serial interface type single-chip data acquisition system |
CN102567270A (en) * | 2011-12-05 | 2012-07-11 | 深圳市金凯博自动化测试有限公司 | USB (universal serial bus)-to-I2C (inter-integrated circuit) adapter |
KR20160007043A (en) * | 2014-07-10 | 2016-01-20 | 허준재 | Modular apparatus for charge and dischare of electric energy |
CN109597329A (en) * | 2018-11-23 | 2019-04-09 | 中国科学院苏州生物医学工程技术研究所 | The control system of biological reagent detection |
CN208999483U (en) * | 2018-06-21 | 2019-06-18 | 重庆跃腾电器有限公司 | A kind of expansible multifunctional electrical parameter measuring instrument table |
CN212256068U (en) * | 2020-06-15 | 2020-12-29 | 深圳市金凯博自动化测试有限公司 | PC serial port I2C and multichannel IO control system |
-
2020
- 2020-06-15 CN CN202010542843.XA patent/CN111766806A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101158855A (en) * | 2007-10-25 | 2008-04-09 | 苏州工业园区新大诚科技发展有限公司 | Serial interface type single-chip data acquisition system |
CN102567270A (en) * | 2011-12-05 | 2012-07-11 | 深圳市金凯博自动化测试有限公司 | USB (universal serial bus)-to-I2C (inter-integrated circuit) adapter |
KR20160007043A (en) * | 2014-07-10 | 2016-01-20 | 허준재 | Modular apparatus for charge and dischare of electric energy |
CN208999483U (en) * | 2018-06-21 | 2019-06-18 | 重庆跃腾电器有限公司 | A kind of expansible multifunctional electrical parameter measuring instrument table |
CN109597329A (en) * | 2018-11-23 | 2019-04-09 | 中国科学院苏州生物医学工程技术研究所 | The control system of biological reagent detection |
CN212256068U (en) * | 2020-06-15 | 2020-12-29 | 深圳市金凯博自动化测试有限公司 | PC serial port I2C and multichannel IO control system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109634256B (en) | Board level verification system of general CAN controller chip | |
CN113030645B (en) | Active cable test programming integrated comprehensive test method and tester | |
CN212256068U (en) | PC serial port I2C and multichannel IO control system | |
CN213277033U (en) | Multiprocessor industrial Internet of things gateway for educational training | |
CN111766806A (en) | PC serial port I2C and multichannel IO control system | |
CN212460345U (en) | Analog communication module for internal and external units of household air conditioner | |
CN107592286A (en) | A kind of intelligent communications terminal and its implementation for supporting multi-protocols | |
CN216209527U (en) | GPIO interface state testing device | |
CN113009261B (en) | Interface testing device and method | |
CN212932917U (en) | Line detector | |
CN110646118A (en) | Multi-channel high-temperature sensor resistance and temperature detection equipment based on multiple communications | |
CN111624520A (en) | Line detector and method | |
CN213938212U (en) | Multi-communication mode signal conversion box | |
CN111813015A (en) | Analog communication module for internal and external units of household air conditioner | |
CN117520234B (en) | Automatic identification circuit of Type-C interface external equipment and related equipment | |
CN215642387U (en) | CS32F 103-based CAN bus controller chip automatic detection device | |
CN205210586U (en) | System for read HART instrument parameter through USB interface | |
CN219019040U (en) | Wireless HART communicator | |
CN217332726U (en) | Automatic test system of MCU chip | |
CN219676484U (en) | Multifunctional fault simulation test system | |
CN215340818U (en) | Multipurpose control board card | |
CN216956725U (en) | Intelligent acquisition controller and circuit thereof | |
CN215599556U (en) | Motion control chip testing arrangement | |
CN110412782B (en) | Liquid crystal display device testing system and testing method | |
CN211824542U (en) | Sensor access device, household appliance and electronic equipment |
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 |