日韩免费一级毛片在线观看-中文日韩亚洲综合-欧美系列日韩另类-欧美激情极品日韩-午夜日韩爱爱毛片视频免费看-欧美日韩一区免费观看-欧美日韩欧美黄色三级

CAN bus based power meter reading system

About CAN Bus

CAN multi-master mode work, a node of the network office at any time can take the initiative to other nodes on the network to send information; CAN nodes on the network information into different priorities, can satisfy different real-time requirements; CAN bus using non-destructive arbitration techniques; CAN message filtering can be simply achieved by point to point, multipoint, and global broadcast data is sent and received in several ways; CAN direct communication distances of up to 10km (rate 5kbit / s below) communication speed up to 1Mbit / s (at this time communication distance up to 40m); CAN messages for each frame has a CRC checksum error detection and other measures to ensure that the data error rate is very low; CAN communication medium for double stranded wire, coaxial cable or optical cable, select flexible.

System Design

System consists of the following components: pulse meter, electricity collector, CAN converter, modem, PC. System block diagram shown in Figure 1.

CAN bus based power meter reading system

Figure 1 Block diagram of the power meter reading system

Can see from Figure 1, real-time acquisition charge collector residential building output pulse meter pulse signals transmitted by the CAN interface, CAN bus, and then the CAN converter conversion and Modem host computer and lower computer communications, in order to complete data collection, storage, measurement, display and other functions, on the whole cell situation of each user to achieve real-time monitoring.

System works

Electrical measurement of the acquisition

Rotary meter according to the structure, its pulse and dial the number of cycles of change is proportional to the number of pulses multiplied by the coefficient can be accumulated before the corresponding electrical measurement. To improve the accuracy of pulse measurement, software design methods with regular continuous sampling. An effective electric pulse width of 50ms or more, designed with the time period of 16ms. For the normal pulse, regular pulse measured by continuous sampling for the high frequency of ≥ 2, see Figure 2. If the pulse width is too small, not measured by the number 2, then you can get rid of this pulse.
Figure 2 Schematic diagram of pulse sampling inspection

Collector power

Power collector is the main function of pulse data, and communicate with the host computer. Its core components are AT89C52 microprocessor and interrupt controller 8259A. Systems, interrupt sources more than eight, so 8259A using cascade. Collector of each power under 5 8259A cascade, to meet the 32-way power signal input. Collector power block diagram shown in Figure 3.

CAN bus based power meter reading system

Figure 3 Block diagram of the collector charge

System, 8259A to control the external interrupt sources with AT89C52. 8259A for the AT89C52 analyze, judge, decide the priority of interrupt request signal. Interrupt signals from multiple meter was then taken by the input processing circuit 8259A. Which way is high, 8259A of the IRR (interrupt request register) the corresponding bit; then, 8259A its IRR and IMR (interrupt mask register ) for the situation analysis and processing, when a road is not IMR mask interrupt sources, and the way the priority level of interrupt source CPU is higher than the level of the transaction when, 8259A 17-pin to generate a high level, through the specialized application and respond to interrupt the circuit into a low power meter based on CAN bus system, the interrupt request made to the AT89C52, while waiting in line the rest of the interrupt and save. This pulse will not be lost, signal acquisition to ensure the accuracy of the system. , The instrument technologies and sensors would be more disruption for the AT89C52 interrupt the currently running application program and the priority level for and response by the interruption of the circuit response to the 8259A interrupt signal back to the electricity meter reading based on CAN bus system. At this time, AT89C52 turn to the implementation of the interrupt service routine.
For the protection of the data collected, the design of memory used. Storage area can be divided into two areas: a work area, storage, real-time power measurement, repeat it some time to refresh 1; a backup area for 6 months of electrical backup measure to prevent the loss of useful information.

For the convenience of the user query, the system can be displayed in the collector circuit was designed LCM103, to achieve local display. To its pin CS, WR, DA2TA and microcontroller interface can be achieved related to its display. Multiple interrupt sources of data used in LCM103 rotation display. LCM03 of 10 were defined as the user account can do, and do not display the data table. No. 10 for the household income, section 8 for the table do not, the remaining bit that the energy consumption figures of all tables, the first 3 digits of the decimal point. No. 9 and No. 7 as a space for clear reading.

Design, in LCM103 the VDD and VLCD plus 511kΩ resistor between pins to allow moderate display brightness.

CAN Interface Converter

CAN controller SJA1000 CAN converter and by the CAN driver PCA82C250 composition. CAN converter is responsible for receiving commands issued to the host computer to transmit the power site, a group linked to CAN bus up to 110 sites, the block diagram shown in Figure 4.

CAN bus based power meter reading system

Figure 4 CAN Controller Interface Functional Block Diagram

CAN converter

In order to achieve communication with the host computer microcontroller designed with TTL level conversion between RS-232 interface, as shown in Figure 5. AT89C52 itself does not contain the controller, so using the CAN controller SJA1000, and CAN drive PCA82C250.

CAN bus based power meter reading system

Figure 5 RS232/CAN functional block diagram of converter

CAN bus communication baud rate

Calculate the district control room PC with the power collector in the MCU communication baud rate 40.5Kbit / s, take 50Kbit / s, this time CAN bus communication distance up to 1.5km, if the control room was built in load center, the communication meet the requirements from. At this point bus timing register BTR0 and BTR1 were BTR0 = 47H = 01000111B, BTR1 = 2FH = 0011111B. Moreover, in order to make the site work within the system simultaneously, the PC must be the whole point of time when the school issued an order to the site.

Software Design

Mainly on the design of the collector for a brief description of the main program. It includes the initialization and data acquisition and processing of two parts. Initialization procedure includes initialization 8259A. In the data collection, the collector main program loop to take the way of data collection, and to classify the received command, and then switch to the appropriate command processing subroutine. The main program flow chart shown in Figure 6.

Anti-jamming measures

(1) in the system design, the use of the X5045 chip, the chip has a watchdog circuit. Watchdog circuit for real-time monitoring of CPU, if the CPU into an infinite loop, the watchdog circuit can discover and to reset the entire system. In software programming, set to visit every 1s 1 watchdog circuit. If the program running or flying over a set time (the system set to 1.4s) did not visit the watchdog chip, X5045 chip will automatically reset pulse output until the program runs properly.

(2) data acquisition device with filter circuit, the various forms produced by electrical pulse signal is filtered to prevent the signal during transmission may be subject to interference.

(3) the use of X5045 chip power supply monitoring circuit monitoring feature set and power down protection circuit to prevent data loss after power-down.

CAN bus based power meter reading system

Conclusion

CAN bus based power meter reading system uses a smart data acquisition, data communication via CAN bus exchange, the system response speed, anti-jamming; network reliability high, communication baud rate, data transfer volume; structure simple to install, easy to maintain. System can easily achieve real-time monitoring, high-speed data acquisition, look-up table printing, system monitoring and other functions, has a good prospect.

Declined comment

成人在免费观看视频国产| 欧美夜夜骑 青草视频在线观看完整版 久久精品99无色码中文字幕 欧美日韩一区二区在线观看视频 欧美中文字幕在线视频 www.99精品 香蕉视频久久 | 二级特黄绝大片免费视频大片| 国产一级生活片| 亚洲精品中文一区不卡| 国产成+人+综合+亚洲不卡| 免费的黄色小视频| 精品国产一区二区三区精东影业 | 国产一区二区精品尤物| 日韩专区亚洲综合久久| 午夜在线亚洲| 成人免费网站久久久| 国产一区国产二区国产三区| 韩国三级一区| 黄色免费三级| 精品国产三级a| 精品国产一区二区三区久久久狼| 精品国产亚一区二区三区| 免费国产在线观看不卡| 91麻豆精品国产自产在线观看一区| 亚洲精品中文字幕久久久久久| 一级毛片视频播放| 欧美爱爱网| 日韩一级黄色| 精品视频一区二区三区| 四虎影视久久| 国产欧美精品| 四虎久久精品国产| 麻豆系列 在线视频| 麻豆系列 在线视频| 青青久久网| 美国一区二区三区| 999精品在线| 九九精品影院| 中文字幕一区二区三区精彩视频| 精品国产亚一区二区三区| 国产成人女人在线视频观看| 精品国产亚一区二区三区| 久久国产精品只做精品| 欧美激情一区二区三区视频| 日韩免费在线观看视频| 免费的黄视频| 日韩在线观看免费| 国产网站在线| 美女免费精品视频在线观看| 国产一级生活片| 精品视频在线观看视频免费视频| 久久国产一久久高清| 九九热国产视频| 一级片片| 成人免费一级纶理片| 成人免费观看的视频黄页| 欧美激情一区二区三区在线 | 91麻豆精品国产高清在线 | 香蕉视频一级| 欧美18性精品| 精品国产一区二区三区久| 韩国毛片免费| 高清一级做a爱过程不卡视频| 精品视频在线看 | 久久国产精品自由自在| 国产成a人片在线观看视频| 中文字幕一区二区三区 精品| 欧美电影免费| 久久久成人影院| 久久国产影视免费精品| 成人高清视频免费观看| 国产亚洲男人的天堂在线观看| 九九热国产视频| 亚洲第一色在线| 夜夜操网| 九九久久国产精品大片| 日韩综合| 精品国产一区二区三区久久久蜜臀 | 久久精品道一区二区三区| 国产不卡在线观看| 天堂网中文字幕| 青青久久国产成人免费网站| 欧美爱色| 欧美激情一区二区三区在线播放| 久久精品道一区二区三区| 久久国产精品自线拍免费| 99色视频在线| 亚洲 激情| 日韩中文字幕在线播放| 韩国三级一区| 黄色免费网站在线| 精品久久久久久综合网| 99久久视频| 国产视频一区二区在线播放| 久久国产一区二区| 黄色短视频网站| 欧美大片毛片aaa免费看| 黄色短视频网站| 日韩欧美一二三区| 欧美另类videosbestsex视频| 精品在线观看一区| 99久久视频| 精品在线观看一区| 国产国语对白一级毛片| 99热精品一区| 日韩在线观看网站| 国产精品自拍亚洲| 日本免费区| 超级乱淫黄漫画免费| 久久精品免视看国产成人2021| 四虎影视久久| 日韩中文字幕在线播放| 国产高清在线精品一区二区| 美女免费精品视频在线观看| 午夜激情视频在线播放| 欧美激情一区二区三区视频 | 99久久精品费精品国产一区二区| 亚洲精品中文一区不卡| 欧美另类videosbestsex久久| 青青青草视频在线观看| 日韩中文字幕在线播放| 台湾毛片| 一级女性大黄生活片免费| 欧美夜夜骑 青草视频在线观看完整版 久久精品99无色码中文字幕 欧美日韩一区二区在线观看视频 欧美中文字幕在线视频 www.99精品 香蕉视频久久 | 天天色成人网| 亚洲爆爽| 亚洲精品中文一区不卡| 精品视频在线看| 精品国产亚洲一区二区三区| 亚洲爆爽| 精品国产一区二区三区久久久蜜臀 | 精品国产亚洲人成在线| 国产91素人搭讪系列天堂| 久久成人综合网| 日本久久久久久久 97久久精品一区二区三区 狠狠色噜噜狠狠狠狠97 日日干综合 五月天婷婷在线观看高清 九色福利视频 | 色综合久久手机在线| 精品在线视频播放| 国产一区二区精品| 麻豆污视频| 久久精品店| 成人免费一级毛片在线播放视频| 国产伦理精品| 国产亚洲精品aaa大片| 成人a大片在线观看| 日日爽天天| 成人免费一级毛片在线播放视频| 美女免费毛片| 香蕉视频久久| 国产不卡高清在线观看视频 | 久草免费在线观看| 日韩中文字幕在线观看视频| 国产综合91天堂亚洲国产| 国产亚洲免费观看| 台湾毛片| 成人a大片在线观看| 黄色福利片| 欧美日本免费| 国产麻豆精品高清在线播放| 久久精品免视看国产成人2021| 久久精品免视看国产成人2021| 韩国三级视频在线观看| 日本特黄特色aaa大片免费| 国产成人女人在线视频观看| 欧美一级视| 99热精品在线| 黄视频网站在线免费观看| 日本特黄特色aaa大片免费| 国产伦精品一区二区三区在线观看| 九九九国产| 久久国产影视免费精品| 四虎久久影院| 麻豆系列 在线视频| 日韩专区亚洲综合久久| 可以免费看污视频的网站| 国产高清在线精品一区a| 好男人天堂网 久久精品国产这里是免费 国产精品成人一区二区 男人天堂网2021 男人的天堂在线观看 丁香六月综合激情 | 精品视频在线观看一区二区三区| 国产不卡高清| 亚洲精品中文一区不卡| 成人高清护士在线播放| 国产不卡高清| 日韩av片免费播放| 国产伦精品一区三区视频| 久久成人综合网| 欧美日本二区| 欧美激情中文字幕一区二区| 国产91丝袜高跟系列| 亚洲精品影院| 亚洲精品久久玖玖玖玖| 成人高清视频在线观看| 日韩男人天堂| 久草免费在线色站| 日韩一级黄色片| 免费毛片基地| 日韩欧美一及在线播放| 四虎久久影院| 麻豆午夜视频| 毛片电影网| 天天做日日干| 亚洲第一色在线| 日韩专区一区| 成人免费观看的视频黄页| 日韩专区一区| 成人免费一级毛片在线播放视频|