CN113422819B - Method for realizing efficient data acquisition by HDLC protocol - Google Patents

Method for realizing efficient data acquisition by HDLC protocol Download PDF

Info

Publication number
CN113422819B
CN113422819B CN202110682143.5A CN202110682143A CN113422819B CN 113422819 B CN113422819 B CN 113422819B CN 202110682143 A CN202110682143 A CN 202110682143A CN 113422819 B CN113422819 B CN 113422819B
Authority
CN
China
Prior art keywords
meter
searching
task
detecting whether
meter reading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110682143.5A
Other languages
Chinese (zh)
Other versions
CN113422819A (en
Inventor
刘春华
向程
周华
陈华殷
王晓栋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Hongxing Zhilian Technology Co ltd
Original Assignee
Shenzhen Hongxing Zhilian Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Hongxing Zhilian Technology Co ltd filed Critical Shenzhen Hongxing Zhilian Technology Co ltd
Priority to CN202110682143.5A priority Critical patent/CN113422819B/en
Publication of CN113422819A publication Critical patent/CN113422819A/en
Application granted granted Critical
Publication of CN113422819B publication Critical patent/CN113422819B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/26Special purpose or proprietary protocols or architectures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2209/00Arrangements in telecontrol or telemetry systems
    • H04Q2209/60Arrangements in telecontrol or telemetry systems for transmitting utility meters data, i.e. transmission of data from the reader of the utility meter

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Security & Cryptography (AREA)
  • Cardiology (AREA)
  • Communication Control (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The invention provides a method for realizing efficient data acquisition by adopting an HDLC protocol, and relates to the field of efficient searching, reporting, recording and reading of HDLC protocols of collectors. The realization adopts the HDLC protocol to collect data with high efficiency, the method includes the following procedures: resetting or powering up the collector, then detecting whether the time is the time for searching the table, and if the time is the time for searching the table; detecting whether a meter reading task is in process or not, and if so, judging whether the meter reading task is in process; detecting whether the meter reading time is the meter reading time or not; and detecting whether a table needs to be reported, and if so, carrying out report processing. The HDLC protocol meter searching and reporting method of the collector has the advantages of fast meter searching speed, support for multi-channel meter searching, large support capacity, long wiring distance, no influence on meter searching, meter reading and no loss of meter numbers due to the fact that the meter is powered up again after the electricity meter is powered down; in addition, the meter searching and meter reading can be mutually avoided, and the situation that the meter reading breaks the meter searching during meter searching or breaks the meter reading during meter reading is avoided.

Description

Method for realizing efficient data acquisition by HDLC protocol
Technical Field
The invention relates to the technical field of efficient searching, reporting and meter reading of an HDLC (high-level data Link control) protocol of a collector, in particular to a method for realizing efficient data collection by adopting the HDLC protocol.
Background
The existing collector has more defects in use, for example, after the electricity meter is powered down, the electricity meter is powered up again to influence meter searching and meter reading, meanwhile, a meter number can be lost in a report form, and meanwhile, aiming at the condition that the meter searching is interrupted during meter searching or the meter searching is interrupted during meter reading in the prior art, a method for efficiently collecting data by adopting an HDLC protocol is provided.
Disclosure of Invention
(one) solving the technical problems
Aiming at the defects of the prior art, the invention provides a method for realizing efficient data acquisition by adopting an HDLC protocol, and solves the defects of the existing acquisition device.
(II) technical scheme
In order to achieve the above purpose, the invention is realized by the following technical scheme:
a method for implementing efficient data collection using HDLC protocols, the method comprising the steps of:
the method comprises the following steps of 1, resetting or powering up a collector, then detecting whether the time is the table searching time, and if the time is the table searching time;
step 2, detecting whether a meter reading task is in process or not, and if so, processing the meter reading task;
step 3, detecting whether the meter reading time is the meter reading time or not;
a flow 4, detecting whether a table needs to be reported, if so, reporting the table;
step 5, carrying out report processing, then detecting whether a meter reading task exists or not, and if so, carrying out report processing;
a flow 6, detecting whether a table searching task is in process;
and 7, if the table searching task is processed in the process 6, starting to perform the task in the process 1.
Preferably, the process 6 performs the meter reading task and starts to perform the process 1 task when no meter searching task is in process.
Preferably, if the flow 1 is the non-table searching time, detecting whether a table searching task is in process, and if the table searching task is not in process, performing the work of the flow 3; if the table searching task is in process, detecting whether the table number frame returning process exists, if the table number frame returning process exists, performing the table number frame returning receiving process, and performing the step 1.
Preferably, the step 1 detects whether the table number frame returning is completed, and if not, the process 3 is performed; if the table is finished, whether the table is searched or not is detected, if the table is not searched, the process 3 is carried out, and if the table is searched, the table mouth closing process is carried out.
Preferably, the method includes step 2, namely, whether the table closing process is finished or not is detected, if not, the process 3 is carried out, if so, the PING table process is carried out, then whether the current PING table process is successful or not is detected, if not, the current search table number and short code process are cleared, the process 3 is carried out, if so, whether the PING table processor is finished, if not, the process 3 is carried out, if so, the table number and short code process of the current search table are saved, and then the process 3 is carried out.
Preferably, if no table number frame returning process is performed, it is detected whether to perform the table closing process, if the table closing process is performed, the task of step 2 is performed, if the table closing process is not performed, the PING table process of step 2 is performed, and the subsequent task of the PING table process of step 2 is completed.
Preferably, in the process 2, if no meter reading task is in process, detecting whether the meter reading task is a new table searching operation, if not, sending a non-new table searching data frame, performing table number frame returning receiving processing, and then performing the work in the step 1; and if the new table searching operation is carried out, sending a new table searching data frame, carrying out table number frame returning receiving processing, and then carrying out the work in the step 1.
Preferably, in the process 3, if the meter reading time is not the meter reading time, whether the report task is being processed is detected, if the report task is being processed, the process 5 is performed, and if the report task is not being processed, the process 6 is performed.
(III) beneficial effects
The invention provides a method for realizing efficient data acquisition by adopting HDLC protocol. The beneficial effects are as follows:
the HDLC protocol meter searching and reporting method of the collector has the advantages of fast meter searching speed, support for multi-channel meter searching, large support capacity, long wiring distance, no influence on meter searching, meter reading and no loss of meter numbers due to the fact that the meter is powered up again after the electricity meter is powered down; in addition, the meter searching and meter reading can be mutually avoided, and the situation that the meter reading breaks the meter searching during meter searching or breaks the meter reading during meter reading is avoided.
Drawings
FIG. 1 is a flow chart of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Examples:
as shown in fig. 1, an embodiment of the present invention provides a method for implementing efficient data collection using an HDLC protocol, where the method includes the following steps:
the method comprises the following steps of 1, resetting or powering up a collector, then detecting whether the time is the table searching time, and if the time is the table searching time;
step 2, detecting whether a meter reading task is in process or not, and if so, processing the meter reading task;
step 3, detecting whether the meter reading time is the meter reading time or not;
a flow 4, detecting whether a table needs to be reported, if so, reporting the table;
step 5, carrying out report processing, then detecting whether a meter reading task exists or not, and if so, carrying out report processing;
a flow 6, detecting whether a table searching task is in process;
and 7, if the table searching task is processed in the process 6, starting to perform the task in the process 1.
And if the process 6 is not processed by the meter searching task, performing a meter reading task, and starting to perform the process 1 task.
If the flow 1 is the non-table searching time, detecting whether a table searching task is in process, and if the table searching task is not in process, carrying out the work of the flow 3; if the table searching task is in process, detecting whether the table number frame returning process exists, if the table number frame returning process exists, performing the table number frame returning receiving process, and performing the step 1.
Step 1, detecting whether the table number frame returning is completed or not, and if not, performing the work of a flow 3; if the table is finished, whether the table is searched or not is detected, if the table is not searched, the process 3 is carried out, and if the table is searched, the table mouth closing process is carried out.
The method comprises the steps of step 2, namely, detecting whether the table closing process is finished or not, if not, carrying out the process 3 work, if so, carrying out PING table processing, then detecting whether the current PING table processing is successful, if not, clearing the current search table number and short code processing, and carrying out the process 3 work, if so, detecting whether the PING table processor is finished, if not, carrying out the process 3 work, if so, storing the table number and short code processing of the current search table, and then carrying out the process 3 work.
If no table number is returned to the frame processing, whether the table closing processing is carried out is detected, if the table closing processing is carried out, the task of the step 2 is carried out, if the table closing processing is not carried out, the PING table processing of the step 2 is carried out, and the follow-up task of the PING table processing of the step 2 is completed.
In the process 2, if no meter reading task is in process, detecting whether the meter reading task is a new table searching operation, if not, sending a non-new table searching data frame, performing table number frame returning receiving processing, and then performing the work in the step 1; and if the new table searching operation is carried out, sending a new table searching data frame, carrying out table number frame returning receiving processing, and then carrying out the work in the step 1.
And if the non-meter reading time is in the process 3, detecting whether a report task is being processed, if so, performing the process 5, and if not, performing the process 6.
Although embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made therein without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (1)

1. A method for realizing high-efficiency data acquisition by adopting HDLC protocol is characterized in that: the method comprises the following steps:
the method comprises the following steps of 1, resetting or powering up a collector, and then detecting whether the time is the table searching time;
step 2, if the meter searching time is the meter searching time, detecting whether a meter reading task is in process, if the meter searching time is not the meter searching time, detecting whether the meter searching task is in process, if the meter searching task is not in process, performing a step 3, if the meter searching task is in process, detecting whether the meter number frame returning process is performed, if the meter number frame returning process is performed, performing the meter number frame returning receiving process, and performing the step 1, if the meter number frame returning process is not performed, detecting whether the meter closing process is performed, if the meter closing process is performed, performing the step 2, if the meter closing process is not performed, performing the PING meter process in the step 2, and completing the subsequent task of the PING meter process in the step 2;
step 3, if the meter reading task is in process, detecting whether the meter reading task is in meter reading time, if the meter reading task is not in process, detecting whether the meter reading task is in new table searching operation, if the meter reading task is not in new table searching operation, sending a data frame of a non-new table searching, carrying out table number frame returning receiving processing, and then carrying out work in step 1; if the new table searching operation is carried out, a new table searching data frame is sent, table number frame returning receiving processing is carried out, and then the operation in the step 1 is carried out;
a flow 4, detecting whether a meter needs to be reported if the meter reading time is available, detecting whether a report task is being processed if the meter reading time is unavailable, performing a flow 5 if the report task is being processed, and performing a flow 6 if the report task is not being processed;
step 5, if a meter needs to be reported, report processing is carried out, and then whether a meter reading task exists or not is detected;
step 6, if the meter reading task exists, detecting whether the meter searching task is in process;
a flow 7, wherein the flow 6 starts to carry out the task of the flow 1 if the table searching task is in process, the flow 6 does not carry out the meter reading task if the table searching task is not in process, and the flow 1 task is started;
step 1, detecting whether the table number frame returning is completed or not, and if not, performing the work of a flow 3; if the table is finished, detecting whether the table is searched, if the table is not searched, performing the work of the flow 3, and if the table is searched, performing the table mouth closing processing;
and step 2, detecting whether the table mouth closing processing is finished or not, if not, performing the process 3, if so, performing the PING table processing, then detecting whether the current PING table processing is successful, if not, clearing the current search table number and short code processing, and performing the process 3, if so, detecting whether the PING table processing is finished, if not, performing the process 3, if so, storing the table number and short code processing of the current search table, and then performing the process 3.
CN202110682143.5A 2021-06-20 2021-06-20 Method for realizing efficient data acquisition by HDLC protocol Active CN113422819B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110682143.5A CN113422819B (en) 2021-06-20 2021-06-20 Method for realizing efficient data acquisition by HDLC protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110682143.5A CN113422819B (en) 2021-06-20 2021-06-20 Method for realizing efficient data acquisition by HDLC protocol

Publications (2)

Publication Number Publication Date
CN113422819A CN113422819A (en) 2021-09-21
CN113422819B true CN113422819B (en) 2023-12-19

Family

ID=77789448

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110682143.5A Active CN113422819B (en) 2021-06-20 2021-06-20 Method for realizing efficient data acquisition by HDLC protocol

Country Status (1)

Country Link
CN (1) CN113422819B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115065610B (en) * 2022-04-25 2024-04-30 宁波三星医疗电气股份有限公司 Concentrator table searching method, readable storage medium, concentrator and table searching system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010170337A (en) * 2009-01-22 2010-08-05 Hitachi Ltd Meter reading device management method, meter reading device management system, handy terminal, and meter reading device management server
CN102339300A (en) * 2011-06-17 2012-02-01 杭州炬华科技股份有限公司 Automatic meter searching method for intelligent power grid
CN106327847A (en) * 2016-08-19 2017-01-11 深圳市慧联通信技术有限公司 Electricity usage information centralized reading method and system
CN108257375A (en) * 2017-12-29 2018-07-06 南昌市科陆智能电网科技有限公司 A kind of power grid meter register method and system
CN112565351A (en) * 2020-11-02 2021-03-26 珠海中慧微电子有限公司 Mobile meter reading method based on WiSUN protocol
CN112713917A (en) * 2020-12-24 2021-04-27 国网北京市电力公司 Communication method and device based on HPLC, storage medium and electronic device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010170337A (en) * 2009-01-22 2010-08-05 Hitachi Ltd Meter reading device management method, meter reading device management system, handy terminal, and meter reading device management server
CN102339300A (en) * 2011-06-17 2012-02-01 杭州炬华科技股份有限公司 Automatic meter searching method for intelligent power grid
CN106327847A (en) * 2016-08-19 2017-01-11 深圳市慧联通信技术有限公司 Electricity usage information centralized reading method and system
CN108257375A (en) * 2017-12-29 2018-07-06 南昌市科陆智能电网科技有限公司 A kind of power grid meter register method and system
CN112565351A (en) * 2020-11-02 2021-03-26 珠海中慧微电子有限公司 Mobile meter reading method based on WiSUN protocol
CN112713917A (en) * 2020-12-24 2021-04-27 国网北京市电力公司 Communication method and device based on HPLC, storage medium and electronic device

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
《国网电力采集终端档案自动维护方案研究》;赵雨婷;机电信息;全文 *
Overlapping clustering routing algorithm based on L-PLC meter reading system;Zhenchao Wang;2009 IEEE International Conference on Automation and Logistics;全文 *
人工路由路径解决载波集抄信号盲点问题;郑松松;彭叶飞;蔡明海;;湖州师范学院学报(第08期);全文 *
无线电力抄表***干扰分析与管理思考;孙涛;胡佳庆;;中国无线电(第02期);全文 *

Also Published As

Publication number Publication date
CN113422819A (en) 2021-09-21

Similar Documents

Publication Publication Date Title
CN113422819B (en) Method for realizing efficient data acquisition by HDLC protocol
CN107204775B (en) Sampling method and sampling device for analog signals
CN112283770A (en) Smoke machine control method and device, smoke machine and storage medium
CN106781415B (en) Method and system for automatically maintaining communication parameters of centralized meter reading collector
CN103714060A (en) Interrupt-period historical data processing method and front-end collecting sub system equipment
CN113938765A (en) Electric energy metering data uploading processing method and system
CN1529178A (en) Electric-power system transmitting-line fault diagnosis and phase selecting method
CN103399803B (en) Method and device for collecting browser breakdown information and terminal equipment
CN112329981B (en) Station optimization point determining method, system, device and storage medium
CN115065610B (en) Concentrator table searching method, readable storage medium, concentrator and table searching system
CN110404923B (en) Intelligent cutting method for scrapped motor
CN110764711B (en) IO data classification deleting method and device and computer readable storage medium
CN111339090A (en) Power grid distribution network data processing system and method
CN112399365B (en) Welding man-hour calculation data acquisition method and device
CN109062801B (en) Automatic conversion system for software interface
CN110658478A (en) Testing method and device based on power supply balance signal stability and storage medium
CN211293728U (en) Data interaction system between PLC remote modules
CN205067668U (en) Cable partial discharge signal positioning device
CN114328484A (en) Grouping management method and system for electric meter nuclear data
CN105824824B (en) Standby call ticket collection equipment and call ticket file collection method thereof
CN109960213B (en) Control method of rotary positioning equipment
CN112286777A (en) PC equipment parameter data quality inspection method, system and server
CN103532763B (en) A kind of Fault Locating Method and device
CN108512729B (en) Average delay extraction method based on network information transmission delay sequence
CN102236718B (en) A kind of method and device of data query

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant