CN112969206A - Terminal application layer network management method, device, equipment and computer storage medium - Google Patents

Terminal application layer network management method, device, equipment and computer storage medium Download PDF

Info

Publication number
CN112969206A
CN112969206A CN202110173472.7A CN202110173472A CN112969206A CN 112969206 A CN112969206 A CN 112969206A CN 202110173472 A CN202110173472 A CN 202110173472A CN 112969206 A CN112969206 A CN 112969206A
Authority
CN
China
Prior art keywords
network
application layer
icon
parameter
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110173472.7A
Other languages
Chinese (zh)
Other versions
CN112969206B (en
Inventor
刘人豪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Huiwei Intelligent Technology Inc
Original Assignee
Shenzhen Huiwei Intelligent Technology Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Huiwei Intelligent Technology Inc filed Critical Shenzhen Huiwei Intelligent Technology Inc
Priority to CN202110173472.7A priority Critical patent/CN112969206B/en
Publication of CN112969206A publication Critical patent/CN112969206A/en
Application granted granted Critical
Publication of CN112969206B publication Critical patent/CN112969206B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • H04W80/08Upper layer protocols
    • H04W80/12Application layer protocols, e.g. WAP [Wireless Application Protocol]

Landscapes

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

Abstract

The invention discloses a terminal application layer network management method, a device, equipment and a computer storage medium, wherein the terminal application layer network management method comprises the following steps: sending a modem command to a modem corresponding to an application layer based on a received network switching instruction, and receiving feedback information fed back by the modem after the modem performs network switching based on the modem command; if the feedback information is that the network is updated, determining the current network type of the current network of the terminal where the application layer is located according to the wireless interface layer corresponding to the application layer; and adjusting the network icon in the application layer according to the current network type. The invention improves the flexibility of network switching in the terminal.

Description

Terminal application layer network management method, device, equipment and computer storage medium
Technical Field
The present invention relates to the field of communications network technologies, and in particular, to a method, an apparatus, a device, and a computer storage medium for managing a terminal application layer network.
Background
With the development of a 5G network, more and more users support the use of the 5G network, and most of the existing terminals (such as mobile phones, tablet computers, and the like) support the use of the 5G network, but the early terminal systems do not have a 5G function, and do not support the 5G network, for example, the systems before Android (Android system) 10.0 do not have the 5G function, and the early terminal systems need to have the 5G function, and then a whole 5G framework needs to be built in the early terminal systems, which seriously affects the performance of the terminals. Therefore, how to enable a terminal without a 5G network function to effectively use a 5G network, and improving the flexibility of network switching in the terminal becomes a technical problem to be solved at present.
Disclosure of Invention
The invention mainly aims to provide a terminal application layer network management method, a device, equipment and a computer storage medium, aiming at solving the technical problem of how to improve the flexibility of network switching in a terminal.
In order to achieve the above object, the present invention provides a terminal application layer network management method, which comprises the following steps:
sending a modem command to a modem corresponding to an application layer based on a received network switching instruction, and receiving feedback information fed back by the modem after the modem performs network switching based on the modem command;
if the feedback information is that the network is updated, determining the current network type of the current network of the terminal where the application layer is located according to the wireless interface layer corresponding to the application layer;
and adjusting the network icon in the application layer according to the current network type.
Optionally, the step of determining the current network type of the current network of the terminal where the application layer is located according to the radio interface layer corresponding to the application layer includes:
sending a preset network selection command to a wireless interface layer corresponding to the application layer, and receiving a first parameter fed back by the wireless interface layer based on the network selection command;
acquiring a preset parameter network corresponding table, and detecting whether the parameter value of the last bit in the first parameter is matched with a preset fixed value in the parameter network corresponding table;
and if so, taking the network type corresponding to the preset fixed value as the current network type.
Optionally, after the step of detecting whether the last parameter value in the first parameter matches a preset fixed value in the parameter network mapping table, the method includes:
if the last parameter value in the first parameter is not matched with the preset fixed value and the last parameter value in the first parameter is equal to a preset value, sending a preset double-connection state instruction to the wireless interface layer, and determining the current network type according to a second parameter fed back by the wireless interface layer based on the double-connection state instruction, wherein the preset value is not equal to the preset fixed value.
Optionally, the step of determining the current network type according to a second parameter fed back by the radio interface layer based on the dual connectivity status instruction includes:
and if a second parameter fed back by the wireless interface layer based on the dual-connection state instruction is received, and if the last parameter value of the second parameter is a second preset fixed value, determining that the current network type is a preset default network type.
Optionally, the step of adjusting the network icon in the application layer according to the current network type includes:
determining whether the current network type and the network icon in the application layer are matched;
and if not, acquiring a standard network icon corresponding to the current network type, and replacing the network icon in the application layer with the standard network icon.
Optionally, the step of obtaining the standard network icon corresponding to the current network type includes:
acquiring a network icon set according to a preset reflection mechanism, and detecting whether a matching network icon corresponding to the current network type exists in the network icon set;
and if a matching network icon corresponding to the current network type exists, taking the matching network icon as a standard network icon.
Optionally, after the step of detecting whether there is a matching network icon corresponding to the current network type in the network icon set, the method includes:
if no matching network icon corresponding to the current network type exists, acquiring the private attribute information of a preset image, and determining whether the private attribute information is matched with the icon attribute information of the network icon set;
and if the private attribute information is matched with the icon attribute information, moving the image to the network icon set, constructing a corresponding relation between the image and the current network type in the network icon set, and taking the image as a standard network icon.
In addition, to achieve the above object, the present invention further provides a terminal application layer network management apparatus, including:
the receiving module is used for sending a modem command to a modem corresponding to an application layer based on the received network switching instruction and receiving feedback information fed back by the modem after the modem performs network switching based on the modem command;
the determining module is used for determining the current network type of the current network of the terminal where the application layer is located according to the wireless interface layer corresponding to the application layer if the feedback information indicates that the network is updated;
and the adjusting module is used for adjusting the network icons in the application layer according to the current network type.
In addition, to achieve the above object, the present invention further provides a terminal application layer network management device, where the terminal application layer network management device includes: a memory, a processor and a terminal application layer network manager stored on the memory and operable on the processor, the terminal application layer network manager when executed by the processor implementing the steps of the terminal application layer network management method as described above.
Furthermore, to achieve the above object, the present invention also provides a computer storage medium having a terminal application layer network management program stored thereon, which when executed by a processor, implements the steps of the terminal application layer network management method as described above.
The method comprises the steps of sending a modem command to a modem corresponding to an application layer based on a received network switching instruction, and receiving feedback information fed back by the modem after the modem performs network switching based on the modem command; if the feedback information is that the network is updated, determining the current network type of the current network of the terminal where the application layer is located according to the wireless interface layer corresponding to the application layer; and adjusting the network icon in the application layer according to the current network type. The method comprises the steps of sending a modem command to a modem in an application layer, receiving feedback information fed back by the modem after network switching is carried out, determining the current network type according to a wireless interface layer if the feedback information is that the network is updated, and adjusting a network icon in the application layer according to the current network type. Therefore, the phenomenon that the terminal without the 5G framework in the prior art cannot apply the 5G network is avoided, the terminal without the 5G network function can effectively use the 5G network, and the flexibility of network switching in the terminal is improved.
Drawings
Fig. 1 is a schematic structural diagram of a terminal application layer network management device in a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a first embodiment of a terminal application layer network management method according to the present invention;
fig. 3 is a schematic diagram of device modules of a terminal application layer network management device according to the present invention;
fig. 4 is a schematic flow chart of a terminal application layer network management method according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a terminal application layer network management device in a hardware operating environment according to an embodiment of the present invention.
The terminal application layer network management device in the embodiment of the invention can be a terminal device such as a PC (personal computer) or a server (such as an X86 server) which is loaded with a virtualization platform.
As shown in fig. 1, the terminal application layer network management device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is one type of computer storage medium, may include an operating system, a network communication module, a user interface module, and a terminal application layer network management program therein.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to invoke the end application level network management program stored in the memory 1005 and perform the operations in the end application level network management method embodiments of the following security component.
Based on the above hardware structure, an embodiment of a terminal application layer network management method according to the present invention is provided as follows.
Referring to fig. 2, fig. 2 is a schematic flowchart of a first embodiment of a terminal application layer network management method according to the present invention, where the terminal application layer network management method includes:
step S10, based on the received network switching instruction, sending a modem command to a modem corresponding to an application layer, and receiving feedback information fed back by the modem after the modem performs network switching based on the modem command;
because some current terminals do not support some special networks, such as 5G networks, and the application of the terminals is affected, in order to realize that terminals without 5G network functions can also effectively use 5G networks, the flexibility of network switching in the terminals is realized. In this embodiment, a complete 5G network architecture does not need to be additionally built in the terminal, and the terminal can also effectively use the 5G network. That is, the application Layer in the terminal can send an AT command (Modem command) to a Modem (Modem) through a Radio Interface Layer (RIL) Layer, so that the Modem performs network handover, and feeds back corresponding network information to the application Layer, that is, the application Layer can perform network handover (such as 4G/5G) through the sent AT command, and determine the effect of the current network type. It should be noted that, in this embodiment, not only the terminal without a 5G network architecture can effectively use a 5G network, but also other networks, for example, a terminal without a 4G network architecture can also use this embodiment to achieve the effect of using a 4G network, and in this embodiment, only the 5G network is used for illustration.
In this embodiment, in the application layer of the terminal, when the user intention of the user is received and the user intention is to perform network handover, the network handover instruction in the application layer is triggered, that is, the application layer receives the network handover instruction, generates a corresponding modem command according to the network handover instruction, and sends the generated modem command to a modem corresponding to the application layer. Also in this embodiment, the application layer may send modem commands to the modem through the RIL layer.
Also in this embodiment, when performing network handover, the application layer may send an AT command, such as AT ^ SYSCFGEX ═ 03 "command or AT ^ SYSCFGEX ^ 00" through the RIL layer. The modem can switch the network according to the received modem command and redial to realize redialing and reregistering of the network; to complete the handover of the terminal network. And after the modem completes the network switching, the modem sends a network switching message to the application layer so that the application layer can switch the corresponding network icon. Namely, feedback information after the modem performs network switching based on a modem command is received in the application layer, and whether the network icon in the application layer needs to be switched is determined according to the feedback information.
Step S20, if the feedback information is that the network is updated, determining the current network type of the current network of the terminal where the application layer is located according to the wireless interface layer corresponding to the application layer;
when the application layer receives the feedback information fed back by the modem and determines that the feedback information is that the network is updated, the current network of the terminal at the current moment needs to be determined so as to display a corresponding network icon according to the current network type of the current network. And in order to display the corresponding network icon more quickly, the process that the display flow of the network icon in the prior art needs to go from a Modem to a driver layer, to an RIL layer and then to an application layer, and then the application layer displays the corresponding network icon according to the received corresponding information is avoided. In this embodiment, after the Modem performs network handover, it directly sends feedback information to the application layer, and the application layer sends a corresponding instruction to the RIL layer (i.e., the radio interface layer corresponding to the application layer), and determines the current network type of the current network of the terminal where the application layer is located according to the feedback parameter. I.e., the determination of the network type is changed from passive acquisition to active acquisition.
That is, in this embodiment, the application layer sends an AT command to the radio interface layer corresponding to the application layer to query the PLMN list (mobile network list) and the DC dual connectivity status of the LTE-NR to determine the current network type of the terminal where the application layer is located. That is, AT command "AT + COPS" and "AT + LENDC" may be sent to the RIL layer to obtain two sets of parameters, and when the return parameter corresponding to the AT + COPS command is received and the last return parameter value of the return parameter is equal to 12, it may be directly determined that the current network type is a 5G network. When receiving the return parameter corresponding to the "AT + COPS" instruction, and the last return parameter value of the return parameter is equal to 7, and the last return parameter value of the return parameter corresponding to the "AT + LENDC" instruction is equal to 1, it may be directly determined that the current network type is a 5G network.
It should be noted that, in this embodiment, the current network type is a network type of the terminal at the current time, such as a 5G network, a 4G network, or a 3G network.
And step S30, adjusting the network icon in the application layer according to the current network type.
When the current network type of the current network is determined, whether the network icon in the application layer is matched with the current network type or not can be detected, and if not, the network icon displayed in the application layer needs to be adjusted. For example, if the current network type is a 5G network and the network icon displayed in the application layer is a network icon corresponding to a 4G network, the network icon displayed in the application layer needs to be adjusted. The method for adjusting the network icon displayed in the application layer may be to obtain a Class object of Signal Cluster View Class (network icon set) through a reflection mechanism, obtain a scope-type private attribute mMobile, mMobile type together with getdecledField, obtain a private method setIconForView through getDesledMethod, and then call setIconForView () to transfer a resource picture to be replaced. In the reflection mechanism, in a running state, all attributes and methods of any class can be known, and any method and attribute of any object can be called corresponding to the object.
In addition, to assist understanding of the terminal application layer network management method in this embodiment, an example is described.
For example, as shown in fig. 4, the application layer sends an AT command Modem through an interface of the RIL layer, the Modem performs network switching, then returns a message to the application layer, and the application layer processes the message to determine the current network condition and displays a corresponding network icon on the application layer. The process is that the application layer makes a query in the RIL layer to determine the current network type.
In the embodiment, a modem command is sent to a modem corresponding to an application layer based on a received network switching instruction, and feedback information fed back after the modem performs network switching based on the modem command is received; if the feedback information is that the network is updated, determining the current network type of the current network of the terminal where the application layer is located according to the wireless interface layer corresponding to the application layer; and adjusting the network icon in the application layer according to the current network type. The method comprises the steps of sending a modem command to a modem in an application layer, receiving feedback information fed back by the modem after network switching is carried out, determining the current network type according to a wireless interface layer if the feedback information is that the network is updated, and adjusting a network icon in the application layer according to the current network type. Therefore, the phenomenon that the terminal without the 5G framework in the prior art cannot apply the 5G network is avoided, the terminal without the 5G network function can effectively use the 5G network, and the flexibility of network switching in the terminal is improved.
Further, based on the first embodiment of the present invention, a second embodiment of the terminal application layer network management method according to the present invention is provided, in this embodiment, in step S20 in the above embodiment, a refinement of the step of determining the current network type of the current network of the terminal where the application layer is located according to the radio interface layer corresponding to the application layer includes:
step a, sending a preset network selection command to a wireless interface layer corresponding to the application layer, and receiving a first parameter fed back by the wireless interface layer based on the network selection command;
in this embodiment, when receiving the feedback information fed back by the modem and the feedback information is that the network is updated, the application layer sends a network selection command (e.g., AT + COPS) set in advance to the radio interface layer corresponding to the application layer, i.e., the RIL layer. And the wireless interface layer feeds back parameters, namely the first parameters, to the application layer according to the network selection command so that the application layer determines the current network type according to the first parameters.
Step b, acquiring a preset parameter network corresponding table, and detecting whether the parameter value of the last bit in the first parameter is matched with a preset fixed value in the parameter network corresponding table;
in the application layer, a parameter network corresponding table set in advance, such as a PLMN table, needs to be obtained, and a parameter value of the last bit in the received first parameter is matched with all values (i.e., preset fixed values) in the parameter network corresponding table, and different operations are performed according to different matching results.
And c, if the current network type is matched with the preset fixed value, taking the network type corresponding to the preset fixed value as the current network type.
When the last parameter value in the first parameter is found to be matched with the preset fixed value in the parameter network corresponding table through judgment, it can be determined that a certain value exists in the parameter network corresponding table and the last parameter value in the first parameter is the same, at this time, the network type corresponding to the value in the parameter network corresponding table can be used as the network type corresponding to the preset fixed value, and the network type corresponding to the preset fixed value is used as the current network type.
In this embodiment, by sending a network selection command to the wireless interface layer and receiving the fed back first parameter, if the last parameter value in the first parameter matches the preset fixed value in the parameter network mapping table, the network type corresponding to the preset fixed value is used as the current network type, thereby ensuring the accuracy of the obtained current network type.
Specifically, after the step of detecting whether the last parameter value in the first parameter matches a preset fixed value in the parameter network mapping table, the method includes:
and d, if the last parameter value in the first parameter is not matched with the preset fixed value and the last parameter value in the first parameter is equal to a preset value, sending a preset double-connection state instruction to the wireless interface layer, and determining the current network type according to a second parameter fed back by the wireless interface layer based on the double-connection state instruction, wherein the preset value is not equal to the preset fixed value.
When the last parameter value in the first parameter is found to be not matched with the preset fixed value through judgment, and the last parameter value in the first parameter is equal to the preset value (any value preset by a user, such as 7, and is not equal to the preset fixed value), a preset double-connection state instruction is sent to the wireless interface layer, if an AT + LENDC instruction is sent to the wireless interface layer, the wireless interface layer feeds back the parameter to the application layer according to the double-connection state instruction, namely feeds back the second parameter to the application layer, and the application layer determines the current network state according to the second parameter.
In this embodiment, when the last parameter value in the first parameter is not matched with the preset fixed value and is a preset value, the dual connectivity status instruction is sent to the radio interface layer, and the fed-back second parameter is received to determine the current network type, thereby ensuring that the determination of the current network type is effectively performed.
Specifically, the step of determining the current network type according to the second parameter fed back by the radio interface layer based on the dual connectivity status instruction includes:
and e, if a second parameter fed back by the wireless interface layer based on the dual-connection state instruction is received, and if the last parameter value of the second parameter is a second preset fixed value, determining that the current network type is a preset default network type.
In this embodiment, after receiving the second parameter fed back by the radio interface layer according to the dual connectivity status instruction, the application layer determines the value of the last parameter value of the second parameter, and if the last parameter value of the second parameter is a second preset fixed value (any value preset by the user is different from the preset value and the preset fixed value, such as 1), determines that the current network type is a default network type preset by the user, that is, a default network type is preset. For example, the application layer sends an AT command "AT + COPS" and "AT + LENDC" to the RIL layer to obtain two sets of parameters, and when a return parameter corresponding to the AT + COPS command is received and the last return parameter value of the return parameter is equal to 12, it can be directly determined that the current network type is a 5G network. When receiving the return parameter corresponding to the "AT + COPS" instruction, and the last return parameter value of the return parameter is equal to 7, and the last return parameter value of the return parameter corresponding to the "AT + LENDC" instruction is equal to 1, it may be directly determined that the current network type is a 5G network.
In this embodiment, when the last parameter value of the fed-back second parameter is determined to be a second preset fixed value, the current network type is determined to be a preset default network type, so that the validity of the determined network type is guaranteed.
Further, the step of adjusting the network icon in the application layer according to the current network type includes:
step f, determining whether the current network type is matched with the network icon in the application layer;
in this embodiment, after determining the network type of the current network, it is further required to detect that the current network type is matched with the network icon being displayed in the application layer, and if the current network type is matched with the network icon being displayed in the application layer, the network icon being displayed in the application layer is kept unchanged. And if not, adjusting the network icon which is displayed in the application layer.
And g, if the network icons are not matched, acquiring the standard network icon corresponding to the current network type, and replacing the network icon in the application layer with the standard network icon.
When the current network type is found to be not matched with the network icon in the application layer through judgment, the network icon corresponding to the current network type needs to be determined and is used as a standard network icon, and then the network icon in the application layer is replaced by the standard network icon. For example, if the current network type is a 5G network and the network icon displayed in the application layer is the network icon corresponding to the 4G network, the network icon corresponding to the 4G network is replaced with the network icon corresponding to the 5G network.
In this embodiment, when it is determined that the current network type is not matched with the network icon in the application layer, the standard network icon corresponding to the current network type is obtained, and the network icon in the application layer is replaced with the standard network icon, so that normal display of the network icon in the application layer is ensured.
Specifically, the step of obtaining the standard network icon corresponding to the current network type includes:
step h, acquiring a network icon set according to a preset reflection mechanism, and detecting whether a matching network icon corresponding to the current network type exists in the network icon set;
in this embodiment, when determining the standard network icon corresponding to the current network type, the network icon set may be obtained according to a reflection mechanism set in advance, and whether there is a matching network icon corresponding to the current network type in the network icon set is detected, so as to execute different operations according to different detection results.
And k, if a matching network icon corresponding to the current network type exists, taking the matching network icon as a standard network icon.
And when the network icon corresponding to the current network type is found in the network icon set through judgment, taking the network icon as a matching network icon, extracting the matching network icon, taking the extracted matching network icon as a standard network icon, and replacing the network icon which is displayed at the current moment in the application layer with the standard network icon.
In this embodiment, the network icon set is obtained according to the reflection mechanism, and when a matching network icon corresponding to the current network type exists in the network icon set, the matching network icon is used as the standard network icon, so that the accuracy of the obtained standard network icon is ensured.
Specifically, after the step of detecting whether a matching network icon corresponding to the current network type exists in the network icon set, the method includes:
step m, if no matching network icon corresponding to the current network type exists, acquiring the private attribute information of a preset image, and determining whether the private attribute information is matched with the icon attribute information of the network icon set;
when the network icon set is judged to have no matched network icon corresponding to the current network type, the preset private attribute information (such as attribute information of image size and the like) of the image can be directly obtained, whether the private attribute information is matched with the icon attribute information in the network icon set or not is determined, and if the private attribute information is not matched with the icon attribute information in the network icon set, the private attribute information is adjusted according to the icon attribute information in the network icon set. And moving the adjusted image to a network icon set, and taking the adjusted image as a standard network icon.
And n, if the private attribute information is matched with the icon attribute information, moving the image to the network icon set, constructing a corresponding relation between the image and the current network type in the network icon set, and taking the image as a standard network icon.
When the private attribute information is judged to be matched with the icon attribute information, the image can be directly moved to the network icon set, the corresponding relation between the image and the current network type is built in the network icon set, and the image is used as the standard network icon after the corresponding relation is built.
In the embodiment, when the matching network icon does not exist and the private attribute of the image is matched with the icon attribute information in the network icon set, the image is moved to the network icon set, the corresponding relation is established between the image and the current network type, and the image is used as the standard network icon, so that the accuracy of the determined standard network icon is guaranteed.
Referring to fig. 3, the present invention further provides a terminal application layer network management apparatus, in this embodiment, the terminal application layer network management apparatus includes:
a receiving module a10, configured to send a modem command to a modem corresponding to an application layer based on a received network switching instruction, and receive feedback information fed back by the modem after performing network switching based on the modem command;
a determining module a20, configured to determine, according to the radio interface layer corresponding to the application layer, a current network type of a current network of the terminal where the application layer is located if the feedback information indicates that the network is updated;
an adjusting module a30, configured to adjust the network icon in the application layer according to the current network type.
Optionally, the determining module a20 is configured to:
sending a preset network selection command to a wireless interface layer corresponding to the application layer, and receiving a first parameter fed back by the wireless interface layer based on the network selection command;
acquiring a preset parameter network corresponding table, and detecting whether the parameter value of the last bit in the first parameter is matched with a preset fixed value in the parameter network corresponding table;
and if so, taking the network type corresponding to the preset fixed value as the current network type.
Optionally, the determining module a20 is configured to:
if the last parameter value in the first parameter is not matched with the preset fixed value and the last parameter value in the first parameter is equal to a preset value, sending a preset double-connection state instruction to the wireless interface layer, and determining the current network type according to a second parameter fed back by the wireless interface layer based on the double-connection state instruction, wherein the preset value is not equal to the preset fixed value.
Optionally, the determining module a20 is configured to:
and if a second parameter fed back by the wireless interface layer based on the dual-connection state instruction is received, and if the last parameter value of the second parameter is a second preset fixed value, determining that the current network type is a preset default network type.
Optionally, the adjusting module a30 is configured to:
determining whether the current network type and the network icon in the application layer are matched;
and if not, acquiring a standard network icon corresponding to the current network type, and replacing the network icon in the application layer with the standard network icon.
Optionally, the adjusting module a30 is configured to:
acquiring a network icon set according to a preset reflection mechanism, and detecting whether a matching network icon corresponding to the current network type exists in the network icon set;
and if a matching network icon corresponding to the current network type exists, taking the matching network icon as a standard network icon.
Optionally, the adjusting module a30 is configured to:
if no matching network icon corresponding to the current network type exists, acquiring the private attribute information of a preset image, and determining whether the private attribute information is matched with the icon attribute information of the network icon set;
and if the private attribute information is matched with the icon attribute information, moving the image to the network icon set, constructing a corresponding relation between the image and the current network type in the network icon set, and taking the image as a standard network icon.
The method for implementing each functional module can refer to the embodiment of the terminal application layer network management method of the present invention, and is not described herein again.
The invention also provides a terminal application layer network management device, which comprises: a memory, a processor, a communication bus, and a terminal application layer network manager stored on the memory:
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute the terminal application layer network management program to implement the steps of the embodiments of the terminal application layer network management method.
The invention also provides a computer readable storage medium.
The computer-readable storage medium of the present invention has stored thereon a terminal application layer network management program which, when executed by a processor, implements the steps of the terminal application layer network management method described above.
The method implemented when the terminal application layer network management program running on the processor is executed may refer to each embodiment of the terminal application layer network management method of the present invention, and details are not described here.
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 system 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 system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A terminal application layer network management method is characterized by comprising the following steps:
sending a modem command to a modem corresponding to an application layer based on a received network switching instruction, and receiving feedback information fed back by the modem after the modem performs network switching based on the modem command;
if the feedback information is that the network is updated, determining the current network type of the current network of the terminal where the application layer is located according to the wireless interface layer corresponding to the application layer;
and adjusting the network icon in the application layer according to the current network type.
2. The terminal application layer network management method of claim 1, wherein the step of determining the current network type of the current network of the terminal where the application layer is located according to the radio interface layer corresponding to the application layer comprises:
sending a preset network selection command to a wireless interface layer corresponding to the application layer, and receiving a first parameter fed back by the wireless interface layer based on the network selection command;
acquiring a preset parameter network corresponding table, and detecting whether the parameter value of the last bit in the first parameter is matched with a preset fixed value in the parameter network corresponding table;
and if so, taking the network type corresponding to the preset fixed value as the current network type.
3. A terminal application layer network management method according to claim 2, wherein said step of detecting whether the last parameter value in the first parameter matches a preset fixed value in the parameter network correspondence table, comprises:
if the last parameter value in the first parameter is not matched with the preset fixed value and the last parameter value in the first parameter is equal to a preset value, sending a preset double-connection state instruction to the wireless interface layer, and determining the current network type according to a second parameter fed back by the wireless interface layer based on the double-connection state instruction, wherein the preset value is not equal to the preset fixed value.
4. A method for terminal application layer network management as claimed in claim 3 wherein said step of determining said current network type from said second parameter fed back by said radio interface layer based on said dual connectivity status instruction comprises:
and if a second parameter fed back by the wireless interface layer based on the dual-connection state instruction is received, and if the last parameter value of the second parameter is a second preset fixed value, determining that the current network type is a preset default network type.
5. A terminal application layer network management method according to any of claims 1-4 wherein the step of adjusting the network icon in the application layer according to the current network type comprises:
determining whether the current network type and the network icon in the application layer are matched;
and if not, acquiring a standard network icon corresponding to the current network type, and replacing the network icon in the application layer with the standard network icon.
6. The terminal application layer network management method of claim 5, wherein the step of obtaining the standard network icon corresponding to the current network type includes:
acquiring a network icon set according to a preset reflection mechanism, and detecting whether a matching network icon corresponding to the current network type exists in the network icon set;
and if a matching network icon corresponding to the current network type exists, taking the matching network icon as a standard network icon.
7. The method of terminal application level network management of claim 6, wherein said step of detecting whether a matching network icon corresponding to the current network type exists in the set of network icons is followed by the step of:
if no matching network icon corresponding to the current network type exists, acquiring the private attribute information of a preset image, and determining whether the private attribute information is matched with the icon attribute information of the network icon set;
and if the private attribute information is matched with the icon attribute information, moving the image to the network icon set, constructing a corresponding relation between the image and the current network type in the network icon set, and taking the image as a standard network icon.
8. A terminal application layer network management apparatus, wherein the terminal application layer network management apparatus comprises:
the receiving module is used for sending a modem command to a modem corresponding to an application layer based on the received network switching instruction and receiving feedback information fed back by the modem after the modem performs network switching based on the modem command;
the determining module is used for determining the current network type of the current network of the terminal where the application layer is located according to the wireless interface layer corresponding to the application layer if the feedback information indicates that the network is updated;
and the adjusting module is used for adjusting the network icons in the application layer according to the current network type.
9. A terminal application layer network management device, characterized in that the terminal application layer network management device comprises: a memory, a processor and a terminal application layer network manager stored on the memory and operable on the processor, the terminal application layer network manager when executed by the processor implementing the steps of the terminal application layer network management method of any of claims 1 to 7.
10. A computer storage medium having stored thereon an end application layer network management program that, when executed by a processor, performs the steps of the end application layer network management method of any of claims 1 to 7.
CN202110173472.7A 2021-02-08 2021-02-08 Terminal application layer network management method, device, equipment and computer storage medium Active CN112969206B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110173472.7A CN112969206B (en) 2021-02-08 2021-02-08 Terminal application layer network management method, device, equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110173472.7A CN112969206B (en) 2021-02-08 2021-02-08 Terminal application layer network management method, device, equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN112969206A true CN112969206A (en) 2021-06-15
CN112969206B CN112969206B (en) 2022-06-21

Family

ID=76275563

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110173472.7A Active CN112969206B (en) 2021-02-08 2021-02-08 Terminal application layer network management method, device, equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN112969206B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114501565A (en) * 2022-02-21 2022-05-13 深圳市亿诺德科技有限公司 Network switching method based on industrial Internet of things
CN116567171A (en) * 2021-09-03 2023-08-08 荣耀终端有限公司 Video call method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090215404A1 (en) * 2008-02-26 2009-08-27 Vijay Sarathi Kesavan Device, system, and method of wireless network selection and handover
CN107396337A (en) * 2017-07-14 2017-11-24 深圳天珑无线科技有限公司 Network icon display methods, mobile terminal and computer-readable recording medium
US20190335343A1 (en) * 2018-04-26 2019-10-31 Verizon Patent And Licensing Inc. Systems and methods for identifying a cell type and cell communication capabilities from cellular broadcast data
WO2020043009A1 (en) * 2018-08-27 2020-03-05 Oppo广东移动通信有限公司 Ui display method and apparatus, and terminal device and storage medium
WO2020164407A1 (en) * 2019-02-14 2020-08-20 华为技术有限公司 Network selection method, network device and terminal device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090215404A1 (en) * 2008-02-26 2009-08-27 Vijay Sarathi Kesavan Device, system, and method of wireless network selection and handover
CN107396337A (en) * 2017-07-14 2017-11-24 深圳天珑无线科技有限公司 Network icon display methods, mobile terminal and computer-readable recording medium
US20190335343A1 (en) * 2018-04-26 2019-10-31 Verizon Patent And Licensing Inc. Systems and methods for identifying a cell type and cell communication capabilities from cellular broadcast data
WO2020043009A1 (en) * 2018-08-27 2020-03-05 Oppo广东移动通信有限公司 Ui display method and apparatus, and terminal device and storage medium
WO2020164407A1 (en) * 2019-02-14 2020-08-20 华为技术有限公司 Network selection method, network device and terminal device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116567171A (en) * 2021-09-03 2023-08-08 荣耀终端有限公司 Video call method and electronic equipment
CN116567171B (en) * 2021-09-03 2024-04-23 荣耀终端有限公司 Video call method and electronic equipment
CN114501565A (en) * 2022-02-21 2022-05-13 深圳市亿诺德科技有限公司 Network switching method based on industrial Internet of things

Also Published As

Publication number Publication date
CN112969206B (en) 2022-06-21

Similar Documents

Publication Publication Date Title
CN108881396B (en) Network data loading method, device, equipment and computer storage medium
CN108008890B (en) Double-screen mobile terminal, cross-application quick transmission method thereof and readable storage medium
CN110990741B (en) Page display method and device, electronic equipment, server and storage medium
US20140235258A1 (en) Application server awareness of device capabilities in a wireless network
CN112969206B (en) Terminal application layer network management method, device, equipment and computer storage medium
WO2018077041A1 (en) Method and apparatus for running application
US8688835B2 (en) Service enablement/disablement based on service relationships
CN112399006B (en) File sending method and device and electronic equipment
CN112230943A (en) Application processing method and device and electronic equipment
CN112437401A (en) Operation control method and device and electronic equipment
CN111142756A (en) Page display method, equipment and computer readable storage medium
CN114629932A (en) Electronic equipment and cooperation method between electronic equipment
CN111176577B (en) Distributed block storage service command processing method, device, equipment and medium
CN112749074B (en) Test case recommending method and device
CN111766987B (en) Application program management method and device and electronic equipment
CN113190143A (en) Interface display method and device, electronic equipment and medium
CN109165197B (en) File processing method, terminal and server
CN111459571A (en) Configuration method, processing method and device
CN113138786B (en) Application updating method and device
CN114281491A (en) Application stack management method and device, electronic equipment and storage medium
CN110336693B (en) Method, device, equipment and storage medium for managing network block equipment
CN113891441A (en) Network connection method and device and electronic equipment
CN113282204A (en) Icon control method and icon control device
CN113779446A (en) Access request response method, device, system, equipment and storage medium
CN112083902A (en) Control method of storage cabinet, storage cabinet and readable storage medium

Legal Events

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