With the development of the Internet of Things technology,remote meter reading systems can replace traditional meter reading methods and solve the problems of untimely,inaccurate,unreliable,and unsafe data collection in traditional meter reading.The remote meter reading system uses modern information technology to collect users’ water and electricity data accurately in real time and without time constraints.When an abnormality occurs,the water valve and other switches can be closed remotely in time to cut off the water supply to minimize the loss.Based on the MQTT(Message Queuing Telemetry Transport)remote meter reading system,a two-layer communication structure is designed.The bottom communication is the communication from the collector to the communication terminal.The communication is short-distance communication and uses the Bluetooth communication scheme.The upper communication is the communication from the communication terminal to the server.The communication is long-distance communication,and the communication scheme used is GPRS(General packet radio service).A message middleware suitable for the Internet of Things is designed.The message middleware can cache the data of the underlying communication,and select the appropriate time to flash the data to the database of the upper server.The upper server can also send commands to the message middleware.The message middleware can also send commands to the message middleware.Buffer the command and send it to the communication terminal at the appropriate time.The remote meter reading system has developed a B/S architecture and a C/S architecture.Users can log in to the system through a browser,or log in to the system through a mobile phone App.Users can connect to Bluetooth electricity meters and water meters through the mobile phone App.In order to ensure that the connection between the mobile phone App terminal and the Bluetooth device terminal is secure,a random verification algorithm is designed to perform two-way verification to ensure that the app terminal connected to the Bluetooth device is not a fake App terminal,and the App terminal is not connected to a fake Bluetooth device. |