CN113573301B - Wireless communication terminal multichannel switching method, device and storage medium - Google Patents

Wireless communication terminal multichannel switching method, device and storage medium Download PDF

Info

Publication number
CN113573301B
CN113573301B CN202111119510.7A CN202111119510A CN113573301B CN 113573301 B CN113573301 B CN 113573301B CN 202111119510 A CN202111119510 A CN 202111119510A CN 113573301 B CN113573301 B CN 113573301B
Authority
CN
China
Prior art keywords
wireless communication
data packet
heartbeat data
sim card
communication terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111119510.7A
Other languages
Chinese (zh)
Other versions
CN113573301A (en
Inventor
耿震磊
王文赫
李延
杜君
袁艳芳
张磊
杨峰
贾强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
State Grid Information and Telecommunication Co Ltd
Beijing Smartchip Microelectronics Technology Co Ltd
Beijing Smartchip Semiconductor Technology Co Ltd
Original Assignee
State Grid Corp of China SGCC
State Grid Information and Telecommunication Co Ltd
Beijing Smartchip Microelectronics Technology Co Ltd
Beijing Smartchip Semiconductor Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Corp of China SGCC, State Grid Information and Telecommunication Co Ltd, Beijing Smartchip Microelectronics Technology Co Ltd, Beijing Smartchip Semiconductor Technology Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN202111119510.7A priority Critical patent/CN113573301B/en
Publication of CN113573301A publication Critical patent/CN113573301A/en
Application granted granted Critical
Publication of CN113573301B publication Critical patent/CN113573301B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • H04W36/0085Hand-off measurements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/34Reselection control
    • H04W36/36Reselection control by user or terminal equipment

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a wireless communication terminal multichannel switching method, a device and a storage medium, wherein the wireless communication terminal comprises a wireless communication module, the wireless communication module is provided with a plurality of SIM cards, and the method comprises the following steps: 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.

Description

Wireless communication terminal multichannel switching method, device and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for multi-channel switching of a wireless communication terminal, and a storage medium.
Background
A SIM (Subscriber identity Module) is a smart card held by a Mobile Subscriber of a GSM (Global System for Mobile Communications) System, and can be used in different Mobile phones, and is also called a Subscriber Identity Module (SIM) card. The SIM card is mainly used for storing subscriber identification data, short message data and telephone numbers, the GSM handset must be equipped with the card for use, and once the SIM card is pulled out from the handset, the handset cannot enjoy various services provided by the network operator except for emergency calls.
At present, similar to a mobile phone terminal adopting dual-network dual-standby, the power internet of things and other industrial internet terminals adopting multiple SIM cards for remote communication rely on the SIM card manually selected by a user to select an operation network, so that the user experience is poor, and the reliability of the selected network cannot be ensured.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art. Therefore, an object of the present invention is to provide a method for switching multiple channels of a wireless communication terminal, so as to improve access reliability of an industrial internet of things and reduce network access delay.
The second objective of the present invention is to provide a multi-channel switching device for a wireless communication terminal.
A third object of the invention is to propose a computer-readable storage medium.
A fourth object of the invention is to propose an electronic device.
In order to achieve the above object, a first embodiment of the present invention provides a multi-channel switching method for a wireless communication terminal, where the method is used for the wireless communication terminal, and the wireless communication terminal includes a wireless communication module, and the wireless communication module is provided with multiple SIM cards, and the method includes: sending a heartbeat data packet to a master station server and/or a master station border gateway based on a network channel of a current SIM card, wherein the wireless communication module is in communication connection with the master station server through the network channel and the master station border gateway; receiving a response data packet aiming at the heartbeat data packet sent by the main station server and/or the main 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.
According to the multi-channel switching method of the wireless communication terminal, the plurality of SIM cards are arranged in the wireless communication module, and when the condition that an end-to-end network is unreliable is detected according to the heartbeat data packet sent by the current SIM card, the current SIM card is switched to other SIM cards, so that the continuity and stability of the service of the wireless communication terminal are ensured, the access reliability of the industrial Internet of things is improved, and the access delay is reduced.
In addition, the multi-channel switching method for the wireless communication terminal according to the above embodiment of the present invention may further have the following additional technical features:
according to an embodiment of the present invention, a master card is provided in the plurality of SIM cards, and a boolean option is provided for the master card, the method further comprising: when the wireless communication terminal is restarted, acquiring a Boolean option; when the Boolean option is set to be 1, the wireless communication terminal adopts the main card to attach to the network; and when the Boolean option is set to be 0, the wireless communication terminal adopts the SIM card before restarting to attach to the network.
According to an embodiment of the present invention, the wireless communication terminal further includes a service module, and when the heartbeat data packet includes a service heartbeat data packet, the service module sends the service heartbeat data packet to the master station server through the wireless communication module based on a network channel of a current SIM card; the service module judges whether the response data packet meets a preset communication condition or not, and triggers the wireless communication module to switch the current SIM card to other SIM cards when the response data packet does not meet the preset communication condition.
According to an embodiment of the present invention, when the heartbeat data packet includes a communication heartbeat data packet, the wireless communication module sends the communication heartbeat data packet to the master station server or the master station border gateway based on a network channel of a current SIM card; and the wireless communication module judges whether the response data packet meets a preset communication condition or not, and switches the current SIM card to other SIM cards when the response data packet does not meet the preset communication condition.
According to an embodiment of the present invention, the determining whether the response packet satisfies a preset communication condition includes: acquiring the sending time of the heartbeat data packet and the returning time of the response data packet; calculating the round trip delay between the sending time and the returning time, and comparing whether the round trip delay is greater than a preset threshold value; and when the round-trip delay is larger than the preset threshold value, judging that the response data packet does not meet the preset communication condition.
According to an embodiment of the present invention, the determining whether the response packet satisfies a preset communication condition includes: detecting whether the response data packet is complete; and when the response data packet is incomplete, judging that the response data packet does not meet the preset communication condition.
According to an embodiment of the invention, the method further comprises: and when the time for sending the heartbeat data packet reaches preset time, if the response data packet is not received, switching the current SIM card to other SIM cards.
According to an embodiment of the present invention, a card slot serial number is set for a card slot corresponding to each SIM card, and the switching the current SIM card to another SIM card includes: acquiring the serial number of the card slot of the current SIM card; determining a target card slot serial number according to the card slot serial number of the current SIM card and a preset switching sequence; and switching the current SIM card to the SIM card corresponding to the target card slot serial number.
In order to achieve the above object, a second embodiment of the present invention provides a multi-channel switching apparatus for a wireless communication terminal, the apparatus is used for a wireless communication terminal, the wireless communication terminal includes a wireless communication module, the wireless communication module is provided with a plurality of SIM cards, and the apparatus includes: the wireless communication module is used for communicating with the master station server through the network channel and the master station boundary gateway; a receiving module, configured to receive a response data packet for the heartbeat data packet, where the response data packet is sent by the master station server and/or the master station border gateway; the detection module is used for judging whether the response data packet meets a preset communication condition or not; and the control module is used for switching the current SIM card to other SIM cards when the preset communication condition is not met, and the control module is arranged in the wireless communication module.
According to an embodiment of the present invention, the wireless communication terminal further includes a service module, and when the heartbeat data packet includes a service heartbeat data packet, the service module sends the service heartbeat data packet to the master station server through the wireless communication module based on a network channel of a current SIM card; wherein the detection module is arranged in the service module.
According to an embodiment of the present invention, when the heartbeat data packet includes a communication heartbeat data packet, the wireless communication module sends the communication heartbeat data packet to the master station server or the master station border gateway based on a network channel of a current SIM card;
wherein the detection module is disposed in the wireless communication module.
To achieve the above object, a third aspect of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a multi-channel switching method for a wireless communication terminal as set forth in the first aspect of the present invention.
In order to achieve the above object, a fourth aspect of the present invention provides an electronic device, including a memory and a processor, where the memory stores a computer program, and the computer program, when executed by the processor, implements a multi-channel switching method for a wireless communication terminal as set forth in an embodiment of the first aspect of the present invention.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
Fig. 1 is a flowchart of a multi-channel handover method of a wireless communication terminal according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a wireless communication terminal to server or gateway network communication according to an embodiment of the present invention;
fig. 3 is a flowchart of determining whether a response packet satisfies a predetermined communication condition according to an embodiment of the present invention;
fig. 4 is a flowchart of another embodiment of the present invention for determining whether a response packet satisfies a predetermined communication condition;
FIG. 5 is a flow chart of switching a current SIM card to another SIM card according to one embodiment of the present invention;
fig. 6 is a schematic structural diagram of a multi-channel switching device of a wireless communication terminal according to an embodiment of the invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
The wireless communication terminal multi-channel switching method, device and storage medium according to the embodiments of the present invention will be described in detail with reference to fig. 1-6 and specific embodiments.
The wireless communication terminal multichannel switching method and device are used for the wireless communication terminal, wherein the wireless communication terminal can be an electric power Internet of things terminal or other industrial Internet terminals, such as an electric meter terminal.
In an embodiment of the present invention, the wireless communication terminal may include a wireless communication module, wherein the wireless communication module is provided with a plurality of SIM cards.
Specifically, the wireless communication module arranged in the wireless communication terminal is used for realizing communication between the center device and the wireless communication terminal. And a plurality of SIM cards are arranged in the wireless communication module and used for meeting the requirement on the network reliability of the wireless communication terminal. It is understood that one SIM card can provide one network channel, and multiple SIM cards can provide multiple network channels. Therefore, a single SIM card is arranged in the wireless communication module for network communication, the wireless communication terminal only has one network channel, the reliability of the network is lower, and the plurality of SIM cards are arranged in the wireless communication module, and the wireless communication terminal has a plurality of network channels, so that the reliability of the network is improved.
The wireless communication module is internally provided with a plurality of SIM cards, and if a certain SIM card is used as a network attachment card, the network interruption between the wireless communication terminal and the central equipment is invalid or the communication quality requirement cannot be met, the current SIM card needs to be switched to realize the network communication between the wireless communication terminal and the central equipment. By arranging the SIM card, multi-channel redundancy backup is provided so as to meet the requirement on the network reliability of the wireless communication terminal.
In the embodiment of the invention, the wireless communication module can switch among a plurality of SIM cards, namely a plurality of network channels by utilizing a set of baseband and radio frequency module. The wireless communication module can support 3G, 4G, 5G or newer wireless communication technologies, and the encapsulation form of the SIM card can include USIM, eSIM, software SIM and other forms.
Fig. 1 is a flowchart of a multi-channel handover method of a wireless communication terminal according to an embodiment of the present invention. As shown in fig. 1, the multi-channel switching method of the wireless communication terminal includes:
and S1, sending heartbeat data packets to the master station server and/or the master station border gateway based on the network channel of the current SIM card, wherein the wireless communication module is in communication connection with the master station server through the network channel and the master station border gateway.
In an embodiment of the present invention, a master card may be set in a plurality of SIM cards, and a boolean option is set for the master card, and the method for switching multiple channels of a wireless communication terminal further includes:
when the wireless communication terminal is restarted, acquiring Boolean selection items;
when the Boolean option is set to be 1, the wireless communication terminal adopts a main card to attach to a network;
when the boolean option is set to 0, the wireless communication terminal attaches to the network using the SIM card before the restart.
Specifically, a master card is set in a plurality of SIM cards of the wireless communication module, which aims to set a default SIM card for network attachment when the wireless communication terminal is powered on every time among a plurality of SIM cards, that is, the master card is used for network attachment when the wireless communication terminal is powered on every time. In order to meet the requirement of a wireless communication terminal on a network, a Boolean option is set for the main card, and when the Boolean option is set to be 1, the wireless communication terminal adopts the main card to attach to the network; when the boolean option is set to 0, the wireless communication terminal attaches to the network using the SIM card before restart.
Further, the wireless communication module sends a heartbeat packet to the master station server and/or the master station border gateway through the attachment network based on the current SIM (master card or SIM card before restart) to detect whether the network channel of the current SIM card is available.
In an embodiment of the present invention, the heartbeat data packet includes a service heartbeat data packet and a communication heartbeat data packet. Specifically, when the heartbeat data packet includes a service heartbeat data packet, the service heartbeat data packet is sent to the master station server. And when the heartbeat data packet comprises a communication heartbeat data packet, the communication heartbeat data packet is sent to the master station server or the master station border gateway.
Specifically, as shown in fig. 2, the heartbeat data packet may only have a service heartbeat data packet, the heartbeat data packet may only have a communication heartbeat data packet, and the heartbeat data packet may also have both a service heartbeat data packet and a communication heartbeat data packet. That is, the network channel based on the current SIM card may only send the service heartbeat data packet, the network channel based on the current SIM card may also only send the communication heartbeat data packet, and the network channel based on the current SIM card may also send the service heartbeat data packet and the communication heartbeat data packet at the same time.
And S2, receiving a response data packet aiming at the heartbeat data packet sent by the main station server and/or the main station border gateway.
Specifically, the service heartbeat data can be received by the master station server, and then a response data packet for the service heartbeat data is transmitted back, the wireless communication module receives the response data packet for the service heartbeat data, and then the service data packet is forwarded to the service processing unit, and the service processing unit processes and judges the service heartbeat data.
The communication heartbeat data can be received by the master station server and then a response data packet corresponding to the communication heartbeat data is transmitted back, and the wireless communication module receives the response data packet corresponding to the communication heartbeat data.
The communication heartbeat data can be received by the main station boundary gateway and then a response data packet aiming at the communication heartbeat data is transmitted back, and the wireless communication module receives the response data packet aiming at the communication heartbeat data.
And S3, judging whether the response data packet meets the preset communication condition.
In an embodiment of the present invention, the wireless communication terminal further includes a service module, such as an electrical signal detection module in the electricity meter terminal, and when the heartbeat data packet includes a service heartbeat data packet, the service module sends the service heartbeat data packet to the master station server through the wireless communication module based on a network channel of the current SIM card; the service module judges whether the response data packet meets a preset communication condition or not, and triggers the wireless communication module to switch the current SIM card to other SIM cards when the response data packet does not meet the preset communication condition.
In another embodiment of the present invention, when the heartbeat data packet includes a communication heartbeat data packet, the wireless communication module sends the communication heartbeat data packet to the master station server or the master station border gateway based on the network channel of the current SIM card; the wireless communication module judges whether the response data packet meets a preset communication condition or not, and switches the current SIM card to other SIM cards when the response data packet does not meet the preset communication condition.
As a possible implementation, as shown in fig. 3, the determining whether the response packet satisfies the preset communication condition may include:
s301, acquiring the sending time of the heartbeat data packet and the returning time of the response data packet. Wherein the return time may include a response time of the server response and a reception time of the reception response packet.
S302, calculating the round-trip delay between the sending time and the returning time, and comparing whether the round-trip delay is larger than a preset threshold value.
Specifically, when the return time includes a response time of the server response, that is, when the response data packet of the server response feedback includes a timestamp, and the heartbeat data packet also includes a timestamp, the time stamp in the heartbeat data packet and the time stamp in the response data packet may be used to obtain the sending time of the heartbeat data packet and the response time of the response data packet returned by the server. Wherein the round trip delay is twice the difference between the response time and the transmission time.
When the return time includes the receiving time of the received response packet, that is, the wireless communication terminal (the service module or the communication module) records the sending time of the heartbeat data packet and the receiving time of the received corresponding response packet, and obtains the sending time of the heartbeat data packet and the receiving time of the received response packet. And when the round-trip time delay is calculated, the round-trip time delay can be obtained by subtracting the sending time from the receiving time.
And S303, when the round-trip delay is larger than a preset threshold value, judging that the response data packet does not meet the preset communication condition.
Specifically, when a service heartbeat data packet includes a timestamp, and a message including the service heartbeat data packet reaches the master station server, the master station server replies a response data packet for the service heartbeat data, and when the response data packet reaches the wireless communication terminal, the wireless communication terminal calculates the round-trip time (round-trip delay) of the service heartbeat data packet.
The service heartbeat data are packaged by the wireless communication terminal of the Internet of things, and the master station server is deployed in the service master station server of the Internet of things. The message of the service heartbeat data packet is constructed and packaged by adopting the same protocol stack as the service message, so that the communication channel can have the same priority service. The wireless communication terminal of the Internet of things decides whether to trigger card cutting according to business logic or two-way time delay of a communication data packet, and when the card cutting is needed, a card cutting instruction is issued to the wireless communication module by the wireless communication terminal.
Specifically, when the communication heartbeat data packet includes a timestamp and the message master station server or the master station border gateway including the communication heartbeat data packet, the master station server or the master station border gateway replies a response data packet for the communication heartbeat data packet, and when the response data packet reaches the wireless communication module, the wireless communication module calculates the round-trip time (round-trip delay) of the communication heartbeat data packet.
The communication heartbeat data packet can be a PING packet or other data messages capable of calculating bidirectional time delay, and the wireless communication module is responsible for packaging. The time delay upper limit depends on the tolerance degree of the service requirement to the time delay, the wireless communication module triggers the SIM card to switch, and the support of the time delay upper limit can be configured.
In this embodiment, different wireless communication modes have different delay capabilities, and different wireless communication terminals also have different service requirements, and specifically, the time threshold may be set according to actual requirements. For example, an LTE terminal carries an industrial control class terminal, and its delay threshold may be set to 30 ms.
And when the comparison round-trip delay is less than or equal to a preset threshold value, judging that the response data packet meets the preset communication condition.
And when the comparison round-trip delay is larger than a preset threshold value, judging that the response data packet does not meet the preset communication condition.
As another possible implementation, as shown in fig. 4, the determining whether the response packet satisfies the preset communication condition includes:
s311, detecting whether the response data packet is complete;
s312, when the response packet is not complete, it is determined that the response packet does not satisfy the preset communication condition.
Specifically, whether the response packet satisfies the preset communication condition may be determined by detecting whether the received response packet is complete or not, and whether the packet is lost or not, and when the received response packet is complete, it is determined that the response packet satisfies the preset communication condition. And when the received data packet is incomplete, judging that the response data packet does not meet the preset communication condition.
And S4, switching the current SIM card to other SIM cards when the preset communication condition is not met.
Specifically, when the received response data packet does not meet the preset communication condition, the current SIM card is switched to another SIM card, so that the network channel of the switched SIM card is effectively available.
It should be noted that whether to switch the SIM card is determined specifically, not by the response result of a certain heartbeat message. But according to the feedback condition of the response data packet of a group of multiple messages, whether the SIM card is switched or not is determined by comprehensively judging the time delay and the packet loss condition of the response data packet, so that frequent card switching operation caused by accidental packet loss is eliminated.
In an embodiment of the present invention, the method for switching multiple channels of a wireless communication terminal further includes:
and when the time for sending the heartbeat data packet reaches the preset time, if the response data packet is not received, switching the current SIM card to other SIM cards.
Specifically, after the heartbeat data packet is sent, if no response is made, that is, no response data packet is received within a preset time, the current SIM card is also switched to another SIM card.
It should be noted that whether to switch the SIM card is determined not by the response packet that does not receive a certain heartbeat packet within the preset time, but by the feedback condition of the response packet in a group of multiple transmitted messages. And determining whether to switch the SIM card by comprehensively judging the feedback condition of a group of response data packets so as to eliminate frequent card switching operation caused by occasional untimely feedback.
In the embodiment of the invention, each SIM card is provided with a card slot, and the card slot corresponding to each SIM card is provided with a card slot serial number. By setting the card slot serial number for the card slot of each SIM card, the SIM cards can be switched orderly when the wireless communication module fails based on the network attached to the current SIM card, so that the orderliness and the high efficiency of switching are improved.
As a possible implementation, as shown in fig. 5, switching the current SIM card to another SIM card may include:
and S41, obtaining the card slot serial number of the current SIM card.
Specifically, a card slot serial number of a current SIM card of the wireless communication module is acquired, so that the current SIM card is switched to other SIM cards.
And S42, determining the serial number of the target card slot according to the serial number of the card slot of the current SIM card and a preset switching sequence.
Specifically, in order to ensure the efficiency of switching the SIM card, the serial number of the target card slot is determined according to the acquired card slot serial number of the current SIM card and a preset switching sequence.
In the embodiment of the present invention, the preset switching sequence may be a sequence of serial numbers of the card slots arranged according to a sequence of serial numbers of the card slots, a reverse sequence or an out-of-order sequence.
And S43, switching the current SIM card to the SIM card corresponding to the target card slot serial number.
Specifically, after the serial number of the target card slot is determined, the current SIM card is switched to the SIM card corresponding to the serial number of the target card slot. After the switching is completed, it still needs to be determined whether the switched SIM card is valid and usable, so that the switched SIM card is usable.
According to the multi-channel switching method of the wireless communication terminal, provided by the embodiment of the invention, the chip cost of a single baseband and a single radio frequency can be realized by arranging the plurality of SIM cards in the wireless communication module, the multi-channel redundancy backup of the terminal of the Internet of things is realized, the access reliability of the industrial Internet of things is improved, and the access delay is reduced. Specifically, according to the heartbeat data packet sent based on the current SIM card, when the end-to-end network is detected to be unreliable, the current SIM card is switched to other SIM cards, and the service continuity and stability of the wireless communication terminal are ensured. Further specifically, whether a network channel based on the current SIM card is available is determined by the wireless communication device based on sending a heartbeat packet and receiving a response packet by the current SIM card, detecting whether the heartbeat packet is reachable, whether a delay of the reachable heartbeat packet meets a requirement, or whether a response packet corresponding to the heartbeat packet is complete. And when the SIM card is unavailable, switching the current SIM card into other SIM cards so as to ensure the continuity and stability of the service of the wireless communication terminal.
The invention provides a wireless communication terminal multichannel switching device.
Fig. 6 is a schematic structural diagram of a multi-channel switching device of a wireless communication terminal according to an embodiment of the invention. As shown in fig. 6, the multichannel switching device for wireless communication terminals is used for wireless communication terminals, and each wireless communication terminal includes a wireless communication module, and each wireless communication module is provided with a plurality of SIM cards. The multi-channel switching device 100 of the wireless communication terminal comprises a sending module 10, a receiving module 11, a detecting module 12 and a control module 13.
The sending module 11 is configured to send a heartbeat data packet to the master station server and/or the master station border gateway based on a network channel of the current SIM card, and the wireless communication module is in communication connection with the master station server through the network channel and the master station border gateway. The receiving module 12 is configured to receive a response data packet for the heartbeat data packet sent by the master station server and/or the master station border gateway. The detection module 13 is configured to determine whether the response packet satisfies a preset communication condition. The control module 14 is configured to switch the current SIM card to another SIM card when the preset communication condition is not satisfied, and the control module is disposed in the wireless communication module.
In the embodiment of the invention, the wireless communication terminal further comprises a service module, and when the heartbeat data packet comprises a service heartbeat data packet, the service module sends the service heartbeat data packet to the master station server through the wireless communication module based on the network channel of the current SIM card. Wherein, the detection module is arranged in the service module.
In the embodiment of the invention, when the heartbeat data packet comprises a communication heartbeat data packet, the wireless communication module sends the communication heartbeat data packet to the master station server or the master station border gateway based on the network channel of the current SIM card. Wherein, the detection module is arranged in the wireless communication module.
It should be noted that, for other specific implementations of the multi-channel switching apparatus for wireless communication terminal according to the regulations of the present invention, reference may be made to specific implementations of the multi-channel switching method for wireless communication terminal according to the above regulations of the present invention.
According to the multichannel switching device for the wireless communication terminal, provided by the embodiment of the invention, the plurality of SIM cards are arranged in the wireless communication module, and when the condition that an end-to-end network is unreliable is detected according to the heartbeat data packet sent based on the current SIM card, the current SIM card is switched into other SIM cards, so that the continuity and stability of the service of the wireless communication terminal are ensured, the access reliability of the industrial Internet of things is improved, and the access time delay is reduced.
The invention also provides a computer readable storage medium.
In this embodiment, a computer-readable storage medium stores thereon a computer program, which corresponds to the above-mentioned multi-channel switching method for a wireless communication terminal, and when being executed by a processor, implements the multi-channel switching method for a wireless communication terminal as set forth in the first embodiment of the present invention.
The invention also provides the electronic equipment.
In this embodiment, the electronic device includes a processor, a memory, and a computer program stored on the memory, and when the processor executes the computer program, the wireless communication terminal multi-channel switching method described above is implemented.
It should be noted that the logic and/or steps represented in the flowcharts or otherwise described herein, such as an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
In the description of the present invention, it is to be understood that the terms "central," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," "axial," "radial," "circumferential," and the like are used in the orientations and positional relationships indicated in the drawings for convenience in describing the invention and to simplify the description, and are not intended to indicate or imply that the referenced devices or elements must have a particular orientation, be constructed and operated in a particular orientation, and are therefore not to be considered limiting of the invention.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; they may be directly connected or indirectly connected through intervening media, or they may be connected internally or in any other suitable relationship, unless expressly stated otherwise. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, the first feature "on" or "under" the second feature may be directly contacting the first and second features or indirectly contacting the first and second features through an intermediate. Also, a first feature "on," "over," and "above" a second feature may be directly or diagonally above the second feature, or may simply indicate that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature may be directly under or obliquely under the first feature, or may simply mean that the first feature is at a lesser elevation than the second feature.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (11)

1. A wireless communication terminal multichannel switching method is characterized in that a wireless communication terminal is an electric power Internet of things or an industrial Internet terminal for remote communication and comprises a wireless communication module, the wireless communication module is provided with a plurality of SIM cards, and the method comprises the following steps:
sending heartbeat data packets to a master station server and a master station border gateway based on a network channel of a current SIM card, wherein the wireless communication module is in communication connection with the master station server through the network channel and the master station border gateway, the heartbeat data packets comprise service heartbeat data packets and communication heartbeat data packets, messages of the service heartbeat data packets are constructed by adopting a protocol stack which is the same as a service message, and are packaged by a service module of the wireless communication terminal, the communication heartbeat data packets adopt data messages for calculating bidirectional time delay, and the wireless communication module is responsible for packaging;
receiving a response data packet aiming at the heartbeat data packet, which is sent by the master station server and the master station border gateway;
judging whether the response data packet meets a preset communication condition or not, wherein the response data packet comprises a response data packet corresponding to a service heartbeat data packet and a response data packet corresponding to a communication heartbeat data packet;
when the preset communication condition is not met, switching the current SIM card to other SIM cards;
the wireless communication terminal also comprises a service module, and when the heartbeat data packet comprises a service heartbeat data packet, the service module sends the service heartbeat data packet to the master station server through the wireless communication module based on a network channel of the current SIM card;
the service module judges whether the response data packet meets a preset communication condition or not, and triggers the wireless communication module to switch the current SIM card to other SIM cards when the response data packet does not meet the preset communication condition.
2. The multi-channel switching method of wireless communication terminal according to claim 1, wherein one master card is set in the plurality of SIM cards, and a boolean option is set for the master card, the method further comprising:
when the wireless communication terminal is restarted, acquiring a Boolean option;
when the Boolean option is set to 1, the wireless communication terminal adopts the main card to attach to the network;
and when the Boolean option is set to be 0, the wireless communication terminal adopts the SIM card before restarting to attach to the network.
3. The multi-channel switching method of the wireless communication terminal according to claim 2, wherein when the heartbeat data packet includes a communication heartbeat data packet, the wireless communication module sends the communication heartbeat data packet to the master station border gateway based on a network channel of a current SIM card;
and the wireless communication module judges whether the response data packet meets a preset communication condition or not, and switches the current SIM card to other SIM cards when the response data packet does not meet the preset communication condition.
4. The multi-channel switching method for the wireless communication terminal according to claim 3, wherein the determining whether the response packet satisfies a preset communication condition comprises:
acquiring the sending time of the heartbeat data packet and the returning time of the response data packet;
calculating the round trip delay between the sending time and the returning time, and comparing whether the round trip delay is greater than a preset threshold value;
and when the round trip delay is larger than the preset threshold value, judging that the response data packet does not meet the preset communication condition.
5. The multi-channel switching method for the wireless communication terminal according to claim 3, wherein the determining whether the response packet satisfies a preset communication condition comprises:
detecting whether the response data packet is complete;
and when the response data packet is incomplete, judging that the response data packet does not meet the preset communication condition.
6. The method of claim 1, wherein the method further comprises:
and when the time for sending the heartbeat data packet reaches preset time, if the response data packet is not received, switching the current SIM card to other SIM cards.
7. The multi-channel switching method for the wireless communication terminal according to claim 1, wherein a card slot serial number is set for a card slot of each SIM card, and the switching the current SIM card to another SIM card comprises:
acquiring the card slot serial number of the current SIM card;
determining a target card slot serial number according to the card slot serial number of the current SIM card and a preset switching sequence;
and switching the current SIM card to the SIM card corresponding to the target card slot serial number.
8. The utility model provides a wireless communication terminal multichannel auto-change over device, its characterized in that, the device is used for wireless communication terminal, wireless communication terminal is for carrying out remote communication's electric power thing networking or industry internet terminal, and it includes wireless communication module, wireless communication module is equipped with many SIM cards, wireless communication module is used for:
sending heartbeat data packets to a main station server and a main station boundary gateway based on a network channel of a current SIM card, receiving response data packets aiming at the heartbeat data packets sent by the main station server and the main station boundary gateway, judging whether the response data packets of the heartbeat data packets meet preset communication conditions or not, and switching the current SIM card to other SIM cards when the preset communication conditions are not met, wherein the wireless communication module is in communication connection with the main station server through the network channel and the main station boundary gateway, the heartbeat data packets comprise service heartbeat data packets and communication heartbeat data packets, messages of the service heartbeat data packets are constructed by adopting a protocol stack same as service messages, the service packets are packaged by a service module of the wireless communication terminal, and the communication heartbeat data packets adopt data messages for calculating bidirectional time delay, taking care of encapsulation by the wireless communication module;
the wireless communication terminal further comprises a service module, when the heartbeat data packet comprises a service heartbeat data packet, the service module is used for sending the service heartbeat data packet to the master station server through the network channel of the wireless communication module based on the current SIM card, receiving a response data packet which is forwarded by the wireless communication module and is sent by the master station server and is aimed at the service heartbeat data packet, judging whether the response data packet of the service heartbeat data packet meets preset communication conditions or not, and triggering the wireless communication module to switch the current SIM card to other SIM cards when the response data packet does not meet the preset communication conditions.
9. The multi-channel switching device of the wireless communication terminal of claim 8, wherein when the heartbeat data packet includes a communication heartbeat data packet, the wireless communication module sends the communication heartbeat data packet to the main station border gateway based on a network channel of a current SIM card, receives a response data packet for the communication heartbeat data packet sent by the main station border gateway, determines whether the response data packet of the communication heartbeat data packet satisfies a preset communication condition, and switches the current SIM card to another SIM card when the preset communication condition is not satisfied.
10. A computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements a wireless communication terminal multi-channel handover method according to any one of claims 1 to 7.
11. An electronic device comprising a memory and a processor, the memory having a computer program stored thereon, wherein the computer program, when executed by the processor, implements the wireless communication terminal multi-channel switching method of any one of claims 1-7.
CN202111119510.7A 2021-09-24 2021-09-24 Wireless communication terminal multichannel switching method, device and storage medium Active CN113573301B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111119510.7A CN113573301B (en) 2021-09-24 2021-09-24 Wireless communication terminal multichannel switching method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111119510.7A CN113573301B (en) 2021-09-24 2021-09-24 Wireless communication terminal multichannel switching method, device and storage medium

Publications (2)

Publication Number Publication Date
CN113573301A CN113573301A (en) 2021-10-29
CN113573301B true CN113573301B (en) 2022-06-24

Family

ID=78174271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111119510.7A Active CN113573301B (en) 2021-09-24 2021-09-24 Wireless communication terminal multichannel switching method, device and storage medium

Country Status (1)

Country Link
CN (1) CN113573301B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115623554A (en) * 2022-07-08 2023-01-17 国网新疆电力有限公司电力科学研究院 Debugging and testing terminal communication module, equipment and method based on wireless communication technology

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101309135A (en) * 2008-03-07 2008-11-19 华中科技大学 Method for enhancing reliability of industrial wireless sensor network
EP2384061A2 (en) * 2010-04-30 2011-11-02 Samsung Electronics Co., Ltd. Apparatus and method for automatic SIM card selection according to network environment in dual mode terminal
CN103957552A (en) * 2014-05-13 2014-07-30 江苏省无线电科学研究所有限公司 Method for improving reliability of data communication in automatic meteorological station
CN105375948A (en) * 2015-12-14 2016-03-02 北京纳衡仪器仪表有限公司 Multimode wireless communication device
CN112261622A (en) * 2020-10-14 2021-01-22 广东汉鼎蜂助手网络技术有限公司 Cloud SIM card wireless internet access method, device and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106686591B (en) * 2015-11-10 2021-06-15 中兴通讯股份有限公司 Method and device for accessing wireless network
CN105848129A (en) * 2016-03-29 2016-08-10 乐视控股(北京)有限公司 Mobile data traffic monitoring method, device and handset
KR101986695B1 (en) * 2017-11-08 2019-06-07 라인 가부시키가이샤 Network service continuity management

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101309135A (en) * 2008-03-07 2008-11-19 华中科技大学 Method for enhancing reliability of industrial wireless sensor network
EP2384061A2 (en) * 2010-04-30 2011-11-02 Samsung Electronics Co., Ltd. Apparatus and method for automatic SIM card selection according to network environment in dual mode terminal
CN103957552A (en) * 2014-05-13 2014-07-30 江苏省无线电科学研究所有限公司 Method for improving reliability of data communication in automatic meteorological station
CN105375948A (en) * 2015-12-14 2016-03-02 北京纳衡仪器仪表有限公司 Multimode wireless communication device
CN112261622A (en) * 2020-10-14 2021-01-22 广东汉鼎蜂助手网络技术有限公司 Cloud SIM card wireless internet access method, device and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
配电终端无线公网通信状态监测方法研究;潘希;《山东电力技术》;20201231;第47卷(第266期);全文 *

Also Published As

Publication number Publication date
CN113573301A (en) 2021-10-29

Similar Documents

Publication Publication Date Title
KR101466792B1 (en) Controlled idle mode behavior in user equipment supporting multiple radio access techniques
US9220083B2 (en) IP-based paging for DSDS
EP1863309B1 (en) Mobile terminal of cdma system, mobile communication method of cdma system, and communication quality estimating method
CN107306386B (en) Method for triggering terminal roaming by access point and access point
KR101399244B1 (en) Method for controlling mobile communication terminal to improve receiving/sending voice call and mobile communication terminal using the same
CN111787566B (en) Information transmission method and device and communication equipment
US10285105B2 (en) Method, device, and system for establishing virtual base station and transferring data
EP3512118A1 (en) Method and device for transmitting response message
RU2006103993A (en) GETTING A SERVICE OUTSIDE THE COMMUNICATION SYSTEM
WO2007008980B1 (en) System and method for updating wireless applications
EP2338300A1 (en) System and method for reduced interruption time in mobile communications
WO2008105716A1 (en) Private mobility management enhancements
CN107820235B (en) Information processing method and terminal
EP3158806B1 (en) Method and arrangement for triggering paging profiling
CN110402598A (en) Switching method, terminal device and the network equipment
CN110062343B (en) eSRVCC function configuration method, network device and storage medium
CN113573301B (en) Wireless communication terminal multichannel switching method, device and storage medium
EP2672741A1 (en) Short message sending method for multi-mode terminal and multi-mode terminal
CN103262611A (en) Gateway relocation control method in mobile communication system, and control device
CN113873598B (en) Network switching method, device, network equipment and storage medium
EP2890210A1 (en) Method for state transition and network device
CN103748912A (en) Frequency point measurement control method, terminal and base station
KR100784324B1 (en) Apparatus and method for idle current saving in mobile communication terminal
EP3846538B1 (en) Method for controlling display of service identifier, and related product
US7209742B2 (en) Wireless mobile station loss prevention in multi-network communication systems

Legal Events

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