A control method and device for a multi-SIM, multi-mode communication system of a power acquisition terminal
By using a multi-card, multi-mode communication system control method to dynamically adjust data packet allocation and card switching, the problem of data loss in power acquisition terminals when the signal is poor is solved, resulting in more stable data transmission and lower communication costs.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-18
- Publication Date
- 2026-03-13
AI Technical Summary
Existing power data acquisition terminals are prone to short-term offline when the signal is poor, resulting in data loss. Furthermore, the existing single-card single-mode public network communication method may still cause data loss during switching, making it impossible to effectively utilize the backup card channel and affecting real-time data upload.
The system employs a multi-SIM multi-mode communication system control method. By setting a primary card and a backup card, multiple SIM cards send heartbeat signals separately. The system dynamically adjusts data packet allocation and card switching based on the time difference of the heartbeat signals and the number of intermediate routing nodes to ensure the stability and integrity of data transmission.
It improves the online stability and data transmission capability of power acquisition terminals, ensures data integrity and real-time performance, reduces data loss, and lowers communication costs.
Smart Images

Figure CN115942411B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the technical field of power data acquisition, and more specifically, to a control method and device for a multi-SIM multi-mode communication system of a power acquisition terminal. Background Technology
[0002] With the continuous development of new power systems, the real-time requirements for power energy acquisition are constantly increasing. Coupled with the application of new equipment such as hplc+hrf dual-mode modules and energy controllers, the requirements for real-time power data acquisition and uploading are becoming increasingly stringent, as are the requirements for stable online operation of acquisition terminals. However, in practical applications, due to power limitations of the terminals, the terminal communication system cannot perform high-power signal searches to ensure public network communication signals like a mobile phone when encountering poor signal conditions. This often results in large-scale data loss due to short-term offline status of the acquisition terminal caused by signal problems. When data is lost, due to the single-SIM mode, there are insufficient channel resources to retransmit the lost data after reconnecting to the master station to ensure the normal execution of the acquisition task. Retransmitting the lost data will affect the uploading of existing data packets. Therefore, the existing single-SIM single-mode public network communication method of acquisition terminals and the processing method of acquired data are prone to data loss due to short-term offline status of the terminal.
[0003] In addition, for public network communication between existing data acquisition terminals and the main station, the general mode is that when there is no reply to the sent data packet, the terminal sends three identical data packets after a short delay. If there is no reply to any of them, no processing is performed, resulting in the loss of collected data. If a reply is received, it is assumed that all data has been sent. In actual use, partial or complete data packet loss is frequently encountered.
[0004] Prior art document 1 discloses a multi-channel switching method, apparatus, and storage medium for a wireless communication terminal. The wireless communication terminal includes a wireless communication module with multiple SIM cards. The method includes: sending heartbeat data packets to a master station server and / or a master station boundary gateway based on the network channel of the current SIM card, wherein the wireless communication module is communicatively connected to the master station server through the network channel and the master station boundary gateway; receiving response data packets sent by the master station server and / or the master station boundary gateway in response to the heartbeat data packets; determining whether the response data packets meet preset communication conditions; and switching the current SIM card to another SIM card if the preset communication conditions are not met. This method ensures the service continuity and stability of the wireless communication terminal, improves the access reliability of the Industrial Internet of Things, and reduces access latency. However, prior art document 1 has the following drawbacks: the master / backup card switching based on preset thresholds still exists, and data loss may still occur during switching according to existing equipment modes. Furthermore, there is still a clear distinction between the master and backup cards, and the backup card continues to communicate even when it cannot better utilize the new channel created by the backup card. Summary of the Invention
[0005] To address the shortcomings of existing technologies, this invention provides a control method for a multi-SIM multi-mode communication system for power acquisition terminals, which can improve the online stability of power acquisition terminals.
[0006] The present invention adopts the following technical solution.
[0007] A control method for a multi-SIM, multi-mode communication system of a power acquisition terminal includes the following steps:
[0008] Step 1: The acquisition terminal sends the acquired data to the communication storage unit and sets the communication cards in the communication card unit as card A, card B, card C, and card D respectively, with card A being the primary card and the other cards being backup cards.
[0009] Step 2: The communication control unit distributes the data in the communication storage unit to each communication card, and distributes the power information collected by the acquisition terminal to each communication card;
[0010] Step 3: Set the interval period for each communication card to send heartbeat signals to the main station, and switch between cards A, B, C, and D according to the round-trip time of the heartbeat signals of each communication card.
[0011] Step 4: Determine if a disconnection has occurred. If a disconnection has occurred, replace the original A card with the original B card as the primary card, and allocate the data packets of the original A card to other communication cards according to the specified ratio.
[0012] Step 5: When the main station system detects that the terminal has gone offline, it sends a switch card command to card B, card C, and card D in sequence. If a card responds normally, the system records the change and switches it to the main card.
[0013] Preferably, in step 1, the acquisition terminal sends the acquired data to the communication storage unit, and each communication card in the communication card unit sends a heartbeat request to the master station. After receiving the reply frame from the master station, the time difference between the sending time and the reply time of the heartbeat request of each communication card and the number of intermediate routing nodes are calculated respectively. Based on the time difference and the number of nodes, the communication cards are set as card A, card B, card C and card D respectively, with card A being the master card and the other cards being backup cards.
[0014] The communication card is a SIM card. The terminal communication module uses multiple independent SIM cards, with a total of 4 communication cards used, and each communication card uses China Mobile, China Unicom, China Telecom or China Broadcasting Network respectively.
[0015] Preferably, in step 1, the communication cards are sorted from shortest to longest according to the time difference between the sending time and the reply time of the heartbeat request, and the communication card with the shortest time difference is designated as card A, and the remaining communication cards are designated as cards B, C and D in sequence; if the time difference between the sending time and the reply time of the heartbeat request of the communication cards is the same, the number of intermediate routing nodes is used as the second judgment criterion, and the communication card with fewer nodes is selected as card A, and so on.
[0016] Preferably, in step 2, the communication control unit sends the data in the communication storage unit to the communication chip, and then the controller performs packet transmission according to the differences in communication performance of each card, and allocates the power information collected by the acquisition terminal to each communication card according to the time difference between the heartbeat request sent and the reply of each communication card;
[0017] The number of data packets allocated also includes:
[0018] The data packet quantity is allocated in the inverse ratio of t1:t2:t3:t4, and the data packet quantity n1:n2:n3:n4 satisfies:
[0019]
[0020] Where t1, t2, t3, and t4 are the time differences between the heartbeat sending and replying of cards A, B, C, and D, respectively; n1, n2, n3, and n4 are the power information allocated to cards A, B, C, and D, respectively.
[0021] Preferably, in step 3, setting the interval for each communication card to send heartbeat signals to the master station further includes:
[0022] Card A performs online verification at a heartbeat frequency of once every 5 minutes, sending a heartbeat signal to the main station every 5 minutes and confirming whether there is a response. Card B, on the other hand, performs online verification at a heartbeat frequency of once every 10 minutes, adding 5 minutes to the time of Card A.
[0023] Preferably, in step 4, if the master station does not respond within 60 seconds of sending a signal from the communication card, it is determined that a disconnection has occurred. When a disconnection occurs, that is, after the master station does not respond within 60 seconds, the original B card is switched to receive the master station's command, and the original B card is used as the master A card. The other cards are promoted to the current position in turn to replace the original cards, and the original A card becomes the new D card.
[0024] Preferably, step 4, retransmitting the data before and after the breakpoint, further includes:
[0025] When the original A card goes offline, the original B card becomes the new A card, and the main station is notified to replace the card; if none of the cards can connect to the main station, all cards will re-login to the operator's base station, the breakpoint data packets will be saved to the flash memory of the data acquisition terminal, and the data acquisition terminal will be restarted.
[0026] Once the signal is restored, that is, after each card completes the re-login to the base station, the new A card continues to ensure communication function, while B, C, and D cards are used to send supplementary data to the main station, that is, all data collected in the adjacent time period of the previously lost data packets, to ensure data integrity.
[0027] Once the supplementary data has been sent, the power information is redistributed according to the ratio of the time difference between the heartbeat signal transmission and response of the new A, B, C, and D cards.
[0028] Preferably, in step 5, the monitoring of terminal disconnection by the master station system side further includes: when the master card fails to send a heartbeat signal for two consecutive cycles or the master station determines that the power information data packet is incomplete, it indicates that the terminal has disconnected.
[0029] Preferably, in step 5, when the main station system detects that the terminal has gone offline, it sends a command to switch the B card to the primary card. If the B card responds normally, the system changes the primary and backup card records. If the B card does not respond, it sends commands to the C card and the D card in sequence, and so on.
[0030] The present invention also provides a control device for a multi-card, multi-mode communication system of a power acquisition terminal, comprising: an acquisition terminal, a communication storage unit, a communication control unit, a communication card unit, and a master station;
[0031] The data acquisition terminal is connected to the communication unit storage unit. The data acquisition terminal is responsible for acquiring power data and storing the acquired power data in the communication storage unit.
[0032] The number of communication cards in the communication card unit is set according to actual needs. Each communication card uses an independent SIM card from a different operator to achieve GSM / CDMA multi-mode execution. Each communication card is connected to the master station and can send heartbeat frames to the master station and receive heartbeat signals returned by the master station.
[0033] The communication control unit is used to select one of the communication cards in the communication card unit, set one of the communication cards as the master card to receive control commands from the master station, and use the other cards as backup cards.
[0034] The communication control unit is connected to the communication storage unit and can send the power data in the communication storage unit in data packets to each card for transmission. Only card A can receive control command data issued by the main station of the data acquisition system.
[0035] The present invention also provides a terminal, including a processor and a storage medium;
[0036] The storage medium is used to store instructions;
[0037] The processor is used to operate according to the instructions to execute the steps of the control method for the multi-SIM multi-mode communication system of the power acquisition terminal.
[0038] The present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the control method for the multi-card multi-mode communication system of the power acquisition terminal.
[0039] The beneficial effects of this invention are as follows: Compared with the prior art, this invention adopts a multi-SIM, multi-mode simultaneous online and standby mode at the communication end. It can install up to four existing operators (China Mobile, China Unicom, China Telecom, and China Broadcasting Network) in one module, and at least two can be installed depending on the local signal strength. At the same time, it processes terminal data transmission through multiple channels and dynamically adjusts the multi-SIM standby strategy to make it more suitable for the promoted IoT SIM card traffic pool mode. This improves the online stability of the terminal and enhances the data transmission capability of the terminal without increasing communication costs.
[0040] This invention employs a multi-card synchronous operation mode. By using multiple cards online simultaneously, it utilizes the communication heartbeat time difference of multiple cards to determine communication performance and send data packets separately. The difference in communication performance is used to allocate and send business data packets. At the same time, critical data is backed up and sent through multiple cards. Furthermore, two or more cards can be selected according to specific speed and stability requirements to achieve faster and more stable data transmission. Attached Figure Description
[0041] Figure 1 This is a schematic diagram of the overall process of the control method for the multi-card multi-mode communication system used in the power acquisition terminal in this invention;
[0042] Figure 2 This is a schematic diagram of the structure of the control device for the multi-card, multi-mode communication system used in the power acquisition terminal of this invention. Detailed Implementation
[0043] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of this invention. The embodiments described in this application are merely some embodiments of this invention, and not all embodiments. Based on the spirit of this invention, other embodiments obtained by those skilled in the art without creative effort are all within the protection scope of this invention.
[0044] like Figure 1As shown, this invention provides a control method for a multi-SIM multi-mode communication system for power acquisition terminals, which specifically includes the following steps:
[0045] 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. After receiving the reply frame from the master station, the time difference between the sending and replying of the heartbeat request of each communication card and the number of intermediate routing nodes are calculated. Based on the time difference and the number of nodes, the communication cards are set as card A, card B, card C and card D respectively, with card A as the master card and the other cards as backup cards.
[0046] Due to the different communication frequency bands used by various telecommunications operators, such as the differences in communication frequencies used by China Mobile, China Unicom, and China Telecom, the connection stability and communication efficiency will vary under different weather conditions. At the same time, due to the differences in the density of base stations built by different operators and the number of users at the same base station, the terminal signal performance strength varies greatly at different locations and at different times. In this invention, the communication card is a SIM card. Multiple independent SIM cards are used in the terminal communication module. The number of communication cards used is at least two, but no more than the total number of all available network operators. It can be understood that if two communication cards are used, they need to be designated as card A and card B respectively. If three communication cards are used, they need to be designated as card A, card B, and card C respectively. That is, the number of communication cards is adjusted according to the actual number of communication cards.
[0047] Currently, there are four network operators: China Mobile, China Unicom, China Telecom, and China Broadcasting Network. The number of communication cards can be increased as the number of network operators increases, such as when the 230MHz power grid is available. In the multi-card mode of this invention, China Mobile, China Unicom, China Telecom, or China Broadcasting Network are used respectively. By using multiple independent SIM cards with different wireless frequency bands, a "multi-mode multi-standby" mode can be executed in multiple available frequency bands and device modes, and all cards remain online to ensure the online stability of the terminal.
[0048] Furthermore, the communication cards are sorted from shortest to longest based on the time difference between the sending and replying times of their heartbeat requests. The communication card with the shortest time difference is designated as card A, and the remaining communication cards are designated as cards B, C, and D in sequence. If the time difference between the sending and replying times of the communication cards' heartbeat requests is the same, the number of intermediate routing nodes is used as the second criterion, and the communication card with fewer nodes is selected as card A, and so on.
[0049] Furthermore, card A is the primary card, and the other cards are backup cards. The primary card can receive control commands sent by the master station through the communication control unit, while the backup cards cannot.
[0050] Step 2: The communication control unit sends the data in the communication storage unit to the communication chip, and then the controller divides the data into packets according to the differences in communication performance of each card, and allocates the power information collected by the acquisition terminal according to the time difference between the heartbeat request sending and replying of each communication card.
[0051] Among them, the power information collected by the acquisition terminal includes voltage, current and power, etc., and the number of data packets stored in the communication storage unit according to the task and communication protocol.
[0052] Specifically, power information is allocated inversely proportional to the time difference between the sending and replying of heartbeat requests from each communication card. The time difference between the sending and replying of heartbeat requests from each communication card and the allocated power information satisfy the following relationship:
[0053]
[0054] Where t1, t2, t3, and t4 are the time differences between the heartbeat sending and replying of cards A, B, C, and D, respectively; n1, n2, n3, and n4 are the power information allocated to cards A, B, C, and D, respectively.
[0055] Step 3: Set the interval period for each communication card to send heartbeat signals to the main station, and switch between cards A, B, C, and D according to the round-trip time of the heartbeat signals of each communication card.
[0056] Specifically, setting the interval for each communication card to send heartbeat signals to the master station also includes:
[0057] Card A acts as the primary card, performing the main communication functions of the current terminal and performing online confirmation at a heartbeat frequency of once every 5 minutes. Card A sends a heartbeat signal to the main station every 5 minutes to confirm whether there is a response. Card B then adds 5 minutes to the time of Card A, performing online confirmation at a heartbeat frequency of once every 10 minutes. That is, Card B sends a heartbeat signal to the main station every 10 minutes to confirm whether there is a response. Each subsequent card adds 5 minutes to the time of the previous card to confirm online status.
[0058] By extending the interval between heartbeat frames sent from the backup card to the main station, bandwidth can be saved.
[0059] Furthermore, based on the duration of heartbeat signal transmission and return for each communication card, cards A, B, C, and D are switched. The round-trip duration of heartbeat signals for each communication card is counted and compared with the round-trip duration of the most recent heartbeat signal for card A. When the round-trip duration of heartbeat signals for a communication card is less than the round-trip duration of heartbeat frames for card A, the original cards A, B, C, and D are switched. That is, the heartbeat signal transmission and return durations of each communication card are sorted in ascending order, and each communication card is reassigned as card A, card B, card C, and card D in ascending order of duration, always using the communication card with the shortest heartbeat signal transmission and return duration as card A.
[0060] Step 4: Determine if a disconnection has occurred. If a disconnection has occurred, replace the original card A with the original card B as the primary card, and promote the other cards to take the place of the original cards in turn. Set the proportion of data packets of the original card A to be distributed to the other communication cards.
[0061] If the master station receives no response within 60 seconds of receiving a signal from the communication card, it is considered a disconnection. When a disconnection occurs (i.e., after 60 seconds of no response from the master station), the system switches to the original B card to receive master station commands, and the original B card becomes the master A card. The other cards are then promoted to their current positions to replace the original cards, and the original A card becomes the new D card. Data packets from the original A card are then processed by the other available communication cards according to... The proportions are allocated, and t2, t3, and t4 are the time differences between heartbeat sending and replying from cards B, C, and D to the main station, respectively, and the data before and after the breakpoint are resent;
[0062] Specifically, resending data before and after the breakpoint also includes:
[0063] When the original A card goes offline, the original B card becomes the new A card, and the main station is notified to replace the card; if none of the cards can connect to the main station, all cards will re-login to the operator's base station, the breakpoint data packets will be saved to the flash memory of the data acquisition terminal, and the data acquisition terminal will be restarted.
[0064] Once the signal is restored, i.e. after each card has completed re-login to the base station, the new A card continues to ensure communication function, while B, C, and D cards are used to send supplementary data to the main station, i.e. all data collected in the adjacent time period of the previously lost data packets, to ensure data integrity.
[0065] After the supplementary data is sent, each card will re-accelerate according to... The new power information is allocated proportionally. Here, n1, n2, n3, and n4 are the newly allocated power information for cards A, B, C, and D, respectively, and t1, t2, t3, and t4 are the time differences between the sending and receiving of the new heartbeat signals for cards A, B, C, and D.
[0066] Step 5: When the main station system detects that the terminal has gone offline, it sends a card switching command to card B, card C, and card D in sequence. If a card responds normally, the system records the changes and switches the card with the fastest response time (i.e., the shortest command message time) to card A. Other cards are arranged according to the response time of the card switching command.
[0067] Specifically, the main station system can also detect terminal disconnection when: the main card fails to send a heartbeat signal for two consecutive cycles or the main station determines that the power information data packet is incomplete, such as having problems with the combined content.
[0068] In this invention, since the system login uses IP information to locate the terminal, after the terminal sends information for the first time in step 1, the system binds multiple cards and terminal assets. When one of the multiple cards sends a heartbeat at a frequency of 5 minutes, it is defaulted to card A. The others are designated as cards B, C, and D according to the sending time interval. Card A is defaulted to performing general task distribution functions and actively reporting data from the combination data packets of cards A, B, C, and D. Lost data is retransmitted from cards B, C, and D.
[0069] When the main station system detects that a terminal has gone offline, it sends a command to switch the B card to the primary card. If the B card responds normally, the system changes the primary and backup card records. If the B card does not respond, it sends commands to the C card, D card, and so on.
[0070] like Figure 2 As shown, the present invention also provides a multi-card multi-mode communication device for a power acquisition terminal. The above control method can be implemented based on this device. Specifically, the device includes: an acquisition terminal, a communication storage unit, a communication control unit, a communication card unit, and a master station.
[0071] The data acquisition terminal is connected to the communication unit storage unit. The data acquisition terminal is responsible for acquiring power data and storing the acquired power data in the communication storage unit.
[0072] The number of communication cards in the communication card unit can be set according to actual needs. In this invention, four communication cards are preferably set, namely communication card A, communication card B, communication card C, and communication card D. Each communication card uses an independent SIM card from a different operator to achieve GSM / CDMA multi-mode execution. For example, SIM cards from operators such as China Mobile, China Unicom, China Telecom, and China Broadcasting Network can be used. Each communication card is connected to the main station and can send heartbeat frames to the main station and receive heartbeat signals returned by the main station.
[0073] The communication control unit is used to select one of the communication cards in the communication card unit, set one of the communication cards as the master card to receive control commands from the master station, and use the other cards as backup cards.
[0074] The communication control unit is connected to the communication storage unit and can send the power data in the communication storage unit in data packets to each card for transmission. Only card A can receive the control command data sent by the main station of the data acquisition system. Card B receives and verifies the control command sent by the data acquisition system. After the data of cards A and B are verified to be correct, the terminal executes the control task. At this time, cards C and D are in standby mode.
[0075] The beneficial effects of this invention are that, compared with the prior art, this invention adopts a multi-card synchronous operation mode. By using the multi-card online method, the communication performance is judged by the heartbeat time difference of multi-card communication and data packets are sent separately. The difference in communication performance is used to allocate and send business data packets. At the same time, critical data is backed up and sent through multiple cards. Furthermore, two or more cards can be selected according to specific speed and stability requirements to achieve faster and more stable data transmission.
[0076] This disclosure can be a system, method, and / or computer program product. A computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of this disclosure.
[0077] Computer-readable storage media can be tangible devices capable of holding and storing instructions for use by an instruction execution device. Computer-readable storage media can be, for example—but not limited to—electrical storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital multifunction disc (DVD), memory sticks, floppy disks, mechanical encoding devices, such as punch cards or recessed protrusions storing instructions thereon, and any suitable combination of the foregoing. The computer-readable storage media used herein are not to be construed as transient signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., light pulses through fiber optic cables), or electrical signals transmitted through wires.
[0078] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.
[0079] Computer program instructions used to perform the operations of this disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, status setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuitry, such as programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), is personalized by utilizing the status information of the computer-readable program instructions to implement various aspects of this disclosure.
[0080] Various aspects of this 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 this disclosure. It should 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.
[0081] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processor of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner; thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.
[0082] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.
[0083] The flowcharts and block diagrams in the accompanying drawings 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 a flowchart or block diagram may represent a module, segment, or portion of an instruction containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0084] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the specific implementation of the present invention. Any modifications or equivalent substitutions that do not depart from the spirit and scope of the present invention should be covered within the protection scope of the claims of the present invention.
Claims
1. A control method for a multi-SIM, multi-mode communication system of a power acquisition terminal, characterized in that, Includes the following steps: Step 1: The acquisition terminal sends the acquired data to the communication storage unit and sets the communication cards in the communication card unit as card A, card B, card C, and card D respectively, with card A being the primary card and the other cards being backup cards. Step 2: The communication control unit distributes the data in the communication storage unit to each communication card, and distributes the power information collected by the acquisition terminal to each communication card; In step 2, the communication control unit sends the data in the communication storage unit to the communication chip, and then the controller performs packet transmission according to the differences in communication performance of each card, and allocates the power information collected by the acquisition terminal to each communication card according to the time difference between the heartbeat request sent and the reply of each communication card. The number of data packets allocated also includes: The data packet quantity is allocated in the inverse ratio of t1:t2:t3:t4, and the data packet quantity n1:n2:n3:n4 satisfies: in, t 1. t 2. t 3. t 4 represents the time difference between the heartbeat sending and replying of cards A, B, C, and D, respectively; n 1. n 2. n 3. n 4 represents the power information allocated to cards A, B, C, and D respectively; Step 3: Set the interval period for each communication card to send heartbeat signals to the main station, and switch between cards A, B, C, and D according to the round-trip time of the heartbeat signals of each communication card. Step 4: Determine if a disconnection has occurred. If a disconnection has occurred, replace the original A card with the original B card as the primary card, and allocate the data packets of the original A card to other communication cards according to the specified ratio. In step 4, when the original A card goes offline, the original B card becomes the new A card, and the main station is notified to replace the card; if none of the cards can connect to the main station, all cards will re-login to the operator's base station, the breakpoint data packets will be saved to the flash memory of the data acquisition terminal, and the data acquisition terminal will be restarted. Once the signal is restored, i.e. after each card has completed re-login to the base station, the new A card continues to ensure communication function, while B, C, and D cards are used to send supplementary data to the main station. The supplementary data consists of all data collected in the adjacent time period of the breakpoint data packet to ensure data integrity. Once the supplementary data has been sent, the power information is redistributed according to the ratio of the time difference between the heartbeat signal transmission and response of cards A, B, C, and D. Step 5: When the main station system detects that the terminal has gone offline, it sends a switch card command to card B, card C, and card D in sequence. If a card responds normally, the system records the change and switches it to the main card.
2. The control method for a multi-SIM, multi-mode communication system of a power acquisition terminal as described in claim 1, characterized in that, 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. After receiving the reply frame from the master station, the time difference between the sending time and the reply time of the heartbeat request of each communication card and the number of intermediate routing nodes are calculated. Based on the time difference and the number of nodes, the communication cards are set as card A, card B, card C and card D respectively, with card A being the master card and the other cards being backup cards. The communication card is a SIM card. The terminal communication module uses multiple independent SIM cards, with a total of 4 communication cards used, and each communication card uses China Mobile, China Unicom, China Telecom or China Broadcasting Network respectively.
3. The control method for a multi-SIM, multi-mode communication system of a power acquisition terminal as described in claim 2, characterized in that, In step 1, the communication cards are sorted from shortest to longest based on the time difference between the sending and replying times of their heartbeat requests. The communication card with the shortest time difference is designated as card A, and the remaining communication cards are designated as cards B, C, and D in sequence. If the time difference between the sending and replying times of the communication cards' heartbeat requests is the same, the number of intermediate routing nodes is used as the second criterion, and the communication card with fewer nodes is selected as card A, and so on.
4. The control method for a multi-SIM, multi-mode communication system of a power acquisition terminal as described in claim 1, characterized in that, Step 3, setting the interval period for each communication card to send heartbeat signals to the master station, also includes: Card A performs online verification at a heartbeat frequency of once every 5 minutes, sending a heartbeat signal to the main station every 5 minutes and confirming whether there is a response. Card B then performs online verification at a heartbeat frequency of once every 10 minutes, adding 5 minutes to the time interval of Card A, and confirming whether there is a response. Subsequently, each card performs online verification at a frequency 5 minutes longer than the previous card to confirm its online status.
5. The control method for a multi-SIM, multi-mode communication system of a power acquisition terminal as described in claim 1, characterized in that, In step 4, if the master station does not respond within 60 seconds of sending a signal through the communication card, it is determined that a disconnection has occurred. When a disconnection occurs, the original B card is switched to receive the master station's command, and the original B card becomes the master A card. The other cards are promoted to their current positions in turn to replace the original cards, and the original A card becomes the new D card.
6. The control method for a multi-SIM, multi-mode communication system of a power acquisition terminal as described in claim 1, characterized in that, In step 5, the monitoring of terminal disconnection by the master station system also includes: if the master card fails to send a heartbeat signal for two consecutive cycles or the master station determines that the power information data packet is incomplete, it indicates that the terminal has disconnected.
7. The control method for a multi-SIM, multi-mode communication system of a power acquisition terminal as described in claim 1, characterized in that, In step 5, when the main station system detects that the terminal has gone offline, it sends a command to switch the main card to card B. If card B responds normally, the system changes the main and backup card records. If card B does not respond, it sends commands to card C and card D in sequence, and so on.
8. A control device for a multi-SIM multi-mode communication system of a power acquisition terminal, utilizing the control method for a multi-SIM multi-mode communication system of a power acquisition terminal according to any one of claims 1-7, characterized in that, include: Data acquisition terminal, communication storage unit, communication control unit, communication card unit, and master station; The data acquisition terminal is connected to the communication unit storage unit. The data acquisition terminal is responsible for acquiring power data and storing the acquired power data in the communication storage unit. The number of communication cards in the communication card unit is set according to actual needs. Each communication card uses an independent SIM card from a different operator to achieve GSM / CDMA multi-mode execution. Each communication card is connected to 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 to select the master card in the communication card unit, set one of the communication cards as the master card to receive the master station control commands, and use the other cards as backup cards; The communication control unit is connected to the communication storage unit and can send the power data in the communication storage unit in data packets to each card for transmission. Only card A can receive control command data issued by the main station of the data acquisition system.
9. A terminal, comprising a processor and a storage medium; characterized in that: The storage medium is used to store instructions; The processor is configured to operate according to the instructions to perform the steps of the method according to any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the program implements the steps of the method according to any one of claims 1-7.
Citation Information
Patent Citations
Method and apparatus for multi-card sending-based data sending
CN103516749A
Offline transmission method for real-time database
CN107451268A
Multi-channel switching method and device of wireless communication terminal and storage medium
CN113573301A