1 Introduction
Most of my country's medium and large petrochemical enterprises use a small current grounding system for power supply, and the power system is relatively large. This type of system generally has several or even more than a dozen 35kV level total step-down stations, dozens of 6-10kV level high-voltage distribution rooms, and a wide distribution range. Some substations are more than ten kilometers away from the main dispatch. Therefore, the accurate and reliable transmission of the power parameters (voltage, current, phase, power factor, etc.) of each substation is particularly important for the main dispatch to make timely decisions, improve the quality of power supply, and ensure the safety of power operation. Here, we use a single-chip microcomputer to control the modem for remote real-time data transmission, and achieved satisfactory results.
2 Hardware System Design
The system network diagram is shown in Figure 1. The host computer of this system adopts a PII microcomputer, which is connected to the single-chip microcomputer system as the lower computer through MODEM←→ switching network←→MODEM. The data signal collected by the power sensor is input into the single-chip microcomputer system, and after being processed by the software program, the asynchronous transceiver 8251 controls the MODEM to automatically dial, and sends data after the host computer responds. After receiving the data through the MODEM, the host computer can process the data table or graph, which completes the whole process of remote data collection. The host computer can perform patrol control and detection on multiple lower single-chip microcomputer systems through the MODEM in a time-sharing manner.
The hardware circuit of the single-chip microcomputer system is shown in Figure 2. It is mainly composed of a single-chip microcomputer 89C51 and an asynchronous/synchronous transceiver controller chip. Here, 8251 is used as an asynchronous transceiver. Among them, COM8046 is a programmable dedicated clock generator that can provide clock signals for 89C51 at the same time. The signals of the receiving clock RXC and the transmitting clock TXC required by 8251 are also provided by it.
Since the input and output of 8251 are TTL level, a serial transceiver driver is required for level conversion and driving. This system uses the more commonly used MC1488 and MC1489 chips. RS-232 is a standard 9-pin interface that can be connected to any standard external MODEM interface.
The performance requirements for MODEM are: it has telephone number parameter storage; it has automatic dialing function and automatic answering function; it can perform speed buffering and flow control; it uses MNP5/V.42bis data compression method; it uses V4.2 error control protocol/MNP 2-4 error correction protocol; the rate is greater than 14.4kbps; and standard products that are compatible with the US Hayes series are selected.
Since the telephone line as the medium of the switching network will inevitably have line interference, the MODEM as the two end points must adopt corresponding anti-interference and error control technology. At the same time, the line transmission rate should not be too high. This system uses a baud rate of 1200dps. [page]
3 Software Design
The software design of the single-chip microcomputer system mainly consists of two parts: 8251 initialization and data transmission. The program flow charts are shown in Figures 3 and 4 respectively.
The initialization settings of 8251 are: working in asynchronous mode; baud rate is 1200dps; data length is 8 bits, one stop bit; even parity is used; DTR and RTS signals are valid.
The control of the MODEM is determined by DSR. When DSR is valid, the MODEM is reset first, and then a command is sent to make the MODEM dial automatically. Data is transmitted with the host computer while the DSR signal remains valid.
In the data transmission program, a group of storage units stores the data to be sent (i.e. the data converted by the sensor input, or the manually input data of the extended keyboard system). When the data is sent, the checksum data is also sent. After sending the data, check whether the send register is zero. If it is zero, it means that the data has been sent. After each data is sent, wait for the return signal from the host computer. If it is incorrect, it needs to be resent; if it is correct, send the next data again until all the data are sent.
4 Conclusion
Using a single-chip microcomputer to control the MODEM for remote data transmission has achieved good results and solved the problem of data exchange at remote locations that cannot be reached by the LAN dedicated line. It is particularly suitable for inspections and tests in remote areas, such as docks, warehouses, and high towers at remote locations of enterprises.
Previous article:Decoder based on single chip microcomputer is applied in security system
Next article:Design of FM radio system based on single chip microcomputer and TEA5767HN
Recommended ReadingLatest update time:2024-11-16 22:31
- Popular Resources
- Popular amplifiers
- Wireless Sensor Network Technology and Applications (Edited by Mou Si, Yin Hong, and Su Xing)
- Modern Electronic Technology Training Course (Edited by Yao Youfeng)
- Modern arc welding power supply and its control
- Small AC Servo Motor Control Circuit Design (by Masaru Ishijima; translated by Xue Liang and Zhu Jianjun, by Masaru Ishijima, Xue Liang, and Zhu Jianjun)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Working Principle of Transformer
- CC2541 Key Fob Reference Design
- Give feedback on Lingdong Micro's MM32F013x library functions and routines
- Design of wireless voice communication system based on Mesh technology
- [Domestic RISC-V Linux Board Fang·Starlight VisionFive Trial Report] Environment Preparation——Install MySQL
- Project Management (Passive Components)
- Help: Using SHT75, extending the wiring, the data read is 65535
- Detailed graphic analysis of the relationship between power supply PCB layout and EMC (LLC)
- LMV358 no output
- 【Silicon Labs Development Kit Review】+ Get familiar with the development environment and download the breathing light routine