Wireless expansion board capable of automatically switching network and network switching method thereof

By building a communication network switching model on the wireless expansion board and automatically selecting the optimal network, the problems of automated network switching and speed power consumption balance in wireless communication technology are solved, and user experience and device stability are improved.

CN119052872AActive Publication Date: 2024-11-29BEIJING FENGHUI YUNBO TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411536100.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-31
Publication Date
2024-11-29
Estimated Expiration
2044-10-31

AI Technical Summary

Technical Problem

The existing wireless communication technology lacks an automated network switching mechanism and cannot dynamically adjust network settings according to user scenarios or service types, resulting in unbalanced transmission rate and power consumption, poor user experience, and difficult to guarantee equipment performance and stability during network switching.

Method used

Design a wireless expansion board that automatically switches the network, builds a communication network switching model through SIM card module, expansion interface module, wireless interface module and control module, and uses CNN model to predict transmission rate and power consumption data, and according to user needs and equipment status Automatically select the optimal network to realize network switching.

Benefits of technology

It realizes automatic switching of wireless networks, dynamically adjusts network settings, improves the balance of transmission rate and power consumption, improves the efficiency and stability of network switching, and ensures device performance and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119052872A_ABST
    Figure CN119052872A_ABST
Patent Text Reader

Abstract

The invention provides a wireless expansion board capable of automatically switching networks and a network switching method thereof, and the expansion board comprises an SIM card module which is used for installing an SIM card; the expansion interface module is used for externally connecting a universal routing board or CPE (Customer Premise Equipment); the wireless interface module is electrically connected with the SIM card module through an SIM card interface and is electrically connected with the expansion interface module through a USB protocol; the out-of-band interface module is used for providing remote control service; and the control module is electrically connected with the wireless interface module and the out-of-band interface module, and is used for realizing SIM card switching through the wireless interface module and realizing remote control service through the out-of-band interface module. According to the plug-in 4G / 5G module wireless expansion board, the standard USB interface is used as an expansion interface, so that an enterprise is not limited by the supporting capability of a universal routing operation system on a 4G / 5G module product any more, and independent access and operation and maintenance management of a wireless network are flexibly realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of wireless communications, and in particular relates to a wireless expansion board for automatically switching networks and a network switching method thereof. Background Art

[0002] With the development of wireless communication technology, users have higher and higher requirements for the network performance of external universal routing boards or CPE (Customer Premises Equipment). In different usage scenarios or business types, users have different requirements for transmission rate and power consumption. Existing network access technologies are often unable to dynamically adjust according to users' specific needs, resulting in the inability to maximize the performance of equipment and the problem of excessive power consumption. In addition, when users switch between different networks, manual configuration is often required, which is complicated and inefficient.

[0003] At present, wireless communication access network switching technology mainly faces the following challenges: 1. There is a lack of an automated network switching mechanism, and network settings cannot be automatically adjusted according to user scenarios or service types. 2. Existing technologies are difficult to achieve a balance between rate and power consumption, resulting in poor user experience. 3. During the network switching process, device performance and stability are difficult to guarantee. Summary of the invention

[0004] The present invention provides a wireless expansion board and system for automatically switching networks. The present invention can automatically switch networks according to the usage scenario or service type of an external universal routing board or CPE device, optimize transmission rate and power consumption, and improve user experience.

[0005] The technical solution of the present invention to solve the above technical problems is as follows: In a first aspect, the present invention provides a wireless expansion board for automatically switching networks, comprising: SIM card module, used to install a SIM card; Extension interface module, used for external universal routing board or CPE equipment; A wireless interface module, electrically connected to the SIM card module via a SIM card interface, and electrically connected to the expansion interface module via a USB protocol; Out-of-band interface module for providing remote control services; A control module, electrically connected to the wireless interface module and the out-of-band interface module, for implementing SIM card switching through the wireless interface module and implementing remote control services through the out-of-band interface module; Among them, the control module implements switching of different access networks in the following manner: network classification of the usage scenarios or business types of the external universal routing board or CPE device, and obtaining the transmission rate and power consumption data of the universal routing board or CPE device in different usage scenarios or business types; using the usage scenario or business type characteristics of the external universal routing board or CPE device as input, and the corresponding transmission rate and power consumption data as output, to construct a training set; constructing a communication network switching model, using the training set to train the communication network switching model, and converging with the maximum transmission rate or minimum power consumption or rate power consumption balance as the goal to obtain a maximum transmission rate model, a minimum power consumption model and a balance model; for the external device actually connected, its usage scenario or business type is detected, and the transmission rate and power consumption data of the external device are predicted and output using the communication network switching model after the above training is completed; and based on the above predicted transmission rate and power consumption data, combined with the actual rate requirements and the power supply status of the device, its access network is preliminarily selected.

[0006] In some embodiments, the control module performs refined classification of scenarios using an external universal routing board or CPE device, identifies different usage scenarios or business types of the device, and further divides each usage scenario or business type into different network usage levels, and then records the transmission rate and power consumption data of the device in detail for each usage scenario or business type; in the process of preparing to build a training set, the collected data is preprocessed, and the usage scenario or business type characteristics of the external universal routing board or CPE device are quantified, and mapped into descriptive feature vectors according to each usage scenario or business type. These vectors can represent the device behavior pattern in a specific scenario; then, for each usage scenario or business type, the historical data of the transmission rate and power consumption data of the universal routing board or CPE device in different usage scenarios or business types is obtained, and the transmission rate and power consumption data corresponding to these feature vectors are extracted as the output parameters of the model to facilitate subsequent model training; data pairing is performed to pair the extracted features with the corresponding transmission rate and power consumption data to ensure that each feature vector has a corresponding set of output data; the paired feature vectors and output data are combined to form a complete training set.

[0007] In some embodiments, the process of constructing a communication network switching model specifically includes: initializing a CNN model structure, which includes multiple convolutional layers, pooling layers, and fully connected layers; training the model using a constructed training set; the training set consists of a feature vector and corresponding label data; inputting the feature vector into the CNN model, calculating the output through forward propagation, and comparing it with the actual label data to calculate the loss function, which sets a loss component and a corresponding trade-off coefficient for each target according to different targets of maximum transmission rate, minimum power consumption, or rate-power balance; optimizing the model by adjusting the value of the trade-off coefficient to obtain a maximum transmission rate model, a minimum power consumption model, and a balanced model, respectively, and using the Adam optimizer to update the parameters.

[0008] In some embodiments, after completing the training of the communication network switching model, the usage scenario or business type of the external device that is actually connected is detected by analyzing the real-time data stream and behavior pattern of the device; based on the identified usage scenario or business type, a corresponding feature vector is generated, which will be used as the input of the communication network switching model, and the trained communication network switching model is used to predict the transmission rate and power consumption data of the external device; after obtaining the predicted transmission rate and power consumption data of the external device, the optimal wireless communication access network is selected based on these data and the actual rate requirements and power supply status of the device.

[0009] In some embodiments, the SIM card module includes at least two SIM card holders, and the SIM card holders support 4G or 5G SIM cards.

[0010] In some embodiments, the out-of-band interface module includes two TTL serial ports.

[0011] In some embodiments, it also includes: a card adjustment module, which is electrically connected to the SIM card module and the control module; the control module can switch the SIM card through the card adjustment module.

[0012] In a second aspect, the present invention provides a network switching method for a wireless expansion board that automatically switches networks, comprising the following steps: Step S1: network classify the usage scenarios or service types of the external universal routing board or CPE device, and obtain the transmission rate and power consumption data of the universal routing board or CPE device in different usage scenarios or service types; Step S2: Using the usage scenario or service type characteristics of the external universal routing board or CPE device as input, and the corresponding transmission rate and power consumption data as output, to construct a training set; Step S3: construct a communication network switching model, train the communication network switching model using the training set, and converge with the maximum transmission rate or minimum power consumption or rate power consumption balance as the goal to obtain a maximum transmission rate model, a minimum power consumption model and a balance model; Step S4: For the external device actually connected, detect its usage scenario or business type, and use the communication network switching model after the above training to predict and output the transmission rate and power consumption data of the external device; and based on the above predicted transmission rate and power consumption data, combined with the actual rate requirements and device power supply status, preliminarily select its access network.

[0013] In some embodiments, it also includes: Step S5: Continuously monitor the service type and network transmission rate of the external device actually connected, and when it is found that the service type needs to be changed or the network transmission rate is lower than a preset threshold, try to switch to other wireless networks.

[0014] In some embodiments, the method also includes: implementing switching of different access networks: classifying the usage scenarios or business types of the external universal routing board or CPE device, and obtaining the transmission rate and power consumption data of the universal routing board or CPE device in different usage scenarios or business types; taking the usage scenario or business type characteristics of the external universal routing board or CPE device as input, and the corresponding transmission rate and power consumption data as output, to construct a training set; constructing a communication network switching model, using the training set to train the communication network switching model, and converging with the maximum transmission rate or minimum power consumption or rate power consumption balance as the goal to obtain a maximum transmission rate model, a minimum power consumption model and a balance model; for the external device actually connected, detecting its usage scenario or business type, and using the communication network switching model after the above training is completed, predicting and outputting the transmission rate and power consumption data of the external device; and based on the above predicted transmission rate and power consumption data, combined with the actual rate requirements and the power supply status of the device, preliminarily selecting its access network.

[0015] In some embodiments, the method further includes: performing refined classification of scenarios in which an external universal routing board or CPE device is used, identifying different usage scenarios or business types in which the device is located, and for each usage scenario or business type, further dividing it into different network usage levels, and then for each usage scenario or business type, recording the transmission rate and power consumption data of the device in detail; in the process of preparing to build a training set, preprocessing the collected data, quantifying the usage scenario or business type characteristics of the external universal routing board or CPE device, and mapping them into descriptive feature vectors according to each usage scenario or business type, these vectors can represent the device behavior pattern in a specific scenario; then, for each usage scenario or business type, obtaining historical data of the transmission rate and power consumption data of the universal routing board or CPE device in different usage scenarios or business types, extracting the transmission rate and power consumption data corresponding to these feature vectors as the output parameters of the model, so as to facilitate subsequent model training; performing data pairing, pairing the extracted features with the corresponding transmission rate and power consumption data, ensuring that each feature vector has a corresponding set of output data; combining the paired feature vectors and output data to form a complete training set.

[0016] In some embodiments, the process of constructing a communication network switching model specifically includes: initializing a CNN model structure, which includes multiple convolutional layers, pooling layers, and fully connected layers; training the model using a constructed training set; the training set consists of a feature vector and corresponding label data; inputting the feature vector into the CNN model, calculating the output through forward propagation, and comparing it with the actual label data to calculate the loss function, which sets a loss component and a corresponding trade-off coefficient for each target according to different targets of maximum transmission rate, minimum power consumption, or rate-power balance; optimizing the model by adjusting the value of the trade-off coefficient to obtain a maximum transmission rate model, a minimum power consumption model, and a balanced model, respectively, and using the Adam optimizer to update the parameters.

[0017] In some embodiments, the method also includes: after completing the training of the communication network switching model, detecting the usage scenario or business type of the external device that is actually connected by analyzing the real-time data stream and behavior pattern of the device; generating a corresponding feature vector based on the identified usage scenario or business type, which will be used as the input of the communication network switching model, and using the trained communication network switching model to predict the transmission rate and power consumption data of the external device; after obtaining the predicted transmission rate and power consumption data of the external device, selecting the optimal wireless communication access network based on these data and the actual rate requirements and power supply status of the device.

[0018] In a third aspect, the present invention further provides a computer, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the network switching method as described above when executing the computer program.

[0019] In a fourth aspect, the present invention further provides a readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the network switching method as described above.

[0020] The beneficial effects of this application are: The present application provides a wireless expansion board and system for automatically switching networks, which have the following beneficial effects: 1. By using the plug-in 4G / 5G module wireless expansion board product as a unit and the standard USB interface as a docking interface, it is no longer subject to the support capabilities of the general routing board manufacturer's own operating system for 4G / 5G module products. Even if its general routing board does not support 4G / 5G modules, it can still realize the capacity loading of the wireless network. At the same time, it can also be installed in a 4G or 5G module in a plug-and-play manner according to customer needs, and the disassembly and installation of 4G and 5G modules for recycled equipment has been realized. 1. The module materials are utilized to the maximum extent, and the plug-in 4G / 5G module wireless expansion board product itself also supports the out-of-band management function of the 4G / 5G module and is compatible with its out-of-band management system, which can flexibly realize independent access and operation and maintenance management during the wireless network operation phase; 2. It can switch the communication network of the external device according to the communication network switching model through the network switching method, thereby realizing automatic network switching without manual intervention by the user; dynamically adjust the network settings according to user needs to achieve a balance between rate and power consumption; improve the efficiency and stability of network switching, and ensure device performance and user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 This is a schematic diagram of the wireless expansion board of this application; Figure 2 This application discloses a flow chart of a network switching method for a wireless expansion board that automatically switches networks. DETAILED DESCRIPTION

[0022] The principles and features of the present invention are described below in conjunction with the accompanying drawings. The examples given are only used to explain the present invention and are not used to limit the scope of the present invention.

[0023] In order to more clearly understand the above-mentioned purpose, features and advantages of the present application, the present application is further described in detail below in conjunction with the accompanying drawings and examples. It is to be understood that the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. The specific embodiments described herein are merely used to explain the present application, rather than to limit the present application. Based on the described embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope of protection of the present application.

[0024] It should be noted that, in this document, relational terms such as “first” and “second” are merely used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations.

[0025] Figure 1 This is a schematic diagram of the wireless expansion board of this application.

[0026] The present application provides a wireless expansion board for automatically switching networks. As a wireless expansion product of a plug-in 4G / 5G module, the wireless expansion board can be connected to a general routing board or CPE device through a standard USB interface as a docking interface, so that it is no longer subject to the support capabilities of the general routing board manufacturer's own operating system for 4G / 5G module products. Even if its general routing board does not support 4G / 5G modules, it can still realize the capacity loading of the wireless network. At the same time, it can also load 4G or 5G modules in a plug-and-play manner according to customer needs, and for the disassembly and assembly of 4G and 5G modules for recycled equipment, the maximum utilization of module materials has been realized, and the plug-in 4G / 5G module wireless expansion board product itself is also compatible with the out-of-band management function of the 4G / 5G module, which can flexibly realize independent access and operation and maintenance management in the wireless network operation stage, thereby solving the above technical problems.

[0027] Combination Figure 1 , including: a SIM card module, used for installing a SIM card; Extension interface module, used for external universal routing board or CPE equipment; A wireless interface module, electrically connected to the SIM card module via a SIM card interface, and electrically connected to the expansion interface module via a USB protocol; Out-of-band interface module for providing remote control services; A control module, electrically connected to the wireless interface module and the out-of-band interface module, for implementing SIM card switching through the wireless interface module and implementing remote control services through the out-of-band interface module; Among them, the control module implements switching of different access networks in the following manner: network classification of the usage scenarios or business types of the external universal routing board or CPE device, and obtaining the transmission rate and power consumption data of the universal routing board or CPE device in different usage scenarios or business types; using the usage scenario or business type characteristics of the external universal routing board or CPE device as input, and the corresponding transmission rate and power consumption data as output, to construct a training set; constructing a communication network switching model, using the training set to train the communication network switching model, and converging with the maximum transmission rate or minimum power consumption or rate power consumption balance as the goal to obtain a maximum transmission rate model, a minimum power consumption model and a balance model; for the external device actually connected, its usage scenario or business type is detected, and the transmission rate and power consumption data of the external device are predicted and output using the communication network switching model after the above training is completed; and based on the above predicted transmission rate and power consumption data, combined with the actual rate requirements and the power supply status of the device, its access network is preliminarily selected.

[0028] Specifically, the embodiment of the present application is mainly for the wireless communication expansion of the universal routing board or CPE device. To this end, the present solution mainly includes a SIM card module, an expansion interface module, a wireless interface module, an out-of-band interface module and a control module. Among them, the SIM card module is used to install the SIM card, and supports 3 types of SIM cards, plug-in cards of various operators, and patch cards of various operators; the expansion interface module is used to connect to the universal routing board or CPE device, and provide it with wireless network communication through the interface.

[0029] The wireless interface module is a communication module based on the SIM card, which is mainly electrically connected to the SIM card module through the SIM card interface, and is electrically connected to the expansion interface module through the USB protocol, so as to realize wireless network communication. The wireless interface module can simultaneously support 4G and 5G wireless network communications. In addition, the wireless interface module in the embodiment of the present application is based on the M.2 interface of the 5G module, and the RESERVED pin in the M.2 interface is modified to support the functions unique to Mini PCIe, so that the interface can be compatible with 4G at the same time, and realize communication with external devices through the USB interface.

[0030] Out-of-Band (OOB) is a term used in communications, which refers to sending information through another communication channel instead of the main communication channel. OOB is a technology that combines multiple communication channels to provide more reliable communication services. OOB technology is mainly used in backup communication channels. When the main communication channel fails, the backup communication channel can take over to ensure timely transmission of information. In remote control, OOB technology can provide reliable remote control services to ensure timely completion of remote control.

[0031] The control module is the core module of the expansion board. The control module is electrically connected to the wireless interface module and the out-of-band interface module, and is used to switch SIM cards through the wireless interface module to switch different access networks, and to realize remote control services through the out-of-band interface module.

[0032] Among them, the control module implements switching of different access networks in the following manner: network classification of the usage scenarios or business types of the external universal routing board or CPE device, and obtaining the transmission rate and power consumption data of the universal routing board or CPE device in different usage scenarios or business types; using the usage scenario or business type characteristics of the external universal routing board or CPE device as input, and the corresponding transmission rate and power consumption data as output, to construct a training set; constructing a communication network switching model, using the training set to train the communication network switching model, and converging with the maximum transmission rate or minimum power consumption or rate power consumption balance as the goal to obtain a maximum transmission rate model, a minimum power consumption model and a balance model; for the external device actually connected, its usage scenario or business type is detected, and the transmission rate and power consumption data of the external device are predicted and output using the communication network switching model after the above training is completed; and based on the above predicted transmission rate and power consumption data, combined with the actual rate requirements and the power supply status of the device, its access network is preliminarily selected.

[0033] In the specific execution process of the control module, first of all, it is necessary to finely classify the scenarios using external universal routing boards or CPE devices. This step involves identifying the different usage scenarios or business types of the device, which may include factory automation, remote monitoring, energy management, intelligent transportation systems, water and wastewater treatment, etc. For each usage scenario or business type, it is further divided into different network usage levels to ensure that network switching can be accurately controlled. Subsequently, for each usage scenario or business type, the transmission rate and power consumption data of the device are recorded in detail. More specifically, the operation data of the device in each usage scenario can be collected by real-time monitoring and logging. These data include but are not limited to transmission rate and power consumption data. In order to obtain these data, the following steps can be taken: tag the device to identify its behavior in a specific scenario; use data collection tools to monitor the transmission rate and power consumption of the device in real time; and classify and store the collected data according to the usage scenario.

[0034] Furthermore, in the process of preparing to build the training set, the collected data must first be preprocessed; this includes quantifying the usage scenarios or service type characteristics of the external universal routing board or CPE device so that these characteristics can be used as input parameters of the model. Specifically, each usage scenario or service type is mapped into a descriptive feature vector, which can represent the device behavior pattern in a specific scenario. It can be expressed as , where x represents a feature vector describing the usage scenario or business type, Indicates the expected usage duration of the nth usage scenario or service type.

[0035] Furthermore, for each of the above-mentioned usage scenarios or service types, obtain the historical data of the transmission rate and power consumption data of the general routing board or CPE device in different usage scenarios or service types, extract the transmission rate and power consumption data corresponding to these feature vectors, and use them as the output parameters of the model to facilitate subsequent model training. Perform data pairing to pair the extracted features with the corresponding transmission rate and power consumption data to ensure that each feature vector has a corresponding set of output data. Combine the paired feature vectors and output data to form a complete training set, which can be expressed as:

[0036]

[0037]

[0038] in and The label data respectively represent the transmission rate and the power consumption data corresponding to each vector element of the feature vector.

[0039] In order to achieve efficient wireless communication access network switching, a deep learning algorithm is used to build a communication network switching model. Specifically, a convolutional neural network (CNN) is selected because it performs well in processing time series data and can effectively identify complex patterns. Initialize the CNN model structure, which includes multiple convolutional layers, pooling layers, and fully connected layers, represented as ;in, represents the convolutional layer, represents the pooling layer, Represents a fully connected layer. The model is trained using the training set constructed previously. The training set consists of feature vectors and the corresponding tag data (transmission rate and power consumption ); the eigenvector The input is sent to the CNN model, the output is calculated through forward propagation, and the loss function is calculated by comparing it with the actual label data. Regarding the loss function, in order to achieve different goals (maximum transmission rate, minimum power consumption, or rate-power balance), a multi-task learning framework is adopted to set a loss component for each goal, so that Losses, of which, and is the trade-off coefficient; by adjusting and The model is optimized to obtain the maximum transmission rate model, the minimum power consumption model and the balanced model respectively. The Adam optimizer is used for parameter update because it performs well in a variety of tasks and can converge quickly.

[0040] After completing the training of the above models, the actual connected external devices are tested for usage scenarios or business types. This step is achieved by analyzing the real-time data stream and behavior patterns of the devices. The detection process involves real-time monitoring of the data stream of the external device, including information such as packet size, transmission frequency, application layer protocol, etc.; classifying the behavior patterns of the external device to identify its usage scenario or business type; and generating a corresponding feature vector based on the identified usage scenario or business type. This vector will serve as the input of the communication network switching model. Using the trained communication network switching model, the feature vector Input into the model to predict the transmission rate and power consumption data of the external device. This process can be expressed as:

[0041] is a feature vector generated to describe the usage scenario or business type. and They are the transmission rate and power consumption predicted by the model respectively.

[0042] After obtaining the predicted transmission rate and power consumption data of the external device, the optimal wireless communication access network is selected based on these data and the actual rate requirements and power supply status of the device. The specific implementation method is as follows: First, the predicted transmission rate and power consumption The actual speed requirement of the device and power supply status Compare; the purpose of this step is to determine whether the current device performance meets user needs and evaluate whether the device's power supply capacity is sufficient to support the use of the selected network; obtain the actual rate requirements of the device and power supply status ; The predicted transmission rate and power consumption Compare with the actual demand; according to the comparison result, apply the above decision logic to determine the preliminary plan for accessing the network; according to the preliminary plan, adjust the network configuration of the device to access the optimal wireless communication network. For example, suppose the actual rate requirement of the device is 10Mbps and the power supply status is 5W. If the predicted transmission rate is 15Mbps and the power consumption is 4W, then according to the above logic, the system will select a high transmission rate network. If the predicted transmission rate is 8Mbps and the power consumption is 6W, the system will select a balanced network to ensure that the user experience will not be affected by insufficient rate, and the device will not overheat or the battery will be exhausted due to excessive power consumption. In this way, the present invention can intelligently select the most suitable wireless communication access network according to the actual status of the device and user needs.

[0043] In some embodiments, a power interface is also included for connecting to an external power source.

[0044] Specifically, this solution can be connected to an external power supply through a power interface to obtain power, and the power interface can be used to obtain 5V or 12V power. In addition, the expansion interface module in the above embodiment can also be used to obtain power, and 5V direct power can be obtained through the expansion interface module. The above two power-taking methods can be adaptively adjusted according to actual needs.

[0045] In some embodiments, the SIM card module includes at least two SIM card holders, and the SIM card holders support 4G or 5G SIM cards.

[0046] Specifically, the SIM card module is used to install SIM cards, and supports three types of SIM cards, plug-in cards of various operators, and patch cards of various operators; the expansion interface module is used to connect to an external universal routing board or CPE device, and provide it with wireless network communication through this interface.

[0047] In some embodiments, the out-of-band interface module includes two TTL serial ports.

[0048] Specifically, the out-of-band interface module of the embodiment of the present application includes two TTL serial ports, which can support a communication rate of (1200~115200bps), support 8 data bits, support 1 stop bit, and support parity check.

[0049] In some embodiments, it also includes: a card adjustment module, which is electrically connected to the SIM card module and the control module; the control module can switch the SIM card through the card adjustment module.

[0050] Specifically, in order to realize the switching of wireless network communication, the embodiment of the present application is further provided with a card adjustment module based on the above-mentioned expansion board. The card adjustment module is electrically connected to the SIM card module and the control module, so that the control module can switch the SIM card through the card adjustment module.

[0051] In some embodiments, an indicator light module is also included, which is electrically connected to the power interface and the control module and is used to indicate whether the power is turned on, as well as the wireless type and signal strength.

[0052] The embodiment of the present application also includes an indicator light module, specifically including a power indicator light, a 4G / 5G module online indicator light, a 4G / 5G module signal strength indicator light, and a card adjustment module heartbeat indicator light, which are respectively used to indicate power, indicate network type, indicate signal strength, and indicate network switching.

[0053] In a second aspect, an embodiment of the present application further provides a network switching method for a wireless expansion board that automatically switches networks, which is used for a wireless expansion board that automatically switches networks in any of the above embodiments, comprising the following steps: Step S1: network classify the usage scenarios or service types of the external universal routing board or CPE device, and obtain the transmission rate and power consumption data of the universal routing board or CPE device in different usage scenarios or service types; Step S2: Using the usage scenario or service type characteristics of the external universal routing board or CPE device as input, and the corresponding transmission rate and power consumption data as output, to construct a training set; Step S3: construct a communication network switching model, train the communication network switching model using the training set, and converge with the maximum transmission rate or minimum power consumption or rate power consumption balance as the goal to obtain a maximum transmission rate model, a minimum power consumption model and a balance model; Step S4: For the external device actually connected, detect its usage scenario or service type, and use the communication network switching model after the above training to predict and output the transmission rate and power consumption data of the external device; and based on the above predicted transmission rate and power consumption data, combined with the actual rate requirements and the power supply status of the device, preliminarily select its access network.

[0054] First, in step S1, it is necessary to finely classify the scenarios in which an external universal routing board or CPE device is used. This step involves identifying the different usage scenarios or business types in which the device is located, which may include factory automation, remote monitoring, energy management, intelligent transportation systems, water and wastewater treatment, etc. For each business type, it is further divided into different network usage levels to ensure that network switching can be accurately controlled. Subsequently, for each usage scenario or business type, the transmission rate and power consumption data of the device are recorded in detail. More specifically, the operation data of the device in various usage scenarios can be collected by real-time monitoring and logging. These data include but are not limited to transmission rate and power consumption data. In order to obtain these data, the following steps can be taken: mark the device to identify its behavior in a specific scenario; use data collection tools to monitor the transmission rate and power consumption of the device in real time; and classify and store the collected data according to the usage scenario.

[0055] Then, in step S2, in the process of preparing to build the training set, the collected data must first be preprocessed; this includes quantifying the usage scenarios or service type characteristics of the external universal routing board or CPE device so that these characteristics can be used as input parameters of the model. Specifically, each usage scenario or service type will be mapped into a descriptive feature vector, which can represent the device behavior pattern in a specific scenario. It can be expressed as , where x represents a feature vector describing the usage scenario or business type, Indicates the expected usage duration of the nth usage scenario or service type.

[0056] Furthermore, for each of the above-mentioned usage scenarios or service types, obtain the historical data of the transmission rate and power consumption data of the general routing board or CPE device in different usage scenarios or service types, extract the transmission rate and power consumption data corresponding to these feature vectors, and use them as the output parameters of the model to facilitate subsequent model training. Perform data pairing to pair the extracted features with the corresponding transmission rate and power consumption data to ensure that each feature vector has a corresponding set of output data. Combine the paired feature vectors and output data to form a complete training set, which can be expressed as:

[0057]

[0058]

[0059] in and The label data respectively represent the transmission rate and the power consumption data corresponding to each vector element of the feature vector.

[0060] Step S3, in order to achieve efficient wireless communication access network switching, a deep learning algorithm is used to build a communication network switching model. Specifically, a convolutional neural network (CNN) is selected because it performs well in processing time series data and can effectively identify complex patterns. Initialize the CNN model structure, which includes multiple convolutional layers, pooling layers, and fully connected layers, represented as ;in, represents the convolutional layer, represents the pooling layer, Represents a fully connected layer. The model is trained using the training set constructed previously. The training set consists of feature vectors and the corresponding tag data (transmission rate and power consumption ); the eigenvector The input is sent to the CNN model, the output is calculated through forward propagation, and the loss function is calculated by comparing it with the actual label data. Regarding the loss function, in order to achieve different goals (maximum transmission rate, minimum power consumption, or rate-power balance), a multi-task learning framework is adopted to set a loss component for each goal, so that Losses, of which, and is the trade-off coefficient; by adjusting and The model is optimized to obtain the maximum transmission rate model, the minimum power consumption model and the balanced model respectively. The Adam optimizer is used for parameter update because it performs well in a variety of tasks and can converge quickly.

[0061] After completing the training of the above model, in step S4, the actual connected external device is tested for usage scenarios or service types. This step is achieved by analyzing the real-time data stream and behavior pattern of the device. The detection process involves real-time monitoring of the data stream of the external device, including information such as data packet size, transmission frequency, application layer protocol, etc.; classifying the behavior pattern of the external device to identify its usage scenario or service type; generating a corresponding feature vector based on the identified usage scenario or service type, which will be used as the input of the communication network switching model. Using the trained communication network switching model, we convert the feature vector Input into the model to predict the transmission rate and power consumption data of the external device. This process can be expressed as:

[0062] is a feature vector generated to describe the usage scenario or business type. and They are the transmission rate and power consumption predicted by the model respectively.

[0063] After obtaining the predicted transmission rate and power consumption data of the external device, the optimal wireless communication access network is selected based on these data and the actual rate requirements and power supply status of the device. The specific implementation method is as follows: First, the predicted transmission rate and power consumption The actual speed requirement of the device and power supply status Compare; the purpose of this step is to determine whether the current device performance meets user needs and evaluate whether the device's power supply capacity is sufficient to support the use of the selected network; obtain the actual rate requirements of the device and power supply status ; The predicted transmission rate and power consumption Compare with the actual demand; according to the comparison result, apply the above decision logic to determine the preliminary plan for accessing the network; according to the preliminary plan, adjust the network configuration of the device to access the optimal wireless communication network. For example, suppose the actual rate requirement of the device is 10Mbps and the power supply status is 5W. If the predicted transmission rate is 15Mbps and the power consumption is 4W, then according to the above logic, the system will select a high transmission rate network. If the predicted transmission rate is 8Mbps and the power consumption is 6W, the system will select a balanced network to ensure that the user experience will not be affected by insufficient rate, and the device will not overheat or the battery will be exhausted due to excessive power consumption. In this way, the present invention can intelligently select the most suitable wireless communication access network according to the actual status of the device and user needs.

[0064] In some embodiments, it also includes: Step S5: Continuously monitor the service type and network transmission rate of the external device actually connected, and when it is found that the service type needs to be changed or the network transmission rate is lower than a preset threshold, try to switch to other wireless networks.

[0065] Specifically, after completing the initial switching of the network type, the embodiment of the present application will continue to monitor the service type and network transmission rate of the external device actually connected. When it is found that the service type needs to be changed or the network transmission rate is lower than the preset threshold, it will attempt to switch to other wireless networks to ensure that the communication network can adaptively switch according to the service type and network transmission rate of the external device.

[0066] In a third aspect, an embodiment of the present application further provides a computer, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the network switching method as described above when executing the computer program.

[0067] In a fourth aspect, an embodiment of the present application further provides a readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the network switching method as described above.

[0068] Those skilled in the art will appreciate that although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features from different embodiments is meant to be within the scope of the present application and to form different embodiments.

[0069] Those skilled in the art will appreciate that the description of each embodiment has its own emphasis, and for parts not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0070] Although the embodiments of the present application are described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present application, and such modifications and variations all fall within the scope defined by the attached claims. The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or substitutions within the technical scope disclosed by the present invention, and these modifications or substitutions should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

[0071] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A wireless expansion board for automatically switching networks, characterized in that: include: SIM card module, used to install a SIM card; Extension interface module, used for external universal routing board or CPE equipment; A wireless interface module, electrically connected to the SIM card module via a SIM card interface, and electrically connected to the expansion interface module via a USB protocol; Out-of-band interface module for providing remote control services; A control module, electrically connected to the wireless interface module and the out-of-band interface module, for implementing SIM card switching through the wireless interface module, thereby switching different access networks, and implementing remote control services through the out-of-band interface module; Among them, the control module implements switching of different access networks in the following manner: network classification of the usage scenarios or business types of the external universal routing board or CPE device, and obtaining the transmission rate and power consumption data of the universal routing board or CPE device in different usage scenarios or business types; using the usage scenario or business type characteristics of the external universal routing board or CPE device as input, and the corresponding transmission rate and power consumption data as output, to construct a training set; constructing a communication network switching model, using the training set to train the communication network switching model, and converging with the maximum transmission rate or minimum power consumption or rate power consumption balance as the goal to obtain a maximum transmission rate model, a minimum power consumption model and a balance model; for the external device actually connected, its usage scenario or business type is detected, and the transmission rate and power consumption data of the external device are predicted and output using the communication network switching model after the above training is completed; and based on the above predicted transmission rate and power consumption data, combined with the actual rate requirements and the power supply status of the device, its access network is preliminarily selected.

2. A wireless expansion board for automatically switching networks according to claim 1, characterized in that: The control module classifies the scenarios of using an external universal routing board or CPE device in a refined manner, identifies different usage scenarios or business types of the device, and further divides each usage scenario or business type into different network usage levels, and then records the transmission rate and power consumption data of the device in detail for each usage scenario or business type; in the process of preparing to build a training set, the collected data is pre-processed, the usage scenario or business type characteristics of the external universal routing board or CPE device are quantified, and mapped into descriptive feature vectors according to each usage scenario or business type, and these vectors can represent the device behavior pattern in a specific scenario; then, for each usage scenario or business type, the historical data of the transmission rate and power consumption data of the universal routing board or CPE device in different usage scenarios or business types are obtained, and the transmission rate and power consumption data corresponding to these feature vectors are extracted as the output parameters of the model to facilitate subsequent model training; data pairing is performed to pair the extracted features with the corresponding transmission rate and power consumption data to ensure that each feature vector has a corresponding set of output data; the paired feature vectors and output data are combined to form a complete training set.

3. A wireless expansion board for automatically switching networks according to claim 2, characterized in that: The process of constructing a communication network switching model by the control module specifically includes: initializing a CNN model structure, which includes multiple convolutional layers, pooling layers and fully connected layers; training the model using a constructed training set; the training set consists of a feature vector and corresponding label data; inputting the feature vector into the CNN model, calculating the output through forward propagation, and comparing it with the actual label data to calculate the loss function, which sets a loss component and a corresponding trade-off coefficient for each target according to different targets of maximum transmission rate, minimum power consumption or rate-power consumption balance; optimizing the model by adjusting the value of the trade-off coefficient to obtain a maximum transmission rate model, a minimum power consumption model and a balanced model respectively, and using the Adam optimizer to update the parameters.

4. The wireless expansion board for automatically switching networks according to claim 3, characterized in that: After the control module completes the training of the communication network switching model, the control module detects the usage scenario or business type of the external device that is actually connected by analyzing the real-time data flow and behavior pattern of the device; generates a corresponding feature vector based on the identified usage scenario or business type, and the vector will be used as the input of the communication network switching model, and the trained communication network switching model is used to predict the transmission rate and power consumption data of the external device; after obtaining the predicted transmission rate and power consumption data of the external device, the optimal wireless communication access network is selected based on these data and the actual rate requirements and power supply status of the device.

5. The wireless expansion board for automatically switching networks according to claim 4, characterized in that: The SIM card module includes at least two SIM card holders, and the SIM card holders support 4G or 5G SIM cards.

6. The wireless expansion board for automatically switching networks according to claim 5, characterized in that: The out-of-band interface module includes two TTL serial ports.

7. The wireless expansion board for automatically switching networks according to claim 6, characterized in that: Also includes: The card adjustment module is electrically connected to the SIM card module and the control module; the control module can switch the SIM card through the card adjustment module.

8. The wireless expansion board for automatically switching networks according to claim 7, characterized in that: It also includes an indicator light module, which is electrically connected to the power interface and the control module and is used to indicate whether the power is turned on, as well as the wireless type and signal strength.

9. A network switching method for a wireless expansion board for automatically switching networks, used for a wireless expansion board for automatically switching networks according to any one of claims 1 to 8, characterized in that: The following steps are involved: Step S1: network classify the usage scenarios or service types of the external universal routing board or CPE device, and obtain the transmission rate and power consumption data of the universal routing board or CPE device in different usage scenarios or service types; Step S2: Using the usage scenario or service type characteristics of the external universal routing board or CPE device as input, and the corresponding transmission rate and power consumption data as output, to construct a training set; Step S3: construct a communication network switching model, train the communication network switching model using the training set, and converge with the maximum transmission rate or minimum power consumption or rate power consumption balance as the goal to obtain a maximum transmission rate model, a minimum power consumption model and a balance model; Step S4: For the external device actually connected, detect its usage scenario or service type, and use the communication network switching model after the above training to predict and output the transmission rate and power consumption data of the external device; and based on the above predicted transmission rate and power consumption data, combined with the actual rate requirements and the power supply status of the device, preliminarily select its access network.

10. A network switching method for a wireless expansion board that automatically switches networks according to claim 9, characterized in that: Also includes: Step S5: Continuously monitor the service type and network transmission rate of the external device actually connected, and when it is found that the service type needs to be changed or the network transmission rate is lower than a preset threshold, try to switch to other wireless networks.

Citation Information

Patent Citations

  • Network switching method and device, storage medium and terminal

    CN112135325A

  • User equipment and network switching method and device thereof

    CN114125816A

  • Switching judgment method for sensing terminal access preference in ultra-dense heterogeneous wireless network

    CN115278792A

  • Multi-operator network automatic selection method and device, equipment and storage medium

    CN115379522A

  • Network preference prediction method, device, equipment, medium and program product

    CN117641403A