Data service switching method of dual-path communication charging device, charging device and product

By resetting and switching the wireless communication module and smart card, combined with counting threshold judgment, the problem of poor communication network stability in the existing technology is solved, and the reliability and stability of data service switching of the dual-path communication charging device are realized.

CN122138192APending Publication Date: 2026-06-02XI AN TELD INTELLIGENT CHARGING TECHNOLOGY CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
XI AN TELD INTELLIGENT CHARGING TECHNOLOGY CO LTD
Filing Date
2026-01-23
Publication Date
2026-06-02

Smart Images

  • Figure CN122138192A_ABST
    Figure CN122138192A_ABST
Patent Text Reader

Abstract

This application discloses a data service switching method, charging device, and product for a dual-channel communication charging device. The method includes: continuously acquiring the operating data of a wireless communication module and the status information of a communication smart card at preset time intervals; determining whether the wireless communication module meets the reset condition based on the operating data of the wireless communication module, and if so, adjusting the module reset count; otherwise, determining whether the communication smart card meets the card-switching condition based on the status information of the communication smart card, and if so, adjusting the card-switching count; and performing a reset operation on the wireless communication module or a card-switching operation on the communication smart card based on the final adjusted module reset count and the final adjusted card-switching count within the preset time period. By sequentially determining whether the wireless communication module is reset and whether the communication smart card is switched, the judgment criteria for data service switching are more comprehensive, thereby ensuring the stability of the communication network of the dual-channel communication charging device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data service switching, specifically to a data service switching method, charging device, and product for a dual-channel communication charging device. Background Technology

[0002] Currently, in order to ensure communication between charging piles and user terminal devices (such as mobile phones), dual-SIM switching technology can be applied to charging piles. That is, dual communication or redundant communication can be used to realize data communication between charging piles, terminal device APP and cloud server.

[0003] However, existing dual-SIM handover technology typically uses a single signal parameter as the basis for judgment to achieve communication network switching; this makes the judgment basis of the entire handover judgment method insufficient and the logic flawed, resulting in poor stability of the communication network.

[0004] Therefore, existing charging piles still suffer from poor communication network stability when switching data services. Summary of the Invention

[0005] In view of the above-mentioned defects or deficiencies in the prior art, it is desirable to provide a data service switching method, charging device and product for a dual-channel communication charging device. This method makes the judgment basis for data service switching more comprehensive by sequentially judging whether the wireless communication module is reset and whether the communication smart card is switched, thereby avoiding the occasional problem of signal changes and ensuring the stability of the communication network of the dual-channel communication charging device.

[0006] In a first aspect, the present invention provides a data service switching method for a dual-channel communication charging device, wherein the dual-channel communication charging device is equipped with two communication smart cards and a wireless communication module, and the method includes: According to preset time intervals, continuously acquire the operating data of the wireless communication module and the status information of the communication smart card; Based on the operating data of the wireless communication module, determine whether the wireless communication module meets the reset condition. If it does, adjust the module reset count. The module reset count represents the number of times the wireless communication module meets the reset condition. Otherwise, based on the status information of the communication smart card, determine whether the communication smart card meets the card switching condition. If it does, adjust the card switching count. The card switching count represents the number of times the communication smart card meets the card switching condition. Based on the final adjusted module reset count and the final adjusted card switching count within a preset time period, the system performs a reset operation on the wireless communication module or a card switching operation on the communication smart card.

[0007] In one possible implementation, determining whether the wireless communication module meets the reset condition includes: Determine if there are any abnormalities in the operating data. If there are abnormalities, determine that the wireless communication module meets the reset conditions. Among them, abnormalities in the operating data include at least one of the following: serial port abnormality, no response to AT commands, abnormal module name, and abnormal International Mobile Equipment Identity (IMSI) code and serial number.

[0008] In one possible implementation, determining whether the communication smart card meets the card-switching conditions includes: Determine if there are any abnormalities in the status information. If there are abnormalities, determine that the communication smart card meets the card switching conditions. Among them, abnormalities in the status information include at least one of the following: card detection abnormality, card number abnormality, network information abnormality, attachment network abnormality, and registration network abnormality.

[0009] In one possible implementation, based on the final adjusted module reset count and the final adjusted card switching count within a preset time period, a reset operation on the wireless communication module or a card switching operation on the communication smart card is performed, including: If the final adjusted module reset count within the preset time period meets the preset reset threshold, then a reset operation is performed on the wireless communication module; or, If the final adjusted card-switching count within the preset time period meets the preset card-switching threshold, then the card-switching operation for the communication smart card will be executed.

[0010] In one possible implementation, the preset reset threshold and the preset card-cutting threshold are both 6.

[0011] In one possible implementation, the method also includes: If the smart card does not meet the card switching conditions, then the network connectivity status is checked. When the network connectivity status indicates that the current network connectivity quality is less than the preset connectivity quality, the card-switching operation of the communication smart card is performed; otherwise, the operation data of the wireless communication module and the status information of the communication smart card are obtained after waiting for a preset time.

[0012] In one possible implementation, the acquisition of operational data from the wireless communication module and status information from the communication smart card includes: Run the pre-configured calling code in the dual-channel communication charging device to obtain the operating data of the wireless communication module and the status information of the communication smart card.

[0013] In a second aspect, a charging device is provided, which is applied to the data service switching method of the dual-channel communication charging device in the first aspect. The charging device is equipped with a microcontroller unit, a hardware reset circuit, a wireless communication module, an analog switch, and two communication smart cards.

[0014] In one possible implementation, the microcontroller unit is used to control the hardware reset circuit to adjust the reset pin, thereby realizing the reset function of the wireless communication module.

[0015] Thirdly, a computer program product is provided, which contains instructions that, when the instructions are executed, are performed the methods described in any of the first aspects above.

[0016] Fourthly, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, it implements the method of any one of the first aspects above.

[0017] Fifthly, a computer-readable storage medium is provided having a computer program stored thereon, characterized in that the program, when executed by a processor, implements the method of any one of the first aspects above.

[0018] Compared to existing communication network switching methods that use a single signal parameter as the basis for judgment, the data service switching method, charging device, and product of the dual-channel communication charging device provided in this application embodiment make the judgment basis for data service switching more comprehensive by sequentially judging whether the wireless communication module is reset and whether the communication smart card is switched, thus improving the judgment logic of data service switching. Secondly, the limitation of the preset time period also avoids the occasional problem of signal changes and avoids the one-sidedness of a single judgment basis, thereby ensuring the communication network stability of the dual-channel communication charging device. Attached Figure Description

[0019] Other features, objects, and advantages of this application will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings: Figure 1 This is a schematic diagram showing the distribution of the dual-channel communication charging device 11 provided in an embodiment of this application; Figure 2 This is a flowchart illustrating a data service switching method for a dual-channel communication charging device provided in an embodiment of this application; Figure 3 This is a schematic diagram of the process for obtaining data information provided in an embodiment of this application; Figure 4 This is a flowchart illustrating another data service switching method for a dual-channel communication charging device provided in this application embodiment; Figure 5 This is a schematic diagram of the structure of the computer device provided in the embodiments of this application. Detailed Implementation

[0020] The present application will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Furthermore, it should be noted that, for ease of description, only the parts relevant to the invention are shown in the accompanying drawings.

[0021] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. The application will now be described in detail with reference to the accompanying drawings and embodiments. Furthermore, the term "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. The terms "first" and "second," etc., in the specification and claims of the embodiments of this application are used to distinguish different objects, not to describe a specific order of objects.

[0022] The following is an explanation of the terms used in this application: (1) Analog switch: an integrated circuit used to control the conduction or cutoff of analog signals (continuously changing voltage or current).

[0023] Currently, in order to ensure communication between charging devices (e.g., charging piles) and user terminal devices (e.g., mobile phones), the dual-SIM switching technology applied to charging devices usually uses the signal quality and signal strength of the two cards as the basis for judgment to achieve the switching of communication networks; one of the cards can be a physical SIM card.

[0024] However, the judgment criteria in the above-mentioned communication network switching methods are relatively simple and not comprehensive enough, resulting in defects in the judgment logic. As a result, existing charging devices still have the problem of poor communication network stability in terms of data service switching.

[0025] In response, this application provides a data service switching method for a dual-channel communication charging device. This method improves network stability by sequentially judging whether the wireless communication module is reset and whether the communication smart card is switched, incorporating a variety of reliable optimization techniques.

[0026] In one embodiment of this application, a dual-channel communication charging device is provided.

[0027] In one possible implementation, Figure 1 This is a schematic diagram of the distribution of the dual-channel communication charging device 11 provided in this application embodiment. The dual-channel communication charging device 11 is used to execute the data service switching method for the dual-channel communication charging device provided in this application, such as... Figure 1As shown, the dual-channel communication charging device 11 is equipped with a microcontroller unit 111, a hardware reset circuit 112, a wireless communication module 113, an analog switch 114, a communication smart card 1, and a communication smart card 2.

[0028] For example, the dual-channel communication charging device 11 can be a dual-card terminal charging pile; the microcontroller unit 111 can be an integrated circuit MCU that integrates microprocessors, memory and input / output interfaces and other functional modules on a single chip; and the wireless communication module 113 can be a 4G module.

[0029] For example, the push-pull output of the microcontroller unit 111 can be used to control the hardware reset circuit 112 to adjust the reset pin, thereby realizing the reset function of the wireless communication module 113.

[0030] In one example, when the reset pin of the wireless communication module 113 is high in its operating state, the hardware reset circuit 112 can be controlled to pull the reset pin low by the push-pull output of the microcontroller unit 111 to realize the reset function of the wireless communication module 113.

[0031] In this embodiment, by adding a hardware reset circuit 112 to the dual-channel communication charging device 11, the strong reset function of the hardware reset circuit 112 is realized, so as to avoid communication failure caused by module crash; secondly, by switching the dual communication smart cards (i.e., dual SIM cards) through the analog switch 114, the stability of the network is ensured.

[0032] In another embodiment of this application, a data service switching method for a dual-channel communication charging device is provided.

[0033] In one possible implementation, Figure 2 This is a flowchart illustrating a data service switching method for a dual-channel communication charging device provided in this application embodiment, such as... Figure 2 As shown, the method specifically includes the following steps: Step S201: Continuously acquire the operating data of the wireless communication module 113 and the status information of the communication smart card according to a preset time interval.

[0034] In one possible implementation, a calling code can be pre-configured in the dual-channel communication charging device 11 to obtain the operating data of the wireless communication module 113 and the status information of the communication smart card by running the calling code.

[0035] For example, when the calling code of the dual-channel communication charging device 11 is run, the information acquisition application (i.e., information acquisition APP) on the charging device side can be called to obtain the relevant information of the wireless communication module 113 and the communication smart card.

[0036] Specifically, the operating data of the wireless communication module 113 may include serial port data, AT command response data, module name data, International Mobile Equipment Identity (IMEI) and serial number, etc.; the status information of the communication smart card may include signal strength, signal quality, card number, network information, registered network, etc.

[0037] In one possible implementation, the relevant information of the wireless communication module 113 and the communication smart card can be acquired multiple times within a preset time period according to a preset time interval.

[0038] For example, the time interval for data acquisition can be preset in the calling code so that after the calling code is run once, relevant data information can be automatically acquired multiple times based on the time interval set in the calling code.

[0039] Optionally, the calling code can be run multiple times at preset time intervals to obtain relevant data information for different time periods; for example, the preset time interval can be 100ms.

[0040] Step S202: Based on the operating data of the wireless communication module 113, determine whether the wireless communication module 113 meets the reset condition. If it does, adjust the module reset count. The module reset count represents the number of times the wireless communication module 113 meets the reset condition. Otherwise, based on the status information of the communication smart card, determine whether the communication smart card meets the card switching condition. If it does, adjust the card switching count. The card switching count represents the number of times the communication smart card meets the card switching condition.

[0041] In one possible implementation, based on the operating data of the wireless communication module 113 obtained in step S201, it is determined whether there is any abnormality in the operating data of the wireless communication module 113, so as to determine whether the reset condition of the wireless communication module 113 is met according to the abnormality of the operating data.

[0042] For example, if there is an anomaly in the operating data of the wireless communication module 113, it is determined that the reset condition of the wireless communication module 113 is currently met.

[0043] Specifically, abnormal situations in the operating data include serial port abnormalities, no response to AT commands, abnormal module names, and abnormal International Mobile Equipment Identity (IMI) codes and serial numbers.

[0044] It should be noted that if any of the above-mentioned abnormalities exist in the operating data of the wireless communication module 113, it can be determined that the current reset conditions of the wireless communication module 113 are met.

[0045] For example, if the reset condition of the wireless communication module 113 is currently met, the module reset count (i.e., the number of times the wireless communication module 113 meets the reset condition) is adjusted; for example, the module reset count is incremented by 1.

[0046] Correspondingly, in another possible implementation, when there is no abnormality in the operating data of the wireless communication module 113 (i.e., the current reset condition of the wireless communication module 113 is not met), the status information of the communication smart card obtained in step S201 can be used to determine whether there is an abnormality in the status information of the communication smart card, so as to determine whether the current card switching condition of the communication smart card is met based on the abnormality of the status information.

[0047] For example, if the status information of the communication smart card is abnormal, it is determined that the card switching conditions of the communication smart card are currently met.

[0048] Specifically, abnormal status information includes card detection abnormalities, card number abnormalities, network information abnormalities, attachment network abnormalities, and registration network abnormalities.

[0049] It should be noted that, consistent with the reset judgment of the wireless communication module 113, when any of the above-mentioned abnormal conditions exist in the status information of the communication smart card, it can be determined that the card switching conditions of the communication smart card are currently met.

[0050] For example, if the card-switching conditions of the communication smart card are currently met, the card-switching count (i.e., the number of times the communication smart card meets the card-switching conditions) is adjusted; for example, the card-switching count is incremented by 1.

[0051] Step S203: Based on the final adjusted module reset count and the final adjusted card switching count within the preset time period, perform a reset operation on the wireless communication module 113 or a card switching operation on the communication smart card.

[0052] For example, if the final adjusted module reset count within a preset time period meets the preset reset threshold, then a reset operation is performed on the wireless communication module 113.

[0053] Optionally, if the final adjusted card-switching count within the preset time period meets the preset card-switching threshold, then the card-switching operation for the communication smart card is performed.

[0054] In one example, the preset reset threshold and the preset card-cutting threshold are both 6.

[0055] In this embodiment, based on the fact that the signal change is instantaneous, signal jitter reduction is achieved by determining the number of times the wireless communication module 113 / communication smart card malfunctions within a preset time period, thereby further ensuring the stability of the communication network of the dual-path communication charging device 11.

[0056] In another embodiment of this application, other implementation operations of the data service switching method are also provided.

[0057] In one possible implementation, when the status information of the communication smart card does not show any abnormalities (i.e., the current conditions for switching the communication smart card are not met), the current network connectivity can be assessed to determine whether a smart card switching operation needs to be performed based on the current network connectivity.

[0058] For example, when the network connectivity status indicates that the current network connectivity quality is less than the preset connectivity quality, a card-switching operation is performed on the communication smart card; wherein, the network connectivity status is specifically manifested in the signal quality and signal strength of the network connectivity.

[0059] For example, the preset connectivity quality can correspond to the network connectivity status of another smart card. Based on this, the card switching operation of the smart card corresponds to switching the smart card to a smart card with a stronger signal.

[0060] Optionally, when the network connectivity status indicates that the current network connectivity quality is greater than or equal to a preset connectivity quality, the system waits for a preset duration before continuing to acquire the operating data of the wireless communication module 113 and the status information of the communication smart card. For example, the preset duration can be 4.5 minutes.

[0061] For example, an ICMP (Internet Control Message Protocol) echo request packet can be sent to the target host to detect whether the target is reachable, measure network latency and packet loss rate based on its reply, thereby determining the current network connectivity (i.e., using a Ping operation (Packet Internet Groper) to determine this); where the target host is, for example, Baidu or TELD platform.

[0062] In this embodiment, the risk of devices leaving the network is further reduced by determining whether to perform a smart card switching operation.

[0063] In another embodiment of this application, preprocessing operations are also provided before acquiring data information.

[0064] In one possible implementation, the identification of the number of communication smart cards can be obtained before acquiring the operating data of the wireless communication module 113 and the status information of the communication smart card.

[0065] For example, the calling interface on the dual-channel communication charging device 11 side can be set to hot-swap enabled to detect the insertion or removal of the communication smart card without restarting the device, thereby obtaining the identification status of the number of communication smart cards.

[0066] In one example, the detection method can be set to high-level detection. Based on this, when the detection pin of the calling interface changes to a high level, the insertion of the communication smart card is detected.

[0067] In this embodiment, by identifying the number of communication smart cards (for example, normally two communication smart cards are in place), it is possible to promptly detect situations where cards are not in place due to card slot malfunction or other factors.

[0068] Correspondingly, Figure 3 This is a schematic diagram of the data acquisition process provided in an embodiment of this application, such as... Figure 3 As shown, the process includes the following steps: Step S301: Call the APP to set the communication smart card to hot-swap enable and high-level detection.

[0069] Step S302: Determine whether to run the calling code pre-configured in the dual-channel communication charging device 11.

[0070] For example, if the program runs, step S3031 is executed; otherwise, step S3032 is executed.

[0071] Step S3031: Call the APP to obtain the operating data of the wireless communication module 113 and the status information of the communication smart card.

[0072] For example, the data acquisition time interval can be preset in the calling code so that after the calling code is run once, relevant data information can be automatically acquired multiple times based on the time interval set in the calling code.

[0073] Optionally, the calling code can be run multiple times at preset time intervals to obtain relevant data information for different time periods; for example, the preset time interval can be 100ms.

[0074] Step S3032: Run the calling code.

[0075] Step S304: Determine the signal strength of the communication smart card.

[0076] For example, if the signal strength is less than -40dBm and greater than -80dBm, then proceed to step S302; otherwise, proceed to step S305.

[0077] Step S305: Perform the card cutting operation.

[0078] In another embodiment of this application, another data service switching method for the dual-channel communication charging device 11 is also provided.

[0079] For example, Figure 4 This is a flowchart illustrating another data service switching method for a dual-channel communication charging device provided in this application embodiment, as shown below. Figure 4 As shown, the process includes the following steps: Step S401: Call the APP to obtain the operating data of the wireless communication module 113 and the status information of the communication smart card.

[0080] Step S402: Determine whether the reset conditions of the wireless communication module 113 are met.

[0081] For example, if the condition is met, then step S4031 is executed; otherwise, step S4032 is executed.

[0082] Step S4031: Record any abnormal conditions of the wireless communication module 113.

[0083] Step S4032: Determine whether the conditions for switching the communication smart card are met.

[0084] For example, if the condition is met, then proceed to step S4042; otherwise, proceed to step S4043.

[0085] Step S4041: Adjust the module reset count.

[0086] Step S4042: Record any abnormal conditions of the communication smart card.

[0087] Step S4043: Send a Ping command to the target host.

[0088] Step S4051: Determine whether the final adjusted module reset count meets the preset reset threshold.

[0089] For example, if the condition is met, then step S4061 is executed; otherwise, step S401 is executed.

[0090] Step S4052: Adjust the card cutting count.

[0091] Step S4053: Determine whether the Ping operation failed.

[0092] For example, if yes, then proceed to step S4063; otherwise, proceed to step S4064.

[0093] Step S4061: Perform a reset operation on the wireless communication module 113.

[0094] Step S4062: Determine whether the final adjusted card-cutting count meets the preset card-cutting threshold.

[0095] For example, if the condition is met, then step S4071 is executed; otherwise, step S401 is executed.

[0096] Step S4063: Perform the card switching operation on the communication smart card.

[0097] Step S4064, wait 4.5 minutes.

[0098] Step S4071: Perform the card switching operation on the communication smart card.

[0099] The following is for reference. Figure 5 , Figure 5 A schematic diagram of a communication device suitable for implementing embodiments of this application is shown, such as... Figure 5 As shown, the communication device 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage section 508 into a random access memory (RAM) 503. The RAM 503 also stores various programs and data required for the system's operating instructions. The CPU 501, ROM 502, and RAM 503 are interconnected via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0100] The following components are connected to the input / output (I / O) interface 505: an input section 506 including a keyboard, mouse, etc.; an output section 507 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the input / output (I / O) interface 505 as needed. A removable medium 511, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 510 as needed so that computer programs read from it can be installed into the storage section 508 as needed.

[0101] Specifically, according to embodiments of this application, the flowchart above refers to... Figures 2-4 The described process can be implemented as a computer software program. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowchart. In such an embodiment, the computer program contains program code for performing the methods shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via communication section 509, and / or installed from removable medium 511. When the computer program is executed by central processing unit (CPU) 501, it performs the functions defined in the system of this application.

[0102] It should be noted that the computer-readable medium shown in this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium compatible with computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.

[0103] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operational instructions of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two connected blocks may actually be executed substantially in parallel, or 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, can be implemented using a dedicated hardware-based system that performs the specified functions or operational instructions, or using a combination of dedicated hardware and computer instructions.

[0104] The units or modules described in the embodiments of this application can be implemented in software or hardware. The described units or modules can also be housed in a processor; for example, a processor may be described as including a semantic extraction unit, a weight allocation unit, and a determination unit. The names of these units or modules do not necessarily constitute a limitation on the unit or module itself.

[0105] On the other hand, this application also provides a computer-readable storage medium, which may be included in the communication device described in the above embodiments, or may exist independently and not assembled into the communication device. The aforementioned computer-readable storage medium stores one or more programs that, when used by one or more processors, execute the methods described in this application. For example, it may execute... Figures 2-4 The steps of the method shown are as follows.

[0106] This application provides a computer program product including instructions that, when executed, cause the method described in this application to be performed. For example, it can execute... Figures 2-4 The steps of the method shown are as follows.

[0107] The above description is merely a preferred embodiment of this application and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of disclosure in this application is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the foregoing disclosed concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features with similar functions disclosed in this application.

Claims

1. A data service switching method for a dual-channel communication charging device, characterized in that, The dual-channel communication charging device is equipped with two communication smart cards and a wireless communication module, and the method includes: According to a preset time interval, the operating data of the wireless communication module and the status information of the communication smart card are continuously acquired. Based on the operating data of the wireless communication module, it is determined whether the wireless communication module meets the reset condition. If it does, the module reset count is adjusted, and the module reset count represents the number of times the wireless communication module meets the reset condition. Otherwise, based on the status information of the communication smart card, it is determined whether the communication smart card meets the card switching condition. If it does, the card switching count is adjusted, and the card switching count represents the number of times the communication smart card meets the card switching condition. Based on the final adjusted module reset count and the final adjusted card switching count within a preset time period, a reset operation is performed on the wireless communication module or a card switching operation is performed on the communication smart card.

2. The data service switching method for the dual-channel communication charging device according to claim 1, characterized in that, The step of determining whether the wireless communication module meets the reset condition includes: Determine whether there is any abnormality in the operating data. If there is an abnormality, determine that the wireless communication module meets the reset condition. The abnormality of the operating data includes at least one of the following: serial port abnormality, no response to AT commands, abnormal module name, and abnormal International Mobile Equipment Identity (IMSI) code and serial number.

3. The data service switching method for the dual-channel communication charging device according to claim 1, characterized in that, The determination of whether the communication smart card meets the card-switching conditions includes: Determine whether the status information is abnormal. If an abnormality is found, determine that the communication smart card meets the card switching conditions. The abnormality of the status information includes at least one of the following: card detection abnormality, card number abnormality, network information abnormality, attachment network abnormality, and registration network abnormality.

4. The data service switching method for the dual-channel communication charging device according to claim 1, characterized in that, The process of performing a reset operation on the wireless communication module or a card switching operation on the communication smart card based on the final adjusted module reset count and the final adjusted card switching count within a preset time period includes: If the final adjusted module reset count within the preset time period meets the preset reset threshold, then a reset operation is performed on the wireless communication module; or, If the final adjusted card-switching count within the preset time period meets the preset card-switching threshold, then the card-switching operation for the communication smart card is executed.

5. The data service switching method for the dual-channel communication charging device according to claim 4, characterized in that, The preset reset threshold and the preset card cutting threshold are both 6.

6. The data service switching method for the dual-channel communication charging device according to claim 1, characterized in that, The method further includes: If the communication smart card does not meet the card-switching conditions, then the network connectivity status is determined; When the network connectivity status indicates that the current network connectivity quality is less than the preset connectivity quality, the card-switching operation of the communication smart card is performed; otherwise, the operation data of the wireless communication module and the status information of the communication smart card are obtained after waiting for a preset time.

7. The data service switching method for the dual-channel communication charging device according to claim 1, characterized in that, The acquisition of the operating data of the wireless communication module and the status information of the communication smart card includes: Run the pre-configured calling code in the dual-channel communication charging device to obtain the operating data of the wireless communication module and the status information of the communication smart card.

8. A charging device, characterized in that, The data service switching method for the dual-channel communication charging device according to any one of claims 1-7, wherein the charging device is provided with a microcontroller unit, a hardware reset circuit, a wireless communication module, an analog switch, and two communication smart cards.

9. The charging device according to claim 8, characterized in that, The microcontroller unit is used to control the hardware reset circuit to adjust the reset pin, thereby realizing the reset function of the wireless communication module.

10. A computer program product, characterized in that, The computer program product includes instructions that, when executed, cause the method described in any one of claims 1-7 to be implemented.