Disclosure of Invention
In order to solve the technical problem, the invention provides a step counting method, a step counting device, a terminal device and a computer readable storage medium, which can count the steps of a user during the period that an APP process is killed, so as to improve the step counting accuracy.
The invention provides the following scheme:
in a first aspect, a step counting method is provided, which is applied to a client on a terminal, and the method includes:
after the process of the client is started, calculating the number of lost steps of the last process end of the client and the process starting period;
acquiring a first local step number of the user, which is stored in the terminal by the client when the last process is finished;
and determining a first total step number after the client process is started according to the lost step number and the first local step number.
Further, the calculating the number of lost steps between the last process end of the client and the process start period includes:
and when the client logs in for the non-first time or the step counting number is not cleared, calculating the lost step number of the client during the last process ending and the process starting period.
Further, the method further comprises:
acquiring storage time corresponding to the first local step number;
and when the storage time is not empty, determining that the client logs in for the non-first time or the step count is not cleared.
Further, the calculating the number of lost steps from the last process of the client to the process starting period includes:
acquiring the starting time of the process and the step number of the pedometer recorded by the pedometer in the terminal;
when the difference between the starting time and the storage time is larger than the running time of the terminal after the terminal is started, determining the step number of the pedometer as the lost step number;
and when the difference between the starting time and the storage time is smaller than the running time length of the terminal after the terminal is started, determining the difference between the step number of the pedometer and the first local step number as the lost step number.
Further, the calculating the number of lost steps from the last process of the client to the process starting period further includes:
determining a target time period to which the lost step number belongs;
when the last process is finished, the obtaining of the first local step number of the user, which is stored in the terminal by the client, includes:
acquiring a second local step number of the user in a target time period, which is stored in the terminal by the client when the last process is finished;
determining a first total step number after the process is started according to the lost step number and the first local step number comprises the following steps:
and determining a second total step number of the target time period after the client process is started according to the lost step number and the second local step number.
Further, the determining the target time period to which the number of lost steps belongs includes:
acquiring a first time period to which the starting time of the process belongs and a second time period to which the storage time corresponding to the first local step number belongs;
taking the first time period as the target time period when the first time period and the second time period are the same;
when the first time period is different from the second time period, if the difference between the starting time and the storage time is less than the running time of the terminal after the terminal is started, then:
setting the first time period as the target time period, or,
setting the second time period as the target time period;
when the first time period is different from the second time period, if the difference between the starting time and the storage time is greater than the running time of the terminal after the terminal is started, then:
determining the starting time of the terminal according to the starting time and the running time;
and taking the starting time as the final storage time, recalculating a third time period to which the final storage time belongs, and judging whether the first time period and the third time period are the same to determine the target time period.
Further, after determining the first total step number after the process is started according to the lost step number and the first local step number, the method further includes:
acquiring the server-side step number corresponding to the starting time of the process of the user stored by the server side;
and taking the larger step number in the first total step number and the server-side step number as a third total step number.
In a second aspect, a step-counting device is provided, which is applied to a client on a terminal, and the device includes:
the lost step number calculation module is used for calculating the lost step number of the client terminal during the last process ending and the current process starting period after the current process of the client terminal is started;
a first local step number obtaining module, configured to obtain a first local step number of the user, where the first local step number is stored in the terminal by the client when the last process is completed;
and the first total step number determining module is used for determining the first total step number after the client process is started according to the lost step number and the first local step number.
In a third aspect, a terminal device is provided, including:
one or more processors; and
a memory associated with the one or more processors for storing program instructions which, when read and executed by the one or more processors, perform the method of the first aspect as set forth above.
In a fourth aspect, a computer-readable medium is provided, on which a computer program is stored, wherein the program, when executed by a processor, implements the method according to the first aspect.
According to the specific embodiments provided herein, the present application discloses the following technical effects:
(1) in the invention, after the process of the client is started, the lost steps of the client during the last process ending and the current process starting are calculated, the first local step of the user stored in the terminal by the client when the last process is ended is obtained, and the first total step after the client process is started is determined according to the lost steps and the first local step, so that the step of the user which is not collected by the client during the process ending is calculated, the influence of the state of the step counting software process on the step counting of the step counting software is avoided, and the step counting accuracy of the step counting software is improved;
(2) after the lost step number is determined, the lost step number is distributed, and a target time period to which the lost step number belongs is determined, so that a second total step number of the target time period after the client process is started is obtained, and the step number statistics of the target time period is more accurate;
(3) after the first total step number after the process is started is determined according to the lost step number and the first local step number, the server-side step number corresponding to the starting time of the process, stored by the server, of the user is obtained, and the first total step number and the server-side step number which are large in value are used as the third total step number, so that the user is prevented from maliciously brushing personal data through a plurality of terminal devices, and a fair competitive benign environment is provided for activities participated in by group properties such as a ranking list in the step counting software.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Aiming at the problems that in the prior art, a plurality of APPs can only record the change of the step number when the process is in a survival state, and once the process is dead, the APP cannot count the step number of the user in the period.
The step counting method will be further described with reference to the following embodiments.
Example one
The embodiment provides a step counting method, which is applied to a client on a terminal, and as shown in fig. 1, the method includes:
s101, after the current process of the client is started, calculating the number of lost steps during the last process end and the current process starting of the client.
The client may be a piece of step counting software, and since the change of the number of steps can be recorded only when the process is in a live state on the step counting software of the terminal, and once the process is killed, the step counting software cannot count the number of steps of the user in the period of time, in this embodiment, after the process starting request is detected, the first number of steps generated by the user in the period of time when the last process is killed and the process is started is calculated, where the first number of steps is the number of steps not counted by the step counting software, that is, the number of lost steps, for example, the number of steps of the user is counted in the step counting software, and the process of the step counting software is killed possibly due to a system reason, then the number of steps generated by the user cannot be recorded on the step counting software, the user can click the step counting software again to enter, and at this time, the step counting software already has the login information of the user, and does not need to log in again, so that the process of the last step counting software is killed and the user starts The user generates a number of steps, which counts as the number of lost steps.
S102, acquiring a first local step number of the user, which is stored in the terminal by the client when the last process is finished.
After the process of the step counting software is started, a step counter of the terminal system is registered, the step counter is carried by the system, and the step number of the step counter is increased by 1 every time a user walks, so that the step number of the step counter is the total step number of the step counter generated by the user. After the step counting software registers the step counter, the step counting software acquires the total steps accumulated when the user starts the process from the step counter, and then the step counter reports the total steps to the step counting software when detecting the step generation, thus, the difference value of the data reported by the step counting software for two times is the change value of the step number in the period of time, the accumulation of the change values is the step number of the user in the period of time displayed on the step counting software, for example, under normal conditions, when a user uses step counting software for counting steps for the first time, the step counting software acquires the total step number of the step counter on the step counter, if the process of the step counting software is in a survival state, the user walks for the first step, the step counter returns to the step counting software for one-ten-thousand-step data, and the step counting software can calculate the step walking of the user from the data, and so on, so that the total step number of the user in a period of time when the user uses the step counting software for counting steps is calculated.
The step counting software stores the acquired step number into a local file or a local database at intervals of preset time, the preset time can be 1 minute or 5 minutes, the setting is carried out according to actual needs, then the step number can be placed into a memory and then stored into the local file or the local database, or the step number can be directly stored into the local file or the local database, the local file or the local database corresponds to the account number of the user and is provided with a storage file, the step number of the step counting software can be stored, in the embodiment, the first local step number which is locally stored and corresponds to the user is obtained when the last process is finished, and therefore the step number of the step counting software when the last process is finished by the user can be known.
S103, determining a first total step number after the client process is started according to the lost step number and the first local step number.
In the step, the sum of the lost step number and the first local step number is determined as the first total step number after the process is started, and the first total step number is used for calculating the step number generated by the user during the process ending period, so that the step counting accuracy is improved.
According to the invention, after the process starting request is detected, the lost step number from the last process ending to the process starting period is calculated, the first local step number corresponding to the user and locally stored at the last process ending time is obtained, and the first total step number after the process starting is determined according to the lost step number and the first local step number, so that the step number of the user, which is not collected by the step counting software during the process ending period, is calculated, the influence of the state of the step counting software process on the step counting of the step counting software is avoided, and the step counting accuracy of the step counting software is improved.
After the first total step number is determined, continuously accumulating the change value of the step number during the survival period of the step counting software, simultaneously storing the data to a local file or a database every 5 minutes, and simultaneously uploading the data to a server.
Further, calculating the number of lost steps between the last process end of the client and the process start period includes:
and when the client logs in for the non-first time or the step counting number is not cleared, calculating the lost step number of the client during the last process ending and the process starting period.
Further, the method further comprises:
acquiring storage time corresponding to the first local step number;
and when the storage time is not empty, determining that the client does not log in for the first time or the step count is not cleared.
In this embodiment, if the storage time is empty, it indicates that the step counting software is installed for the first time or the user has cleared the data, and there is no case where the process was killed last time, and the calculation of the number of missing steps and the calculation of the first total number of steps in this embodiment are not performed.
Further, calculating the number of lost steps from the last process of the client to the process starting period includes:
acquiring the starting time of the process and the step number of a pedometer recorded by the pedometer in the terminal;
when the difference between the starting time and the storage time is larger than the running time of the terminal after the terminal is started, determining the step number of the pedometer as the lost step number;
and when the difference between the starting time and the storage time is smaller than the running time of the terminal after the terminal is started, determining the difference between the step number of the pedometer and the first local step number as the lost step number.
When calculating the number of lost steps, judging whether the terminal is restarted or not according to the size relationship between the difference between the starting time and the storage time and the running time of the terminal after the terminal is started, if the difference between the time of activation and the time of storage is greater than the running time of the terminal since the terminal was activated, the terminal is restarted, that is, after the step counting software process is killed, the terminal is restarted, then the number of lost steps is equal to the number of steps of the pedometer, for example, the step counting software process is killed at ten am, at this time, the pedometer still records the number of steps of the user, if the ten-point half mobile phone system is restarted, the step number of the pedometer is cleared, then the step number of the pedometer is the step number of the user after ten-point half, the eleven-point step counting software process is restarted, then, and when the missing step number which is not collected by the ten-to-eleven-point step counting software is eleven points, the step number of the user is collected by the pedometer.
If the difference between the starting time and the storage time is less than the running time of the terminal after the terminal is started, the terminal is not restarted, and then after the step counting software process is killed, the number of lost steps is equal to the difference between the step number of the pedometer and the first local step number, for example, the step counting software process at ten am is killed, at this time, the step counter still records the step number of the user, the step counting software process at eleven am is restarted, and the intermediate system is not restarted, then, the number of lost steps which are not collected by the step counting software from ten to eleven pm is the step number of the pedometer at eleven pm minus the step number stored locally at ten pm.
Further, after step S101, calculating the number of missing steps from the last process of the client to the process start period, the method further includes:
determining a target time period to which the lost step number belongs;
the obtaining of the first local step number of the user, stored in the terminal by the client when the last process is finished, includes:
acquiring a second local step number of the user in the target time period, which is stored in the terminal by the client when the last process is finished;
determining the first total step number after the process is started according to the lost step number and the first local step number comprises the following steps:
and determining a second total step number of the target time period after the client process is started according to the lost step number and the second local step number.
In this embodiment, after determining the number of lost steps, the number of lost steps is distributed, a target time period to which the number of lost steps belongs is determined, and the local steps are stored according to time, so that a second local step of the user in the target time period, which is locally stored when the last process is finished, is obtained, the second local step is a total step number taken by the user corresponding to the target time period, a second total step number corresponding to the target time period is determined according to the number of lost steps and the second local step number, for example, the target time period is a specific day, the number of lost steps is calculated to be ten thousand steps, and then the target time period of the ten thousand steps is determined to be yesterday, that is, the user takes one thousand steps after the yesterday step counting software process is finished, then, after the process is started, the ten thousand steps are counted into the total step number of yesterday.
Further, determining a target time period to which the number of lost steps belongs comprises:
acquiring a first time period to which the starting time of the process belongs and a second time period to which the storage time corresponding to the first local step number belongs;
when the first time period and the second time period are the same, taking the first time period as a target time period;
when the first time period is different from the second time period, if the difference between the starting time and the storage time is less than the running time of the terminal after the terminal is started, then:
setting the first time period as the target time period, or,
setting the second time period as the target time period;
when the first time period is different from the second time period, if the difference between the starting time and the storage time is greater than the running time of the terminal after the terminal is started,
determining the starting time of the terminal according to the starting time and the running time;
and taking the starting time as the final storage time, recalculating a third time period to which the final storage time belongs, and judging whether the first time period and the third time period are the same to determine the target time period.
When a target time period with missing steps is determined, a first time period to which the starting time of the process belongs and a second time period to which the storage time corresponding to the first local steps belongs are obtained first, whether the first time period and the second time period are the same or not is judged, if yes, the time period is taken as the target time period, the number of steps taken by the target time period seen on step counting software when the user starts the process is calculated, and if not, whether the terminal is restarted or not is also required to be judged; if the difference between the starting time of the process and the storage time of the first local step number is smaller than the running time of the terminal after the terminal is started, the terminal is not restarted, and the first time period is taken as the target time period, or the second time period is taken as the target time period; if the difference between the starting time and the storage time is larger than the running time of the terminal after the terminal is started, the terminal is restarted, and the starting time of the terminal is determined according to the starting time and the running time; and taking the starting time as the corrected storage time, recalculating a third time period to which the corrected storage time belongs, and judging whether the first time period is the same as the third time period so as to determine the target time period. For example, the target time period is a target date, the missing step number is judged to be the missing step number at which point, the missing step number may be lost today or yesterday lost, at this time, the judgment needs to be performed according to whether the storage time and the opening time are in the same day, if the storage time and the opening time are both today, the missing step number belongs to today, and if the storage time is yesterday and the opening time is today, the judgment needs to be performed to judge whether the terminal has been restarted.
As shown in fig. 2, taking the example that the step counting software needs to display the total steps of the user per day, the step counting method for the user per day is as follows:
s201, detecting the process starting;
s202, acquiring the storage time of a first local step number stored in the terminal when the last process is finished, the starting time of the process and the step number of the pedometer recorded by the pedometer;
s203, judging whether the terminal is restarted, namely whether the difference between the cur time and the save time is greater than the running time (time after boot) of the terminal after the terminal is started, if so, namely the difference between the cur time and the save time is greater than the time after boot, the number of lost steps is equal to the number of steps of the pedometer.
If not, i.e., the difference between cur time and save time is less than the time after boot, the number of missing steps is equal to the difference between the pedometer step and the first local step.
S204, judging whether the starting time cur time of the process and the storage time save time corresponding to the first local step number are in the same day, and if so, taking the day as the target day.
S205, if the cur time and the save time are not in the same day, and the difference between the cur time and the save time is less than the time after boot, then:
the number of days the on time is on is taken as the target number of days, or,
the number of days in which the storage time is taken as the target number of days.
S206, if the starting time of the current process and the storage time corresponding to the first local step number are not in the same day, and the difference between cur time and save time is larger than time after boot,
determining the starting time of the terminal according to the starting time and the running time;
and repeating the steps S205-S206 by taking the starting time as the storage time.
And S207, acquiring a second local step number of the user in the target days, which is locally stored when the previous process is finished.
And S208, taking the sum of the lost steps and the second local steps as a second total steps corresponding to the target days.
In general, if the step counting software has a login module, the user may use multiple devices, and multiple step sources of the same device, and if the step counts are incorrect, the step counts may be repeatedly accumulated, resulting in cheating phenomena, which may adversely affect other users on the ranking list, and may not be fair to the user using the step counting software, and therefore, further, after determining the first total step count after the process is started according to the lost step count and the first local step count, the method further includes:
acquiring the server-side step number corresponding to the starting time of the process of the user stored by the server side;
and taking the larger step number in the first total step number and the server-side step number as a third total step number.
In this embodiment, the step counting software stores the obtained step number in a local file or database every a preset time, and then transmits the step number to the server for storage, the server-side step number corresponding to the start time of the process of the user stored in the server is obtained, the first total step number and the server-side step number having a larger value are used as the third total step number, that is, the data follows the user instead of the device, for example, the user uses the device a to walk 1W step, the device a locally stores 1W step, transmits the data to the server as 1W step of the account number, the network between the device a and the server is disconnected, the user logs in the device B, the device B is taken 1W step within a period of time, the device a walks 2W, then the device B logs out of the login, the server records the account number as 2W step, and then the user recovers the network between the device a and the server, if the existing method is adopted, in the network connection process of the device A and the server, the process is not finished, so that the step number of the user is always calculated, and only data interaction with the server is not carried out, after the device A is connected with the server network again, the step number of the device A is obtained from the server, the step number of the user, which is recorded in the period of time, of 1W step is recorded, and the step number of the device A is added to the step number of the device A by 3W steps, so that the step number of the device B is repeatedly calculated. The embodiment ensures the maximization of data, enables the data to be closer to the data actually generated by the user, reduces the influence caused by switching equipment and the influence of cheating when the user logs in from multiple terminals, and improves the user experience of the step-counting software.
In this embodiment, after the current process of the client is started, the number of lost steps during the last process end and the current process start of the client is calculated, the first local step number of the user, which is stored in the terminal by the client when the last process is ended, is obtained, and the first total step number after the client process is started is determined according to the lost step number and the first local step number, so that the step number of the user, which is not acquired by the client during the process end, is calculated, the influence of the state of the step counting software process on the step counting of the step counting software is avoided, and the step counting accuracy of the step counting software is improved; after the lost step number is determined, the lost step number is distributed, and a target time period to which the lost step number belongs is determined, so that a second total step number of the target time period after the client process is started is obtained, and the step number statistics of the target time period is more accurate; after the first total step number after the process is started is determined according to the lost step number and the first local step number, the server-side step number corresponding to the starting time of the process, stored by the server side, of the user is obtained, the first total step number and the server-side step number with larger values are used as the third total step number, so that cheating measures can be taken, the user is prevented from maliciously brushing personal data through a plurality of devices, the cheating user does not lose data, and a fair competitive benign environment is provided for activities participated by group properties such as a ranking list in the step counting software.
Example two
The embodiment provides a step counting device, which is applied to a client in a terminal, and as shown in fig. 3, the device includes:
the lost step number calculating module is used for calculating the lost step number of the client during the last process ending and the current process starting period after the current process of the client is started;
the first local step number obtaining module is used for obtaining a first local step number of the user, which is stored in the terminal by the client when the last process is finished;
and the first total step number determining module is used for determining the first total step number after the client process is started according to the lost step number and the first local step number.
Further, the lost step number calculation module includes a calculation unit, configured to calculate the number of lost steps between the last process end of the client and the process start time when the client logs in for a non-first time or the counted step number is not cleared.
Further, the missing step number calculation module further includes: the acquisition unit is used for acquiring the storage time corresponding to the first local step number; the calculation unit is further used for determining that the client does not log in for the first time or the step count is not cleared when the storage time is not empty.
Further, the obtaining unit is further configured to obtain the starting time of the current process and the pedometer step number recorded by the pedometer in the terminal;
the computing unit is further configured to determine the number of steps of the pedometer as the number of lost steps when the difference between the starting time and the storage time is greater than the running time of the terminal after the terminal is started;
and when the difference between the starting time and the storage time is smaller than the running time length of the terminal after the terminal is started, determining the difference between the step number of the pedometer and the first local step number as the lost step number.
Further, the device also comprises a target time period determining module for determining a target time period to which the lost step number belongs;
the second local step number obtaining module is configured to obtain a second local step number of the user in the target time period, where the second local step number is stored in the terminal by the client when the last process is finished;
and the second total step number determining module is used for determining a second total step number in the target time period according to the lost step number and the second local step number.
Further, the target time period determination module is further configured to:
acquiring a first time period to which the starting time of the process belongs and a second time period to which the storage time corresponding to the first local step number belongs;
taking the first time period as the target time period when the first time period and the second time period are the same;
when the first time period is different from the second time period, if the difference between the starting time and the storage time is less than the running time of the terminal after the terminal is started, then:
setting the first time period as the target time period, or,
setting the second time period as the target time period;
when the first time period is different from the second time period, if the difference between the starting time and the storage time is greater than the running time of the terminal after the terminal is started, then:
determining the starting time of the terminal according to the starting time and the running time;
and taking the starting time as the corrected storage time, recalculating a third time period to which the corrected storage time belongs, and judging whether the first time period and the third time period are the same so as to determine the target time period.
Further, the step counting device further comprises: the server-side step number acquisition module is used for acquiring the server-side step number corresponding to the starting time of the process of the user stored by the server;
and the third total step number determining module is used for taking the larger value of the first total step number and the server-side step number as the third total step number.
For the specific limitation of the step-counting device, reference may be made to the above limitation of the step-counting method, which is not described herein again. The modules in the step counting device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
EXAMPLE III
The present embodiment provides a terminal device, including:
one or more processors; and
a memory associated with the one or more processors for storing program instructions that, when read and executed by the one or more processors, perform operations comprising:
after the process of the client is started, calculating the number of lost steps of the last process end of the client and the process starting period;
acquiring a first local step number of the user, which is stored in the terminal by the client when the last process is finished;
and determining a first total step number after the client process is started according to the lost step number and the first local step number.
Further, the calculating the number of lost steps between the last process end of the client and the process start period includes:
and when the client logs in for the non-first time or the step counting number is not cleared, calculating the lost step number of the client during the last process ending and the process starting period.
Further, the method further comprises:
acquiring storage time corresponding to the first local step number;
and when the storage time is not empty, determining that the client logs in for the non-first time or the step count is not cleared.
Further, the calculating the number of lost steps from the last process of the client to the process starting period includes:
acquiring the starting time of the process and the step number of the pedometer recorded by the pedometer in the terminal;
when the difference between the starting time and the storage time is larger than the running time of the terminal after the terminal is started, determining the step number of the pedometer as the lost step number;
and when the difference between the starting time and the storage time is smaller than the running time length of the terminal after the terminal is started, determining the difference between the step number of the pedometer and the first local step number as the lost step number.
Further, the calculating the number of lost steps from the last process of the client to the process starting period further includes:
determining a target time period to which the lost step number belongs;
when the last process is finished, the obtaining of the first local step number of the user, which is stored in the terminal by the client, includes:
acquiring a second local step number of the user in a target time period, which is stored in the terminal by the client when the last process is finished;
determining a first total step number after the process is started according to the lost step number and the first local step number comprises the following steps:
and determining a second total step number of the target time period after the client process is started according to the lost step number and the second local step number.
Further, the determining the target time period to which the number of lost steps belongs includes:
acquiring a first time period to which the starting time of the process belongs and a second time period to which the storage time corresponding to the first local step number belongs;
taking the first time period as the target time period when the first time period and the second time period are the same;
when the first time period is different from the second time period, if the difference between the starting time and the storage time is less than the running time of the terminal after the terminal is started, then:
setting the first time period as the target time period, or,
setting the second time period as the target time period;
when the first time period is different from the second time period, if the difference between the starting time and the storage time is greater than the running time of the terminal after the terminal is started, then:
determining the starting time of the terminal according to the starting time and the running time;
and taking the starting time as the final storage time, recalculating a third time period to which the final storage time belongs, and judging whether the first time period and the third time period are the same to determine the target time period.
Further, after determining the first total step number after the process is started according to the lost step number and the first local step number, the method further includes:
acquiring the server-side step number corresponding to the starting time of the process of the user stored by the server side;
and taking the larger step number in the first total step number and the server-side step number as a third total step number.
For the implementation process and the technical effects that can be achieved in this embodiment, please refer to the description in the first embodiment, which is not repeated herein.
Example four
In an embodiment, a computer-readable storage medium is provided, where a computer program is stored, and when the computer program is executed by a processor, the step counting method according to the embodiment is implemented, and an execution process and a technical effect that can be achieved by the step counting method refer to the description in the first embodiment, which is not described herein again.
Fig. 4 illustrates an architecture of a computer system, which may include, in particular, a processor 1210, a video display adapter 1211, a disk drive 1212, an input/output interface 1213, a network interface 1214, and a memory 1220. The processor 1210, video display adapter 1211, disk drive 1212, input/output interface 1213, network interface 1214, and memory 1220 may be communicatively coupled via a communication bus 1230 as described above.
The processor 1210 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solution provided in the present Application.
The Memory 1220 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, or the like. The memory 1220 may store an operating system 1221 for controlling the operation of the electronic device 1200, a Basic Input Output System (BIOS) for controlling low-level operations of the electronic device 1200. In addition, a web browser 1223, a data storage management system 1224, and a device identification information processing system 1225 and the like may also be stored. The device identification information processing system 1225 may be an application program that implements the operations of the foregoing steps in this embodiment of the present application. In summary, when the technical solution provided in the present application is implemented by software or firmware, the relevant program codes are stored in the memory 1220 and called for execution by the processor 1210.
The input/output interface 1213 is used for connecting an input/output module to realize information input and output. The i/o module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The network interface 1214 is used for connecting communication modules (not shown in the figure) to enable the device to interact with other devices in a communication way. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, Bluetooth and the like).
Bus 1230 includes a path that transfers information between various components of the device, such as processor 1210, video display adapter 1211, disk drive 1212, input/output interface 1213, network interface 1214, and memory 1220.
In addition, the electronic device 1200 may also obtain information of specific pickup conditions from the virtual resource object pickup condition information database 1241 for performing condition judgment, and the like.
It should be noted that although the above-mentioned devices only show the processor 1210, the video display adapter 1211, the disk drive 1212, the input/output interface 1213, the network interface 1214, the memory 1220, the bus 1230, etc., in a specific implementation, the devices may also include other components necessary for proper operation. Furthermore, it will be understood by those skilled in the art that the apparatus described above may also include only the components necessary to implement the solution of the present application, and not necessarily all of the components shown in the figures.
In particular, according to embodiments of the application, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means, or installed from the memory, or installed from the ROM. The computer program, when executed by a processor, performs the above-described functions defined in the methods of embodiments of the present application.
It should be noted that the computer readable medium of the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In embodiments of the application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In embodiments of the present application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the server; or may exist separately and not be assembled into the server. The computer readable medium carries one or more programs which, when executed by the server, cause the server to: when the peripheral mode of the terminal is detected to be not activated, acquiring a frame rate of an application on the terminal; when the frame rate meets the screen information condition, judging whether a user is acquiring the screen information of the terminal; and controlling the screen to enter an immediate dimming mode in response to the judgment result that the user does not acquire the screen information of the terminal.
Computer program code for carrying out operations for embodiments of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are only illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The method, the device and the electronic device for processing the identification information of the terminal device provided by the present application are introduced in detail, and a specific example is applied in the description to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, the specific embodiments and the application range may be changed. In view of the above, the description should not be taken as limiting the application.