CN108566368A - A kind of data processing method, server and diagnosis connector - Google Patents
A kind of data processing method, server and diagnosis connector Download PDFInfo
- Publication number
- CN108566368A CN108566368A CN201810129354.4A CN201810129354A CN108566368A CN 108566368 A CN108566368 A CN 108566368A CN 201810129354 A CN201810129354 A CN 201810129354A CN 108566368 A CN108566368 A CN 108566368A
- Authority
- CN
- China
- Prior art keywords
- information
- server
- encrypted
- targeted diagnostics
- connector
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/12—Applying verification of the received information
- H04L63/123—Applying verification of the received information received data contents, e.g. message integrity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/08—Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
- H04L9/0861—Generation of secret information including derivation or calculation of cryptographic keys or passwords
- H04L9/0866—Generation of secret information including derivation or calculation of cryptographic keys or passwords involving user or device identifiers, e.g. serial number, physical or biometrical information, DNA, hand-signature or measurable physical characteristics
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
Abstract
The embodiment of the invention discloses a kind of data processing method, server and diagnosis connectors.Wherein, this method includes:Server searches key corresponding with the mark of targeted diagnostics connector when with targeted diagnostics connector interactive information;The key is that the attribute information for the targeted diagnostics connector that the server by utilizing obtains generates;The key pair first information described in the server by utilizing is encrypted to obtain the encrypted first information;The server is sent to the targeted diagnostics connector after being packaged the encrypted first information according to appointment data format.Using the present invention, server and the data transmission procedure diagnosed between connector can be made safer.
Description
Technical field
The present invention relates to a kind of field of computer technology more particularly to data processing method, server and diagnosis connectors.
Background technology
Vehicle diagnosis product has served in daily life great at present.Wherein, diagnosis connector is as vapour
One kind of vehicle diagnostic products, also has received widespread attention.
Usually, miscellaneous equipment (such as server) can diagnose connector to carry out vehicle diagnosis by control.For example, examining
Disconnector can receive the diagnostic instruction sent by miscellaneous equipment (such as server), and be led to automobile according to the diagnostic instruction
Letter, to complete the diagnosis process to automobile.However, diagnosis connector is easily let out with information of the miscellaneous equipment in interactive process
Reveal, be tampered, there are larger safety problems.
Invention content
An embodiment of the present invention provides a kind of data processing method, server and diagnosis connectors, can improve data transmission
The safety of process.
In a first aspect, an embodiment of the present invention provides a kind of data processing methods, including:
Server is searched corresponding close with the mark of targeted diagnostics connector when with targeted diagnostics connector interactive information
Key;The key is that the attribute information for the targeted diagnostics connector that the server by utilizing obtains generates;
The key pair first information described in the server by utilizing is encrypted to obtain the encrypted first information;
The server is sent to the target after being packaged the encrypted first information according to appointment data format and examines
Disconnector.
Optionally, the method further includes:
Server receives encrypted second information being packaged according to appointment data format from the targeted diagnostics connector;
The server verifies the integrality of encrypted second information;
If verification passes through, encrypted second information is to obtain the second letter described in secret key decryption described in the server by utilizing
Breath.
Optionally, the attribute information includes at least one of following:Start BOOT version numbers, sequence number, central processing unit
Information CPUID, MAC address;
When the first information is the first instruction, second information is that targeted diagnostics connector refers to according to described first
Enable obtained response message after executing corresponding function, encrypted second information described in secret key decryption described in the server by utilizing with
After obtaining the second information, the method further includes:
The server executes corresponding function according to second information.
Optionally, the method further includes:
Server stores the correspondence of the mark and key of the targeted diagnostics connector after generating key.
Second aspect, an embodiment of the present invention provides another data processing method, the method includes:
Targeted diagnostics connector receives the encrypted first information being packaged according to appointment data format sent by server;
The targeted diagnostics connector verifies the integrality of the encrypted first information;
If verification passes through, the encrypted first information is to obtain first described in the targeted diagnostics connector secret key decryption
Information.
Optionally, the encrypted first information described in the targeted diagnostics connector secret key decryption with obtain the first information it
Afterwards, the method further includes:
The targeted diagnostics connector obtains the second information;
Second information described in key pair described in the targeted diagnostics connector encrypts to obtain encrypted second information;
The targeted diagnostics connector is sent to described after being packaged encrypted second information according to appointment data format
Server.
Optionally, if the first information is the first instruction, second information is targeted diagnostics connector according to
The response message obtained after first instruction execution corresponding function, before the targeted diagnostics connector obtains the second information, the side
Method further includes:
The targeted diagnostics connector executes corresponding function according to the first information.
The third aspect includes for executing side as described in relation to the first aspect an embodiment of the present invention provides a kind of server
The unit of method.
Fourth aspect includes for executing as described in second aspect an embodiment of the present invention provides a kind of diagnosis connector
The unit of method.
5th aspect, an embodiment of the present invention provides another servers, include at least processor, communication interface and storage
Device, the processor, communication interface and memory are connected with each other, wherein the memory is described for storing computer program
Computer program includes program instruction, and the processor is configured for calling described program instruction, executes such as first aspect institute
The method stated.
6th aspect, an embodiment of the present invention provides another kinds to diagnose connector, including at least processor, communication interface and deposits
Reservoir, the processor, communication interface and memory are connected with each other, wherein the memory is for storing computer program, institute
It includes program instruction to state computer program, and the processor is configured for calling described program instruction, executes such as second aspect
The method.
As it can be seen that encrypted information can be interacted between server and targeted diagnostics connector, and can be examined using the target
The key pair of the disconnector encrypted information is decrypted to obtain information so that data transmission procedure is safer.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
Obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of system architecture diagram provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram of data processing method provided by the invention;
Fig. 3 is the flow diagram of another data processing method provided by the invention;
Fig. 4 is a kind of structural schematic diagram of server provided by the invention;
Fig. 5 is a kind of structural schematic diagram of diagnosis connector provided by the invention;
Fig. 6 is the structural schematic diagram of another server provided by the invention;
Fig. 7 is the structural schematic diagram of another diagnosis connector provided by the invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts
Embodiment shall fall within the protection scope of the present invention.
Referring to Fig. 1, being a kind of Organization Chart of diagnostic system provided in an embodiment of the present invention.The system includes at least one
Server 10, at least one diagnosis connector 20 and automobile 30.The diagnosis connector 20 can respectively with server 10 and automobile 30
Connection is established to be communicated.The connection can be wireless communication connection or wire communication connection.Wherein, server 10 can be with
It is Website server for an individual server or server cluster in internet, such as server 10.The diagnosis connector
20 can be used as targeted diagnostics connector.
The diagnosis connector 20 is stored with attribute information, which may include at least one of following:Start BOOT editions
This number, sequence number, central processing unit information (Central Processing Unit, CPU) ID, media access control (Media
Access Control, MAC) address.The sequence number is to be burned onto the diagnosis connector using diagnosis joint sequence write-in tool
In 20.
The attribute information of oneself can be sent to server 10 by diagnosis connector 20, so that the server 10 connects the diagnosis
First 20 attribute information is registered.After the attribute information that the server 10 obtains diagnosis connector 20, the diagnosis can be utilized
The attribute information of connector 20 generates condition code corresponding with the diagnosis connector 20, and using this feature code as the diagnosis connector 20
Key, to be encrypted and/or decrypt using the information in the key pair interactive process of the diagnosis connector 20.
The information interacted between the server 10 and diagnosis connector 20 is encrypted using the key of the diagnosis connector 20
When information (such as instruction or data), then the diagnosis connector 20 can be utilized when receiving the encrypted information by diagnosing connector 20
The key pair encrypted information be decrypted to obtain the information.The letter interacted between the server 10 and diagnosis connector 20
Breath (includes the use diagnosis connector 20 being packaged according to appointment data format for the data packet formed according to appointment data format
The encrypted information of key) when, then diagnosing connector 20 can be when receiving data packet, according to appointment data format to the data packet
It is parsed to obtain the encrypted information.In one embodiment, parsed to the data packet can be with for the diagnosis connector 20
Including obtaining each field information of the data packet, to the encrypted information is verified (include but not limited to completeness check,
Repeatability verification), and after verifying successfully, obtain the encrypted information.It is noted that when above- mentioned information is instruction,
Diagnosing connector 20 can be according to the instruction execution corresponding function.
Correspondingly, it is needed to 10 interactive information of server (diagnostic data such as obtained from automobile 30) in diagnosis connector 20
When, after diagnosis connector 20 can also utilize the information of the key pair interaction of the diagnosis connector 20 to be encrypted, by the encrypted letter
Breath is sent to server 10, so that the server 10 after the key pair of the diagnosis connector 20 encrypted information decryption using obtaining
The information.Alternatively, after diagnosis connector 20 can also be packed into data packet to the encrypted information according to appointment data format, it will
The data packet is sent to server 10.The server 10 parses the data packet according to appointment data format should be added with obtaining
Close information, and the encrypted information is decrypted to obtain information using the key pair of the diagnosis connector 20.Implement at one
In example, it may include obtaining each field information of the data packet which carries out parsing to the data packet, to the encryption
Data verified (include but not limited to completeness check, repeatability verification), and after verifying successfully, it is encrypted to obtain this
Data.When the data are instruction, server 10 can be according to the instruction execution corresponding function.
In one embodiment, framework shown in FIG. 1 can not include automobile 30.
As it can be seen that system architecture shown in FIG. 1 so that between server and diagnosis connector encrypted information can be interacted, and
The key pair of the diagnosis connector encrypted information can be utilized to be decrypted to obtain information so that data transmission procedure is more
Add safety.
Referring to Fig. 2, being a kind of flow diagram of data processing method provided in an embodiment of the present invention.This method can be with
Applied in system architecture shown in FIG. 1.Specifically, this method may comprise steps of:
S101, server search the mark pair with the targeted diagnostics connector when with targeted diagnostics connector interactive information
The key answered.
In the embodiment of the present invention, server can be stored with the mark pass corresponding with corresponding key of multiple diagnosis connectors
System.For example, 1 counterpart keys 1 of diagnosis connector, diagnosis 2 counterpart keys 2 of connector.Therefore, server is transmitted to targeted diagnostics connector
When data, so that it may find out key corresponding with the mark of the targeted diagnostics connector with the correspondence by storage.
It is obtained it should be noted that the key of the targeted diagnostics connector stored in the server is the server by utilizing
What the attribute information of the targeted diagnostics connector generated.The mark for diagnosing connector can be to be one or more in attribute information, such as
For sequence number, or it is sequence number and MAC Address.
In the embodiment of the present invention, the attribute information of the targeted diagnostics connector of the acquisition can be by the targeted diagnostics connector
It is sent to the server.
In one embodiment, the attribute information of the targeted diagnostics connector of the acquisition can be in the targeted diagnostics connector
After the success of burning sequence number, which is sent to by the targeted diagnostics connector.
In one embodiment, the attribute information of the targeted diagnostics connector of the acquisition can be by miscellaneous equipment from the mesh
After mark diagnosis connector obtains, it is sent to the server.
In one embodiment, key create-rule can be arranged between server and the targeted diagnostics connector.The target
The key for diagnosing connector can be given birth to using the attribute information of the targeted diagnostics connector of acquisition according to the key create-rule
At.The key create-rule includes but not limited to key schedule, the Else Rule that can also be arranged.
In one embodiment, the key of the targeted diagnostics connector stored in the server is that the diagnosis connector obtains
What the attribute information of the targeted diagnostics connector taken generated, and it is sent to the server.
The key pair first information described in S102, the server by utilizing is encrypted to obtain the encrypted first information;
S103, the server are sent to the mesh after being packaged the encrypted first information according to appointment data format
Mark diagnosis connector.
In step S102, the key pair first information that the targeted diagnostics connector may be used in server is encrypted.
In one embodiment, predetermined encryption algorithm may be used in server and the key pair of the targeted diagnostics connector should
The first information is encrypted.Wherein, which can arrange between the server and the targeted diagnostics connector
Encryption Algorithm.
In step s 103, the targeted diagnostics are sent to after which being packaged according to appointment data format
Connector.That is, the server by the encrypted first information according to agreement format be packed into data packet after, can be by data packet
It is sent to the targeted diagnostics connector.
As shown in table 1, a kind of appointment data format enumerated for the embodiment of the present invention:
Table 1
Wherein, the first field, for indicating data head.For example, first field can be 0X55 0XAA, first word
Segment length can be set as 2 bytes.
Second field, for indicating data length.For example, the data length can be the+the four field of third field length
Five field length of length+the.The third field length can be set as 1 byte with the 5th field length.
Third field, the count value for indicating counter.The count value range of the counter can be in 0-255, the meter
Rolling counters forward mode includes but not limited to by the way of cycle plus 1, for indicating whether as same frame data.Pass through counting
It can be to avoid the repetition of data packet.
4th field, for carrying the encrypted information for needing to send.For example, the encrypted information can be the first information
Or second information.
5th field, for indicating check information, which can be used for verifying the complete of the encrypted information of interaction
Whole property.For example, the check information can be to carry out the knot after XOR operation between the data length, count value, encrypted information
Fruit.
In one embodiment, appointment data format shown in the table 1 can not include counter field.Correspondingly, should
Data length field can not include counter field length, which can be according to not including counter field length
Data length and counter field carry out operation after, as progress XOR operation after obtain.The embodiment of the present invention includes but not
It is limited to appointment data format as shown in Table 1, it is numerous to list herein.
S104, targeted diagnostics connector receive encrypted first be packaged according to appointment data format sent by server
Information.
S105, the targeted diagnostics connector verify the integrality of the encrypted first information.
In step S104, targeted diagnostics connector can receive being packaged according to appointment data format from server
The encrypted first information.In step S105, targeted diagnostics connector can verify the integrality of the encrypted first information.
In the embodiment of the present invention, the targeted diagnostics connector can according to appointment data format, to the data packet that receives into
Row parsing is to obtain the encrypted first information.
For example, by taking appointment data format shown in table 1 as an example, which can obtain the data packet received
The 5th field check information and the data length of the second field, the count value of third field, the 4th field it is encrypted
The first information.The integrality that the targeted diagnostics connector verifies the encrypted first information can be:Targeted diagnostics connector by this
The data length of two fields, the count value of third field, the 4th field the encrypted first information carry out XOR operation and obtain the
One check information, and the check information of five field is compared with first check information, if unanimously, verification passes through,
If inconsistent, verify and do not pass through.
For another example, if appointment data format shown in the table 1 does not include counter field, which can obtain
Check information and data length, the encrypted first information of the data packet received.The targeted diagnostics connector verifies the encryption
The integrality of the first information can be:The data length, the encrypted first information are carried out XOR operation by targeted diagnostics connector
The second check information is obtained, and the check information of corresponding field is compared with second check information, if unanimously, verifying
Pass through, if inconsistent, verify and do not pass through.
If S106, verification pass through, the encrypted first information described in the targeted diagnostics connector secret key decryption is to obtain
To the first information.
It, should if targeted diagnostics connector passes through the completeness check of the encrypted first information in the embodiment of the present invention
Targeted diagnostics connector can use the secret key decryption of the targeted diagnostics connector encrypted first information.
It should be noted that the targeted diagnostics connector can be stored with the key of the targeted diagnostics connector, so as to the target
It diagnoses connector and uses the secret key decryption of the targeted diagnostics connector encrypted first information.Wherein, which stores
The targeted diagnostics connector key, can be the targeted diagnostics connector according to the attribute information of oneself, using with server about
What fixed key create-rule generated.
In one embodiment, the key of the targeted diagnostics connector of targeted diagnostics connector storage, can also be by taking
Device be engaged in after obtaining the key of the targeted diagnostics connector using the attribute information of the targeted diagnostics connector, by the targeted diagnostics connector
It is sent to the targeted diagnostics connector.
In one embodiment, which can arrange Encryption Algorithm between the targeted diagnostics connector.The target is examined
Disconnector can use predetermined encryption algorithm and the secret key decryption of the targeted diagnostics connector encrypted first information.
S107, the targeted diagnostics connector execute corresponding function according to the first information.
In the embodiment of the present invention, when the first information is the first instruction, when being such as diagnostic instruction, which connects
Head can execute corresponding function according to the diagnostic instruction, be connected with the targeted diagnostics connector for example, being sent to the diagnostic instruction
Automobile, to be diagnosed to the automobile.
In one embodiment, step S107 is optional step.
As it can be seen that in embodiment shown in Fig. 2, server can be utilized when needing to targeted diagnostics connector interactive information
The key of the targeted diagnostics connector inquired encrypts the first information, and the encrypted first information is according to appointment data lattice
Formula is sent to the targeted diagnostics connector after being packaged, so that the targeted diagnostics connector is in encrypted first letter for receiving the packing
After breath, the integrality of the encrypted first information is verified.The targeted diagnostics connector can be examined after verification passes through using the target
The first information is obtained to execute corresponding function, to ensure after the encrypted first information decryption of the key pair of disconnector
The safety of data transmission procedure so that interactive information is not easy to be cracked and distort.
Referring to Fig. 3, for the flow diagram of another data processing method provided in an embodiment of the present invention.Specifically,
This method may comprise steps of:
It should be noted that step S201-S207, it can be with the step S101-S107 in 2 embodiment of reference chart, the present invention
This will not be repeated here for embodiment.
S208, the targeted diagnostics connector obtain the second information.
In the embodiment of the present invention, which can be that targeted diagnostics connector needs the information interacted with server (such as
Instruction, data or request).For example, second information can be the diagnostic data obtained from automobile.
In one embodiment, when the first information is the first instruction, which can be targeted diagnostics connector
The response message obtained after according to the first instruction execution corresponding function.That is, targeted diagnostics connector executes according to the first information
After corresponding function, server response message can be returned to, and using the response message as second information.
In one embodiment, which can carry the data obtained from miscellaneous equipment (such as automobile),
Such as diagnostic data.
Second information described in key pair described in S209, the targeted diagnostics connector encrypts to obtain encrypted second letter
Breath.
In order to prove that second information is sent by the targeted diagnostics connector, add few possibility distorted by third party,
The targeted diagnostics connector can utilize the key pair of the targeted diagnostics connector second information be encrypted to obtain encrypted the
Two information.
In one embodiment, Encryption Algorithm can be arranged between the targeted diagnostics connector and server, the targeted diagnostics
Connector can be encrypted using the Encryption Algorithm and the key pair of the targeted diagnostics connector second information to be encrypted
The second information.
S210, the targeted diagnostics connector are sent to after being packaged encrypted second information according to appointment data format
The server.
Wherein, which includes but not limited to appointment data format shown in table 1.
S211, server receive encrypted second be packaged according to appointment data format from the targeted diagnostics connector
Information.
S212, the server verify the integrality of encrypted second information.
In step S211, server can receive being packaged according to appointment data format from targeted diagnostics connector
Encrypted second information.In step S212, targeted diagnostics connector can verify the integrality of encrypted second information.
In the embodiment of the present invention, which can parse the data packet received according to appointment data format
To obtain encrypted second information.
For example, by taking appointment data format shown in table 1 as an example, which can obtain the 5th of the data packet received
The data length of the check information of field and the second field is (as the length of third field, the length of the 4th field and the
The sum of the length of five fields), the count value of third field, encrypted second information of the 4th field.Server verification should add
The integrality of the second close information can be:Server is by the data length of second field, the count value of third field, the 4th
Encrypted second information of field carries out XOR operation and obtains third check information, and by the check information of five field and this
Three check informations are compared, if unanimously, verification passes through, if inconsistent, verify and does not pass through.
For another example, if appointment data format shown in the table 1 does not include field where the count value of counter, which can
To obtain the check information and data length, encrypted second information of the data packet received.The server verifies the encryption
The integrality of the second information can be:The data length, encrypted second information are carried out XOR operation by targeted diagnostics connector
The 4th check information is obtained, and the check information of corresponding field is compared with the 4th check information, if unanimously, verifying
Pass through, if inconsistent, verify and do not pass through.
If S213, verification pass through, encrypted second information is to obtain described in secret key decryption described in the server by utilizing
Second information.
In the embodiment of the present invention, if server passes through the completeness check of encrypted second information, the server
The secret key decryption of the targeted diagnostics connector encrypted second information can be used.
It should be noted that the server can be stored with the key of the targeted diagnostics connector, so that the server uses
The secret key decryption of the targeted diagnostics connector encrypted second information.Wherein, the targeted diagnostics connector of the server storage
Key can be attribute information of the server according to targeted diagnostics connector, using the key create-rule with server commitment
It generates.
In one embodiment, the key of the targeted diagnostics connector of the server storage, can also be by targeted diagnostics
Connector sends the key of the targeted diagnostics connector after obtaining key using the attribute information of oneself, by the targeted diagnostics connector
To the server.
In one embodiment, which can arrange Encryption Algorithm between the targeted diagnostics connector.The server
Predetermined encryption algorithm and the secret key decryption of the targeted diagnostics connector encrypted second information can be used.
S214, the server execute corresponding function according to second information.
It should be noted that if second information indicates that the server continues to send information (such as diagnostic instruction), the then clothes
Business device is sent after being handled information using the similar modes of step S201-S203.
In one embodiment, step S214 is optional step.
In one embodiment, if second information indicates that the server terminates to send information, which will stop
Data transmission procedure.
As it can be seen that in embodiment shown in Fig. 3, targeted diagnostics connector can utilize the mesh when with server interactive information
Mark diagnosis connector key come to the second information encrypt, and encrypted second information according to appointment data format be packaged after send
To the server, so that the server after receiving encrypted second information of the packing, verifies encrypted second letter
The integrality of breath.The targeted diagnostics connector is after verification passes through, and can utilizing the key pair of the targeted diagnostics connector, this is encrypted
Second information is obtained after the decryption of second information to execute corresponding function, to realize the transmitted in both directions of encryption information, to
The safety of data transmission procedure is ensured so that interactive information is not easy to be cracked and distort.
Referring to Fig. 4, being a kind of structural schematic diagram of server provided in an embodiment of the present invention.Specifically, the server
May include:
Searching unit 10, for when with targeted diagnostics connector interactive information, searching the mark with the targeted diagnostics connector
Know corresponding key;The key is that the attribute information for the targeted diagnostics connector that the server by utilizing obtains generates.
Encryption unit 20, for being encrypted using the key pair first information to obtain the encrypted first information.
Transmission unit 30, for being sent to the mesh after being packaged the encrypted first information according to appointment data format
Mark diagnosis connector.
In one embodiment, receiving unit 40, for receiving from the targeted diagnostics connector according to appointment data lattice
Encrypted second information that formula has been packaged.
In one embodiment, verification unit 50, the integrality for verifying encrypted second information.
In one embodiment, decryption unit 60, if the verification of verification unit 50 passes through, using described in the secret key decryption
Encrypted second information is to obtain the second information.
In one embodiment, the attribute information includes at least one of following:Start BOOT version numbers, sequence number, in
Central processor information CPUID, MAC address.
In one embodiment, processing unit 70, for being the first instruction in the first information, second information is
Targeted diagnostics connector is in the response message obtained after according to the first instruction execution corresponding function, according to second information
Execute corresponding function.
As it can be seen that in embodiment shown in Fig. 4, server can utilize the attribute using the targeted diagnostics connector obtained to believe
Breath generate key pair send the first information encryption, and by the encrypted first information according to appointment data format transmit to
The targeted diagnostics connector so that the first information that the server is sent is not easy to be tampered, and has effectively ensured data transmission procedure
Safety.
Referring to Fig. 5, for a kind of structural schematic diagram of diagnosis connector provided in an embodiment of the present invention.Specifically, the diagnosis
Connector may include:
Receiving unit 11, for receiving encrypted first letter being packaged according to appointment data format sent by server
Breath;
Verification unit 21, the integrality for verifying the encrypted first information;
Decryption unit 31 utilizes the encrypted first information described in secret key decryption if passing through for the verification of verification unit 21
To obtain the first information.
In one embodiment, unit 41 is obtained, for utilizing described in secret key decryption encrypted first in decryption unit 31
After information is to obtain the first information, the second information is obtained.
In one embodiment, encryption unit 51, for being encrypted using the second information described in the key pair
The second information;
In one embodiment, transmission unit 61, for beating encrypted second information according to appointment data format
The server is sent to after packet.
In one embodiment, processing unit 71, if being the first instruction for the first information, second information is
The response message that targeted diagnostics connector obtains after according to the first instruction execution corresponding function, holds according to the first information
Row corresponding function.
As it can be seen that in embodiment shown in fig. 5, targeted diagnostics connector can verify encrypted the first of the packing received
The integrality of information, and using the secret key decryption of the targeted diagnostics connector encrypted first information to obtain the first information,
So that the information that targeted diagnostics connector receives has more reliability.Also, targeted diagnostics connector can also be believed encrypted second
Breath is transmitted according to appointment data format to the server so that the second information that the targeted diagnostics connector is sent is not easy to be usurped
Change, has effectively ensured the safety of data transmission procedure.
Referring to Fig. 6, for the structural schematic diagram of another server provided in an embodiment of the present invention.Specifically, the service
Device may include:At least one processor 601, such as central processing unit (Central Processing Unit, CPU), at least
One communication interface 602, communication bus 603, at least one processor 604.Wherein, communication interface 602 may include standard
Wireline interface, wireless interface.Wherein, communication bus 603 is for realizing the connection communication between these components.Memory 604 can
Can also be nonvolatile memory (non-to be random access memory (Random Access Memory, RAM)
Volatile memory), a for example, at least magnetic disk storage.Memory 604 optionally can also be at least one and be located at
Storage device far from aforementioned processor 601.Wherein, one group of application program can be stored in memory 604, processor 601 can
With device described in conjunction with Figure 4, the application program stored in memory 604 is called, for executing a kind of data processing side
Method, i.e., for performing the following operations:
When with targeted diagnostics connector interactive information, key corresponding with the mark of targeted diagnostics connector is searched;Institute
The attribute information that key is the targeted diagnostics connector that the server by utilizing obtains is stated to generate;
It is encrypted using the key pair first information to obtain the encrypted first information;
It is sent to the targeted diagnostics connector after the encrypted first information is packaged according to appointment data format.
Optionally, the processor 601 is additionally operable to that the application program stored in the memory 604 is called to execute following step
Suddenly:
Receive encrypted second information being packaged according to appointment data format from the targeted diagnostics connector;
Verify the integrality of encrypted second information;
If verification passes through, using encrypted second information described in the secret key decryption to obtain the second information.
In one embodiment, the attribute information includes at least one of following:Start BOOT version numbers, sequence number, in
Central processor information CPUID, MAC address.
Optionally, when the first information is the first instruction, second information is targeted diagnostics connector according to institute
The response message obtained after the first instruction execution corresponding function is stated, the processor 601 is additionally operable to call in the memory 604
The application program of storage executes following steps:Using encrypted second information described in the secret key decryption to obtain the second information
Later, corresponding function is executed according to second information.
An embodiment of the present invention provides a kind of computer program products, wherein the instruction in the computer program product
When being executed by processor, the data processing method as shown in the application Fig. 2 embodiments or Fig. 3 embodiments can be executed.
The embodiment of the present invention additionally provides a kind of storage medium, wherein when the instruction in the storage medium is by server
When processor executes so that the server is able to carry out at the data as shown in the application Fig. 2 embodiments or Fig. 3 embodiments
Reason method.
As it can be seen that in embodiment shown in fig. 6, server can utilize the attribute using the targeted diagnostics connector obtained to believe
Breath generate key pair send the first information encryption, and by the encrypted first information according to appointment data format transmit to
The targeted diagnostics connector so that the first information that the server is sent is not easy to be tampered, and has effectively ensured data transmission procedure
Safety.
Referring to Fig. 7, for another structural schematic diagram for diagnosing connector provided in an embodiment of the present invention.Specifically, this is examined
Disconnector may include:At least one processor 701, such as central processing unit (Central Processing Unit, CPU),
At least one communication interface 702, communication bus 703, at least one processor 704.Wherein, communication interface 702 may include mark
Wireline interface, the wireless interface of standard.Wherein, communication bus 703 is for realizing the connection communication between these components.Memory
704 can be random access memory (Random Access Memory, RAM), can also be nonvolatile memory (non-
Volatile memory), a for example, at least magnetic disk storage.Memory 704 optionally can also be at least one and be located at
Storage device far from aforementioned processor 701.Wherein, one group of application program can be stored in memory 704, processor 701 can
With device described in conjunction with Figure 5, the application program stored in memory 704 is called, for executing a kind of data processing side
Method, i.e., for performing the following operations:
Receive the encrypted first information being packaged according to appointment data format sent by server;
Verify the integrality of the encrypted first information;
If verification passes through, using the encrypted first information described in secret key decryption to obtain the first information.
Optionally, the processor 701 is additionally operable to that the application program stored in the memory 704 is called to execute following step
Suddenly:
After using the encrypted first information described in secret key decryption to obtain the first information, the second information is obtained;
Second information described in key pair described in the targeted diagnostics connector encrypts to obtain encrypted second information;
The targeted diagnostics connector is sent to described after being packaged encrypted second information according to appointment data format
Server.
In one embodiment, if the first information is the first instruction, second information is that targeted diagnostics connector exists
According to the response message obtained after the first instruction execution corresponding function, the processor 701 is additionally operable to call the storage
The application program stored in device 704 executes following steps:Before obtaining the second information, executed according to the first information corresponding
Function.
An embodiment of the present invention provides a kind of computer program products, wherein the instruction in the computer program product
When being executed by processor, the data processing method as shown in the application Fig. 2 embodiments or Fig. 3 embodiments can be executed.
The embodiment of the present invention additionally provides a kind of storage medium, wherein when the instruction in the storage medium is by diagnosis connector
Processor when executing so that the diagnosis connector is able to carry out as shown in the application Fig. 2 embodiments or Fig. 3 embodiments number
According to processing method.
As it can be seen that in embodiment shown in Fig. 7, targeted diagnostics connector can verify encrypted the first of the packing received
The integrality of information, and using the secret key decryption of the targeted diagnostics connector encrypted first information to obtain the first information,
So that the information that targeted diagnostics connector receives has more reliability.Also, targeted diagnostics connector can also be believed encrypted second
Breath is transmitted according to appointment data format to the server so that the second information that the targeted diagnostics connector is sent is not easy to be usurped
Change, has effectively ensured the safety of data transmission procedure.
Each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also be each
Unit physically exists alone, and can also be during two or more units are integrated in one unit.Above-mentioned integrated unit was both
Can be realized in the form of sampling hardware, can also sampling software functional unit form realize.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium
In, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
It is above disclosed to be only a preferred embodiment of the present invention, the power of the present invention cannot be limited with this certainly
Sharp range, those skilled in the art can understand all or part of the processes for realizing the above embodiment, and is weighed according to the present invention
Equivalent variations made by profit requirement, still belong to the scope covered by the invention.
Claims (11)
1. a kind of data processing method, which is characterized in that the method includes:
Server searches key corresponding with the mark of targeted diagnostics connector when with targeted diagnostics connector interactive information;
The key is that the attribute information for the targeted diagnostics connector that the server by utilizing obtains generates;
The key pair first information described in the server by utilizing is encrypted to obtain the encrypted first information;
The server is sent to the targeted diagnostics after being packaged the encrypted first information according to appointment data format and connects
Head.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
Server receives encrypted second information being packaged according to appointment data format from the targeted diagnostics connector;
The server verifies the integrality of encrypted second information;
If verification passes through, encrypted second information is to obtain the second information described in secret key decryption described in the server by utilizing.
3. according to the method described in claim 2, it is characterized in that, the attribute information includes at least one of following:Start
BOOT version numbers, sequence number, central processing unit information CPUID, MAC address;
When the first information is the first instruction, second information is that targeted diagnostics connector is held according to first instruction
The response message obtained after row corresponding function, encrypted second information described in secret key decryption described in the server by utilizing is to obtain
After second information, the method further includes:
The server executes corresponding function according to second information.
4. according to the method described in claim 3, it is characterized in that, the method further includes:
Server stores the correspondence of the mark and key of the targeted diagnostics connector after generating key.
5. a kind of data processing method, which is characterized in that the method includes:
Targeted diagnostics connector receives the encrypted first information being packaged according to appointment data format sent by server;
The targeted diagnostics connector verifies the integrality of the encrypted first information;
If verification passes through, the encrypted first information is to obtain the first letter described in the targeted diagnostics connector secret key decryption
Breath.
6. according to the method described in claim 5, it is characterized in that, being encrypted described in the targeted diagnostics connector secret key decryption
The first information to obtain the first information after, the method further includes:
The targeted diagnostics connector obtains the second information;
Second information described in key pair described in the targeted diagnostics connector encrypts to obtain encrypted second information;
The targeted diagnostics connector is sent to the service after being packaged encrypted second information according to appointment data format
Device.
7. if according to the method described in claim 6, it is characterized in that, the first information is the first instruction, described second believes
Breath is the response message that targeted diagnostics connector obtains after according to the first instruction execution corresponding function, and the targeted diagnostics connect
Before head obtains the second information, the method further includes:
The targeted diagnostics connector executes corresponding function according to the first information.
8. a kind of server, which is characterized in that include for executing the method as described in claim 1-4 any claims
Unit.
9. a kind of diagnosis connector, which is characterized in that include for executing the method as described in claim 5-7 any claims
Unit.
10. a kind of server, which is characterized in that include at least processor, communication interface and memory, the processor, communication
Interface and memory are connected with each other, wherein for the memory for storing computer program, the computer program includes program
Instruction, the processor are configured for calling described program instruction, execute method according to any one of claims 1-4.
11. a kind of diagnosis connector, which is characterized in that include at least processor, communication interface and memory, the processor leads to
Believe that interface and memory are connected with each other, wherein for the memory for storing computer program, the computer program includes journey
Sequence instructs, and the processor is configured for calling described program instruction, executes such as any one of them sides claim 5-7
Method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810129354.4A CN108566368B (en) | 2018-02-08 | 2018-02-08 | Data processing method, server and diagnosis connector |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810129354.4A CN108566368B (en) | 2018-02-08 | 2018-02-08 | Data processing method, server and diagnosis connector |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108566368A true CN108566368A (en) | 2018-09-21 |
CN108566368B CN108566368B (en) | 2021-04-02 |
Family
ID=63531187
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810129354.4A Active CN108566368B (en) | 2018-02-08 | 2018-02-08 | Data processing method, server and diagnosis connector |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108566368B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111221317A (en) * | 2018-11-27 | 2020-06-02 | 广州汽车集团股份有限公司 | Automobile diagnosis data processing method and system |
CN111624983A (en) * | 2020-05-28 | 2020-09-04 | 深圳市元征科技股份有限公司 | Synchronous connection method and vehicle remote diagnosis system |
CN111857103A (en) * | 2020-07-31 | 2020-10-30 | 深圳市元征科技股份有限公司 | Vehicle diagnosis method, device, equipment and storage medium |
CN115017529A (en) * | 2022-08-05 | 2022-09-06 | 深圳市星卡软件技术开发有限公司 | Encryption method for automobile diagnosis software |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103530533A (en) * | 2013-11-05 | 2014-01-22 | 北京中天安泰信息科技有限公司 | Digital rights management method and re-trading method |
CN106713264A (en) * | 2016-11-18 | 2017-05-24 | 郑州信大捷安信息技术股份有限公司 | Method for vehicle safety remote control and diagnosis and system thereof |
CN107272649A (en) * | 2017-07-05 | 2017-10-20 | 东南(福建)汽车工业有限公司 | Malfunction remote diagnosis system and method |
-
2018
- 2018-02-08 CN CN201810129354.4A patent/CN108566368B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103530533A (en) * | 2013-11-05 | 2014-01-22 | 北京中天安泰信息科技有限公司 | Digital rights management method and re-trading method |
CN106713264A (en) * | 2016-11-18 | 2017-05-24 | 郑州信大捷安信息技术股份有限公司 | Method for vehicle safety remote control and diagnosis and system thereof |
CN107272649A (en) * | 2017-07-05 | 2017-10-20 | 东南(福建)汽车工业有限公司 | Malfunction remote diagnosis system and method |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111221317A (en) * | 2018-11-27 | 2020-06-02 | 广州汽车集团股份有限公司 | Automobile diagnosis data processing method and system |
CN111221317B (en) * | 2018-11-27 | 2021-04-30 | 广州汽车集团股份有限公司 | Automobile diagnosis data processing method and system |
CN111624983A (en) * | 2020-05-28 | 2020-09-04 | 深圳市元征科技股份有限公司 | Synchronous connection method and vehicle remote diagnosis system |
CN111857103A (en) * | 2020-07-31 | 2020-10-30 | 深圳市元征科技股份有限公司 | Vehicle diagnosis method, device, equipment and storage medium |
CN111857103B (en) * | 2020-07-31 | 2022-04-19 | 深圳市元征科技股份有限公司 | Vehicle diagnosis method, device, equipment and storage medium |
CN115017529A (en) * | 2022-08-05 | 2022-09-06 | 深圳市星卡软件技术开发有限公司 | Encryption method for automobile diagnosis software |
WO2024027301A1 (en) * | 2022-08-05 | 2024-02-08 | 深圳市星卡软件技术开发有限公司 | Encryption method for automobile diagnosis software |
Also Published As
Publication number | Publication date |
---|---|
CN108566368B (en) | 2021-04-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108566368A (en) | A kind of data processing method, server and diagnosis connector | |
CN111934879B (en) | Encryption method, device, equipment and medium for data transmission of internal and external network system | |
ES2917200T3 (en) | Verification of data processes in a network of computing resources | |
CN110460439A (en) | Information transferring method, device, client, server-side and storage medium | |
CN108322461A (en) | Method, system, device, equipment and the medium of application program automated log on | |
CN108347361B (en) | Application program testing method and device, computer equipment and storage medium | |
CN110096894B (en) | Data anonymous sharing system and method based on block chain | |
CN106372497A (en) | Application programming interface (API) protection method and device | |
CN109740309A (en) | A kind of document protection method and device | |
US20160134495A1 (en) | Logging device and log aggregation device | |
CN110995720B (en) | Encryption method, device, host terminal and encryption chip | |
CN110505066A (en) | A kind of data transmission method, device, equipment and storage medium | |
CN110493251A (en) | A kind of data processing method, device, electronic equipment and storage medium | |
CN110598377A (en) | Software serial number management method and device based on block chain | |
CN110519274A (en) | Block chain information transmission method, device, equipment and storage medium | |
CN113037727A (en) | Message information processing method and device, electronic equipment and storage medium | |
CN110581838B (en) | Method for continuously requesting data stream, electronic device and computer equipment | |
CN104601572B (en) | A kind of security message transmission method based on trusted infrastructure | |
CN115022012B (en) | Data transmission method, device, system, equipment and storage medium | |
CN110034922A (en) | Request processing method, processing unit and requests verification method, verifying device | |
CN107277054A (en) | A kind of method and system of data integrity validation | |
CN111786938B (en) | Method, system and electronic equipment for preventing malicious resource acquisition | |
CN107592294A (en) | Data reporting method and device | |
CN107086918A (en) | A kind of client validation method and server | |
CN113421092A (en) | Block chain system, client and storage system and method of transaction data |
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 |