CN117320093A - Network switching method, device, equipment and storage medium - Google Patents
Network switching method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN117320093A CN117320093A CN202311417720.3A CN202311417720A CN117320093A CN 117320093 A CN117320093 A CN 117320093A CN 202311417720 A CN202311417720 A CN 202311417720A CN 117320093 A CN117320093 A CN 117320093A
- Authority
- CN
- China
- Prior art keywords
- network
- network connection
- connection mode
- signal information
- gateway
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 64
- 238000004590 computer program Methods 0.000 claims description 7
- 230000005856 abnormality Effects 0.000 claims description 4
- 238000003780 insertion Methods 0.000 claims description 4
- 230000037431 insertion Effects 0.000 claims description 4
- 238000004891 communication Methods 0.000 description 13
- 239000013598 vector Substances 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 239000011159 matrix material Substances 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000002159 abnormal effect Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000007781 pre-processing Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 2
- 230000000737 periodic effect Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 238000013518 transcription Methods 0.000 description 2
- 230000035897 transcription Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 239000000969 carrier Substances 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000009432 framing Methods 0.000 description 1
- 238000003062 neural network model Methods 0.000 description 1
- 230000003595 spectral effect Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 230000001131 transforming effect Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/0005—Control or signalling for completing the hand-off
- H04W36/0083—Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
- H04W36/0085—Hand-off measurements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/14—Reselecting a network or an air interface
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/24—Reselection being triggered by specific parameters
- H04W36/30—Reselection being triggered by specific parameters by measured or perceived connection quality data
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The method, the device, the equipment and the storage medium for switching the network provided by the application comprise a plurality of modes of network connection between gateway equipment and a server: acquiring network signal information of each network connection mode; determining a target network connection mode based on network signal information of each network connection mode; the gateway equipment is controlled to be connected with the server based on the target network connection mode, so that the network stability of the gateway equipment can be improved, and the flexibility of gateway network connection is improved.
Description
Technical Field
The present invention relates to the field of gateway devices, and in particular, to a method, an apparatus, a device, and a storage medium for switching networks.
Background
The intelligent home gateway is responsible for managing and controlling communication and data transmission between intelligent home devices, is connected with the intelligent home devices through protocols such as Bluetooth or WiFi, is used as an intermediate hub, is communicated with the intelligent home server, is responsible for status report and instruction issue of the intelligent home devices in the whole family, has network stability related to the stability of the whole set of intelligent home services, is connected with the existing gateway through the WiFi or the wired network, and is offline when the router or the wired network fails, and in addition, cannot be used in remote areas which are not covered with the wired network.
Disclosure of Invention
Aiming at the problems, the application provides a network switching method, device, equipment and storage medium, which can improve the network stability of gateway equipment and increase the flexibility of gateway network connection.
The embodiment of the application provides a network switching method, which is applied to gateway equipment, wherein the modes of network connection between the gateway equipment and a server comprise a plurality of modes, and the method comprises the following steps:
acquiring network signal information of each network connection mode;
determining a target network connection mode based on network signal information of each network connection mode;
and controlling the gateway equipment to connect with a server based on the target network connection mode.
In some embodiments, the network connection means includes: WIFI network connection mode, network connection mode based on SIM, the method still includes:
configuring user information of the WIFI network connection mode, and performing WIFI connection based on the user information;
and under the condition that the insertion of the SIM card into the card slot of the gateway equipment is detected, performing mobile network connection based on the SIM card.
In some embodiments, the acquiring network signal information of each network connection mode includes:
starting a timing task;
and acquiring network signal information of each network connection mode based on the timing task.
In some embodiments, the acquiring network signal information of each network connection mode includes:
acquiring network signal information of a current network connection mode;
and under the condition that the abnormality exists in the current network based on the network signal information of the current network connection mode, acquiring the network signal information of each network connection mode.
In some embodiments, the network signal information comprises: at least one of signal strength, delay information, network fluctuations.
The embodiment of the application provides a switching device of a network, which is applied to gateway equipment, wherein the mode of network connection between the gateway equipment and a server comprises a plurality of modes, and the switching device of the network comprises:
the acquisition module is used for acquiring network signal information of each network connection mode;
the determining module is used for determining a target network connection mode based on the network signal information of each network connection mode;
and the switching module is used for controlling the gateway equipment to connect with the server based on the target network connection mode.
An embodiment of the present application provides an electronic device, including a memory and a processor, where the memory stores a computer program, and when the computer program is executed by the processor, the method for switching a network according to any one of the foregoing embodiments is executed.
An embodiment of the present application provides a gateway device, including: the electronic device is described above.
In some embodiments, a SIM card slot is provided in the gateway device, where the SIM card slot is used for inserting a SIM card.
In some embodiments, the number of the card slots is a plurality, and the plurality of the SIM card slots are used for inserting SIM cards of different operators.
Embodiments of the present application provide a computer readable storage medium storing a computer program executable by one or more processors for implementing the above-described network handover method.
The method, the device, the equipment and the storage medium for switching the network provided by the application comprise a plurality of modes of network connection between gateway equipment and a server: acquiring network signal information of each network connection mode; determining a target network connection mode based on network signal information of each network connection mode; the gateway equipment is controlled to be connected with the server based on the target network connection mode, so that the network stability of the gateway equipment can be improved, and the flexibility of gateway network connection is improved.
Drawings
The present application will be described in more detail hereinafter based on embodiments and with reference to the accompanying drawings.
Fig. 1 is a schematic implementation flow diagram of a network switching method according to an embodiment of the present application;
fig. 2 is a schematic implementation flow chart of a network switching method according to an embodiment of the present application;
fig. 3 is a schematic implementation flow chart of a network switching method according to an embodiment of the present application;
fig. 4 is a schematic diagram of a composition structure of an electronic device according to an embodiment of the present application.
In the drawings, like elements are denoted by like reference numerals, and the drawings are not drawn to scale.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the present application will be described in further detail with reference to the accompanying drawings, and the described embodiments should not be construed as limiting the present application, and all other embodiments obtained by those skilled in the art without making any inventive effort are within the scope of the present application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is to be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments and can be combined with one another without conflict.
If a similar description of "first\second\third" appears in the application document, the following description is added, in which the terms "first\second\third" are merely distinguishing between similar objects and do not represent a particular ordering of the objects, it being understood that the "first\second\third" may be interchanged in a particular order or precedence, where allowed, so that the embodiments of the application described herein can be implemented in an order other than that illustrated or described herein.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the present application.
Based on the problems existing in the related art, the embodiment of the application provides a network switching method, where an execution body of the method may be an electronic device, the electronic device may be a terminal device, and the terminal device may be a computer, a mobile terminal, a gateway device, and the like. In some embodiments, the electronic device may be a controller of a terminal device.
The functions implemented by the network switching method provided by the embodiment of the application may be implemented by invoking program codes by a processor of the electronic device, where the program codes may be stored in a computer storage medium.
The embodiment of the application provides a network switching method which is applied to gateway equipment, wherein the modes of network connection between the gateway equipment and a server comprise a plurality of modes.
In this embodiment of the present application, the gateway device may be an intelligent gateway device, where the gateway device is responsible for managing and controlling communications and data transmission between intelligent home devices, and is connected to the intelligent home devices through protocols such as bluetooth or WiFi.
In the embodiment of the application, the gateway equipment is used as an intermediate hub to communicate with the intelligent home server and is responsible for the status report and instruction issue of the intelligent home equipment in the whole family. The network connection mode may include: WIFI network connection, SIM-based network connection, wired connection, and the like.
In this embodiment of the present application, a WIFI network module, a SIM card module, and a wired communication module are provided in the gateway device, WIFI communication may be performed through the WIFI network module, a SIM card is provided in the SIM card module, the SIM card is used for inserting the SIM card, and mobile network communication is implemented through the SIM card module, where the mobile network communication may be a 2G network, a 3G network, a 4G network, a 5G network, and so on. The wired communication module may include an interface through which to connect with a wired network.
In the embodiment of the application, by setting a plurality of network connection modes, the gateway equipment can be enabled to communicate with the server in a plurality of modes, so that the application range of the gateway equipment is enlarged.
Fig. 1 is a schematic implementation flow chart of a network switching method provided in an embodiment of the present application, where, as shown in fig. 1, the method includes:
step S101, acquiring network signal information of each network connection mode.
In the embodiment of the application, the gateway device may monitor the network signal information of each network connection mode. The network signal information may include: availability of connection mode, network delay, signal strength, network fluctuation, etc.
By adopting the above example, the network signal information of the WIFI network connection mode and the network connection mode based on the SIM can be obtained.
In the embodiment of the application, the gateway device may periodically detect the network signals of each network connection mode, so as to realize periodic switching. The period of time may be configured, for example, 1 minute. That is, every one minute, the network signal information of each network connection mode is acquired.
Step S102, determining a target network connection mode based on the network signal information of each network connection mode.
In the embodiment of the application, the network signal information of each network connection mode can be compared, so that the optimal network is selected, and the optimal network is determined as the target network connection mode.
Taking the network signal strength as an example, if the network signal strength of the WIFI network connection mode is greater than the network signal strength of the SIM-based network connection mode, the target network connection mode is the WIFI network connection mode. If the network signal strength of the WIFI network connection mode is smaller than the network signal strength of the network connection mode based on the SIM, the target network connection mode is the network connection mode based on the SIM.
And step S103, controlling the gateway equipment to connect with a server based on the target network connection mode.
In this embodiment of the present application, the current connection mode of the gateway device may be a WIFI network connection mode, and at this time, the gateway device may be controlled to switch to the target network connection mode to connect with the server.
In the above example, if the target network connection mode is a WIFI network connection mode, the gateway device communicates with the server by using the WIFI network connection mode. If the target network connection mode is the network connection mode based on the SIM, the gateway equipment communicates with the server by adopting the network connection mode based on the SIM.
The network switching method provided by the application includes the following modes that the gateway equipment and the server are connected in a network mode: acquiring network signal information of each network connection mode; determining a target network connection mode based on network signal information of each network connection mode; the gateway equipment is controlled to be connected with the server based on the target network connection mode, so that the network stability of the gateway equipment can be improved, and the flexibility of gateway network connection is improved.
Based on the foregoing embodiments, the network connection manner includes: the embodiment of the present application further provides a network switching method according to a WIFI network connection manner and a SIM-based network connection manner, and fig. 2 is a schematic implementation flow diagram of the network switching method according to the embodiment of the present application, as shown in fig. 2, where the method includes:
step S201, configuring user information of the WIFI network connection mode, and performing WIFI connection based on the user information.
In this embodiment of the present application, the user information may include: a user name and a password.
In this embodiment of the present application, the user may configure the user information of the WIFI network connection manner through an input device, where the input device may be a mobile terminal.
After the user information of the WIFI network connection mode is configured, the gateway equipment can send the user information to a server of the WIFI, then the user information is verified, and after the user information passes the verification, the WIFI can be used for communication, so that the WIFI connection based on the user information is realized.
Step S202, when the SIM card is detected to be inserted into the card slot of the gateway device, the mobile network connection is performed based on the SIM card.
In this embodiment of the present application, a card slot is provided in a gateway device, where the card slot is used for loading a SIM card, and after a user inserts the SIM card into the card slot, the gateway device can automatically detect after starting up to detect whether the SIM card is inserted into the card slot.
In this embodiment of the present application, after the SIM card is inserted into the card slot, the gateway device performs signal searching to perform mobile network connection.
In this embodiment of the present application, the number of the card slots may include a plurality of card slots, and the plurality of card slots may be inserted into SIMs of different operators, and illustratively, the number of the card slots is two, one card slot is used for placing the SIMs of the carriers of the telecommunications carrier, and one card slot is used for inserting the cards of the telecommunications carrier.
Step S203, acquire network signal information of each network connection mode.
In the embodiment of the application, the gateway can monitor the network signal information of each network connection mode. The network signal information may include: availability of connection mode, network delay, signal strength, network fluctuation, etc.
By adopting the above example, the network signal information of the WIFI network connection mode and the network connection mode based on the SIM can be obtained.
In the embodiment of the application, the gateway device may periodically detect the network signals of each network connection mode, so as to realize periodic switching. The period of time may be configured, for example, 1 minute. That is, every one minute, the network signal information of each network connection mode is acquired.
Step S204, determining a target network connection mode based on the network signal information of each network connection mode.
In the embodiment of the application, the network signal information of each network connection mode can be compared, so that the optimal network is selected, and the optimal network is determined as the target network connection mode.
Taking the network signal strength as an example, if the network signal strength of the WIFI network connection mode is greater than the network signal strength of the SIM-based network connection mode, the target network connection mode is the WIFI network connection mode. If the network signal strength of the WIFI network connection mode is smaller than the network signal strength of the network connection mode based on the SIM, the target network connection mode is the network connection mode based on the SIM.
And step S205, controlling the gateway equipment to connect with a server based on the target network connection mode.
In this embodiment of the present application, the current connection mode of the gateway device may be a WIFI network connection mode, and at this time, the gateway device may be controlled to switch to the target network connection mode to connect with the server.
In the above example, if the target network connection mode is a WIFI network connection mode, the gateway device communicates with the server by using the WIFI network connection mode. If the target network connection mode is the network connection mode based on the SIM, the gateway equipment communicates with the server by adopting the network connection mode based on the SIM.
The network switching method provided by the application includes the following modes that the gateway equipment and the server are connected in a network mode: acquiring network signal information of each network connection mode; determining a target network connection mode based on network signal information of each network connection mode; the gateway equipment is controlled to be connected with the server based on the target network connection mode, so that the network stability of the gateway equipment can be improved, and the flexibility of gateway network connection is improved.
In some embodiments, the obtaining the network signal information of each network connection mode may be implemented by the following steps:
step S1, starting a timing task.
And step S2, acquiring network signal information of each network connection mode based on the timing task.
In the embodiment of the present application, when a trigger condition of a set timing task is reached, network signal information of each network connection mode is obtained based on the timing task. The trigger condition for the timed task may be the arrival of a timed duration.
In the embodiment of the present application, after obtaining the network signal information of each network connection mode, the timing task is continuously started. Periodically acquiring network signal information of each network connection mode.
In some embodiments, the obtaining the network signal information of each network connection mode may be implemented by the following steps:
and S3, acquiring network signal information of the current network connection mode.
In this embodiment of the present application, the current network connection mode may be any connection mode, and an exemplary current network connection mode is a WIFI network connection mode or a SIM-based network connection mode.
In the embodiment of the application, the gateway device may monitor the network signal information of the current network connection mode.
And S4, under the condition that the abnormality of the current network exists based on the network signal information of the current network connection mode, acquiring the network signal information of each network connection mode.
In the embodiment of the present application, the network signal information may include: one or more of signal strength, delay information, network fluctuations.
In the embodiment of the application, a signal strength threshold, a delay time threshold and a network fluctuation threshold can be set, and after network signal information of a current network connection mode is acquired, the corresponding thresholds can be compared, so that whether the current network is abnormal or not is judged.
For example, if the signal strength is less than the signal strength threshold, the delay time is greater than the delay time threshold, and/or the network fluctuation is greater than the network fluctuation threshold, an anomaly is determined to exist in the current network.
In the embodiment of the application, if the current network is abnormal, the network signal information of each network connection mode is acquired to perform network switching, so that the stability of the network of the gateway equipment is improved.
Based on the foregoing embodiments, the embodiments of the present application further provide a network switching method, taking a gateway device as an intelligent home gateway as an example, adding a SIM card slot to the intelligent home gateway, so as to connect to a mobile network; the gateway automatically detects whether the network is available, signal strength, delay and other data, and automatically switches the optimal network. The network switching method is applied to gateway equipment, the gateway can communicate with the intelligent home server through a WiFi network, and can communicate with other local intelligent home equipment through a WiFi or Bluetooth protocol; the gateway at least comprises a SIM card slot and a control unit for negative network switching, wherein the SIM card slot is inserted into the gateway, and the control unit is used for controlling the working states of all components, namely, the gateway is responsible for network switching.
The user inserts the SIM card into the SIM card slot, the control unit detects the insertion of the SIM card and starts the mobile network connection; if the WiFi network exists, configuring WiFi network connection; the gateway automatically detects all connection modes, respectively detects availability, network delay, signal strength, network fluctuation conditions and the like of various connection modes, compares the connection modes, and has a control unit for switching the network.
The gateway has a timing task, detects the network at fixed time, and executes the comparison switching network flow again if the current network is abnormal, and selects the optimal network.
Optionally, the gateway may add a wired network connection interface and add an access mode.
Optionally, a plurality of SIM card slots can be arranged for the gateway, and SIM cards of operators are not needed to be inserted, so that an optimal network is automatically selected, and the reliability of network connection of the gateway is ensured.
Fig. 3 is a schematic implementation flow chart of a network switching method provided in the embodiment of the present application, as shown in fig. 3, the key flow is as follows:
the user inserts the SIM card into the card slot, and the control unit starts the mobile network connection;
the user configures a WiFi network user name and a password, and the control unit starts WiFi wireless network connection;
the gateway detects two networks respectively, including signal strength, delay condition, network fluctuation condition, etc., compares them, and selects the optimal network.
The gateway executes the timing task, performs flow detection at fixed time, and selects the optimal network.
According to the network switching method, wiFi or wired network connection is not needed, and more use scenes are given to the network switching method. The network type can be automatically switched, the flexibility and portability of gateway network connection are improved, and the network stability of the intelligent home gateway is improved.
Based on the foregoing embodiments, the embodiments of the present application provide a switching device for a network, where each module included in the switching device and each unit included in each module may be implemented by a processor in a computer device; of course, the method can also be realized by a specific logic circuit; in practice, the processor may be a central processing unit (CPU, central Processing Unit), a microprocessor (MPU, microprocessorUnit), a digital signal processor (DSP, digital Signal Processing) or a field programmable gate array (FPGA, field Programmable Gate Array), or the like.
The embodiment of the application provides a switching device of a network, which comprises:
the acquisition module is used for acquiring the voice signal;
the preprocessing module is used for preprocessing the voice signal to obtain the phase and the amplitude of the voice signal in a frequency domain or a time domain;
the classification module is used for determining voice sub-signals corresponding to the voice output objects based on the phases and the amplitudes;
the gating network module is used for inputting the voice sub-signals corresponding to the voice output objects into the gating network to determine the selection probability of the voice sub-signals corresponding to the voice output objects;
the determining module is used for determining target voice sub-signals corresponding to the voice output objects based on the selection probability;
and the recognition module is used for determining the voice recognition result of each voice output object based on the target voice sub-signal corresponding to each voice output object.
In some embodiments, the preprocessing the voice signal to obtain a phase and an amplitude of the voice signal in a frequency domain or a time domain includes:
the speech signal is converted into a phase and amplitude in the frequency domain or in the time-frequency domain using a short-time fourier transform.
In some embodiments, the converting the speech signal to a phase and amplitude in the frequency domain or time-frequency domain using a short-time fourier transform comprises:
carrying out framing treatment on the voice signal to obtain a two-dimensional array, wherein each row in the two-dimensional array represents a frame;
transforming the two-dimensional array by using a short-time Fourier transform function to obtain a short-time Fourier coefficient;
and acquiring the phase and amplitude of the voice signal in the frequency domain or the time domain based on the short-time Fourier coefficient.
In some embodiments, the determining the voice sub-signals corresponding to the respective voice output objects based on the phase and the amplitude includes:
inputting the phase and the amplitude into a pre-established neural network model to determine an output mask and a source signal;
performing similarity calculation on the phase and the amplitude by using a spectral clustering algorithm based on the mask and the source signal to obtain a similarity matrix;
carrying out Laplace transformation on the similarity matrix to obtain a Laplace matrix;
determining feature vectors of the voice sub-signals based on the Laplace matrix;
and classifying the speech sub-signals by adopting a clustering algorithm based on the feature vectors of the speech sub-signals to obtain speech sub-signals corresponding to each speech output object.
In some embodiments, the determining the speech recognition result of each speech output object based on the target speech sub-signal corresponding to each speech output object includes:
and inputting target voice sub-signals corresponding to each voice output object into a pre-established acoustic feature vector model, and determining a voice recognition result corresponding to each voice output object.
In some embodiments, the acoustic feature vector model comprises: the voice recognition system comprises a connection layer and a transcription layer, wherein the connection layer is used for splicing target voice sub-signals corresponding to each voice output object to obtain acoustic feature vectors of voice signals corresponding to each voice output object, and the transcription layer is used for converting the acoustic feature vectors of the voice signals corresponding to each voice output object into text sequences and outputting recognition results of the voice signals corresponding to each voice output object.
It should be noted that, in the embodiment of the present application, if the above-mentioned network switching method is implemented in the form of a software functional module, and sold or used as a separate product, the network switching method may also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partly contributing to the prior art, and the computer software product may be stored in a storage medium, and include several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, an optical disk, or other various media capable of storing program codes. Thus, embodiments of the present application are not limited to any specific combination of hardware and software.
Accordingly, an embodiment of the present application provides a computer readable storage medium having a computer program stored thereon, wherein the computer program when executed by a processor implements the steps in the network handover method provided in the above embodiment.
The embodiment of the application provides electronic equipment; fig. 4 is a schematic diagram of a composition structure of an electronic device according to an embodiment of the present application, as shown in fig. 4, the electronic device 500 includes: a processor 501, at least one communication bus 502, a user interface 503, at least one external communication interface 504, a memory 505. Wherein the communication bus 502 is configured to enable connected communication between these components. The user interface 503 may include a control screen, and the external communication interface 504 may include a standard wired interface and a wireless interface, among others. The processor 501 is configured to execute a program of a switching method of a network stored in a memory to implement the steps in the switching method of a network provided in the above-described embodiment. The switching method of the network comprises the following steps:
acquiring network signal information of each network connection mode;
determining a target network connection mode based on network signal information of each network connection mode;
and controlling the gateway equipment to connect with a server based on the target network connection mode.
In some embodiments, the network connection means includes: WIFI network connection mode, network connection mode based on SIM, the method still includes:
configuring user information of the WIFI network connection mode, and performing WIFI connection based on the user information;
and under the condition that the insertion of the SIM card into the card slot of the gateway equipment is detected, performing mobile network connection based on the SIM card.
In some embodiments, the acquiring network signal information of each network connection mode includes:
starting a timing task;
and acquiring network signal information of each network connection mode based on the timing task.
In some embodiments, the acquiring network signal information of each network connection mode includes:
acquiring network signal information of a current network connection mode;
and under the condition that the abnormality exists in the current network based on the network signal information of the current network connection mode, acquiring the network signal information of each network connection mode.
In some embodiments, the network signal information comprises: at least one of signal strength, delay information, network fluctuations.
It should be noted here that: the description of the storage medium and apparatus embodiments above is similar to that of the method embodiments described above, with similar benefits as the method embodiments. For technical details not disclosed in the embodiments of the storage medium and the apparatus of the present application, please refer to the description of the method embodiments of the present application for understanding.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present application, the sequence numbers of the foregoing processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic thereof, and should not constitute any limitation on the implementation process of the embodiments of the present application. The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above described device embodiments are only illustrative, e.g. the division of the units is only one logical function division, and there may be other divisions in practice, such as: multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components controlled or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The units described above as separate components may or may not be physically separate, and components for controlling the units may or may not be physical units; can be located in one place or distributed to a plurality of network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated in one unit; the integrated units may be implemented in hardware or in hardware plus software functional units.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, where the program, when executed, performs steps including the above method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read Only Memory (ROM), a magnetic disk or an optical disk, or the like, which can store program codes.
Alternatively, the integrated units described above may be stored in a computer readable storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partly contributing to the prior art, embodied in the form of a software product stored in a storage medium, comprising several instructions for causing a controller to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a removable storage device, a ROM, a magnetic disk, or an optical disk.
The foregoing is merely an embodiment of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (11)
1. A method for switching a network, which is applied to a gateway device, wherein modes of network connection between the gateway device and a server include a plurality of modes, and the method comprises:
acquiring network signal information of each network connection mode;
determining a target network connection mode based on network signal information of each network connection mode;
and controlling the gateway equipment to connect with a server based on the target network connection mode.
2. The method of claim 1, wherein the network connection comprises: WIFI network connection mode, network connection mode based on SIM, the method still includes:
configuring user information of the WIFI network connection mode, and performing WIFI connection based on the user information;
and under the condition that the insertion of the SIM card into the card slot of the gateway equipment is detected, performing mobile network connection based on the SIM card.
3. The method according to claim 2, wherein the obtaining network signal information of each network connection mode includes:
starting a timing task;
and acquiring network signal information of each network connection mode based on the timing task.
4. The method according to claim 2, wherein the obtaining network signal information of each network connection mode includes:
acquiring network signal information of a current network connection mode;
and under the condition that the abnormality exists in the current network based on the network signal information of the current network connection mode, acquiring the network signal information of each network connection mode.
5. The method of claim 2, wherein the network signal information comprises: at least one of signal strength, delay information, network fluctuations.
6. A switching device of a network, which is applied to a gateway device, wherein modes of network connection between the gateway device and a server include a plurality of modes, and the switching device of the network includes:
the acquisition module is used for acquiring network signal information of each network connection mode;
the determining module is used for determining a target network connection mode based on the network signal information of each network connection mode;
and the switching module is used for controlling the gateway equipment to connect with the server based on the target network connection mode.
7. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program which, when executed by the processor, performs a method of switching a network according to any of claims 1 to 5.
8. A gateway device, comprising: the electronic device of claim 7.
9. Gateway device according to claim 8, characterized in that a SIM card slot is provided in the gateway device for inserting a SIM card.
10. The gateway device of claim 9, wherein the number of card slots is a plurality, and a plurality of SIM card slots are used for inserting SIM cards of different operators.
11. A storage medium storing a computer program executable by one or more processors for implementing a method of switching a network according to any one of claims 1 to 5.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311417720.3A CN117320093A (en) | 2023-10-27 | 2023-10-27 | Network switching method, device, equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311417720.3A CN117320093A (en) | 2023-10-27 | 2023-10-27 | Network switching method, device, equipment and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN117320093A true CN117320093A (en) | 2023-12-29 |
Family
ID=89262188
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202311417720.3A Pending CN117320093A (en) | 2023-10-27 | 2023-10-27 | Network switching method, device, equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN117320093A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114650191A (en) * | 2020-12-17 | 2022-06-21 | 深圳Tcl新技术有限公司 | Network disconnection control method, intelligent gateway and computer readable storage medium |
-
2023
- 2023-10-27 CN CN202311417720.3A patent/CN117320093A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114650191A (en) * | 2020-12-17 | 2022-06-21 | 深圳Tcl新技术有限公司 | Network disconnection control method, intelligent gateway and computer readable storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104853405B (en) | Intelligent networking method and smart machine | |
| EP3695588B1 (en) | Context-based device address generation | |
| CN110351010B (en) | Channel blind detection method, signal transmission method and related equipment | |
| CN104021141B (en) | Method, device and system for data processing and cloud service | |
| CN113778537B (en) | System mode switching method and device | |
| CN105101161A (en) | Information processing method and information processing device | |
| US9182748B2 (en) | RFID access control reader with enhancements | |
| CN117320093A (en) | Network switching method, device, equipment and storage medium | |
| EP3836523A1 (en) | Information processing device and communication system | |
| CN108260119B (en) | Mobile terminal, embedded SIM card and access method and device thereof | |
| US20170134383A1 (en) | Method and device for sharing a resource | |
| CN105607498B (en) | A kind of matched method, apparatus of smart home device, equipment and system | |
| CN107682911A (en) | Wireless network connecting method, device, equipment and system | |
| US11129118B2 (en) | Systems and methods for identifying and configuring a radiohead for a network simulation test platform | |
| CN111343627B (en) | Network registration method and device and terminal equipment | |
| CN111130591B (en) | Antenna tuning method, antenna tuning device and terminal equipment | |
| CN114257679A (en) | Function display method and device, storage medium and electronic device | |
| KR20180031287A (en) | User equipment to personalize the use of the service and operationg method thereof | |
| CN106535161A (en) | Method and device for intelligent dialing of intelligent terminal and intelligent terminal | |
| CN105791453A (en) | Domain name identification method and apparatus | |
| CN101355799B (en) | Resynchronization method for mobile communication terminal | |
| CN106657578A (en) | Terminal setting adjustment method and device | |
| CN111726451A (en) | Wearable device, mobile terminal, mode entering method of wearable device and mobile terminal, and storage medium | |
| WO2007146474A2 (en) | Method and system for enabling location based wireless communication services | |
| US20180278695A1 (en) | Network access method and apparatus for speech recognition service based on artificial intelligence |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |