Font Size: a A A

Remote Automatic Meter Reading Data Transmission System On Protocol Buffers

Posted on:2018-06-14Degree:MasterType:Thesis
Country:ChinaCandidate:J ZhangFull Text:PDF
GTID:2382330569985529Subject:Hydraulic engineering
Abstract/Summary:PDF Full Text Request
Intelligent copy water meter technology is the underlying hardware meter reading and Internet technology combined with the new technology.With the expansion of the business volume of the water supply company and the increase of the function,the number of message requests between the servers increased greatly,resulting in serious blocking of the old system messages,high response times,and sometimes no response.The old system of message data serialization and deserialization process is more cumbersome,when the agreement has changed,this process will be re-edited,so the code is not strong enough scalability.In order to alleviate the pressure in the data transmission in the intelligent meter reading system,the data transfer system based on Protocol Buffers is designed and implemented in view of the above problems.The main work of this paper includes:1.The new system no longer needs the table in the database as the transmission intermediary,the collection server and the Web server directly interact,for two servers direct communication design message protocol,reduce the middle of the database operation,the efficiency will be improved to a certain extent.2.The new system uses Protocol Buffers as a serialization protocol,and packets are packaged and parsed using the Protocol Buffers interface.When the data message protocol changes,only need to change the corresponding message file,re-generate Protocol Buffers interface class can be packaged and parsed code basically unchanged.Protocol Buffers can serialize packets into binary files,the packet compression rate is high,reducing the amount of message data.3.The new system in the transmission of the carrier to do the communication,no longer use the TCP / IP protocol as a transmission medium,but the use of ActiveMQ as a message transmission middleware,two servers will send messages to the ActiveMQ message queue,the background Will automatically push the message to the receiver,the transmission process can ensure that no packet,no retransmission,to achieve a stable data transmission.This paper tests the data transmission system.The test results show that the protocol data of the Protocol Buffers serialization protocol is the highest,the time is least and the optimized system performance is improved.
Keywords/Search Tags:Automatic meter reading, Data transmission, Protocol Buffers, ActiveMQ, Data serialization
PDF Full Text Request
Related items