Device identifier acquisition method and device
By introducing a target validity mechanism into the device identifier, ensuring that the device identifier is only valid within a specific time range, the problem of low security of existing device identifiers is solved and data security and privacy is improved.
Patent Information
- Application Number
- CN202111232300.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-22
- Publication Date
- 2025-05-02
- Estimated Expiration
- 2041-10-22
AI Technical Summary
The security of existing device identifiers is low, resulting in a high risk of data leakage. A device identifier that can ensure data security and reduce the risk of data leakage is urgently needed.
By determining the target validity period and obtaining the corresponding target device identifier, the target device identifier is only valid during the target validity period, and the corresponding device identifiers for different validity periods are different, thereby limiting the time range of data collection and reducing the risk of data leakage.
Improves the data security and privacy of the device, reduces the type and quantity of data identified by the target device identifier, and reduces the risk of data breaches.
Smart Images

Figure CN116016246B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of network technology, and in particular, to a method and apparatus for obtaining a device identifier. Background Art
[0002] In data analysis scenarios such as device data collection and data processing, device data (such as data based on device applications, services, and systems) usually includes a lot of sensitive information, such as user ID number, phone number, address, credit card number, etc. Once leaked, it will cause unnecessary losses and harm. In order to avoid the leakage of sensitive information, device data is usually desensitized to ensure data security.
[0003] Device identifiers are used to identify device data. Through device identifiers, device data can be obtained and sensitive information in the data can be identified. Therefore, device identifiers are particularly important for data security. However, the security of various device identifiers is currently low, resulting in a greater risk of data leakage.
[0004] Therefore, there is an urgent need for a device identifier that ensures data security and reduces the risk of data leakage. Summary of the invention
[0005] The present application provides a method and apparatus for obtaining a device identifier, which reduces the types and quantity of data identified by a target device identifier, thereby improving the data security and privacy of the device.
[0006] In a first aspect, the present application provides a method for acquiring a device identifier, the method comprising: determining a target validity period; acquiring a target device identifier corresponding to the target validity period, the target device identifier being valid within the target validity period, different device identifiers corresponding to different validity periods, and the target device identifier being used to collect data within the target validity period.
[0007] In this method, the target device identifier is only valid within the target validity period, so the device identifiers corresponding to different validity periods are different, so that after obtaining the target device identifier, the application can only collect data from devices within the target validity period, reducing the types and quantity of data identified by the target device identifier, thereby improving the data security and privacy of the device.
[0008] In a possible implementation, the target validity period includes at least one of the following characters: a start time field, an end time field, a valid time unit field, and a valid duration field.
[0009] In a possible implementation, the target validity period includes any time field of the start time field and the end time field and the valid time unit field, and the time unit of any time field is the same as the time unit indicated by the valid time unit field.
[0010] The start time field is used to indicate the start time of the target validity period, which can be the reception time of the acquisition request. The end time field is used to indicate the end time of the target validity period, and the reception time can be used as the start time, and the end time is obtained according to the reception time and the target range information. The effective time unit indicated by the effective time unit field can be obtained based on the first effective time unit in the target range information, and the effective duration field is used to indicate the duration of the target validity period, which can be greater than or equal to the effective duration in the target range information.
[0011] In one possible implementation, determining the target validity period includes: receiving a request for obtaining a device identifier, the request for obtaining the device identifier being used to indicate target range information, the target range information including a valid duration or a first valid time unit; determining the target validity period based on a receiving time of the acquisition request and the target range information, the time period consisting of the receiving time and the target range information belonging to the target validity period.
[0012] The acquisition request may be sent by a device running any application, for example, when a data collection event occurs. The device running any application may be the same as or different from the device receiving the acquisition request, that is, the device running any application and the device receiving the acquisition request are two devices in a distributed device networking scenario.
[0013] There are multiple ways for the acquisition request to indicate the target range information. In one implementation, the acquisition request may directly indicate the target range information. In another implementation, the acquisition request may directly indicate the purpose of use of the device identifier. The device determines the purpose of use based on the acquisition request, and then determines the target range information based on the purpose of use. The device may determine the duration required for the data acquisition process based on the purpose of use, and determine the target range information based on the duration.
[0014] The device may pre-store a correspondence between multiple usage purposes and multiple range information. After receiving the acquisition request, the range information corresponding to the usage purpose indicated by the acquisition request is determined as the target range information based on the correspondence. Optionally, the acquisition request may carry a purpose string, which is used to indicate the usage purpose. The device may store a correspondence between multiple purpose strings and multiple range information.
[0015] The receiving time may be an absolute time or a relative time. For example, when the receiving time is an absolute time, it may be the time when the acquisition request is received. When the receiving time is a relative time, it may be the relative time between the time when the acquisition request is received and a reference time, that is, the interval between the time when the acquisition request is received and the reference time is first determined, and then the time after the interval is determined as the receiving time starting from the reference time.
[0016] In a possible implementation, the target range information includes the first valid time unit, and the determining the target validity period based on the receiving time of the acquisition request and the target range information includes: determining the first validity period and / or the second validity period as the target validity period based on the receiving time and the first valid time unit, the first validity period and the second validity period both include any time field in the start time field and the end time field and the valid time unit field; the any time field and the valid time unit field in the first validity period respectively indicate the receiving time and the first valid time unit; the any time field and the valid time unit field in the second validity period respectively indicate the neighboring time of the receiving time and the first valid time unit, or respectively indicate the receiving time and the second valid time unit; the time interval between the neighboring time and the receiving time is at least one of the first valid time units, the second valid time unit is longer than the first valid time unit, the time unit of the receiving time in the first validity period and the time unit of the neighboring time in the second validity period are the same as the first valid time unit, and the time unit of the receiving time in the second validity period is the same as the second valid time unit.
[0017] In a possible implementation, the determining of the first validity period and / or the second validity period as the target validity period based on the receiving time and the first valid time unit includes: determining the first validity period based on the receiving time and the first valid time unit; when the remaining valid time in the first validity period is greater than a time threshold, determining the first validity period as the target validity period, and the remaining valid time is the difference between the expiration time of the first validity period and the receiving time; when the remaining valid time is less than or equal to the time threshold, determining the second validity period based on the receiving time and the first valid time unit, and determining the first validity period and the second validity period as the target validity period.
[0018] When the remaining effective duration of the first validity period is less than or equal to the duration threshold, the duration of the data acquisition process will be too short, and the amount and type of data acquired will be small, which will result in the failure to achieve the purpose of use. Therefore, when the remaining effective duration of the first validity period is reached, the second validity period can be determined, and the remaining effective duration of the target validity period can be increased, so that sufficient amount and type of data can be acquired, ensuring the realization of the purpose of use.
[0019] In a possible implementation manner, the acquiring the target device identifier corresponding to the target validity period includes: generating the target device identifier according to the target validity period.
[0020] The device may obtain target device identifier information according to the target validity period, and the target device identifier information includes a field for indicating the target device identifier and a field for indicating the target validity period. Optionally, the target device identifier information may also include a time zone field, and the time zone field is used to indicate the time zone corresponding to the time indicated by any time field included in the target validity period.
[0021] The device may obtain the hardware information of the device, and then generate a target device identifier according to the hardware information and the target validity period, and then generate the target device identifier information so that the target device identifier corresponds to the target validity period. Optionally, the device may use a hash algorithm to perform hash processing on some or all fields in the hardware information and the target validity period to obtain the target device identifier.
[0022] In a possible implementation, the obtaining of the target device identifier corresponding to the target validity period includes: determining a device identifier corresponding to a validity period including the target validity period from among multiple device identifiers as the target device identifier, wherein the multiple device identifiers correspond to validity periods respectively, and any two device identifiers correspond to different validity periods. The device can determine the target validity period by itself, and then pre-generate device identifiers corresponding to multiple validity periods.
[0023] In a second aspect, the present application provides a device for acquiring a device identifier, the device comprising: a processing module for determining a target validity period; the processing module is also used to acquire a target device identifier corresponding to the target validity period, the target device identifier is valid within the target validity period, different device identifiers correspond to different validity periods, and the target device identifier is used to collect data within the target validity period.
[0024] In a possible implementation, the target validity period includes at least one of the following characters: a start time field, an end time field, a valid time unit field, and a valid duration field.
[0025] In a possible implementation, the target validity period includes any time field of the start time field and the end time field and the valid time unit field, and the time unit of any time field is the same as the time unit indicated by the valid time unit field.
[0026] In a possible implementation, the device also includes: a transceiver module, used to receive a request for obtaining a device identifier, the acquisition request is used to indicate target range information, the target range information includes a valid duration or a first valid time unit; the processing module is specifically used to determine the target validity period based on the reception time of the acquisition request and the target range information, and the time period composed of the reception time and the target range information belongs to the target validity period.
[0027] In a possible implementation, the target range information includes the first valid time unit, and the processing module is specifically used to determine the first validity period and / or the second validity period as the target validity period based on the receiving time and the first valid time unit, the first validity period and the second validity period both include any time field in the start time field and the end time field and the valid time unit field; the any time field and the valid time unit field in the first validity period respectively indicate the receiving time and the first valid time unit; the any time field and the valid time unit field in the second validity period respectively indicate the neighboring time of the receiving time and the first valid time unit, or respectively indicate the receiving time and the second valid time unit; the time interval between the neighboring time and the receiving time is at least one of the first valid time units, the second valid time unit is longer than the first valid time unit, the time unit of the receiving time in the first validity period and the time unit of the neighboring time in the second validity period are the same as the first valid time unit, and the time unit of the receiving time in the second validity period is the same as the second valid time unit.
[0028] In one possible implementation, the processing module is specifically used to determine the first validity period based on the receiving time and the first valid time unit; when the remaining valid time in the first validity period is greater than a time threshold, determine the first validity period as the target validity period, and the remaining valid time is the difference between the expiration time of the first validity period and the receiving time; when the remaining valid time is less than or equal to the time threshold, determine the second validity period based on the receiving time and the first valid time unit, and determine the first validity period and the second validity period as the target validity period.
[0029] In a possible implementation manner, the processing module is specifically configured to generate the target device identifier according to the target validity period.
[0030] In a possible implementation, the processing module is specifically used to determine a device identifier whose corresponding validity period among multiple device identifiers includes the target validity period as the target device identifier, the multiple device identifiers respectively correspond to validity periods, and the validity periods corresponding to any two device identifiers are different.
[0031] In a third aspect, the present application provides a device for obtaining a device identifier, comprising: one or more processors; a memory for storing one or more computer programs or instructions; when the one or more computer programs or instructions are executed by the one or more processors, the one or more processors implement a method as described in any one of the first aspects.
[0032] In a fourth aspect, the present application provides a device for obtaining a device identifier, comprising: a processor, wherein the processor is configured to execute the method as described in any one of the first aspects.
[0033] In a fifth aspect, the present application provides a computer-readable storage medium, comprising a computer program or instructions, which, when executed on a computer, causes the computer to perform any of the methods described in the first aspect.
[0034] In a sixth aspect, the present application provides a computer program product, comprising a computer program code, and when the computer program code is run on a computer, the computer executes any one of the methods described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 A schematic diagram of a framework of a device provided in an embodiment of the present application;
[0036] Figure 2 A schematic diagram of a flow chart of a method for obtaining a device identifier provided in an embodiment of the present application;
[0037] Figure 3 A schematic diagram of a use purpose and target range information provided in an embodiment of the present application;
[0038] Figure 4 A schematic diagram of a process for determining a target validity period provided in an embodiment of the present application;
[0039] Figure 5 A schematic diagram of a process for generating target device identifier information provided in an embodiment of the present application;
[0040] Figure 6A schematic diagram of interaction between a first device and a cloud provided in an embodiment of the present application;
[0041] Figure 7 A schematic diagram of parameters used in a cloud data analysis process provided in an embodiment of the present application;
[0042] Figure 8 A block diagram of a device identifier acquisition apparatus provided in an embodiment of the present application;
[0043] Fig. 9 A schematic diagram of the structure of a device for obtaining a device identifier provided in an embodiment of the present application;
[0044] Fig.10 A schematic diagram of the structure of another device identifier acquisition apparatus provided in an embodiment of the present application. DETAILED DESCRIPTION
[0045] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0046] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0047] The terms "first" and "second" in the description and claims of the embodiments of the present application are used to distinguish different objects rather than to describe a specific order of objects. For example, a first range and a second range are used to distinguish different ranges rather than to describe a specific order of ranges.
[0048] In the embodiments of the present application, words such as "in an example", "exemplarily", or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described in the embodiments of the present application as "in an example", "exemplarily", or "for example" should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "in an example", "exemplarily", or "for example" is intended to present related concepts in a concrete way.
[0049] In the description of the embodiments of the present application, unless otherwise specified, "at least one" means one or more, and "multiple" means two or more. For example, multiple processing units means two or more processing units; multiple systems means two or more systems.
[0050] In data analysis scenarios such as user behavior analysis, fault analysis, and big data statistics, device identifiers are used to identify device data. Device identifiers can be used to obtain device data and identify sensitive information in the data.
[0051] In the embodiment of the present application, the device may be a terminal device. For example, it may include: an access terminal, a terminal unit, a terminal station, a mobile station, a mobile station, a remote station, a remote terminal, a mobile device, a wireless communication device, a terminal agent, and a terminal device. The access terminal may include: a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), a handheld device with a wireless communication function, a computing device, other processing devices connected to a wireless modem, a vehicle-mounted device, a wearable device, a terminal device in a fifth generation mobile communication technology (5th Generation Mobile Communication Technology, 5G) network or a terminal device in an evolved public land mobile network (PLMN), etc.
[0052] Current device identifiers generally include: International Mobile Equipment Identity (IMEI), Serial Number (SN), Mobile Equipment Identifier (MEID), Unique Device Identifier (UDID), Open Anonymous Device Identifier (OAID), Android Identity document (AndroidId), Open Device Identifier (ODID) and Universally Unique Identifier (UUID).
[0053] Existing device identifiers are usually fixed, and in order to ensure the data security of the device, the device has strict management of the permission to obtain the device identifier. The fixed device identifier will cause the types and quantity of data identified by the device identifier to gradually increase, resulting in a greater possibility of the device being tracked and lower data security of the device, and a greater risk of data leakage of the device. Stricter management of the permission to obtain device identifiers will increase the difficulty of obtaining device identifiers (for example, the difficulty for some applications to obtain device identifiers), thereby affecting the normal progress of some data analysis processes.
[0054] Furthermore, for a distributed device networking scenario that can realize a cross-device application experience, it is necessary to obtain device identifiers of multiple devices in the networking scenario. Data of multiple devices can be obtained based on the device identifiers of multiple devices, resulting in an increase in the amount of data obtained, thereby resulting in lower data security for multiple devices.
[0055] At present, there is an urgent need for a device identifier that ensures data security and reduces the risk of data leakage. In the related technology, the device collects identifiable device identifiers and sends the device identifiers to the server. The server converts the received device identifier into an irreversible device identifier through a preset algorithm and sends the device identifier to the device. The device stores the device identifier in a non-updatable storage area. In this process, the server stores the original device identifier, so the original device identifier can be obtained from the server, thereby obtaining the device data, resulting in lower data security of the device. In addition, the process of generating a device identifier on the server needs to be carried out in a networked environment. When it is in a non-networked environment, the server cannot generate a device identifier, so the applicability of the related technology is poor.
[0056] The present application embodiment provides a method for obtaining a device identifier, which can be applied to the aforementioned device, for example, can be applied to the first device. When the method for obtaining a device identifier is applied to the first device, the method can be executed by different modules in the first device. Figure 1 , Figure 1 A schematic diagram of a device provided in an embodiment of the present application is shown in FIG. Figure 1 The first device and multiple applications (including application A, application B and application C) running on the first device are shown. The first device includes a data acquisition module 101, a device identifier generation module 102 and a device identifier management module 103. Figure 1 This method is described by taking .
[0057] Please refer to Figure 2 , Figure 2 A schematic diagram of a flow chart of a method for obtaining a device identifier provided in an embodiment of the present application, the method is applied to the aforementioned first device (eg Figure 1The method may include the following process:
[0058] 201. Receive a request for obtaining a device identifier, where the request is used to indicate target range information, where the target range information includes a valid duration or a first valid time unit.
[0059] The acquisition request may be sent by a device running any application, for example, sent by a device running any application when a data collection event occurs. The device running any application may be the same as or different from the device receiving the acquisition request, for example, it may be a first device or a second device. When the device running any application is different from the device receiving the acquisition request, the two devices are two devices in a distributed device networking scenario.
[0060] There are many ways to obtain the target range information indicated by the request. In one implementation, the request can directly indicate the purpose of use of the device identifier, which can be determined by the device on which any application is running based on the data collection event. The device determines the purpose of use based on the acquisition request, and then determines the target range information based on the purpose of use. The device can determine the duration required for the data acquisition process based on the purpose of use, and determine the target range information based on the duration. The longer the duration, the longer the effective duration or the larger the effective time unit in the determined target range information; the shorter the duration, the shorter the effective duration or the smaller the effective time unit in the determined target range information.
[0061] The effective time unit may include at least one of the following: year, quarter, month, day, hour, minute, second, etc. The time unit of the effective duration may refer to the effective time unit, which will not be described in detail in the embodiment of the present application.
[0062] The device may pre-store a correspondence between a plurality of usage purposes and a plurality of range information. After receiving an acquisition request, the range information corresponding to the usage purpose indicated by the acquisition request is determined as the target range information based on the correspondence. Optionally, the acquisition request may carry a purpose string, which is used to indicate the usage purpose. The device may store a correspondence between a plurality of purpose strings and a plurality of range information. The types of the purpose strings may include text strings, symbol strings, and binary digital strings, etc. For example, the purpose string may be a multi-digit code, which is not limited in the embodiments of the present application.
[0063] For example, the purpose of use may include at least one of the following: locating single point failures, locating application performance freezes, frame losses, and other failures such as stagnation, counting application user behavior (for example, a newly developed application page needs to count monthly, weekly, or daily active users), and performing loss analysis on some devices (for example, performing battery loss analysis). Single point failures may include application not responding (ANR), crashes, and tombstone problems that have caused reliability issues. Tombstone is a file that is used to record failure information of single point failures. The failure information includes basic information about the application, the address where the crash occurred, and stack call information when the crash occurred. The duration of the data acquisition process required for the four purposes of locating single point failures, locating application performance freezes, frame losses, and other failures, counting application user behavior, and performing loss analysis on some devices gradually increases.
[0064] For example, please refer to Figure 3 , Figure 3 A schematic diagram of a use purpose and target range information provided in an embodiment of the present application, Figure 3 The target range information includes the first effective time unit as an example for explanation. Figure 3 As shown, when a data collection event occurs, the data collection module sends an acquisition request, and then determines the purpose of use according to the acquisition request. Figure 3 The above-mentioned four purposes of use are shown. When the purpose of use is to locate single-point failures, the first effective time unit is determined to be hours; when the purpose of use is to locate application performance freezes, frame losses, and unsmoothness, the first effective time unit is determined to be days; when the purpose of use is to count application user behaviors, the first effective time unit is determined to be months; when the purpose of use is to perform loss analysis on some components, the first effective time unit is determined to be years.
[0065] It should be noted that the aforementioned purpose of use and the corresponding target range information are only exemplary and do not constitute a limitation on the purpose of use and the target range information. As long as the duration of the target range information determined based on the purpose of use is guaranteed, the absolute value of the difference between the duration required for the data acquisition process corresponding to the purpose of use is less than the difference threshold. For example, the target range information includes an effective duration, and the effective duration corresponding to locating a single point fault can be 50 minutes, 1 hour, 2 hours and 15 minutes, etc. The effective duration corresponding to positioning application performance freezes, frame drops, and unsmoothness can be 22 hours, 1 day, 1 day and 2 hours, etc. The effective duration corresponding to statistical application user behavior can be 29 days, 1 month, 2 months and 3 days, etc. The effective duration corresponding to loss analysis of some components can be 300 days, 1 year, 2 years and 18 days, etc.
[0066] In another implementation, the acquisition request may directly indicate the target range information. The device on which any application is running may determine the purpose of use according to the data collection event, and further determine the target range information according to the purpose of use. The process of determining the target range information may refer to the first implementation described above, and the embodiments of the present application will not be described in detail here.
[0067] The process 201 may be performed by Figure 1 The device identifier management module 103 in is executed. Figure 1 Also shown is a second device and an application (including application D) running on the second device. The first device and the second device are both two devices in a distributed device networking scenario. The second device includes a distributed communication module 104, and the distributed communication module 104 establishes a communication connection with the data acquisition module 101 of the first device. The acquisition request can be sent to the device identifier management module 103 by calling the corresponding module in the running device of any application from application A to application D. For example, for any application from application A to application C, when a data acquisition event occurs, the data acquisition module 101 can be called to send an acquisition request to the device identifier management module 103. For application D, when a data acquisition event occurs, the distributed communication module 104 can be called to send indication information to the data acquisition module 101. The data acquisition module 101 determines that a data acquisition event has occurred in application D based on the received indication information, and then sends an acquisition request to the device identifier management module 103 based on the data acquisition event.
[0068] 202. Determine a target validity period based on the receiving time and target range information of the acquisition request, where a time period consisting of the receiving time and the target range information belongs to the target validity period.
[0069] This process can be done by Figure 1 The device identifier management module 103 shown is executed. The receiving time can be an absolute time or a relative time. For example, when the receiving time is an absolute time, it can be the time when the acquisition request is received. When the receiving time is a relative time, it can be the relative time between the time when the acquisition request is received and the reference time, that is, first determine the interval between the time when the acquisition request is received and the reference time, and then take the reference time as the starting time, and determine the time after the interval as the receiving time. For example, the reference time can be 00:00:00 on January 1, 1971. The time zone corresponding to the time when the acquisition request is received can be any one of the 24 time zones, for example, it can be East 8 (i.e. Beijing time).
[0070] The target validity period may include at least one of the following characters: a start time field, an end time field, an effective time unit field, and an effective duration field. When the target validity period includes any time field of the start time field and the end time field and the effective time unit field, the time unit of any time field is the same as the time unit indicated by the effective time unit field.
[0071] Optionally, the target validity period may include a start time field and an end time field, or include any one of the start time field and the end time field, and any one of the valid time unit field and the valid duration field, as long as a time period can be obtained based on the included characters. The embodiments of the present application are not limited to this.
[0072] The start time field is used to indicate the start time of the target validity period, which can be the reception time of the acquisition request. The end time field is used to indicate the end time of the target validity period, and the reception time can be used as the start time, and the end time is obtained according to the reception time and the target range information. The effective time unit indicated by the effective time unit field can be obtained based on the first effective time unit in the target range information, and the effective duration field is used to indicate the duration of the target validity period, which can be greater than or equal to the effective duration in the target range information.
[0073] When the target range information includes the first valid time unit, the content indicated by the valid time unit field can be determined, and then the target validity period including any time field of the start time field and the end time field and the valid time unit field can be determined.
[0074] Optionally, the first validity period and / or the second validity period can be determined as the target validity period based on the receiving time and the first effective time unit. Both the first validity period and the second validity period include any time field in the start time field and the end time field and the effective time unit field. Any time field and the effective time unit field in the first validity period indicate the receiving time and the first effective time unit respectively. Any time field and the effective time unit field in the second validity period indicate the neighboring time of the receiving time and the first effective time unit respectively, or indicate the receiving time and the second effective time unit respectively. The time interval between the neighboring time and the receiving time is at least one first effective time unit, and the second effective time unit is longer than the first effective time unit. The time unit of the receiving time in the first validity period and the time unit of the neighboring time in the second validity period are the same as the first effective time unit, and the time unit of the receiving time in the second validity period is the same as the second effective time unit. In the embodiment of the present application, the number of the second validity period can be one or more.
[0075] For example, assuming that the first valid time unit is a day and the receiving time is 15:00 on December 18, 2021, then in the first validity period, the valid time unit field indicates the day, and the any time field indicates December 18, 2021, that is, the first validity period is December 18, 2021. In one example, the any time field and the valid time unit field in the second validity period respectively indicate the neighboring time of the receiving time and the first valid time unit. Then in the second validity period, the valid time unit field indicates the day, and the any time field indicates December 16, 2021, December 17, 2021, December 19, 2021, or December 20, 2021, etc., that is, the second validity period is December 16, 2021, December 17, 2021, December 19, 2021, or December 20, 2021. In another example, any time field and the valid time unit field in the second validity period indicate the receiving time and the second valid time unit, respectively. The second valid time unit is longer than the first valid time unit, and the second valid time unit may be a week, a month, a quarter, or a year, etc. Accordingly, in the second validity period, any time field indicates 51 weeks in 2021, December 2021, the fourth quarter of 2021, or the year 2021, etc., that is, the second validity period is 51 weeks in 2021, December 2021, the fourth quarter of 2021, or the year 2021, etc.
[0076] Optionally, the first validity period can be determined based on the reception time and the first validity time unit. When the remaining validity period in the first validity period is greater than the duration threshold, the first validity period is determined to be the target validity period. When the remaining validity period is less than or equal to the duration threshold, the second validity period is determined based on the reception time and the first validity time unit, and the first validity period and the second validity period are determined to be the target validity periods. The remaining validity period is the difference between the expiration time of the first validity period and the reception time.
[0077] When the remaining effective duration of the first validity period is less than or equal to the duration threshold, the duration of the data acquisition process will be too short, and the amount and type of data acquired will be small, which will result in the failure to achieve the purpose of use. Therefore, when the remaining effective duration of the first validity period is reached, the second validity period can be determined, and the remaining effective duration of the target validity period can be increased, so that a sufficient amount and type of data can be acquired, ensuring the realization of the purpose of use. The time unit of the duration threshold can be shorter than or equal to the time unit indicated by the effective time unit field in the first validity period.
[0078] For example, please refer to Figure 4 , Figure 4 A schematic diagram of a process for determining a target validity period provided in an embodiment of the present application, Figure 4 The data collection module 101 and the device identifier management module 103 are shown, and Figure 4Take the purpose of use as locating a single point fault as an example. The first valid time unit corresponding to locating a single point fault is a day. Assuming that the duration threshold is 0.5 hours, the data acquisition module 101 sends a request to the device identifier management module 103 when the data acquisition behavior occurs, and the receiving time of the request is 23:58 on April 5, 2021. At this time, the first validity period determined is April 5, 2021, and the remaining validity period of the first validity period is 2 minutes. The remaining validity period is less than 0.5 hours, so the second validity period can be determined. Figure 4 Taking any time field and valid time unit field of the second validity period as an example, indicating the adjacent time of the receiving time and the first valid time unit respectively, three second validity periods are shown, which are April 6, 2021, April 7, 2021 and April 8, 2021 respectively.
[0079] It should be noted that for the first validity period or the second validity period, since the time unit of any time field is the same as the valid time unit field, the contents indicated by the start character and the end time field are the same, that is, both indicate the receiving time. For example, for the first validity period, assuming that the receiving time is 15:00 on December 18, 2021, and the first valid time unit is day, the contents indicated by the start time field string and the end time field string are both December 15, 2021.
[0080] For the deadline field of the target validity period, when the target range information includes the effective duration, the time after the effective duration from the reception time can be determined as the deadline indicated by the deadline field. When the target range information includes the first effective time unit, the first effective time unit can be used as the time unit of the reception time to determine the deadline. For example, assuming that the effective duration is 20 days and the reception time is April 1, 2021, April 20, 2021 can be determined as the deadline. Assuming that the first effective unit is a month, the last day of the month in which the reception time is located is determined as the deadline. For example, assuming that the reception time is April 7, 2021, April 30, 2021 is determined as the deadline. Assuming that the first effective unit is a year, the last day of the year in which the reception time is located is determined as the deadline. For example, assuming that the reception time is April 7, 2021, December 31, 2021 is determined as the deadline.
[0081] For the effective duration field of the target validity period, when the target range information includes the effective duration, a duration greater than or equal to the effective duration in the target range information can be determined as the content indicated by the effective duration field. When the target range information includes a first effective time unit, the first effective time unit can be used as the time unit of the receiving time to determine the content indicated by the effective duration field. For example, assuming that the effective duration is 20 days, 20 days, 21 days or 22 days, etc. can be determined as the content indicated by the effective duration field. Assuming that the first effective unit is a month and the receiving time is April 8, 2021, the duration in April 2021 from April 8, 2021 to the last day of April 2021 can be determined as the content indicated by the effective duration field, that is, 23 days are determined as the content indicated by the effective duration field.
[0082] There are multiple formats for each field in the target validity period. For example, taking the target validity period including any time field in the start time field or the end time field and the valid time unit field, assuming that the time indicated by any time field is 15:00 on April 1, 2021, and the valid time unit field is year, month, week, day or hour, accordingly, the content indicated by any time field can be expressed as 2021, 202104, 202114, 20210401 or 2021040115.
[0083] 203. Obtain a target device identifier corresponding to a target validity period. The target device identifier is valid within the target validity period. Different device identifiers correspond to different validity periods. The target device identifier is used to collect data within the target validity period.
[0084] The device may obtain target device identifier information according to the target validity period, and the target device identifier information includes a field for indicating a target device identifier (also referred to as a target UDID) and a field for indicating the target validity period. Optionally, the target device identifier information may also include a time zone field, and the time zone field is used to indicate the time zone corresponding to the time indicated by any time field included in the target validity period.
[0085] There are two ways to obtain the target device identifier. The first way is to directly generate the target device identifier according to the target validity period. The second way is to obtain the target device identifier from an existing device identifier. For example, a device identifier whose corresponding validity period includes the target validity period among multiple device identifiers can be determined as the target device identifier. Multiple device identifiers correspond to validity periods respectively, and any two device identifiers correspond to different validity periods.
[0086] The device can determine whether there is a corresponding device identifier with a validity period including the target validity period according to the target validity period, and this process can be performed by the device identifier management module 103. When there is a device identifier including the target validity period, the corresponding device identifier with a validity period including the target validity period can be obtained as the target device identifier, and this process can be performed by the device identifier management module 103. The target device identifier can also be regenerated, and the device identifier management module 103 can call the device identifier generation module 102 to regenerate the target device identifier. When there is no device identifier including the target validity period, the target device identifier can be directly generated. The device identifier management module 103 can call the device identifier generation module 102 to directly generate the target device identifier.
[0087] For the process of the device generating a target device identifier, the device can obtain the hardware information of the device, and then generate a target device identifier based on the hardware information and the target validity period, and then generate the target device identifier information so that the target device identifier and the target validity period correspond. Optionally, the device can use a hash algorithm to hash the hardware information and some or all fields in the target validity period to obtain the target device identifier. The hash algorithm may include a hash secure hash algorithm (Secure Hash Algorithm, sha), such as hash sha256. The hardware information includes at least one of the following: SN, Embedded Multi Media Card ID (Embedded Multi Media Card ID, emmcid), Wireless Fidelity Media Access Control Address (Wireless Fidelity Media Access Control Address, WifiMac), Bluetooth Mac (BluetoothMac).
[0088] For example, please refer to Figure 5 , Figure 5 A schematic diagram of a process for generating target device identifier information provided in an embodiment of the present application. Figure 5 Take the target validity period including the start time field and the valid time unit field, and the start time field indicates 20210401 as an example. The device obtains the target device identifier by hashing sha256 with SN, emmcid, WifiMac, BluetoothMac, and 20210401. Then, the target device identifier, time zone field, start time field (20210401) and valid time unit field are concatenated to obtain the target device identifier information.
[0089] For the process of a device obtaining a target device identifier from an existing device identifier, the device can pre-generate a device identifier corresponding to multiple validity periods. The process can refer to the above description, and the embodiments of the present application are not described in detail here. When the device pre-generates a device identifier corresponding to multiple validity periods, the device can determine the target validity period by itself. Assuming that the target validity period includes a valid time unit field, the device can determine multiple start times and multiple valid time units corresponding to each start time, and then determine multiple target validity periods, each target validity period including a start time among the multiple start times and a valid time unit corresponding to the one start time.
[0090] It should be noted that when the target validity period includes at least one of the following fields: a start time field, an end time field, and a valid duration field, if the validity period corresponding to the existing device identifier only includes a period of time in the target validity period, the device can regenerate a target device identifier corresponding to the target validity period, or it can generate a target device identifier corresponding to a time other than a period of time in the target validity period. The embodiments of the present application do not limit this.
[0091] After obtaining the target device identifier, the device can send the target device identifier information to the application that sends the acquisition request. The device running the application that sends the acquisition request can be the first device or the second device, that is, the application running on the second device in the embodiment of the present application can also request the target device identifier of the first device.
[0092] When the target validity period includes a valid time unit field, the target device identifier may include an hourly valid device identifier, a daily valid device identifier, a monthly valid device identifier, and a yearly valid device identifier. As described in the aforementioned process 202, different target device identifiers are sent for different purposes of use. Figure 3 As shown, Figure 3 The target device identifiers corresponding to different usage purposes are also shown. Among them, the target device identifier corresponding to the time is effective for locating single-point faults, the target device identifier corresponding to the day is effective for locating application performance freezes, frame drops, and unsmoothness, the target device identifier corresponding to the month is effective for statistics on application user behavior, and the target device identifier corresponding to the year is effective for loss analysis of some devices.
[0093] In addition, when the target validity period includes a valid time unit field and the number of target validity periods is multiple, such as the first validity period and the second validity period, the number of corresponding target device identifiers is also multiple. Figure 4 As shown, Figure 4The target device identifiers UDID0 to UDID3 corresponding to the first validity period and the three second validity periods are also shown. UDID0 to UDID3 are respectively the valid device identifiers on April 5, 2021, the valid device identifiers on April 6, 2021, the valid device identifiers on April 7, 2021, and the valid device identifiers on April 8, 2021. Therefore, in the embodiment of the present application, if the remaining valid time of the target device identifier corresponding to the current first validity period is too short, the device identifier corresponding to the second validity period can be obtained to ensure that the purpose of use can be achieved.
[0094] When the target validity period includes a valid time unit field, the device identifier management module 103 can classify and manage the generated device identifiers according to various time units, so that it can quickly determine whether there is a corresponding device identifier whose validity period includes the target validity period, thereby improving the efficiency of obtaining the target device identifier.
[0095] In the embodiment of the present application, the first device may also report the acquired target device identifier information to the cloud, and the cloud parses the target device identifier information to obtain the content indicated by each field in the target device identifier information, and stores the parsed content. The cloud may obtain the device data according to the content indicated by each field in the stored target device identifier information, and analyze the device data.
[0096] For example, please refer to Figure 6 , Figure 6 A schematic diagram of interaction between a first device and the cloud provided in an embodiment of the present application. Figure 6 The first device and the cloud are shown, and the cloud includes a server, a storage module, and a data analysis module. The first device sends the target device identifier information to the cloud, and the server parses the target device identifier information to obtain the content indicated by each field in the target device identifier information, and stores the content indicated by each field in the storage module. The data analysis module can then use the content indicated by each field in the target device identifier information stored in the storage module to perform data analysis. By way of example, the data analysis may include: battery aging analysis, reliability analysis, and user behavior analysis.
[0097] The following is an explanation of the data analysis process in the cloud using a data analysis scenario as an example. The data analysis scenario is a cloud analysis of the delay of screen projection from the first device (e.g., a mobile phone) to the second device (e.g., a TV) in April 2021. The first device can obtain and send the target device identifiers corresponding to April 2021 of the first device and the second device to the cloud, and the second device can obtain and send the target device identifiers corresponding to April 2021 of the second device to the cloud. Based on the target device identifiers corresponding to April 2021 of the first device and the second device sent by the first device, the cloud associates the target device identifiers corresponding to April 2021 of the first device and the second device to determine the projection object of the first device. During the projection process in April 2021, the first device sends a projection request to the second device and simultaneously sends a projection event to the cloud. The second device receives the projection request and simultaneously sends a projection event to the cloud. After that, the first device sends a projection data stream to the second device, and the second device reads the projection data stream and simultaneously sends a read data stream event to the cloud.
[0098] It should be noted that the second device will also send target device identifiers corresponding to other times and events that occurred at other times to the cloud. For example, the second device can obtain and send to the cloud the target device identifier corresponding to May 2021 of the second device. When receiving an instruction to open an application (such as a video application) in May 2021, the application is opened and an event of opening an application is sent to the cloud at the same time.
[0099] In this way, when the cloud analyzes the delay of the first device casting the screen to the second device in April 2021 according to the target device identifiers corresponding to April 2021 of the first device and the second device, the target device identifier corresponding to April 2021 will only identify the data corresponding to the casting process in April 2021, and the data of devices at other times will not be identified (for example, the data corresponding to the opening of a certain application event in May 2021), and the cloud will not analyze the data of the first device and the second device outside of April 2021. This reduces the amount and type of data in the data analysis process while improving the data security and privacy of the device.
[0100] For example, please refer to Figure 7 , Figure 7 A schematic diagram of parameters used in a cloud data analysis process provided in an embodiment of the present application, such as Figure 7 As shown, the parameters include the relevant parameters of the first device and the relevant parameters of the second device. The relevant parameters include: device type, target device identifier, target validity start time, target validity end time, time zone, effective time unit of the target validity period, and event names, event occurrence time and event parameters of various events. Figure 7The target device identifiers corresponding to the two devices in April 2021 and the event name, event occurrence time and event parameters of the screen projection process that occurred in April 2021 are shown. Figure 7 Also shown are the target device identifier corresponding to May 2021 of the second device and the event name, event occurrence time and event parameters of opening a certain application that occurred in May 2021.
[0101] In summary, the device identifier acquisition method provided in the embodiment of the present application can determine the target validity period, and then obtain the target device identifier corresponding to the target validity period. The target device identifier is valid within the target validity period, and different device identifiers correspond to different validity periods. The target device identifier is used to collect data within the target validity period. The target device identifier is only valid within the target validity period, so the device identifiers corresponding to different validity periods are different, so that after the application obtains the target device identifier, it can only collect data of devices within the target validity period, reducing the types and quantity of data identified by the target device identifier, thereby improving the data security and privacy of the device.
[0102] In addition, the validity period can be determined based on the acquisition request sent by the received application. The acquisition request can directly indicate the purpose of use of the device identifier or indicate the target range information, and the target range information includes the effective duration or the first effective time unit. In this way, the application running on the device needs to determine the purpose of use of the device data or the target range information before collecting the device data, so as to obtain the target device identifier corresponding to the corresponding target validity period. This avoids the situation where malicious applications collect and leak device data.
[0103] The sequence of the methods provided in the embodiments of the present application can be adjusted appropriately, and the processes can also be increased or decreased accordingly according to the circumstances. For example, the aforementioned processes 101 and 102 may not be executed, but the target validity period can be directly determined. Any technician familiar with the technical field can easily think of a method of variation within the technical scope disclosed in the present application, which should be included in the protection scope of the present application, and the embodiments of the present application do not limit this.
[0104] The above mainly introduces the device identifier acquisition method provided in the embodiment of the present application from the perspective of the device. It is understandable that in order to realize the above functions, the device includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0105] The embodiment of the present application can divide the functional modules of the device according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0106] Figure 8 A block diagram of a device identifier acquisition device provided in an embodiment of the present application, in the case of dividing each functional module according to each function, the device identifier acquisition device 300 may include a transceiver module 301 and a processing module 302. Exemplarily, the device identifier acquisition device may be a device (such as a terminal device), or a chip therein or other combined devices, components, etc. having the functions of the above-mentioned device identifier acquisition device. When the device identifier acquisition device is a device, the transceiver module 301 may be a transceiver, which may include an antenna and a radio frequency circuit, etc.; the processing module 302 may be a processor (or a processing circuit), such as a baseband processor, which may include one or more central processing units (CPUs). When the device identifier acquisition device is a device or component having the above-mentioned functions, the transceiver module 301 may be a radio frequency unit; the processing module 302 may be a processor (or a processing circuit), such as a baseband processor. When the device identifier acquisition device 300 is a chip system, the transceiver module 301 may be an input and output interface of a chip (e.g., a baseband chip); the processing module 302 may be a processor (or a processing circuit) of the chip system, which may include one or more central processing units. It should be understood that the transceiver module 301 in the embodiment of the present application may be implemented by a transceiver or a transceiver-related circuit component; the processing module 302 may be implemented by a processor or a processor-related circuit component (or, referred to as a processing circuit).
[0107] For example, when the device identifier acquisition apparatus 300 is a device or a chip or a functional unit of a device, the transceiver module 301 can be used to execute Figure 2 All the transceiver operations performed by the device in the embodiment shown, and / or other processes used to support the technology described herein; the processing module 302 can be used to perform Figure 2 All operations except for the transceiver operations performed by the device in the illustrated embodiment, and / or other processes for supporting the technology described herein.
[0108] The transceiver module 301 may include a sending module and / or a receiving module, each of which is used to execute Figure 2 In the embodiment shown, the sending and receiving operations performed by the device, in one example, the device identifier acquisition device includes:
[0109] A processing module for determining a target validity period;
[0110] The processing module is further used to obtain a target device identifier corresponding to the target validity period. The target device identifier is valid within the target validity period, and different device identifiers correspond to different validity periods. The target device identifier is used to collect data within the target validity period.
[0111] In combination with the above solution, the target validity period includes at least one of the following characters: a start time field, an end time field, a valid time unit field, and a valid duration field.
[0112] In combination with the above scheme, the target validity period includes any time field of the start time field and the end time field and the valid time unit field, and the time unit of any time field is the same as the time unit indicated by the valid time unit field.
[0113] In combination with the above scheme, the device also includes: a transceiver module, used to receive a request for obtaining a device identifier, the acquisition request is used to indicate target range information, and the target range information includes a valid duration or a first valid time unit; the processing module is specifically used to determine the target validity period based on the reception time of the acquisition request and the target range information, and the time period composed of the reception time and the target range information belongs to the target validity period.
[0114] In combination with the above scheme, the target range information includes the first valid time unit, and the processing module is specifically used to determine the first validity period and / or the second validity period as the target validity period based on the receiving time and the first valid time unit, and the first validity period and the second validity period both include any time field in the start time field and the end time field and the valid time unit field; the any time field and the valid time unit field in the first validity period respectively indicate the receiving time and the first valid time unit; the any time field and the valid time unit field in the second validity period respectively indicate the neighboring time of the receiving time and the first valid time unit, or respectively indicate the receiving time and the second valid time unit; the time interval between the neighboring time and the receiving time is at least one of the first valid time units, the second valid time unit is longer than the first valid time unit, the time unit of the receiving time in the first validity period and the time unit of the neighboring time in the second validity period are the same as the first valid time unit, and the time unit of the receiving time in the second validity period is the same as the second valid time unit.
[0115] In combination with the above scheme, the processing module is specifically used to determine the first validity period based on the receiving time and the first valid time unit; when the remaining valid time in the first validity period is greater than the time threshold, the first validity period is determined to be the target validity period, and the remaining valid time is the difference between the expiration time of the first validity period and the receiving time; when the remaining valid time is less than or equal to the time threshold, the second validity period is determined based on the receiving time and the first valid time unit, and the first validity period and the second validity period are determined to be the target validity period.
[0116] In combination with the above solution, the processing module is specifically configured to generate the target device identifier according to the target validity period.
[0117] In combination with the above solution, the processing module is specifically used to determine the device identifier whose corresponding validity period among multiple device identifiers includes the target validity period as the target device identifier, the multiple device identifiers respectively correspond to validity periods, and the validity periods corresponding to any two device identifiers are different.
[0118] Fig. 9 This is a schematic diagram of the structure of a device identifier acquisition device provided in an embodiment of the present application. The device identifier acquisition device 400 may be a chip or a functional module in a device. Fig. 9 As shown, the device 400 for obtaining a device identifier includes a processor 401 , a transceiver 402 and a communication line 403 .
[0119] The processor 401 is used to execute the following Figure 2 In any step performed by the device in the method embodiment shown, when performing signal / data transmission such as acquisition, the transceiver 402 and the communication line 403 can be selectively called to complete the corresponding operation.
[0120] Furthermore, the device identifier acquisition apparatus 400 may further include a memory 404 . The processor 401 , the memory 404 and the transceiver 402 may be connected via a communication line 403 .
[0121] The processor 401 is a CPU, a general-purpose processor network processor (NP), a digital signal processor (DSP), a microprocessor, a microcontroller, a programmable logic device (PLD), or any combination thereof. The processor 401 may also be other devices with processing functions, such as circuits, devices, or software modules, without limitation.
[0122] The transceiver 402 is used to communicate with other devices or other communication networks, such as Ethernet, radio access network (RAN), wireless local area network (WLAN), etc. The transceiver 402 can be a module, a circuit, a transceiver or any device capable of achieving communication.
[0123] The transceiver 402 is mainly used for sending and receiving signals / data, and may include a transmitter and a receiver for sending and receiving signals / data respectively; operations other than sending and receiving signals / data are implemented by the processor, such as information processing, calculation, etc.
[0124] The communication line 403 is used to transmit information between the components included in the device identifier acquisition apparatus 400.
[0125] In one design, the processor may be considered as the logic circuit and the transceiver may be considered as the interface circuit.
[0126] The memory 404 is used to store instructions, where the instructions may be computer programs.
[0127] The memory 404 may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. The nonvolatile memory may be a read-only memory (ROM), a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable programmable ROM (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous DRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchlink DRAM (SLDRAM), and direct rambus RAM (DRRAM). The memory 404 may also be a compact disc read-only memory (CD-ROM) or other optical disk storage, optical disk storage (including compact disc, laser disc, optical disk, digital versatile disc, Blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, etc. It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0128] It should be noted that the memory 404 can exist independently of the processor 401, or can be integrated with the processor 401. The memory 404 can be used to store instructions or program codes or some data, etc. The memory 404 can be located in the device identifier acquisition device 400, or can be located outside the device identifier acquisition device 400, without limitation. The processor 401 is used to execute the instructions stored in the memory 404 to implement the method provided in the above embodiment of the present application.
[0129] In one example, the processor 401 may include one or more CPUs, such as Fig. 9 CPU0 and CPU1 in.
[0130] As an optional implementation, the device identifier obtaining apparatus 400 includes multiple processors, for example, Fig. 9 In addition to the processor 401, a processor 407 may also be included.
[0131] As an optional implementation, the device identifier acquisition apparatus 400 further includes an output device 405 and an input device 406. Exemplarily, the input device 406 is a keyboard, a mouse, a microphone, a joystick, and the output device 405 is a display screen, a speaker, and the like.
[0132] It should be noted that the device identifier acquisition device 400 may be a terminal device, a network device, a relay device, an embedded device, a chip system or a Fig. 9 In addition, Fig. 9 The composition structure shown in the figure does not constitute a limitation on the device identifier acquisition device 400, except Fig. 9 In addition to the components shown in the figure, the device identifier acquisition device 400 may include Fig. 9 More or fewer components may be shown, or certain components may be combined, or the components may be arranged differently.
[0133] The processor and transceiver described in the present application can be implemented in an integrated circuit (IC), an analog IC, a radio frequency integrated circuit, a mixed signal IC, an application specific integrated circuit (ASIC), a printed circuit board (PCB), an electronic device, etc. The processor and transceiver can also be manufactured using various IC process technologies, such as complementary metal oxide semiconductor (CMOS), N-type metal oxide semiconductor (NMOS), P-type metal oxide semiconductor (positive channel metal oxide semiconductor, PMOS), bipolar junction transistor (BJT), bipolar CMOS (BiCMOS), silicon germanium (SiGe), gallium arsenide (GaAs), etc.
[0134] It should be noted that the device identifier acquisition device 400 can be any type of handheld device or fixed device, such as a laptop or notebook computer, a mobile phone, a smart phone, a tablet or tablet computer, a camera, a desktop computer, a set-top box, a television, a display device, a digital media player, a video game console, a video streaming device (for example, a content service server or a content distribution server), a broadcast receiving device, a broadcast transmitting device, and a monitoring device, etc., and may not use or use any type of operating system. The device identifier acquisition device 400 may also be a device in a cloud computing scenario, such as a virtual machine in a cloud computing scenario. In some cases, the device identifier acquisition device 400 may be equipped with components for wireless communication. Therefore, the device identifier acquisition device 400 may be a wireless communication device. Or there is Fig. 9 In addition, Fig. 9 The composition structure shown in the figure does not constitute a limitation on the device identifier acquisition device 400, except Fig. 9 In addition to the components shown in the figure, the device identifier acquisition device 400 may include Fig. 9 More or fewer components may be shown, or certain components may be combined, or the components may be arranged differently.
[0135] The device identifier acquisition device 400 may also be a chip system, which may be composed of a chip or may include a chip and other discrete devices. In addition, the actions, terms, etc. involved in the various embodiments of the present application may refer to each other without limitation. The message name or parameter name in the message exchanged between the various devices in the embodiments of the present application is only an example, and other names may be used in the specific implementation without limitation.
[0136] As another possible way to achieve this, Figure 8 The transceiver module 301 in the Fig. 9 The processing module 302 may be replaced by the transceiver 402 in the embodiment, and the transceiver 402 may integrate the functions of the transceiver module 301; the processing module 302 may be replaced by the processor 407, and the processor 407 may integrate the functions of the processing module 302. Further, Figure 8 The device identifier acquisition device 300 shown may also include a memory (not shown in the figure). When the transceiver module 301 is replaced by the transceiver 402, and the processing module 302 is replaced by the processor 407, Figure 8 The device identifier obtaining apparatus 300 shown may be Fig. 9 The device identifier obtaining apparatus 400 is shown.
[0137] Fig.10 This is a schematic diagram of the structure of another device identifier acquisition device provided in an embodiment of the present application. The device identifier acquisition device can be applied to the scenario shown in the above method embodiment. For the convenience of explanation, Fig.10Only the main components of the device identifier acquisition device are shown, including a processor, a memory, a control circuit, and an input-output device. The processor is mainly used to process the communication protocol and communication data, execute the software program, and process the data of the software program. The memory is mainly used to store the software program and data. The control circuit is mainly used for power supply and transmission of various electrical signals. The input-output device is mainly used to receive data input by the user and output data to the user.
[0138] When the device identifier acquisition device is a device, the control circuit is a mainboard, the memory includes a hard disk, RAM, ROM and other media with storage functions, the processor may include a baseband processor and a central processing unit, the baseband processor is mainly used to process the communication protocol and communication data, the central processing unit is mainly used to control the entire network device, execute software programs, and process the data of software programs, and the input and output devices include a display screen, a keyboard and a mouse, etc.; the control circuit may further include or be connected to a transceiver circuit or a transceiver, such as a network cable interface, etc., for sending or receiving data or signals, such as data transmission and communication with other devices. Furthermore, it may also include an antenna for sending and receiving wireless signals, and for data / signal transmission with other devices.
[0139] According to the method provided in the embodiments of the present application, the present application also provides a computer program product, which includes a computer program code. When the computer program code runs on a computer, the computer executes any of the methods described in the embodiments of the present application.
[0140] The embodiment of the present application also provides a computer-readable storage medium. All or part of the processes in the above method embodiments can be executed by a computer or a device with information processing capabilities to control the relevant hardware to complete, and the computer program or the group of instructions can be stored in the above computer-readable storage medium. When the computer program or the group of instructions is executed, it may include the processes of the above method embodiments. The computer-readable storage medium can be an internal storage unit of the device of any of the above embodiments, such as a hard disk or memory of the device. The above computer-readable storage medium can also be an external storage device of the above device, such as a plug-in hard disk equipped on the above device, a smart memory card (smart media card, SMC), a secure digital (secure digital, SD) card, a flash card (flash card), etc. Further, the above computer-readable storage medium can also include both the internal storage unit of the above device and an external storage device. The above computer-readable storage medium is used to store the above computer program or instructions and other programs and data required by the above device. The above computer-readable storage medium can also be used to temporarily store data that has been output or is to be output.
[0141] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0142] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0143] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0144] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0145] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0146] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.
[0147] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for obtaining a device identifier, characterized in that: Applied to a first device, the method includes: receiving a request for obtaining a device identifier, the request for obtaining the device identifier being used to indicate target range information, the target range information including a valid duration or a first valid time unit; Determine a target validity period, where the target validity period includes at least one of the following characters: a start time field, an end time field, a valid time unit field, and a valid duration field; Acquire a target device identifier of the first device corresponding to the target validity period, the target device identifier is valid within the target validity period, different target validity periods correspond to different target device identifiers, and the target device identifier is used to collect data within the target validity period; Wherein, determining the target validity period includes: Determine the target validity period based on the reception time of the acquisition request and the target range information, the time period consisting of the reception time and the target range information belonging to the target validity period; The target range information includes the first valid time unit, and determining the target validity period based on the receiving time of the acquisition request and the target range information includes: Based on the receiving time and the first valid time unit, determine a first validity period and / or a second validity period as the target validity period, wherein the first validity period and the second validity period both include any time field of the start time field and the end time field and a valid time unit field; The any time field and the valid time unit field in the first validity period respectively indicate the receiving time and the first valid time unit; The any time field and the valid time unit field in the second validity period respectively indicate the neighboring time of the receiving time and the first valid time unit, or respectively indicate the receiving time and the second valid time unit; The time interval between the neighboring time and the receiving time is at least one of the first valid time units, the second valid time unit is longer than the first valid time unit, the time unit of the receiving time in the first valid period and the time unit of the neighboring time in the second valid period are the same as the first valid time unit, the time unit of the receiving time in the second valid period is the same as the second valid time unit, and the device identifiers corresponding to the first valid period and the second valid period are different.
2. The method according to claim 1, characterized in that The target validity period includes any one of the start time field and the end time field and the valid time unit field, and the time unit of any one of the time fields is the same as the time unit indicated by the valid time unit field.
3. The method according to claim 1, characterized in that The determining, based on the receiving time and the first valid time unit, the first valid period and / or the second valid period as the target valid period includes: determining the first validity period based on the receiving time and the first valid time unit; When the remaining effective duration in the first validity period is greater than the duration threshold, determining the first validity period as the target validity period, and the remaining effective duration is the difference between the expiration time of the first validity period and the receiving time; When the remaining effective duration is less than or equal to the duration threshold, the second effective period is determined based on the reception time and the first effective time unit, and the first effective period and the second effective period are determined as the target effective period.
4. The method according to any one of claims 1 to 3, characterized in that: The acquiring of the target device identifier corresponding to the target validity period includes: The target device identifier is generated according to the target validity period.
5. The method according to any one of claims 1 to 3, characterized in that: The acquiring of the target device identifier corresponding to the target validity period includes: The target device identifier is determined as the target device identifier, wherein the multiple device identifiers correspond to valid periods respectively, and any two device identifiers correspond to different valid periods.
6. A device for obtaining a device identifier, characterized in that: Applied to a first device, the apparatus comprises: A transceiver module, used for receiving a request for obtaining a device identifier, wherein the request is used for indicating target range information, wherein the target range information includes a valid duration or a first valid time unit; A processing module, configured to determine a target validity period, wherein the target validity period includes at least one of the following characters: a start time field, an end time field, a valid time unit field, and a valid duration field; The processing module is further used to obtain a target device identifier of the first device corresponding to the target validity period, the target device identifier is valid within the target validity period, and the target device identifiers corresponding to different target validity periods are different, and the target device identifier is used to collect data within the target validity period; The processing module is specifically configured to determine the target validity period based on the reception time of the acquisition request and the target range information, wherein a time period consisting of the reception time and the target range information belongs to the target validity period; The target range information includes the first effective time unit, and the processing module is specifically used to determine the first effective period and / or the second effective period as the target effective period based on the receiving time and the first effective time unit, the first effective period and the second effective period both include any time field in the start time field and the end time field and the effective time unit field; the any time field and the effective time unit field in the first effective period respectively indicate the receiving time and the first effective time unit; the any time field and the effective time unit field in the second effective period respectively indicate the neighboring time of the receiving time and the first effective time unit, or respectively indicate the receiving time and the second effective time unit; the time interval between the neighboring time and the receiving time is at least one of the first effective time units, the second effective time unit is longer than the first effective time unit, the time unit of the receiving time in the first effective period and the time unit of the neighboring time in the second effective period are the same as the first effective time unit, the time unit of the receiving time in the second effective period is the same as the second effective time unit, and the device identifiers corresponding to the first effective period and the second effective period are different.
7. The device according to claim 6, characterized in that The target validity period includes any one of the start time field and the end time field and the valid time unit field, and the time unit of any one of the time fields is the same as the time unit indicated by the valid time unit field.
8. The device according to claim 6, characterized in that The processing module is specifically configured to determine the first validity period based on the receiving time and the first valid time unit; when the remaining valid time in the first validity period is greater than a time threshold, determine that the first validity period is the target validity period, and the remaining valid time is the difference between the expiration time of the first validity period and the receiving time; When the remaining effective duration is less than or equal to the duration threshold, the second effective period is determined based on the reception time and the first effective time unit, and the first effective period and the second effective period are determined as the target effective period.
9. The device according to any one of claims 6 to 8, characterized in that The processing module is specifically configured to generate the target device identifier according to the target validity period.
10. The device according to any one of claims 6 to 8, characterized in that The processing module is specifically used to determine a device identifier whose corresponding validity period includes the target validity period among multiple device identifiers as the target device identifier, the multiple device identifiers respectively correspond to validity periods, and any two device identifiers correspond to different validity periods.
11. A device for obtaining a device identifier, characterized in that: include: one or more processors; a memory for storing one or more computer programs or instructions; When the one or more computer programs or instructions are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that: The method comprises a computer program or instructions, which, when executed on a computer, causes the computer to perform the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Account login method, account login equipment and server
CN107026832A