CN115883340B - HPLC (high Performance liquid chromatography) and HRF (high performance liquid chromatography) based dual-mode communication fault processing method and device - Google Patents

HPLC (high Performance liquid chromatography) and HRF (high performance liquid chromatography) based dual-mode communication fault processing method and device Download PDF

Info

Publication number
CN115883340B
CN115883340B CN202310195688.2A CN202310195688A CN115883340B CN 115883340 B CN115883340 B CN 115883340B CN 202310195688 A CN202310195688 A CN 202310195688A CN 115883340 B CN115883340 B CN 115883340B
Authority
CN
China
Prior art keywords
transmission
data
channel
idle
abnormal
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
CN202310195688.2A
Other languages
Chinese (zh)
Other versions
CN115883340A (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.)
Beijing Philisense Information Security Technology Co ltd
Original Assignee
Beijing Philisense Information Security 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 Beijing Philisense Information Security Technology Co ltd filed Critical Beijing Philisense Information Security Technology Co ltd
Priority to CN202310195688.2A priority Critical patent/CN115883340B/en
Publication of CN115883340A publication Critical patent/CN115883340A/en
Application granted granted Critical
Publication of CN115883340B publication Critical patent/CN115883340B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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

  • Selective Calling Equipment (AREA)
  • Transmitters (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The application relates to the technical field of data transmission, in particular to a method and equipment for processing a dual-mode communication fault based on HPLC and HRF, wherein the method comprises the steps of acquiring current transmission channel information if target ammeter data are not received within a preset time length; determining receiving and transmitting information of target ammeter data from the current transmission channel information; determining a fault node of the target ammeter data in the transmission process according to the receiving and transmitting information, and determining the current transmission channel as an abnormal channel; when the standby equipment exists, connecting the standby equipment into an abnormal channel to form an emergency channel, so that the target ammeter data is transmitted through the emergency channel; when the standby equipment does not exist, determining an emergency channel from a plurality of idle transmission channels based on the historical transmission rate and the historical abnormality information of each idle transmission channel, so that the target ammeter data is transmitted through the emergency channel. The method and the device can reduce the effect of influence on data transmission caused by abnormal transmission channels.

Description

HPLC (high Performance liquid chromatography) and HRF (high performance liquid chromatography) based dual-mode communication fault processing method and device
Technical Field
The application relates to the technical field of data transmission, in particular to a method and equipment for processing dual-mode communication faults based on HPLC and HRF.
Background
In order to monitor the service condition and the running state of the electric meters in real time, the electric meter data of each electric meter are generally collected through a collector, then the electric meter data are uploaded to a concentrator, the concentrator integrates or forwards the electric meter data so as to check the service condition of each electric meter, in the process of transmitting the electric meter data, a data transmission channel is generally constructed based on an HPLC (Highspeed Power Line Communication, high-speed power line carrier communication) module or an HRF (Highspeed Radio Frequency, high-speed micro-power wireless communication) module, and the data transmission channel is formed by the collector, the HPLC module and the concentrator so that the electric meter data are transmitted through the data transmission channel. However, in the data transmission process, the data of the ammeter cannot be transmitted to the concentrator due to abnormal transmission channels, so that the service condition of the ammeter cannot be detected.
In the related art, the connectivity of the transmission channel is generally ensured by periodically overhauling the transmission channel, but when the transmission channel fails, there may be ammeter data in transmission or ammeter data which needs to be transmitted by using the transmission channel, and as the transmission channel cannot be repaired in time after being abnormal, the ammeter data may be interrupted in the transmission process, thereby affecting the data transmission rate.
Disclosure of Invention
In order to improve data transmission efficiency and reduce the influence on data transmission caused by transmission channel abnormality, the embodiment of the application provides a dual-mode communication fault processing method and device based on HPLC and HRF.
In a first aspect, the present application provides a dual-mode communication fault handling method based on HPLC and HRF, which adopts the following technical scheme:
a dual mode communication fault handling method based on HPLC and HRF comprising:
if the target ammeter data is not received within the preset time length, acquiring current transmission channel information, wherein the current transmission channel information comprises each node in a current transmission channel;
the receiving and transmitting information of the target ammeter data is determined from the current transmission channel information, and the receiving and transmitting information is used for representing the state and the moment when the ammeter data passes through each node in the current transmission channel, wherein the state is used for representing whether the ammeter data is transmitted to the node or not;
determining a fault node of the target ammeter data in the transmission process according to the receiving and transmitting information, and determining the current transmission channel as an abnormal channel;
detecting whether a standby device exists at the fault node;
When standby equipment exists, connecting the standby equipment into the abnormal channel to form an emergency channel, so that the target ammeter data are transmitted through the emergency channel;
and when the standby equipment does not exist, determining an emergency channel from a plurality of idle transmission channels based on the historical transmission rate and the historical abnormality information of each idle transmission channel so as to enable the target ammeter data to be transmitted through the emergency channel.
By adopting the technical scheme, when the ammeter data is abnormal in the transmission process, the abnormal position of the transmission channel is determined through the receiving and transmitting information of the ammeter data in the transmission process, instead of manually checking and determining the position of the fault in the transmission channel after the abnormality of the transmission channel is detected, the fault position is determined through the receiving and transmitting information of each node of the ammeter data in the transmission channel, the speed and the accuracy in determining the fault position are conveniently improved, when the spare equipment exists in the fault position, the spare equipment is connected into the abnormal channel in the fault position to form an emergency channel so as to conveniently and rapidly recover the transmission channel, thereby being convenient for reducing the influence on data transmission caused by the fault of the transmission channel, when the spare equipment does not exist in the fault position, the emergency channel is determined from a plurality of idle transmission channels through the history transmission speed and the history abnormality information, the emergency channel is not determined from the plurality of idle transmission channels, the efficiency in the data transmission process is conveniently improved through the emergency channel determined by utilizing the history transmission speed and the history abnormality information, the emergency channel is conveniently used as the emergency transmission channel, the emergency channel is not constructed, or the emergency channel is conveniently restored after the data transmission channel is newly constructed, and the data transmission is conveniently carried out by the emergency channel is newly waiting for the history transmission channel, and the data transmission channel is conveniently has been reduced.
In one possible implementation manner, the determining the transceiving information of the target ammeter data from the current transmission channel information further includes:
determining a transmission state of the target ammeter data according to the receiving and transmitting information, wherein the transmission state comprises the transmission started or not started;
when the transmission state of the target ammeter data is that transmission is started, determining the data type of the target ammeter data, and determining the transmission standard of the target ammeter data according to the corresponding relation between the preset data type and the transmission standard;
detecting whether the target ammeter data is complete or not based on the transmission standard;
when the target ammeter data are complete, writing the target ammeter data into a temporary buffer area for subsequent transmission;
and when the target ammeter data are incomplete, discarding the target ammeter data, and generating a re-acquisition instruction so that the acquisition equipment re-acquires ammeter data.
By adopting the technical scheme, if the target ammeter data is not received within the preset time period, judging whether the target ammeter data is transmitted or not according to the transportation state of the target ammeter data, and when the transmission state is that the transportation is started, storing the complete but not transmitted target ammeter data to be retransmitted, discarding and collecting the incomplete target ammeter data to be retransmitted, instead of uniformly processing the complete ammeter data and the incomplete ammeter data, invalid data can occur if the incomplete ammeter data are stored to be retransmitted, and the storage pressure of a computer can be increased by storing the invalid data, so that whether the incomplete transmitted ammeter data need to be stored and retransmitted is determined according to the transmission state and the integrity of the data, thereby being convenient for improving the validity of the transmitted data and reducing the storage pressure of the computer.
In one possible implementation manner, the connecting the standby device into the abnormal channel forms an emergency channel, and further includes:
determining the corresponding equipment at the fault node as a master equipment and determining the standby equipment as a slave equipment;
the method comprises the steps that a communication record of the slave equipment is obtained, wherein the communication record is generated when the master equipment is communicated with the slave equipment, and is used for representing that the running state of the slave equipment is normal running or abnormal running;
when the running state of the slave device is normal running, connecting the standby device into the abnormal channel;
wherein, the connecting the standby equipment into the abnormal channel forms an emergency channel, and then the method further comprises the following steps:
after the fault elimination of the corresponding master equipment at the fault node is detected, the working frequencies of the master equipment and the slave equipment are respectively determined according to the quantity of data to be transmitted;
and controlling the master device and the slave device to access the transmission channel according to the working frequencies corresponding to the master device and the slave device respectively.
By adopting the technical scheme, before the standby equipment is connected into the abnormal channel, the operation state of the slave equipment is determined, namely, the operation state of the standby equipment is determined, when the operation state of the standby equipment is normal operation, the standby equipment is connected into the abnormal channel, but not after the main equipment breaks down, the slave equipment is directly connected into the abnormal channel, the operation state of the slave equipment is determined so as to reduce the probability of abnormality of the transmission channel after the slave equipment is connected, and after the main equipment is overhauled, the main equipment and the slave equipment are connected into the transmission channel according to the respective corresponding working frequencies of the main equipment and the slave equipment so as to reduce the work load of the main equipment in the data transmission process, thereby reducing the probability of abnormality of the transmission channel.
In one possible implementation, the method further includes:
when the fault node is a communication node, the master device is an HPLC module, and the slave device is an HRF module.
Through adopting above-mentioned technical scheme, through adopting HPLC module and HRF module as the master device and the slave device of communication node department, be convenient for change the communication module in the transmission channel to be convenient for improve the flexibility in the electric power data transmission process.
In one possible implementation manner, the determining the emergency channel from the plurality of idle transmission channels based on the historical transmission rate and the historical anomaly information of each idle transmission channel further includes:
according to the work log, determining an idle transmission channel from a plurality of transmission channels;
wherein, based on the historical transmission rate and the historical abnormal information of each idle transmission channel, determining the emergency channel from a plurality of idle transmission channels comprises:
when a plurality of idle transmission channels exist, acquiring historical transmission rate and historical abnormal information of each idle transmission channel, wherein the historical transmission rate is used for representing the rate of the historical data transmission process by using the idle transmission channels, and the historical abnormal information is used for representing the times and time of faults in the data transmission process by using the idle transmission channels;
Determining the utilization priority of each idle transmission channel according to the historical transmission rate and the historical abnormal information of each idle transmission channel;
and determining the idle transmission channel with the highest utilization priority as an emergency channel.
Through adopting above-mentioned technical scheme, through the historical transmission rate and the historical unusual information of idle transmission channel, confirm the utilization priority of idle transmission channel, the faster the historical transmission rate, the less the historical unusual information, the utilization priority of corresponding idle transmission channel is higher, and confirm the idle transmission channel that the priority is highest as emergent passageway, and select from a plurality of idle transmission channels at random, and retransmission is carried out to data according to the random selection result, this application is through utilizing the idle transmission channel that the priority is highest as emergent passageway, so that carry out the quick transmission to the ammeter data that needs to resend, thereby be convenient for reduce the influence that leads to the fact data transmission because of transmission channel is unusual.
In one possible implementation manner, the determining the utilization priority of each idle transmission channel according to the historical transmission rate and the historical anomaly information of each idle transmission channel includes:
Determining the transmission rate grade of each idle transmission channel according to the historical transmission rate of each idle transmission channel, wherein the transmission rate grade and the transmission rate are in a proportional relation;
according to the historical abnormal information of each idle transmission channel, determining an abnormal frequent period, wherein the abnormal frequent period is used for representing the period or moment of occurrence of the abnormality for a plurality of times;
determining the transmission time of the target ammeter data according to the receiving and transmitting information of the target ammeter data;
comparing the transmission time of the target ammeter data with the abnormal frequent period of each idle transmission channel, judging whether the transmission time is in the abnormal frequent period or not, and discarding the idle transmission channels with the transmission time in the abnormal frequent period;
when the transmission time is out of the abnormal frequent period, determining the abnormal grade of each idle transmission channel according to the time difference value of the abnormal frequent period corresponding to each idle transmission channel at the transmission time of the target ammeter data, wherein the abnormal grade and the abnormal probability are in a direct proportion relation;
and carrying out summation calculation according to the weights corresponding to the transmission rate grade and the abnormal grade, and determining the utilization priority of each idle transmission channel according to the calculation result.
By adopting the technical scheme, the utilization priority of the idle transmission channel is determined through the transmission rate grade and the abnormal grade, instead of determining the utilization priority of the idle transmission channel only through the transmission rate speed or whether the abnormality occurs, and the utilization priority of the idle transmission channel is determined through the weights corresponding to the transmission rate grade and the abnormal grade, so that the accuracy of the determination result is improved conveniently.
In one possible implementation, the method further includes:
when the ammeter data to be transmitted corresponding to the same ammeter comprises a plurality of groups of sub-data and the data types of the plurality of groups of sub-data are different, dividing the ammeter data to be transmitted of the plurality of ammeter according to the data types and the ammeter numbers to obtain a plurality of sub-data groups, wherein the data types contained in the different sub-data groups are different;
determining transmission grades corresponding to the plurality of sub-data sets according to the data type corresponding to each sub-data set;
determining an idle transmission channel corresponding to each sub-data group according to the transmission grade corresponding to each sub-data group and the utilization priority of the idle transmission channel;
and transmitting the electric meter number corresponding to each sub data in the divided sub data group by a corresponding idle transmission channel.
By adopting the technical scheme, the sub-data with the same data type are divided and transmitted by adopting the same idle transmission channel, instead of determining the corresponding idle transmission channel one by one according to the data type of each sub-data before forwarding, the efficiency during data transmission is improved conveniently by reducing the comparison times of the data type and the idle transmission channel, and the receiving terminal equipment is convenient to integrate the sub-data corresponding to the same electric meter number according to the electric meter number corresponding to the sub-data by transmitting the sub-data together with the corresponding electric meter number, so that the data transmission efficiency is improved conveniently.
In one possible implementation, the method further includes:
when the quantity to be transmitted of the ammeter data to be transmitted exceeds a preset threshold value, determining the quantity of required transmission channels according to the quantity to be transmitted;
acquiring the number of idle transmission channels, comparing the number of required transmission channels with the number of idle transmission channels, and executing a circulation step when the number of idle transmission channels is lower than the number of required transmission channels until a preset condition is met, wherein the circulation is stopped:
the circulation steps comprise: comparing the transmission grades of the electric meter data being transmitted in all the non-idle transmission channels with the transmission grades of the electric meter data to be transmitted respectively, when the transmission grade corresponding to the electric meter data being transmitted is lower than the transmission grade corresponding to any electric meter data to be transmitted, storing the electric meter data being transmitted into a temporary buffer area so that the corresponding transmission channel is idle, transmitting the electric meter data to be transmitted, updating the quantity to be transmitted of the electric meter data to be transmitted, and returning to execute the step of comparing the transmission grades of the electric meter data being transmitted in all the non-idle transmission channels with the transmission grades of the electric meter data to be transmitted respectively, wherein the transmission grade is obtained based on the preset data type and the transmission grade, the transmission grade is used for representing the processing emergency degree of the electric meter data, and the higher the transmission grade is, the higher the processing emergency degree is;
The preset conditions comprise:
and the quantity to be transmitted of the ammeter data to be transmitted is zero.
By adopting the technical scheme, due to different data types of the ammeter data, the corresponding processing emergency degree is also different, when the quantity of ammeter data to be transmitted is more and the quantity of idle transmission channels is less, the ammeter data with higher transmission grade is determined by comparing the ammeter data being transmitted in the non-idle transmission channels with the transmission grade corresponding to the ammeter data to be transmitted respectively, and the ammeter data with higher transmission grade is transmitted by utilizing the current non-idle transmission channels so as to reduce the influence on data transmission caused by the shortage of the transmission channels.
In a second aspect, the present application provides an HPLC and HRF based dual-mode communication fault handling device, which adopts the following technical scheme:
a dual mode communication fault handling device based on HPLC and HRF comprising:
the transmission channel information acquisition module is used for acquiring current transmission channel information if the target ammeter data are not received within a preset time period, wherein the current transmission channel information comprises each node in a current transmission channel;
the transmitting and receiving information module is used for determining transmitting and receiving information of the target ammeter data from the current transmission channel information, the transmitting and receiving information is used for representing the state and the moment when the ammeter data passes through each node in the current transmission channel, and the state is used for representing whether the ammeter data is transmitted to the node or not;
The abnormal channel determining module is used for determining a fault node of the target ammeter data in the transmission process according to the receiving and transmitting information and determining the current transmission channel as an abnormal channel;
the standby equipment detection module is used for detecting whether standby equipment exists at the fault node;
the first emergency channel determining module is used for connecting the standby equipment into the abnormal channel to form an emergency channel when the standby equipment exists, so that the target ammeter data is transmitted through the emergency channel;
and the second emergency channel determining module is used for determining an emergency channel from a plurality of idle transmission channels based on the historical transmission rate and the historical abnormal information of each idle transmission channel when the standby equipment does not exist, so that the target ammeter data is transmitted through the emergency channel.
By adopting the technical scheme, when the ammeter data is abnormal in the transmission process, the abnormal position of the transmission channel is determined through the receiving and transmitting information of the ammeter data in the transmission process, instead of manually checking and determining the position of the fault in the transmission channel after the abnormal position of the transmission channel is detected, the fault position is determined through the receiving and transmitting information of each node of the ammeter data in the transmission channel, the speed and the accuracy of determining the fault position are improved, when the spare equipment exists in the fault position, the spare equipment is connected into the abnormal channel with the fault position to form an emergency channel so as to quickly recover the transmission channel, thereby reducing the influence on data transmission caused by the fault of the transmission channel, when the spare equipment does not exist in the fault position, the emergency channel is determined from a plurality of idle transmission channels through the historical transmission speed and the historical abnormal information, instead of randomly determining the emergency channel from the plurality of idle transmission channels, the efficiency in the data transmission process is improved, the idle transmission channel is used as the emergency channel, the data transmission is not built by the original transmission channel after the spare transmission channel is used for repairing, and the data transmission is conveniently built after the spare equipment is waited.
In one possible implementation, the apparatus further includes:
the transmission state determining module is used for determining the transmission state of the target ammeter data according to the receiving and transmitting information, wherein the transmission state comprises the transmission started or not started;
the data type determining module is used for determining the data type of the target ammeter data when the transmission state of the target ammeter data is that the transmission is started, and determining the transmission standard of the target ammeter data according to the corresponding relation between the preset data type and the transmission standard;
the integrity detection module is used for detecting whether the target ammeter data is complete or not based on the transmission standard;
the first execution module is used for writing the target ammeter data into a temporary buffer area for subsequent transmission when the target ammeter data are complete;
and the second execution module is used for discarding the target ammeter data when the target ammeter data are incomplete, and generating a re-acquisition instruction so as to enable the acquisition equipment to re-acquire the ammeter data.
In one possible implementation, the apparatus further includes:
the device naming module is used for determining the corresponding device at the fault node as a master device and determining the standby device as a slave device;
The communication record acquisition module is used for acquiring a communication record of the slave equipment, wherein the communication record is generated when the master equipment communicates with the slave equipment, and the communication record is used for representing that the running state of the slave equipment is normal running or abnormal running;
the standby equipment connecting module is used for connecting the standby equipment into the abnormal channel when the running state of the slave equipment is normal running;
the working frequency determining module is used for determining working frequencies of the master equipment and the slave equipment respectively according to the quantity of data to be transmitted after detecting that the corresponding master equipment at the fault node is eliminated;
and the control access module is used for controlling the master device and the slave device to access the transmission channel according to the working frequencies corresponding to the master device and the slave device respectively.
In one possible implementation, the method further includes:
when the fault node is a communication node, the master device is an HPLC module, and the slave device is an HRF module.
In one possible implementation, the apparatus further includes:
the idle transmission channel determining module is used for determining an idle transmission channel from a plurality of transmission channels according to the work log;
The second emergency channel determining module is specifically configured to, when determining an emergency channel from a plurality of idle transmission channels based on the historical transmission rate and the historical anomaly information of each idle transmission channel:
when a plurality of idle transmission channels exist, acquiring historical transmission rate and historical abnormal information of each idle transmission channel, wherein the historical transmission rate is used for representing the rate of the historical data transmission process by using the idle transmission channels, and the historical abnormal information is used for representing the times and time of faults in the data transmission process by using the idle transmission channels;
determining the utilization priority of each idle transmission channel according to the historical transmission rate and the historical abnormal information of each idle transmission channel;
and determining the idle transmission channel with the highest utilization priority as an emergency channel.
In one possible implementation manner, the second determining emergency channel module is specifically configured to, when determining the utilization priority of each idle transmission channel according to the historical transmission rate and the historical anomaly information of each idle transmission channel:
determining the transmission rate grade of each idle transmission channel according to the historical transmission rate of each idle transmission channel, wherein the transmission rate grade and the transmission rate are in a proportional relation;
According to the historical abnormal information of each idle transmission channel, determining an abnormal frequent period, wherein the abnormal frequent period is used for representing the period or moment of occurrence of the abnormality for a plurality of times;
determining the transmission time of the target ammeter data according to the receiving and transmitting information of the target ammeter data;
comparing the transmission time of the target ammeter data with the abnormal frequent period of each idle transmission channel, judging whether the transmission time is in the abnormal frequent period or not, and discarding the idle transmission channels with the transmission time in the abnormal frequent period;
when the transmission time is out of the abnormal frequent period, determining the abnormal grade of each idle transmission channel according to the time difference value of the abnormal frequent period corresponding to each idle transmission channel at the transmission time of the target ammeter data, wherein the abnormal grade and the abnormal probability are in a direct proportion relation;
and carrying out summation calculation according to the weights corresponding to the transmission rate grade and the abnormal grade, and determining the utilization priority of each idle transmission channel according to the calculation result.
In one possible implementation, the apparatus further includes:
the data grouping module is used for dividing the ammeter data to be transmitted of the plurality of ammeter according to the data types and ammeter numbers when the ammeter data to be transmitted corresponding to the same ammeter comprises a plurality of groups of sub-data and the data types of the plurality of groups of sub-data are different, so as to obtain a plurality of sub-data groups, wherein the data types contained in the different sub-data groups are different;
Determining transmission grades corresponding to the plurality of sub-data sets according to the data type corresponding to each sub-data set;
the idle transmission channel determining module is used for determining the idle transmission channel corresponding to each sub-data group according to the transmission grade corresponding to each sub-data group and the utilization priority of the idle transmission channel;
and the control transmission module is used for transmitting the divided sub-data groups and the ammeter numbers corresponding to each sub-data in the sub-data groups through corresponding idle transmission channels.
In one possible implementation, the apparatus further includes:
the module for determining the number of the required channels is used for determining the number of the required transmission channels according to the number to be transmitted when the number to be transmitted of the ammeter data to be transmitted is detected to exceed a preset threshold value;
the allocation channel module is used for acquiring the number of idle transmission channels, comparing the number of required transmission channels with the number of idle transmission channels, and executing a circulation step when the number of idle transmission channels is lower than the number of required transmission channels until a preset condition is met, wherein the circulation is stopped:
the circulation steps comprise: comparing the transmission grades of the electric meter data being transmitted in all the non-idle transmission channels with the transmission grades of the electric meter data to be transmitted respectively, when the transmission grade corresponding to the electric meter data being transmitted is lower than the transmission grade corresponding to any electric meter data to be transmitted, storing the electric meter data being transmitted into a temporary buffer area, enabling the corresponding transmission channels to be idle, transmitting the electric meter data to be transmitted, updating the quantity to be transmitted of the electric meter data to be transmitted, and returning to execute the step of comparing the transmission grades of the electric meter data being transmitted in all the non-idle transmission channels with the transmission grades of the electric meter data to be transmitted respectively, wherein the transmission grades are obtained based on the preset data types and the transmission grades, the transmission grades are used for representing the processing emergency degree of the electric meter data, and the higher the transmission grade is, the higher the processing emergency degree is.
The preset conditions comprise:
and the quantity to be transmitted of the data to be transmitted is zero.
In a third aspect, the present application provides an electronic device, which adopts the following technical scheme:
an electronic device, the electronic device comprising:
at least one processor;
a memory;
at least one application, wherein the at least one application is stored in memory and configured to be executed by at least one processor, the at least one application configured to: the method for processing the communication faults is executed.
In a fourth aspect, the present application provides a computer readable storage medium, which adopts the following technical scheme:
a computer-readable storage medium, comprising: a computer program capable of being loaded by a processor and executing the above communication failure processing method is stored.
In summary, the present application includes at least one of the following beneficial technical effects:
when the ammeter data is abnormal in the transmission process, the abnormal position of the transmission channel is determined through the receiving and transmitting information of the ammeter data in the transmission process, instead of manually checking and determining the position of the fault in the transmission channel after the abnormal position of the transmission channel is detected, the fault position is determined through the receiving and transmitting information of each node in the transmission channel, the speed and the accuracy of determining the fault position are improved, when the spare equipment exists in the fault position, the spare equipment is connected into the abnormal channel with the fault position to form an emergency channel, so that the transmission channel is recovered quickly, the influence on data transmission caused by the fault of the transmission channel is reduced, when the spare equipment does not exist in the fault position, the emergency channel is determined from a plurality of idle transmission channels through the historical transmission speed and the historical abnormal information, instead of randomly determining the emergency channel from the plurality of idle transmission channels, the efficiency in the data transmission process is improved, the idle transmission channel is used as the emergency channel, the original transmission channel is reused after the spare transmission channel is restarted, and the influence on data transmission caused by the fault transmission is reduced.
The method comprises the steps of determining the utilization priority of an idle transmission channel through the historical transmission rate and the historical abnormal information of the idle transmission channel, wherein the faster the historical transmission rate is, the less the historical abnormal information is, the higher the utilization priority of the corresponding idle transmission channel is, determining the idle transmission channel with the highest priority as an emergency channel instead of randomly selecting the idle transmission channels, and retransmitting data according to a random selection result.
Drawings
FIG. 1 is a schematic flow chart of a dual mode communication fault handling method based on HPLC and HRF in an embodiment of the present application;
FIG. 2 is a schematic structural diagram of a dual-mode communication fault handling device based on HPLC and HRF according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application
Description of the embodiments
The present application is described in further detail below in conjunction with figures 1-3.
Modifications of the embodiments which do not creatively contribute to the invention may be made by those skilled in the art after reading the present specification, but are protected by patent laws only within the scope of claims of the present application.
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
In order to improve data transmission efficiency and reduce the influence on data transmission caused by transmission channel abnormality, in the embodiment of the present application, when the ammeter data is abnormal in the transmission process, the abnormal position in the transmission channel is determined through the transceiving information of the ammeter data in the transmission process, instead of manually checking and determining the position of the fault in the transmission channel after detecting that the abnormality occurs in the transmission channel, the fault position is determined through the transceiving information of the ammeter data at each node in the transmission channel, so as to facilitate the improvement of the speed and the accuracy when determining the fault position, when the spare device exists in the fault position, the spare device is connected into the abnormal channel with the fault position to form an emergency channel, so as to facilitate the rapid recovery of the transmission channel, thereby reducing the influence on data transmission caused by the fault occurrence of the transmission channel.
Specifically, the embodiment of the application provides a method for processing a dual-mode communication fault based on HPLC and HRF, which is executed by an electronic device, wherein the electronic device can be a server or a terminal device, and the server can be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server for providing cloud computing service. The terminal device may be a smart phone, a tablet computer, a notebook computer, a desktop computer, etc., but is not limited thereto, and the terminal device and the server may be directly or indirectly connected through a wired or wireless communication manner, which is not limited herein.
Referring to fig. 1, fig. 1 is a flow chart of a dual-mode communication fault handling method based on HPLC and HRF according to an embodiment of the present application, the method includes step S110, step S120, step S130, step S140, step S150, and step S160, wherein:
step S110: if the target ammeter data is not received within the preset time, acquiring current transmission channel information, wherein the current transmission channel information comprises each node in the current transmission channel.
Specifically, the ammeter data are generally collected by the collector and are transmitted to the concentrator in the electronic device through the data transmission channel, so that the electronic device integrates and analyzes the ammeter data, and as the ammeter data do not need to be forwarded and processed in the transmission process, if the ammeter data are not received within a preset time period after the ammeter data are collected, the ammeter data are characterized as abnormal in the transmission process, wherein the preset time period can be determined according to the distance between the ammeter and the electronic device, and the longer the distance between the ammeter and the electronic device is, the longer the corresponding preset time period is. The transmission channel at least comprises a collector node, a transmission module node and a concentrator node, wherein the concentrator is positioned in the electronic equipment, and all nodes in the current transmission channel are recorded in the current transmission channel information.
Step S120: and determining the receiving and transmitting information of the target ammeter data from the current transmission channel information, wherein the receiving and transmitting information is used for representing the state and the moment when the ammeter data passes through each node in the current transmission channel, and the state is used for representing whether the ammeter data is transmitted to the node or not transmitted to the node.
Specifically, all transmission channel information is recorded in a work log of the electronic device, and the transmission channel information corresponding to the current transmission channel is conveniently determined by traversing the work log of the electronic device, and the receiving and transmitting information is used for recording the transmission process of the ammeter data in the transmission channel.
Step S130: and determining a fault node of the target ammeter data in the transmission process according to the receiving and transmitting information, and determining the current transmission channel as an abnormal channel.
Specifically, the faulty node is a node in the transmission channel, for example, the transmission channel includes a collector, a communication module and a concentrator, and if the state of the ammeter data detected at the concentrator is that the ammeter data is transmitted to the node, the ammeter data is represented to smoothly arrive at the concentrator node; if the state of the ammeter data detected at the collector is transmitted to the node, but the state of the ammeter data detected at the concentrator is not transmitted to the node, the fault node representing the ammeter data in the transmission process is a communication module, and the transmission channel containing the fault node is determined to be an abnormal channel.
Step S140: it is detected whether a standby device is present at the failed node.
Step S150: when the standby equipment exists, the standby equipment is connected into the abnormal channel to form an emergency channel, so that the target ammeter data is transmitted through the emergency channel.
Specifically, the type and model of the spare equipment are the same as those of the equipment corresponding to the fault node, and the spare equipment is used for replacing the fault equipment corresponding to the fault node, so that the data transmission of the abnormal channel can be recovered conveniently. Whether the standby equipment exists in the fault node can be determined according to equipment information, the equipment information can be uploaded to the electronic equipment by related personnel before the data transmission is carried out in the transmission channel, and the electronic equipment can be added or deleted in the data transmission process, for example, equipment corresponding to the fault node is a module a, a standby equipment module b exists at the moment, the standby equipment module b is connected into an abnormal channel to form an emergency channel, and the data of the ammeter can be continuously transmitted through the emergency channel.
Step S160: and when the standby equipment does not exist, determining an emergency channel from a plurality of idle transmission channels based on the historical transmission rate and the historical abnormality information of each idle transmission channel so as to enable the target ammeter data to be transmitted through the emergency channel.
Specifically, the idle transmission channel is a channel which does not transmit electric meter data after the current transmission channel is abnormal, and because the number of nodes and the types of the nodes corresponding to each transmission channel may be different, the transmission rates corresponding to different transmission channels are also different, and the historical transmission rate of the idle transmission channel represents the average transmission rate of the idle transmission channel in the historical transmission process of the electric meter data, and the historical abnormal information is used for representing the abnormal times and the fault time of the idle transmission channel in the transmission process of the electric meter data. The historical transmission rate and the historical anomaly information are utilized as conditions for determining an emergency channel from the plurality of idle transmission channels.
For the embodiment of the application, when the transmission channel is abnormal in the transmission process of the ammeter data, the abnormal position of the transmission channel is determined through the receiving and transmitting information of the ammeter data in the transmission process, instead of manually checking and determining the position of the transmission channel with the fault after the abnormal occurrence of the transmission channel is detected, the fault position is determined through the receiving and transmitting information of each node of the ammeter data in the transmission channel, the speed and the accuracy of determining the fault position are improved conveniently, when the standby equipment exists in the fault position, the standby equipment is connected into the abnormal channel with the fault position to form an emergency channel so as to quickly recover the transmission channel, thereby the influence on data transmission caused by the fault of the transmission channel is reduced, when the standby equipment does not exist in the fault position, the emergency channel is determined from a plurality of idle transmission channels through the historical transmission speed and the historical abnormal information, instead of randomly determining the emergency channel from the plurality of idle transmission channels, the efficiency in the data transmission process is improved conveniently, the idle transmission channel is used as the emergency channel, the emergency channel is not rebuilt or the original transmission channel is rebuilt after the standby transmission channel is used for data transmission, and the influence on the transmission channel caused by the fault transmission is reduced conveniently.
Further, the receiving and transmitting information of the target electricity meter data is determined from the current transmission channel information, and then further includes a step Sa1 (not shown in the drawings), a step Sa2 (not shown in the drawings), a step Sa3 (not shown in the drawings), a step Sa4 (not shown in the drawings), and a step Sa5 (not shown in the drawings), wherein:
step Sa1: and determining the transmission state of the target ammeter data according to the receiving and transmitting information, wherein the transmission state comprises the transmission started or not started.
Specifically, if the target ammeter data is allocated with a corresponding transmission channel, but the transmission is not started, the transmission state of the target ammeter data is characterized as not started; if the target ammeter data is allocated with a corresponding transmission channel and the transmission state of the target ammeter data is characterized as the transmission started when the transmission of the target ammeter data is started, whether the transmission of the target ammeter data is started or not can be determined through the receiving and transmitting information, and if the transmission and the transmission of the target ammeter data are started, the receiving and transmitting information is updated according to the transportation process.
Step Sa2: when the transmission state of the target ammeter data is that transmission is started, determining the data type of the target ammeter data, and determining the transmission standard of the target ammeter data according to the corresponding relation between the preset data type and the transmission standard.
Step Sa3: and detecting whether the target ammeter data is complete or not based on the transmission standard.
Specifically, the electric meter data includes a plurality of types, such as digital data of the electric meter, periodic maintenance data of the electric meter, performance data of electric meter equipment, and the like, and transmission standards corresponding to different data types are different, wherein the transmission standards are the basis for judging whether the electric meter data is complete. The data transmission forms corresponding to different data types are also different, and when the data type of the target ammeter data is determined, semantic identification can be carried out on the target ammeter data or the data packet header of the target ammeter data can be identified.
Step Sa4: and when the target ammeter data are complete, writing the target ammeter data into the temporary buffer area for subsequent transmission.
Step Sa5: and when the target ammeter data are incomplete, discarding the target ammeter data, and generating a re-acquisition instruction so that the acquisition equipment re-acquires the ammeter data.
Specifically, the temporary buffer area may be any free buffer area, in order to reduce the probability of losing the target ammeter data, after the transmission channel is abnormal, the target ammeter data being transmitted in the transmission channel is saved to the buffer area, but before the target ammeter data exist in the temporary buffer area, the integrity judgment is needed to be performed on the written target ammeter data, and only when the target ammeter data are complete, the target ammeter data being transmitted are written in the temporary buffer area. The reference value of the data is not great when the incomplete target ammeter data is analyzed, so that when the incomplete target ammeter data in transmission is detected, the incomplete target ammeter data are abandoned, the incomplete target ammeter data are acquired again, and the acquired target ammeter data are transmitted after the abnormality of the transmission channel is eliminated.
For the embodiment of the application, if the target ammeter data is not received within the preset time, judging whether the target ammeter data is transmitted or not according to the transportation state of the target ammeter data, and when the transmission state is that the transportation is started, storing the complete but not transmitted target ammeter data to be retransmitted, discarding and collecting the incomplete target ammeter data to be retransmitted, instead of uniformly processing the complete ammeter data and the incomplete ammeter data, if the incomplete ammeter data is stored to be retransmitted, invalid data may occur, and the storage pressure of the computer may be increased by storing the invalid data, so that whether the incomplete ammeter data needs to be stored and retransmitted is determined according to the transmission state and the integrity of the data, thereby facilitating improvement of the validity of the transmission data and reduction of the storage pressure of the computer.
Further, when the spare device is present, connecting the spare device into the abnormal channel to form an emergency channel, the method further comprises a step Sb1 (not shown in the drawing), a step Sb2 (not shown in the drawing) and a step Sb3 (not shown in the drawing), wherein:
Step Sb1: and determining the corresponding device at the fault node as a master device and determining the standby device as a slave device.
Step Sb2: and acquiring a communication record of the slave device, wherein the communication record is generated when the master device communicates with the slave device, and is used for representing that the operation state of the slave device is normal operation or abnormal operation.
Specifically, heartbeat communication is established between the master device and the slave device to determine the operation states of the master device and the slave device, specifically, the master device is controlled to send a heartbeat packet to the slave device every other preset time, and timeout waiting time is set to be that the slave device replies to the master device within the timeout waiting time (without considering transmission loss time), if the master device receives the reply of the slave device within the timeout waiting time after sending the heartbeat packet, the operation states of the slave device can be considered to be normal operation, and if the master device does not receive the reply of the slave device within the timeout waiting time after sending the heartbeat packet, the operation states of the slave device can be considered to be abnormal operation, wherein the preset time and the timeout waiting time can be input by a user.
Step Sb3: and when the operation state of the slave device is normal operation, connecting the standby device into the abnormal channel.
Specifically, after the master device fails, the running state of the slave device needs to be determined, so as to improve the probability of abnormality elimination after the slave device accesses an abnormal path. When the slave device is connected into the abnormal channel, a connection instruction can be generated to remind relevant staff to connect the slave device, the connection interface of the slave device can be automatically acquired, the slave device is connected into the abnormal channel according to the connection interface of the slave device, and the interface of the master device and the abnormal channel is disconnected.
Further, when the fault node is a communication node, the master device is an HPLC module, and the slave device is an HRF module.
Specifically, the HPLC module is a high-speed power line carrier communication module, the HRF module is a high-speed micro-power wireless communication module, along with the continuous deep communication technology, the HPLC module is gradually exposed at the defects of certain scenes, for example, the HPLC is used as a transmission channel formed by a corresponding main device at a communication node, the transmission channel formed by the HRF may not be capable of carrying out pure transmission on a large amount of ammeter data, so that the hplc+hrf dual-mode communication mode is utilized, the HPLC dual-mode communication module can be effectively complemented with the HPLC technology, dual-channel automatic fusion networking is enabled, and networking is more flexible. In addition, when the HPLC module in the transmission channel fails, the HRF module can be connected into the abnormal channel to form an emergency channel.
Wherein, the spare equipment is connected into the abnormal channel to form an emergency channel, and then the emergency channel further comprises a step Sb4 (not shown in the drawing) and a step Sb5 (not shown in the drawing), wherein:
step Sb4: and after detecting that the corresponding main equipment at the fault node is eliminated, respectively determining the working frequencies of the main equipment and the auxiliary equipment according to the quantity of data to be transmitted.
Specifically, the data to be transmitted is the ammeter data needing to be distributed with a transmission channel, when the faults of the corresponding main equipment at the fault node are not eliminated, the ammeter data are continuously transmitted by means of an emergency channel formed by the auxiliary equipment, but after the faults of the main equipment are eliminated, working time can be distributed for the main equipment and the auxiliary equipment, so that the workload on the main equipment and the auxiliary equipment is reduced. When the working frequencies of the master device and the slave device are determined, namely the working time lengths of the master device and the slave device are determined, the working time lengths of the master device and the slave device can be increased when the number of the data to be transmitted is large, and the working time lengths of the master device and the slave device can be reduced when the number of the data to be transmitted is small.
The master device and the slave device can alternately and alternately work and can also work simultaneously, when the working mode is alternately and alternately work, the switching time is determined according to the working time length of the transmission channel, the working states of the master device and the slave device are switched after the switching time is reached, for example, when the switching time is 3 hours, the slave device is accessed to the transmission channel after the master device works for 3 hours, and the master device is accessed to the transmission channel again after the slave device works for 3 hours; when the working modes are simultaneous, the master device and the slave device can be simultaneously connected into the transmission channel, but the master device and the slave device are simultaneously connected into the transmission channel so as to conveniently increase the transmission pressure of the transmission channel, thereby being convenient for causing the transmission channel to be abnormal, and therefore when the data to be transmitted exceeds a preset threshold value, the working modes of the master device and the slave device can be determined to be simultaneous, wherein the preset threshold value can be input by related personnel.
If the corresponding master device at the communication node is an HPLC module and the slave device is an HRF module, the master device and the slave device are fused, so that the networking flexibility in the power transmission process is improved.
Step Sb5: and controlling the access of the master device and the slave device to the transmission channel according to the respective corresponding working frequencies of the master device and the slave device.
Specifically, after the working frequencies of the master device and the slave device are determined according to the data to be transmitted, the electronic device can control the access of the master device and the slave device based on the working frequencies corresponding to the master device and the slave device, and can also send the working frequencies corresponding to the master device and the slave device so that the master device and the slave device can be automatically accessed into the transmission channel according to the working frequencies corresponding to the master device and the slave device.
For the embodiment of the application, before the standby equipment is connected to the abnormal channel, the operation state of the slave equipment is determined, namely, the operation state of the standby equipment is determined, when the operation state of the standby equipment is normal operation, the standby equipment is connected to the abnormal channel, instead of directly connecting the slave equipment to the abnormal channel after the main equipment fails, the operation state of the slave equipment is determined so as to reduce the probability of abnormality of the transmission channel after the slave equipment is connected, and after the main equipment is overhauled, the main equipment and the slave equipment are connected to the transmission channel according to the respective corresponding working frequencies of the main equipment and the slave equipment so as to reduce the workload of the main equipment in the data transmission process, thereby reducing the probability of abnormality of the transmission channel.
Further, determining an emergency channel from the plurality of idle transmission channels based on the historical transmission rate and the historical abnormality information of each idle transmission channel, further includes a step Sc1 (not shown in the drawings), in which:
step Sc1: and determining an idle transmission channel from the plurality of transmission channels according to the work log.
Specifically, there are a plurality of transmission channels, but when the number of data to be transmitted is smaller than the number of transmission channels, some transmission channels may be in an idle state, and the transmission channel in the idle state is called an idle transmission channel. The working state of each transmission channel is recorded in the working log, so that the transmission channel in the idle state is conveniently determined through the working log.
Wherein, based on the historical transmission rate and the historical anomaly information of each idle transmission channel, determining the emergency channel from the plurality of idle transmission channels specifically includes a step Sc2 (not shown in the drawing), a step Sc3 (not shown in the drawing), and a step Sc4 (not shown in the drawing), wherein:
step Sc2: when a plurality of idle transmission channels exist, the historical transmission rate and the historical abnormal information of each idle transmission channel are obtained, the historical transmission rate is used for representing the rate of the historical data transmission process by using the idle transmission channels, and the historical abnormal information is used for representing the times and time of faults in the historical data transmission process by using the idle transmission channels.
Specifically, the historical transmission rate and the historical abnormal information of each transmission channel can be determined through the working state of each transmission channel, wherein the historical transmission efficiency of the transmission channel is the average transmission rate of the transmission channel in the historical transmission process. And the probability that each transmission channel is possibly abnormal is conveniently determined according to the historical abnormal information corresponding to each transmission channel.
Step Sc3: and determining the utilization priority of each idle transmission channel according to the historical transmission rate and the historical abnormal information of each idle transmission channel.
Step Sc4: and determining the idle transmission channel with the highest utilization priority as an emergency channel.
Specifically, determining an idle score of each idle transmission channel according to the historical transmission rate and the historical abnormal information of each idle transmission channel, sequencing a plurality of transmission channels according to the idle scores to obtain an idle sequence, wherein the idle scores of the idle transmission channels are in a proportional relation with the utilization priorities of the idle transmission channels, the utilization priorities corresponding to the higher idle scores are higher, and determining the idle transmission channel with the highest idle score, namely the highest utilization priority, as an emergency channel. When a plurality of idle transmission channels need to be determined, selecting from the plurality of transmission channels according to the order of the idle scores from high to low.
For the embodiment of the application, the faster the historical transmission rate is, the less the historical abnormal information is, the higher the utilization priority of the corresponding idle transmission channel is, the idle transmission channel with the highest priority is determined to be an emergency channel instead of randomly selecting from a plurality of idle transmission channels, and the data is retransmitted according to the random selection result.
Further, in step Sc3, the utilization priority of each idle transmission channel is determined according to the historical transmission rate and the historical anomaly information of each idle transmission channel, which may specifically include step Sc31 (not shown in the accompanying drawings), step Sc32 (not shown in the accompanying drawings), step Sc33 (not shown in the accompanying drawings), step Sc34 (not shown in the accompanying drawings), step Sc35 (not shown in the accompanying drawings), and step Sc36 (not shown in the accompanying drawings), wherein:
step Sc31: and determining the transmission rate grade of each idle transmission channel according to the historical transmission rate of each idle transmission channel, wherein the transmission rate grade and the transmission rate are in a proportional relation.
Specifically, the historical transmission rates of each idle transmission channel are sequenced to obtain a historical transmission rate sequence, and the faster the historical transmission rate is, the higher the corresponding transmission rate level is. The correspondence between the transmission rate and the transmission rate level may be entered by the relevant personnel.
Step Sc32: and determining an abnormal frequent period according to the historical abnormal information of each idle transmission channel, wherein the abnormal frequent period is used for representing the period or moment of occurrence of the abnormality for a plurality of times.
Specifically, the abnormal time of each idle transmission channel in the preset time period is counted, for example, the idle transmission channel a is abnormal at the 3 month 1 day 10 point, the 3 month 11 day 9 point 15, the 4 month 17 day 9 point 45, the 4 month 20 day 9 point 55 and the 5 month 1 day 9 point 05, so that the abnormal frequent period of the idle transmission channel a can be determined to be 9-10 points, the specific preset time period can be 3 months, 6 months and 1 year, and the embodiment of the application is not limited specifically. The abnormal frequent period may be a period in which an abnormality frequently occurs, or may be a time in which an abnormality frequently occurs.
Step Sc33: and determining the transmission time of the target ammeter data according to the receiving and transmitting information of the target ammeter data.
Specifically, in the ammeter data transmission process, the electronic equipment records the state of ammeter data in the transmission process and generates corresponding transceiving information, wherein the transceiving information comprises the corresponding moment and state of ammeter data when the ammeter data is transmitted to a certain node. If it is determined according to the transceiving information corresponding to the target ammeter data that the target ammeter data is not received by the electronic device within the preset time period after the 9-point 20-minute acquisition is completed, it can be determined that the target ammeter data is abnormal in the transmission process, the abnormal time is 9-point 20-minute, and in order to reduce the influence on data transmission caused by the abnormal occurrence of the transmission channel, the target ammeter data needs to be retransmitted in time after the abnormal occurrence of the transmission of the target ammeter data, and therefore the 9-point 20 is determined as the transmission time, namely retransmission time, of the target ammeter data.
Step Sc34: and comparing the transmission time of the target ammeter data with the abnormal frequent period of each idle transmission channel, judging whether the transmission time is in the abnormal frequent period, and discarding the idle transmission channel with the transmission time in the abnormal frequent period.
Specifically, since the probability of occurrence of an anomaly in the abnormal frequent period is high, in order to reduce the probability of occurrence of a secondary anomaly in the data transmission process, comparison is required between the retransmission time of the target ammeter data and the abnormal frequent period of the idle transmission channel, and when the retransmission time of the target ammeter data is in the abnormal frequent period of the idle transmission channel, the idle transmission channel is discarded, that is, the utilization priority corresponding to the idle transmission channel is not calculated. For example, the abnormal frequent period of the idle transmission channel a is 9-10 points, and the retransmission time of the target ammeter data is 9-20 points, so that the utilization priority of the idle transmission channel a is not calculated before the emergency channel corresponding to the target ammeter data is determined.
Step Sc35: when the transmission time is out of the abnormal frequent period, determining the abnormal grade of each idle transmission channel according to the time difference value of the abnormal frequent period corresponding to each idle transmission channel at the transmission time of the target ammeter data, wherein the abnormal grade is in a proportional relation with the occurrence probability of the abnormality.
Specifically, the time difference of the abnormal frequent period is a difference value between the retransmission time and the endpoint time of the abnormal frequent period, and when the abnormal frequent period is an abnormal frequent time, the time difference value can be determined by comparing the retransmission time with the abnormal frequent time corresponding to the abnormal frequent period.
When the abnormal frequent period is a time period, the transmission time is required to be compared with the front end point time or the rear end point time of the abnormal frequent period, so as to determine a time difference value, and if the transmission time is positioned before the front end point time of the abnormal frequent period, the retransmission time is compared with the front end point time to determine the time difference value; if the transmission time is located behind the rear end point of the abnormal frequent period, comparing the retransmission time with the rear end point time, for example, if the abnormal frequent period of a certain idle transmission channel is 10-12 points, if the retransmission time of the target ammeter data a is 8 points and the 8 points are located before the 10 points, determining that the time difference between the retransmission time of the target ammeter data a and the idle transmission channel is 2 hours according to the 8 points and the 10 points; if the retransmission time of the target ammeter data b is 14 points and the 14 points are located after the 12 points, determining that the time difference between the target ammeter data b and the idle transmission channel is 2 hours according to the 12 points and the 14 points. Since the time of occurrence of the abnormality is not fixed, the closer the retransmission time is to the abnormal frequent period, the more likely the abnormality occurs, and since the time difference is determined according to the retransmission time and the power-off time of the abnormal frequent period, the smaller the time difference is, the closer the retransmission time is to the abnormal frequent period. The abnormality levels corresponding to different time differences are different, the abnormality level corresponding to the smaller time difference is higher, for example, the abnormality level corresponding to the time difference of more than 10 hours can be determined as a first-level abnormality, the abnormality level corresponding to the time difference of 5-10 hours can be determined as a second-level abnormality, and the abnormality level corresponding to the time difference of less than 5 hours can be determined as a third-level abnormality.
Step Sc36: and carrying out summation calculation according to the weights corresponding to the transmission rate grade and the abnormal grade, and determining the utilization priority of each idle transmission channel according to the calculation result.
Specifically, different transmission rate grades and different abnormal grades are allocated with different scores and calculated by combining respective corresponding weights, for example, the transmission rate grades comprise primary transmission, secondary transmission and tertiary transmission, and the corresponding scores are respectively 20, 30 and 50; the abnormality grades comprise a first-level abnormality, a second-level abnormality and a third-level abnormality, and the corresponding scores are respectively 50, 30 and 20; the weight corresponding to the transmission rate is 30%, the weight corresponding to the abnormal level is 70%, and if the idle transmission channel a is the primary transmission and the secondary transmission are abnormal, the corresponding priority score is 20×30% +30×70% =27.
The priority scores corresponding to the idle transmission channels are calculated, the calculated priority scores are ordered, corresponding utilization priorities are determined, the corresponding relation between the priorities and the scores can be input by related personnel, for example, the utilization priorities corresponding to the idle transmission channels with the priority scores below 30 minutes can be determined to be first-level priorities, the utilization priorities corresponding to the idle transmission channels with the priority scores between 30 and 40 are determined to be second-level priorities, and the utilization priorities corresponding to the idle transmission channels with the priority scores above 40 minutes are determined to be third-level priorities.
For the embodiment of the application, the utilization priority of the idle transmission channel is determined through the transmission rate grade and the abnormal grade, instead of determining the utilization priority of the idle transmission channel only through the transmission rate speed or whether the abnormality occurs, and the utilization priority of the idle transmission channel is determined through the weights corresponding to the transmission rate grade and the abnormal grade, so that the accuracy of the determination result is improved conveniently.
Further, in order to improve the data transmission efficiency, the embodiment of the present application further includes a step Sd1 (not shown in the drawings), a step Sd2 (not shown in the drawings), a step Sd3 (not shown in the drawings), and a step Sd4 (not shown in the drawings), wherein:
step Sd1: when the ammeter data to be transmitted corresponding to the same ammeter comprises a plurality of groups of sub-data and the data types of the plurality of groups of sub-data are different, dividing the ammeter data to be transmitted of the plurality of ammeter according to the data types and the ammeter numbers to obtain a plurality of sub-data groups.
Wherein the data types contained in different sub-data sets are different.
Specifically, since the collected data types may be different when the same ammeter data is collected, where the ammeter data may be digital data used by an ammeter, periodic maintenance data of the ammeter, performance data of ammeter equipment, and the like, when the ammeter data to be transmitted of a plurality of ammeter is divided, a plurality of data corresponding to the same ammeter may be first divided according to the data types, and then the divided data of the plurality of ammeter are integrated, for example, ammeter data obtained by collecting data of ammeter 1 are 1a, 1b, and 1c, where the data types corresponding to 1a, 1b, and 1c are a, b, and c, respectively; the method comprises the steps of acquiring data of an electric meter 2 to obtain electric meter data of 2a, 2b and 2c, wherein the data types corresponding to 2a, 2b and 2c are a, b and c respectively, integrating the data in the electric meter 1 and the electric meter 2 to obtain three sub-data sets, wherein the data type corresponding to a first data set is a, and the included data are 1a and 2a; the data type corresponding to the second data group is b, and the contained data comprises 1b and 2b; the data type corresponding to the third data group is c, and the contained data is 1c and 2c.
Step Sd2: and determining the transmission grade corresponding to each of the plurality of sub-data groups according to the data type corresponding to each sub-data group.
Specifically, the correspondence between the data type and the transmission level may be input by a relevant person, for example, the transmission level of the data type a is greater than the transmission level of the data type b, and the transmission level of the data type b is greater than the transmission level of the data type c.
Step Sd3: and determining the idle transmission channel corresponding to each sub-data group according to the transmission grade corresponding to each sub-data group and the utilization priority of the idle transmission channel.
Specifically, the higher the transmission level is, the higher the emergency degree of the data to be processed is, and when the corresponding idle transmission channel is determined according to the transmission level, the idle transmission channel with the highest utilization priority is allocated to the sub-data group with the highest transmission level.
Step Sd4: and transmitting the electric meter number corresponding to each sub data in the divided sub data group by a corresponding idle transmission channel.
Specifically, according to the ammeter number corresponding to each piece of sub-data in the sub-data group, the sub-data of the same ammeter number can be integrated conveniently, namely, the sub-data corresponding to the same ammeter can be integrated conveniently.
For the embodiment of the application, the sub-data with the same data type are divided and transmitted by adopting the same idle transmission channel, instead of determining the corresponding idle transmission channel one by one according to the data type of each sub-data before forwarding, the comparison times of the data type and the idle transmission channel are reduced, so that the efficiency in data transmission is improved, the sub-data and the corresponding ammeter number are transmitted together, the receiving terminal equipment is convenient to integrate the sub-data corresponding to the same ammeter number according to the ammeter number corresponding to the sub-data, and the data transmission efficiency is improved.
In order to further improve the data transmission efficiency, the embodiment of the present application further includes a step Se1 (not shown in the drawings) and a step Se2 (not shown in the drawings), where:
step Se1: when the quantity to be transmitted of the ammeter data to be transmitted exceeds a preset threshold value, determining the quantity of the required transmission channels according to the quantity to be transmitted.
Specifically, in order to improve the data transmission efficiency, the electric meter data to be transmitted needs to be transmitted as quickly as possible, if the electric meter data to be transmitted is smaller than a preset threshold, the quantity of the electric meter data to be transmitted is represented to be small, wherein the preset threshold can be 3 or 5, and the electric meter data to be transmitted can be specifically input by related personnel, if the quantity of the electric meter data to be transmitted is 15 at this time, the preset threshold is 5, and the quantity of the electric meter data to be transmitted exceeds the preset threshold at this time, so that the quantity of the electric meter data to be transmitted is determined to be the quantity of required transmission channels.
Step Se2: acquiring the number of idle transmission channels, comparing the number of required transmission channels with the number of idle transmission channels, and executing a circulation step when the number of idle transmission channels is lower than the number of required transmission channels until a preset condition is met, wherein:
the circulation steps comprise: comparing the transmission grades of the electric meter data being transmitted in all the non-idle transmission channels with the transmission grades of the electric meter data to be transmitted respectively, when the transmission grade corresponding to the electric meter data being transmitted is lower than the transmission grade corresponding to any electric meter data to be transmitted, storing the electric meter data being transmitted into a temporary buffer area so that the corresponding transmission channel is idle, transmitting the electric meter data to be transmitted, updating the quantity to be transmitted of the electric meter data to be transmitted, and returning to the step of comparing the transmission grades of the electric meter data being transmitted in all the non-idle transmission channels with the transmission grades of the electric meter data to be transmitted respectively, wherein the transmission grades are obtained based on preset data types and transmission grades, the transmission grades are used for representing the processing emergency degree of the electric meter data, and the higher the transmission grade is, the higher the processing emergency degree is.
The preset conditions comprise:
The number of electricity meter data to be transmitted is zero.
Specifically, for example, there are 6 to-be-transmitted ammeter data, which are A, B, C, D, E and F respectively, at this time, the number of idle transmission channels is 4, after one to-be-transmitted ammeter data is allocated to each idle transmission channel, two to-be-transmitted data B and D remain, when determining the transmission channels for the to-be-transmitted data B and D, the transmission grades corresponding to the ammeter data in transmission in all the non-idle transmission channels are compared with the transmission grades of the to-be-transmitted ammeter data B and D, if the transmission grades corresponding to the ammeter data in transmission channels are lower than the transmission grades corresponding to the ammeter data B, the ammeter data in transmission channels are temporarily stored in a temporary buffer area, the ammeter data B is transmitted first, and then the transmission grades of the ammeter data in transmission in all the non-idle transmission channels are compared with the transmission grades of the to-be-transmitted ammeter data D until the to-be-transmitted ammeter data B and D are transmitted.
For the embodiment of the application, because the data types of the ammeter data are different, the corresponding processing emergency degree is also different, when the quantity of ammeter data to be transmitted is more and the quantity of idle transmission channels is less, the ammeter data with higher transmission grade are determined by comparing the ammeter data being transmitted in the non-idle transmission channels with the transmission grade corresponding to the ammeter data to be transmitted respectively, and the ammeter data with higher transmission grade are transmitted by utilizing the current non-idle transmission channels so as to reduce the influence on data transmission caused by the shortage of the transmission channels.
The above embodiment describes a dual-mode communication fault handling method based on HPLC and HRF from the aspect of method flow, and the following embodiment describes a dual-mode communication fault handling device based on HPLC and HRF from the aspect of virtual module or virtual unit, specifically the following embodiment.
The embodiment of the application provides a dual-mode communication fault handling device based on HPLC and HRF, as shown in fig. 2, the device may specifically include a transmission channel information acquisition module 210, a transceiver information determination module 220, an abnormal channel determination module 230, a standby equipment detection module 240, a first emergency channel determination module 250, and a second emergency channel determination module 260, where:
the transmission channel information obtaining module 210 is configured to obtain current transmission channel information if the target ammeter data is not received within a preset time period, where the current transmission channel information includes each node in the current transmission channel;
the determining transceiver information module 220 is configured to determine transceiver information of the target electric meter data from the current transmission channel information, where the transceiver information is used to characterize a state and a time when the electric meter data passes through each node in the current transmission channel, and the state is used to characterize whether the electric meter data is transmitted to the node or not transmitted to the node;
The abnormal channel determining module 230 is configured to determine a fault node of the target ammeter data in the transmission process according to the transceiving information, and determine the current transmission channel as an abnormal channel;
a standby equipment detection module 240 for detecting whether a standby equipment exists at the failed node;
a first emergency channel determining module 250, configured to connect the standby device to the abnormal channel to form an emergency channel when the standby device exists, so that the target ammeter data is transmitted through the emergency channel;
a second emergency channel determining module 260 is configured to determine an emergency channel from the plurality of idle transmission channels based on the historical transmission rate and the historical abnormality information of each idle transmission channel when the standby device is not present, so that the target electricity meter data is transmitted through the emergency channel.
In one possible implementation, the apparatus further includes:
the transmission state determining module is used for determining the transmission state of the target ammeter data according to the receiving and transmitting information, wherein the transmission state comprises the transmission started or not started;
the data type determining module is used for determining the data type of the target ammeter data when the transmission state of the target ammeter data is that the transmission is started, and determining the transmission standard of the target ammeter data according to the corresponding relation between the preset data type and the transmission standard;
The complete detection module is used for detecting whether the data of the target ammeter is complete or not based on a transmission standard;
the first execution module is used for writing the target ammeter data into the temporary buffer area for subsequent transmission when the target ammeter data are complete;
and the second execution module is used for discarding the target ammeter data when the target ammeter data are incomplete and generating a re-acquisition instruction so as to enable the acquisition equipment to re-acquire the ammeter data.
In one possible implementation, the apparatus further includes:
the device naming module is used for determining the corresponding device at the fault node as a master device and determining the standby device as a slave device;
the communication record acquisition module is used for acquiring a communication record of the slave equipment, wherein the communication record is generated when the master equipment communicates with the slave equipment, and the communication record is used for representing that the running state of the slave equipment is normal running or abnormal running;
the connected standby equipment module is used for connecting the standby equipment into an abnormal channel when the running state of the slave equipment is normal running;
the working frequency determining module is used for respectively determining the working frequencies of the master equipment and the slave equipment according to the quantity of data to be transmitted after detecting that the corresponding master equipment at the fault node is eliminated;
The control access module is used for controlling the master device and the slave device to access the transmission channel according to the respective corresponding working frequencies of the master device and the slave device.
In one possible implementation, the method further includes:
when the fault node is a communication node, the master device is an HPLC module, and the slave device is an HRF module.
In one possible implementation, the apparatus further includes:
the idle transmission channel determining module is used for determining an idle transmission channel from a plurality of transmission channels according to the work log;
wherein, the second emergency channel determining module 260 is specifically configured to, when determining an emergency channel from the plurality of idle transmission channels based on the historical transmission rate and the historical anomaly information of each idle transmission channel:
when a plurality of idle transmission channels exist, acquiring historical transmission rate and historical abnormal information of each idle transmission channel, wherein the historical transmission rate is used for representing the rate of the historical data transmission process by using the idle transmission channel, and the historical abnormal information is used for representing the times and time of faults in the data transmission process by using the idle transmission channel;
determining the utilization priority of each idle transmission channel according to the historical transmission rate and the historical abnormal information of each idle transmission channel;
And determining the idle transmission channel with the highest utilization priority as an emergency channel.
In one possible implementation manner, the second emergency channel determining module 260 is specifically configured to, when determining the utilization priority of each idle transmission channel according to the historical transmission rate and the historical anomaly information of each idle transmission channel:
determining the transmission rate grade of each idle transmission channel according to the historical transmission rate of each idle transmission channel, wherein the transmission rate grade and the transmission rate are in a direct proportional relation;
according to the historical abnormal information of each idle transmission channel, determining an abnormal frequent period, wherein the abnormal frequent period is used for representing the period or moment of occurrence of the abnormality for a plurality of times;
determining the transmission time of the target ammeter data according to the receiving and transmitting information of the target ammeter data;
comparing the transmission time of the target ammeter data with the abnormal frequent period of each idle transmission channel, judging whether the transmission time is in the abnormal frequent period, and discarding the idle transmission channel with the transmission time in the abnormal frequent period;
when the transmission time is out of the abnormal frequent period, determining the abnormal grade of each idle transmission channel according to the time difference value of the abnormal frequent period corresponding to each idle transmission channel at the transmission time of the target ammeter data, wherein the abnormal grade and the probability of occurrence of the abnormality are in a proportional relation;
And carrying out summation calculation according to the weights corresponding to the transmission rate grade and the abnormal grade, and determining the utilization priority of each idle transmission channel according to the calculation result.
In one possible implementation, the apparatus further includes:
the data grouping module is used for dividing the ammeter data to be transmitted of the plurality of ammeter according to the data types and ammeter numbers when the ammeter data to be transmitted corresponding to the same ammeter comprises a plurality of groups of sub-data and the data types of the plurality of groups of sub-data are different, so as to obtain a plurality of sub-data groups, wherein the data types contained in the different sub-data groups are different;
determining the transmission grade corresponding to each of the plurality of sub-data sets according to the data type corresponding to each of the sub-data sets;
the idle transmission channel determining module is used for determining the idle transmission channel corresponding to each sub-data group according to the transmission grade corresponding to each sub-data group and the utilization priority of the idle transmission channel;
and the control transmission module is used for transmitting the divided sub-data groups and the ammeter numbers corresponding to each sub-data in the sub-data groups through corresponding idle transmission channels.
In one possible implementation, the apparatus further includes:
The module for determining the number of the required channels is used for determining the number of the required transmission channels according to the number of the to-be-transmitted electric meter data when the number of the to-be-transmitted electric meter data is detected to exceed a preset threshold;
the allocation channel module is used for acquiring the number of idle transmission channels, comparing the number of required transmission channels with the number of idle transmission channels, and executing a circulation step when the number of idle transmission channels is lower than the number of required transmission channels until a preset condition is met, wherein the circulation is stopped:
the circulation steps comprise: comparing the transmission grades of the electric meter data being transmitted in all the non-idle transmission channels with the transmission grades of the electric meter data to be transmitted respectively, when the transmission grade corresponding to the electric meter data being transmitted is lower than the transmission grade corresponding to any electric meter data to be transmitted, storing the electric meter data being transmitted into a temporary buffer area, enabling the corresponding transmission channels to be idle, transmitting the electric meter data to be transmitted, updating the quantity to be transmitted of the electric meter data to be transmitted, and returning to execute the step of comparing the transmission grades of the electric meter data being transmitted in all the non-idle transmission channels with the transmission grades of the electric meter data to be transmitted respectively, wherein the transmission grades are obtained based on preset data types and transmission grades, the transmission grades are used for representing the processing emergency degree of the electric meter data, and the higher the transmission grade is, the higher the processing emergency degree is.
The preset conditions comprise:
the number of electricity meter data to be transmitted is zero.
In an embodiment of the present application, as shown in fig. 3, an electronic device 300 shown in fig. 3 includes: a processor 301 and a memory 303. Wherein the processor 301 is coupled to the memory 303, such as via a bus 302. Optionally, the electronic device 300 may also include a transceiver 304. It should be noted that, in practical applications, the transceiver 304 is not limited to one, and the structure of the electronic device 300 is not limited to the embodiment of the present application.
The processor 301 may be a CPU (Central Processing Unit ), general purpose processor, DSP (Digital Signal Processor, data signal processor), ASIC (Application Specific Integrated Circuit ), FPGA (Field Programmable Gate Array, field programmable gate array) or other programmable logic device, transistor logic device, hardware components, or any combination thereof. Which may implement or perform the various exemplary logic blocks, modules, and circuits described in connection with this disclosure. Processor 301 may also be a combination that implements computing functionality, e.g., comprising one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
Bus 302 may include a path to transfer information between the components. Bus 302 may be a PCI (Peripheral Component Interconnect, peripheral component interconnect Standard) bus or an EISA (Extended Industry Standard Architecture ) bus, or the like. Bus 302 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in fig. 3, but not only one bus or one type of bus.
The Memory 303 may be, but is not limited to, a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory ) or other type of dynamic storage device that can store information and instructions, an EEPROM (Electrically Erasable Programmable Read Only Memory ), a CD-ROM (Compact Disc Read Only Memory, compact disc Read Only Memory) or other optical disk storage, optical disk storage (including compact discs, laser discs, optical discs, digital versatile discs, blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
The memory 303 is used for storing application program codes for executing the present application and is controlled to be executed by the processor 301. The processor 301 is configured to execute the application code stored in the memory 303 to implement what is shown in the foregoing method embodiments.
Among them, electronic devices 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., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. But may also be a server or the like. The electronic device shown in fig. 3 is only an example and should not be construed as limiting the functionality and scope of use of the embodiments herein.
The present application provides a computer readable storage medium having a computer program stored thereon, which when run on a computer, causes the computer to perform the corresponding method embodiments described above.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the flowcharts of the figures may include a plurality of sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily being sequential, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
The foregoing is only a partial embodiment of the present application, and it should be noted that, for a person skilled in the art, several improvements and modifications can be made without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (9)

1. A dual mode communication fault handling method based on HPLC and HRF, comprising:
if the target ammeter data is not received within the preset time length, acquiring current transmission channel information, wherein the current transmission channel information comprises each node in a current transmission channel;
the receiving and transmitting information of the target ammeter data is determined from the current transmission channel information, and the receiving and transmitting information is used for representing the state and the moment when the ammeter data passes through each node in the current transmission channel, wherein the state is used for representing whether the ammeter data is transmitted to the node or not;
determining a fault node of the target ammeter data in the transmission process according to the receiving and transmitting information, and determining the current transmission channel as an abnormal channel;
detecting whether a standby device exists at the fault node;
when standby equipment exists, connecting the standby equipment into the abnormal channel to form an emergency channel, so that the target ammeter data are transmitted through the emergency channel;
When no standby equipment exists, determining an emergency channel from a plurality of idle transmission channels based on the historical transmission rate and the historical abnormality information of each idle transmission channel, so that the target ammeter data is transmitted through the emergency channel;
the determining the receiving and transmitting information of the target ammeter data from the current transmission channel information further comprises the following steps:
determining a transmission state of the target ammeter data according to the receiving and transmitting information, wherein the transmission state comprises the transmission started or not started;
when the transmission state of the target ammeter data is that transmission is started, determining the data type of the target ammeter data, and determining the transmission standard of the target ammeter data according to the corresponding relation between the preset data type and the transmission standard;
detecting whether the target ammeter data is complete or not based on the transmission standard;
when the target ammeter data are complete, writing the target ammeter data into a temporary buffer area for subsequent transmission;
and when the target ammeter data are incomplete, discarding the target ammeter data, and generating a re-acquisition instruction so that the acquisition equipment re-acquires ammeter data.
2. The method for handling faults in dual mode communication based on HPLC and HRF according to claim 1, wherein the step of connecting the standby device into the abnormal channel constitutes an emergency channel further comprises:
determining the corresponding equipment at the fault node as a master equipment and determining the standby equipment as a slave equipment;
the method comprises the steps that a communication record of the slave equipment is obtained, wherein the communication record is generated when the master equipment is communicated with the slave equipment, and is used for representing that the running state of the slave equipment is normal running or abnormal running;
when the running state of the slave device is normal running, connecting the standby device into the abnormal channel;
wherein, the connecting the standby equipment into the abnormal channel forms an emergency channel, and then the method further comprises the following steps:
after the fault elimination of the corresponding master equipment at the fault node is detected, the working frequencies of the master equipment and the slave equipment are respectively determined according to the quantity of data to be transmitted;
and controlling the master device and the slave device to access the transmission channel according to the working frequencies corresponding to the master device and the slave device respectively.
3. The method for handling faults in dual mode communication based on HPLC and HRF of claim 2 further comprising:
when the fault node is a communication node, the master device is an HPLC module, and the slave device is an HRF module.
4. The method for processing a dual mode communication failure based on HPLC and HRF according to claim 1, wherein determining an emergency channel from a plurality of idle transmission channels based on the historical transmission rate and the historical anomaly information of each idle transmission channel further comprises:
according to the work log, determining an idle transmission channel from a plurality of transmission channels;
wherein, based on the historical transmission rate and the historical abnormal information of each idle transmission channel, determining the emergency channel from a plurality of idle transmission channels comprises:
when a plurality of idle transmission channels exist, acquiring historical transmission rate and historical abnormal information of each idle transmission channel, wherein the historical transmission rate is used for representing the rate of the historical data transmission process by using the idle transmission channels, and the historical abnormal information is used for representing the times and time of faults in the data transmission process by using the idle transmission channels;
Determining the utilization priority of each idle transmission channel according to the historical transmission rate and the historical abnormal information of each idle transmission channel;
and determining the idle transmission channel with the highest utilization priority as an emergency channel.
5. The method for processing a dual mode communication failure based on HPLC and HRF according to claim 4, wherein determining the utilization priority of each idle transmission channel based on the historical transmission rate and the historical anomaly information of each idle transmission channel comprises:
determining the transmission rate grade of each idle transmission channel according to the historical transmission rate of each idle transmission channel, wherein the transmission rate grade and the transmission rate are in a proportional relation;
according to the historical abnormal information of each idle transmission channel, determining an abnormal frequent period, wherein the abnormal frequent period is used for representing the period or moment of occurrence of the abnormality for a plurality of times;
determining the transmission time of the target ammeter data according to the receiving and transmitting information of the target ammeter data;
comparing the transmission time of the target ammeter data with the abnormal frequent period of each idle transmission channel, judging whether the transmission time is in the abnormal frequent period or not, and discarding the idle transmission channels with the transmission time in the abnormal frequent period;
When the transmission time is out of the abnormal frequent period, determining the abnormal grade of each idle transmission channel according to the time difference value of the abnormal frequent period corresponding to each idle transmission channel at the transmission time of the target ammeter data, wherein the abnormal grade and the abnormal probability are in a direct proportion relation;
and carrying out summation calculation according to the weights corresponding to the transmission rate grade and the abnormal grade, and determining the utilization priority of each idle transmission channel according to the calculation result.
6. The method for handling faults in dual mode HPLC and HRF based communications of claim 5 further comprising:
when the ammeter data to be transmitted corresponding to the same ammeter comprises a plurality of groups of sub-data and the data types of the plurality of groups of sub-data are different, dividing the ammeter data to be transmitted of the plurality of ammeter according to the data types and the ammeter numbers to obtain a plurality of sub-data groups, wherein the data types contained in the different sub-data groups are different;
determining transmission grades corresponding to the plurality of sub-data sets according to the data type corresponding to each sub-data set;
determining an idle transmission channel corresponding to each sub-data group according to the transmission grade corresponding to each sub-data group and the utilization priority of the idle transmission channel;
And transmitting the electric meter number corresponding to each sub data in the divided sub data group by a corresponding idle transmission channel.
7. The method for handling faults in dual mode communication based on HPLC and HRF of claim 1, further comprising:
when the quantity to be transmitted of the ammeter data to be transmitted exceeds a preset threshold value, determining the quantity of required transmission channels according to the quantity to be transmitted;
acquiring the number of idle transmission channels, comparing the number of required transmission channels with the number of idle transmission channels, and executing a circulation step when the number of idle transmission channels is lower than the number of required transmission channels until a preset condition is met, wherein the circulation is stopped:
the circulation steps comprise: comparing the transmission grades of the electric meter data being transmitted in all the non-idle transmission channels with the transmission grades of the electric meter data to be transmitted respectively, when the transmission grade corresponding to the electric meter data being transmitted is lower than the transmission grade corresponding to any electric meter data to be transmitted, storing the electric meter data being transmitted into a temporary buffer area so that the corresponding transmission channel is idle, transmitting the electric meter data to be transmitted, updating the quantity to be transmitted of the electric meter data to be transmitted, and returning to execute the step of comparing the transmission grades of the electric meter data being transmitted in all the non-idle transmission channels with the transmission grades of the electric meter data to be transmitted respectively, wherein the transmission grade is obtained based on the preset data type and the transmission grade, the transmission grade is used for representing the processing emergency degree of the electric meter data, and the higher the transmission grade is, the higher the processing emergency degree is;
The preset conditions comprise:
and the quantity to be transmitted of the ammeter data to be transmitted is zero.
8. An electronic device, comprising:
at least one processor;
a memory;
at least one application, wherein the at least one application is stored in memory and configured to be executed by at least one processor, the at least one application configured to: performing a dual mode HPLC and HRF based communication fault handling method as claimed in any one of claims 1-7.
9. A computer-readable storage medium, comprising: a computer program stored which can be loaded by a processor and which performs a method of handling HPLC and HRF based dual mode communication faults as claimed in any of claims 1 to 7.
CN202310195688.2A 2023-03-03 2023-03-03 HPLC (high Performance liquid chromatography) and HRF (high performance liquid chromatography) based dual-mode communication fault processing method and device Active CN115883340B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310195688.2A CN115883340B (en) 2023-03-03 2023-03-03 HPLC (high Performance liquid chromatography) and HRF (high performance liquid chromatography) based dual-mode communication fault processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310195688.2A CN115883340B (en) 2023-03-03 2023-03-03 HPLC (high Performance liquid chromatography) and HRF (high performance liquid chromatography) based dual-mode communication fault processing method and device

Publications (2)

Publication Number Publication Date
CN115883340A CN115883340A (en) 2023-03-31
CN115883340B true CN115883340B (en) 2023-05-30

Family

ID=85761874

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310195688.2A Active CN115883340B (en) 2023-03-03 2023-03-03 HPLC (high Performance liquid chromatography) and HRF (high performance liquid chromatography) based dual-mode communication fault processing method and device

Country Status (1)

Country Link
CN (1) CN115883340B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116847224B (en) * 2023-09-04 2023-11-21 北京三圣凯瑞科技有限公司 Ammeter data transmission method, system, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104701989A (en) * 2015-03-20 2015-06-10 国家电网公司 Electric network and communication network heterogeneous dual-network coupling modeling method under background of intelligent power grid
CN111601317A (en) * 2020-04-27 2020-08-28 国网河北省电力有限公司电力科学研究院 Networking method for HPLC and HRF heterogeneous network
WO2021017364A1 (en) * 2019-07-26 2021-02-04 京信通信系统(中国)有限公司 Network failure diagnosis method and apparatus, network device, and storage medium
CN115188176A (en) * 2022-05-19 2022-10-14 安徽南瑞中天电力电子有限公司 Intelligent electric meter and concentrator converged communication method based on dual-mode communication

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104701989A (en) * 2015-03-20 2015-06-10 国家电网公司 Electric network and communication network heterogeneous dual-network coupling modeling method under background of intelligent power grid
WO2021017364A1 (en) * 2019-07-26 2021-02-04 京信通信系统(中国)有限公司 Network failure diagnosis method and apparatus, network device, and storage medium
CN111601317A (en) * 2020-04-27 2020-08-28 国网河北省电力有限公司电力科学研究院 Networking method for HPLC and HRF heterogeneous network
CN115188176A (en) * 2022-05-19 2022-10-14 安徽南瑞中天电力电子有限公司 Intelligent electric meter and concentrator converged communication method based on dual-mode communication

Also Published As

Publication number Publication date
CN115883340A (en) 2023-03-31

Similar Documents

Publication Publication Date Title
CN110213068B (en) Message middleware monitoring method and related equipment
CN115883340B (en) HPLC (high Performance liquid chromatography) and HRF (high performance liquid chromatography) based dual-mode communication fault processing method and device
CN109460339B (en) Log streaming computing system
CN103298013B (en) A kind of method and device carrying out business recovery
CN110806960B (en) Information processing method and device and terminal equipment
CN104933114A (en) Mass log management cloud platform
CN111181800B (en) Test data processing method and device, electronic equipment and storage medium
CN103441861A (en) Method and device for generating data records
CN105204968A (en) Method and device for detecting fault memory
CN114817860B (en) Data statistical method and device, solid state disk and medium
CN109144852A (en) Scan method, device, computer equipment and the storage medium of static code
CN114422412A (en) Equipment detection method and device and communication equipment
CN102684895B (en) Standby server and system and method for restoring registration of client side in master server
CN109582398A (en) A kind of condition processing method, device and electronic equipment
CN104780123A (en) Network packet receiving and sending processing device and design method thereof
CN104158843A (en) Storage unit invalidation detecting method and device for distributed file storage system
JP2009025971A (en) Information processor and log data collection system
CN115811483A (en) Network state monitoring method and device, electronic equipment and storage medium
CN101634939A (en) Fast addressing device and method thereof
CN210804421U (en) Server system
CN103945422A (en) Method and equipment for controlling work order
CN110795261A (en) Virtual disk fault detection method and device
CN112988243B (en) Equipment switching method and device and computing equipment
CN108763028A (en) A kind of computer hardware safety detecting system and method
CN105912429A (en) Data storing method and device for managing data client

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