CN114580033A - Vehicle-mounted equipment identifier generation method and device and electronic equipment - Google Patents

Vehicle-mounted equipment identifier generation method and device and electronic equipment Download PDF

Info

Publication number
CN114580033A
CN114580033A CN202210204620.1A CN202210204620A CN114580033A CN 114580033 A CN114580033 A CN 114580033A CN 202210204620 A CN202210204620 A CN 202210204620A CN 114580033 A CN114580033 A CN 114580033A
Authority
CN
China
Prior art keywords
equipment
global
identifier
network request
vehicle
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.)
Pending
Application number
CN202210204620.1A
Other languages
Chinese (zh)
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.)
Zhidao Network Technology Beijing Co Ltd
Original Assignee
Zhidao Network Technology Beijing 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 Zhidao Network Technology Beijing Co Ltd filed Critical Zhidao Network Technology Beijing Co Ltd
Priority to CN202210204620.1A priority Critical patent/CN114580033A/en
Publication of CN114580033A publication Critical patent/CN114580033A/en
Pending legal-status Critical Current

Links

Images

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/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a method and a device for generating an identification of a vehicle-mounted device and an electronic device, wherein the method is executed by a server side, and the method comprises the following steps: receiving a network request of a vehicle end, wherein the network request is used for acquiring an equipment identifier of the vehicle end, and the network request comprises an equipment channel keyword and an original equipment identifier; determining whether a global device identifier corresponding to the network request exists in a device identifier database according to the network request; if not, generating a global device identifier corresponding to the network request by using a preset global device identifier generation strategy; and returning the global equipment identifier to the vehicle end, and correspondingly storing the global equipment identifier, the equipment channel keyword and the original equipment identifier into an equipment identifier database. The method and the device for generating the global unique equipment identification aim at the vehicle-mounted equipment of different equipment manufacturers, and the problems that the equipment unique identification of a plurality of equipment manufacturers is possibly repeated, services needing to be operated on various kinds of equipment do not have unique global equipment identification and the like are solved.

Description

Vehicle-mounted equipment identifier generation method and device and electronic equipment
Technical Field
The application relates to the technical field of vehicle-mounted equipment, in particular to a vehicle-mounted equipment identifier generation method and device and electronic equipment.
Background
With the rapid development of the field of intelligent vehicles, more and more networked vehicles run on the daily roads, the vehicles form a huge internet of vehicles, and meanwhile, a plurality of intelligent devices are installed in the vehicles. In order to uniquely distinguish or locate these intelligent vehicles or devices, a unique non-repetitive code conforming to a predetermined coding rule is required to be set in a hardware device or system to uniquely identify the device, and these intelligent devices generally include a vehicle machine, a car recorder or other obu (on board unit) vehicle-mounted devices, etc.
However, different equipment manufacturers have their own encoding rules, which may be similar or identical, and the encoding rules generally ensure that the identifiers generated on one type of equipment are not duplicated, but when a unique identifier needs to be provided on multiple types of equipment, duplication may occur, for example, manufacturer a has its own SN (Serial number) encoding rule, manufacturer B has its own SN encoding rule, and the SNs generated by both types of equipment may be duplicated.
Furthermore, the encoding rules of different device manufacturers may constrain different encoding formats, which may result in different unique identification formats in different devices, such as 15-bit ones, 18-bit ones, and so on. When a uniquely identified rule is needed to meet a business requirement, a situation of more rule cases or complicated parsing may occur.
Disclosure of Invention
The embodiment of the application provides a vehicle-mounted equipment identifier generation method and device and electronic equipment, and provides globally unique equipment identifiers with uniform formats for vehicle-mounted equipment of different equipment manufacturers.
The embodiment of the application adopts the following technical scheme:
in a first aspect, an embodiment of the present application provides a method for generating an identifier of a vehicle-mounted device, where the method is executed by a server, and the method includes:
receiving a network request of a vehicle end, wherein the network request comprises an equipment channel keyword and an original equipment identifier;
determining whether a global device identifier corresponding to the network request exists in a device identifier database according to the network request;
under the condition that the global device identification corresponding to the network request does not exist in the device identification database, generating a global device identification corresponding to the network request by using a preset global device identification generation strategy;
and returning the global equipment identifier to the vehicle end, and correspondingly storing the global equipment identifier, the equipment channel keyword and the original equipment identifier into the equipment identifier database.
Optionally, before receiving the network request of the vehicle end, the method further includes:
registering equipment channel keywords for each vehicle end;
distributing equipment channel identification for each vehicle end according to the equipment channel keyword of each vehicle end;
and correspondingly storing the equipment channel keywords of each vehicle end and the equipment channel identification into the equipment identification database.
Optionally, after receiving the network request of the vehicle end, the method further includes:
determining whether the device channel keyword exists in the device identification database;
if the global device identifier exists, determining whether a global device identifier corresponding to the network request exists in a device identifier database according to the network request;
if not, returning error prompt information.
Optionally, the generating a global device identifier corresponding to the network request by using a preset global device identifier generation policy includes:
determining a corresponding equipment channel identifier in the equipment identifier database according to the equipment channel keyword;
acquiring the system time of a current server;
and generating a global device identifier corresponding to the network request according to the device channel identifier and the current server system time.
Optionally, the generating a global device identifier corresponding to the network request according to the device channel identifier and the current server system time includes:
processing the original equipment identification based on a preset abstract algorithm to obtain a random character string;
and generating a global equipment identifier corresponding to the network request according to the equipment channel identifier, the current server system time and the random character string.
Optionally, after determining whether a global device identifier corresponding to the network request exists in a device identifier database according to the network request, the method further includes:
and under the condition that the global equipment identifier corresponding to the network request exists in the equipment identifier database, directly returning the global equipment identifier corresponding to the network request in the equipment identifier database to the vehicle end.
In a second aspect, an embodiment of the present application further provides a method for acquiring an identifier of a vehicle-mounted device, where the method is executed by a vehicle end, and the method includes:
determining whether the global equipment identification of the vehicle-mounted equipment can be acquired from the local part of the vehicle end;
sending a network request to a server side under the condition that the global equipment identification of the vehicle-mounted equipment cannot be obtained from the local part of the vehicle side, wherein the network request is used for obtaining the equipment identification of the vehicle side and comprises equipment channel keywords and original equipment identification;
receiving a global device identification of the vehicle-mounted device returned by the server and storing the global device identification to the local of the vehicle end;
the global device identifier of the vehicle-mounted device is obtained based on any one of the vehicle-mounted device identifier generation methods.
In a third aspect, an embodiment of the present application further provides an apparatus for generating an identifier of a vehicle-mounted device, where the apparatus is applied to a server, and the apparatus includes:
the system comprises a receiving unit, a receiving unit and a processing unit, wherein the receiving unit is used for receiving a network request of a vehicle end, the network request is used for acquiring an equipment identifier of the vehicle end, and the network request comprises an equipment channel keyword and an original equipment identifier;
a first determining unit, configured to determine, according to the network request, whether a global device identifier corresponding to the network request exists in a device identifier database;
a generating unit, configured to generate, when a global device identifier corresponding to the network request does not exist in the device identifier database, a global device identifier corresponding to the network request by using a preset global device identifier generation policy;
and the first storage unit is used for returning the global equipment identifier to the vehicle end and correspondingly storing the global equipment identifier, the equipment channel keyword and the original equipment identifier into the equipment identifier database.
In a fourth aspect, an embodiment of the present application further provides an on-board device identifier obtaining apparatus, where the apparatus is applied to a vehicle end, and the apparatus includes:
the second determination unit is used for determining whether the global equipment identification of the vehicle-mounted equipment can be acquired from the local position of the vehicle end;
the system comprises a sending unit, a service end and a service end, wherein the sending unit is used for sending a network request to the service end under the condition that the global equipment identification of the vehicle-mounted equipment cannot be obtained from the local part of the vehicle end, the network request is used for obtaining the equipment identification of the vehicle end, and the network request comprises equipment channel keywords and original equipment identification;
the receiving unit is used for receiving the global equipment identification of the vehicle-mounted equipment returned by the server and storing the global equipment identification to the local of the vehicle end;
the global device identification of the vehicle-mounted device is obtained based on the vehicle-mounted device identification generating device.
In a fifth aspect, an embodiment of the present application further provides an electronic device, including:
a processor; and
a memory arranged to store computer executable instructions that when executed cause the processor to perform any of the aforementioned on-board device identification generation methods, or to perform the aforementioned on-board device identification acquisition methods.
In a sixth aspect, an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores one or more programs, and when the one or more programs are executed by an electronic device including a plurality of application programs, the electronic device executes any one of the foregoing on-vehicle device identifier generation methods, or executes the foregoing on-vehicle device identifier acquisition method.
The embodiment of the application adopts at least one technical scheme which can achieve the following beneficial effects: the method for generating the vehicle-mounted equipment identifier is executed by a server side, and comprises the steps of receiving a network request of a vehicle side, wherein the network request is used for obtaining the equipment identifier of the vehicle side, and comprises equipment channel keywords and an original equipment identifier; then determining whether a global device identifier corresponding to the network request exists in a device identifier database according to the network request; then, under the condition that the global device identification corresponding to the network request does not exist in the device identification database, generating a global device identification corresponding to the network request by using a preset global device identification generation strategy; and finally, returning the global equipment identifier to the vehicle end, and correspondingly storing the global equipment identifier, the equipment channel keyword and the original equipment identifier into an equipment identifier database. The vehicle-mounted equipment identification generation method provided by the embodiment of the application generates globally unique equipment identifications with uniform format for vehicle-mounted equipment of different equipment manufacturers, and solves the problems that the equipment unique identifications of multiple equipment manufacturers are possibly repeated, and services or applications which need to run on multiple kinds of equipment do not have globally unique equipment identifications.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic flowchart of a method for generating an identifier of a vehicle-mounted device in an embodiment of the present application;
fig. 2 is a schematic view illustrating a construction process of device channel information in an embodiment of the present application;
fig. 3 is a schematic diagram of a flow of generating an identifier of a vehicle-mounted device in an embodiment of the present application;
fig. 4 is a schematic flowchart of a method for acquiring an identifier of a vehicle-mounted device in an embodiment of the present application;
fig. 5 is a schematic diagram of a flow of acquiring an identifier of a vehicle-mounted device in an embodiment of the present application;
fig. 6 is a schematic structural diagram of an on-board device identifier generating apparatus in an embodiment of the present application;
fig. 7 is a schematic structural diagram of an on-board device identifier obtaining apparatus in an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device in an embodiment of the present application;
fig. 9 is a schematic structural diagram of another electronic device in the embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only a few embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
An embodiment of the present application provides a method for generating an identifier of a vehicle-mounted device, and as shown in fig. 1, a flowchart of the method for generating an identifier of a vehicle-mounted device in the embodiment of the present application is provided, where the method is executed by a server, and the method at least includes the following steps S110 to S140:
step S110, receiving a network request of a vehicle end, wherein the network request is used for acquiring an equipment identifier of the vehicle end, and the network request comprises an equipment channel keyword and an original equipment identifier.
The vehicle-mounted device identifier generation method in the embodiment of the application may be executed by a server, and when generating a vehicle-mounted device identifier, a network request of a vehicle end needs to be received first, where the network request may be understood as a request for obtaining a vehicle-mounted device identifier, that is, the vehicle end may request the server to obtain a unique identifier of the vehicle-mounted device according to actual business needs, and the network request needs to carry parameters such as a device channel keyword and an original device identifier, where the device channel keyword may be understood as keyword information for distinguishing different device manufacturers, for example, the device channel keyword of a device manufacturer a is "bydauto", the device channel keyword of a device manufacturer B is "baicmotor", and the original device identifier may be understood as a device unique identifier, that is, device ID, generated by each device manufacturer based on a self-defined coding rule thereof.
The specific equipment manufacturer can be located through the equipment channel keywords, and the specific equipment in the equipment manufacturer can be located through the original equipment identification.
The vehicle-mounted equipment identifier can be an SN (serial number) of the equipment, namely a product serial number, is a concept introduced for verifying 'legal identity of a product', and is an identifier used for guaranteeing the copyright rights and interests of users and enjoying legal services. The vehicle-mounted device identifier may also be an ICCID (integrated circuit card identification, i.e., an SIM card number, which is an identification card equivalent to a Mobile phone number.
Of course, in addition to the above listed several types of device identifiers, the vehicle-mounted device identifier generation method in the embodiment of the present application may also be applied to other more types of device identifiers, and those skilled in the art may flexibly select in the field to maintain the compatibility of the device identifiers.
Step S120, according to the network request, determining whether a global device identifier corresponding to the network request exists in a device identifier database.
After receiving the network request, whether a global device identifier corresponding to the network request exists may be queried in a device identifier database established in advance, where the global device identifier may be understood as a device identifier generated based on the vehicle-mounted device identifier generation method according to the embodiment of the present application, and has global uniqueness.
If the query can be made, it is described that the global unique identifier has been generated for the device of the device vendor before, then, in order to avoid a situation that the same device is assigned with a plurality of different global unique identifiers, at this time, a subsequent device identifier generation operation does not need to be performed, and if the query cannot be made, it is described that the device of the device vendor does not have a corresponding global unique identifier yet, a subsequent device identifier generation operation needs to be performed.
Step S130, in a case that the global device identifier corresponding to the network request does not exist in the device identifier database, generating a global device identifier corresponding to the network request by using a preset global device identifier generation policy.
If the global device identifier corresponding to the network request cannot be queried in the device identifier database, a unique global device identifier may be generated for the device of the device manufacturer by using a global device identifier generation policy set in advance. The preset global device identification generation strategy can be used for unifying the coded digit number, the pattern and the like, and can distinguish different situations by representing different meanings through different numbers, letters or symbols in different digit numbers. Of course, those skilled in the art may also flexibly define the identifier according to actual requirements as long as the generated identifier is globally unique and uniform in format.
And step S140, returning the global device identifier to the vehicle end, and correspondingly storing the global device identifier, the device channel keyword and the original device identifier into the device identifier database.
After the newly generated global device identifier is obtained, on one hand, the newly generated global device identifier needs to be returned to the vehicle end to enable the vehicle end to perform operations such as subsequent service processing, and on the other hand, the newly generated global device identifier needs to be correspondingly stored in the device identifier database together with the device channel keyword and the original device identifier in the network request, that is, a relationship mapping is established between the original device identifier and the newly generated global device identifier. For example, a certain original device id of the device vendor a is BYD1000100001, which may be mapped to a newly generated global device id X0120211203ABCDEFG, where the newly generated global device id can ensure the uniqueness of the device id among all different device vendors, and when the device id of the device is requested again by the subsequent vehicle end, the original device id may be replaced by the newly generated global device id.
The vehicle-mounted equipment identifier generation method provided by the embodiment of the application generates globally unique equipment identifiers with uniform format aiming at the vehicle-mounted equipment of different equipment manufacturers, and solves the problems that the equipment unique identifiers of multiple equipment manufacturers are possibly repeated, services or applications which need to run on multiple equipment do not have globally unique equipment identifiers, and the like.
In one embodiment of the present application, before receiving the network request from the vehicle, the method further includes: registering equipment channel keywords for each vehicle end; distributing equipment channel identification for each vehicle end according to the equipment channel keyword of each vehicle end; and correspondingly storing the equipment channel keywords of each vehicle end and the equipment channel identification into the equipment identification database.
In the embodiment of the present application, before generating the global device identifier, corresponding device channel information may be established for different device manufacturers to serve as a basis for subsequently generating the global device identifier, as shown in fig. 2, which provides a schematic diagram of a construction process of the device channel information in the embodiment of the present application.
Firstly, a corresponding equipment channel is newly established for the vehicle machines of different equipment manufacturers, for example, a channel of a newly established equipment manufacturer A and a channel of an equipment manufacturer B. Then, corresponding device channel keywords are registered for different device channels, for example, the device channel keyword is "bydauto" for the device manufacturer a channel, the device channel keyword is "baicimotor" for the device manufacturer B channel, and only the registered device channel keywords can generate subsequent global device identifiers.
Then, an equipment channel identifier is allocated to each equipment channel keyword, and the generation rule of the equipment channel identifier may be customized, for example, the equipment channel identifier "X01" is allocated to the equipment channel keyword "bydauto", the equipment channel identifier "X02" is allocated to the equipment channel keyword "basic", and so on. And finally, correspondingly storing the obtained equipment channel keywords and the equipment channel identification into an equipment identification database, thereby completing the construction process of the equipment channel information.
In one embodiment of the present application, after receiving the network request from the vehicle, the method further includes: determining whether the device channel keyword exists in the device identification database; if yes, determining whether a global device identifier corresponding to the network request exists in a device identifier database according to the network request; if not, returning error prompt information.
After receiving a network request of a vehicle end, the embodiment of the application can firstly query the device identification database by using the device channel keywords carried in the network request, and if the query can be made, the device manufacturer corresponding to the request can register the corresponding device channel keywords, and then the subsequent global device identification generation operation can be further executed. If the device channel keyword cannot be inquired, the device manufacturer does not register the device channel keyword, and then subsequent global device identifier generation operation cannot be executed, so that the error prompt information is directly returned.
In an embodiment of the application, the generating a global device identifier corresponding to the network request by using a preset global device identifier generation policy includes: determining a corresponding equipment channel identifier in the equipment identifier database according to the equipment channel keyword; acquiring the system time of a current server; and generating a global device identifier corresponding to the network request according to the device channel identifier and the current server system time.
The embodiment of the application provides a preset global device identifier generation strategy, and specifically, a corresponding device channel identifier is firstly queried in a device identifier database according to a device channel keyword, for example, a device channel identifier corresponding to a device channel keyword "bydauto" is queried in the device identifier database to be "X01", the device channel identifier is used for distinguishing different device channels or device manufacturers in an identifier form, and specifically, the preset global device identifier generation strategy can be flexibly defined according to actual service requirements.
Then, the server system time when generating the global device identifier can be added behind the device channel identifier, and finally, the global device identifier corresponding to the network request is generated according to the device channel identifier and the current server system time, so that no matter how many kinds of values of the code of the original device identifier exist, the correspondence can be found in a new rule, and the condition that the global device identifier is not repeated is ensured. For example, the newly generated global device ID may be in the format of X × 20211101 × and the middle time portion will always be different as time goes by, thus ensuring that the newly generated global device ID can never be repeated, similar to the self-increment of the ID.
In an embodiment of the present application, the generating a global device identifier corresponding to the network request according to the device channel identifier and the current server system time includes: processing the original equipment identification based on a preset abstract algorithm to obtain a random character string; and generating a global equipment identifier corresponding to the network request according to the equipment channel identifier, the current server system time and the random character string.
Based on the foregoing embodiment, for the last part of "X × 20211101 × may be generated according to the original device identification, and it may be referred to using a digest algorithm, such as md (message digest) message digest, sha (secure Hash algorithm), mac (message Authentication code) message Authentication code, and so on, to generate a random string with a fixed length, which has higher generation efficiency than the ordinary random string generation method.
In addition, it should be noted that, if the original device identifications generated by the two device manufacturers are completely the same, at this time, the random string portions obtained according to the above-mentioned abstract algorithm adopted in the embodiment of the present application may be the same, but since the former "X" portion represents the device channel, even if the latter random string portion is the same, two different global device identifications can still be generated according to the former "X" portion, so that the generation efficiency for the global device identification is higher, and the applicability is more flexible, which is one of the advantages of the preset global device identification generation strategy designed by the present application.
Of course, in addition to the above manner, in the embodiment of the present application, a random character string may also be generated not based on the original device identifier, but an ordinary random character string generation manner may be adopted, and after the random character string is generated each time, whether the generated random character string is repeated with a previously generated random character string may be determined, and if so, the random character string may be regenerated again.
In an embodiment of the present application, after determining whether a global device identifier corresponding to the network request exists in a device identifier database according to the network request, the method further includes: and under the condition that the global equipment identifier corresponding to the network request exists in the equipment identifier database, directly returning the global equipment identifier corresponding to the network request in the equipment identifier database to the vehicle end.
As described above, if the global device Identifier corresponding to the network request already exists in the device Identifier database, then the corresponding global device Identifier is directly returned to the vehicle end, and compared with a manner of using a UUID (universal Unique Identifier), it is possible to ensure that the global device identifiers generated by the same original device Identifier are consistent, thereby avoiding a situation that the same device is allocated with a plurality of different global device identifiers, and facilitating subsequent vehicle end service processing.
In order to facilitate understanding of the foregoing embodiments, as shown in fig. 3, a schematic diagram of a vehicle-mounted device identifier generation flow in the embodiment of the present application is provided. Firstly, a service end receives a network request of a vehicle end, wherein the request carries parameters such as equipment channel keywords, original equipment identification device ID and the like. Then, checking whether the device channel keyword exists in a device identification database, if not, directly returning an error code, if so, further checking whether the device channel keyword and the original device identification correspond to a generated global device identification, if so, directly returning the corresponding global device identification, and if not, generating a new global device identification by using a preset global device identification generation strategy. And finally, correspondingly storing the new global equipment identification, the equipment channel keyword and the original equipment identification into an equipment identification database.
The vehicle-mounted equipment identification generation method solves the problem that equipment unique identifications of multiple equipment manufacturers are possibly repeated, and solves the problem that services needing to be operated on multiple kinds of equipment do not have global unique equipment identifications. For example, a certain vehicle-mounted APP needs to run on the vehicle of the equipment manufacturer a and the vehicle of the equipment manufacturer B simultaneously, and in the equipment and systems such as the automobile data recorder, the service itself does not activate the binding constraint and function, so that a globally unique device identifier is needed to distinguish different users, so as to know which equipment is the service data generated by which user, and the service data is stored to facilitate subsequent query.
In addition, the vehicle-mounted equipment identification generation method further solves the problems that the unique identification digits and the unique patterns are not uniform due to the fact that equipment identification rules of multiple equipment manufacturers are not uniform.
The embodiment of the present application further provides a method for acquiring a vehicle-mounted device identifier, and as shown in fig. 4, a schematic flow chart of the method for acquiring a vehicle-mounted device identifier in the embodiment of the present application is provided, where the method is executed by a vehicle end, and the method at least includes the following steps S410 to S430:
step S410, determining whether the global device identification of the vehicle-mounted device can be acquired from the local of the vehicle end;
step S420, under the condition that the global device identification of the vehicle-mounted device cannot be obtained from the local of the vehicle end, sending a network request to a server end, wherein the network request is used for obtaining the device identification of the vehicle end, and the network request comprises a device channel keyword and an original device identification;
step S430, receiving the global device identification of the vehicle-mounted device returned by the server and storing the global device identification to the local of the vehicle; the global device identifier of the vehicle-mounted device is obtained based on any one of the vehicle-mounted device identifier generation methods.
As shown in fig. 5, a schematic diagram of an in-vehicle device identifier obtaining flow in the embodiment of the present application is provided. Firstly, the vehicle side preferentially acquires the global equipment identifier of the desired vehicle-mounted equipment from the local storage of the vehicle side, if the local storage does not have the corresponding global equipment identifier, the equipment channel keyword set in the vehicle side APP and the original equipment identifier device ID are used as parameters and transmitted to the server side, so that the global equipment identifier is acquired from the server side, and finally, the global equipment identifier returned by the server side is received and stored locally at the vehicle side for subsequent use. The local storage mode of the vehicle-side APP is not limited, and the vehicle-side APP can be files or Android lightweight data storage SharedPreferences and the like.
An embodiment of the present application further provides a device 600 for generating an identifier of a vehicle-mounted device, as shown in fig. 6, which provides a schematic structural diagram of the device 600 for generating an identifier of a vehicle-mounted device in the embodiment of the present application, where the device 600 is applied to a server, and the device 600 includes: a receiving unit 610, a first determining unit 620, a generating unit 630 and a first storing unit 640, wherein:
a receiving unit 610, configured to receive a network request of a vehicle end, where the network request includes an equipment channel keyword and an original equipment identifier;
a first determining unit 620, configured to determine, according to the network request, whether a global device identifier corresponding to the network request exists in a device identifier database;
a generating unit 630, configured to generate, when a global device identifier corresponding to the network request does not exist in the device identifier database, a global device identifier corresponding to the network request by using a preset global device identifier generation policy;
the first storage unit 640 is configured to return the global device identifier to the vehicle end, and store the global device identifier, the device channel keyword, and the original device identifier in the device identifier database in a corresponding manner.
In one embodiment of the present application, the apparatus further comprises: the registration unit is used for registering equipment channel keywords for each vehicle end; the distribution unit is used for distributing equipment channel identifiers for the vehicle ends according to the equipment channel keywords of the vehicle ends; and the second storage unit is used for correspondingly storing the equipment channel keywords of each vehicle end and the equipment channel identification into the equipment identification database.
In one embodiment of the present application, the apparatus further comprises: a third determining unit, configured to determine whether the device channel keyword exists in the device identifier database; if the global device identifier exists, determining whether a global device identifier corresponding to the network request exists in a device identifier database according to the network request; if not, returning error prompt information.
In an embodiment of the present application, the generating unit 630 is specifically configured to: determining a corresponding equipment channel identifier in the equipment identifier database according to the equipment channel keyword; acquiring the system time of a current server; and generating a global device identifier corresponding to the network request according to the device channel identifier and the current server system time.
In an embodiment of the present application, the generating unit 630 is specifically configured to: processing the original equipment identification based on a preset abstract algorithm to obtain a random character string; and generating a global equipment identifier corresponding to the network request according to the equipment channel identifier, the current server system time and the random character string.
In one embodiment of the present application, the apparatus further comprises: and the returning unit is used for directly returning the global equipment identifier corresponding to the network request in the equipment identifier database to the vehicle end under the condition that the global equipment identifier corresponding to the network request exists in the equipment identifier database.
It can be understood that the vehicle-mounted device identifier generating apparatus can implement each step of the vehicle-mounted device identifier generating method provided in the foregoing embodiment, and the explanations related to the vehicle-mounted device identifier generating method are applicable to the vehicle-mounted device identifier generating apparatus, and are not described herein again.
The embodiment of the present application further provides an apparatus 700 for acquiring an identifier of a vehicle-mounted device, as shown in fig. 7, a schematic structural diagram of the apparatus for acquiring an identifier of a vehicle-mounted device in the embodiment of the present application is provided, the apparatus is applied to a vehicle end, and the apparatus 700 includes: a second determining unit 710, a transmitting unit 720, and a receiving unit 730, wherein:
a second determination unit 710, configured to determine whether a global device identifier of the vehicle-mounted device can be obtained locally from the vehicle end;
a sending unit 720, configured to send a network request to a server, where the network request is used to obtain a device identifier of a vehicle end, and the network request includes a device channel keyword and an original device identifier, when a global device identifier of a vehicle-mounted device cannot be obtained locally from the vehicle end;
the receiving unit 730 is configured to receive the global device identifier of the vehicle-mounted device returned by the server and store the global device identifier in the local area of the vehicle;
wherein the global device identifier of the vehicle-mounted device is obtained based on the apparatus of claim 8.
It can be understood that the above vehicle-mounted device identifier obtaining apparatus can implement each step of the vehicle-mounted device identifier obtaining method provided in the foregoing embodiment, and the explanations related to the vehicle-mounted device identifier obtaining method are all applicable to the vehicle-mounted device identifier obtaining apparatus, and are not described herein again.
Fig. 8 is a schematic structural diagram of an electronic device in an embodiment of the present application, and fig. 9 is a schematic structural diagram of another electronic device in the embodiment of the present application. Referring to fig. 8 and 9, at the hardware level, the electronic device includes a processor, and optionally further includes an internal bus, a network interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, the network interface, and the memory may be connected to each other via an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in fig. 8 and 9, but this does not indicate only one bus or one type of bus.
And the memory is used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory may include both memory and non-volatile storage and provides instructions and data to the processor.
The processor reads the corresponding computer program from the nonvolatile memory to the memory and then runs the computer program, and forms a vehicle-mounted equipment identifier generating device or a vehicle-mounted equipment identifier acquiring device on a logic level. The processor is used for executing the program stored in the memory and is specifically used for executing the following operations:
receiving a network request of a vehicle end, wherein the network request is used for acquiring an equipment identifier of the vehicle end, and the network request comprises an equipment channel keyword and an original equipment identifier;
determining whether a global device identifier corresponding to the network request exists in a device identifier database according to the network request;
under the condition that the global device identification corresponding to the network request does not exist in the device identification database, generating a global device identification corresponding to the network request by using a preset global device identification generation strategy;
and returning the global equipment identifier to the vehicle end, and correspondingly storing the global equipment identifier, the equipment channel keyword and the original equipment identifier into the equipment identifier database.
Or, to perform:
determining whether the global equipment identification of the vehicle-mounted equipment can be acquired from the local part of the vehicle end;
sending a network request to a server side under the condition that the global equipment identification of the vehicle-mounted equipment cannot be obtained from the local part of the vehicle side, wherein the network request is used for obtaining the equipment identification of the vehicle side and comprises equipment channel keywords and original equipment identification;
receiving a global device identification of the vehicle-mounted device returned by the server and storing the global device identification to the local of the vehicle end;
the global device identification of the vehicle-mounted device is obtained based on any one of the methods.
The method executed by the vehicle-mounted device identifier generating apparatus disclosed in the embodiment shown in fig. 1 of the present application and the vehicle-mounted device identifier obtaining apparatus disclosed in the embodiment shown in fig. 4 of the present application may be applied to or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
The electronic device may further execute the method executed by the vehicle-mounted device identifier generating apparatus in fig. 1, implement the function of the vehicle-mounted device identifier generating apparatus in the embodiment shown in fig. 1, further execute the method executed by the vehicle-mounted device identifier obtaining apparatus disclosed in the embodiment shown in fig. 4, and implement the function of the vehicle-mounted device identifier obtaining apparatus in the embodiment shown in fig. 4, which is not described herein again in this application embodiment.
An embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores one or more programs, where the one or more programs include instructions, which, when executed by an electronic device including multiple application programs, enable the electronic device to perform the method performed by the in-vehicle device identifier generating apparatus in the embodiment shown in fig. 1, and are specifically configured to perform:
receiving a network request of a vehicle end, wherein the network request is used for acquiring an equipment identifier of the vehicle end, and the network request comprises an equipment channel keyword and an original equipment identifier;
determining whether a global device identifier corresponding to the network request exists in a device identifier database according to the network request;
under the condition that the global device identification corresponding to the network request does not exist in the device identification database, generating a global device identification corresponding to the network request by using a preset global device identification generation strategy;
and returning the global equipment identifier to the vehicle end, and correspondingly storing the global equipment identifier, the equipment channel keyword and the original equipment identifier into the equipment identifier database.
In addition, the electronic device may be further configured to execute the method executed by the vehicle-mounted device identifier obtaining apparatus in the embodiment shown in fig. 7, and specifically configured to execute:
determining whether the global equipment identification of the vehicle-mounted equipment can be acquired from the local part of the vehicle end;
sending a network request to a server side under the condition that the global equipment identification of the vehicle-mounted equipment cannot be obtained from the local part of the vehicle side, wherein the network request is used for obtaining the equipment identification of the vehicle side and comprises equipment channel keywords and original equipment identification;
receiving a global device identification of the vehicle-mounted device returned by the server and storing the global device identification to the local of the vehicle end;
the global device identification of the vehicle-mounted device is obtained based on any one of the methods.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both permanent and non-permanent, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A vehicle-mounted equipment identification generation method is executed by a server side and comprises the following steps:
receiving a network request of a vehicle end, wherein the network request is used for acquiring an equipment identifier of the vehicle end, and the network request comprises an equipment channel keyword and an original equipment identifier;
determining whether a global device identifier corresponding to the network request exists in a device identifier database according to the network request;
under the condition that the global device identification corresponding to the network request does not exist in the device identification database, generating a global device identification corresponding to the network request by using a preset global device identification generation strategy;
and returning the global equipment identifier to the vehicle end, and correspondingly storing the global equipment identifier, the equipment channel keyword and the original equipment identifier into the equipment identifier database.
2. The method of claim 1, wherein prior to receiving the vehicle-side network request, the method further comprises:
registering equipment channel keywords for each vehicle end;
distributing equipment channel identification for each vehicle end according to the equipment channel keyword of each vehicle end;
and correspondingly storing the equipment channel keywords of each vehicle end and the equipment channel identification into the equipment identification database.
3. The method of claim 1, wherein after receiving the network request at the vehicle end, the method further comprises:
determining whether the device channel keyword exists in the device identification database;
if the global device identifier exists, determining whether a global device identifier corresponding to the network request exists in a device identifier database according to the network request;
if not, returning error prompt information.
4. The method of claim 1, wherein the generating a global device identifier corresponding to the network request using a preset global device identifier generation policy comprises:
determining a corresponding equipment channel identifier in the equipment identifier database according to the equipment channel keyword;
acquiring the system time of a current server;
and generating a global device identifier corresponding to the network request according to the device channel identifier and the current server system time.
5. The method of claim 4, wherein said generating a global device identification corresponding to the network request based on the device channel identification and the current server system time comprises:
processing the original equipment identification based on a preset abstract algorithm to obtain a random character string;
and generating a global equipment identifier corresponding to the network request according to the equipment channel identifier, the current server system time and the random character string.
6. The method of claim 1, wherein after determining whether a global device identifier corresponding to the network request exists in a device identifier database based on the network request, the method further comprises:
and under the condition that the global equipment identifier corresponding to the network request exists in the equipment identifier database, directly returning the global equipment identifier corresponding to the network request in the equipment identifier database to the vehicle end.
7. A vehicle-mounted equipment identification obtaining method is executed by a vehicle end and comprises the following steps:
determining whether the global equipment identification of the vehicle-mounted equipment can be acquired from the local part of the vehicle end;
sending a network request to a server side under the condition that the global equipment identification of the vehicle-mounted equipment cannot be obtained from the local part of the vehicle side, wherein the network request is used for obtaining the equipment identification of the vehicle side and comprises equipment channel keywords and original equipment identification;
receiving the global equipment identification of the vehicle-mounted equipment returned by the server and storing the global equipment identification to the local of the vehicle end;
the global device identification of the vehicle-mounted device is obtained based on the method of any one of claims 1 to 6.
8. An on-board device identifier generation apparatus, wherein the apparatus is applied to a server, the apparatus comprises:
the system comprises a receiving unit, a receiving unit and a processing unit, wherein the receiving unit is used for receiving a network request of a vehicle end, the network request is used for acquiring an equipment identifier of the vehicle end, and the network request comprises an equipment channel keyword and an original equipment identifier;
a first determining unit, configured to determine, according to the network request, whether a global device identifier corresponding to the network request exists in a device identifier database;
a generating unit, configured to generate, when a global device identifier corresponding to the network request does not exist in the device identifier database, a global device identifier corresponding to the network request by using a preset global device identifier generation policy;
and the first storage unit is used for returning the global equipment identifier to the vehicle end and correspondingly storing the global equipment identifier, the equipment channel keyword and the original equipment identifier into the equipment identifier database.
9. An on-vehicle equipment sign acquisition device, wherein, the device is applied to the car end, the device includes:
the second determination unit is used for determining whether the global equipment identification of the vehicle-mounted equipment can be acquired from the local position of the vehicle end;
the system comprises a sending unit, a service end and a service end, wherein the sending unit is used for sending a network request to the service end under the condition that the global equipment identification of the vehicle-mounted equipment cannot be obtained from the local part of the vehicle end, the network request is used for obtaining the equipment identification of the vehicle end, and the network request comprises equipment channel keywords and original equipment identification;
the receiving unit is used for receiving the global equipment identification of the vehicle-mounted equipment returned by the server and storing the global equipment identification to the local of the vehicle end;
wherein the global device identification of the vehicle-mounted device is obtained based on the apparatus of the preceding claim 8.
10. An electronic device, comprising:
a processor; and
a memory arranged to store computer executable instructions which, when executed, cause the processor to perform the method of any of claims 1 to 6 or to perform the method of claim 7.
CN202210204620.1A 2022-03-03 2022-03-03 Vehicle-mounted equipment identifier generation method and device and electronic equipment Pending CN114580033A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210204620.1A CN114580033A (en) 2022-03-03 2022-03-03 Vehicle-mounted equipment identifier generation method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210204620.1A CN114580033A (en) 2022-03-03 2022-03-03 Vehicle-mounted equipment identifier generation method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN114580033A true CN114580033A (en) 2022-06-03

Family

ID=81776772

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210204620.1A Pending CN114580033A (en) 2022-03-03 2022-03-03 Vehicle-mounted equipment identifier generation method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN114580033A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115052041A (en) * 2022-06-16 2022-09-13 平安银行股份有限公司 Channel identification distribution method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106603586A (en) * 2015-10-14 2017-04-26 阿里巴巴集团控股有限公司 Method for generating equipment identification, apparatus and system thereof
CN110321738A (en) * 2019-07-10 2019-10-11 上海掌门科技有限公司 Information processing method and device
CN113343641A (en) * 2021-06-21 2021-09-03 湖北亿咖通科技有限公司 Equipment identification method, device and system and cloud server
WO2021238954A1 (en) * 2020-05-27 2021-12-02 支付宝(杭州)信息技术有限公司 Installation management of applet applications

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106603586A (en) * 2015-10-14 2017-04-26 阿里巴巴集团控股有限公司 Method for generating equipment identification, apparatus and system thereof
CN110321738A (en) * 2019-07-10 2019-10-11 上海掌门科技有限公司 Information processing method and device
WO2021238954A1 (en) * 2020-05-27 2021-12-02 支付宝(杭州)信息技术有限公司 Installation management of applet applications
CN113343641A (en) * 2021-06-21 2021-09-03 湖北亿咖通科技有限公司 Equipment identification method, device and system and cloud server

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115052041A (en) * 2022-06-16 2022-09-13 平安银行股份有限公司 Channel identification distribution method, device, equipment and storage medium
CN115052041B (en) * 2022-06-16 2024-03-19 平安银行股份有限公司 Channel identifier allocation method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107464117B (en) Block chain based data management method and block chain system
CN110071904B (en) Detection method and system of vehicle-mounted terminal, server and storage medium
JP2021500816A (en) Vehicle-mounted equipment upgrade method and related equipment
CN111263352A (en) OTA (over the air) upgrading method and system of vehicle-mounted equipment, storage medium and vehicle-mounted equipment
CN103679005A (en) Method to enable development mode of a secure electronic control unit
US20180310173A1 (en) Information processing apparatus, information processing system, and information processing method
CN110942302A (en) Block chain certificate revocation and verification method, issuing node and verification node
CN111814129A (en) Digital certificate invalidation and verification method and device
CN113259910B (en) Activation method and device for vehicle-mounted networking equipment
CN114580033A (en) Vehicle-mounted equipment identifier generation method and device and electronic equipment
CN111835505A (en) Activation code generation method and device and computer storage medium
CN111310137A (en) Block chain associated data evidence storing method and device and electronic equipment
CN114879993A (en) Upgrading processing method of software installation package, server and client
CN112585038B (en) Control device for activating a function, motor vehicle having a control device, and method for operating a control device
CN112653735A (en) Vehicle-mounted application data transmission method and device and vehicle
CN111163113A (en) Registration processing method, device, equipment and system
CN116974616B (en) Method for upgrading all electronic control units of whole vehicle through USB flash disk
CN113536342B (en) Block chain-based certificate management method, system, program product and storage medium
CN111884864B (en) Method and device for managing Internet of things equipment
CN114546927B (en) Data transmission method, core, computer readable medium, and electronic device
CN113794716B (en) Network access authentication method, device and equipment for terminal equipment and readable storage medium
CN110737563B (en) Application program information reporting and receiving method and device
CN113271320B (en) Terminal authentication method, device, system, medium and equipment
CN112653767B (en) Digital identity management method and device, electronic equipment and readable storage medium
CN114125764B (en) Internet of vehicles equipment management system, method and device

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