CN107426813B - Network information display method and device - Google Patents

Network information display method and device Download PDF

Info

Publication number
CN107426813B
CN107426813B CN201710330234.6A CN201710330234A CN107426813B CN 107426813 B CN107426813 B CN 107426813B CN 201710330234 A CN201710330234 A CN 201710330234A CN 107426813 B CN107426813 B CN 107426813B
Authority
CN
China
Prior art keywords
network information
information
registration state
network
changed registration
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.)
Active
Application number
CN201710330234.6A
Other languages
Chinese (zh)
Other versions
CN107426813A (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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201710330234.6A priority Critical patent/CN107426813B/en
Publication of CN107426813A publication Critical patent/CN107426813A/en
Application granted granted Critical
Publication of CN107426813B publication Critical patent/CN107426813B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W60/00Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration

Abstract

The invention discloses a method and a device for displaying network information, and belongs to the technical field of terminals. The method comprises the following steps: when the registration state of the mobile communication network changes, determining the changed registration state, wherein the registration state is used for indicating whether the mobile communication network is registered currently; acquiring network information of the mobile communication network, and judging whether the acquired network information is consistent with the changed registration state; when the acquired network information is inconsistent with the changed registration state, inquiring information inconsistent with the changed registration state in the acquired network information at intervals of preset time length; and when the network information obtained after the query is consistent with the changed registration state, refreshing the currently displayed network information through the network information obtained after the query. After the acquired network information is judged to be consistent with the registration state, the network information is displayed, the problem that the displayed information at the same time is inconsistent is avoided, and the accuracy of network information display is improved.

Description

Network information display method and device
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a method and an apparatus for displaying network information.
Background
With the continuous progress of society, the application range of the mobile terminal is wider and wider. In the process of using the mobile terminal, in order to exert the function of the mobile terminal to the maximum extent, the mobile communication network such as a 3G network, a 4G network and the like can be registered through the mobile terminal, and after the registration is successful, the network information of the mobile communication network is displayed, so that the user can intuitively know the network information of the mobile communication network.
In the related art, the mobile terminal may include a modem, a network information notification framework layer, and an interface display module. After the mobile terminal successfully registers the mobile communication network, the modem can acquire the network information of the mobile communication network and directly send the acquired network information to the network information notification framework layer, and the network information notification framework layer sends the network information to the interface display module so that the interface display module can display the network information.
However, since the network information may generally include a plurality of information, such as a registered network type, a roaming state, a registered network name, a signal value, an MCC (Mobile Country Code), an MNC (Mobile network Code), and the like, and the modem acquires the plurality of information in different manners, such as the registered network name being acquired from information broadcasted by the network side and the registered network type being actively acquired from the network side, the time at which the modem acquires the plurality of information may be different, so that a problem that the plurality of information in the network information displayed at the same time may be inconsistent occurs.
Disclosure of Invention
In order to solve the problems of the related art, embodiments of the present invention provide a method and an apparatus for displaying network information. The technical scheme is as follows:
in a first aspect, a method for displaying network information is provided, where the method includes:
when the registration state of the mobile communication network changes, determining the changed registration state, wherein the registration state is used for indicating whether the mobile communication network is registered currently;
acquiring network information of the mobile communication network, and judging whether the acquired network information is consistent with the changed registration state;
when the acquired network information is inconsistent with the changed registration state, inquiring information inconsistent with the changed registration state in the acquired network information every preset time length;
and when the network information obtained after the query is consistent with the changed registration state, refreshing the currently displayed network information through the network information obtained after the query.
Optionally, the determining whether the acquired network information is consistent with the changed registration state includes:
if the changed registration state is unregistered, determining that the obtained network information is consistent with the changed registration state when the obtained network information is invalid information, and determining that the obtained network information is inconsistent with the changed registration state when the obtained network information contains valid information;
if the changed registration state is registered, when the acquired network information is valid information, the acquired network information is determined to be consistent with the changed registration state, and when the acquired network information has invalid information, the acquired network information is determined to be inconsistent with the changed registration state.
Optionally, after determining the changed registration status, the method further includes:
if the changed registration state is registered, executing the step of acquiring the network information of the mobile communication network;
if the changed registration state is unregistered, setting network information as an initial value, and refreshing the currently displayed network information through the set network information.
Optionally, the network information includes, but is not limited to, the following information:
registered network type, roaming status, registered network name, signal value, MCC, MNC.
In a second aspect, a method for displaying network information is provided, the method including:
when the registration state of the mobile communication network changes, determining the changed registration state, wherein the registration state is used for indicating whether the mobile communication network is registered currently;
acquiring network information of the mobile communication network, and judging whether the acquired network information is consistent with the changed registration state;
when the acquired network information is inconsistent with the changed registration state, setting network information consistent with the changed registration state;
and refreshing the currently displayed network information through the set network information.
Optionally, the setting network information consistent with the changed registration state includes:
determining information inconsistent with the changed registration state from the acquired network information; setting the determined information as preset information consistent with the changed registration state;
alternatively, the first and second electrodes may be,
and setting all the acquired information in the network information as preset information consistent with the changed registration state.
In a third aspect, there is provided a display device for network information, the device comprising:
a determining module, configured to determine a changed registration state when a registration state of a mobile communication network changes, where the registration state is used to indicate whether the mobile communication network is currently registered;
an acquisition module, configured to acquire network information of the mobile communication network;
the judging module is used for judging whether the acquired network information is consistent with the changed registration state;
the query module is used for querying information which is inconsistent with the changed registration state in the acquired network information every preset time length when the acquired network information is inconsistent with the changed registration state;
and the refreshing module is used for refreshing the currently displayed network information through the network information obtained after the inquiry when the network information obtained after the inquiry is consistent with the changed registration state.
Optionally, the determining module is specifically configured to:
if the changed registration state is unregistered, determining that the obtained network information is consistent with the changed registration state when the obtained network information is invalid information, and determining that the obtained network information is inconsistent with the changed registration state when the obtained network information contains valid information;
if the changed registration state is registered, when the acquired network information is valid information, the acquired network information is determined to be consistent with the changed registration state, and when the acquired network information has invalid information, the acquired network information is determined to be inconsistent with the changed registration state.
Optionally, the apparatus further comprises:
a triggering module, configured to trigger the obtaining module to obtain the network information of the mobile communication network if the changed registration state is registered;
and the setting module is used for setting the network information as an initial value if the changed registration state is unregistered, and refreshing the currently displayed network information through the set network information.
Optionally, the network information includes, but is not limited to, the following information:
registered network type, roaming status, registered network name, signal value, MCC, MNC.
In a fourth aspect, there is provided a display apparatus of network information, the apparatus comprising:
a determining module, configured to determine a changed registration state when a registration state of a mobile communication network changes, where the registration state is used to indicate whether the mobile communication network is currently registered;
an acquisition module, configured to acquire network information of the mobile communication network;
the judging module is used for judging whether the acquired network information is consistent with the changed registration state;
a setting module, configured to set network information that is consistent with the changed registration state when the obtained network information is inconsistent with the changed registration state;
and the refreshing module is used for refreshing the currently displayed network information through the set network information.
Optionally, the setting module is specifically configured to:
determining information inconsistent with the changed registration state from the acquired network information; setting the determined information as preset information consistent with the changed registration state;
alternatively, the first and second electrodes may be,
and setting all the acquired information in the network information as preset information consistent with the changed registration state.
The technical scheme provided by the embodiment of the invention has the following beneficial effects: in the embodiment of the invention, when the registration state of the mobile communication network changes, the changed registration state is determined, and the network information of the mobile communication network is acquired. In order to ensure that the acquired network information is consistent with the changed registration state, when the network information of the mobile communication network is acquired, the currently displayed network information is not refreshed immediately, but whether the acquired network information is consistent with the changed registration state is judged first, so that the information inconsistent with the changed registration state in the network information is inquired every preset time interval under the condition that the acquired network information is inconsistent with the changed registration state, and the currently displayed network information is refreshed when the network information consistent with the changed registration state is acquired after inquiry, so that the problem that a plurality of pieces of information in the network information displayed at the same time are inconsistent is solved, and the display accuracy of the network information is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a diagram illustrating a display system architecture for network information according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for displaying network information according to an embodiment of the present invention;
fig. 3 is a flowchart of another method for displaying network information according to an embodiment of the present invention;
fig. 4 is a flowchart of a method for displaying network information according to another embodiment of the present invention;
fig. 5 is a flowchart of a method for displaying network information according to another embodiment of the present invention;
fig. 6A is a schematic structural diagram of a display device for network information according to an embodiment of the present invention;
fig. 6B is a schematic structural diagram of another network information display device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a display device for displaying network information according to another embodiment of the present invention;
fig. 8 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
For convenience of understanding, before explaining the embodiments of the present invention in detail, terms, application scenarios and system architectures related to the embodiments of the present invention will be described.
First, some terms related to embodiments of the present invention will be described and explained.
Mobile communication network
The mobile communication network refers to a network used for any two network devices to communicate with each other, and is colloquially referred to as a cellular mobile network, for example, the mobile communication network may be a 3G network, a 4G network, and the like.
Network information
The network information refers to information describing a mobile communication network to which the mobile terminal is currently registered, and includes, but is not limited to, a registered network type, a roaming state, a registered network name, a signal value, an MCC, and an MNC.
The registered network type refers to a network type corresponding to a Mobile Communication network after the Mobile terminal successfully registers the Mobile Communication network, for example, a GSM (Global System for Mobile Communication), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, Time Division Synchronous Code Division Multiple Access) network, WCDMA (Wideband Code Division Multiple Access ) network, CDMA1x (Code Division Multiple Access1x, first-stage of Code Division Multiple Access) network, LTE (Long Term Evolution) network, or CDMA2000(Code Division Multiple Access2000 ) network.
The roaming state refers to a state in which a network signal access place of a mobile communication network to which the mobile terminal is currently registered is different from a home place. For example, if the network signal access location of the mobile communication network to which the mobile terminal is currently registered is japan and the home location of the mobile terminal registered with the mobile communication network is china, it is determined that the mobile terminal is in a roaming state.
The registered network name refers to a name of a network operator to which the mobile terminal is currently registered. For example, the registered network name may be china mobile, china telecom, etc.
The signal value is used for indicating the network signal strength of the mobile terminal currently connected with the mobile communication network. Such as 35dB (Decibel), 60dB or 80dB, etc.
Registration status
The registration status is used to indicate whether the mobile communication network is currently registered, and may include both registered and unregistered statuses.
Valid or invalid information
The valid or invalid information refers to validity or invalidity of each information in the network information, for example, when the registered network name is out of service, the registered network name is invalid information, and when the signal value of the mobile communication network is 0dB, the signal value is invalid information. And when the registered network name is China Mobile or China telecom, the registered network name is valid information.
Next, an application scenario related to the embodiment of the present invention is described.
In the using process of the mobile terminal, the mobile terminal is often powered off for some reasons or the flight mode of the mobile terminal is started (when the mobile terminal is in the flight mode, the mobile terminal is disconnected from the mobile communication network). When the mobile terminal is restarted or the flight mode is closed, the mobile terminal can re-register the mobile communication network and acquire the network information of the mobile communication network after the registration is successful. In the related art, the information displayed at the same time is inconsistent because the mobile terminal acquires each piece of information in the network information in different ways, that is, the information displayed at the same time includes both valid information and invalid information, which causes a certain trouble to the user, and makes the user unable to judge whether the mobile terminal has a fault or the mobile communication network has failed to register, or other reasons. Therefore, the embodiment of the invention provides a method for displaying network information, which avoids the problem of inconsistent information displayed at the same time, thereby improving the accuracy of network information display.
Of course, the embodiment of the present invention may be applied not only to the above scenario of restarting or closing the flight mode, but also to other scenarios, for example, when the mobile terminal moves from the network uncovered area to the network covered area, the mobile terminal needs to re-register the mobile communication network.
Finally, a system architecture according to an embodiment of the present invention is described.
Fig. 1 is a diagram of a display system architecture for network information according to an embodiment of the present invention. The system architecture may be deployed on a mobile terminal. As shown in fig. 1, the system architecture includes a modem 101, an operating system framework layer 102, and an application layer 103. The modem 101 is connected to an operating system framework layer 102, and the operating system framework layer 102 is connected to an application layer 103. The modem 101 is configured to acquire network information of a mobile communication network currently registered by the mobile terminal, and send the acquired network information to the operating system framework layer 102, where the operating system framework layer 102 parses the received network information, determines whether the parsed network information is consistent with a registration state of the mobile communication network, and sends a notification message to the application layer 103 after determining that the parsed network information is consistent with the registration state of the mobile communication network, so that the notification layer 103 acquires corresponding network information from the operating system framework layer 102 and displays the acquired network information.
The os framework layer 102 may include an information transmission layer 1021, an information analysis layer 1022, an information judgment layer 1023, an information notification layer 1024, a system service module 1025, and an application interface management module 1026. The modem 101 is connected to an information transmission layer 1021 in the os framework layer 102, the information transmission layer 1021 is connected to an information parsing layer 1022, the information parsing layer 1022 is connected to an information judgment layer 1023, the information judgment layer 1023 is connected to an information notification layer 1024, the information notification layer 1024 is connected to a system service module 1025, and the system server module 1025 is connected to an application interface management module 1026 and the application layer 103, respectively.
The information transmission layer 1021 may receive the network information sent by the modem 101 and send the received network information to the information parsing layer 1022, and the information parsing layer 1022 is configured to parse the received network information and send the parsed network information to the information judgment layer 1023, so that the information judgment layer 1023 can identify the network information. When the information judgment layer 1023 receives the parsed network information, it judges whether the received network information is consistent with the registration state of the mobile communication network, and transmits the network information to the information notification layer 1024 after it is determined to be consistent. The network information is then sent by the information notification layer 1024 to the system services module 1025, stored by the system services module 1025, and sent a refresh display notification of the network information to the application layer 103.
The application layer 103 may include a status bar display module 1031 and a setting interface display module 1032, where the status bar display module 1031 is connected to the system service module 1025 and the setting interface display module 1032 is connected to the application interface management module 1026.
The status bar display module 1031 is configured to register events that need to be paid attention in the system service module 1025 when the mobile terminal is powered on and started, where the events include events that need to refresh and display information in the status bar in network information for refresh and display, and when a refresh and display notification of the network information sent by the system service module 1025 is received, obtain information that needs to be refreshed and displayed in the status bar from the network information stored in the system service module 1025 and display the information. The setting interface display module 1032 is configured to, when a network information display interface in the setting interface is opened, call an application interface through the application interface management module 1026, and obtain, through the called application interface, information that needs to be refreshed and displayed in the network information display interface from the network information stored in the system service module 1025, and display the information.
It should be noted that the operating system framework layer 102 in the system architecture may be a framework layer of an operating system currently installed in the mobile terminal. The operating system currently installed on the mobile terminal may be an Android (Android) operating system or an IOS operating system. Taking an operating system currently installed in the mobile terminal as an Android operating system as an example, an information transmission layer 1021 in the operating system framework layer 102 may be an RILJ layer, when a network type in the network information is a GSM network, an information analysis layer 1022 may be a GsmSST layer, when the network type in the network information is a WCDMA network, the information analysis layer 1022 may be a WCDMASST layer, an information judgment layer 1023 may be an hmcttelenynotifier layer (a layer newly added to an original operating framework layer), an information notification layer 1024 may be a telenynotifier layer, a system service module 1025 may be a telephoney registration 1026 module, and an application interface management module may be a TelephonyManager API module. The status bar display module 1031 in the application layer 103 may be a SystemUI module, and the Setting interface display module 1032 may be a Setting module.
After introducing the nouns, application scenarios and system architectures related to the embodiments of the present invention, the following describes the embodiments of the present invention in detail. When the network information acquired by the mobile terminal is inconsistent with the changed registration state, the mobile terminal can query the information inconsistent with the changed registration state in the acquired network information every preset time, and can also set the network information consistent with the changed registration state. Therefore, the method for displaying network information will be described below with reference to two embodiments.
Fig. 2 is a flowchart of a method for displaying network information according to an embodiment of the present invention. The method is applied to a mobile terminal, and this embodiment will be described by taking as an example that information inconsistent with a changed registration state in acquired network information is queried every preset time period. Referring to fig. 2, the method comprises the steps of:
step 201: when the registration state of the mobile communication network changes, the changed registration state is determined, and the registration state is used for indicating whether the mobile communication network is registered currently.
Step 202: and acquiring the network information of the mobile communication network, and judging whether the acquired network information is consistent with the changed registration state.
Step 203: and when the acquired network information is inconsistent with the changed registration state, inquiring information inconsistent with the changed registration state in the acquired network information every preset time.
Step 204: and when the network information obtained after the query is consistent with the changed registration state, refreshing the currently displayed network information through the network information obtained after the query.
In summary, according to the method provided in this embodiment, when the mobile terminal acquires the network information, the currently displayed network information is not refreshed immediately, but whether the acquired network information is consistent with the changed registration state is determined first, so that when the acquired network information is inconsistent with the changed registration state, information inconsistent with the changed registration state in the acquired network information is queried every preset time, and thus when the network information consistent with the changed registration state is obtained after querying, the currently displayed network information is refreshed, the problem of inconsistent displayed network information is avoided, and therefore the problem of confusion caused by inconsistent network information display of a user using the mobile terminal is solved, and the accuracy of the mobile terminal in displaying the network information is improved.
Fig. 3 is a flowchart of a method for displaying network information according to an embodiment of the present invention. The method is applied to a mobile terminal, and the present embodiment is described by taking as an example the setting of network information that is consistent with the changed registration state. Referring to fig. 3, the method comprises the steps of:
step 301: when the registration state of the mobile communication network changes, the changed registration state is determined, and the registration state is used for indicating whether the mobile communication network is registered currently.
Step 302: and acquiring the network information of the mobile communication network, and judging whether the acquired network information is consistent with the changed registration state.
Step 303: and when the acquired network information is inconsistent with the changed registration state, setting the network information consistent with the changed registration state.
Step 304: and refreshing the currently displayed network information through the set network information.
In summary, in the method provided in this embodiment, when the mobile terminal acquires the network information, the currently displayed network information is not refreshed immediately, but it is determined whether the acquired network information is consistent with the changed registration state, so that the network information consistent with the changed registration state is set when the acquired network information is inconsistent with the changed registration state, and the currently displayed network information is refreshed based on the set network information; the problem of inconsistent displayed network information is avoided, the problem of puzzlement caused by inconsistent network information display of a user using the mobile terminal is solved, and the accuracy of the network information display of the mobile terminal is improved.
Fig. 4 is a flowchart of a method for displaying network information according to an embodiment of the present invention. The method is applied to a mobile terminal, and the mobile terminal may deploy the system architecture shown in fig. 1. The embodiment shown in fig. 2 will be described in detail with reference to fig. 1. Referring to fig. 4, the method includes the steps of:
step 401: when the registration state of the mobile communication network changes, the changed registration state is determined.
Since the registration state of the mobile communication network registered by the mobile terminal may change after the mobile terminal is rebooted or the airplane mode is turned off, or in some other application scenarios, and the network information of the mobile communication network is different when the registration state of the mobile communication network is different, when it is determined that the registration state of the mobile communication network changes, it is necessary to determine the changed registration state.
After the registration state of the mobile communication network is changed, the changed registration state may be unregistered or registered. However, the registration state of the mobile communication network may be determined by whether the mobile terminal has accessed the mobile communication network, and thus, when the mobile terminal determines the changed registration state, it may be determined whether the mobile communication network is currently accessed, such as whether the 3G network or the 4G network is accessed, and if the mobile communication network is currently accessed, it may be determined that the changed registration state is registered, and if the mobile communication network is not currently accessed, it may be determined that the changed registration state is unregistered.
It should be noted that, in the embodiment of the present invention, the mobile terminal may determine whether the registration state of the mobile communication network changes in real time, and may perform interaction with the network side to determine when the registration state of the mobile communication network changes, and a process of determining through interaction with the network side may refer to related technologies, which is not described in detail in the embodiment of the present invention.
Alternatively, when the mobile terminal includes the modem, the operating system framework layer and the application layer shown in fig. 1, the specific implementation process of step 401 may be: when the modem detects that the registration state of the mobile communication network is changed, the changed registration state can be determined by the modem. The modem detects whether the registration status changes, and determines the implementation manner of the changed registration status with reference to the above description.
Step 402: network information of a mobile communication network is acquired.
Since the network information of the mobile communication network may also change after the registration state of the mobile communication network changes, in order to ensure the accuracy of the displayed network information, the mobile terminal may also reacquire the network information of the mobile communication network after determining the changed registration state.
In addition, the network information may generally include a plurality of information, such as a registered network type, a roaming status, a registered network name, a signal value, an MCC, an MNC, etc., and the plurality of information may be transmitted in different manners, so that the mobile terminal may obtain the plurality of information according to the transmission manners of the plurality of information to obtain the network information of the mobile communication network. For example, for the registered network type, the mobile terminal may actively obtain from the network side, and for the registered network name, the mobile terminal may obtain from the information broadcast by the network side.
It should be noted that, in some scenarios, for example, the mobile terminal moves from an area without network coverage to an area with network coverage, at this time, the mobile terminal may not register with the mobile communication network yet, but since the current location of the mobile terminal is the area with network coverage, the mobile terminal may receive the information broadcasted by the network side, and therefore, for the information (for example, the name of the registered network) that needs to be obtained from the information broadcasted by the network side in the network information, the mobile terminal may obtain the information regardless of whether the mobile terminal currently registers with the mobile communication network. That is, the mobile terminal can acquire the network information of the mobile communication network regardless of whether the changed registration state is registered or unregistered.
However, when the changed registration state is unregistered, the mobile terminal may only acquire information transmitted by the network side in a broadcast manner, but may not actively acquire information from the network side, which may result in incomplete acquired network information or low accuracy. Therefore, in order to ensure the integrity and accuracy of the acquired network information of the mobile communication network, the network information of the mobile communication network may be acquired when the changed registration state is registered. At this time, for the case that the changed registration state is unregistered, the mobile terminal may set the network information as an initial value, and refresh the currently displayed network information through the set network information.
It should be noted that the initial value set for the network information may be stored in the mobile terminal in advance, for example, the initial value set for the registered network name may be out of service, the initial value set for the signal value may be 0dB, and the like, which is not listed in this embodiment of the present invention.
Alternatively, when the mobile terminal includes the modem, the operating system framework layer and the application layer shown in fig. 1, the specific implementation process of step 402 may be: after the modem determines the registration state of the mobile communication network, the registration state can be acquired one by one according to different transmission modes of each piece of information in the network information.
Step 403: and judging whether the acquired network information is consistent with the changed registration state, if so, executing step 404, otherwise, executing step 405.
In order to accurately display the acquired network information and avoid causing certain trouble to the user, before the acquired network information is displayed, whether the acquired network information is consistent with the changed registration state or not can be judged. However, since the changed registration status may be unregistered or registered, the following two cases are described separately:
first possible scenario: and if the changed registration state is unregistered, determining that the acquired network information is consistent with the changed registration state when the acquired network information is invalid information, and determining that the acquired network information is inconsistent with the changed registration state when the acquired network information contains valid information.
If the changed registration state is unregistered, it may be determined that the mobile terminal does not access the mobile communication network, that is, for the mobile terminal, the network information displayed by the mobile terminal should be invalid information. Therefore, when the network information acquired by the mobile terminal is invalid information, it can be determined that the acquired network information is consistent with the changed registration state. In contrast, when valid information exists in the acquired network information, it may be determined that the acquired network information is inconsistent with the changed registration state.
For example, the changed registration state is unregistered, and when the network information includes a signal value, a registered network name, and a registered network type, it is assumed that the signal value is 0dB, the registered network name is out of service, and the registered network type is out of network, and since the acquired network information is invalid information, it can be determined that the acquired network information is consistent with the changed registration state. On the contrary, assuming that the signal value is 0dB, the registered network name is china mobile, and the registered network type is no network, since the registered network name is valid information, it can be determined that valid information exists in the acquired network information, and further it can be determined that the acquired network information is inconsistent with the changed registration state.
Second possible scenario: and if the changed registration state is registered, determining that the acquired network information is consistent with the changed registration state when the acquired network information is valid information, and determining that the acquired network information is inconsistent with the changed registration state when invalid information exists in the acquired network information.
If the changed registration state is registered, it may be determined that the mobile terminal has accessed the mobile communication network, that is, for the mobile terminal, the network information displayed by the mobile terminal should be all valid information. Therefore, when the network information acquired by the mobile terminal is all valid information, it can be determined that the acquired network information is consistent with the changed registration state, and conversely, when invalid information exists in the acquired network information, it can be determined that the acquired network information is inconsistent with the changed registration state.
For example, the changed registration state is registered, and when the network information includes a signal value, a registered network name, and a registered network type, it is assumed that the signal value is 20dB, the registered network name is china mobile, and the registered network type is a GSM network, and since the obtained network information is valid information, it can be determined that the obtained network information is consistent with the changed registration state. On the contrary, assuming that the signal value is 0dB, the registered network name is china mobile, and the registered network type is no network, since both the signal value and the registered network type are invalid information, it can be determined that invalid information exists in the acquired network information, and it can be determined that the acquired network information is inconsistent with the changed registration state.
Optionally, when the mobile terminal includes the modem, the operating system framework layer and the application layer shown in fig. 1, and the operating system framework layer includes an information transmission layer, an information analysis layer, an information judgment layer, an information notification layer, a system service module and an application interface management module, a specific implementation process of step 403 may be: the modem sends the acquired network information to the information transmission layer, the information transmission layer receives the network information and sends the received network information to the information analysis layer, and the information analysis layer analyzes the received network information and sends the analyzed network information to the information judgment layer when receiving the network information, so that the information judgment layer can identify the network information. When the information judging layer receives the network information sent by the information analyzing layer, whether the received network information is consistent with the changed registration state can be judged, and the network information is sent to the system service module when the received network information is consistent with the changed registration state, and the system service module stores the network information and sends a refresh display notice of the network information to the application layer.
Step 404: and refreshing the currently displayed network information through the acquired network information.
Since the network information may include various information, such as a registered network type, a roaming status, a registered network name, a signal value, an MCC, an MNC, and the like, some of the various information need to be displayed in the status bar, and some information need not be displayed in the status bar, but may be displayed in a network information display interface in the setting interface, for example, when the mobile terminal is a mobile phone, the network information display interface may be an interface "about the mobile phone" in the setting interface. Therefore, information that needs to be displayed in the status bar can be acquired from the network information, and the updated display can be performed. For the information that needs to be displayed in the network information display interface, when the interface is opened, the information that needs to be displayed in the interface can be obtained from the network information, and the information displayed in the interface is refreshed and displayed.
It should be noted that, in a possible implementation manner, in order to reduce the number of commands interacted between modules in the mobile terminal, the network information generally includes information corresponding to each network type, and therefore, when refreshing currently displayed network information, information corresponding to a currently registered network type needs to be acquired.
In addition, because the status bar usually displays the signal lattice, and the signal lattice is determined by the signal value, when the mobile terminal displays the signal lattice in the status bar, the signal value in the network information can be converted into the signal lattice according to a preset strategy, and the converted signal lattice is displayed.
Optionally, for the signal lattice, after the signal value in the network information is converted, it is necessary to determine whether the converted signal lattice is equal to the currently displayed signal lattice, if so, the signal lattice may not be refreshed at this time, and the signal lattice is discarded directly.
In a possible implementation manner, in the step-by-step degradation refresh process, the signal lattice obtained by converting the signal value in the network information that may be obtained again is enhanced, and at this time, the step-by-step degradation refresh process may be cancelled, and the signal lattice obtained by converting the signal value in the network information that is obtained again is immediately displayed.
When the mobile terminal includes the modem, the operating system framework layer, and the application layer shown in fig. 1, and the application layer includes the status bar display module and the setting interface display module, the specific implementation process of step 404 may be: when the status bar display module receives a refresh display notice of the network information sent by the system service module, the information required to be displayed in the status bar is acquired from the network information stored in the system service module, the acquired information is displayed in the status bar, and the setting interface display module can call an interface through the application interface management module when a network information display interface in the setting interface is opened, acquire the information required to be displayed in the network information display interface from the network information stored in the system service module through the called interface, and display the acquired information in the network information display interface.
Step 405: and inquiring information inconsistent with the changed registration state in the acquired network information every preset time length.
When the acquired network information is inconsistent with the changed registration state, the mobile terminal may query all information in the network information of the mobile communication network every preset time period, and determine whether the queried network information is consistent with the changed registration state, if so, execute step 406, otherwise, continue to query all information in the network information of the mobile communication network again every preset time period until the re-queried network information is consistent with the changed registration state. However, since there may be information consistent with the changed registration state in the network information acquired last time, it takes some useless time to query all information in the network information every preset time. In order to save the useless time and improve the display efficiency of the network information, the mobile terminal can also determine the information inconsistent with the changed registration state in the acquired network information, then inquire the information inconsistent with the changed registration state in the network information at intervals of preset time length, judge whether the inquired information is consistent with the changed registration state, if so, execute step 406, otherwise, continue to inquire the inconsistent information at intervals of preset time length until the inquired information is consistent with the changed registration state.
If the changed registration state is registered and invalid information exists in the acquired network information, determining the invalid information as information inconsistent with the changed registration state in the acquired network information. And if the changed registration state is unregistered and effective information exists in the acquired network information, determining the effective information as information inconsistent with the changed registration state in the acquired network information.
For example, when the changed registration state is registered, assuming that the signal value in the acquired network information is 0dB, the registered network name is out of service, and the registered network type is a GSM network, it is determined that the signal value and the registered network name are inconsistent with the changed registration state in the acquired network information. When the changed registration state is unregistered, assuming that a signal value in the acquired network information is 2dB, a registered network name is china mobile, and the registered network type is no network, determining that the signal value and the registered network name are inconsistent with the changed registration state in the acquired network information.
It should be noted that the preset time duration may be set by a user, or may be set by an operating system of the mobile terminal as a default, for example, the preset time duration may be 1s or 2s, which is not limited in the embodiment of the present invention.
Optionally, when the mobile terminal includes the modem, the operating system framework layer and the application layer shown in fig. 1, and the operating system framework layer includes an information transmission layer, an information analysis layer, an information judgment layer, an information notification layer, a system service module and an application interface management module, the specific implementation process of step 405 may be: when the information judgment layer determines that the acquired network information is inconsistent with the changed registration state, the information judgment layer may inquire, at every preset time interval, information inconsistent with the changed registration state in the acquired network information based on the modem, and further judge whether the changed registration state is consistent with the inquired information.
It should be noted that, in the case that the information determining layer queries inconsistent information every preset time, the modem may also obtain network information according to the original mechanism, and report the obtained network information to the information analyzing layer, and the information analyzing layer reports the received network information to the information determining layer.
Step 406: and when the network information obtained after the query is consistent with the changed registration state, refreshing the currently displayed network information through the network information obtained after the query.
Optionally, when the mobile terminal includes the modem, the operating system framework layer and the application layer shown in fig. 1, and the operating system framework layer includes an information transmission layer, an information analysis layer, an information judgment layer, an information notification layer, a system service module and an application interface management module, the specific implementation process of step 406 may be: when the information judgment layer determines that the changed registration state is consistent with the inquired network information, the inquired network information is sent to the information notification layer, the information notification layer receives the inquired network information and then sends the inquired network information to the system service module, the system service module sends a refreshing display notification of the network information to the application layer, the application layer acquires the corresponding network information from the system service module, and the currently displayed network information is refreshed based on the acquired network information.
In summary, in the method provided in the embodiment of the present invention, when the mobile terminal acquires the network information, the currently displayed network information is not refreshed immediately, but it is determined whether the acquired network information is consistent with the changed registration state first, so that when the acquired network information is inconsistent with the changed registration state, information inconsistent with the changed registration state in the acquired network information is queried every preset time period, and when the network information consistent with the changed registration state is obtained after the query, the currently displayed network information is refreshed; the problem of the user who uses mobile terminal because of the inconsistent network information display of the same time causes the puzzlement is solved, the mobile terminal display network information's rate of accuracy has been improved.
Fig. 5 is a flowchart of a method for displaying network information according to an embodiment of the present invention. The method is applied to a mobile terminal, and the mobile terminal may deploy the system architecture shown in fig. 1. The embodiment shown in fig. 3 will be described in detail with reference to fig. 1. Referring to fig. 5, the method includes the steps of:
step 501: when the registration state of the mobile communication network changes, the changed registration state is determined.
The implementation method of this step may be the same as or similar to step 401 in the embodiment shown in fig. 4, which is not described in detail in this embodiment of the present invention.
Step 502: network information of a mobile communication network is acquired.
The implementation method of this step may be the same as or similar to step 402 in the embodiment shown in fig. 4, which is not described in detail in this embodiment of the present invention.
Step 503: and judging whether the acquired network information is consistent with the changed registration state, if so, executing step 504, otherwise, executing step 505.
The implementation method of this step may be the same as or similar to step 403 in the embodiment shown in fig. 4, which is not described in detail in this embodiment of the present invention.
Step 504: and refreshing the currently displayed network information through the acquired network information.
The implementation method of this step may be the same as or similar to step 404 in the embodiment shown in fig. 4, which is not described in detail in this embodiment of the present invention.
Step 505: setting network information consistent with the changed registration state.
When the acquired network information is inconsistent with the changed registration state, the network information consistent with the changed registration state can be set in order to avoid causing certain trouble to the user and ensure the accuracy of the displayed network information. However, when setting the network information, it is possible to set information that is inconsistent with the changed registration state in the acquired network information, or it is possible to set all information in the acquired network information, which will be described in detail below.
First case: and determining information inconsistent with the changed registration state from the acquired network information, and setting the determined information as preset information consistent with the changed registration state.
It should be noted that consistent network information may be preset according to the registration status, and the set network information and the registration status may be stored in the mobile terminal in a corresponding manner. That is, the mobile terminal stores the network information that matches the registered network information, and of course, stores the network information that matches the unregistered network information. For convenience of description, the network information preset according to the registration state is referred to as preset information consistent with the registration state.
Therefore, when setting the network information, the information inconsistent with the changed registration state may be determined from the acquired network information, then, according to the changed registration state, preset information corresponding to the determined information one-to-one and consistent with the changed registration state is acquired from the information stored in the mobile terminal, and the determined information is set as the acquired preset information.
The specific implementation process of determining the information inconsistent with the changed registration state from the acquired network information may be: and if the changed registration state is registered and invalid information exists in the acquired network information, determining the invalid information as information inconsistent with the changed registration state in the acquired network information. And if the changed registration state is unregistered and effective information exists in the acquired network information, determining the effective information as information inconsistent with the changed registration state in the acquired network information.
For example, when the changed registration state is registered, assuming that the signal value in the acquired network information is 0, the registered network name is out of service, and the registered network type is a GSM network, determining that the signal value and the registered network name are inconsistent with the changed registration state in the acquired network information, acquiring preset information that the signal value is 2dB and the registered network name is china mobile, and setting the consistent information in the acquired network information as the acquired preset information, where the set network information is: the signal value is 2dB, the name of the registered network is China Mobile, and the type of the registered network is GSM network. When the changed registration state is unregistered, assuming that a signal value in the acquired network information is 2dB, a registered network name is china mobile, and a registered network type is no network, determining that the signal value and the registered network name are inconsistent with the changed registration state in the acquired network information, acquiring preset information that the signal value is 0dB and the registered network name is no service, and setting the consistent information in the acquired network information as the acquired preset information, wherein the set network information is: the signal value is 0dB, the registered network name is out of service, and the registered network type is out of network.
Second case: and setting all the acquired information in the network information as preset information consistent with the changed registration state.
It should be noted that, the method for setting all the information in the acquired network information is the same as or similar to that in the first case, and reference may be made to the description in the first case, which is not described in detail in the embodiments of the present invention.
Optionally, when the mobile terminal includes the modem, the operating system framework layer and the application layer shown in fig. 1, and the operating system framework layer includes an information transmission layer, an information analysis layer, an information judgment layer, an information notification layer, a system service module and an application interface management module, a specific implementation process of step 505 may be: when the information judgment layer determines that the acquired network information is inconsistent with the changed registration state, the information judgment layer may set the network information consistent with the changed registration state. For an implementation manner of setting the network information consistent with the changed registration state, reference may be made to the above description.
Step 506: and refreshing the currently displayed network information through the set network information.
Optionally, when the mobile terminal includes the modem, the operating system framework layer and the application layer shown in fig. 1, and the operating system framework layer includes an information transmission layer, an information analysis layer, an information judgment layer, an information notification layer, a system service module and an application interface management module, a specific implementation process of step 506 may be: when the information judgment layer sets network information which is consistent with the changed registration state, the set network information is sent to the information notification layer, the information notification layer receives the set network information and then sends the set network information to the system service module, the system service module sends a refreshing display notification of the network information to the application layer, the application layer acquires the corresponding network information from the system service module, and the currently displayed network information is refreshed based on the acquired network information.
In summary, in the method provided in this embodiment, when the mobile terminal acquires the network information, the currently displayed network information is not refreshed immediately, but it is determined whether the acquired network information is consistent with the changed registration state, so that the network information consistent with the changed registration state is set when the acquired network information is inconsistent with the changed registration state, and the currently displayed network information is refreshed based on the set network information; the problem of inconsistent displayed network information is avoided, the problem of puzzlement caused by inconsistent network information display of a user using the mobile terminal is solved, and the accuracy of the network information display of the mobile terminal is improved.
Fig. 6A is a schematic structural diagram of a display device for network information according to an embodiment of the present invention. The apparatus is deployed in a mobile terminal, and referring to fig. 6A, the apparatus includes:
a determining module 601, configured to determine, when a registration state of a mobile communication network changes, the changed registration state, where the registration state is used to indicate whether the mobile communication network is currently registered;
an obtaining module 602, configured to obtain network information of the mobile communication network;
a judging module 603, configured to judge whether the obtained network information is consistent with the changed registration state;
the query module 604 is configured to query, every preset time interval, information that is inconsistent with the changed registration state in the acquired network information, when the acquired network information is inconsistent with the changed registration state;
a refreshing module 605, configured to refresh the currently displayed network information according to the network information obtained after the query when the network information obtained after the query is consistent with the changed registration state.
Optionally, the determining module 603 is specifically configured to:
if the changed registration state is unregistered, when the acquired network information is invalid information, determining that the acquired network information is consistent with the changed registration state, and when the acquired network information contains valid information, determining that the acquired network information is inconsistent with the changed registration state;
and if the changed registration state is registered, determining that the acquired network information is consistent with the changed registration state when the acquired network information is valid information, and determining that the acquired network information is inconsistent with the changed registration state when the acquired network information has invalid information.
Optionally, as shown in fig. 6B, the apparatus further includes:
a triggering module 606, configured to trigger the obtaining module 602 to obtain the network information of the mobile communication network if the changed registration state is registered;
a setting module 607, configured to set the network information as an initial value if the changed registration state is unregistered, and refresh the currently displayed network information through the set network information.
Optionally, the network information includes, but is not limited to, the following information:
registered network type, roaming status, registered network name, mobile country number MCC, mobile network number MNC.
In summary, when the device provided in the embodiment of the present invention acquires the network information, the device does not refresh the currently displayed network information immediately, but first determines whether the acquired network information is consistent with the changed registration state, so that when the acquired network information is inconsistent with the changed registration state, the device queries information that is inconsistent with the changed registration state in the acquired network information every preset time period, and thus refreshes the currently displayed network information when the network information that is consistent with the changed registration state is obtained after the query; the problem of the user who uses mobile terminal because of the inconsistent network information display of the same time causes the puzzlement is solved, the mobile terminal display network information's rate of accuracy has been improved.
Fig. 7 is a schematic structural diagram of a display device for network information according to an embodiment of the present invention. The apparatus is deployed in a mobile terminal, and referring to fig. 7, the apparatus includes:
a determining module 701, configured to determine, when a registration state of a mobile communication network changes, the changed registration state, where the registration state is used to indicate whether the mobile communication network is currently registered;
an obtaining module 702, configured to obtain network information of the mobile communication network;
a judging module 703, configured to judge whether the obtained network information is consistent with the changed registration state;
a setting module 704, configured to set network information consistent with the changed registration state when the obtained network information is inconsistent with the changed registration state;
and the refreshing module is used for refreshing the currently displayed network information through the set network information.
Optionally, the setting module 704 is specifically configured to:
determining information inconsistent with the changed registration state from the acquired network information; setting the determined information as preset information consistent with the changed registration state;
alternatively, the first and second electrodes may be,
and setting all the acquired information in the network information as preset information consistent with the changed registration state.
In summary, when the device provided in this embodiment acquires the network information, the device does not immediately refresh the currently displayed network information, but first determines whether the acquired network information is consistent with the changed registration state, so as to set the network information consistent with the changed registration state when the acquired network information is inconsistent with the changed registration state, and refresh the currently displayed network information based on the set network information; the problem of inconsistent displayed network information is avoided, the problem of puzzlement caused by inconsistent network information display of a user using the mobile terminal is solved, and the accuracy of the network information display of the mobile terminal is improved.
It should be noted that: in the network information display device provided in the above embodiment, when displaying network information, only the division of the above functional modules is taken as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above described functions. In addition, the network information display apparatus and the network information display method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in detail in the method embodiments and are not described herein again.
Fig. 8 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention. Referring to fig. 8, a mobile terminal 800 may include components such as a communication unit 810, a memory 820 including one or more computer-readable storage media, an input unit 830, a display unit 840, a sensor 850, an audio circuit 860, a WIFI (Wireless Fidelity) module 870, a processor 880 including one or more processing cores, and a power supply 890. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 8 is not intended to be limiting of mobile terminals and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the communication unit 810 may be used for receiving and transmitting information or signals during a call, and the communication unit 810 may be an RF (Radio Frequency) circuit, a router, a modem, or other network communication devices. Specifically, when the communication unit 810 is an RF circuit, downlink information of a base station is received and then delivered to the one or more processors 880 for processing; in addition, data relating to uplink is transmitted to the base station. Generally, the RF circuit as a communication unit includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, the communication unit 810 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM, GPRS (General Packet Radio Service), CDMA (Code division multiple Access), WCDMA, LTE (Long Term Evolution), email, SMS (Short Messaging Service), and the like. The memory 820 may be used to store software programs and modules, and the processor 880 executes various functional applications and data processing by operating the software programs and modules stored in the memory 820. The memory 820 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the mobile terminal 800, and the like. Further, the memory 820 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 820 may also include a memory controller to provide the processor 880 and the input unit 830 access to the memory 820.
The input unit 830 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. Preferably, the input unit 830 may include a touch-sensitive surface 831 as well as other input devices 832. The touch-sensitive surface 831, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 831 (e.g., operations by a user on or near the touch-sensitive surface 831 using a finger, a stylus, or any other suitable object or attachment) and drive the corresponding connection device according to a predefined program. Alternatively, the touch-sensitive surface 831 can include two portions, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 880, and can receive and execute commands from the processor 880. In addition, the touch-sensitive surface 831 can be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 830 may include other input devices 832 in addition to the touch-sensitive surface 831. Preferably, other input devices 832 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 840 may be used to display information input by or provided to a user and various graphical user interfaces of the terminal 800, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 840 may include a Display panel 841, and the Display panel 841 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like, as an option. Further, touch-sensitive surface 831 can overlay display panel 841 and, upon detecting a touch operation on or near touch-sensitive surface 831, communicate to processor 880 to determine the type of touch event, whereupon processor 880 can provide a corresponding visual output on display panel 841 in accordance with the type of touch event. Although in FIG. 8, touch-sensitive surface 831 and display panel 841 are implemented as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 831 may be integrated with display panel 841 to implement input and output functions.
The mobile terminal 800 may also include at least one sensor 850, such as light sensors, motion sensors, and other sensors. The light sensor may include an ambient light sensor that adjusts the brightness of the display panel 841 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 841 and/or backlight when the mobile terminal 800 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured on the mobile terminal 800, further description is omitted here.
Audio circuitry 860, speaker 861, microphone 862 may provide an audio interface between a user and the mobile terminal 800. The audio circuit 860 can transmit the electrical signal converted from the received audio data to the speaker 861, and the electrical signal is converted into a sound signal by the speaker 861 and output; on the other hand, the microphone 862 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 860, and outputs the audio data to the processor 880 for processing, via the communication unit 810 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 820 for further processing. The audio circuitry 860 may also include an earbud jack to provide communication of a peripheral headset with the terminal 800.
To implement wireless communication, a wireless communication unit 870 may be configured on the terminal, and the wireless communication unit 870 may be a WIFI module. WIFI belongs to a short-range wireless transmission technology, and the mobile terminal 800 may help a user send and receive e-mails, browse webpages, access streaming media, and the like through the wireless communication unit 870, and provide the user with wireless broadband internet access. Although the wireless communication unit 870 is shown in fig. 8, it is understood that it does not belong to the essential constitution of the mobile terminal 800, and may be omitted entirely within a scope not changing the essence of the invention as needed.
The processor 880 is a control center of the mobile terminal 800, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 800 and processes data by operating or executing software programs and/or modules stored in the memory 820 and calling data stored in the memory 820, thereby integrally monitoring the mobile phone. Optionally, processor 880 may include one or more processing cores; preferably, the processor 880 may integrate an application processor, which mainly handles operating systems, user interfaces, applications, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 880.
The mobile terminal 800 further includes a power supply 890 (e.g., a battery) for supplying power to the various components, which may be logically connected to the processor 880 via a power management system that may be configured to manage charging, discharging, and power consumption. The power supply 860 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the mobile terminal 800 may further include a camera, a bluetooth module, etc., which will not be described herein.
In this embodiment, the mobile terminal further includes one or more programs, which are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for performing the method for displaying the network information, which is provided by the embodiment of the present invention and described in fig. 2 to 5.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as a memory comprising instructions, executable by a processor of a mobile terminal to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions of the storage medium, when executed by a processor of a mobile terminal, enable the mobile terminal to perform the steps of the network information display method described above with reference to fig. 2-5.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

1. A method for displaying network information, the method comprising:
when the registration state of the mobile communication network changes, determining the changed registration state, wherein the registration state is used for indicating whether the mobile communication network is registered currently;
acquiring network information of the mobile communication network, and judging whether the acquired network information is consistent with the changed registration state;
when the acquired network information is inconsistent with the changed registration state, inquiring information inconsistent with the changed registration state in the acquired network information every preset time length;
and when the network information obtained after the query is consistent with the changed registration state, refreshing the currently displayed network information through the network information obtained after the query.
2. The method of claim 1, wherein the determining whether the obtained network information is consistent with the changed registration status comprises:
if the changed registration state is unregistered, determining that the obtained network information is consistent with the changed registration state when the obtained network information is invalid information, and determining that the obtained network information is inconsistent with the changed registration state when the obtained network information contains valid information;
if the changed registration state is registered, when the acquired network information is valid information, the acquired network information is determined to be consistent with the changed registration state, and when the acquired network information has invalid information, the acquired network information is determined to be inconsistent with the changed registration state.
3. The method of claim 1, wherein after determining the changed registration status, further comprising:
if the changed registration state is registered, executing the step of acquiring the network information of the mobile communication network;
if the changed registration state is unregistered, setting network information as an initial value, and refreshing the currently displayed network information through the set network information.
4. A method for displaying network information, the method comprising:
when the registration state of the mobile communication network changes, determining the changed registration state, wherein the registration state is used for indicating whether the mobile communication network is registered currently;
acquiring network information of the mobile communication network, and judging whether the acquired network information is consistent with the changed registration state;
when the acquired network information is inconsistent with the changed registration state, setting network information consistent with the changed registration state;
and refreshing the currently displayed network information through the set network information.
5. The method of claim 4, wherein setting network information consistent with the changed registration state comprises:
determining information inconsistent with the changed registration state from the acquired network information; setting the determined information as preset information consistent with the changed registration state;
alternatively, the first and second electrodes may be,
and setting all the acquired information in the network information as preset information consistent with the changed registration state.
6. An apparatus for displaying network information, the apparatus comprising:
a determining module, configured to determine a changed registration state when a registration state of a mobile communication network changes, where the registration state is used to indicate whether the mobile communication network is currently registered;
an acquisition module, configured to acquire network information of the mobile communication network;
the judging module is used for judging whether the acquired network information is consistent with the changed registration state;
the query module is used for querying information which is inconsistent with the changed registration state in the acquired network information every preset time length when the acquired network information is inconsistent with the changed registration state;
and the refreshing module is used for refreshing the currently displayed network information through the network information obtained after the inquiry when the network information obtained after the inquiry is consistent with the changed registration state.
7. The apparatus of claim 6, wherein the determining module is specifically configured to:
if the changed registration state is unregistered, determining that the obtained network information is consistent with the changed registration state when the obtained network information is invalid information, and determining that the obtained network information is inconsistent with the changed registration state when the obtained network information contains valid information;
if the changed registration state is registered, when the acquired network information is valid information, the acquired network information is determined to be consistent with the changed registration state, and when the acquired network information has invalid information, the acquired network information is determined to be inconsistent with the changed registration state.
8. The apparatus of claim 6, wherein the apparatus further comprises:
a triggering module, configured to trigger the obtaining module to obtain the network information of the mobile communication network if the changed registration state is registered;
and the setting module is used for setting the network information as an initial value if the changed registration state is unregistered, and refreshing the currently displayed network information through the set network information.
9. An apparatus for displaying network information, the apparatus comprising:
a determining module, configured to determine a changed registration state when a registration state of a mobile communication network changes, where the registration state is used to indicate whether the mobile communication network is currently registered;
an acquisition module, configured to acquire network information of the mobile communication network;
the judging module is used for judging whether the acquired network information is consistent with the changed registration state;
a setting module, configured to set network information that is consistent with the changed registration state when the obtained network information is inconsistent with the changed registration state;
and the refreshing module is used for refreshing the currently displayed network information through the set network information.
10. The apparatus of claim 9, wherein the setup module is specifically configured to:
determining information inconsistent with the changed registration state from the acquired network information; setting the determined information as preset information consistent with the changed registration state;
alternatively, the first and second electrodes may be,
and setting all the acquired information in the network information as preset information consistent with the changed registration state.
CN201710330234.6A 2017-05-11 2017-05-11 Network information display method and device Active CN107426813B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710330234.6A CN107426813B (en) 2017-05-11 2017-05-11 Network information display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710330234.6A CN107426813B (en) 2017-05-11 2017-05-11 Network information display method and device

Publications (2)

Publication Number Publication Date
CN107426813A CN107426813A (en) 2017-12-01
CN107426813B true CN107426813B (en) 2020-06-02

Family

ID=60424543

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710330234.6A Active CN107426813B (en) 2017-05-11 2017-05-11 Network information display method and device

Country Status (1)

Country Link
CN (1) CN107426813B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112740634B (en) * 2018-11-13 2023-04-04 深圳市欢太科技有限公司 Registration state acquisition method and device based on Wi-Fi voice service and electronic equipment
CN111601301B (en) * 2020-05-15 2023-08-29 北京小米移动软件有限公司 Network type display method, storage method, device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1750691A (en) * 2004-09-18 2006-03-22 乐金电子(中国)研究开发中心有限公司 Processing method for calling conversion display state of mobile communication terminal
CN101075940A (en) * 2006-05-19 2007-11-21 佳能株式会社 Web information processing apparatus and web information processing method
CN101102307A (en) * 2006-07-04 2008-01-09 华为技术有限公司 Public user identifier registration or cancellation method and device for IMS network
CN101835126A (en) * 2010-04-19 2010-09-15 中兴通讯股份有限公司 Method for displaying state information and wireless data transmission terminal
CN101980555A (en) * 2010-10-26 2011-02-23 中兴通讯股份有限公司 Time setting method for mobile terminal and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6135500B2 (en) * 2013-12-25 2017-05-31 ブラザー工業株式会社 Image processing apparatus and screen information supply server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1750691A (en) * 2004-09-18 2006-03-22 乐金电子(中国)研究开发中心有限公司 Processing method for calling conversion display state of mobile communication terminal
CN101075940A (en) * 2006-05-19 2007-11-21 佳能株式会社 Web information processing apparatus and web information processing method
CN101102307A (en) * 2006-07-04 2008-01-09 华为技术有限公司 Public user identifier registration or cancellation method and device for IMS network
CN101835126A (en) * 2010-04-19 2010-09-15 中兴通讯股份有限公司 Method for displaying state information and wireless data transmission terminal
CN101980555A (en) * 2010-10-26 2011-02-23 中兴通讯股份有限公司 Time setting method for mobile terminal and mobile terminal

Also Published As

Publication number Publication date
CN107426813A (en) 2017-12-01

Similar Documents

Publication Publication Date Title
US10142845B2 (en) Network connection method and apparatus, and computer storage medium
US10834237B2 (en) Method, apparatus, and storage medium for controlling cooperation of multiple intelligent devices with social application platform
US10516640B2 (en) Group message updating and displaying method, apparatus, and terminal
CN106851654B (en) Pseudo base station identification method, pseudo base station identification device and terminal
US11023296B2 (en) Method for managing multiple operating systems in a terminal
CN106371964B (en) Method and device for prompting message
CN107786424B (en) Audio and video communication method, terminal and server
CN108668328B (en) Network switching method and mobile terminal
CN112269842B (en) Information processing method, device, storage medium and computer equipment
CN109495769B (en) Video communication method, terminal, smart television, server and storage medium
CN107122036B (en) Method and device for adjusting frequency of central processing unit
CN105530684B (en) Network access method, device and system
CN107426813B (en) Network information display method and device
CN106339391B (en) Webpage display method and terminal equipment
CN109348425B (en) Positioning information updating method, device, equipment and storage medium
CN111436076B (en) Reporting method, configuration method, terminal and network equipment
CN110351743B (en) Measurement method, terminal, network side equipment and computer readable storage medium
CN108234275B (en) Method and device for releasing communication information
CN110011752B (en) CQI reporting method, terminal equipment and network equipment
CN106330875B (en) Message display method and device
CN105635379B (en) Noise suppression method and device
CN113068135B (en) Multicast service processing method, multicast service configuration method and related equipment
US20160302204A1 (en) Method for changing secondary carrier, terminal, network device, and system
CN109688548B (en) VOLTE frequency band sharing method, server, mobile terminal and storage medium
CN112399405A (en) Method and device for reporting user equipment capability information and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder