Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Pending Publication Date: 2021-09-07
SANCHUAN WISDOM TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In the current smart water meter serial communication software, when it is necessary to send and receive data, it cannot fully guarantee the security of the data, as well as the reliability and continuity of the transmission.
In this case, on the one hand, it is inconvenient for users to use serial port software for work, and on the other hand, it will also affect user experience and efficiency
[0003] Although the current field of smart water meters has disclosed and used serial communication to a certain extent, such as sscom serial communication, it cannot fully guarantee data security, data reception stability and sustainability, and this function is limited to simple command debugging functions , rather than applications for formal scenarios
Therefore, this technology cannot solve the user's demand for sending and receiving data normally and without error in the smart water meter equipment, which cannot be met.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Intelligent water meter serial port communication optimization method, device, equipment and medium
  • Intelligent water meter serial port communication optimization method, device, equipment and medium
  • Intelligent water meter serial port communication optimization method, device, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

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. ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an intelligent water meter serial port communication optimization method. The method comprises the steps of initializing intelligent water meter serial port resource configuration; opening an intelligent water meter serial port; when instruction data is obtained, segmenting the instruction data into multiple groups of block data with the same size according to a specified data length; calculating the total number of times of rereceiving according to the total waiting time for sending the data instruction and the single receiving waiting time; reading the data through a serial port until data receiving is completed; judging whether the data local cache is empty or not, when the data local cache is not empty, exporting and analyzing the instruction data, and finally closing the intelligent water meter serial port; and when the data local cache is empty, judging whether the current number of times of rereceiving exceeds the total number of times of rereceiving, and if so, jumping out of the circulation and ending the step. According to the intelligent water meter serial port communication optimization method, device and equipment and the medium, intelligent water meter serial port communication data safety is achieved, receiving is stable and reliable, and the intelligent water meter serial port communication efficiency is improved.

Description

technical field [0001] The invention relates to the technical field of smart water meters, in particular to a method, device, device and medium for optimizing serial port communication of smart water meters. Background technique [0002] In the current serial communication software of smart water meters, when it is necessary to send and receive data, it cannot fully guarantee the security of data, as well as the reliability and continuity of transmission. In this case, on the one hand, it is inconvenient for users to use the serial port software for work, and on the other hand, it will also affect user experience and efficiency. [0003] Although the current field of smart water meters has disclosed and used serial communication to a certain extent, such as sscom serial communication, it cannot fully guarantee data security, data reception stability and sustainability, and this function is limited to simple command debugging functions , rather than applications for formal s...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F13/38G06F11/10H04L1/00
CPCG06F13/385G06F11/1004H04L1/0007H04L1/0033H04L1/0036H04L1/0061G06F2213/0002
Inventor 段明高陈坤宋志帆舒莉丹蔡黎明彭海兵李兵祝志云李建民程新高夏富友
Owner SANCHUAN WISDOM TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More