Intelligent water meter serial port communication optimization method, device, equipment and medium
A smart water meter and serial port communication technology, which is applied to the device dedicated to the transmitter, the device dedicated to the receiver, and the adjustment of the transmission mode, etc., can solve the problems that cannot be solved, are inconvenient, and cannot fully guarantee data security and stable data reception. issues such as reliability and sustainability, to achieve the effect of enhancing accuracy and ensuring stable reception
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0039] This embodiment provides a smart water meter serial port communication optimization method, such as figure 1 shown, including;
[0040] Step 10. Initialize the resource configuration of the serial port of the smart water meter; initialize the serial port object, thereby preventing the acquisition and output of subsequent signals from being affected, avoiding misoperation and output, and improving the accuracy of signal acquisition and output, including setting the port number of the smart water meter, Baud rate, data bits, parity bits, stop bits, etc.
[0041] Step 20. Open the serial port of the smart water meter and wait for receiving data;
[0042] Step 30, when the instruction data is obtained (the instruction data refers to the data arranged by the smart water meter according to certain rules and has security guarantee), divide the instruction data into multiple groups of the same size according to the specified data length Block data, if the instruction data and...
Embodiment 2
[0057] In this embodiment, a smart water meter serial port communication optimization device is provided, such as figure 2 As shown, it includes: initialization module, serial port control module, data segmentation module, recollection mechanism module, data reading module and data processing module;
[0058] The initialization module is used to initialize the resource configuration of the serial port of the smart water meter;
[0059] The serial port control module is used to open the serial port of the smart water meter and wait for receiving data;
[0060] The data segmentation module is used to divide the instruction data into multiple sets of block data of the same size according to the specified data length when the instruction data is obtained, if the modulo between the instruction data and the specified data length is not 0, Then take the remaining data after division as the tail block data, and finally set the total waiting time;
[0061] The recollection mechanism...
Embodiment 3
[0070] This embodiment provides an electronic device, such as image 3 As shown, it includes a memory, a processor, and a computer program stored in the memory and operable on the processor. When the processor executes the computer program, any implementation manner in Embodiment 1 can be realized.
[0071] Since the electronic device introduced in this embodiment is the device used to implement the method in Embodiment 1 of this application, based on the method described in Embodiment 1 of this application, those skilled in the art can understand the electronic device of this embodiment. Specific implementation methods and various variations thereof, so how the electronic device implements the method in the embodiment of the present application will not be described in detail here. As long as a person skilled in the art implements the equipment used by the method in the embodiment of the present application, it all belongs to the protection scope of the present application. ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com



