CN108683471B - Synchronous information processing method and device - Google Patents
Synchronous information processing method and device Download PDFInfo
- Publication number
- CN108683471B CN108683471B CN201810380861.5A CN201810380861A CN108683471B CN 108683471 B CN108683471 B CN 108683471B CN 201810380861 A CN201810380861 A CN 201810380861A CN 108683471 B CN108683471 B CN 108683471B
- Authority
- CN
- China
- Prior art keywords
- router
- terminal
- synchronization
- synchronization time
- time
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The disclosure relates to a synchronous information processing method and device. The method comprises the following steps: acquiring the synchronization time for synchronizing a first terminal and a target router, wherein the target router is any one of a plurality of routers which are always or currently in a connection state with the first terminal; determining whether the synchronization time is greater than or equal to a time threshold corresponding to the first terminal; and when the synchronization time is greater than or equal to a time threshold corresponding to the first terminal, sending power consumption information to a plurality of terminals connected with the target router, wherein the power consumption information is used for prompting that the risk of power consumption increase exists when the user terminal is connected with the target router. According to the technical scheme, the server can send power consumption information to the plurality of terminals connected with the target router when the synchronization time for synchronizing the terminals and the target router is determined to be long, so that a user can conveniently know the current state of the terminals, the accuracy of problem location when the power consumption of the terminals is increased is improved, and further the user experience is improved.
Description
Technical Field
The present disclosure relates to the field of information processing technologies, and in particular, to a method and an apparatus for processing synchronization information.
Background
Along with the rapid development of the Wi-Fi technology, more and more intelligent devices supporting interconnection are provided, various intelligent terminals represented by smart phones, tablet computers and smart home products are rapidly started, different intelligent terminals can be connected to the same router at the same time, and mutual access or control can be performed through the router.
In the related art, when mutual access or control is performed through a router, an intelligent terminal needs to perform data interaction with the router, and therefore the intelligent terminal needs to perform time synchronization with the router.
In the related art, when data interaction is performed between a terminal and a router, time synchronization needs to be maintained between the terminal and the router, so that the terminal can send a test packet to the router according to a preset time interval, and if the test packet is sent successfully, the router receives the test packet successfully, which indicates that the time synchronization between the terminal and the router is performed. If the test packet is failed to be sent, that is, the router fails to receive the test packet, it is indicated that the time of the terminal and the time of the router are not synchronous, and at this time, the terminal needs to adjust the time required to be synchronous with the router and send the test packet to the router again until the test packet is successfully sent. Therefore, when a problem occurs in the router, the power consumption of the terminal may increase due to the need to send the test packet for multiple times, and the user may be annoyed by failing to find out the reason for the shortened standby time of the terminal, resulting in poor user experience.
Disclosure of Invention
In order to overcome the problems in the related art, embodiments of the present disclosure provide a method and an apparatus for processing synchronization information. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a synchronization information processing method, applied to a server, including:
acquiring the synchronization time for synchronizing a first terminal and a target router, wherein the target router is any one of a plurality of routers which are always or currently in a connection state with the first terminal;
determining whether the synchronization time is greater than or equal to a time threshold corresponding to the first terminal;
and when the synchronization time is greater than or equal to a time threshold corresponding to the first terminal, sending power consumption information to a plurality of terminals connected with the target router, wherein the power consumption information is used for prompting that the risk of power consumption increase exists when the user terminal is connected with the target router.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the server can send power consumption information to the plurality of terminals connected with the target router when the synchronization time for synchronizing the terminals and the target router is determined to be long, so that a user can conveniently know the current state of the terminals, the accuracy of problem positioning when the power consumption of the terminals is increased is improved, and the user experience is further improved.
In one embodiment, the method further comprises:
acquiring the synchronization time for synchronizing the first terminal with other routers except the target router in the plurality of routers;
and acquiring a time threshold corresponding to the first terminal according to the synchronization time for synchronizing the first terminal with other routers except the target router.
In one embodiment, the sending power consumption information to a plurality of terminals connected to the target router when the synchronization time is greater than or equal to a time threshold corresponding to the first terminal includes:
when the synchronization time is greater than or equal to a time threshold corresponding to the first terminal, acquiring synchronization time for synchronizing other terminals which are or currently connected with the target router;
respectively determining whether the synchronization time for each terminal in the plurality of terminals to synchronize with the target router is greater than or equal to a corresponding time threshold;
and when the number of the overtime terminals in the plurality of terminals is larger than or equal to the number threshold, sending power consumption information to the plurality of terminals connected with the target router, wherein the synchronization time for synchronizing the overtime terminals and the target router is larger than or equal to the time threshold corresponding to the overtime terminals.
In one embodiment, the method further comprises:
receiving router synchronization information sent by the first terminal, wherein the router synchronization information comprises synchronization time for synchronizing the first terminal and the target router and a router identifier of the target router;
and storing the synchronization time for synchronizing the first terminal and the target router according to the router identification.
According to a second aspect of the embodiments of the present disclosure, there is provided a synchronization information processing method applied to a terminal, including:
acquiring synchronization time for synchronizing with a currently connected router and a router identifier of the router;
and sending router synchronization information to a server according to the synchronization time and the router identification, so that the server can determine whether to send power consumption information to a plurality of terminals connected with the router corresponding to the router identification according to the synchronization time included in the router synchronization information.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the terminal can upload the synchronization time and the router identification of the router connected at present to the server, and the server determines whether to send power consumption information to a plurality of terminals connected with the router corresponding to the router identification according to the synchronization time, so that a user can know the current state of the terminal, the accuracy of problem positioning when the power consumption of the terminal is increased is improved, and the user experience is improved.
In one embodiment, said sending router synchronization information to a server according to said synchronization time and said router identification comprises:
determining whether the current state meets a callback triggering condition;
and if the current state meets the callback triggering condition, sending router synchronization information to a server according to the synchronization time and the router identification.
In one embodiment, the method further comprises:
acquiring router identifications of other routers except the currently connected router within a preset communication range according to the power consumption information sent by the server;
and displaying prompt information according to the router identifications of the other routers, wherein the prompt information is used for prompting a user to select to connect the router corresponding to the router identification.
According to a third aspect of the embodiments of the present disclosure, there is provided a synchronization information processing apparatus including:
a first obtaining module, configured to obtain synchronization time for a first terminal to synchronize with a target router, where the target router is any one of multiple routers that have or currently maintain a connection state with the first terminal;
a determining module, configured to determine whether the synchronization time is greater than or equal to a time threshold corresponding to the first terminal;
and the first sending module is used for sending power consumption information to a plurality of terminals connected with the target router when the synchronization time is greater than or equal to a time threshold corresponding to the first terminal, wherein the power consumption information is used for prompting that the risk of power consumption increase exists when the user terminal is connected with the target router.
In one embodiment, the apparatus further comprises:
a second obtaining module, configured to obtain synchronization time for synchronizing the first terminal with the other routers except the target router;
and a third obtaining module, configured to obtain a time threshold corresponding to the first terminal according to synchronization time for synchronizing the first terminal with other routers except the target router in the multiple routers.
In one embodiment, the first transmitting module comprises:
the acquisition submodule is used for acquiring the synchronization time of the other terminals which are connected with the target router or are currently connected with the target router and the target router when the synchronization time is greater than or equal to the time threshold corresponding to the first terminal;
a first determining submodule, configured to respectively determine whether a synchronization time for each of the plurality of terminals to synchronize with the target router is greater than or equal to a corresponding time threshold;
and the first sending submodule is used for sending power consumption information to the plurality of terminals connected with the target router when the number of the overtime terminals in the plurality of terminals is greater than or equal to the number threshold, and the synchronization time of the overtime terminals and the target router is greater than or equal to the time threshold corresponding to the synchronization time.
In one embodiment, the apparatus further comprises:
a receiving module, configured to receive router synchronization information sent by the first terminal, where the router synchronization information includes synchronization time for synchronizing the first terminal with the target router, and a router identifier of the target router;
and the storage module is used for storing the synchronization time for synchronizing the first terminal and the target router according to the router identification.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a synchronization information processing apparatus including:
the fourth acquisition module is used for acquiring the synchronization time for synchronizing with the currently connected router and the router identification of the router;
and the second sending module is used for sending router synchronization information to the server according to the synchronization time and the router identification, so that the server can determine whether to send power consumption information to a plurality of terminals connected with the router corresponding to the router identification according to the synchronization time included in the router synchronization information.
In one embodiment, the second sending module comprises:
the second determining submodule is used for determining whether the current state meets the callback triggering condition;
and the second sending submodule is used for sending router synchronization information to the server according to the synchronization time and the router identification if the current state meets the callback triggering condition.
In one embodiment, the apparatus further comprises:
a fifth obtaining module, configured to obtain, according to the power consumption information sent by the server, router identifiers of routers other than the currently connected router within a preset communication range;
and the display module is used for displaying prompt information according to the router identifications of the other routers, wherein the prompt information is used for prompting a user to select the router corresponding to the router identification for connection.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a synchronization information processing apparatus including:
a first processor;
a first memory for storing first processor-executable instructions;
wherein the first processor is configured to:
acquiring the synchronization time for synchronizing a first terminal and a target router, wherein the target router is any one of a plurality of routers which are always or currently in a connection state with the first terminal;
determining whether the synchronization time is greater than or equal to a time threshold corresponding to the first terminal;
and when the synchronization time is greater than or equal to a time threshold corresponding to the first terminal, sending power consumption information to a plurality of terminals connected with the target router, wherein the power consumption information is used for prompting that the risk of power consumption increase exists when the user terminal is connected with the target router.
According to a sixth aspect of the embodiments of the present disclosure, there is provided a synchronization information processing apparatus including:
a second processor;
a second memory for storing second processor-executable instructions;
wherein the second processor is configured to:
acquiring synchronization time for synchronizing with a currently connected router and a router identifier of the router;
and sending router synchronization information to a server according to the synchronization time and the router identification, so that the server can determine whether to send power consumption information to a plurality of terminals connected with the router corresponding to the router identification according to the synchronization time included in the router synchronization information.
According to a seventh aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the steps of the method according to any one of the embodiments of the first aspect.
According to an eighth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the steps of the method according to any one of the embodiments of the second aspect.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is an application scenario diagram illustrating a synchronization information processing method according to an exemplary embodiment.
Fig. 2a is a flow chart illustrating a synchronization information processing method according to an exemplary embodiment.
Fig. 2b is a flow diagram illustrating a synchronization information processing method according to an example embodiment.
Fig. 3a is a flow chart illustrating a synchronization information processing method according to an example embodiment.
Fig. 3b is a flow diagram illustrating a synchronization information processing method according to an example embodiment.
Fig. 4 is an interaction diagram illustrating a synchronization information processing method according to an exemplary embodiment.
Fig. 5a is a schematic diagram illustrating a structure of a synchronization information processing apparatus according to an exemplary embodiment.
Fig. 5b is a schematic diagram illustrating the structure of a synchronization information processing apparatus according to an exemplary embodiment.
Fig. 5c is a schematic diagram illustrating the structure of a synchronization information processing apparatus according to an exemplary embodiment.
Fig. 5d is a schematic diagram illustrating the structure of a synchronization information processing apparatus according to an exemplary embodiment.
Fig. 6a is a schematic diagram illustrating a structure of a synchronization information processing apparatus according to an exemplary embodiment.
Fig. 6b is a schematic diagram illustrating the structure of a synchronization information processing apparatus according to an exemplary embodiment.
Fig. 6c is a schematic diagram illustrating the structure of a synchronization information processing apparatus according to an exemplary embodiment.
Fig. 7 is a block diagram illustrating a structure of a synchronization information processing apparatus according to an exemplary embodiment.
Fig. 8 is a block diagram illustrating a structure of a synchronization information processing apparatus according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The technical scheme provided by the embodiment of the disclosure relates to a terminal, a router and a server, wherein the terminal can be a mobile phone, a tablet computer, an intelligent home and other devices which can be respectively connected with the router and the server, and the embodiment of the disclosure is not limited to this. The application scenario may be as shown in fig. 1, the terminal 101 may be connected to the router 102 and the server 103 through Wi-Fi (Wireless Fidelity) or other Wireless communication networks, respectively, and fig. 1 uses dashed arrows to indicate Wireless connections. A plurality of terminals may be connected to the router 102, for example, the router 102 may also be connected to the terminal 101a and the terminal 101 b. The server 103 may be connected to a plurality of terminals, for example, the server 103 may be connected to a terminal 101a, a terminal 101b, a terminal 101c, and a terminal 101d, and the terminal 101c and the terminal 101d are connected to a router 102a and a router 102b, respectively. Meanwhile, the server 103 may be connected to a plurality of routers, for example, the server 103 may be connected to the router 102, the router 102a, and the router 102 b. The server 103 is connected to the router 102, and can acquire the connection state between the router 102 and a plurality of terminals.
In the related art, when data interaction is performed between a terminal and a router, time synchronization needs to be maintained between the terminal and the router, so that the terminal can send a test packet to the router according to a preset time interval, and if the test packet is sent successfully, the router receives the test packet successfully, which indicates that the time synchronization between the terminal and the router is performed. If the test packet is failed to be sent, that is, the router fails to receive the test packet, it is indicated that the time of the terminal and the time of the router are not synchronous, and at this time, the terminal needs to adjust the time required to be synchronous with the router and send the test packet to the router again until the test packet is successfully sent. Therefore, when a problem occurs in the router, the power consumption of the terminal may increase due to the need to send the test packet for multiple times, and the user may be annoyed by failing to find out the reason for the shortened standby time of the terminal, resulting in poor user experience. According to the technical scheme provided by the embodiment of the disclosure, the server can send power consumption information to a plurality of terminals connected with the target router when the synchronization time for synchronizing the terminals and the target router is determined to be long, so that a user can conveniently know the current state of the terminals, the accuracy of problem positioning when the power consumption of the terminals is increased is improved, and further the user experience is improved.
The embodiment of the disclosure provides a synchronous information processing method, and an execution main body for implementing the method comprises a terminal and a server. According to different implementation main bodies of the method, the embodiment of the disclosure arranges two sets of embodiments as follows:
terminal side
Fig. 2a is a flowchart illustrating a synchronization information processing method for a terminal according to an exemplary embodiment, and as shown in fig. 2a, the synchronization information processing method includes the following steps 201 to 202:
in step 201, a synchronization time for synchronizing with a currently connected router and a router identification of the router are acquired.
For example, the terminal may send a test packet to the router at a preset time interval, and if the router successfully receives the test packet, the terminal may send first test feedback information to the terminal, where the first test feedback information indicates that the receiving is successful; if the router fails to receive the test packet successfully, second test feedback information is sent to the terminal for indicating that the receiving fails, after the terminal receives the second test feedback information, the terminal adjusts the time required for synchronization with the router locally, sends the test packet again, determines whether to adjust the time again according to the receiving condition of the router, and sends the test packet until first test feedback information indicating that the test packet is received successfully is received. Therefore, the terminal can instruct the timer to start timing when sending the test packet to the router, and instruct the timer to stop timing after receiving the first test feedback information, wherein the time recorded by the timer is the synchronization time for synchronizing the terminal and the currently connected router. After the terminal acquires the synchronization time, the terminal may acquire a router identifier of the router, and store the synchronization time according to the router identifier. Specifically, the router identifier may be a Media Access Control (MAC) address of the router, and may also be referred to as a physical address of the router.
Or, the terminal may send data to the router when the terminal is in a connected state with the router, and if the terminal and the router are out of synchronization in time, the data sending may be failed. Therefore, when determining that the data transmission fails, the terminal initiates a synchronization process with the router, namely, sends a test packet to the router, and instructs the timer to start timing, then determines whether to adjust time again according to the receiving condition of the router and sends the test packet until receiving first test feedback information indicating that the test packet is successfully received, and instructs the timer to stop timing after determining that the first test feedback information is received, and takes the time recorded by the timer as synchronization time for synchronizing with the router. The terminal can update the synchronization time stored before by using the latest acquired synchronization time, thereby ensuring the validity of the stored synchronization time.
In step 202, router synchronization information is sent to the server according to the synchronization time and the router identification, so that the server determines whether to send power consumption information to a plurality of terminals connected to the router corresponding to the router identification according to the synchronization time included in the router synchronization information.
For example, the terminal may send router synchronization information to the server after storing the synchronization time in accordance with the router identification. Or after the terminal stores the synchronization time according to the router identification, whether the current state meets the callback trigger condition or not can be determined in real time, and when the current state meets the callback trigger condition, the router synchronization information is generated according to the stored synchronization time and the router identification and is sent to the server, so that the server can conveniently determine whether the router corresponding to the router identification has the problem of power consumption increase of the terminal connected with the router or not according to the synchronization time, and further determine whether the power consumption information is sent to a plurality of terminals connected with the router or not. Specifically, during initialization, the information collection Service (router info collection Service) of the terminal may register a callback trigger condition to the Job scheduling Service (Job Scheduler) of the terminal system, where the callback trigger condition may be a preset time point, or may also be that the idle resource of the system is greater than or equal to a preset percentage, which is not limited in this disclosure. Assuming that the callback trigger condition is a preset time point, the work scheduling service of the terminal may instruct the information collection service to acquire the stored synchronization time and the router identifier when the current time is the preset time point, and then generate router synchronization information according to the synchronization time and the router identifier and send the router synchronization information to the server. Or assuming that the callback triggering condition is that the system idle resource is greater than or equal to the preset percentage, the work scheduling service of the terminal may obtain the percentage of the current system idle resource in the total resource in real time, and when the percentage is greater than or equal to the preset percentage, instruct the information collection service to obtain the stored synchronization time and the router identifier, and then generate router synchronization information according to the synchronization time and the router identifier and send the router synchronization information to the server.
According to the technical scheme, the terminal can upload the synchronization time and the router identification of the router connected at present to the server, the server can determine whether power consumption information needs to be sent to a plurality of terminals connected with the router corresponding to the router identification according to the synchronization time, and therefore the user can know the current situation of the terminal, accuracy of problem positioning when power consumption of the terminal is increased is improved, and user experience is improved.
In one embodiment, as shown in fig. 2b, the method further comprises step 203 and step 204:
in step 203, according to the power consumption information sent by the server, the router identifiers of the other routers within the preset communication range except the currently connected router are obtained.
In step 204, according to the router identifiers of other routers, prompt information is displayed, and the prompt information is used for prompting a user to select a router corresponding to the connection router identifier.
For example, when determining that a router corresponding to a router identifier included in the router synchronization information may cause an increase in power consumption of a terminal connected to the router, the server may obtain router identifiers of other routers within a preset communication range, except for a currently connected router, and then display prompting information according to the router identifiers of the other routers, where the prompting information includes the obtained router identifiers of the other routers, and is used to prompt a user to select a router corresponding to the router identifier included in the prompting information for connection.
Optionally, the preset communication range may be a Wi-Fi communication range of the terminal, and therefore, the routers that the terminal can search are all routers within the preset communication range. In order to ensure the efficiency of data transmission of the terminal, a plurality of routers can be set in the same application scene, when the terminal determines that the routers need to be connected, a router connection interface can be displayed, all the routers set in the current scene are displayed on the router connection interface, and the terminal can select the routers for connection according to the instruction of a user. When the terminal receives the power consumption information, it indicates that the power consumption of the terminal connected with the current router is increased due to the existence of the current router, so that the terminal can acquire the router identifiers of other routers except the current router, which are set in the current scene, and then display the prompt information according to the router identifiers of the other routers. The prompt message may be displayed, for example, through a floating window, i.e., the floating window is displayed on the current interface. And displaying characters of ' router can be connected with ' ### ' on the suspension window, and prompting a user to look up the characters through ringing and shaking. After consulting the prompt message, the user may instruct the terminal to open the router connection interface again, and then select a router identified by "+ -" or "####" for connection.
In the technical scheme provided by the embodiment of the disclosure, when the terminal determines that the currently connected router has a risk of time asynchronization, the terminal can prompt the user to select other routers within a preset communication range for connection, thereby avoiding the increase of power consumption of the terminal and the shortening of standby time caused by the time asynchronization of the currently connected router, and improving user experience.
Server side
Fig. 3a is a flowchart illustrating a synchronization information processing method for a server according to an exemplary embodiment, and as shown in fig. 3a, the synchronization information processing method includes the following steps 301 to 303:
in step 301, a synchronization time for synchronizing the first terminal with a target router is obtained, where the target router is any one of a plurality of routers that have or currently maintain a connection state with the first terminal.
For example, the first terminal may have been connected to a plurality of routers during use, and when connecting to each router, the first terminal sends synchronization time synchronized with the first terminal to the server, so that the server stores the synchronization time synchronized when the first terminal connects to a plurality of different routers, and the target router is any one of the plurality of routers to which the first terminal has been connected or is being connected. Similarly, since the other terminal transmits the synchronization time synchronized with the router to the server when connecting to the router, the server also stores the synchronization time synchronized when the other terminal connects to a plurality of different routers. The server may obtain, according to the data, a router that has been or is currently connected to the first terminal, or may obtain a plurality of terminals that are connected between layers or are currently connected to the target router.
In step 302, it is determined whether the synchronization time is greater than or equal to a time threshold corresponding to the first terminal.
For example, after acquiring the data, the server may sequentially analyze a plurality of routers connected or being connected to the first terminal to determine whether each router has a problem that causes an increase in power consumption of the terminal connected thereto. Optionally, taking the target router as an example, the terminal may determine, through a difference between the synchronization time of the first terminal and the target router and a preset threshold, whether the target router has a problem that power consumption of the terminal connected to the target router is increased. The time threshold may be set by a user according to experience during initialization, or may be obtained by the server according to a plurality of synchronization times corresponding to the first terminal, or may be set according to a specific situation in practical application, which is not limited in this disclosure. Specifically, the server may obtain a plurality of synchronization times corresponding to the first terminal, where the plurality of synchronization times respectively correspond to a plurality of routers to which the first terminal is connected or is being connected. Then, the synchronization time corresponding to the other router except the target router in the plurality of synchronization times is obtained, and the time threshold corresponding to the first terminal is obtained according to the synchronization time corresponding to the other router. Because different terminals have different conditions, in order to ensure the difference of the time thresholds, the time thresholds can be set according to different terminals when being set, that is, the time thresholds corresponding to different terminals are different, and the time thresholds corresponding to different terminals in practical application can also be the same, which is not limited in the embodiment of the present disclosure.
After determining the time threshold corresponding to the first terminal, the server may determine whether the synchronization time is greater than or equal to the time threshold corresponding to the first terminal according to the obtained synchronization time for synchronizing the first terminal with the target router.
In step 303, when the synchronization time is greater than or equal to the time threshold corresponding to the first terminal, power consumption information is sent to the plurality of terminals connected to the target router, where the power consumption information is used to prompt the user terminal to connect to the target router that there is a risk of increased power consumption.
For example, when the synchronization time for the first terminal to synchronize with the target router is greater than or equal to the time threshold corresponding to the first terminal, it indicates that the time spent by the first terminal to synchronize with the target router is longer, that is, the target router may have a problem that an element is aged and cannot operate normally, and further indicates that other terminals connected to the target router may spend longer time to synchronize with each other, so that multiple terminals connected to the target router may have a problem of increased power consumption. The server side stores a connection table describing the connection condition between each router and the terminal in a plurality of routers currently connected with the server, that is, the connection table includes a plurality of router identifiers, and different router identifiers correspond to a plurality of different terminal identifiers.
When the server determines that the power consumption of a plurality of terminals connected with the target router is increased, the server can acquire the router identification of the target router, then inquire a connection table according to the router identification, acquire the terminal identifications of the plurality of terminals connected with the target router, and then respectively send power consumption information to the terminals corresponding to the plurality of terminal identifications for prompting that the power consumption risk exists when the users of the plurality of terminals are connected with the target router.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the server can send power consumption information to the plurality of terminals connected with the target router when the synchronization time for synchronizing the terminals and the target router is determined to be long, so that a user can conveniently know the current state of the terminals, the accuracy of problem positioning when the power consumption of the terminals is increased is improved, and the user experience is further improved.
In one embodiment, as shown in fig. 3b, in step 303, when the synchronization time is greater than or equal to the time threshold corresponding to the first terminal, sending power consumption information to the plurality of terminals connected to the target router may be implemented through steps 3031 to 3033:
in step 3031, when the synchronization time is greater than or equal to the time threshold corresponding to the first terminal, the synchronization time for synchronizing the other terminals, which have been or currently kept in the connection state with the target router, with the target router is obtained.
In step 3032, it is determined whether the synchronization time for each of the plurality of terminals to synchronize with the target router is greater than or equal to the corresponding time threshold, respectively.
In step 3033, when the number of the timeout terminals in the plurality of terminals is greater than or equal to the number threshold, the power consumption information is sent to the plurality of terminals connected to the target router, and the synchronization time for synchronizing the timeout terminals with the target router is greater than or equal to the time threshold corresponding to the synchronization time.
For example, only the synchronization time of the first terminal and the target router is used to determine whether the target router has a problem that power consumption of the terminal connected to the target router is increased, which may result in misjudgment of the target router, so that when it is determined that the synchronization time of the first terminal and the target router is greater than or equal to the time threshold corresponding to the first terminal, the server may further obtain, from the stored information, synchronization times for synchronizing other terminals and the target router that have or are currently in a connection state with the target router, then obtain synchronization times for synchronizing each of the terminals and the routers, and obtain the time threshold corresponding to each of the terminals according to the synchronization times for synchronizing each of the terminals and the routers. And respectively determining whether the synchronization time of each terminal for synchronizing with the target router is greater than or equal to the corresponding time threshold, and recording the terminal with the synchronization time of the target router being greater than or equal to the corresponding time threshold as an overtime terminal. If the number of the overtime terminals in the plurality of terminals is greater than or equal to the number threshold, it indicates that the synchronization time is longer when most of the terminals connected with the target router synchronize with the target router, so that it can be indicated that the target router has a problem that the power consumption of the plurality of terminals connected with the target router increases, and at this time, the server can send power consumption information to the plurality of terminals connected with the target router for prompting that the power consumption of the users of the plurality of terminals connected with the target router increases. If the number of the overtime terminals in the plurality of terminals is smaller than the number threshold, it is indicated that the target router may not have a problem, and the first terminal may continue to connect the target router for data transmission.
In the technical scheme provided by the embodiment of the disclosure, the server can determine whether the target router has a risk of increasing the power consumption of the connection terminal through the synchronization time of the plurality of routers connected with the first terminal and the synchronization time of the target router and the plurality of terminals connected with the target router, so that the accuracy of judging the router condition is improved.
The implementation is described in detail below by way of several embodiments.
Fig. 4 is an interaction diagram illustrating a synchronization information processing method according to an exemplary embodiment, where an execution subject is a terminal and a server, and as shown in fig. 4, the method includes the following steps 401 and 415:
in step 401, the terminal acquires a synchronization time synchronized with a currently connected router and a router identifier of the router.
In step 402, when the terminal determines that the current state satisfies the callback trigger condition, the terminal generates router synchronization information according to the synchronization time and the router identifier.
In step 403, the terminal transmits the router synchronization information to the server.
In step 404, the server receives router synchronization information sent by a plurality of terminals, and stores the synchronization time included in the router synchronization information according to the router identification included in each router synchronization information.
In step 405, the server obtains the synchronization time for the first terminal to synchronize with the target router according to the stored information.
The target router is any one of a plurality of routers which are always or currently in a connection state with the first terminal, and the first terminal is any one of a plurality of terminals connected with the server.
In step 406, the server obtains a synchronization time for the first terminal to synchronize with the other routers except the target router.
In step 407, the server obtains a time threshold corresponding to the first terminal according to the synchronization time for synchronizing the first terminal with the other routers except the target router.
In step 408, the server determines whether the synchronization time for the first terminal to synchronize with the target router is greater than or equal to a time threshold corresponding to the first terminal; if not, go to step 409; if yes, go to step 410.
In step 409, the server continues to determine a synchronization time for the first terminal to synchronize with another terminal, and determines whether the synchronization time is greater than or equal to a time threshold corresponding to the first terminal.
In step 410, the server acquires a synchronization time for synchronizing with the target router by other terminals that have or are currently maintaining a connection state with the target router.
In step 411, the server acquires time thresholds corresponding to the plurality of terminals, respectively.
In step 412, the server determines whether the synchronization time for each of the plurality of terminals to synchronize with the target router is greater than or equal to the corresponding time threshold, respectively.
In step 413, the server records, as a timeout terminal, a terminal having a synchronization time with the target router that is greater than or equal to a corresponding time threshold among the plurality of terminals.
In step 414, the server determines whether the number of the timeout terminals is greater than or equal to a number threshold; if not, go to step 409; if yes, go to step 415.
In step 415, the server sends power consumption information to the plurality of terminals connected to the target router, for prompting the user terminal to connect to the target router that there is a risk of increased power consumption.
The embodiment of the disclosure provides a synchronous information processing method, and a server can send power consumption information to a plurality of terminals connected with a target router when the fact that the synchronization time for synchronizing the terminals and the target router is long is determined, so that a user can conveniently know the current state of the terminals, the accuracy of problem positioning when the power consumption of the terminals is increased is improved, and further the user experience is improved.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods.
Fig. 5a is a schematic structural diagram illustrating a synchronization information processing apparatus 50 according to an exemplary embodiment, where the apparatus 50 may be implemented as part or all of an electronic device through software, hardware, or a combination of the two. As shown in fig. 5a, the synchronization information processing apparatus 50 includes a first obtaining module 501, a determining module 502 and a first sending module 503.
The first obtaining module 501 is configured to obtain synchronization time for synchronizing a first terminal with a target router, where the target router is any one of a plurality of routers that once or currently maintain a connection state with the first terminal.
A determining module 502, configured to determine whether the synchronization time is greater than or equal to a time threshold corresponding to the first terminal.
A first sending module 503, configured to send power consumption information to the multiple terminals connected to the target router when the synchronization time is greater than or equal to a time threshold corresponding to the first terminal, where the power consumption information is used to prompt a user terminal to connect to the target router that a risk of power consumption increase exists.
In one embodiment, as shown in fig. 5b, the apparatus 50 further comprises a second obtaining module 504 and a third obtaining module 505.
The second obtaining module 504 is configured to obtain a synchronization time for the first terminal to synchronize with other routers except the target router in the plurality of routers.
A third obtaining module 505, configured to obtain a time threshold corresponding to the first terminal according to synchronization time for the first terminal to synchronize with other routers except the target router in the multiple routers.
In one embodiment, as shown in fig. 5c, the first sending module 503 includes an obtaining sub-module 5031, a first determining sub-module 5032 and a first sending sub-module 5033.
The obtaining sub-module 5031 is configured to, when the synchronization time is greater than or equal to a time threshold corresponding to the first terminal, obtain synchronization time for synchronizing, with the target router, another plurality of terminals that have or are currently connected to the target router.
A first determining sub-module 5032, configured to respectively determine whether a synchronization time for each of the plurality of terminals to synchronize with the target router is greater than or equal to a corresponding time threshold.
A first sending sub-module 5033, configured to send power consumption information to the plurality of terminals connected to the target router when the number of timeout terminals in the plurality of terminals is greater than or equal to a number threshold, where a synchronization time for the timeout terminals to synchronize with the target router is greater than or equal to a time threshold corresponding to the synchronization time.
In one embodiment, as shown in fig. 5d, the apparatus 50 further comprises a receiving module 506 and a storing module 507.
The receiving module 506 is configured to receive router synchronization information sent by the first terminal, where the router synchronization information includes synchronization time for synchronizing the first terminal with the target router, and a router identifier of the target router;
a storage module 507, configured to store, according to the router identifier, synchronization time for synchronizing the first terminal with the target router.
The embodiment of the disclosure provides a synchronous information processing device, which can send power consumption information to a plurality of terminals connected with a target router when the synchronous time for synchronizing the terminals and the target router is determined to be long, so that a user can conveniently know the current state of the terminals, the accuracy of problem positioning when the power consumption of the terminals is increased is improved, and further the user experience is improved.
Fig. 6a is a schematic structural diagram illustrating a synchronization information processing apparatus 60 according to an exemplary embodiment, where the apparatus 60 may be implemented as part or all of an electronic device through software, hardware, or a combination of the two. As shown in fig. 6a, the synchronization information processing apparatus 60 includes a fourth acquiring module 601 and a second sending module 602.
The fourth obtaining module 601 is configured to obtain a synchronization time for synchronizing with a currently connected router and a router identifier of the router.
A second sending module 602, configured to send router synchronization information to a server according to the synchronization time and the router identifier, so that the server determines, according to the synchronization time included in the router synchronization information, whether to send power consumption information to a plurality of terminals connected to a router corresponding to the router identifier.
In one embodiment, as shown in FIG. 6b, the second sending module 602 includes a second determining sub-module 6021 and a second sending sub-module 6022.
The second determining submodule 6021 is configured to determine whether the current state meets the callback trigger condition.
And the second sending submodule 6022 is configured to send router synchronization information to the server according to the synchronization time and the router identifier if the current state meets the callback trigger condition.
In one embodiment, as shown in fig. 6c, the apparatus 60 further comprises a fifth obtaining module 603 and a displaying module 604.
The fifth obtaining module 603 is configured to obtain, according to the power consumption information sent by the server, the router identifiers of the other routers within the preset communication range, except for the currently connected router.
A display module 604, configured to display a prompt message according to the router identifiers of the other routers, where the prompt message is used to prompt a user to select a router corresponding to the router identifier for connection.
The embodiment of the disclosure provides a synchronous information processing device, which can upload the synchronization time and the router identification of a currently connected router to a server, so that the server can determine whether power consumption information needs to be sent to a plurality of terminals connected with the router corresponding to the router identification according to the synchronization time, and further enable a user to know the current state of the terminal, thereby improving the accuracy of problem location when the power consumption of the terminal is increased, and further improving the user experience.
The disclosed embodiment provides a synchronous information processing device, which comprises:
a first processor;
a first memory for storing first processor-executable instructions;
wherein the first processor is configured to:
acquiring the synchronization time for synchronizing a first terminal and a target router, wherein the target router is any one of a plurality of routers which are always or currently in a connection state with the first terminal;
determining whether the synchronization time is greater than or equal to a time threshold corresponding to the first terminal;
and when the synchronization time is greater than or equal to a time threshold corresponding to the first terminal, sending power consumption information to a plurality of terminals connected with the target router, wherein the power consumption information is used for prompting that the risk of power consumption increase exists when the user terminal is connected with the target router.
In one embodiment, the first processor may be further configured to: acquiring the synchronization time for synchronizing the first terminal with other routers except the target router in the plurality of routers; and acquiring a time threshold corresponding to the first terminal according to the synchronization time for synchronizing the first terminal with other routers except the target router.
In one embodiment, the first processor may be further configured to: when the synchronization time is greater than or equal to a time threshold corresponding to the first terminal, acquiring synchronization time for synchronizing other terminals which are or currently connected with the target router; respectively determining whether the synchronization time for each terminal in the plurality of terminals to synchronize with the target router is greater than or equal to a corresponding time threshold; and when the number of the overtime terminals in the plurality of terminals is larger than or equal to the number threshold, sending power consumption information to the plurality of terminals connected with the target router, wherein the synchronization time for synchronizing the overtime terminals and the target router is larger than or equal to the time threshold corresponding to the overtime terminals.
In one embodiment, the first processor may be further configured to: receiving router synchronization information sent by the first terminal, wherein the router synchronization information comprises synchronization time for synchronizing the first terminal and the target router and a router identifier of the target router; and storing the synchronization time for synchronizing the first terminal and the target router according to the router identification.
The embodiment of the disclosure provides a synchronous information processing device, which can send power consumption information to a plurality of terminals connected with a target router when the synchronous time for synchronizing the terminals and the target router is determined to be long, so that a user can conveniently know the current state of the terminals, the accuracy of problem positioning when the power consumption of the terminals is increased is improved, and further the user experience is improved.
The disclosed embodiment provides another kind of synchronous information processing apparatus, and the apparatus includes:
a second processor;
a second memory for storing second processor-executable instructions;
wherein the second processor is configured to:
acquiring synchronization time for synchronizing with a currently connected router and a router identifier of the router;
and sending router synchronization information to a server according to the synchronization time and the router identification, so that the server can determine whether to send power consumption information to a plurality of terminals connected with the router corresponding to the router identification according to the synchronization time included in the router synchronization information.
In one embodiment, the second processor may be further configured to: determining whether the current state meets a callback triggering condition; and if the current state meets the callback triggering condition, sending router synchronization information to a server according to the synchronization time and the router identification.
In one embodiment, the second processor may be further configured to: acquiring router identifications of other routers except the currently connected router within a preset communication range according to the power consumption information sent by the server; and displaying prompt information according to the router identifications of the other routers, wherein the prompt information is used for prompting a user to select to connect the router corresponding to the router identification.
The embodiment of the disclosure provides a synchronous information processing device, which can upload the synchronization time and the router identification of a currently connected router to a server, so that the server can determine whether power consumption information needs to be sent to a plurality of terminals connected with the router corresponding to the router identification according to the synchronization time, and further enable a user to know the current state of the terminal, thereby improving the accuracy of problem location when the power consumption of the terminal is increased, and further improving the user experience.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 7 is a block diagram illustrating a structure of a synchronization information processing apparatus 70 according to an exemplary embodiment, where the apparatus 70 is adapted to a terminal device. For example, the apparatus 70 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
The apparatus 70 may include one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, and a communication component 716.
The processing component 702 generally controls overall operation of the device 70, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 702 may include one or more processors 720 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 702 may include one or more modules that facilitate interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.
The memory 704 is configured to store various types of data to support operations at the device 70. Examples of such data include instructions for any application or method operating on the device 70, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 704 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 706 provides power to the various components of the device 70. The power components 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 70.
The multimedia component 708 includes a screen that provides an output interface between the device 70 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 70 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 710 is configured to output and/or input audio signals. For example, the audio component 710 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 70 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 704 or transmitted via the communication component 716. In some embodiments, audio component 710 also includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 714 includes one or more sensors for providing various aspects of status assessment for the device 70. For example, the sensor assembly 714 may detect an open/closed state of the device 70, the relative positioning of the components, such as a display and keypad of the device 70, the sensor assembly 714 may also detect a change in the position of the device 70 or a component of the device 70, the presence or absence of user contact with the device 70, the orientation or acceleration/deceleration of the device 70, and a change in the temperature of the device 70. The sensor assembly 714 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 716 is configured to facilitate wired or wireless communication between the apparatus 70 and other devices. The device 70 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 716 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 70 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described terminal-side synchronous information processing method.
In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as the memory 704 including instructions, executable by the processor 720 of the apparatus 70 to perform the above-described terminal-side synchronization information processing 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.
Fig. 8 is a block diagram illustrating a method for synchronizing information processing apparatuses 80 according to an exemplary embodiment. For example, the apparatus 80 may be provided as a server. The apparatus 80 includes a processing component 802 that further includes one or more processors, and memory resources, represented by memory 803, for storing instructions, such as application programs, that are executable by the processing component 802. The application programs stored in the memory 803 may include one or more modules that each correspond to a set of instructions. Further, the processing component 802 is configured to execute instructions to perform the above-described server-side synchronization information processing method.
The apparatus 80 may also include a power component 806 configured to perform power management of the apparatus 80, a wired or wireless network interface 805 configured to connect the apparatus 80 to a network, and an input output (I/O) interface 808. The apparatus 80 may operate based on an operating system stored in the memory 803, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
The disclosed embodiments provide a non-transitory computer-readable storage medium, wherein when instructions in the storage medium are executed by a processor of an apparatus 80, the apparatus 80 is enabled to execute the above-mentioned synchronization information processing method on the server side, and the method includes:
the method comprises the steps of obtaining the synchronization time for synchronizing a first terminal and a target router, wherein the target router is any one of a plurality of routers which are always or currently in a connection state with the first terminal.
And determining whether the synchronization time is greater than or equal to a time threshold corresponding to the first terminal.
And when the synchronization time is greater than or equal to a time threshold corresponding to the first terminal, sending power consumption information to a plurality of terminals connected with the target router, wherein the power consumption information is used for prompting that the risk of power consumption increase exists when the user terminal is connected with the target router.
In one embodiment, the method further comprises: acquiring the synchronization time for synchronizing the first terminal with other routers except the target router in the plurality of routers; and acquiring a time threshold corresponding to the first terminal according to the synchronization time for synchronizing the first terminal with other routers except the target router.
In one embodiment, the sending power consumption information to a plurality of terminals connected to the target router when the synchronization time is greater than or equal to a time threshold corresponding to the first terminal includes: when the synchronization time is greater than or equal to a time threshold corresponding to the first terminal, acquiring synchronization time for synchronizing other terminals which are or currently connected with the target router; respectively determining whether the synchronization time for each terminal in the plurality of terminals to synchronize with the target router is greater than or equal to a corresponding time threshold; and when the number of the overtime terminals in the plurality of terminals is larger than or equal to the number threshold, sending power consumption information to the plurality of terminals connected with the target router, wherein the synchronization time for synchronizing the overtime terminals and the target router is larger than or equal to the time threshold corresponding to the overtime terminals.
In one embodiment, the method further comprises: receiving router synchronization information sent by the first terminal, wherein the router synchronization information comprises synchronization time for synchronizing the first terminal and the target router and a router identifier of the target router; and storing the synchronization time for synchronizing the first terminal and the target router according to the router identification.
The disclosed embodiment also discloses another non-transitory computer readable storage medium, and when the instructions in the storage medium are executed by a processor of the apparatus 70, the apparatus 70 is enabled to execute the above method for processing synchronization information at a terminal side, where the method includes:
and acquiring the synchronization time for synchronizing with the currently connected router and the router identification of the router.
And sending router synchronization information to a server according to the synchronization time and the router identification, so that the server can determine whether to send power consumption information to a plurality of terminals connected with the router corresponding to the router identification according to the synchronization time included in the router synchronization information.
In one embodiment, said sending router synchronization information to a server according to said synchronization time and said router identification comprises: determining whether the current state meets a callback triggering condition; and if the current state meets the callback triggering condition, sending router synchronization information to a server according to the synchronization time and the router identification.
In one embodiment, the method further comprises: acquiring router identifications of other routers except the currently connected router within a preset communication range according to the power consumption information sent by the server; and displaying prompt information according to the router identifications of the other routers, wherein the prompt information is used for prompting a user to select to connect the router corresponding to the router identification.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (14)
1. A synchronous information processing method is applied to a server and comprises the following steps:
receiving router synchronization information sent by a first terminal, wherein the router synchronization information comprises synchronization time for synchronizing the first terminal and a target router and a router identifier of the target router, and the target router is any one of a plurality of routers which are once or currently connected with the first terminal;
according to the router identification, storing the synchronization time for synchronizing the first terminal and the target router;
acquiring the synchronization time for synchronizing the first terminal and the target router;
determining whether the synchronization time is greater than or equal to a time threshold corresponding to the first terminal;
and when the synchronization time is greater than or equal to a time threshold corresponding to the first terminal, sending power consumption information to a plurality of terminals connected with the target router, wherein the power consumption information is used for prompting that the risk of power consumption increase exists when the user terminal is connected with the target router.
2. The method of claim 1, further comprising:
acquiring the synchronization time for synchronizing the first terminal with other routers except the target router in the plurality of routers;
and acquiring a time threshold corresponding to the first terminal according to the synchronization time for synchronizing the first terminal with other routers except the target router.
3. The method according to claim 1 or 2, wherein the sending power consumption information to the plurality of terminals connected to the target router when the synchronization time is greater than or equal to the time threshold corresponding to the first terminal comprises:
when the synchronization time is greater than or equal to a time threshold corresponding to the first terminal, acquiring synchronization time for synchronizing other terminals which are or currently connected with the target router;
respectively determining whether the synchronization time for each terminal in the plurality of terminals to synchronize with the target router is greater than or equal to a corresponding time threshold;
and when the number of the overtime terminals in the plurality of terminals is larger than or equal to the number threshold, sending power consumption information to the plurality of terminals connected with the target router, wherein the synchronization time for synchronizing the overtime terminals and the target router is larger than or equal to the time threshold corresponding to the overtime terminals.
4. A synchronous information processing method is applied to a terminal and comprises the following steps:
acquiring synchronization time for synchronizing with a currently connected router and a router identifier of the router;
determining whether the current state meets a callback triggering condition;
and if the current state meets the callback triggering condition, sending router synchronization information to a server according to the synchronization time and the router identification, so that the server can determine whether to send power consumption information to a plurality of terminals connected with the router corresponding to the router identification according to the synchronization time included in the router synchronization information.
5. The method of claim 4, further comprising:
acquiring router identifications of other routers except the currently connected router within a preset communication range according to the power consumption information sent by the server;
and displaying prompt information according to the router identifications of the other routers, wherein the prompt information is used for prompting a user to select to connect the router corresponding to the router identification.
6. A synchronous information processing apparatus characterized by comprising:
a receiving module, configured to receive router synchronization information sent by a first terminal, where the router synchronization information includes synchronization time for synchronizing the first terminal with a target router and a router identifier of the target router, and the target router is any one of multiple routers that have kept a connection state with the first terminal once or currently;
the storage module is used for storing the synchronization time for synchronizing the first terminal and the target router according to the router identification;
the first acquisition module is used for acquiring the synchronization time for synchronizing the first terminal and the target router;
a determining module, configured to determine whether the synchronization time is greater than or equal to a time threshold corresponding to the first terminal;
and the first sending module is used for sending power consumption information to a plurality of terminals connected with the target router when the synchronization time is greater than or equal to a time threshold corresponding to the first terminal, wherein the power consumption information is used for prompting that the risk of power consumption increase exists when the user terminal is connected with the target router.
7. The apparatus of claim 6, further comprising:
a second obtaining module, configured to obtain synchronization time for synchronizing the first terminal with the other routers except the target router;
and a third obtaining module, configured to obtain a time threshold corresponding to the first terminal according to synchronization time for synchronizing the first terminal with other routers except the target router in the multiple routers.
8. The apparatus of claim 6 or 7, wherein the first sending module comprises:
the acquisition submodule is used for acquiring the synchronization time of the other terminals which are connected with the target router or are currently connected with the target router and the target router when the synchronization time is greater than or equal to the time threshold corresponding to the first terminal;
a first determining submodule, configured to respectively determine whether a synchronization time for each of the plurality of terminals to synchronize with the target router is greater than or equal to a corresponding time threshold;
and the first sending submodule is used for sending power consumption information to the plurality of terminals connected with the target router when the number of the overtime terminals in the plurality of terminals is greater than or equal to the number threshold, and the synchronization time of the overtime terminals and the target router is greater than or equal to the time threshold corresponding to the synchronization time.
9. A synchronous information processing apparatus characterized by comprising:
the fourth acquisition module is used for acquiring the synchronization time for synchronizing with the currently connected router and the router identification of the router;
the second sending module is used for sending router synchronization information to a server according to the synchronization time and the router identification, so that the server can determine whether power consumption information needs to be sent to a plurality of terminals connected with the router corresponding to the router identification according to the synchronization time included in the router synchronization information;
the second sending module includes:
the second determining submodule is used for determining whether the current state meets the callback triggering condition;
and the second sending submodule is used for sending router synchronization information to the server according to the synchronization time and the router identification if the current state meets the callback triggering condition.
10. The apparatus of claim 9, further comprising:
a fifth obtaining module, configured to obtain, according to the power consumption information sent by the server, router identifiers of routers other than the currently connected router within a preset communication range;
and the display module is used for displaying prompt information according to the router identifications of the other routers, wherein the prompt information is used for prompting a user to select the router corresponding to the router identification for connection.
11. A synchronous information processing apparatus characterized by comprising:
a first processor;
a first memory for storing first processor-executable instructions;
wherein the first processor is configured to:
receiving router synchronization information sent by a first terminal, wherein the router synchronization information comprises synchronization time for synchronizing the first terminal and a target router and a router identifier of the target router, and the target router is any one of a plurality of routers which are once or currently connected with the first terminal;
according to the router identification, storing the synchronization time for synchronizing the first terminal and the target router;
acquiring the synchronization time for synchronizing the first terminal and the target router;
determining whether the synchronization time is greater than or equal to a time threshold corresponding to the first terminal;
and when the synchronization time is greater than or equal to a time threshold corresponding to the first terminal, sending power consumption information to a plurality of terminals connected with the target router, wherein the power consumption information is used for prompting that the risk of power consumption increase exists when the user terminal is connected with the target router.
12. A synchronous information processing apparatus characterized by comprising:
a second processor;
a second memory for storing second processor-executable instructions;
wherein the second processor is configured to:
acquiring synchronization time for synchronizing with a currently connected router and a router identifier of the router;
determining whether the current state meets a callback triggering condition;
and if the current state meets the callback triggering condition, sending router synchronization information to a server according to the synchronization time and the router identification, so that the server can determine whether to send power consumption information to a plurality of terminals connected with the router corresponding to the router identification according to the synchronization time included in the router synchronization information.
13. A computer-readable storage medium having stored thereon computer instructions, which when executed by a processor, perform the steps of the method of any one of claims 1 to 3.
14. A computer-readable storage medium having stored thereon computer instructions, which when executed by a processor, perform the steps of the method of claim 4 or 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810380861.5A CN108683471B (en) | 2018-04-25 | 2018-04-25 | Synchronous information processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810380861.5A CN108683471B (en) | 2018-04-25 | 2018-04-25 | Synchronous information processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108683471A CN108683471A (en) | 2018-10-19 |
CN108683471B true CN108683471B (en) | 2020-09-04 |
Family
ID=63801679
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810380861.5A Active CN108683471B (en) | 2018-04-25 | 2018-04-25 | Synchronous information processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108683471B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103916261A (en) * | 2013-01-09 | 2014-07-09 | 华为技术有限公司 | Method for determining the number of network devices needing to be in energy-saving mode and control device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR2881902B1 (en) * | 2005-02-07 | 2007-04-27 | Alcatel Sa | ROUTER WITH SYNCHRONIZED UPGRADE OF ROUTING TABLES, FOR A DISTRIBUTED ROUTING COMMUNICATION NETWORK |
JP2014183432A (en) * | 2013-03-19 | 2014-09-29 | Nippon Telegraph & Telephone West Corp | Synchronous inquiry service providing device, synchronous inquiry service providing method, and synchronous inquiry service providing program |
CN106992893A (en) * | 2017-05-17 | 2017-07-28 | 北京小米移动软件有限公司 | The management method and device of router |
-
2018
- 2018-04-25 CN CN201810380861.5A patent/CN108683471B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103916261A (en) * | 2013-01-09 | 2014-07-09 | 华为技术有限公司 | Method for determining the number of network devices needing to be in energy-saving mode and control device |
Also Published As
Publication number | Publication date |
---|---|
CN108683471A (en) | 2018-10-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11546867B2 (en) | Transmission configuration method and apparatus | |
WO2020019217A1 (en) | Transmission configuration method and device | |
CN109121468B (en) | Access method and device related to network slice | |
CN109314913B (en) | Access control limiting method and device | |
CN108702763B (en) | Method and device for sending lead code and scheduling request | |
CN110622616A (en) | Control method and device of inactivity timer | |
CN106792937B (en) | Method and device for processing call request | |
CN109451838B (en) | Method, device and storage medium for obtaining access control parameters | |
CN109196909B (en) | Cell switching method and device | |
CN108781377B (en) | Timer control method and device, electronic equipment and computer readable storage medium | |
US11206609B2 (en) | Cell access method and apparatus and storage medium | |
US11310694B2 (en) | Method and device for receiving downlink data during RRC inactive state | |
US11617129B2 (en) | Method and device for transmitting system information | |
CN107223360B (en) | Method and device for sending cache state | |
CN106535147B (en) | Communication signal processing method and device | |
CN106792570B (en) | Positioning method and device | |
CN109644425B (en) | Method and device for transmitting paging signaling | |
CN107105005B (en) | Method and device for synchronizing data | |
US20220256372A1 (en) | Downlink transmission detecting method and device, configuration information transmission method and device, and downlink transmission method and device | |
CN109451857B (en) | Data transmission method and device | |
CN108683471B (en) | Synchronous information processing method and device | |
CN114430370B (en) | Method, device, equipment and storage medium for determining network slice | |
CN105228134B (en) | A kind of method and apparatus updating temporary mobile subscriber identity | |
US11997542B2 (en) | Method and device for message transmission | |
CN107959974B (en) | Communication processing method, terminal and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |