CN220087309U - Modbus protocol analysis gateway based on CH32 - Google Patents

Modbus protocol analysis gateway based on CH32 Download PDF

Info

Publication number
CN220087309U
CN220087309U CN202321408032.6U CN202321408032U CN220087309U CN 220087309 U CN220087309 U CN 220087309U CN 202321408032 U CN202321408032 U CN 202321408032U CN 220087309 U CN220087309 U CN 220087309U
Authority
CN
China
Prior art keywords
pin
chip
foot
ch32v307
microsd
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202321408032.6U
Other languages
Chinese (zh)
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.)
Yangzhou University
Original Assignee
Yangzhou University
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 Yangzhou University filed Critical Yangzhou University
Priority to CN202321408032.6U priority Critical patent/CN220087309U/en
Application granted granted Critical
Publication of CN220087309U publication Critical patent/CN220087309U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Power Sources (AREA)

Abstract

The utility model discloses a Modbus protocol analysis gateway based on CH32 in the field of the Internet of things of electronic information technology, which comprises a power supply unit, wherein the power supply unit is connected with a singlechip, the singlechip is respectively connected with an input unit and an output unit, and the singlechip is also connected with a peripheral interface; the intelligent power distribution cabinet has the advantages that the function expansion of equipment such as a power distribution room and a direct current screen is realized, the equipment can be used for realizing data cloud and remote viewing, the equipment becomes an important component of the Internet of things, the related requirements of enterprises are met, the intelligent power distribution cabinet is not required to be adopted to replace the original traditional power distribution cabinet, and the cost is effectively saved.

Description

Modbus protocol analysis gateway based on CH32
Technical Field
The utility model relates to a protocol analysis gateway in the field of Internet of things of electronic information technology.
Background
Along with the wider application of intelligent equipment in life, the intelligent equipment is more and more closely connected with the Internet of things, the Internet of things becomes the key point of the current Internet technology development, the intelligent equipment has become the trend of development of some industries including power, industry and the like, and an electric power measurement and control system represented by an intelligent power distribution cabinet is used as an important intelligent identification of an electric power system. Along with the popularization of intellectualization, an unattended concept is gradually proposed, and measurement results such as on-off of a power supply network, load electricity consumption data and the like can also be transmitted to a leasing or self-owned cloud server in an automatic transmission mode. Thus producing an intelligent power distribution cabinet. However, the traditional power distribution cabinets do not have a data monitoring function, and the cost is very high when the power distribution cabinets are replaced by intelligent power distribution cabinets, so that the power distribution cabinets are difficult to bear for many enterprises.
Disclosure of Invention
The utility model aims to provide a Modbus protocol analysis gateway based on CH32, which is free from replacing an original power distribution cabinet, is connected with a cloud server, can perform data acquisition and cloud server, and realizes remote monitoring of equipment state and checking of item management data.
In order to achieve the above purpose, the utility model provides a Modbus protocol analysis gateway based on CH32, which comprises a power supply unit, wherein the power supply unit is connected with a singlechip, the singlechip is respectively connected with an input unit and an output unit, and the singlechip is also connected with a peripheral interface.
Compared with the prior art, the intelligent power distribution cabinet has the beneficial effects that the function expansion of equipment such as a power distribution room and a direct current screen is realized, so that the equipment can realize data cloud-up and remote viewing, becomes an important component of the Internet of things, meets the related requirements of enterprises, does not need to adopt an intelligent power distribution cabinet to replace the original traditional power distribution cabinet, and effectively saves the cost.
As a further improvement of the utility model, the singlechip comprises a CH32V307 chip, the 11 th pin, the 22 nd pin, the 28 th pin, the 50 th pin, the 75 th pin and the 100 th pin of the CH32V307 chip are mutually connected, the 100 th pin of the CH32V307 chip is connected with a power supply unit, the 47 th pin of the CH32V307 chip is connected with an output unit, the 49 th pin, the 74 th pin and the 99 th pin of the CH32V307 chip are grounded, the 63 th pin, the 64 th pin, the 65 th pin and the 66 th pin of the CH32V307 chip are connected with an input unit, and the 78 th pin, the 79 th pin, the 80 th pin and the 83 th pin of the CH32V307 chip are connected with the input unit.
The related data in the power distribution cabinet or the direct current screen are transmitted to the CH32V307 chip through the input unit, the CH32V307 chip processes the data, and the processed data is uploaded to the cloud server through the output unit, so that the remote monitoring equipment state is realized, and the project management data is checked.
As a further improvement of the utility model, the input unit comprises an RJ45 network port J1, a No. 1 pin of the RJ45 network port J1 is connected with a No. 63 pin of the CH32V307 chip, a No. 2 pin of the RJ45 network port J1 is connected with a No. 64 pin of the CH32V307 chip, a No. 3 pin of the RJ45 network port J1 is connected with a No. 65 pin of the CH32V307 chip, a No. 4 pin and a No. 5 pin of the RJ45 network port J1 are both connected with a No. 100 pin of the CH32V307 chip, and a No. 6 pin of the RJ45 network port J1 is connected with a No. 66 pin of the CH32V307 chip.
Therefore, one end of the network cable is inserted into the RJ45 network port J1, and the other end of the network cable is inserted into the power distribution cabinet or the direct current screen, so that related data in the power distribution cabinet or the direct current screen can be transmitted to the singlechip for processing.
As a further development of the utility model, the output unit comprises an ESP8266 chip, pin 1 of the ESP8266 chip is grounded, pin 4 of the ESP8266 chip is connected to pin 47 of the CH32V307 chip, pin 5 of the ESP8266 chip is connected to pin 48 of the CH32V307 chip, and pins 6 and 8 of the ESP8266 chip are both connected to pin 100 of the CH32V307 chip.
The ESP8266 chip is connected with the wireless router to be connected with the external network, and data which is processed by the singlechip and is related to the power distribution cabinet or the direct current screen is sent to the cloud, so that data visualization or equipment control is performed.
As a further improvement of the utility model, the peripheral unit comprises a MicroSD card holder, wherein the 1 st foot, the 2 nd foot, the 3 rd foot, the 7 th foot and the 8 th foot of the MicroSD card holder are respectively connected with the 100 th foot of the CH32V307 chip through a resistor R5, a resistor R6, a resistor R7, a resistor R8 and a resistor R9, the 1 st foot of the MicroSD card holder is also connected with the 78 th foot of the CH32V307 chip, the 2 nd foot of the MicroSD card holder is also connected with the 79 th foot of the CH32V307 chip, the 3 rd foot of the MicroSD card holder is also connected with the 83 th foot of the CH32V307 chip, the 4 th foot of the MicroSD card holder is also connected with the 100 th foot of the CH32V307 chip, the 5 th foot of the MicroSD card holder is also connected with the 80 th foot of the CH32V307 chip, the 6 th foot of the MicroSD card holder is connected with the 10 th foot of the MicroSD card holder through capacitors C9 and C10 which are mutually connected in parallel, the 3 nd C10 is also connected with the 100 th foot of the CH32V307 chip, and the 7 th foot of the SD card holder is also connected with the CH32V307 chip, and the SD card holder is also connected with the 65 th foot of the CH32V307 chip.
Thus, the data can be stored into the MicroSD card through the SDIO interface to realize the local storage of the data
As a further improvement of the utility model, the power supply unit comprises an LM1117 voltage stabilizing chip, a pin 1 of the LM1117 voltage stabilizing chip is grounded, a pin 2 of the LM1117 voltage stabilizing chip is respectively connected with one end of a resistor R1 and the positive electrode of a light emitting diode LED1, the negative electrode of the light emitting diode LED1 is connected with the pin 1 of the LM1117 voltage stabilizing chip through a resistor R2, the other end of the resistor R1 is connected with a pin 100 of a CH32V307 chip through capacitors C2 and C3 which are mutually connected in parallel, and a pin 3 of the LM1117 voltage stabilizing chip is respectively connected with a pin 9 and a pin B4 of a USB 1.
Therefore, a 5V input power supply can be directly realized after the USB1 plug-in data line is connected with a direct current screen or a power distribution cabinet, and then the voltage is reduced to 3.3V through an LM1117 voltage stabilizing chip, so that a stable power supply is provided for a singlechip and the like.
Drawings
Fig. 1 is a block diagram of the structure of the present utility model.
FIG. 2 is a schematic diagram of an application flow of the present utility model.
Fig. 3 is a flowchart of the connection of the internet of things cloud server.
Fig. 4 is a schematic circuit diagram of the present utility model.
FIG. 5 is a schematic view of a WEB visualization in accordance with the present utility model
Description of the embodiments
The utility model is further described below with reference to the accompanying drawings:
the Modbus protocol analysis gateway based on CH32 as shown in fig. 1-5 comprises a power supply unit, wherein the power supply unit is connected with a singlechip, the singlechip is respectively connected with an input unit and an output unit, and the singlechip is also connected with a peripheral interface.
The singlechip comprises a CH32V307 chip, the 11 th pin, the 22 nd pin, the 28 th pin, the 50 th pin, the 75 th pin and the 100 th pin of the CH32V307 chip, the 100 th pin of the CH32V307 chip is connected with the power supply unit, the 47 th pin of the CH32V307 chip is connected with the output unit, the 49 th pin, the 74 th pin and the 99 th pin of the CH32V307 chip are grounded, the 63 th pin, the 64 th pin, the 65 th pin and the 66 th pin of the CH32V307 chip are connected with the input unit, and the 78 th pin, the 79 th pin, the 80 th pin and the 83 th pin of the CH32V307 chip are connected with the input unit.
The input unit comprises an RJ45 network port J1, a No. 1 pin of the RJ45 network port J1 is connected with a No. 63 pin of the CH32V307 chip, a No. 2 pin of the RJ45 network port J1 is connected with a No. 64 pin of the CH32V307 chip, a No. 3 pin of the RJ45 network port J1 is connected with a No. 65 pin of the CH32V307 chip, a No. 4 pin and a No. 5 pin of the RJ45 network port J1 are connected with a No. 100 pin of the CH32V307 chip, and a No. 6 pin of the RJ45 network port J1 is connected with a No. 66 pin of the CH32V307 chip.
The output unit comprises an ESP8266 chip, the No. 1 pin of the ESP8266 chip is grounded, the No. 4 pin of the ESP8266 chip is connected with the No. 47 pin of the CH32V307 chip, the No. 5 pin of the ESP8266 chip is connected with the No. 48 pin of the CH32V307 chip, and the No. 6 pin and the No. 8 pin of the ESP8266 chip are connected with the No. 100 pin of the CH32V307 chip.
The peripheral unit includes the MicroSD cassette, the 1 st foot of MicroSD cassette, the 2 nd foot, the 3 rd foot, the 7 th foot and the 8 th foot are respectively through resistance R5, resistance R6, resistance R7, resistance R8 and resistance R9 with the 100 th foot of CH32V307 chip links to each other, the 1 st foot of MicroSD cassette still links to each other with the 78 th foot of CH32V307 chip, the 2 nd foot of MicroSD cassette still links to each other with the 79 th foot of CH32V307 chip, the 3 rd foot of MicroSD cassette still links to each other with the 83 th foot of CH32V307 chip, the 4 th foot of MicroSD cassette still links to each other with the 100 th foot of CH32V307 chip, the 5 th foot of MicroSD cassette still links to each other with the 80 th foot of CH32V307 chip, the 6 th foot of MicroSD cassette is connected with the 10 th foot, the 10 th foot of MicroSD cassette still links to each other with the 100 th foot of CH32V307 chip through electric capacity C9 and C10 that are parallel each other, the 7 th foot of MicroSD cassette still links to each other with the 83 th foot of CH32V307 chip, the seat still links to each other with the 32V307 chip, the chip still links to each other with the 6 th foot.
The power supply unit includes LM1117 steady voltage chip, and the No. 1 foot ground connection of LM1117 steady voltage chip, the No. 2 foot of LM1117 steady voltage chip links to each other with resistance R1's one end and emitting diode LED 1's positive pole respectively, and emitting diode LED 1's negative pole links to each other with the No. 1 foot of LM1117 steady voltage chip through resistance R2, and resistance R1's the other end links to each other with the 100 foot of CH32V307 chip through parallelly connected electric capacity C2 and C3 each other, and the No. 3 foot of LM1117 steady voltage chip links to each other with USB 1's A9 foot and B4 foot respectively.
In the utility model, as shown in fig. 4, U1 is a CH32V307 chip, U2 is an ESP8266 chip, U3 is an LM1117 voltage stabilizing chip, U4 is a programming program interface, namely a Type-C seat, CARD1 is a MicroSD CARD seat, J1 is an RJ45 network port, the ESP8266 chip is connected with the CH32V307 chip through a USART serial port, the MicroSD CARD seat is connected with the CH32V307 chip through an SDIO interface, and the RJ45 network port is directly connected with the CH32V307 chip; the USB1 interface is also connected with U4 and U3.
The power distribution cabinet or the direct current screen is connected with the RJ45 network port through the network cable, pins of the RJ45 network port are connected with the CH32V307 chip of the single chip microcomputer, electric data of the power distribution cabinet or the direct current screen can be transmitted to the CH32V307 chip for processing, and the processed data can be uploaded to the cloud after being connected with the external network through the ESP8266 chip, so that a user can also view the electric data through a remote network terminal or a mobile terminal.
The utility model can be placed in a power distribution cabinet, and can be connected with a USB1 interface in an inserting way through a data line, so that 5V electricity supply can be realized by an external power distribution cabinet or a direct current screen, and then a stable 3.3V voltage is formed by the voltage reduction of an LM1117 voltage stabilizing chip to supply power for a singlechip and the like, and when a programming program is needed, the computer can be connected with a PC through the data line, thereby facilitating the input of the program; the power distribution cabinet, the direct current screen and other devices are connected with an RJ45 network port of the device through network cables, corresponding register data is transmitted to a CH32V307 chip through ModbusTCP or ModbusRTU protocol to perform data processing and function implementation, an ESP8266 chip is connected with an external network through a wireless router to upload data to a cloud server to perform data visualization or device control, and meanwhile, data viewing service of a mobile device end can be performed through a visualization service in the cloud server and a corresponding applet, and the data is stored to a MicroSD card through an SDIO interface to achieve data local storage.
In practical application, a microSD memory card is inserted into a microSD card seat, an ini format file named as an Internet of things configuration file txt is created in the card, internet of things and wireless network configuration parameters are written in the file, hardware is initialized after the device is started, and after the initialization of the bottom hardware is completed, the device is automatically connected with a cloud platform to complete a registration flow. After the platform registration is completed, the device sends Modbus instructions to the network port or the device connected with the serial port according to a set period so as to receive data of the other device to realize acquisition, analyzes a data protocol and stores the data on the MicroSD card. The collected data is uploaded to the cloud platform regularly, alarm data information is sent to the platform if a certain item of data is abnormal, meanwhile, the cloud platform starts a web visualization function, and is used for checking a graphical webpage and checking a mobile terminal on a WeChat applet, so that the cloud platform is suitable for requirements of cloud on equipment data such as a direct current screen and a power distribution cabinet and remote checking, such as data of switching conditions, current, voltage, temperature and the like.
The utility model has the following beneficial effects in practical application:
(1) The function expansion of equipment such as a direct current screen is realized, so that the equipment can realize data cloud uploading and remote viewing, become an important component of the Internet of things and meet the related requirements of enterprises.
(2) The device has a portable and simple network configuration function, and is different from a mode of programming a program in an MCU (micro control Unit) when leaving a factory, and the device stores configuration files through the SD card so that the device can carry out network and cloud server configuration after reading related parameters, and the parameters are convenient to modify when the network environment changes.
(3) The system has the web visualization function, combines the iotattudio and WeChat applet of the cloud platform with the platform function of the Internet of things, and can intuitively see the sensor data acquired by the equipment.
(4) The device is simple to use, and can work all the day by only supplying power to the device and placing the device at a proper position and inserting a network cable.
The present utility model is not limited to the above-described embodiments, and based on the technical solutions of the present disclosure, those skilled in the art may make some substitutions and modifications to some technical features thereof without creative efforts, which are all within the scope of the present utility model.

Claims (6)

1. The Modbus protocol analysis gateway based on CH32 is characterized in that: the power supply unit is connected with the singlechip, the singlechip is respectively connected with the input unit and the output unit, and the singlechip is also connected with the peripheral interface.
2. The CH 32-based Modbus protocol parsing gateway of claim 1, wherein: the singlechip comprises a CH32V307 chip, the 11 th pin, the 22 nd pin, the 28 th pin, the 50 th pin, the 75 th pin and the 100 th pin of the CH32V307 chip, the 100 th pin of the CH32V307 chip is connected with the power supply unit, the 47 th pin of the CH32V307 chip is connected with the output unit, the 49 th pin, the 74 th pin and the 99 th pin of the CH32V307 chip are grounded, the 63 th pin, the 64 th pin, the 65 th pin and the 66 th pin of the CH32V307 chip are connected with the input unit, and the 78 th pin, the 79 th pin, the 80 th pin and the 83 th pin of the CH32V307 chip are connected with the input unit.
3. The CH 32-based Modbus protocol parsing gateway of claim 2, wherein: the input unit comprises an RJ45 network port J1, a No. 1 pin of the RJ45 network port J1 is connected with a No. 63 pin of the CH32V307 chip, a No. 2 pin of the RJ45 network port J1 is connected with a No. 64 pin of the CH32V307 chip, a No. 3 pin of the RJ45 network port J1 is connected with a No. 65 pin of the CH32V307 chip, a No. 4 pin and a No. 5 pin of the RJ45 network port J1 are connected with a No. 100 pin of the CH32V307 chip, and a No. 6 pin of the RJ45 network port J1 is connected with a No. 66 pin of the CH32V307 chip.
4. A Modbus protocol parsing gateway based on CH32 as claimed in claim 3, wherein: the output unit comprises an ESP8266 chip, the No. 1 pin of the ESP8266 chip is grounded, the No. 4 pin of the ESP8266 chip is connected with the No. 47 pin of the CH32V307 chip, the No. 5 pin of the ESP8266 chip is connected with the No. 48 pin of the CH32V307 chip, and the No. 6 pin and the No. 8 pin of the ESP8266 chip are connected with the No. 100 pin of the CH32V307 chip.
5. The CH 32-based Modbus protocol parsing gateway of claim 4, wherein: the peripheral unit includes the MicroSD cassette, the 1 st foot of MicroSD cassette, the 2 nd foot, the 3 rd foot, the 7 th foot and the 8 th foot are respectively through resistance R5, resistance R6, resistance R7, resistance R8 and resistance R9 with the 100 th foot of CH32V307 chip links to each other, the 1 st foot of MicroSD cassette still links to each other with the 78 th foot of CH32V307 chip, the 2 nd foot of MicroSD cassette still links to each other with the 79 th foot of CH32V307 chip, the 3 rd foot of MicroSD cassette still links to each other with the 83 th foot of CH32V307 chip, the 4 th foot of MicroSD cassette still links to each other with the 100 th foot of CH32V307 chip, the 5 th foot of MicroSD cassette still links to each other with the 80 th foot of CH32V307 chip, the 6 th foot of MicroSD cassette is connected with the 10 th foot, the 10 th foot of MicroSD cassette still links to each other with the 100 th foot of CH32V307 chip through electric capacity C9 and C10 that are parallel each other, the 7 th foot of MicroSD cassette still links to each other with the 83 th foot of CH32V307 chip, the seat still links to each other with the 32V307 chip, the chip still links to each other with the 6 th foot.
6. The CH 32-based Modbus protocol parsing gateway of claim 5, wherein: the power supply unit includes LM1117 steady voltage chip, and the No. 1 foot ground connection of LM1117 steady voltage chip, the No. 2 foot of LM1117 steady voltage chip links to each other with resistance R1's one end and emitting diode LED 1's positive pole respectively, and emitting diode LED 1's negative pole links to each other with the No. 1 foot of LM1117 steady voltage chip through resistance R2, and resistance R1's the other end links to each other with the 100 foot of CH32V307 chip through parallelly connected electric capacity C2 and C3 each other, and the No. 3 foot of LM1117 steady voltage chip links to each other with USB 1's A9 foot and B4 foot respectively.
CN202321408032.6U 2023-06-05 2023-06-05 Modbus protocol analysis gateway based on CH32 Active CN220087309U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202321408032.6U CN220087309U (en) 2023-06-05 2023-06-05 Modbus protocol analysis gateway based on CH32

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202321408032.6U CN220087309U (en) 2023-06-05 2023-06-05 Modbus protocol analysis gateway based on CH32

Publications (1)

Publication Number Publication Date
CN220087309U true CN220087309U (en) 2023-11-24

Family

ID=88813491

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202321408032.6U Active CN220087309U (en) 2023-06-05 2023-06-05 Modbus protocol analysis gateway based on CH32

Country Status (1)

Country Link
CN (1) CN220087309U (en)

Similar Documents

Publication Publication Date Title
CN102622071A (en) Power distribution device and power distribution circuit
CN220087309U (en) Modbus protocol analysis gateway based on CH32
CN214704623U (en) BMC device and system based on domestic MCU
CN105954623A (en) Modulation and testing system for universal frequency source type plugging element and testing method thereof
CN108429763A (en) A kind of industrial network system of one-way data transfer
CN109168093A (en) The orientation management device and method of the upper fiber port of ODN
CN203276542U (en) Mobile display and control system for power distribution room information
CN207148816U (en) A kind of program burn writing system and electronic equipment
CN105245009A (en) Electric equipment networking manager
CN105046934A (en) Equipment able to realize data communication with seafloor heat flow measurement unit and communication method
CN211720677U (en) Thing networking WIFI module development circuit
CN209201093U (en) A kind of remote data transmission terminal of included store function
CN211554931U (en) Embedded collector
CN204791512U (en) Power consumption information acquisition terminal debugging device
CN209373404U (en) A kind of data collection system based on LabView
CN113885374A (en) Important equipment power failure real-time alarm device and implementation method thereof
CN109753472B (en) Data processing method and device
RU127938U1 (en) MULTIMEDIA COMMUNICATOR
CN205910839U (en) Handheld network meter recorder
CN207304011U (en) A kind of idle compensating control
CN216563863U (en) Novel network socket
CN206003169U (en) A kind of ETC master control borad of convenient upgrading
CN105634878A (en) Smart home system based on electric energy information terminal
CN211349544U (en) Electric energy data acquisition gateway device based on infrared communication
CN109211335A (en) A kind of distributed temperature and humidity monitoring system

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant