Disclosure of Invention
The present disclosure is directed to at least one of the technical problems in the prior art, and provides a network information display method and apparatus, an electronic device, and a storage medium.
In a first aspect, an embodiment of the present disclosure provides a network information display method, used for a terminal, where the method includes:
acquiring network information of a network to which a terminal is currently connected, wherein the network information comprises operator information, networking type information, carrier frequency band information and network connection state information;
acquiring a plurality of network information display sub-icons corresponding to the network information according to the network information, wherein the plurality of network information display sub-icons are used for respectively representing operator information, networking type information, carrier frequency band information and network connection state information;
and generating a network information display icon according to the plurality of network information display sub-icons corresponding to the network information and displaying the network information display icon.
In a second aspect, an embodiment of the present disclosure provides a network information display apparatus, including:
the terminal comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring network information of a network to which the terminal is currently connected, and the network information comprises operator information, networking type information, carrier frequency band information and network connection state information;
the second acquisition module is used for acquiring a plurality of network information display sub-icons corresponding to the network information according to the network information, and the plurality of network information display sub-icons are used for respectively representing operator information, networking type information, carrier frequency band information and network connection state information;
and the generating and displaying module is used for generating a network information display icon according to the plurality of network information display sub-icons corresponding to the network information and displaying the network information display icon.
In a third aspect, the present disclosure provides an electronic device, including a memory and a processor, where the memory stores a computer program, and when the processor runs the computer program stored in the memory, the processor executes the network information display method as described above.
In a fourth aspect, the present disclosure provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the processor executes the network information display method as described above.
The present disclosure has the following beneficial effects:
the network information display method and device, the electronic device and the storage medium are used for acquiring network information of a network which is currently connected with a terminal, wherein the network information comprises operator information, networking type information, carrier frequency band information and network connection state information, a plurality of network information display sub-icons corresponding to the network information are acquired according to the network information, the plurality of network information display sub-icons are used for respectively representing the operator information, the networking type information, the carrier frequency band information and the network connection state information, the network information display icons are generated according to the plurality of network information display sub-icons corresponding to the network information and are displayed, and networking mode information, carrier types and connection state information of the operator network which is currently accessed into the terminal can be displayed and fed back through the network information display icons.
Specific embodiments of the present disclosure are disclosed in detail with reference to the following description and drawings, indicating the manner in which the principles of the disclosure may be employed. It is to be understood that the embodiments of the present disclosure are not so limited in scope. The embodiments of the present disclosure include many variations, modifications, and equivalents within the spirit and scope of the appended claims.
Features that are described and/or illustrated with respect to one embodiment may be used in the same way or in a similar way in one or more other embodiments, in combination with or instead of the features of the other embodiments.
It should be emphasized that the term "comprises/comprising" when used herein, is taken to specify the presence of stated features, integers, steps or components but does not preclude the presence or addition of one or more other features, integers, steps or components.
Detailed Description
For those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the present disclosure will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
As will be appreciated by one skilled in the art, embodiments of the present disclosure may be embodied as a system, apparatus, device, method, or computer program product. Accordingly, the present disclosure may be embodied in the form of: entirely hardware, entirely software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software.
The principles and spirit of the present disclosure are explained in detail below with reference to several representative embodiments of the present disclosure.
Fig. 1 is a schematic flowchart of a network information display method provided in an embodiment of the present disclosure, where the method is applicable to a terminal, and as shown in fig. 1, the method includes the following steps:
step 101, network information of a network to which the terminal is currently connected is acquired.
The network information includes operator information, networking type information, carrier frequency band information, and network connection state information.
And 102, acquiring a plurality of network information display sub-icons corresponding to the network information according to the network information.
The network information display sub-icons are used for respectively representing operator information, networking type information, carrier frequency band information and network connection state information.
And 103, generating a network information display icon according to the plurality of network information display sub-icons corresponding to the network information and displaying the network information display icon.
The network information display method provided by this embodiment acquires network information of a network to which a terminal is currently connected, where the network information includes operator information, networking type information, carrier frequency band information, and network connection state information, acquires a plurality of network information display sub-icons corresponding to the network information according to the network information, where the plurality of network information display sub-icons are used to represent the operator information, the networking type information, the carrier frequency band information, and the network connection state information, respectively, generates a network information display icon according to the plurality of network information display sub-icons corresponding to the network information and displays the network information display icon, and can display networking mode information, carrier type, and connection state information of the operator network to which the terminal is currently connected through the network information display icon.
Fig. 2 is a schematic flow chart of another network information display method provided in the embodiment of the present disclosure, and as shown in fig. 2, the method includes the following steps:
step 201, receiving an operation instruction, setting a corresponding relation between the network information display sub-icon and the network information according to the operation instruction, and storing the corresponding relation.
Preferably, each step in the present embodiment is executed by a network information display device.
The operation instruction may be a background operation instruction, which is used to set a corresponding relationship between the network information display sub-icon and the network information in the background, and the set corresponding relationship may be stored in a background server or a terminal.
For example, the specific data format of the correspondence relationship may be an XML display rule as shown below:
the conditions node is a precondition, and the actions node is a postaction taken according to the condition combination of the conditions node. The contents of the conditions nodes can be various operator information, networking type information, carrier frequency band information and network connection state information, and can be combined to generate various rule nodes according to the preposition conditions and the postposition behaviors, wherein the rule nodes are used for representing the corresponding relation between the network information display sub-icons and the network information.
Step 202, network information of a network to which the terminal is currently connected is acquired.
The network information includes operator information, networking type information, carrier frequency band information, and network connection state information.
For example: the operator information may be "china unicom", the networking type information may be "dependent networking", the carrier frequency band information may be "intermediate frequency", and the network connection status information may be "connected".
Preferably, the network to which the terminal is currently connected is a 5G network. Because the 5G network has a slice scene, under some terminal use scenes, the operator network can adjust the network information for the terminal and allocate 5G slices, the technical scheme of the embodiment can feed back and display the current network information in real time under the scene, and the network state perception effect of the terminal user can be effectively improved.
And 203, acquiring a plurality of network information display sub-icons corresponding to the network information according to the network information.
Specifically, a plurality of network information display sub-icons are acquired according to the network information and the correspondence relationship generated in step 201.
The network information display sub-icons are used for respectively representing operator information, networking type information, carrier frequency band information and network connection state information. The network information display sub-icon is a graphic icon or a character icon.
And 204, generating a network information display icon according to the plurality of network information display sub-icons corresponding to the network information and displaying the network information display icon.
And overlapping the plurality of network information display sub-icons and constructing to generate a network information display icon. The network information display sub-icon is provided with graphic elements, a plurality of graphic elements are overlapped to form the network information display sub-icon, the hollowed-out part of each layer of network information display sub-icon adopts a transparent design, and the non-hollowed-out part (namely, the picture part and the character part) adopts a semitransparent design to form the network information display sub-icon.
For example, constructing the generated network information display icon includes: and the operator identification is used as a bottom layer network information display sub-icon, a '5G' network information display sub-icon is firstly superposed, then a 'NSA' network information display sub-icon is superposed, a 'MidBand' network information display sub-icon used for representing carrier frequency band information is superposed on the right side of the same layer, and finally a 'connected' network information display sub-icon is superposed on the top layer.
Optionally, a network information display icon is displayed in a network information status bar of the terminal.
The generation method of the network information display icon is not limited to the embodiment described in this embodiment, and may be other embodiments capable of realizing real-time representation of the network information.
Optionally, after step 204, the method further includes: and when the feedback operation instruction is received, adjusting the corresponding relation according to the feedback operation instruction.
In this embodiment, the corresponding relationship between the network information display sub-icon and the network information may be adjusted according to the feedback operation instruction.
Such as: and receiving a feedback operation instruction sent by an operator network manager according to the corresponding operator network condition, wherein the feedback operation instruction is used for inputting the corresponding relation into a background server or sending the corresponding relation to a terminal so as to realize the corresponding relation adjustment.
The corresponding relation is flexibly adjusted in real time according to the specific network conditions of the operator (including the networking conditions and the coverage conditions of the network of the operator), and the display accuracy of the network information display icon can be effectively improved.
The following describes a network information display method provided in this embodiment by taking a specific scenario as an example:
the terminal accesses a 5G network in a certain area through a China Unicom mobile phone card, and the network information of the current network connected with the terminal acquired at the moment comprises the following steps: the operator information is 46001, the 5G network access type is NSA networking type, the carrier frequency band information is intermediate frequency (MidBand), the network connection state information is connected (connected), and the precondition generated by the network information of the currently connected network is as follows:
and obtaining a plurality of network information display sub-icons according to the rule node generated by the combination of the prepositive condition and the postpositive behavior, wherein operator _ icon, netmode _ icon, band _ icon and rrc _ icon respectively indicate the storage paths of the network information display sub-icons, and the plurality of network information display sub-icons are superposed to construct and display the network information display icons. Operator _ name, netmode _ name, band _ name and rrc _ name are respectively used for describing the characters of the network information display icon, and the character descriptions are not required to be displayed in a network information status bar of the terminal and are displayed in a character form of a network management menu or are subjected to short-time character prompt pop-up.
Optionally, in the 5G application scenario, 3 × 2 × 4 × 3 — 72 post behaviors < actions > may be combined according to different preconditions < conditions >, that is, 72 network information display icons may be constructed by different network information display sub-icons. At present, the 5G network is in the early stage of technology development, and with the maturity of 5G technology and the increase of slicing scenes in the future, more network states are necessarily fed back to a user in a mode of changing icons, and the change may occur at any time. For example, when a user uses a Mobile phone to play a network game, at the moment when the Mobile phone game is opened, because a game manufacturer orders a slicing service for the user, the operator network may adjust a network access mode, a carrier frequency band, and allocate 5G slicing services such as urlrlc (Ultra Reliable Low-Latency Communications), embb (enhanced Mobile broadband), and the like for the Mobile phone of the user to achieve better game experiences such as Low Latency, high bandwidth, and the like, and at this time, the display control rule and the processing flow are required to allow the user to accurately perceive the change of the current network state in real time, so as to help the user obtain better network state perception.
It should be noted that while the operations of the disclosed methods are depicted in the drawings in a particular order, this does not require or imply that these operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
The method provided by the embodiment generates the network information display icon and displays the network information display icon through the steps, and can display and feed back networking mode information, carrier type and connection state information of the operator network currently accessed by the terminal through the network information display icon. When the method is applied to a 5G network connection scene, the current network information can be fed back and displayed in real time in the scene, and the network state perception effect of a terminal user can be effectively improved.
Fig. 3 is a schematic structural diagram of a network information display device according to an embodiment of the present disclosure, and as shown in fig. 3, the device includes: a first acquisition module 11, a second acquisition module 12 and a generation display module 13.
The first obtaining module 11 is configured to obtain network information of a network to which the terminal is currently connected, where the network information includes operator information, networking type information, carrier frequency band information, and network connection state information. The second obtaining module 12 is configured to obtain, from the network information, a plurality of network information display sub-icons corresponding to the network information, where the plurality of network information display sub-icons are used to represent operator information, networking type information, carrier frequency band information, and network connection state information, respectively. The generation display module 13 is configured to generate a network information display icon according to the plurality of network information display sub-icons corresponding to the network information and display the network information display icon.
Further, the apparatus further comprises: the device comprises a receiving setting module and a storage module.
The receiving and setting module is used for receiving the operation instruction and setting the corresponding relation between the network information display sub-icon and the network information according to the operation instruction. The storage module is used for storing the corresponding relation.
The network information display device provided by the embodiment can be used for implementing the network information display method provided by the embodiment.
The network information display device provided by this embodiment acquires network information of a network to which a terminal is currently connected, where the network information includes operator information, networking type information, carrier frequency band information, and network connection state information, acquires a plurality of network information display sub-icons corresponding to the network information according to the network information, where the plurality of network information display sub-icons are used to represent the operator information, the networking type information, the carrier frequency band information, and the network connection state information, respectively, generates a network information display icon according to the plurality of network information display sub-icons corresponding to the network information, and displays the network information display icon, and can display and feed back networking mode information, carrier type, and connection state information of the operator network to which the terminal is currently connected through the network information display icon.
The embodiment of the disclosure further provides an electronic device, which includes a memory and a processor, where the memory stores a computer program, and when the processor runs the computer program stored in the memory, the processor executes the network information display method provided in this embodiment.
The embodiment of the present disclosure also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the processor executes the network information display method provided by the embodiment.
As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the disclosure. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principle and the implementation mode of the present disclosure are explained by applying specific embodiments in the present disclosure, and the above description of the embodiments is only used to help understanding the method and the core idea of the present disclosure; meanwhile, for a person skilled in the art, based on the idea of the present disclosure, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present disclosure should not be construed as a limitation to the present disclosure.