CN114584607A - Communication connection establishing method and device, electronic equipment and readable storage medium - Google Patents

Communication connection establishing method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN114584607A
CN114584607A CN202210478302.4A CN202210478302A CN114584607A CN 114584607 A CN114584607 A CN 114584607A CN 202210478302 A CN202210478302 A CN 202210478302A CN 114584607 A CN114584607 A CN 114584607A
Authority
CN
China
Prior art keywords
communication
channel
data
communication connection
master station
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.)
Granted
Application number
CN202210478302.4A
Other languages
Chinese (zh)
Other versions
CN114584607B (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.)
Yunnan Power Grid Co Ltd
Original Assignee
Svi Intelligent Measurement System Service Changsha 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 Svi Intelligent Measurement System Service Changsha Co ltd filed Critical Svi Intelligent Measurement System Service Changsha Co ltd
Priority to CN202210478302.4A priority Critical patent/CN114584607B/en
Publication of CN114584607A publication Critical patent/CN114584607A/en
Application granted granted Critical
Publication of CN114584607B publication Critical patent/CN114584607B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • 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
    • H04QSELECTING
    • H04Q9/00Arrangements in telecontrol or telemetry systems for selectively calling a substation from a main station, in which substation desired apparatus is selected for applying a control signal thereto or for obtaining measured values therefrom
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Communication Control (AREA)

Abstract

The application discloses a communication connection establishing method, a communication connection establishing device, electronic equipment and a readable storage medium, which are applied to a master station, wherein the communication connection establishing method comprises the following steps: when a communication connection establishment request is detected, acquiring channel quality tags of all communication channels between the master station and corresponding electric meter data acquisition terminals, wherein the channel quality tags are obtained by performing channel quality detection according to channel state data corresponding to all the communication channels and corresponding historical communication data; according to the channel quality labels, carrying out priority arrangement on the communication channels to obtain channel priority information; and establishing communication connection between the electric meter data acquisition terminal and the master station according to the channel priority information. The technical problem that ammeter data acquisition reliability is low is solved in this application.

Description

Communication connection establishing method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for establishing a communication connection, an electronic device, and a readable storage medium.
Background
In the electric power collection system, the accuracy and the stability of data acquisition all possess higher requirement usually, therefore there are many communication channel usually between ammeter data acquisition terminal and the main website, guarantee that the main website can stably gather accurate ammeter data, but the reliability of different communication channel in different time quantums has the difference, for example some channels are because the ammeter data of network fluctuation reason collection are incomplete or inaccurate, thereby can influence ammeter data acquisition's reliability.
Disclosure of Invention
The application mainly aims to provide a communication connection establishing method, a communication connection establishing device, electronic equipment and a readable storage medium, and aims to solve the technical problem that in the prior art, the reliability of electric meter data acquisition is low.
In order to achieve the above object, the present application provides a communication connection establishing method, which is applied to a master station, and the communication connection establishing method includes:
acquiring channel state data and corresponding historical communication data corresponding to each communication channel between a master station and an ammeter data acquisition terminal;
extracting the characteristics of the channel state data to obtain the channel state characteristics corresponding to the communication channels;
determining communication quality characteristics corresponding to the communication channels according to the historical communication data;
respectively performing channel quality evaluation on each communication channel by respectively inputting channel state characteristics corresponding to each communication channel and corresponding communication quality characteristics into a preset channel quality scoring model to obtain a channel quality label corresponding to each communication channel;
when a communication connection establishment request is detected, acquiring channel quality tags of all communication channels between the master station and corresponding electric meter data acquisition terminals, wherein the channel quality tags are obtained by performing channel quality detection according to channel state data corresponding to all the communication channels and corresponding historical communication data;
according to the channel quality labels, carrying out priority arrangement on the communication channels to obtain channel priority information;
and establishing communication connection between the electric meter data acquisition terminal and the master station according to the channel priority information.
In order to achieve the above object, the present application further provides a communication connection establishing apparatus applied to a master station, the communication connection establishing apparatus including:
the first acquisition module is used for acquiring channel state data and corresponding historical communication data corresponding to each communication channel between the master station and the ammeter data acquisition terminal;
the characteristic extraction module is used for extracting the characteristics of the channel state data to obtain the channel state characteristics corresponding to the communication channels;
the determining module is used for determining the communication quality characteristics corresponding to the communication channels according to the historical communication data;
the channel quality evaluation module is used for respectively carrying out channel quality evaluation on each communication channel by respectively inputting the channel state characteristics corresponding to each communication channel and the corresponding communication quality characteristics into a preset channel quality scoring model to obtain a channel quality label corresponding to each communication channel;
the second acquisition module is used for acquiring channel quality labels of all communication channels between the master station and the corresponding electric meter data acquisition terminals when a communication connection establishment request is detected, wherein the channel quality labels are obtained by performing channel quality detection according to channel state data corresponding to all the communication channels and corresponding historical communication data;
the priority arrangement module is used for carrying out priority arrangement on each communication channel according to each channel quality label to obtain channel priority information;
and the communication connection establishing module is used for establishing communication connection between the electric meter data acquisition terminal and the master station according to the channel priority information.
The present application further provides an electronic device, the electronic device is an entity device, the electronic device includes: a memory, a processor and a program of the communication connection establishment method stored on the memory and executable on the processor, which program, when executed by the processor, may implement the steps of the communication connection establishment method as described above.
The present application also provides a computer-readable storage medium having stored thereon a program for implementing a communication connection establishment method, the program implementing the steps of the communication connection establishment method as described above when executed by a processor.
The present application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of the communication connection establishment method as described above.
The application provides a communication connection establishing method, a communication connection establishing device, electronic equipment and a readable storage medium, which are applied to a master station, namely channel state data corresponding to each communication channel between the master station and an ammeter data acquisition terminal and corresponding historical communication data are obtained; extracting the characteristics of the channel state data to obtain the channel state characteristics corresponding to the communication channels; determining communication quality characteristics corresponding to the communication channels according to the historical communication data; respectively inputting channel state characteristics corresponding to each communication channel and corresponding communication quality characteristics into a preset channel quality scoring model, and respectively carrying out channel quality evaluation on each communication channel to obtain a channel quality label corresponding to each communication channel; when a communication connection establishment request is detected, acquiring channel quality tags of all communication channels between the master station and corresponding electric meter data acquisition terminals, wherein the channel quality tags are obtained by performing channel quality detection according to channel state data corresponding to all the communication channels and corresponding historical communication data; the communication channels are prioritized according to the channel quality labels to obtain channel priority information, so that the purpose of prioritizing the communication channels according to the current channel state of each communication channel and the data quality of the acquired historical communication data is achieved, a high-priority channel with better channel state and data acquisition quality can be selected from the communication channels according to the channel priority information to establish communication connection between the electric meter data acquisition terminal and the master station, the reliability of the communication connection between the electric meter data acquisition terminal and the master station can be improved, the master station can stably and reliably acquire the electric meter data, and the technical defect that the reliability of the electric meter data acquisition is influenced due to the difference of the reliability of different communication channels in different time periods in the prior art is overcome, reliability of ammeter data acquisition is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and, together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a first embodiment of a communication connection establishment method according to the present application;
fig. 2 is a schematic device structure diagram of a hardware operating environment related to a communication connection establishment method in an embodiment of the present application.
The objectives, features, and advantages of the present application will be further described with reference to the accompanying drawings.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, embodiments of the present application are described in detail below with reference to the accompanying drawings. It should be apparent that the described embodiments are only a few embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Example one
In a first embodiment of the communication connection establishment method, the communication connection establishment method includes:
step S10, channel state data and corresponding historical communication data corresponding to each communication channel between the master station and the electric meter data acquisition terminal are obtained;
step S20, extracting the characteristics of each channel state data to obtain the channel state characteristics corresponding to each communication channel;
step S30, determining a communication quality characteristic corresponding to each communication channel according to each historical communication data;
step S40, respectively inputting the channel state characteristics and the corresponding communication quality characteristics corresponding to each communication channel into a preset channel quality scoring model, and respectively carrying out channel quality evaluation on each communication channel to obtain a channel quality label corresponding to each communication channel;
step S50, when a communication connection establishment request is detected, acquiring a channel quality label of each communication channel between the master station and the corresponding electric meter data acquisition terminal, wherein the channel quality label is obtained by carrying out channel quality detection according to channel state data corresponding to each communication channel and corresponding historical communication data;
step S60, according to the channel quality label, priority arrangement is carried out on each communication channel to obtain channel priority information;
and step S70, establishing communication connection between the electric meter data acquisition terminal and the main station according to the channel priority information.
In this embodiment, it should be noted that the electric meter data acquisition terminal may read electric meter data from an electric meter, so as to send the electric meter data to the master station, where an electric meter is connected to at least one electric meter data acquisition terminal, and at least one communication channel exists between the electric meter data acquisition terminal and the master station, the communication channel may be a wired communication channel or a wireless communication channel, for example, the electric meter data acquisition terminal and the master station may be connected through multiple wireless communication channels, different wireless communication channels correspond to different operators, for example, a telecommunication operator corresponds to the wireless communication channel a, a mobile operator corresponds to the wireless communication channel B, and a unicom operator corresponds to the wireless communication channel C. The communication connection establishment request is typically initiated by the master station. The channel quality label can be a label value representing the channel quality of the communication channel, and the larger the value of the channel quality label is, the higher the channel quality is. The purpose of establishing communication connection between the master station and the electric meter data acquisition terminal can be one or more of electric meter reading historical data, electric meter reading current data and an issuing switching-on/off instruction.
In addition, it should be noted that the channel state data includes historical channel state data and current channel state data, where the current channel state data may be used to evaluate a current state of the communication channel, for example, whether the communication channel is online, the historical channel state data may be time sequence data representing a state of the communication channel, for example, if the master station and the electric meter data acquisition terminal communicate with each other through a wireless long connection and the master station is a server, the channel state data may be heartbeat state data corresponding to the long connection or socket state data, if the master station and the electric meter data acquisition terminal communicate with each other through a wire and the master station is a client, the channel state data may be polling data, which may specifically be a polling result obtained by polling the communication channel at regular time through a ping command, the method can also be used for regularly polling the communication channel only by using a telnet command to obtain a polling result, the historical channel state data can be used for evaluating the stability of the communication channel, and the historical channel state data can be one or more of the online and offline recorded data of the communication channel, the offline duration of the communication channel and the online duration of the communication channel. The historical communication data is terminal feedback historical data fed back to the master station by the ammeter data acquisition terminal according to the communication channel, the terminal feedback historical data can be data obtained by the ammeter data acquisition terminal performing data acquisition to an ammeter each time, for example, the terminal feedback historical data can be one or more of successfully acquired ammeter data, error messages, negative messages, identification information which is not responded to ammeter data acquisition and identification information which is invalid in ammeter data acquisition, and the data quality of the historical ammeter data can be used for evaluating the ammeter data acquisition quality of the communication channel.
The channel state data is composed of at least one channel state label, the channel state label is an identifier for identifying a channel state, and specifically can be used for a heartbeat state or a socket state, and can also be used for identifying a test result of a ping command or a telnet command, wherein the test result is a result for testing whether a communication channel is available. The channel state feature is a feature vector of at least one channel state label, and is used to characterize a network state of the communication channel, for example, if there are 5 channel state labels within a preset time period, which are respectively 1, 1, 1, 1, 0, where 1 indicates that the network is available and 0 indicates that the network is not available, the channel state feature may be a vector 11110.
As an example, the steps S10 to S40 include: acquiring channel state data and corresponding historical communication data corresponding to each communication channel between a master station and an ammeter data acquisition terminal; respectively extracting the characteristics of channel state data corresponding to each communication channel and corresponding historical communication data to obtain channel quality characteristics corresponding to each communication channel, wherein the channel quality characteristics can be embedded characteristics representing the channel quality of the communication channels, namely embedding; acquiring the acquisition time points of the channel state labels, and splicing the channel state labels into corresponding vectors according to the sequence of the acquisition time points to obtain channel state characteristics; extracting the characteristics of the historical communication data to obtain communication quality characteristics corresponding to the communication channel; splicing the channel state characteristic and the communication quality characteristic to obtain a channel quality characteristic; and mapping the channel quality characteristics into corresponding channel quality scores by inputting the channel quality characteristics into a preset channel quality scoring model so as to evaluate the channel quality of the communication channel, wherein the channel quality scores are used as channel quality labels. The historical communication data can be time sequence data formed by electric meter data collected at different time points, and the communication quality characteristics can be embedded vectors representing communication quality, namely embedding; the channel quality score is a score for evaluating channel quality; and respectively taking the channel quality scores as channel quality labels of the corresponding communication channels. The purpose of evaluating the quality of the communication channel by using the channel state and the communication quality is achieved in the embodiment of the application, and sufficient decision basis is provided for the quality evaluation of the communication channel, so that the accuracy of the quality evaluation of the communication channel is ensured; therefore, the master station can perform priority ranking on each communication channel according to each channel quality label accurately evaluated to obtain channel priority information, and communication connection is established between the electric meter data acquisition terminal and the master station according to the channel priority information. The purpose of carrying out priority arrangement on each communication channel according to the current channel state of each communication channel and the data quality of the collected historical communication data is achieved, so that a high-priority channel with a better channel state and a better communication quality can be selected from each communication channel to establish communication connection between the electric meter data collection terminal and the main station, the reliability of the communication connection between the electric meter data collection terminal and the main station can be improved, and the electric meter data collection can be carried out more stably and reliably.
Wherein the step of determining the communication quality characteristics corresponding to the communication channels according to the historical communication data comprises:
step S31, according to the historical communication data, determining the non-response times when the communication is carried out according to the communication channel;
step S32, acquiring the invalid data proportion corresponding to the response invalid electric meter data in the historical communication data;
and step S33, constructing the communication quality characteristic according to the nonresponse times and the invalid data ratio.
In this embodiment, it should be noted that the number of times of no response is the number of times of no response when the data acquisition terminal performs data acquisition on the electric meter. The main station can request ammeter data from the ammeter data acquisition terminal, so that the ammeter data acquisition terminal can feed back the acquired ammeter data to the main station, the ammeter data can be ammeter readings or ammeter parameters acquired by the ammeter data acquisition terminal in a preset time period, and the response invalid data are invalid ammeter data acquired in historical communication data, such as ammeter data with data missing or data sequence disorder.
As one example, steps S31 to S33 include: inquiring the number of tags of a non-response tag in the historical communication data, wherein the non-response tag is a tag for identifying no response when the ammeter data acquisition terminal acquires data from the ammeter, and if one non-response tag exists, the fact that one non-response exists when the ammeter data acquisition terminal acquires data from the ammeter is proved; acquiring invalid data quantity corresponding to invalid electric meter data in the historical communication data, and calculating the ratio of the invalid data quantity to total data quantity in the historical communication data to obtain invalid data ratio; and splicing the nonresponse times and the invalid data ratio to obtain the communication quality characteristics.
Wherein, communication channel includes one in long connecting channel and the on-demand connecting channel at least, the channel state data that each communication channel between acquireing main website and the ammeter data acquisition terminal corresponds includes:
step A10, monitoring the channel state of each long connecting channel in a preset time period to obtain the state data of each channel;
as an example, step a10 includes: and carrying out channel state monitoring on the long connecting channel at regular time within a preset time period through heartbeat detection to obtain at least one heartbeat state identifier, and taking each heartbeat state identifier as channel state data.
As an example, step a10 further includes: and carrying out channel state monitoring on the long connecting channel at regular time within a preset time period through socket detection to obtain at least one socket state identifier, and taking each socket state identifier as the channel state data.
And step B10, polling each on-demand connection channel in a preset time period to obtain the state data of each channel.
As an example, step B10 includes: polling each on-demand connection channel at regular time in a preset time period through a ping command to obtain a ping command test result corresponding to each communication channel; and taking the result of each ping test command as the channel state data of the corresponding on-demand connection channel.
As an example, step B10 further includes: polling each on-demand connection channel at fixed time in a preset time period through telnet commands to obtain telnet command test results corresponding to each communication channel; and respectively taking the test result of each telnet command as channel state data of the corresponding on-demand connection channel.
As one example, steps S50 to S60 include: when a communication connection establishment request is detected, acquiring channel quality tags of all communication channels between the master station and corresponding electric meter data acquisition terminals, wherein the channel quality tags are obtained by performing channel quality detection according to channel state data corresponding to all the communication channels and corresponding historical communication data; carrying out priority arrangement on each communication channel according to the value size of each channel quality label to obtain channel priority information; according to the priority information of each channel, selecting a communication channel with a top priority ranking as a target communication channel from each communication channel, for example, selecting a communication channel with a top three or a first priority ranking from each communication channel; and establishing communication connection between the electric meter data acquisition terminal and the master station according to the first target communication channel.
The step of establishing communication connection between the electric meter data acquisition terminal and the master station according to the channel priority information comprises the following steps:
step S51, selecting a first target communication channel from each communication channel according to the channel priority information;
and step S52, establishing communication connection between the electric meter data acquisition terminal and the master station according to the first target communication channel.
As one example, steps S51 to S52 include: selecting a communication channel with the highest priority from all the communication channels as a first target communication channel according to the channel priority information; and establishing communication connection between the electric meter data acquisition terminal and the master station according to the first target communication channel.
The step of establishing communication connection between the electric meter data acquisition terminal and the master station according to the first target communication channel comprises the following steps:
step S521, detecting whether the communication connection between the electric meter data acquisition terminal and the master station is abnormal or not;
step S522, if there is an abnormality, selecting a second target communication channel from the communication channels other than the first target communication channel according to the channel priority information;
step S523, according to the second target communication channel, a communication connection is reestablished between the electricity meter data collecting terminal and the master station.
In this embodiment, it should be noted that when the first target communication channel is used for communication between the electric meter data acquisition terminal and the master station, a disconnection of the first target communication channel or a communication timeout may occur in the first target communication channel, and at this time, in order to ensure stability and reliability of communication, a communication channel needs to be reselected to establish a communication connection.
As an example, steps S521 to S523 include: detecting whether a channel connection disconnection or communication overtime occurs in a communication channel established according to the first target communication channel, if the channel connection disconnection or communication overtime occurs, judging that the communication connection between the ammeter data acquisition terminal and the master station is abnormal, and then reselecting a communication channel with the highest priority from the communication channels except the first target communication channel as a second target communication channel according to the channel priority information; according to the second target communication channel, communication connection is established between the electric meter data acquisition terminal and the master station again; and if the channel connection disconnection and the communication overtime do not occur, judging that the communication connection between the electric meter data acquisition terminal and the main station is not abnormal.
The embodiment of the application provides a communication connection establishing method, which is applied to a master station, namely channel state data and corresponding historical communication data corresponding to each communication channel between the master station and an electric meter data acquisition terminal are obtained; extracting the characteristics of the channel state data to obtain the channel state characteristics corresponding to the communication channels; determining communication quality characteristics corresponding to the communication channels according to the historical communication data; respectively performing channel quality evaluation on each communication channel by respectively inputting channel state characteristics corresponding to each communication channel and corresponding communication quality characteristics into a preset channel quality scoring model to obtain a channel quality label corresponding to each communication channel; when a communication connection establishment request is detected, acquiring channel quality tags of all communication channels between the master station and corresponding electric meter data acquisition terminals, wherein the channel quality tags are obtained by performing channel quality detection according to channel state data corresponding to all the communication channels and corresponding historical communication data; the communication channels are prioritized according to the channel quality labels to obtain channel priority information, so that the purpose of prioritizing the communication channels according to the current channel state of each communication channel and the data quality of the acquired historical communication data is achieved, a high-priority channel with better channel state and data acquisition quality can be selected from the communication channels according to the channel priority information to establish communication connection between the electric meter data acquisition terminal and the master station, the reliability of the communication connection between the electric meter data acquisition terminal and the master station can be improved, the master station can stably and reliably acquire the electric meter data, and the technical defect that the reliability of the electric meter data acquisition is influenced due to the difference of the reliability of different communication channels in different time periods in the prior art is overcome, reliability of ammeter data acquisition is improved.
Example two
The present application further provides a communication connection establishing apparatus applied to a master station, the communication connection establishing apparatus includes:
the first acquisition module is used for acquiring channel state data and corresponding historical communication data corresponding to each communication channel between the master station and the electric meter data acquisition terminal;
the characteristic extraction module is used for extracting the characteristics of the channel state data to obtain the channel state characteristics corresponding to the communication channels;
the determining module is used for determining the communication quality characteristics corresponding to the communication channels according to the historical communication data;
the channel quality evaluation module is used for respectively performing channel quality evaluation on each communication channel by respectively inputting the channel state characteristics corresponding to each communication channel and the corresponding communication quality characteristics into a preset channel quality scoring model to obtain channel quality labels corresponding to each communication channel;
the second acquisition module is used for acquiring channel quality labels of all communication channels between the master station and the corresponding electric meter data acquisition terminals when a communication connection establishment request is detected, wherein the channel quality labels are obtained by performing channel quality detection according to channel state data corresponding to all the communication channels and corresponding historical communication data;
the priority arrangement module is used for carrying out priority arrangement on each communication channel according to each channel quality label to obtain channel priority information;
and the communication connection establishing module is used for establishing communication connection between the electric meter data acquisition terminal and the master station according to the channel priority information.
Optionally, the communication connection establishing module is further configured to:
selecting a first target communication channel from each communication channel according to the channel priority information;
and establishing communication connection between the electric meter data acquisition terminal and the master station according to the first target communication channel.
Optionally, the communication connection establishing module is further configured to:
detecting whether the communication connection between the ammeter data acquisition terminal and the master station is abnormal or not;
if the communication channel is abnormal, selecting a second target communication channel from the communication channels except the first target communication channel according to the channel priority information;
and according to the second target communication channel, establishing communication connection between the electric meter data acquisition terminal and the master station again.
Optionally, the communication connection establishing apparatus is further configured to:
determining the non-response times when communication is carried out according to the communication channel according to the historical communication data;
acquiring the invalid data proportion corresponding to the response invalid electric meter data in the historical communication data;
and constructing the communication quality characteristic according to the nonresponse times and the invalid data ratio.
Optionally, the communication channel at least includes one of a long connection channel and an on-demand connection channel, and the communication connection establishing apparatus is further configured to:
monitoring the channel state of each long connecting channel within a preset time period to obtain the state data of each channel; and/or
And respectively polling each on-demand connecting channel in a preset time period to obtain the state data of each channel.
The communication connection establishing device provided by the application adopts the communication connection establishing method in the embodiment, and the technical problem of low reliability of electric meter data acquisition is solved. Compared with the prior art, the beneficial effects of the communication connection establishment device provided by the embodiment of the present application are the same as the beneficial effects of the communication connection establishment method provided by the above embodiment, and other technical features in the communication connection establishment device are the same as those disclosed in the above embodiment method, which are not described herein again.
EXAMPLE III
An embodiment of the present application provides an electronic device, and the electronic device includes: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the communication connection establishing method in the first embodiment.
Referring now to FIG. 2, shown is a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 2 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 2, the electronic device may include a processing apparatus (e.g., a central processing unit, a graphic processor, etc.) that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) or a program loaded from a storage apparatus into a Random Access Memory (RAM). In the RAM, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing device, the ROM, and the RAM are connected to each other by a bus. An input/output (I/O) interface is also connected to the bus.
Generally, the following systems may be connected to the I/O interface: input devices including, for example, touch screens, touch pads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, and the like; output devices including, for example, Liquid Crystal Displays (LCDs), speakers, vibrators, and the like; storage devices including, for example, magnetic tape, hard disk, etc.; and a communication device. The communication means may allow the electronic device to communicate wirelessly or by wire with other devices to exchange data. While the figures illustrate an electronic device with various systems, it is to be understood that not all illustrated systems are required to be implemented or provided. More or fewer systems may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means, or installed from a storage means, or installed from a ROM. The computer program, when executed by a processing device, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
The electronic equipment provided by the application adopts the communication connection establishing method in the embodiment, and the technical problem of low reliability of electric meter data acquisition is solved. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiment of the present application are the same as the beneficial effects of the communication connection establishment method provided by the first embodiment, and other technical features of the electronic device are the same as those disclosed in the method of the first embodiment, which are not described herein again.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the foregoing description of embodiments, the particular features, structures, materials, or characteristics may be combined in any suitable manner in any one or more embodiments or examples.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Example four
The present embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon for executing the method for establishing a communication connection in the first embodiment.
The computer readable storage medium provided by the embodiments of the present application may be, for example, a usb disk, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or a combination of any of the above. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present embodiment, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer-readable storage medium may be embodied in an electronic device; or may be present alone without being incorporated into the electronic device.
The computer readable storage medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring channel state data and corresponding historical communication data corresponding to each communication channel between a master station and an ammeter data acquisition terminal; extracting the characteristics of the channel state data to obtain the channel state characteristics corresponding to the communication channels; determining communication quality characteristics corresponding to the communication channels according to the historical communication data; respectively performing channel quality evaluation on each communication channel by respectively inputting channel state characteristics corresponding to each communication channel and corresponding communication quality characteristics into a preset channel quality scoring model to obtain a channel quality label corresponding to each communication channel; when a communication connection establishment request is detected, acquiring channel quality tags of all communication channels between the master station and corresponding electric meter data acquisition terminals, wherein the channel quality tags are obtained by performing channel quality detection according to channel state data corresponding to all the communication channels and corresponding historical communication data; according to the channel quality labels, carrying out priority arrangement on the communication channels to obtain channel priority information; and establishing communication connection between the electric meter data acquisition terminal and the master station according to the channel priority information.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. Wherein the names of the modules do not in some cases constitute a limitation of the unit itself.
The computer-readable storage medium provided by the application stores computer-readable program instructions for executing the communication connection establishment method, and solves the technical problem of low reliability of electric meter data acquisition. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the embodiment of the present application are the same as the beneficial effects of the communication connection establishment method provided by the above embodiment, and are not described herein again.
EXAMPLE five
The present application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of the communication connection establishment method as described above.
The computer program product provided by the application solves the technical problem of low reliability of data acquisition of the electric meter. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present application are the same as those of the communication connection establishment method provided by the above embodiment, and are not described herein again.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (8)

1. A communication connection establishing method is applied to a master station, and comprises the following steps:
acquiring channel state data and corresponding historical communication data corresponding to each communication channel between a master station and an ammeter data acquisition terminal;
extracting the characteristics of the channel state data to obtain the channel state characteristics corresponding to the communication channels;
determining communication quality characteristics corresponding to the communication channels according to the historical communication data;
respectively performing channel quality evaluation on each communication channel by respectively inputting channel state characteristics corresponding to each communication channel and corresponding communication quality characteristics into a preset channel quality scoring model to obtain a channel quality label corresponding to each communication channel;
when a communication connection establishment request is detected, acquiring channel quality tags of all communication channels between the master station and corresponding electric meter data acquisition terminals, wherein the channel quality tags are obtained by performing channel quality detection according to channel state data corresponding to all the communication channels and corresponding historical communication data;
according to the channel quality labels, carrying out priority arrangement on the communication channels to obtain channel priority information;
and establishing communication connection between the electric meter data acquisition terminal and the master station according to the channel priority information.
2. The communication connection establishment method according to claim 1, wherein the step of establishing a communication connection between the meter data collection terminal and the master station based on the channel priority information includes:
selecting a first target communication channel from each communication channel according to the channel priority information;
and establishing communication connection between the electric meter data acquisition terminal and the master station according to the first target communication channel.
3. The communication connection establishing method according to claim 2, wherein the step of establishing a communication connection between the meter data collecting terminal and the master station according to the first target communication channel includes:
detecting whether the communication connection between the electric meter data acquisition terminal and the master station is abnormal or not;
if the communication channel is abnormal, selecting a second target communication channel from the communication channels except the first target communication channel according to the channel priority information;
and according to the second target communication channel, establishing communication connection between the electric meter data acquisition terminal and the master station again.
4. The communication connection establishing method according to claim 1, wherein the step of determining the communication quality characteristic corresponding to each of the communication channels according to each of the historical communication data includes:
determining the number of times of no response when communication is carried out according to the communication channel according to the historical communication data;
acquiring the invalid data proportion corresponding to the response invalid electric meter data in the historical communication data;
and constructing the communication quality characteristic according to the nonresponse times and the invalid data ratio.
5. The communication connection establishing method according to claim 1, wherein the communication channel at least includes one of a long connection channel and an on-demand connection channel, and the acquiring channel state data corresponding to each communication channel between the master station and the electricity meter data acquisition terminal includes:
monitoring the channel state of each long connecting channel within a preset time period to obtain the state data of each channel; and/or
And respectively polling each on-demand connecting channel in a preset time period to obtain the state data of each channel.
6. A communication connection establishment apparatus applied to a master station, comprising:
the first acquisition module is used for acquiring channel state data and corresponding historical communication data corresponding to each communication channel between the master station and the electric meter data acquisition terminal;
the characteristic extraction module is used for extracting the characteristics of the channel state data to obtain the channel state characteristics corresponding to the communication channels;
the determining module is used for determining the communication quality characteristics corresponding to the communication channels according to the historical communication data;
the channel quality evaluation module is used for respectively performing channel quality evaluation on each communication channel by respectively inputting the channel state characteristics corresponding to each communication channel and the corresponding communication quality characteristics into a preset channel quality scoring model to obtain channel quality labels corresponding to each communication channel;
the second acquisition module is used for acquiring channel quality labels of all communication channels between the master station and the corresponding electric meter data acquisition terminals when a communication connection establishment request is detected, wherein the channel quality labels are obtained by performing channel quality detection according to channel state data corresponding to all the communication channels and corresponding historical communication data;
the priority arrangement module is used for carrying out priority arrangement on each communication channel according to each channel quality label to obtain channel priority information;
and the communication connection establishing module is used for establishing communication connection between the electric meter data acquisition terminal and the master station according to the channel priority information.
7. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the communication connection establishment method of any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that a program implementing a communication connection establishment method is stored on the computer-readable storage medium, and the program implementing the communication connection establishment method is executed by a processor to implement the steps of the communication connection establishment method according to any one of claims 1 to 5.
CN202210478302.4A 2022-05-05 2022-05-05 Communication connection establishing method and device, electronic equipment and readable storage medium Active CN114584607B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210478302.4A CN114584607B (en) 2022-05-05 2022-05-05 Communication connection establishing method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210478302.4A CN114584607B (en) 2022-05-05 2022-05-05 Communication connection establishing method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN114584607A true CN114584607A (en) 2022-06-03
CN114584607B CN114584607B (en) 2022-09-13

Family

ID=81784399

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210478302.4A Active CN114584607B (en) 2022-05-05 2022-05-05 Communication connection establishing method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN114584607B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102468984A (en) * 2010-10-29 2012-05-23 北京市电力公司 Method and system for testing electricity consumption information acquisition system, and master station
CN108287278A (en) * 2017-12-29 2018-07-17 国网北京市电力公司 Fault detection method and system, the storage medium and processor of substation
US20180372507A1 (en) * 2015-07-09 2018-12-27 China Electric Power Research Institute Company Limited Information sharing method of smart electricity meter, smart electricity meter and acquisition router
CN109951859A (en) * 2019-03-25 2019-06-28 腾讯科技(深圳)有限公司 Wireless network connection recommended method, device, electronic equipment and readable medium
US20190268791A1 (en) * 2016-09-16 2019-08-29 Panasonic Corporation Terminal device, communication system and communication control method
CN111930542A (en) * 2020-08-18 2020-11-13 创新奇智(成都)科技有限公司 Data acquisition method and device, electronic equipment and computer readable storage medium
CN111934952A (en) * 2020-08-06 2020-11-13 广东电网有限责任公司 Method, device, equipment and storage medium for testing station electric energy acquisition terminal
CN112134645A (en) * 2020-08-04 2020-12-25 国电南瑞科技股份有限公司 Distributed terminal communication quality monitoring method, storage medium and computing device
CN113015222A (en) * 2021-02-25 2021-06-22 国网重庆市电力公司营销服务中心 Relay node and communication mode selection method, communication transmission method and system
CN113676741A (en) * 2021-07-19 2021-11-19 Oppo广东移动通信有限公司 Data transmission method, device, storage medium and electronic equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102468984A (en) * 2010-10-29 2012-05-23 北京市电力公司 Method and system for testing electricity consumption information acquisition system, and master station
US20180372507A1 (en) * 2015-07-09 2018-12-27 China Electric Power Research Institute Company Limited Information sharing method of smart electricity meter, smart electricity meter and acquisition router
US20190268791A1 (en) * 2016-09-16 2019-08-29 Panasonic Corporation Terminal device, communication system and communication control method
CN108287278A (en) * 2017-12-29 2018-07-17 国网北京市电力公司 Fault detection method and system, the storage medium and processor of substation
CN109951859A (en) * 2019-03-25 2019-06-28 腾讯科技(深圳)有限公司 Wireless network connection recommended method, device, electronic equipment and readable medium
CN112134645A (en) * 2020-08-04 2020-12-25 国电南瑞科技股份有限公司 Distributed terminal communication quality monitoring method, storage medium and computing device
CN111934952A (en) * 2020-08-06 2020-11-13 广东电网有限责任公司 Method, device, equipment and storage medium for testing station electric energy acquisition terminal
CN111930542A (en) * 2020-08-18 2020-11-13 创新奇智(成都)科技有限公司 Data acquisition method and device, electronic equipment and computer readable storage medium
CN113015222A (en) * 2021-02-25 2021-06-22 国网重庆市电力公司营销服务中心 Relay node and communication mode selection method, communication transmission method and system
CN113676741A (en) * 2021-07-19 2021-11-19 Oppo广东移动通信有限公司 Data transmission method, device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN114584607B (en) 2022-09-13

Similar Documents

Publication Publication Date Title
TWI569021B (en) Systems, methods, computer-readable storage medium, and thermal imaging system for obtaining and maintaining maintenance recordes
CN112446976A (en) Inspection robot, inspection system and inspection method
CN115186502A (en) Vehicle abnormal data identification method and device, electronic device and storage medium
CN114710555A (en) Infant monitoring method and device
CN114584607B (en) Communication connection establishing method and device, electronic equipment and readable storage medium
CN109542743B (en) Log checking method and device, electronic equipment and computer readable storage medium
CN113626301B (en) Method and device for generating test script
CN114499709A (en) Antenna reception testing method and device, electronic equipment and storage medium
CN112445697B (en) Method and apparatus for testing applications
CN115705258A (en) Test method, test device, storage medium and electronic equipment
CN116074870A (en) Signal fault monitoring method, device, system and storage medium
CN108199482B (en) Maintenance prompting method and device
CN113835996A (en) Method and device for generating test script
CN116566034B (en) Distribution network distribution monitoring system and method
CN115237816B (en) System function verification method and device, electronic equipment and readable storage medium
CN113258671B (en) Spare power automatic switching device monitoring method and device, electronic equipment and storage medium
CN117824974B (en) Switch drop test method, device, electronic equipment and computer readable medium
CN116826720B (en) Electrical load prediction method, apparatus, device and readable storage medium for power distribution device
CN109656961B (en) Method and device for searching homonymous tasks based on data analysis, medium and electronic equipment
CN110908905B (en) Method, device, equipment and medium for measuring APP transaction speed of security dealer
EP4349643A1 (en) Charging pile type identification method and apparatus, and service platform for electric vehicle
CN114781567A (en) Detection equipment installation method and device, electronic equipment and readable storage medium
CN117555321A (en) Equipment fault diagnosis method and device, electronic equipment and readable storage medium
CN117501134A (en) Quick charge detection method and device, electronic equipment and storage medium
CN115238839A (en) Transmission logistics information checking method and device, electronic equipment and medium

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220810

Address after: No.73, Tuodong Road, Kunming, Yunnan 650000

Applicant after: YUNNAN POWER GRID Co.,Ltd.

Address before: 410000 101-5, scientific research building, No. 468, tongzipo Road, Changsha hi tech Development Zone, Changsha City, Hunan Province

Applicant before: SVI intelligent measurement system service (Changsha) Co.,Ltd.

GR01 Patent grant
GR01 Patent grant