Mobile communication control method based on multiple groups of 4G modules and related equipment
Through the mobile communication control method based on multiple 4G modules, precise management and control of 4G modules is achieved, and the problem that a single module is difficult to meet the diverse network needs of charging piles is solved, the system stability and reliability are improved, and the customer experience is enhanced.
Patent Information
- Application Number
- CN202411951644.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-27
- Publication Date
- 2025-04-15
AI Technical Summary
In the prior art, a single 4G module is difficult to meet the diverse network needs of charging pile stations, resulting in unstable connections, affecting data transmission and instruction execution, and lack of a redundant backup mechanism, resulting in the charging pile being unable to connect to the remote management system when the module fails or signal interruption.
Through the mobile communication control method based on multiple 4G modules, the number, type and interface names of multiple 4G modules mounted on the current USB bus are obtained, and an example of the corresponding class is created to achieve precise management and control of the 4G modules. This method includes reading log configuration files, parsing command line parameters, judging module mode and number, executing self-test commands, acquiring the network, using ping commands to judge network connectivity, and resetting or restarting multiple 4G modules when multiple ping failures.
It improves the utilization rate of system resources, avoids resource waste, greatly improves the stability and reliability of the system, ensures the network stability of the charging pile, reduces the number of offline times and offline duration, and enhances the customer experience.
Smart Images

Figure CN119835669A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of mobile communication technology, and in particular to a mobile communication control method based on multiple groups of 4G modules and related equipment. Background Art
[0002] With the rapid development of mobile communication technology, 4G modules have been deeply integrated into various mobile devices and become a bridge connecting the world. However, in the application scenario of a single module, how to achieve efficient and stable control and management of these modules has become a technical problem that needs to be overcome. Especially in the current booming new energy vehicle industry, the demand for electric vehicle charging has shown explosive growth, and the construction and distribution of charging piles have also expanded rapidly. However, this trend has encountered the dual challenges of uneven signal coverage of mobile operators and diversified network requirements of charging pile stations, which has gradually exposed many disadvantages of the traditional single 4G module solution.
[0003] In the existing technology, due to the regional differences in signal coverage of mobile operators, some charging piles may be located in areas with weak signals, resulting in unstable 4G module connections, which in turn affects data transmission and command execution between the charging pile and the remote management system. Charging pile stations have different requirements for the network. Some require high-speed data transmission to support real-time monitoring and remote control, while others focus more on network stability and reliability. However, a single 4G module often cannot meet these diverse network requirements, resulting in limited performance of the charging pile. The traditional single 4G module solution lacks a redundant backup mechanism. Once the module fails or the signal is interrupted, the charging pile will fall into the dilemma of being unable to connect to the remote management system, seriously affecting the user's charging experience and settlement function. With the continuous advancement of mobile communication technology and the changing network requirements of charging pile stations, the single 4G module solution has many difficulties in upgrading and expanding. This limits the flexibility and scalability of charging piles, making it difficult to adapt to the development trend of future technologies. Summary of the invention
[0004] In order to overcome the defects of the above-mentioned prior art, the purpose of the present invention is to provide a mobile communication control method based on multiple groups of 4G modules and related equipment to solve the technical problem of how to improve the control efficiency of mobile communications in the prior art.
[0005] The present invention is achieved through the following technical solutions: In a first aspect, the present invention provides a method for controlling mobile communications based on multiple groups of 4G modules, comprising: Read the log configuration file to determine the log level and save location; According to the read log configuration file, parse the command line parameters and determine the operation mode to be used; Obtain the number, type and interface name of multiple groups of 4G modules mounted on the current USB bus according to the operation mode, and create an instance of the corresponding class based on the number, type and interface name; Determine whether the modes and quantities of the multiple groups of 4G modules meet the preset requirements, if not, adjust them, otherwise execute the self-check command and acquire the network; wherein, in acquiring the network, the network mode is set to bond mode, route mode or factory mode according to the user weight; After the network is successfully acquired, the ping command is used to determine whether the network is connected. If multiple ping commands are unsuccessful, the multiple groups of 4G modules are reset or restarted to ensure that the network is unobstructed.
[0006] Preferably, in the step of parsing the command line parameters according to the read log configuration file, determining the operation mode to be used, the operation mode includes but is not limited to the original mode, routing mode and bond mode, wherein the selection of the operation mode is based on the demand of the charging pile station for the network and the signal coverage of the mobile operator.
[0007] Preferably, in the step of obtaining the number, type and interface name of multiple groups of 4G modules mounted on the current USB bus according to the operation mode, and creating an instance of the corresponding class based on the number, type and interface name, when creating the instance of the corresponding class, a unique identifier is assigned to each 4G module, and each 4G module is independently controlled and managed through the identifier.
[0008] Preferably, after the step of obtaining the number, type and interface name of multiple groups of 4G modules mounted on the current USB bus according to the operation mode, and creating instances of corresponding classes based on the number, type and interface name, threads for inter-process and inter-thread communication are also created, and the multiple groups of 4G modules perform internal or external communication of the program based on the threads for inter-process and inter-thread communication.
[0009] Preferably, it is determined whether the mode and quantity of the multiple groups of 4G modules meet the preset requirements. If not, adjustments are made. Otherwise, a self-test command is executed, and in the step of obtaining the network, the self-test command includes but is not limited to checking the hardware connection status, software version, configuration parameters and signal strength of the multiple groups of 4G modules to ensure that the multiple groups of 4G modules are in normal working condition.
[0010] Preferably, in the step of setting the network mode to bond mode, route mode or factory mode according to user weight in acquiring the network, the Bond mode uses a link aggregation technology to aggregate multiple modules into a network card, which has the same IP and MAC, and can use master-slave switching and load balancing; the route mode can adopt different traffic exports for different destination addresses according to user needs; the original mode uses the dial-up program provided by the manufacturer to access the Internet for the situation where there is only one module.
[0011] Preferably, after the network is successfully acquired, the ping command is used to determine whether the network is connected. If multiple ping commands are unsuccessful, the multiple groups of 4G modules are reset or restarted to ensure that the network is unobstructed. After the network is successfully acquired, the ping command is used to determine the network connectivity. The sending frequency, number of times and target IP address of the ping command can be configured according to actual needs to improve the accuracy of network judgment.
[0012] In a second aspect, the present invention further provides a mobile communication control system based on multiple groups of 4G modules, comprising: The log configuration module is used to read the log configuration file and determine the log level and storage location; The command line parsing module is used to parse the command line parameters according to the read log configuration file and determine the operation mode to be used; A module identification and instantiation module, used to obtain the number, type and interface name of multiple groups of 4G modules mounted on the current USB bus according to the operation mode, and create an instance of the corresponding class based on the number, type and interface name; The module configuration and self-check module is used to determine whether the mode and quantity of the multiple groups of 4G modules meet the preset requirements. If not, adjustments are made. Otherwise, the self-check command is executed and the network is acquired. In the acquisition of the network, the network mode is set to bond mode, route mode or factory mode according to the user weight. The network judgment and recovery module is used to use the ping command to determine whether the network is connected after the network is successfully acquired. If multiple ping commands are unsuccessful, the multiple groups of 4G modules are reset or restarted to ensure smooth network access.
[0013] In a third aspect, the present invention also provides a mobile terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the mobile communication control method based on multiple groups of 4G modules as described above when executing the computer program.
[0014] In a fourth aspect, the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the mobile communication control method based on multiple groups of 4G modules as described above are implemented.
[0015] Compared with the prior art, the present invention has the following beneficial technical effects: The present invention provides a mobile communication control method based on multiple groups of 4G modules, which realizes accurate management and control of 4G modules by obtaining the number, type and interface name of multiple groups of 4G modules mounted on the current USB bus, and creating instances of corresponding classes based on this information. This helps to improve the utilization rate of system resources and avoid waste of resources. After the network is successfully acquired, the system uses the ping command to monitor the connectivity of the network in real time. If multiple ping commands are unsuccessful, the multiple groups of 4G modules are automatically reset or restarted to ensure smooth network operation. This real-time monitoring and automatic recovery mechanism greatly improves the stability and reliability of the system.
[0016] The present invention ensures that after the user has made corresponding settings, at the same time, traffic with different destination addresses is sent / received from different 4G modules. When a 4G module is disconnected from the Internet, the data will be switched to another module. The two modules have the same IP and MAC, and the application will not have a flow interruption process. At the same time, the present invention will actively check the network status. When multiple modules are disconnected from the Internet, the system will take measures to restore the network. The network stability of the charging pile is guaranteed in most cases, the number of offline times and offline duration are reduced, and the customer experience is enhanced. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a flow chart of a mobile communication control method based on multiple groups of 4G modules in an embodiment of the present invention; Figure 2 This is a schematic diagram of a mobile communication control system based on multiple groups of 4G modules in an embodiment of the present invention; In the figure: 1. Log configuration module; 2. Command line parsing module; 3. Module identification and instantiation module; 4. Module configuration and self-check module; 5. Network judgment and recovery module. DETAILED DESCRIPTION
[0018] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0019] The purpose of the present invention is to provide a mobile communication control method based on multiple groups of 4G modules and related equipment to solve the technical problem of how to improve the control efficiency of mobile communications in the prior art.
[0020] The present invention is further described in detail below in conjunction with the accompanying drawings: Example 1 See also Figure 1 In one embodiment of the present invention, a method for controlling mobile communications based on multiple groups of 4G modules is provided, comprising: Step 1: Read the log configuration file to determine the log level and save location; Specifically, according to the format and syntax rules of the configuration file, the file content is parsed and the configuration information is extracted. This information usually includes the log level (such as error, warning, information, etc.) and the log storage location (such as local disk path, remote server address, etc.).
[0021] Step 2: According to the read log configuration file, parse the command line parameters and determine the operation mode to be used; Specifically, the operation modes include but are not limited to original mode, routing mode and bond mode, wherein the selection of the operation mode is based on the demand of the charging pile station for the network and the signal coverage of the mobile operator.
[0022] Among them, network requirements include bandwidth and network stability, and mobile operators' signal coverage includes signal strength and coverage range.
[0023] Specifically, based on the analysis results and the values of the command line parameters, the program selects the most appropriate operation mode. Specifically, it includes the following: When charging pile stations have high requirements for network bandwidth and stability, and the mobile operator's signal coverage is good, select bond mode to use multiple network interfaces to provide higher bandwidth and stability.
[0024] When the charging station does not have high network requirements and only requires a simple network connection, select the original mode.
[0025] When the charging station needs to route multiple network traffic, select the routing mode.
[0026] Step 3, obtaining the number, type and interface name of multiple groups of 4G modules mounted on the current USB bus according to the operation mode, and creating an instance of the corresponding class based on the number, type and interface name; Specifically, when creating an instance of the corresponding class, a unique identifier is assigned to each 4G module, and each 4G module is independently controlled and managed through the identifier.
[0027] Among them, through the class instance created for each 4G module, the program can access the module's control interface. These interfaces include configuring module parameters, sending and receiving data, etc.
[0028] In this embodiment, according to the selected operation mode, the corresponding management strategy will be implemented to control and manage the 4G module. In the original mode, the program simply forwards data; while in the routing mode, complex routing logic needs to be implemented to manage the communication between multiple modules.
[0029] Among them, threads for inter-process and inter-thread communication are also created, and the multiple groups of 4G modules perform internal or external communication of the program based on the threads for inter-process and inter-thread communication.
[0030] Specifically, the process of creating threads for inter-process and inter-thread communication is as follows: According to the network management requirements of the charging pile station, the system needs to create multiple threads to handle the communication tasks of the 4G module.
[0031] The communication thread is responsible for monitoring the data reception of the 4G module and passing the received data to other components through the inter-process or inter-thread communication mechanism; at the same time, the communication thread also needs to process the sending requests from other components and send the data to be sent through the 4G module.
[0032] This embodiment uses a synchronization mechanism to coordinate inter-process and inter-thread communications, wherein the synchronization mechanism includes a mutex lock, a read-write lock, and a conditional variable.
[0033] Step 4, determining whether the modes and quantities of the multiple groups of 4G modules meet the preset requirements, if not, adjusting, otherwise executing the self-check command and acquiring the network; wherein, in acquiring the network, the network mode is set to bond mode, route mode or factory mode according to the user weight; Specifically, the self-check command includes but is not limited to checking the hardware connection status, software version, configuration parameters and signal strength of multiple groups of 4G modules to ensure that the multiple groups of 4G modules are in normal working condition.
[0034] Among them, the self-test command checks the physical connection between multiple groups of 4G modules and the charging pile station network management system, including USB interface, antenna connection, etc. By reading the relevant hardware status information, it can be determined whether the connection is normal, loose or damaged.
[0035] The self-test command checks the power supply of multiple 4G modules to ensure that the modules receive sufficient voltage and current.
[0036] The self-check command will send a command to query the software version number to multiple 4G modules, and the module will return the current software version information. By comparing the returned software version information with the known latest version information, it can be determined whether the module needs to update the software.
[0037] The self-test command reads multiple groups of 4G module configuration parameters, including network settings, APN information, and frequency band settings.
[0038] The self-test command measures the signal strength received by multiple 4G modules, usually using indicators such as RSSI. Based on the measured signal strength value, the current network coverage and communication quality can be determined.
[0039] In this embodiment, the Bond mode uses a link aggregation technology to aggregate multiple modules into one network card. For the application, multiple network cards will be abstracted into one network card, which has the same IP and MAC, and can use master-slave switching, load balancing, etc.; the route mode can adopt different traffic exports for different destination addresses according to user needs; the original mode is mainly for the situation where there is only one module, and the dial-up program provided by the manufacturer is used to access the Internet, which improves the same flexibility.
[0040] Step 5: After the network is successfully acquired, use the ping command to determine whether the network is connected. If multiple ping commands are unsuccessful, reset or restart the multiple groups of 4G modules to ensure that the network is unobstructed.
[0041] Specifically, after the network is successfully acquired, when the ping command is used to determine the network connectivity, the sending frequency, number of times and target IP address of the ping command can be configured according to actual needs to improve the accuracy of network determination.
[0042] In this embodiment, in a specific application, multiple groups of 4G modules and SIM cards are installed on the charging pile control board, the system startup parameters are set, and the corresponding configuration files are modified according to the selected mode. After the parameter configuration is completed, the system operates normally, can connect to the network, and monitor the network connection status.
[0043] In summary, the present invention provides a method for controlling mobile communications based on multiple groups of 4G modules, which achieves accurate management and control of 4G modules by obtaining the number, type and interface name of multiple groups of 4G modules mounted on the current USB bus, and creating instances of corresponding classes based on this information. This helps to improve the utilization of system resources and avoid waste of resources. After the network is successfully acquired, the system uses the ping command to monitor the connectivity of the network in real time. If multiple ping commands are unsuccessful, multiple groups of 4G modules are automatically reset or restarted to ensure that the network is unobstructed. This real-time monitoring and automatic recovery mechanism greatly improves the stability and reliability of the system.
[0044] Example 2 according to Figure 2 As shown, the present invention also provides a mobile communication control system based on multiple groups of 4G modules, including: Log configuration module 1, used to read the log configuration file, determine the log level and storage location; The command line parsing module 2 is used to parse the command line parameters according to the read log configuration file and determine the operation mode to be used; The module identification and instantiation module 3 is used to obtain the number, type and interface name of multiple groups of 4G modules mounted on the current USB bus according to the operation mode, and create an instance of the corresponding class based on the number, type and interface name; The module configuration and self-check module 4 is used to determine whether the modes and quantities of the multiple groups of 4G modules meet the preset requirements. If not, adjustments are made. Otherwise, the self-check command is executed and the network is acquired. In the acquisition of the network, the network mode is set to bond mode, route mode or factory mode according to the user weight. The network judgment and recovery module 5 is used to use the ping command to judge whether the network is connected after the network is successfully acquired. If the ping command fails multiple times, the multiple groups of 4G modules are reset or restarted to ensure smooth network.
[0045] Example 3 The present invention also provides a mobile terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, such as a mobile communication control program based on multiple groups of 4G modules.
[0046] When the processor executes the computer program, the steps of the above-mentioned method for controlling mobile communications based on multiple groups of 4G modules are implemented, for example: Read the log configuration file to determine the log level and save location; According to the read log configuration file, parse the command line parameters and determine the operation mode to be used; Obtain the number, type and interface name of multiple groups of 4G modules mounted on the current USB bus according to the operation mode, and create an instance of the corresponding class based on the number, type and interface name; Determine whether the modes and quantities of the multiple groups of 4G modules meet the preset requirements, if not, adjust them, otherwise execute the self-check command and acquire the network; wherein, in acquiring the network, the network mode is set to bond mode, route mode or factory mode according to the user weight; After the network is successfully acquired, the ping command is used to determine whether the network is connected. If multiple ping commands are unsuccessful, the multiple groups of 4G modules are reset or restarted to ensure that the network is unobstructed.
[0047] Alternatively, when the processor executes the computer program, the functions of each module in the above system are realized, for example: Log configuration module 1, used to read the log configuration file, determine the log level and storage location; The command line parsing module 2 is used to parse the command line parameters according to the read log configuration file and determine the operation mode to be used; The module identification and instantiation module 3 is used to obtain the number, type and interface name of multiple groups of 4G modules mounted on the current USB bus according to the operation mode, and create an instance of the corresponding class based on the number, type and interface name; The module configuration and self-check module 4 is used to determine whether the modes and quantities of the multiple groups of 4G modules meet the preset requirements. If not, adjustments are made. Otherwise, the self-check command is executed and the network is acquired. In the acquisition of the network, the network mode is set to bond mode, route mode or factory mode according to the user weight. The network judgment and recovery module 5 is used to use the ping command to judge whether the network is connected after the network is successfully acquired. If the ping command fails multiple times, the multiple groups of 4G modules are reset or restarted to ensure smooth network.
[0048] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory and executed by the processor to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program in the mobile terminal.
[0049] For example, the computer program can be divided into a log configuration module 1, a command line parsing module 2, a module identification and instantiation module 3, a module configuration and self-checking module 4, and a network judgment and recovery module 5. The specific functions of each module are as follows: Log configuration module 1, used to read the log configuration file, determine the log level and storage location; The command line parsing module 2 is used to parse the command line parameters according to the read log configuration file and determine the operation mode to be used; The module identification and instantiation module 3 is used to obtain the number, type and interface name of multiple groups of 4G modules mounted on the current USB bus according to the operation mode, and create an instance of the corresponding class based on the number, type and interface name; The module configuration and self-check module 4 is used to determine whether the modes and quantities of the multiple groups of 4G modules meet the preset requirements. If not, adjustments are made. Otherwise, the self-check command is executed and the network is acquired. In the acquisition of the network, the network mode is set to bond mode, route mode or factory mode according to the user weight. The network judgment and recovery module 5 is used to use the ping command to judge whether the network is connected after the network is successfully acquired. If the ping command fails multiple times, the multiple groups of 4G modules are reset or restarted to ensure smooth network.
[0050] The mobile terminal may be a computing device such as a desktop computer, a notebook, a palm computer, a cloud server, etc. The mobile terminal may include, but is not limited to, a processor and a memory.
[0051] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the mobile terminal, and uses various interfaces and lines to connect various parts of the entire mobile terminal.
[0052] The memory may be used to store the computer programs and / or modules, and the processor implements various functions of the mobile terminal by running or executing the computer programs and / or modules stored in the memory and calling the data stored in the memory.
[0053] The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SmartMediaCard, SMC), a secure digital (SecureDigital, SD) card, a flash card (FlashCard), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0054] Example 4 The present invention also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the steps of the mobile communication control method based on multiple groups of 4G modules.
[0055] If the module / unit integrated in the mobile terminal is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
[0056] Based on this understanding, the present invention implements all or part of the processes in the above method, and can also be completed by instructing related hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned aggregate reinforcement learning resource scheduling method can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc.
[0057] The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium, etc.
[0058] It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media does not include electrical carrier signals and telecommunication signals.
[0059] Example 5 A computer program product includes computer instructions, wherein the computer instructions instruct a computing device to perform operations corresponding to the above-mentioned method for controlling mobile communications based on multiple groups of 4G modules.
[0060] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A mobile communication control method based on multiple groups of 4G modules, characterized in that: include: Read the log configuration file to determine the log level and save location; According to the read log configuration file, parse the command line parameters and determine the operation mode to be used; Obtain the number, type and interface name of multiple groups of 4G modules mounted on the current USB bus according to the operation mode, and create an instance of the corresponding class based on the number, type and interface name; Determine whether the modes and quantities of the multiple groups of 4G modules meet the preset requirements, if not, adjust them, otherwise execute the self-check command and acquire the network; wherein, in acquiring the network, the network mode is set to bond mode, route mode or factory mode according to the user weight; After the network is successfully acquired, the ping command is used to determine whether the network is connected. If multiple ping commands are unsuccessful, the multiple groups of 4G modules are reset or restarted to ensure that the network is unobstructed.
2. A mobile communication control method based on multiple groups of 4G modules according to claim 1, characterized in that: In the step of parsing command line parameters and determining the operation mode to be used according to the read log configuration file, the operation modes include but are not limited to original mode, routing mode and bond mode, wherein the selection of the operation mode is based on the demand of the charging pile station for the network and the signal coverage of the mobile operator.
3. A method for controlling mobile communications based on multiple 4G modules according to claim 1, characterized in that: In the step of obtaining the number, type and interface name of multiple groups of 4G modules mounted on the current USB bus according to the operation mode, and creating an instance of the corresponding class based on the number, type and interface name, when creating the instance of the corresponding class, a unique identifier is assigned to each 4G module, and each 4G module is independently controlled and managed through the identifier.
4. A mobile communication control method based on multiple groups of 4G modules according to claim 1, characterized in that: After the step of obtaining the number, type and interface name of multiple groups of 4G modules mounted on the current USB bus according to the operation mode, and creating instances of corresponding classes based on the number, type and interface name, threads for inter-process and inter-thread communication are also created. The multiple groups of 4G modules perform internal or external communication of the program based on the threads for inter-process and inter-thread communication.
5. The method for controlling mobile communications based on multiple 4G modules according to claim 1, characterized in that: In the step of determining whether the modes and quantities of the multiple groups of 4G modules meet the preset requirements, making adjustments if not, otherwise executing a self-test command, and acquiring the network, the self-test command includes but is not limited to checking the hardware connection status, software version, configuration parameters and signal strength of the multiple groups of 4G modules to ensure that the multiple groups of 4G modules are in normal working condition.
6. A mobile communication control method based on multiple groups of 4G modules according to claim 1, characterized in that: In the step of setting the network mode to bond mode, route mode or factory mode according to user weight in acquiring the network, the Bond mode uses a link aggregation technology to aggregate multiple modules into a network card, which has the same IP and MAC and can use master-slave switching and load balancing; the route mode can adopt different traffic exports for different destination addresses according to user needs; the original mode uses the dial-up program provided by the manufacturer to access the Internet for the situation where there is only one module.
7. A mobile communication control method based on multiple groups of 4G modules according to claim 1, characterized in that: In the step of using the ping command to determine whether the network is connected after the network is successfully acquired, and resetting or restarting the multiple groups of 4G modules if multiple ping commands are unsuccessful to ensure smooth network access, after the network is successfully acquired, when using the ping command to determine network connectivity, the sending frequency, number of times and target IP address of the ping command can be configured according to actual needs to improve the accuracy of network judgment.
8. A mobile communication control system based on multiple groups of 4G modules, characterized in that: include: The log configuration module is used to read the log configuration file and determine the log level and storage location; The command line parsing module is used to parse the command line parameters according to the read log configuration file and determine the operation mode to be used; A module identification and instantiation module, used to obtain the number, type and interface name of multiple groups of 4G modules mounted on the current USB bus according to the operation mode, and create an instance of the corresponding class based on the number, type and interface name; The module configuration and self-check module is used to determine whether the mode and quantity of the multiple groups of 4G modules meet the preset requirements. If not, adjustments are made. Otherwise, the self-check command is executed and the network is acquired. In the acquisition of the network, the network mode is set to bond mode, route mode or factory mode according to the user weight. The network judgment and recovery module is used to use the ping command to determine whether the network is connected after the network is successfully acquired. If multiple ping commands are unsuccessful, the multiple groups of 4G modules are reset or restarted to ensure smooth network access.
9. A mobile terminal comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the mobile communication control method based on multiple groups of 4G modules are implemented as described in any one of claims 1-7.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by the processor, the steps of the mobile communication control method based on multiple groups of 4G modules as described in any one of claims 1 to 7 are implemented.