CN113282968B - Method, device, equipment and storage medium for judging serial numbers of vehicle-mounted equipment - Google Patents

Method, device, equipment and storage medium for judging serial numbers of vehicle-mounted equipment Download PDF

Info

Publication number
CN113282968B
CN113282968B CN202110637554.2A CN202110637554A CN113282968B CN 113282968 B CN113282968 B CN 113282968B CN 202110637554 A CN202110637554 A CN 202110637554A CN 113282968 B CN113282968 B CN 113282968B
Authority
CN
China
Prior art keywords
android
hardware information
time
judging
history
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110637554.2A
Other languages
Chinese (zh)
Other versions
CN113282968A (en
Inventor
宋春光
皮碧虹
杨德文
龙丁奋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tongxingzhe Technology Co ltd
Original Assignee
Shenzhen Tongxingzhe Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Tongxingzhe Technology Co ltd filed Critical Shenzhen Tongxingzhe Technology Co ltd
Priority to CN202110637554.2A priority Critical patent/CN113282968B/en
Publication of CN113282968A publication Critical patent/CN113282968A/en
Application granted granted Critical
Publication of CN113282968B publication Critical patent/CN113282968B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/71Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information
    • G06F21/73Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information by creating or determining hardware identification, e.g. serial numbers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Mathematical Physics (AREA)
  • Computer Security & Cryptography (AREA)
  • Time Recorders, Dirve Recorders, Access Control (AREA)

Abstract

The invention relates to the field of vehicle-mounted equipment, and discloses a method, a device, equipment and a storage medium for judging serial numbers of vehicle-mounted equipment. The method comprises the following steps: acquiring hardware information and Android ID of preset vehicle-mounted equipment; judging whether the hardware information and the Android ID exist in a preset history list or not; if the non-uniformity exists, adding the non-existing data and the current moment into a history list; if the hardware information and the Android ID exist, updating the last recording time of the hardware information and the Android ID in the history record table based on the current time; reading first recording time and last recording time of the Android ID set corresponding to hardware information in a history record table, and judging whether time period intersection exists between the first recording time and the last recording time of the Android ID set; if the time period crossing exists, determining that the serial number condition of the hardware information exists.

Description

Method, device, equipment and storage medium for judging serial numbers of vehicle-mounted equipment
Technical Field
The present invention relates to the field of vehicle-mounted devices, and in particular, to a method, an apparatus, a device, and a storage medium for determining a serial number of a vehicle-mounted device.
Background
At present, when hardware information is used as a unique code, the device can randomly write the hardware information, so that two devices use the same hardware information at the same time, and the serial number problem occurs.
Android ID is a string of randomly generated devices by the Android system, which records a fixed value through which the lifetime of the device can be known. But the value will change after the device is restored to factory settings or swiped, and the value will be different from device to device. Therefore, in the case where such device hardware and Android ID cannot be in one-to-one correspondence, a technique capable of judging whether or not the in-vehicle device has a serial number is required.
Disclosure of Invention
The invention mainly aims to solve the technical problem that whether serial numbers occur or not cannot be known after the Android ID and hardware information are restored to factory settings or the equipment is refreshed.
The first aspect of the present invention provides a method for determining a serial number of a vehicle-mounted device, including the steps of:
acquiring hardware information and Android ID of preset vehicle-mounted equipment;
judging whether the hardware information and the Android ID exist in a preset history list or not;
if the non-uniformity exists, adding the non-existing data and the current moment into the history list;
if the Android ID exists, updating the hardware information in the history record table and the last record time of the Android ID based on the current time;
reading first recording time and last recording time of an Android ID set corresponding to hardware information in the history record table, and judging whether time slots of the first recording time and the last recording time of the Android ID set are crossed or not;
if the time period crossing exists, determining that the serial number condition of the hardware information exists.
Optionally, in a first implementation manner of the first aspect of the present invention, the determining whether the hardware information and the Android ID both exist in a preset history table includes:
judging whether the hardware information exists in a preset history list or not;
if the hardware information does not exist in the history list, judging that the hardware information and the Android ID are not uniformly existing in the history list;
if the hardware information exists in the history list, judging whether the Android ID exists in the history list or not;
if the Android ID does not exist in the history list, judging that the hardware information and the Android ID are not uniformly existing in the history list;
and if the Android ID exists in the history list, judging that the hardware information and the Android ID exist in the history list.
Optionally, in a second implementation manner of the first aspect of the present invention, the adding the non-existing data and the current time to the history table includes:
if the hardware information does not exist in the history table, after judging that the hardware information and the Android ID are unevenly exist in the history table, adding the hardware information and the current time into the history table;
judging whether the Android ID exists in the history list or not;
and if the Android ID does not exist in the history list, adding the Android ID and the current time to the history list.
Optionally, in a third implementation manner of the first aspect of the present invention, the adding the non-existing data and the current time to the history table further includes:
and if the Android ID does not exist in the history list, adding the Android ID and the current time to the history list after judging that the hardware information and the Android ID are not uniformly exist in the history list.
Optionally, in a fourth implementation form of the first aspect of the invention,
the judging whether the first recording time and the last recording time of the Android ID set have time period intersection comprises the following steps:
generating time period data of each Android ID based on the first recording time and the last recording time of each Android ID in the Android ID set;
fitting each time period data to a preset time number axis, and judging whether the time number axis has time periods which are fit for more than two times.
The second aspect of the present invention provides a device for determining a serial number of a vehicle-mounted device, where the device for determining a serial number of a vehicle-mounted device includes:
the acquisition module is used for acquiring hardware information and Android ID of the preset vehicle-mounted equipment;
the existence judging module is used for judging whether the hardware information and the Android ID exist in a preset history list or not;
the record adding module is used for adding the non-existing data and the current moment to the history list if the non-uniformity exists;
the record updating module is used for updating the hardware information in the history record table and the last record time of the Android ID based on the current time if the hardware information and the Android ID exist;
the intersection judging module is used for reading the first recording time and the last recording time of the Android ID set corresponding to the hardware information in the history record table and judging whether the first recording time and the last recording time of the Android ID set have time period intersection or not;
and the determining module is used for determining that the serial number condition of the hardware information occurs if the time period is crossed.
Optionally, in a second implementation manner of the second aspect of the present invention, the presence determining module specifically includes:
the hardware judging unit is used for judging whether the hardware information exists in a preset history record table or not;
the first judging unit is used for judging that the hardware information and the Android ID are unevenly present in the history table if the hardware information is not present in the history table;
the name judging unit is used for judging whether the Android ID exists in the history list or not if the hardware information exists in the history list;
the second judging unit is used for judging that the hardware information and the Android ID are unevenly present in the history table if the Android ID is not present in the history table;
and the third judging unit is used for judging that the hardware information and the Android ID are both in the history list if the Android ID is in the history list.
Optionally, in a third implementation manner of the second aspect of the present invention, the cross judgment module specifically includes:
the generation unit is used for generating time period data of each Android ID based on the first recording time and the last recording time of each Android ID in the Android ID set;
and the intersection judging unit is used for fitting each time period data to a preset time number axis and judging whether the time number axis has time periods which are fit for more than two times.
A third aspect of the present invention provides a judging device for a serial number of a vehicle-mounted device, comprising: a memory and at least one processor, the memory having instructions stored therein, the memory and the at least one processor being interconnected by a line; and the at least one processor calls the instruction in the memory so that the judging device of the vehicle-mounted device serial number executes the judging method of the vehicle-mounted device serial number.
A fourth aspect of the present invention provides a computer-readable storage medium having instructions stored therein that, when executed on a computer, cause the computer to perform the above-described method of determining a serial number of an in-vehicle apparatus.
In the embodiment of the invention, if one piece of hardware information is only used for the same device, the hardware information is sequential along the time line of the Android ID. And one piece of hardware information is used for two devices, and the two devices are used in a crossing way, so that the two devices are crossed along the time line of the Android ID. The method can distinguish two equipment serial numbers. By judging the time situation, the situation that whether serial numbers occur or not can be judged after the equipment is restored to factory setting or is refreshed is realized.
Drawings
Fig. 1 is a schematic diagram of an embodiment of a method for determining a serial number of an on-board device according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an embodiment of a device for determining a serial number of an on-board device according to an embodiment of the present invention;
fig. 3 is a schematic diagram of another embodiment of a device for determining a serial number of an on-board device according to an embodiment of the present invention;
fig. 4 is a schematic diagram of an embodiment of a device for determining a serial number of an on-board device according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a method, a device, equipment and a storage medium for judging serial numbers of vehicle-mounted equipment.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus.
For convenience of understanding, a specific flow of an embodiment of the present invention is described below, referring to fig. 1, and an embodiment of a method for determining a serial number of an on-board device in an embodiment of the present invention includes:
101. acquiring hardware information and Android ID of preset vehicle-mounted equipment;
in the embodiment, the application in the vehicle-mounted Android device obtains the hardware information and the Android ID when the vehicle-mounted Android device is started each time, reads the whole hardware information and the Android ID, and then directly matches the hardware information and the Android ID through a regular rule to obtain a matching conclusion. In another embodiment, hash value calculation can be performed one by one, hash values are obtained by calculating hash operations of names, and the judgment is in a preset history list according to hash value comparison.
102. Judging whether the hardware information and the Android ID exist in a preset history list or not;
in this embodiment, when the judgment is performed, two simultaneous processes may occur, one is to judge whether the hardware information is in the history table, and the other is whether the Android ID is in the history table. Combining the results of the correlation obtained sequentially by the two processes, i.e., { no }, { no, yes }, { no }, { yes }, yes } four results, and only { yes } after the comparison determination is adopted is determined that the processes all exist, and if the processes are other { no }, { yes }, { no }, the processes are not all determined to be in the history table.
Further, only one process is used to process data under one process, and preferably, steps 1021-1025 are as follows:
1021. judging whether the hardware information exists in a preset history list or not;
1022. if the hardware information does not exist in the history list, judging that the hardware information and the Android ID are not uniformly existing in the history list;
1023. if the hardware information exists in the history list, judging whether the Android ID exists in the history list;
1024. if the Android ID does not exist in the history list, judging that the hardware information and the Android ID are not uniformly existing in the history list;
1025. if the Android ID exists in the history list, judging that the hardware information and the Android ID exist in the history list.
In the 1021-1025 embodiment, 1021 first performs hardware information determination, matches the hardware information with hash values or regular rules, and if not, immediately determines a result other than { yes }.
If so, step 1023 is entered to continue to determine if the Android ID exists in the history list, which is a single-threaded process, and the determination is a trip, and separation cannot be performed. If the Android ID does not exist, the result is determined as a result of not { yes }, and if the Android ID also exists, the description exists, and the hardware information and the Android ID record are directly recorded into the history table together with the current time.
103. If the non-uniformity exists, adding the non-existing data and the current moment into a history list;
in this embodiment, the present invention focuses on judging the serial number, and the time of both the hardware information and the Android ID is recorded in the history table, except that the non-existing data is newly added, and the existing hardware information and Android ID are recorded at the time of the addition under the existing subjects.
In the judging process, according to the two ways of single thread and double thread, the double thread can be added and supplemented after the judgment is finished, and the judgment of the added subjects and the addition time under the original subjects is mainly carried out through matrix results { no }, { yes }, { no }, and { yes }, and }, classification.
Preferably, in the single-threaded case, further processing is based on steps 1021-1025:
after step 1022, the following processing is performed:
1031. if the hardware information does not exist in the history list, after judging that the hardware information and the Android ID are not uniformly in the history list, adding the hardware information and the current moment into the history list;
1032. judging whether the Android ID exists in a history list or not;
1033. if the Android ID does not exist in the history list, the Android ID and the current time are added to the history list.
In the embodiments 1031-1032, after the whole data is determined to be in the history list based on step 1022, the hardware information which is not present is added to the history list, and then the current time is counted into the record content of the hardware information.
Preferably, in the single-threaded case, the following is done after step 1025:
1034. if the Android ID does not exist in the history list, after judging that the hardware information and the Android ID are not uniformly existing in the history list, adding the Android ID and the current time to the history list.
In this embodiment, the current time is recorded under the existing hardware information in the history table and the Android ID needs to be added with a new subject in the history table, and the new adding operation is similar to registering a new account, which is to change the type of the operation interface and increase the current time under the Android ID subject.
104. If the Android ID exists, updating the hardware information in the history record table and the last record time of the Android ID based on the current time;
in this embodiment, when the hardware information and the Android ID are analyzed, the current time is added to the hardware information and the Android ID, and the current time is determined as the last recording time, it is required to indicate that the last recording time of the hardware information and the Android ID is identical.
105. Reading first recording time and last recording time of an Android ID set corresponding to hardware information in the history record table, and judging whether time slots of the first recording time and the last recording time of the Android ID set are crossed or not;
in this embodiment, when analyzing whether the time line has a cross, since the development of time is one-dimensional data, a section analysis method is adopted, for example, when the first appearance time and the last recording time of Android ID1 are t 2,0 20210411, t 2,1 20210416, respectively, the first appearance time and the last recording time of t 1,0]20210410,t[1,1]20210415,Android ID2 are t 2,0 20210411, t 2,1 20210416, a count mode test is performed, all data in t 1,0 20210410 to t 1,1 20210415 are counted as 1, all data in t 2,0 20210411 to t 2,1 20210416 are increased by 1 count, and whether the data with a count greater than 2 exists is checked, if yes, the cross exists in the time period, and if not exists, the cross does not exist in the time period.
Preferably, the following operations are possible:
1051. generating time period data of each Android ID based on the first recording time and the last recording time of each Android ID in the Android ID set;
1052. fitting each time period data to a preset time number axis, and judging whether the time number axis has time periods which are fit for more than two times.
In the 1051-1052 embodiment, the first recording time and the last recording time of the Android IDs in the Android ID set corresponding to the hardware information are used to generate a time period of each Android ID data. Placing each time period on a time data axis, for example, in a history table of hardware information 1, the first occurrence time and the last recording time of Android ID1 are t [1,0]20210410, t [1,1]20210415, respectively; the first occurrence and last recording of Android ID2 are t 2,0 20210411, t 2,1 20210416, respectively, and then time crossing occurs on the time data axis t 1,0 < t 2,0 < t 1,1 < t 2, 1.
106. If the time period crossing exists, determining that the serial number condition of the hardware information exists.
In this embodiment, when the different features appear in step 104, the situation of the serial number is determined to appear, after the conclusion is reached, a tag may be set, and the serial number state is marked, so as to complete the judgment of the serial number of the vehicle-mounted device.
In the embodiment of the invention, if one piece of hardware information is only used for the same device, the hardware information is sequential along the time line of the Android ID. And one piece of hardware information is used for two devices, and the two devices are used in a crossing way, so that the two devices are crossed along the time line of the Android ID. The method can distinguish two equipment serial numbers. By judging the time situation, the situation that whether serial numbers occur or not can be judged after the equipment is restored to factory setting or is refreshed is realized.
The method for determining the serial number of the vehicle-mounted device in the embodiment of the present invention is described above, and the device for determining the serial number of the vehicle-mounted device in the embodiment of the present invention is described below, referring to fig. 2, one embodiment of the device for determining the serial number of the vehicle-mounted device in the embodiment of the present invention includes:
the acquiring module 201 is configured to acquire hardware information and an Android ID of a preset vehicle-mounted device;
the presence judging module 202 is configured to judge whether the hardware information and the Android ID are both in a preset history list;
a record adding module 203, configured to add, if the unevenness exists, the data that does not exist and the current time to the history list;
the record updating module 204 is configured to update, if both exist, hardware information in the history list and a last recording time of the Android ID based on a current time;
the intersection judging module 205 is configured to read a first recording time and a last recording time of an Android ID set corresponding to hardware information in the history table, and judge whether a time period intersection exists between the first recording time and the last recording time of the Android ID set;
a determining module 206, configured to determine that the serial number situation occurs in the hardware information if there is a time slot intersection.
In the embodiment of the invention, if one piece of hardware information is only used for the same device, the hardware information is sequential along the time line of the Android ID. And one piece of hardware information is used for two devices, and the two devices are used in a crossing way, so that the two devices are crossed along the time line of the Android ID. The method can distinguish two equipment serial numbers. By judging the time situation, the situation that whether serial numbers occur or not can be judged after the equipment is restored to factory setting or is refreshed is realized.
Referring to fig. 3, another embodiment of a device for determining a serial number of an on-board device according to an embodiment of the present invention includes:
the acquiring module 201 is configured to acquire hardware information and an Android ID of a preset vehicle-mounted device;
the presence judging module 202 is configured to judge whether the hardware information and the Android ID are both in a preset history list;
a record adding module 203, configured to add, if the unevenness exists, the data that does not exist and the current time to the history list;
the record updating module 204 is configured to update, if both exist, hardware information in the history list and a last recording time of the Android ID based on a current time;
the intersection judging module 205 is configured to read a first recording time and a last recording time of an Android ID set corresponding to hardware information in the history table, and judge whether a time period intersection exists between the first recording time and the last recording time of the Android ID set;
a determining module 206, configured to determine that the serial number condition occurs in the hardware information if there is a time slot crossing
The presence determining module 202 specifically includes:
a hardware judgment unit 2021 for judging whether the hardware information exists in a preset history table;
a first determination unit 2022 configured to determine that the hardware information and the Android ID are unevenly present in the history table if the hardware information is not present in the history table;
a name judgment unit 2023, configured to judge whether the Android ID exists in the history table if the hardware information exists in the history table;
a second determining unit 2024, configured to determine that the hardware information and the Android ID are not uniformly present in the history table if the Android ID is not present in the history table;
and a third determining unit 2025, configured to determine that, if the Android ID exists in the history table, both the hardware information and the Android ID exist in the history table.
The pair of intersection judgment modules 205 specifically includes:
the generating unit 2051 is configured to generate time period data of each Android ID based on a first recording time and a last recording time of each Android ID in the Android ID set;
and a cross judgment unit 2052 for fitting each time period data to a preset time number axis and judging whether or not there are time periods fitted twice or more to the time number axis.
The record adding module 203 is specifically configured to:
if the hardware information does not exist in the history table, after judging that the hardware information and the Android ID are unevenly exist in the history table, adding the hardware information and the current time into the history table;
judging whether the Android ID exists in the history list or not;
and if the Android ID does not exist in the history list, adding the Android ID and the current time to the history list.
Wherein, the record adding module 203 may be further specifically configured to:
and if the Android ID does not exist in the history list, adding the Android ID and the current time to the history list after judging that the hardware information and the Android ID are not uniformly exist in the history list.
In the embodiment of the invention, if one piece of hardware information is only used for the same device, the hardware information is sequential along the time line of the Android ID. And one piece of hardware information is used for two devices, and the two devices are used in a crossing way, so that the two devices are crossed along the time line of the Android ID. The method can distinguish two equipment serial numbers. By judging the time situation, the situation that whether serial numbers occur or not can be judged after the equipment is restored to factory setting or is refreshed is realized.
The above-mentioned fig. 2 and fig. 3 describe the device for determining the serial number of the vehicle-mounted device in the embodiment of the present invention in detail from the point of view of the modularized functional entity, and the following describes the device for determining the serial number of the vehicle-mounted device in detail from the point of view of hardware processing.
Fig. 4 is a schematic structural diagram of a device for determining a serial number of an on-vehicle device according to an embodiment of the present invention, where the device 400 for determining a serial number of an on-vehicle device may have a relatively large difference due to different configurations or performances, and may include one or more processors (central processing units, CPU) 410 (e.g., one or more processors) and a memory 420, and one or more storage media 430 (e.g., one or more mass storage devices) storing an application 433 or data 432. Wherein memory 420 and storage medium 430 may be transitory or persistent storage. The program stored in the storage medium 430 may include one or more modules (not shown), each of which may include a series of instruction operations in the determination device 400 of the in-vehicle device serial number. Still further, the processor 410 may be configured to communicate with the storage medium 430, and execute a series of instruction operations in the storage medium 430 on the in-vehicle device serial number determination device 400.
The vehicle device serial number based judgment device 400 may also include one or more power supplies 440, one or more wired or wireless network interfaces 450, one or more input/output interfaces 460, and/or one or more operating systems 431, such as Windows Serve, mac OS X, unix, linux, freeBSD, etc. It will be appreciated by those skilled in the art that the determination device structure of the in-vehicle device serial number shown in fig. 4 does not constitute a limitation of the determination device based on the in-vehicle device serial number, and may include more or less components than those illustrated, or may combine some components, or may be a different arrangement of components.
The present invention also provides a computer readable storage medium, which may be a non-volatile computer readable storage medium, or may be a volatile computer readable storage medium, where instructions are stored in the computer readable storage medium, where the instructions when executed on a computer cause the computer to execute the steps of the method for determining a serial number of an on-vehicle device.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the system or apparatus and unit described above may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. The method for judging the serial number of the vehicle-mounted equipment is characterized by comprising the following steps of:
acquiring hardware information and Android ID of preset vehicle-mounted equipment;
judging whether the hardware information and the Android ID exist in a preset history list or not;
if the non-uniformity exists, adding the non-existing data and the current moment into the history list;
if the Android ID exists, updating the hardware information in the history record table and the last record time of the Android ID based on the current time;
reading first recording time and last recording time of an Android ID set corresponding to hardware information in the history record table, and judging whether time slots of the first recording time and the last recording time of the Android ID set are crossed or not;
if the time period crossing exists, determining that the serial number condition of the hardware information exists.
2. The method for determining the serial number of the vehicle-mounted device according to claim 1, wherein determining whether the hardware information and the Android ID are both present in a preset history table comprises:
judging whether the hardware information exists in a preset history list or not;
if the hardware information does not exist in the history list, judging that the hardware information and the Android ID are not uniformly existing in the history list;
if the hardware information exists in the history list, judging whether the Android ID exists in the history list or not;
if the Android ID does not exist in the history list, judging that the hardware information and the Android ID are not uniformly existing in the history list;
and if the Android ID exists in the history list, judging that the hardware information and the Android ID exist in the history list.
3. The method according to claim 2, wherein adding the non-existing data and the current time to the history table includes:
if the hardware information does not exist in the history table, after judging that the hardware information and the Android ID are unevenly exist in the history table, adding the hardware information and the current time into the history table;
judging whether the Android ID exists in the history list or not;
and if the Android ID does not exist in the history list, adding the Android ID and the current time to the history list.
4. The method according to claim 2, wherein adding the non-existing data and the current time to the history table further comprises:
and if the Android ID does not exist in the history list, adding the Android ID and the current time to the history list after judging that the hardware information and the Android ID are not uniformly exist in the history list.
5. The method for determining a serial number of an in-vehicle device according to claim 1, wherein determining whether a time period intersection exists between a first recording time and a last recording time of the Android ID set includes:
generating time period data of each Android ID based on the first recording time and the last recording time of each Android ID in the Android ID set;
fitting each time period data to a preset time number axis, and judging whether the time number axis has time periods which are fit for more than two times.
6. The device for judging the serial number of the vehicle-mounted equipment is characterized by comprising the following components:
the acquisition module is used for acquiring hardware information and Android ID of the preset vehicle-mounted equipment;
the existence judging module is used for judging whether the hardware information and the Android ID exist in a preset history list or not;
the record adding module is used for adding the non-existing data and the current moment to the history list if the non-uniformity exists;
the record updating module is used for updating the hardware information in the history record table and the last record time of the Android ID based on the current time if the hardware information and the Android ID exist;
the intersection judging module is used for reading the first recording time and the last recording time of the Android ID set corresponding to the hardware information in the history record table and judging whether the first recording time and the last recording time of the Android ID set have time period intersection or not;
and the determining module is used for determining that the serial number condition of the hardware information occurs if the time period is crossed.
7. The apparatus for determining a serial number of a vehicle-mounted device according to claim 6, wherein the presence determining module specifically includes:
the hardware judging unit is used for judging whether the hardware information exists in a preset history record table or not;
the first judging unit is used for judging that the hardware information and the Android ID are unevenly present in the history table if the hardware information is not present in the history table;
the name judging unit is used for judging whether the Android ID exists in the history list or not if the hardware information exists in the history list;
the second judging unit is used for judging that the hardware information and the Android ID are unevenly present in the history table if the Android ID is not present in the history table;
and the third judging unit is used for judging that the hardware information and the Android ID are both in the history list if the Android ID is in the history list.
8. The apparatus for determining a serial number of a vehicle-mounted device according to claim 6, wherein the cross determination module specifically comprises:
the generation unit is used for generating time period data of each Android ID based on the first recording time and the last recording time of each Android ID in the Android ID set;
and the intersection judging unit is used for fitting each time period data to a preset time number axis and judging whether the time number axis has time periods which are fit for more than two times.
9. The device for judging the serial number of the vehicle-mounted device is characterized by comprising the following components: a memory and at least one processor, the memory having instructions stored therein, the memory and the at least one processor being interconnected by a line;
the at least one processor invokes the instructions in the memory to cause the determination device of the in-vehicle device serial number to perform the determination method of in-vehicle device serial number according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method for determining a serial number of an in-vehicle apparatus according to any one of claims 1 to 7.
CN202110637554.2A 2021-06-08 2021-06-08 Method, device, equipment and storage medium for judging serial numbers of vehicle-mounted equipment Active CN113282968B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110637554.2A CN113282968B (en) 2021-06-08 2021-06-08 Method, device, equipment and storage medium for judging serial numbers of vehicle-mounted equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110637554.2A CN113282968B (en) 2021-06-08 2021-06-08 Method, device, equipment and storage medium for judging serial numbers of vehicle-mounted equipment

Publications (2)

Publication Number Publication Date
CN113282968A CN113282968A (en) 2021-08-20
CN113282968B true CN113282968B (en) 2024-01-30

Family

ID=77283929

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110637554.2A Active CN113282968B (en) 2021-06-08 2021-06-08 Method, device, equipment and storage medium for judging serial numbers of vehicle-mounted equipment

Country Status (1)

Country Link
CN (1) CN113282968B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294591A (en) * 2012-03-05 2013-09-11 中国人民解放军91655部队 Method for detecting crossing use of mobile storage equipment
CN104270436A (en) * 2014-09-25 2015-01-07 深圳市财富之舟科技有限公司 Method for checking international mobile equipment identity information

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294591A (en) * 2012-03-05 2013-09-11 中国人民解放军91655部队 Method for detecting crossing use of mobile storage equipment
CN104270436A (en) * 2014-09-25 2015-01-07 深圳市财富之舟科技有限公司 Method for checking international mobile equipment identity information

Also Published As

Publication number Publication date
CN113282968A (en) 2021-08-20

Similar Documents

Publication Publication Date Title
JP3201945B2 (en) How to compare database tables
CN106897342B (en) Data verification method and equipment
CN116302064A (en) Integrated code analysis method, integrated code analysis device, electronic equipment and storage medium
CN111488278B (en) Test method and device
CN110083775B (en) Configuration method and configuration device for recommended resources
CN113282968B (en) Method, device, equipment and storage medium for judging serial numbers of vehicle-mounted equipment
CN111949663B (en) Big data main foreign key consistency evaluation method, device and equipment
US20070156712A1 (en) Semantic grammar and engine framework
CN111597093B (en) Exception handling method, device and equipment thereof
CN113703753B (en) Method and device for product development and product development system
CN115293243A (en) Method, device and equipment for realizing intelligent matching of data assets
CN111371818B (en) Data request verification method, device and equipment
CN114238002A (en) Host system detection method and device, vehicle-mounted equipment and readable storage medium
CN114707029A (en) Method and device for processing map data and electronic equipment
JP2023042138A (en) causal search device
CN112363944A (en) Method and equipment for comparing return values of multiple environment interfaces
CN111932142A (en) Method, device, equipment and storage medium for scheme grouping and data grouping
CN116661758B (en) Method, device, electronic equipment and medium for optimizing log framework configuration
CN106874182B (en) Code exception handling method and device, and code execution method and device
CN112559072B (en) Service function starting method and related equipment
CN110716929A (en) Control and deployment processing method, device and equipment
CN117688564B (en) Detection method, device and storage medium for intelligent contract event log
CN112181995B (en) Data processing method, device, equipment and storage medium of data table
CN115983247A (en) Method and device for determining biological characteristic threshold value by bank
CN117891499A (en) Data processing method, data processing device, computer readable storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant