CN115942411A - Multi-card multi-mode communication system control method and device of power acquisition terminal - Google Patents
Multi-card multi-mode communication system control method and device of power acquisition terminal Download PDFInfo
- Publication number
- CN115942411A CN115942411A CN202211445900.8A CN202211445900A CN115942411A CN 115942411 A CN115942411 A CN 115942411A CN 202211445900 A CN202211445900 A CN 202211445900A CN 115942411 A CN115942411 A CN 115942411A
- Authority
- CN
- China
- Prior art keywords
- card
- communication
- cards
- data
- heartbeat
- 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.)
- Pending
Links
- 238000004891 communication Methods 0.000 title claims abstract description 223
- 238000000034 method Methods 0.000 title claims abstract description 35
- 238000003860 storage Methods 0.000 claims abstract description 42
- 230000005540 biological transmission Effects 0.000 claims abstract description 19
- 230000006870 function Effects 0.000 claims description 12
- 238000012790 confirmation Methods 0.000 claims description 9
- 230000001121 heart beat frequency Effects 0.000 claims description 8
- 238000004590 computer program Methods 0.000 claims description 7
- 230000004044 response Effects 0.000 claims description 7
- 230000008859 change Effects 0.000 claims description 3
- 238000012544 monitoring process Methods 0.000 claims description 3
- 238000003306 harvesting Methods 0.000 claims 3
- 230000001360 synchronised effect Effects 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 11
- 238000012545 processing Methods 0.000 description 8
- 239000000835 fiber Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000001902 propagating effect Effects 0.000 description 2
- RYGMFSIKBFXOCR-UHFFFAOYSA-N Copper Chemical compound [Cu] RYGMFSIKBFXOCR-UHFFFAOYSA-N 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 229910052802 copper Inorganic materials 0.000 description 1
- 239000010949 copper Substances 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001502 supplementing effect Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The invention provides a method and a device for controlling a multi-card multi-mode communication system of a power acquisition terminal, which comprise the following steps: step 1, an acquisition terminal sends acquired data to a communication storage unit, and each communication card is set to be an A card, a B card, a C card and a D card, wherein the A card is a main card, and the rest cards are standby cards; step 2, the communication control unit sends the stored data to a communication chip, the controller performs sub-packet transmission according to the communication performance difference of each card, and power information acquired by an acquisition terminal is distributed to each communication card; step 3, judging whether the disconnection condition occurs, and if the disconnection condition occurs, replacing the original A card with the original B card as a main card; and 5, when the system side monitors the disconnection, sending a card switching command to the standby card to switch the main card. The invention adopts a multi-card synchronous operation mode, judges the communication performance by utilizing the communication heartbeat time difference of the multiple cards, respectively sends data packets, and backups and sends key data through the multiple cards, thereby realizing faster and more stable data transmission.
Description
Technical Field
The invention relates to the technical field of power data acquisition, in particular to a multi-card multi-mode communication system control method and device of a power acquisition terminal.
Background
With the continuous and deep development of novel power systems, the real-time requirement on electric energy collection is continuously improved, and an hplc + hrf dual-mode module is added, so that the application of new equipment such as an energy controller is realized, the real-time collection of electric energy data is realized, the real-time uploading requirement of data is higher and higher, the requirement on the stable online of a collection terminal is higher and higher, but in practical application, due to the requirement of the terminal on power limitation, once the terminal communication system meets a poor signal, the terminal communication system cannot search for a high-power signal to ensure a public network communication signal like a mobile phone, the data loss caused by offline is frequently encountered when the signal problem of the collection terminal is short, when the data is lost, due to a single-card mode, after a master station is connected again, the retransmission of the lost data is not enough channel resources for ensuring the normal execution of a collection task, the retransmission lost data can affect the uploading of the existing data packet, and therefore, the offline data loss is easily caused by the short time of the existing collection terminal single-card single-mode public network communication mode and the processing mode of the collected data.
In addition, for public network communication to a master station, the conventional acquisition terminal generally adopts a mode that when a transmitted data packet is not replied, the terminal transmits three same data packets after a short time delay, and when no data packet is replied, the three same data packets are not processed, so that acquired data is lost, and if the data packet is replied, all data transmission is completed by default, and the condition that part or all data packets are lost is frequently encountered in actual use.
Prior art document 1 discloses a method, an apparatus, and a storage medium for multi-channel switching of a wireless communication terminal, where the wireless communication terminal includes a wireless communication module, the wireless communication module is provided with a plurality of SIM cards, and the method includes: the method comprises the steps that a heartbeat data packet is sent to a main station server and/or a main station boundary gateway based on a network channel of a current SIM card, wherein a wireless communication module is in communication connection with the main station server through the network channel and the main station boundary gateway; receiving a response data packet aiming at the heartbeat data packet sent by the master station server and/or the master station border gateway; judging whether the response data packet meets a preset communication condition or not; and when the preset communication condition is not met, switching the current SIM card to other SIM cards. The method ensures continuous and stable service of the wireless communication terminal, improves the access reliability of the industrial Internet of things and reduces the access time delay. The prior art document 1 has drawbacks including: the main and standby card switching developed according to the preset threshold still exists, data loss still possibly occurs during switching according to the existing equipment mode, meanwhile, the main and standby cards are still clearly distinguished, and the standby card still keeps communication while a new channel manufactured by the standby card cannot be better utilized.
Disclosure of Invention
In order to overcome the defects in the prior art, the invention provides a control method of a multi-card multi-mode communication system for an electric power acquisition terminal, which can improve the online stability of the electric power acquisition terminal.
The invention adopts the following technical scheme.
A control method of a multi-card multi-mode communication system of a power acquisition terminal comprises the following steps:
step 1, an acquisition terminal sends acquired data to a communication storage unit, communication cards in a communication card unit are respectively set as an A card, a B card, a C card and a D card, the A card is a main card, and the rest cards are standby cards;
step 2, the communication control unit distributes the data in the communication storage unit to each communication card and distributes the electric power information acquired by the acquisition terminal to each communication card;
step 3, setting an interval period for each communication card to send heartbeat signals to the master station, and switching the cards A, B, C and D according to the back-and-forth duration of the heartbeat signals of each communication card;
step 4, judging whether the disconnection occurs, if the disconnection occurs, replacing the original A card with the original B card as a main card, and setting the proportion of the data packet of the original A card to be distributed to other communication cards;
and 5, when the master station system side monitors that the terminal is disconnected, sending a card switching command to the B card, the C card and the D card in sequence, and if one card normally responds, carrying out record change on the system side and switching the card into the master card.
Preferably, in step 1, the acquisition terminal sends the acquired data to the communication storage unit, each communication card in the communication card unit sends a heartbeat request to the master station, respectively calculates a time difference and an intermediate routing node number between sending time and reply time of the heartbeat request of each communication card after receiving a reply frame of the master station, and sets the communication cards as a card a, a card B, a card C and a card D according to the time difference and the node number, wherein the card a is a master card and the other cards are standby cards;
the communication card is an SIM card, a plurality of independent SIM cards are adopted in the terminal communication module part, the number of the adopted communication cards is 4, and each communication card respectively uses a mobile, a Unicom, a telecommunication or a broadcasting and television network.
Preferably, in the step 1, the communication cards are preferably sorted from short to long according to the time difference between the sending time and the reply time of the heartbeat request of each communication card, the communication card with the shortest time difference is used as the card a, and the other communication cards are used as the card B, the card C and the card D in sequence; if the time difference between the sending time and the replying time of the heartbeat request of the communication card is the same, the number of the intermediate routing nodes is used as a second judgment standard, the communication card with the small number of the nodes is preferentially selected as the A card, and the like.
Preferably, in the step 2, the communication control unit sends the data in the communication storage unit to the communication chip, the controller performs packet transmission according to the communication performance difference of each card, and distributes the power information acquired by the acquisition terminal to each communication card according to the time difference between the sending and the replying of the heartbeat request of each communication card;
allocating the number of packets further comprises:
t1: t2: t3: t4, and the number of packets n1: n2: n3: n4 satisfies:
wherein t1, t2, t3 and t4 are time differences of sending and replying of the heartbeat of each card A, B, C and D respectively; n1, n2, n3, and n4 are power information to which the cards a, B, C, and D are assigned, respectively.
Preferably, in step 3, setting an interval period for each communication card to send a heartbeat signal to the master station further includes:
the card A carries out online confirmation according to the heartbeat frequency of 1 time every 5 minutes, the card A sends a heartbeat signal to the master station once every 5 minutes and confirms whether a reply exists, the card B increases 5 minutes on the basis of the card A and carries out online confirmation according to the heartbeat frequency of 1 time in 10 minutes, namely, the card B sends a heartbeat signal to the master station every 10 minutes and confirms whether a reply exists, and each subsequent card increases 5 minutes on the basis of the previous card respectively to carry out online confirmation and confirms that the card is online.
Preferably, in the step 4, if the master station does not reply within the communication card sending signal 60s, it is determined that a disconnection condition occurs; when the disconnection occurs, namely after no response reply exists in the main station 60s, the original B card is switched to receive the main station command, the original B card is used as a main A card, other cards sequentially lift the current position to replace the original card, and the original A card is used as a new D card.
Preferably, in step 4, the resending of the data before and after the breakpoint further includes:
when the original A card is disconnected, the original B card is taken as a new A card and reported to the master station for replacing the card; if all the cards cannot be connected with the master station, all the cards perform login operation of the operator base station again, store the breakpoint data packet in a data acquisition terminal flash memory, and restart the data acquisition terminal;
after the signal is recovered, namely after each card finishes logging in the base station again, the new card A continues to ensure the communication function, and the cards B, C and D are used for sending supplementary data to the master station, namely all data acquired in adjacent time periods of the previously lost data packet, so as to ensure the integrity of the data;
and after the supplementary data is sent, distributing the power information according to the new ratio of the time difference between the sending and the replying of the heartbeat signals of the cards A, B, C and D.
Preferably, in the step 5, the monitoring, by the master station system side, that the terminal is disconnected further includes: and when the main card does not send heartbeat signals for 2 continuous periods or the main station judges that the power information data packets are not complete, indicating that the terminal is disconnected.
Preferably, in step 5, when the master station system side monitors that the terminal is disconnected, a command for switching the master card is sent to the B card, if the B card normally responds, the system side changes the record of the master card and the slave card, if the B card does not respond, the master station system side sends commands to the C card and the D card in sequence, and so on.
The invention also provides a multi-card multi-mode communication system control device of the power acquisition terminal, which comprises the following components: the system comprises an acquisition terminal, a communication storage unit, a communication control unit, a communication card unit and a master station;
the acquisition terminal is connected with the communication unit for storage, and is responsible for acquiring power data and storing the acquired power data to the communication storage unit;
the number of the communication cards of the communication card unit is set according to actual needs, each communication card adopts independent SIM cards of different operators to achieve GSM/CDMA execution multi-mode, and each communication card is respectively connected with the master station and can send heartbeat frames to the master station and receive heartbeat signals returned by the master station;
the communication control unit is used for selecting the communication card units, setting one of the communication cards as a main card to receive a main station control command, and using the other cards as standby cards;
the communication control unit is connected with the communication storage unit, and can send the power data sub data packet in the communication storage unit to each card for transmission, and only the A card can receive control command data sent by the main station of the acquisition system.
The invention also provides a terminal, which comprises a processor and a storage medium;
the storage medium is used for storing instructions;
the processor is used for operating according to the instruction to execute the steps of the multi-card multi-mode communication system control method of the power acquisition terminal.
The present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the multi-card multi-mode communication system control method of the power acquisition terminal.
Compared with the prior art, the invention has the advantages that the invention adopts a mode of simultaneously waiting on line by multiple cards and multiple modes at the communication end, at most 2 current 4 operators (mobile, unicom, telecom, radio and television) are installed under one module according to the local signal intensity, and simultaneously, the data transmission of the terminal is processed by multiple channels, the standby strategy of the multiple cards is dynamically adjusted, so that the standby strategy is more suitable for the traffic pool mode of the internet of things card in popularization, the online stability of the terminal is improved under the condition of not increasing the communication cost, and the data transmission capability of the terminal is improved;
the invention adopts a multi-card synchronous operation mode, judges the communication performance by utilizing the multi-card communication heartbeat time difference and respectively transmits the data packets by a multi-card simultaneous online method, performs service data packet distribution and transmission by accounting the difference of the communication performance, simultaneously performs backup transmission on key data by the multi-card, and can select two or more cards according to specific speed and stability requirements so as to achieve faster and more stable data transmission.
Drawings
Fig. 1 is a schematic overall flow chart of a control method of a multi-card multi-mode communication system for a power acquisition terminal according to the present invention;
fig. 2 is a schematic structural diagram of a multi-card multi-mode communication system control device for a power acquisition terminal according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. The embodiments described herein are only some embodiments of the invention, and not all embodiments. All other embodiments obtained by a person skilled in the art without any inventive step based on the spirit of the present invention are within the scope of the present invention.
As shown in fig. 1, the present invention provides a method for controlling a multi-card multi-mode communication system for a power acquisition terminal, which specifically includes the following steps:
step 1, an acquisition terminal sends acquired data to a communication storage unit, each communication card in a communication card unit respectively sends heartbeat requests to a master station, time difference and intermediate routing node number of the heartbeat requests sent and replied by each communication card are respectively calculated after a reply frame of the master station is received, the communication cards are respectively set as an A card, a B card, a C card and a D card according to the time difference and the node number, the A card is a main card, and the rest cards are standby cards;
because the communication frequency bands used by the communication operators are different, such as the difference of mobile, communication and telecommunication use communication frequencies, the connection stability and the communication efficiency of the communication operators are different under different weather environment conditions, and meanwhile, because the difference of the construction density of base stations of the operators and the difference of the number of users of the same base station are larger, the difference of the terminal signal performance strength is larger at different time intervals at different places, the communication cards are SIM cards, a plurality of independent SIM cards are adopted in a terminal communication module part, the number of the adopted communication cards is at least 2, but not more than the total number of all available network operators, and the communication cards are required to be respectively set as an A card and a B card if two communication cards are adopted, and the communication cards are required to be respectively set as an A card, a B card and a C card if three communication cards are adopted, namely, the adjustment is carried out according to the actual number of the communication cards.
The number of current network operators is 4, including mobile, communication, telecommunication, broadcasting and TV, the number of communication cards can be increased according to the increase of the number of network operators, for example, the number can be increased when the electric power 230Mhz is available.
Further, the communication cards are preferably sorted from short to long according to the time difference between the sending time and the reply time of the heartbeat request of each communication card, the communication card with the shortest time difference is used as the card A, and the other communication cards are used as the card B, the card C and the card D in sequence; if the time difference between the sending time and the replying time of the heartbeat request of the communication card is the same, the number of the intermediate routing nodes is used as a second judgment standard, the communication card with the small number of the nodes is preferentially selected as the A card, and the like.
Furthermore, the card A is a main card, the other cards are standby cards, the main card can receive the control command sent by the main station through the communication control unit, and the standby cards cannot.
Step 2, the communication control unit sends the data in the communication storage unit to a communication chip, the controller performs sub-packet transmission according to the communication performance difference of each communication card, and distributes the electric power information acquired by the acquisition terminal according to the time difference of the heartbeat request sending and replying of each communication card;
the electric power information collected by the collecting terminal comprises the number of data packets stored in a communication storage unit, wherein the data packets are formed by combining a communication protocol according to tasks, such as voltage, current and electric quantity;
specifically, the power information is distributed in inverse proportion to the time difference between the sending and the replying of the heartbeat request of each communication card, and the time difference between the sending and the replying of the heartbeat request of each communication card and the distributed power information meet the following conditions:
wherein t1, t2, t3 and t4 are time differences of sending and replying of the heartbeat of each card A, B, C and D respectively; n1, n2, n3, and n4 are power information to which the cards a, B, C, and D are assigned, respectively.
Step 3, setting an interval period for each communication card to send heartbeat signals to the master station, and switching the cards A, B, C and D according to the back-and-forth duration of the heartbeat signals of each communication card;
specifically, the interval period for setting each communication card to send heartbeat signals to the master station further includes:
the card A is used as a main card to execute the main communication function of the current terminal, online confirmation is carried out according to the heartbeat frequency of 1 time every 5 minutes, the card A sends a heartbeat signal to the main station once every 5 minutes and confirms whether a reply exists, the card B increases for 5 minutes on the basis of the card A and carries out online confirmation according to the heartbeat frequency of 1 time in 10 minutes, namely, the card B sends the heartbeat signal to the main station every 10 minutes and confirms whether the reply exists, and each subsequent card increases for 5 minutes on the basis of the previous card to carry out online confirmation and confirms to be online;
the purpose of saving the flow is realized by prolonging the interval time of the standby card for sending the heartbeat frames to the main station.
Further, the cards A, B, C and D are switched according to the sending and returning time length of heartbeat signals of each communication card, the back-and-forth time length of the heartbeat signals of each communication card is counted and compared with the back-and-forth time length of the heartbeat signal of the card A which is the last time, when the back-and-forth time length of the heartbeat signals of the communication cards is smaller than the back-and-forth time length of heartbeat frames of the card A, the cards A, B, C and D are switched, namely the sending and returning time lengths of the heartbeat signals of each communication card are sequenced from small to large, each communication card is sequentially reset into the card A, the card B, the card C and the card D according to the sequence of the back-and-forth time lengths of the communication cards, and the communication card with the smallest sending and returning time length of the heartbeat signals is always used as the card A.
Step 4, judging whether the disconnection condition occurs, if the disconnection condition occurs, replacing the original A card with the original B card, sequentially lifting the positions of other cards to replace the original A card, and setting the proportion of the data packet of the original A card to distribute the data packet to other communication cards;
if the master station does not reply within the communication card sending signal 60s, the master station judges that the disconnection condition occurs; when the disconnection occurs, namely the master station 60s has no response, the original B card is switched to receive the master station command and is used as the main A card,other cards sequentially lift the current position to replace the original card, the original A card is used as a new D card, and the data packet of the original A card is sent by other communicable communication cards according to the communication modeThe proportion of the B, the C and the D is distributed, t2, t3 and t4 are time differences of heartbeat sending and reply of the B, the C and the D cards to the main station respectively, and data before and after the breakpoint are retransmitted;
specifically, the resending of the data before and after the breakpoint further includes:
when the original A card is disconnected, the original B card is taken as a new A card and is reported to the master station for replacing the card; if all the cards cannot be connected with the master station, all the cards perform login operation of the operator base station again, store the breakpoint data packet in a data acquisition terminal flash memory, and restart the data acquisition terminal;
after the signal is recovered, namely after each card finishes logging in the base station again, the new card A continues to ensure the communication function, and the cards B, C and D are used for sending supplementary data to the master station, namely all data collected in the adjacent time period of the previous lost data packet, so as to ensure the data integrity.
When the sending of the supplementary data is finished, the cards are re-arrangedAnd proportionally distributing new power information, wherein n1, n2, n3 and n4 are the newly distributed power information of the cards A, B, C and D respectively, and t1, t2, t3 and t4 are the time difference of sending and replying the heartbeat signals of the new cards A, B, C and D respectively.
And 5, when the master station system side monitors that the terminal is disconnected, sending a card switching command to the B card, the C card and the D card in sequence, if one card normally responds, recording and changing the system side, switching the card with the highest response speed, namely the A card with the shortest command message time, and arranging other cards according to the response time of the card switching command.
Specifically, the master station system side monitoring the terminal disconnection further comprises: and when the main card does not send heartbeat signals for 2 continuous periods or the main station judges that the power information data packets are not complete, if the content has a problem after combination, indicating that the terminal is disconnected.
In the invention, because the system side logs in and carries out terminal positioning by adopting IP information, after the terminal sends information for the first time in the step 1, the system binds a plurality of cards and terminal assets, when one card in the plurality of cards sends heartbeat in 5 minutes, the card is defaulted to be A card, the rest cards are set to be B, C and D cards according to sending time intervals, the A card is defaulted to execute a general task issuing function, data is actively reported to come from a combined data packet of the A, B, C and D cards, and the lost data is transmitted from the B, C and D cards in a supplementing way.
When the master station system side monitors that the terminal is disconnected, a main card switching command is sent to the B card, if the B card normally responds, the system side carries out record change of the main card and the standby card, if the B card does not respond, the main station system side sends commands to the C card and the D card in sequence, and so on.
As shown in fig. 2, the present invention further provides a multi-card multi-mode communication device for a power acquisition terminal, where the control method can be implemented based on the device, and specifically, the device includes: the system comprises an acquisition terminal, a communication storage unit, a communication control unit, a communication card unit and a master station;
the acquisition terminal is in charge of acquiring power data and storing the acquired power data to the communication storage unit;
the number of the communication cards of the communication card unit can be set according to actual needs, and four communication cards are preferably set in the invention, namely, the communication cards comprise an A communication card, a B communication card, a C communication card and a D communication card; each communication card respectively adopts independent SIM cards of different operators to achieve GSM/CDMA execution multi-mode, for example, SIM cards of mobile, unicom, telecom, radio and television operators and the like can be adopted, and each communication card is respectively connected with the main station and can send heartbeat frames to the main station and receive heartbeat signals returned by the main station;
the communication control unit is used for selecting one of the communication card units, setting one of the communication cards as a main card to receive a main station control command, and using the other cards as standby cards;
the communication control unit is connected with the communication storage unit and can send the power data sub data packets in the communication storage unit to each card for transmission, only the card A can receive control command data issued by a master station of the acquisition system, the card B receives control command verification issued by the acquisition system, the terminal executes a control task after the data of the card A and the card B are verified to be correct, and the card C and the card D are in a standby state at the moment.
Compared with the prior art, the method has the advantages that a multi-card synchronous operation mode is adopted, the communication performance is judged by utilizing the multi-card communication heartbeat time difference and data packets are respectively sent through a multi-card simultaneous online method, the business data packets are distributed and sent through the communication performance accounting difference, meanwhile, the key data are sent through the multi-card backup, and two or more cards can be selected according to specific speed and stability requirements, so that faster and more stable data transmission is achieved.
The present disclosure may be systems, methods, and/or computer program products. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied thereon for causing a processor to implement various aspects of the present disclosure.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as a punch card or an in-groove protruding structure with instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device over a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present disclosure may be assembler instructions, instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, the electronic circuitry that can execute the computer-readable program instructions implements aspects of the present disclosure by utilizing the state information of the computer-readable program instructions to personalize the electronic circuitry, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA).
Various aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Finally, it should be noted that the above embodiments are only used for illustrating the technical solutions of the present invention and not for limiting the same, and although the present invention is described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: modifications and equivalents may be made to the embodiments of the invention without departing from the spirit and scope of the invention, which is to be covered by the claims.
Claims (12)
1. A control method of a multi-card multi-mode communication system of a power acquisition terminal is characterized by comprising the following steps:
step 1, an acquisition terminal sends acquired data to a communication storage unit, communication cards in a communication card unit are respectively set as an A card, a B card, a C card and a D card, the A card is a main card, and the rest cards are standby cards;
step 2, the communication control unit distributes the data in the communication storage unit to each communication card and distributes the power information acquired by the acquisition terminal to each communication card;
step 3, setting an interval period for each communication card to send heartbeat signals to the master station, and switching the cards A, B, C and D according to the back-and-forth duration of the heartbeat signals of each communication card;
step 4, judging whether the disconnection occurs, if the disconnection occurs, replacing the original A card with the original B card as a main card, and setting the proportion of the data packet of the original A card to be distributed to other communication cards;
and 5, when the master station system side monitors that the terminal is disconnected, sending a card switching command to the B card, the C card and the D card in sequence, and if one card normally responds, carrying out record change on the system side and switching the card into the master card.
2. The method of claim 1, wherein the power harvesting terminal further comprises a power management unit,
in the step 1, an acquisition terminal sends acquired data to a communication storage unit, each communication card in a communication card unit sends heartbeat requests to a master station, time differences between the sending time and the reply time of the heartbeat requests of each communication card and the number of intermediate routing nodes are calculated after a reply frame of the master station is received, and the communication cards are set as an A card, a B card, a C card and a D card respectively according to the time differences and the number of nodes, wherein the A card is a master card, and the rest cards are standby cards;
the communication card is an SIM card, a plurality of independent SIM cards are adopted in the terminal communication module part, the number of the adopted communication cards is 4, and each communication card respectively uses a mobile, a Unicom, a telecommunication or a broadcasting and television network.
3. The method of claim 2, wherein the power acquisition terminal comprises a multi-card multi-mode communication system,
in the step 1, the communication cards are preferably sorted from short to long according to the time difference between the sending time and the reply time of the heartbeat request of each communication card, the communication card with the shortest time difference is used as a card A, and the other communication cards are used as a card B, a card C and a card D in sequence; if the time difference between the sending time and the replying time of the heartbeat request of the communication card is the same, the number of the intermediate routing nodes is used as a second judgment standard, the communication card with the small number of the nodes is preferentially selected as the A card, and the rest can be done in the same way.
4. The method of claim 1, wherein the power harvesting terminal further comprises a power management unit,
in the step 2, the communication control unit sends the data in the communication storage unit to the communication chip, the controller performs sub-packet transmission according to the communication performance difference of each card, and distributes the electric power information acquired by the acquisition terminal to each communication card according to the time difference of sending and replying the heartbeat request of each communication card;
allocating the number of packets further comprises:
t1: t2: t3: t4, and the number of packets n1: n2: n3: n4 satisfies:
wherein, t1, t2, t3 and t4 are respectively the time difference between the sending and the replying of the heartbeat of each card A, B, C and D; n1, n2, n3, and n4 are power information to which the cards a, B, C, and D are assigned, respectively.
5. The method of claim 1, wherein the power harvesting terminal further comprises a power management unit,
in step 3, setting an interval period for each communication card to send a heartbeat signal to the master station further includes:
the card A carries out on-line confirmation according to the heartbeat frequency of 1 time every 5 minutes, the card A sends a heartbeat signal to the main station once every 5 minutes and confirms whether a reply exists, the card B increases the heartbeat frequency for 5 minutes on the basis of the card A, and carries out on-line confirmation according to the heartbeat frequency of 1 time in 10 minutes, namely, the card B sends the heartbeat signal to the main station every 10 minutes and confirms whether a reply exists, each subsequent card increases the heartbeat frequency for 5 minutes on the basis of the previous card respectively to carry out on-line confirmation and confirms that the card is on line.
6. The method of claim 1, wherein the power acquisition terminal comprises a multi-card multi-mode communication system,
in the step 4, if the master station does not reply within the communication card sending signal 60s, it is determined that the disconnection condition occurs; when the disconnection occurs, namely after no response reply exists in the main station 60s, the original B card is switched to receive the main station command, the original B card is used as a main A card, other cards sequentially lift the current position to replace the original card, and the original A card is used as a new D card.
7. The method of claim 1, wherein the power acquisition terminal comprises a multi-card multi-mode communication system,
in step 4, the resending of the data before and after the breakpoint further includes:
when the original A card is disconnected, the original B card is taken as a new A card and reported to the master station for replacing the card; if all the cards cannot be connected with the master station, all the cards perform login operation of the operator base station again, store the breakpoint data packet in a data acquisition terminal flash memory, and restart the data acquisition terminal;
after the signal is recovered, namely after each card finishes logging in the base station again, the new card A continues to ensure the communication function, and the cards B, C and D are used for sending supplementary data to the master station, namely all data acquired in adjacent time periods of the previously lost data packet, so as to ensure the integrity of the data;
and after the supplementary data is sent, distributing the power information according to the new ratio of the heartbeat signal sending and reply time difference of the cards A, B, C and D.
8. The method of claim 1, wherein the power acquisition terminal comprises a multi-card multi-mode communication system,
in step 5, the monitoring of the terminal disconnection by the master station system side further includes: and when the main card does not send heartbeat signals for 2 continuous periods or the main station judges that the power information data packets are not complete, indicating that the terminal is disconnected.
9. The method of claim 1, wherein the power acquisition terminal comprises a multi-card multi-mode communication system,
in step 5, when the master station system side monitors that the terminal is disconnected, a command for switching the master card is sent to the B card, if the B card normally responds, the system side changes the record of the master card and the slave card, if the B card does not respond, the master station system side sends commands to the C card and the D card in sequence, and so on.
10. A multi-card multi-mode communication system control apparatus of a power collecting terminal using the multi-card multi-mode communication system control method of the power collecting terminal according to any one of claims 1 to 9, comprising: the system comprises an acquisition terminal, a communication storage unit, a communication control unit, a communication card unit and a master station;
the acquisition terminal is in charge of acquiring power data and storing the acquired power data to the communication storage unit;
the number of the communication cards of the communication card unit is set according to actual needs, each communication card adopts independent SIM cards of different operators to achieve GSM/CDMA execution multi-mode, and each communication card is connected with the master station and can send heartbeat frames to the master station and receive heartbeat signals returned by the master station;
the communication control unit is used for selecting one of the communication card units, setting one of the communication cards as a main card to receive a main station control command, and using the other cards as standby cards;
the communication control unit is connected with the communication storage unit and can send the power data sub-data packets in the communication storage unit to each card for transmission, and only the A card can receive control command data sent by the main station of the system.
11. A terminal comprising a processor and a storage medium; the method is characterized in that:
the storage medium is used for storing instructions;
the processor is configured to operate in accordance with the instructions to perform the steps of the method according to any one of claims 1 to 9.
12. Computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211445900.8A CN115942411A (en) | 2022-11-18 | 2022-11-18 | Multi-card multi-mode communication system control method and device of power acquisition terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211445900.8A CN115942411A (en) | 2022-11-18 | 2022-11-18 | Multi-card multi-mode communication system control method and device of power acquisition terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115942411A true CN115942411A (en) | 2023-04-07 |
Family
ID=86651581
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211445900.8A Pending CN115942411A (en) | 2022-11-18 | 2022-11-18 | Multi-card multi-mode communication system control method and device of power acquisition terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115942411A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117880626A (en) * | 2024-03-11 | 2024-04-12 | 珠海创能科世摩电气科技有限公司 | Video monitoring method, device and system for power transmission line and storage medium |
-
2022
- 2022-11-18 CN CN202211445900.8A patent/CN115942411A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117880626A (en) * | 2024-03-11 | 2024-04-12 | 珠海创能科世摩电气科技有限公司 | Video monitoring method, device and system for power transmission line and storage medium |
CN117880626B (en) * | 2024-03-11 | 2024-05-24 | 珠海创能科世摩电气科技有限公司 | Video monitoring method, device and system for power transmission line and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112584520B (en) | Method and system for transmitting and receiving data through tunnel group | |
WO2020239195A1 (en) | Network nodes for joint mec host and upf selection | |
CN103765948B (en) | Select the methods, devices and systems of mobile management entity | |
US10687271B2 (en) | Network accessing method | |
CN113765573A (en) | System and method for connecting 5G core equipment with high-low orbit satellite and dynamically switching | |
CN113572864B (en) | Data processing method, network element equipment and readable storage medium | |
CN109150808A (en) | Communication means, device and system | |
CN115942411A (en) | Multi-card multi-mode communication system control method and device of power acquisition terminal | |
US9591562B2 (en) | Provisioning access point bandwidth based on predetermined events | |
CN111245660A (en) | Network-based equipment upgrading self-adaptive transmission method | |
CN110022580B (en) | Method and device for establishing bearing | |
CN109120657B (en) | Service configuration method and node | |
CN102857574B (en) | Information processing method and apparatus for Internet of Things | |
CN108337692B (en) | Management method, device and computer readable storage medium for communication fault between terminal and management base station | |
CN114928830B (en) | Near field communication method, device, equipment and medium | |
CN108617012B (en) | Method and device for establishing connection | |
CN111436119A (en) | DRX (discontinuous reception) transmission method and related equipment | |
CN112312420B (en) | Method and device for processing and configuring minimization of drive test, terminal and network side equipment | |
CN104581757A (en) | M2M terminal initiative switching method and device in M2M network | |
CN114143903A (en) | Method, device, equipment and medium for configuring network slice PDU session | |
CN103078801B (en) | For the method for network dividing domain, device and switch | |
CN110784365A (en) | Standby device of station control layer and entity device of transformer substation and automatic online method thereof | |
CN112822105A (en) | Path planning method and device and data transmission system | |
CN115883369B (en) | Network slice deployment method, system, device, equipment and readable storage medium | |
CN106332204A (en) | PGW switching method and system |
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 |