WO2020135855A1 - 汽车通信接口设备及其认证方法 - Google Patents

汽车通信接口设备及其认证方法 Download PDF

Info

Publication number
WO2020135855A1
WO2020135855A1 PCT/CN2019/129774 CN2019129774W WO2020135855A1 WO 2020135855 A1 WO2020135855 A1 WO 2020135855A1 CN 2019129774 W CN2019129774 W CN 2019129774W WO 2020135855 A1 WO2020135855 A1 WO 2020135855A1
Authority
WO
WIPO (PCT)
Prior art keywords
authentication
communication interface
interface device
function
executed
Prior art date
Application number
PCT/CN2019/129774
Other languages
English (en)
French (fr)
Inventor
蒋云
Original Assignee
深圳市道通科技股份有限公司
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 深圳市道通科技股份有限公司 filed Critical 深圳市道通科技股份有限公司
Publication of WO2020135855A1 publication Critical patent/WO2020135855A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • H04W4/44Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for communication between vehicles and infrastructures, e.g. vehicle-to-cloud [V2C] or vehicle-to-home [V2H]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Definitions

  • This application relates to the technical field of automotive diagnostic products, in particular to an automotive communication interface device and its authentication method.
  • a car diagnostic product Before performing a certain function (for example, establishing a communication connection with an automobile control system), a car diagnostic product usually needs to authenticate a car communication interface device to ensure that the function can be smoothly executed.
  • the device authentication process is usually completed with a dedicated chip built into the automotive communication interface device.
  • the dedicated chip is usually packaged and fixed in the device before the product leaves the factory. This makes expansion or modification of dedicated chips almost impossible. Moreover, due to the limitation of hardware cost, dedicated chips usually only have very limited storage space.
  • the embodiments of the present invention aim to provide an automobile communication interface device and an authentication method thereof that can solve the problems of poor flexibility and poor security of existing device authentication methods.
  • the embodiments of the present invention provide the following technical solutions:
  • the authentication method includes:
  • the authentication element calculate and obtain the corresponding first authentication value
  • the authentication element includes: a random number and an authentication algorithm; and calculating and obtaining the corresponding first authentication value according to the authentication element includes:
  • the corresponding first authentication value is calculated through the corresponding authentication algorithm.
  • the function to be executed includes upgrading firmware or establishing a communication link n, where n is a positive integer from 1 to N, N is the total number of available protocols, and each protocol corresponds to a communication link.
  • the method further includes: receiving a selection instruction from a host computer, and determining the function to be performed according to the selection instruction.
  • the determining and uploading at least one authentication element to the server includes: generating a random number and uploading to the server through the host computer, the server is further used to receive the selection instruction from the host computer To determine the function to be performed.
  • the method when the function to be performed is to establish a communication link n, the method further includes:
  • An automotive communication interface device includes a diagnostic module for performing at least one function to be executed and a diagnostic module for executing the Before performing the function, the authentication module for device authentication is characterized by:
  • the authentication module includes an authentication input unit, an authentication calculation unit, a comparison unit, and a communication unit;
  • the authentication input unit is used to determine at least one authentication element related to the function to be executed in the automobile communication interface device;
  • the authentication calculation unit is connected to the authentication input unit to calculate and obtain the corresponding first authentication value;
  • the communication unit is used to upload the authentication element to a server and receive a second authentication value from the server; the second authentication value is calculated and obtained by the server according to the authentication element;
  • the comparison unit is respectively connected to the communication unit and the authentication calculation unit, and is used to determine whether the first authentication value and the second authentication value match;
  • the diagnostic module is connected to the comparison unit, executes the function to be executed when the comparison unit outputs a first signal, and refuses to execute the function to be executed when the comparison unit outputs a second signal.
  • the authentication element includes: a random number and an authentication algorithm
  • the authentication input unit includes: a random number generator and an authentication algorithm selector
  • the random number generator is used to generate one or more random numbers; the authentication algorithm selector is used to determine a corresponding authentication algorithm according to the function to be executed.
  • the function to be executed includes upgrading firmware or establishing a communication link n, where n is a positive integer from 1 to N, N is the total number of available protocols, and each protocol corresponds to a communication link.
  • the automotive communication interface device is a lower computer; the lower computer establishes a communication connection with the upper computer through the communication unit, receives a selection instruction from the upper computer and determines the to-be-executed according to the selection instruction Features.
  • the upper computer communicates with the server, provides the server with the selection instruction and the random number, and feeds back the second authentication value to the lower computer.
  • the diagnostic module when the diagnostic module refuses to establish the communication link n according to the second signal output by the comparison unit;
  • the diagnostic module updates the function to be executed to establish a communication link m;
  • the authentication module performs device authentication again based on the updated function to be executed; m and n are different positive integers, and the value range of m is between 1 and N.
  • the authentication method provided by the embodiment of the present invention is completed by using a server located on the network side, without adding an additional hardware chip to the hardware, which is beneficial to reducing product costs.
  • the server on the network side does not have the limitation of the built-in hardware chip, and can have strong performance so that the authentication method can be expanded to obtain very good flexibility and higher security.
  • FIG. 1 is a schematic diagram of an application scenario of an automobile communication interface device according to an embodiment of the invention.
  • FIG. 2 is a schematic structural diagram of an automobile communication interface device provided by one embodiment of the present invention.
  • FIG. 3 is a schematic diagram of an application scenario of a lower computer of an automobile communication interface device provided by one embodiment of the present invention.
  • FIG. 4 is a method flowchart of an authentication method provided by one embodiment of the present invention.
  • FIG. 5 is a method flowchart of an authentication method provided by another embodiment of the present invention.
  • FIG. 6 is a flowchart of the authentication method shown in FIG. 5 when establishing a communication link
  • FIG. 7 is a flowchart of the authentication method shown in FIG. 5 when upgrading firmware.
  • FIG. 1 is a schematic diagram of an application scenario of a vehicle-to-vehicle communication interface device provided by an embodiment of the present invention.
  • the entire application scenario includes a car 10 and a car communication interface device 20 connected to the car.
  • the automobile 10 may specifically be any type of motor vehicle, such as a truck or a car. It has a complete electronic control system for coordinating and controlling the vehicle in accordance with the operating instructions of the driver, etc., and real-time monitoring of one or more vehicle parameters to ensure the reliable operation of the vehicle 10.
  • the automobile 10 may also have at least one hardware communication interface (such as an OBD interface), which is used to establish a communication connection with an external device and complete data exchange and other processes.
  • a hardware communication interface such as an OBD interface
  • the automotive communication interface device 20 can be applied to any type of vehicle diagnostic product for connecting to an electronic control system to read one or more items of data information. Specifically, it can be wired or wirelessly connected to the hardware communication interface of the automobile 10 to establish a physical communication connection.
  • the car communication interface device 20 will first perform the following device authentication process:
  • the authentication chip calculates the input random number according to the authentication algorithm built in itself, generates second authentication information, and returns the authentication information to the diagnostic device.
  • the system also calls the authentication algorithm stored in the system and performs calculation based on the random number to obtain the first authentication information.
  • the embodiments of the present invention provide an automobile communication interface device that uses a server for device authentication. It has a suitable communication unit, establishes a communication connection with a server on the network side (ie, the cloud), and replaces the authentication chip with the server. Please continue to refer to FIG. 1.
  • the scenario further includes a server 30 and a communication network 40.
  • the server 30 is a device remotely deployed in the cloud. Specifically, it can be a specific entity or a part of a functional unit of a large cluster server, as long as it can allocate the required storage space and computing power for the authentication function of automobile communication.
  • the communication network 40 refers to a network that establishes a communication connection between the server 30 and the car communication interface device 20, and may specifically be Bluetooth, WiFi, a mobile cellular network, or a dedicated local area network, as long as the server 30 and the car communication interface device 20 are allowed As a network node, it is sufficient to implement data interaction between the two.
  • the automotive communication interface device may include a diagnosis module 21 and an authentication module 22.
  • the diagnostic module 21 is used to execute at least one function to be executed.
  • the authentication module 22 is used to perform authentication before the diagnostic module executes the function to be executed to determine whether the device can normally perform the function.
  • the diagnostic module may integrate multiple different functions, such as upgrading firmware and establishing communication links based on different diagnostic protocols.
  • “communication link n" may be used to denote a communication link established based on different diagnostic protocols.
  • n is a positive integer from 1 to N, and each value corresponds to a diagnostic protocol.
  • n may have three values of 1-3, respectively corresponding to the above three protocols.
  • the diagnosis module 21 determines whether the functions to be executed can be normally executed or refuses to execute the functions to be executed based on the authentication result of the authentication module 22.
  • the authentication module 22 may include an authentication input unit 221, an authentication calculation unit 222, a comparison unit 223 and a communication unit 224.
  • the authentication input unit 221 is used to determine at least one authentication element.
  • the authentication calculation unit 222 is connected to the authentication input unit 221 to calculate and obtain a corresponding first authentication value.
  • authentication is based on the assumption that under the same calculation rules, the same input must be able to get the same output.
  • authentication element is used to indicate that one or more variables are required as inputs during authentication.
  • the specific authentication elements can be determined according to the actual situation, such as a set of random numbers.
  • the authentication elements determined according to specific needs include random numbers and authentication algorithms.
  • the authentication input unit 221 may be composed of a random number generator 2211 and an authentication algorithm selector 2212.
  • the random number generator 2211 is a unit for generating one or more random numbers. Specifically, any suitable method or principle chip or electronic device may be used.
  • the authentication algorithm selector 2212 is a selection unit for determining the corresponding authentication algorithm according to the function to be executed.
  • the function to be executed refers to the function that the diagnosis module determines to be executed. Among the many different functions that the diagnosis module can perform or implement, the user selects or the actual situation determines.
  • the authentication algorithm can be any suitable function, and the unique output variable can be calculated and determined according to the input variable.
  • the vehicle communication interface device can also be configured with a variety of different authentication algorithms, which are used for authentication of different functions, thereby improving Flexibility of authentication methods.
  • the communication unit 224 is a unit for establishing a communication connection with the server. Based on the communication channel provided by the communication unit 224, the authentication element may be uploaded to the server and receive the second authentication value from the server.
  • the second authentication value is an output value calculated by the server according to the authentication element.
  • the “first” and “second” of the first authentication value and the second authentication value are only used to distinguish that the subjects whose calculation obtained the authentication value are different, and are not used to limit the two authentication values themselves.
  • the output value may have any suitable type, and is not limited to a numeric value, such as a floating-point numeric value, an integer numeric value, or a specific character string.
  • the comparison unit 223 has two input terminals and one output terminal. Wherein, the two input terminals are respectively connected to the communication unit 224 and the authentication calculation unit 222, and are used to receive the first authentication value and the second authentication value.
  • the output end outputs the first signal of successful authentication of the automotive communication interface device, or the first authentication value and the When the second authentication value does not match, a second signal that the authentication of the vehicle communication interface device fails is output.
  • the diagnostic module 21 may determine the current authentication result of the function to be executed based on the signal output by the output terminal. That is, when the comparison unit outputs the first signal, the function to be executed is executed, and when the comparison unit outputs the second signal, the function to be executed is refused to be executed.
  • the specific structure of the comparison unit 223 can be determined according to the actually set matching rules and modes, and can be implemented by using a hardware circuit, a software program, and/or a combination of software and hardware. The details are well known to those skilled in the art, and will not be repeated here.
  • the vehicle communication interface device may be a lower computer, and cooperate with the corresponding upper computer to complete the device authentication process.
  • 3 is a schematic diagram of an application scenario of a lower computer of an automobile communication interface device provided by an embodiment of the present invention. As shown in FIG. 3, the application scenario includes: a lower computer 41, an upper computer 42, and a server 43 of an automobile communication interface device.
  • a communication channel is established between the lower computer 41 and the upper computer 42 of the automobile communication interface device, and the upper computer 42 and the server 43, which can realize two-way data transmission.
  • the communication channel can specifically use any type of wired or wireless communication method.
  • the same or different communication methods can also be used between the two communication channels. For example, a cable connection is used between the lower computer 41 and the upper computer 42 of the car communication interface device, and a wireless cellular network is used between the upper computer 42 and the server 43 connection.
  • the upper computer 42 refers to a computer device that can directly issue control commands. It is located at the uppermost layer of user interaction, and can display various feedback information (such as changes in various signals) to the user on the screen and collect user instructions through the input device to issue corresponding manipulation instructions.
  • the host computer 42 can also choose to use any other type of computer equipment, such as a personal computer, tablet computer, mobile phone, or other smart electronic equipment that can establish a connection with the server.
  • any other type of computer equipment such as a personal computer, tablet computer, mobile phone, or other smart electronic equipment that can establish a connection with the server.
  • the lower computer 41 of the vehicle communication interface device is a computer that directly controls the device to obtain the vehicle status or related parameters. It is usually used to receive the control commands issued by the host computer to interpret the corresponding timing signals to directly control the car, or to read the status data of the vehicle (generally analog), and then convert it into a digital signal to feed back to the host computer to User display.
  • the lower computer 41 of the automobile communication interface device may be implemented by a PLC, a single-chip microcomputer, a microprocessor, or some other low-level processor devices.
  • the lower computer 41 of the vehicle communication interface device receives the selection command from the upper computer through the communication unit. Then, the received selection instruction is parsed, and the current function to be executed is determined accordingly. Finally, the first authentication value is calculated according to the generated random number and the authentication algorithm corresponding to the function to be executed.
  • the upper computer 42 also uses its own communication module to provide the server with the selection instruction and the random number from the lower computer 41 of the car communication interface device to enable the server to calculate and obtain the second authentication value accordingly.
  • the second authentication value calculated by the server is provided to the lower computer 41 of the vehicle communication interface device via the upper computer 42 to complete the device authentication process.
  • the host computer 42 can also provide assistance by issuing instructions to update the to-be-executed function, which becomes based on another The communication link m of the diagnostic protocol.
  • the authentication module of the lower computer 41 of the automobile communication interface device performs device authentication again to try to establish a communication link with the automobile.
  • m and n are different positive integers, and the value range of m is between 1 and N, which is used to indicate that the communication link m is a communication link with unsuccessful authentication n is a communication link based on a different diagnostic protocol .
  • FIG. 3 exemplarily discloses the flow of data information between the lower computer 41, the upper computer 42, and the server 43 of the automobile communication interface device.
  • those skilled in the art can also adjust the functional steps to be executed by the automotive communication interface device to the upper computer 42 or the lower computer 41 according to the needs of the actual situation (for example, the upper computer 42 generates a random number). All these changes or adjustments are within the scope of the present invention.
  • the computer software can be stored in a computer-readable storage medium.
  • the storage medium may be a magnetic disk, an optical disk, a read-only storage memory or a random storage memory.
  • FIG. 4 is a method flowchart of an authentication method provided by an embodiment of the present invention. As shown in FIG. 4, the method performed by the automotive communication interface device includes at least the following steps:
  • the specific authentication elements used can be selected according to the actual situation and related to the function to be performed. For example, a set of random numbers or authentication algorithms. These authentication elements can be provided to the server in any suitable format and transmission form, such as adding appropriate check digits to ensure the reliability of data transmission.
  • the first authentication value is an output value calculated by the automobile communication interface device according to the authentication element that has been determined, calling a preset calculation rule from the program.
  • the second authentication value is the output value calculated by the server according to the authentication element uploaded by the vehicle communication interface device.
  • step 440 Determine whether the first authentication value and the second authentication value match. If yes, go to step 450; if no, go to step 460.
  • Matching means that the first authentication value and the second authentication value are kept the same, which can satisfy the above-mentioned authentication premise—“having the same output”. Specifically, any suitable measurement benchmark or comparison method can be used to complete the matching
  • the vehicle communication interface device executes the to-be-executed function only when the vehicle communication interface device is successfully authenticated.
  • the system of the vehicle communication interface device will refuse to execute the function to be executed.
  • the server Compared with the built-in authentication chip, the server has almost unlimited storage space and computing power. Therefore, in a preferred embodiment, the authentication method can use a variety of different authentication algorithms to meet the increasingly rich integration of automotive communication interface devices, and assign different authentication algorithms to different functions of the automotive communication interface device, which is effective Increase the flexibility of equipment certification.
  • the authentication elements of the authentication method include random numbers and authentication algorithms. It can include the following steps:
  • the random number can be generated by the vehicle communication interface device according to an appropriate generation principle.
  • the size and number of random numbers can be determined according to the actual situation.
  • the to-be-executed function refers to a function that the automobile communication interface device currently needs to perform.
  • different authentication algorithms correspond to different functions and have a mapping relationship. Therefore, after the function to be executed is determined, the authentication algorithm to be used can be uniquely determined.
  • the function to be executed may include upgrading firmware or establishing a communication link n.
  • upgrading firmware refers to updating the firmware program in the vehicle communication interface device.
  • the establishment of a communication link n refers to the establishment of a communication link based on a specific diagnostic protocol.
  • n ranges from 1 to N.
  • N is the total number of protocols integrated in the automotive communication interface device and available for selection.
  • the communication links corresponding to different protocols can be represented by the communication link n.
  • the authentication result includes successful authentication or failed authentication of the automotive communication interface device.
  • the server uses the same random number and calls the authentication algorithm corresponding to the function to be executed.
  • the vehicle communication interface device may only assume the role of the lower computer, and indirectly establish a communication connection with the server through an additional upper computer.
  • the random number generated by the lower computer can be uploaded to the server through the upper computer.
  • the upper computer can perform one or more functions and cooperate with the lower computer to complete the entire authentication process.
  • the upper computer can provide selection instructions to the lower computer and the server to determine the function to be executed.
  • the selection instruction refers to a user manipulation instruction collected by the host computer and requesting the automobile communication interface device to perform a certain function.
  • the host computer may further provide a new control instruction, and choose to establish a communication link m of another diagnostic protocol, which will perform the function Update to "establish communication link m".
  • Both the server and the lower computer can re-authenticate the function of "establish communication link m" according to the control instruction, hoping to enable the vehicle communication interface device to successfully establish a communication connection with the vehicle.
  • the authentication method provided by the embodiment of the present invention is implemented based on a server, and does not need to use a dedicated authentication chip, thereby reducing the hardware cost of the device.
  • the authentication algorithm is set to multiple, with multiple authentication can provide high security. Even if the authentication algorithm is inadvertently leaked or cracked, the security of the car diagnostic product can be restored simply by updating the authentication algorithm, and is no longer restricted by the inconvenient modification of the built-in authentication chip.
  • FIG. 6 and 7 are specific examples of the authentication method shown in FIG. 5 to authenticate different functions to be executed.
  • the upper computer can provide the server and the lower computer with selection instructions 1 corresponding to the diagnostic protocol 1 (S610).
  • Both the lower computer and the server use the same random number and the authentication algorithm 1 corresponding to the selection instruction 1 to perform operations, respectively obtain the first authentication value and the second authentication value, and determine whether the authentication is successful according to this (S620).
  • the lower computer When the authentication is successful, the lower computer performs the normal function and establishes a communication link based on the diagnostic protocol 1 (S630).
  • the host computer communicates normally with the electronic control system of the car through the communication link to complete the task of car diagnosis (S640).
  • the lower computer cannot execute the function of establishing the communication link 1 (S650).
  • the host computer cannot normally communicate with the electronic control system of the car through the communication link 1 (S660).
  • the upper computer can provide the server and the lower computer with selection instructions 2 corresponding to the upgraded firmware, respectively (S710).
  • Both the lower computer and the server use the same random number and the authentication algorithm 2 corresponding to the selection instruction 2 to perform operations, respectively obtain the first authentication value and the second authentication value and determine whether the authentication is successful according to this (S720).
  • the upper computer upgrades the firmware program of the lower computer (S730).
  • the upper computer cannot upgrade the firmware program of the lower computer (S740).

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本发明涉及一种汽车通信接口设备及其认证方法。该汽车通信接口设备包括:确定与汽车通信接口设备中的待执行功能相关的至少一个认证要素并上传至服务器;根据所述认证要素,计算获得对应的第一认证值;接收由所述服务器根据所述认证要素计算获得的第二认证值;判断所述第一认证值和所述第二认证值是否匹配;若是,确定所述汽车通信接口设备认证成功,执行所述待执行功能;若否,确定所述汽车通信接口设备认证失败。该认证方法使用位于网络端的服务器来完成,不需要在硬件上额外增加硬件芯片,有利于减少产品成本。而且,位于网络端的服务器没有内置硬件芯片的限制,可以具有强大的性能以使得认证方法可以扩展得到良好的灵活性和更高的安全性。

Description

汽车通信接口设备及其认证方法
本申请要求于2018年12月29日提交中国专利局、申请号为201811639103.7、申请名称为“汽车通信接口设备及其认证方法”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及汽车诊断产品技术领域,尤其涉及一种汽车通信接口设备及其认证方法。
背景技术
汽车诊断产品在执行某项功能(例如建立与汽车控制系统之间的通信连接)前,通常都需要进行对汽车通信接口设备进行认证,以确保功能可以被顺利的执行。该设备认证过程通常利用在内置在汽车通信接口设备中的专用芯片来完成。
作为硬件电路的一部分,专用芯片通常在产品出厂前已经封装固定设置在设备内。这使得对专用芯片的扩展或者更改几乎不可能。而且,受硬件成本的限制,专用芯片通常只具有很有限的存储空间。
这些硬件上的限制使得设备认证方法在日常使用过程中灵活性较差,无法很好的适应汽车通信接口设备的实际需要(例如集成有越来越多的功能),并且安全性能较差,容易被破解。如何避免这些限制,提高设备认证方法的安全性和灵活性是迫切需要解决的技术问题。
发明内容
本发明实施例旨在提供一种能够解决现有设备认证方法灵活性差、安全性不佳的汽车通信接口设备及其认证方法。
为解决上述技术问题,本发明实施例提供以下技术方案:
一种汽车通信接口设备的认证方法。其中,所述认证方法包括:
确定与汽车通信接口设备中的待执行功能相关的至少一个认证要素并上传至服务器;
根据所述认证要素,计算获得对应的第一认证值;
接收由所述服务器根据所述认证要素计算获得的第二认证值;
判断所述第一认证值和所述第二认证值是否匹配;
若是,确定所述汽车通信接口设备认证成功,则执行所述待执行功能;
若否,确定所述汽车通信接口设备认证失败。
在一些实施例中,所述认证要素包括:随机数和认证算法;所述根据所述认证要素,计算获得对应的第一认证值,包括:
根据所述待执行功能,确定对应的认证算法;
以所述随机数为基础,通过所述对应的认证算法,计算获得对应的第一认证值。
在一些实施例中,所述待执行功能包括升级固件或建立通信链路n,n为1至N的正整数,N为可使用协议的总数量,每一个协议与一种通信链路对应。
在一些实施例中,所述方法还包括:接收来自上位机的选择指令,根据所述选择指令,确定所述待执行的功能。
在一些实施例中,所述确定至少一个认证要素并上传至服务器,包括:生成随机数并通过所述上位机上传至所述服务器,所述服务器还用于接收所述来自上位机的选择指令以确定所述待执行的功能。
在一些实施例中,当所述待执行功能为建立通信链路n时,所述方法还包括:
在所述汽车通信接口设备认证失败时,拒绝建立通信链路n;根据所述上位机的控制指令,更新所述待执行功能为建立通信链路m;基于所述更新后的待执行功能,重新认证所述汽车通信接口设备;m与n为不同的正整数,m的取值范围为1至N之间。
为解决上述技术问题,本发明实施例还提供以下技术方案:一种汽车通信接口设备,包括用于执行至少一项待执行功能的诊断模组以及用于在所述诊断模组执行所述待执行功能前,进行设备认证的认证模组,其特征在于,
所述认证模组包括认证输入单元、认证计算单元、比较单元以及通信单元;
其中,所述认证输入单元用于确定与汽车通信接口设备中的待执行功能相关的至少一个认证要素;所述认证计算单元与所述认证输入单元连接,计算获得对应的第一认证值;
所述通信单元用于将所述认证要素上传至服务器并且接收来自所述服务器的第二认证值;所述第二认证值为所述服务器根据所述认证要素计算获得;
所述比较单元分别与所述通信单元和所述认证计算单元连接,用于判断所述第一认证值和所述第二认证值是否匹配;
在所述第一认证值和所述第二认证值匹配时,输出所述汽车通信接口设备认证成功的第一信号;
在所述第一认证值和所述第二认证值不匹配时,输出所述汽车通信接口设备认证失败的第二信号;
所述诊断模组与所述比较单元连接,在所述比较单元输出第一信号时,执行所述待执行功能,在所述比较单元输出第二信号时,拒绝执行所述待执行功能。
在一些实施例中,所述认证要素包括:随机数和认证算法,所述认证输入单元包括:随机数发生器以及认证算法选择器;
所述随机数发生器用于产生一个或多个随机数;所述认证算法选择器用于根据所述待执行功能,确定对应的认证算法。
在一些实施例中,所述待执行功能包括升级固件或建立通信链路n,n为1至N的正整数,N为可使用协议的总数量,每一个协议与一种通信链路对应。
在一些实施例中,所述汽车通信接口设备为下位机;所述下位机通过所述通信单元与上位机建立通信连接,接收来自上位机的选择指令并根据所述选择指令确定所述待执行功能。
在一些实施例中,所述上位机与所述服务器通信连接,向所述服务器提供所述选择指令及所述随机数,并且将所述第二认证值反馈至所述下位机。
在一些实施例中,当所述诊断模组根据所述比较单元输出的第二信号,拒绝建立通信链路n时;
在所述上位机的控制下,所述诊断模组更新所述待执行功能为建立通信链路m;
所述认证模组基于所述更新后的待执行功能,重新进行设备认证;m与n为不同的正整数,m的取值范围为1至N之间。
与现有技术相比较,本发明实施例提供的认证方法使用位于网络端的服务器来完成,不需要在硬件上额外增加硬件芯片,有利于减少产品成本。而且,位于网络端的服务器没有内置硬件芯片的限制,可以具有强大的性能以使得认证方法可以扩展得到非常良好的灵活性和更高的安全性。
附图说明
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。
图1为本发明实施例的汽车通信接口设备的应用场景的示意图;
图2为本发明其中一个实施例提供的汽车通信接口设备的结构示意图;
图3为本发明其中一个实施例提供的汽车通信接口设备下位机的应用场景示意图;
图4为本发明其中一个实施例提供的认证方法的方法流程图;
图5为本发明另一实施例提供的认证方法的方法流程图;
图6为图5所示的认证方法在建立通信链路时的流程图;
图7为图5所示的认证方法在升级固件时的流程图。
具体实施方式
为了便于理解本发明,下面结合附图和具体实施例,对本发明进行更详细的说明。需要说明的是,当元件被表述“固定于”另一个元件,它可以直接在另一个元件上、或者其间可以存在一个或多个居中的元件。当一个元件被表述 “连接”另一个元件,它可以是直接连接到另一个元件、或者其间可以存在一个或多个居中的元件。本说明书所使用的术语“上”、“下”、“内”、“外”、“底部”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。此外,术语“第一”、“第二”“第三”等仅用于描述目的,而不能理解为指示或暗示相对重要性。
除非另有定义,本说明书所使用的所有的技术和科学术语与属于本发明的技术领域的技术人员通常理解的含义相同。本说明书中在本发明的说明书中所使用的术语只是为了描述具体的实施例的目的,不是用于限制本发明。本说明书所使用的术语“和/或”包括一个或多个相关的所列项目的任意的和所有的组合。
此外,下面所描述的本发明不同实施例中所涉及的技术特征只要彼此之间未构成冲突就可以相互结合。
设备认证可以用于保证汽车诊断产品可以被正常的使用,保证相关汽车数据的安全性,是汽车汽车通信接口设备在执行某项待执行功能前必备的流程。图1为本发明实施例提供的汽车汽车通信接口设备的应用场景示意图。
如图1所示,在整个应用场景中包括汽车10以及与汽车连接的汽车通信接口设备20。
其中,该汽车10具体可以是任何类型的机动车辆,例如货车、小汽车等。其具有完整的电子控制系统,用以协调和控制车辆按照驾驶员等的操作指令,并对一个或者多项车辆参数进行实时监测,确保汽车10可靠的运行。
通常的,为了便于日常检修和维护,汽车10还可以具有至少一个硬件通信接口(如OBD接口),用于与外部设备建立通信连接,完成数据交互等过程。
该汽车通信接口设备20可以应用于任何类型的车辆诊断产品,用于与电子控制系统连接以读取一项或者多项数据信息。其具体可以采用有线或者无线的方式,接入到汽车10的硬件通信接口,建立物理上的通信连接。
当然,除了与汽车10之间建立物理上的通信连接以外,还需要加载有合适或者配对的协议配置,才能正确的进入汽车相应的功能系统,读取数据。因此,为了应对不同的需求,汽车通信接口设备20上通常集成有多种不同的汽车诊断协议(如J1708协议、J1939协议、ISO15765协议)用以建立与汽车诊断协议对应的通信链路,获取汽车10的相关数据信息。
在实际使用过程中,在用户操作汽车通信接口设备20,选定使用其中一种汽车诊断协议请求建立对应的通信链路以后,汽车通信接口设备20会首先进行如下的设备认证过程:
1)在系统中生成一组随机数并提供至内置的认证芯片。
2)认证芯片根据自身内置的认证算法,对输入的随机数进行运算,生成第二认证信息并将该认证信息返回给诊断设备。
3)系统同样也调用保存在系统内部的认证算法,以所述随机数为基础进行运算,获得第一认证信息。
4)比较第一认证信息和第二认证信息是否相同。在相同时,确定设备认证成功;在不相同时,确定设备认证不成功。而只有在设备认证成功以后,该汽车通信接口设备才能够正常的执行功能。
通过以上的记载可以看到,完成设备认证过程完全依赖于额外增设的一个专用于设备认证的芯片。申请人发现这样的验证架构会为汽车通信接口设备带来许多消极的影响,例如,额外增设芯片会导致成本的上升、记录在认证芯片内的认证算法被获知以后无法更改,数据安全性不佳以及认证芯片的存储空间有限,不能为不同的功能提供足够的认证算法,认证过程的灵活性不好。
为避免这样的一些消极影响,本发明实施例提供了一种利用服务器进行设备认证的汽车通信接口设备。其具有合适的通信单元,与位于网络端(即云端)的服务器建立通信连接,通过服务器来代替认证芯片。请继续参阅图1,在本实施例中,所述场景还包括服务器30以及通信网络40。
该服务器30是远程部署在云端的设备。其具体可以是一个特定的实体也可以是大型集群式服务器的一部分功能单元,只要能够为汽车通信的认证功能分配所需要的存储空间和运算能力即可。
该通信网络40是指服务器30与汽车通信接口设备20之间的建立通信连接的网络,具体可以是蓝牙、WiFi、移动蜂窝网络或者专用局域网络等,只要能够允许服务器30和汽车通信接口设备20作为网络节点,实现两者之间的数据交互即可。
图2为本发明实施例提供的汽车通信接口设备的结构示意图。如图2所示,该汽车通信接口设备可以包括诊断模组21和认证模组22。
其中,诊断模组21用于执行至少一项待执行功能。所述认证模组22则用于在所述诊断模组执行所述待执行功能前,进行认证以确定设备是否能够正常执行功能。
惯常的,所述诊断模组可以集成有多项不同的功能,例如升级固件以及建立基于不同诊断协议的通信链路。在此,可以使用“通信链路n”来表示基于不同的诊断协议建立的通信链路。n为1至N的正整数,每一个取值与一个诊断协议相对应。例如,当诊断模组中集成有J1708协议、J1939协议和ISO15765协议时,n可以有1-3的三个取值,分别与上述的三个协议相对应。
该诊断模组21基于认证模组22的认证结果来确定是否能够正常执行待执行功能或者拒绝执行这些待执行功能。
请继续参阅图2,该认证模组22可以包括认证输入单元221、认证计算单元222、比较单元223以及通信单元224。
其中,所述认证输入单元221用于确定至少一个认证要素。所述认证计算单元222与所述认证输入单元221连接,计算获得对应的第一认证值。
认证是基于“在同样的计算规则下,相同的输入必定能够得到相同的输出” 这样的假设来进行的。在此,使用“认证要素”这样的术语来表示认证时需要一个或者多个作为输入的变量。具体认证要素可以根据实际情况所决定,例如一组随机数等。
在一些实施例中,根据具体需要确定的认证要素包括随机数和认证算法,所述认证输入单元221可以由随机数发生器2211以及认证算法选择器2212。
其中,随机数发生器2211是用于产生一个或多个随机数的单元。其具体可以采用任何合适的方法或者原理的芯片或者电子器件。所述认证算法选择器2212是用于根据待执行功能,确定对应的认证算法的选择单元。
该待执行功能是指诊断模块确定将要执行的功能,在诊断模块可以执行或者实施的多项不同的功能中,由用户选定或者实际情况的需要而确定。
认证算法可以是任何合适的函数,根据输入变量可以计算确定唯一的输出变量。
在较佳的实施例中,与诊断模块21集成的多项功能相对应地,汽车通信接口设备也可以配置有多种不同的认证算法,分别用于不同功能的认证,从而很好的提高了认证方法的灵活性。
所述通信单元224是用于建立与服务器之间的通信连接的单元。基于通信单元224提供的通信信道,可以将所述认证要素上传至服务器并且接收来自服务器的第二认证值。
该第二认证值是所述服务器根据所述认证要素计算获得的输出值。在此,第一认证值和第二认证值中的“第一”和“第二”仅用于区分计算获得认证值的主体不相同,而不用于限定两个认证值本身。该输出值可以具有任何合适的类型,而不限于数值,例如浮点型数值、整型数值或者是特定的字符串。
请继续参阅图2,所述比较单元223具有两个输入端和一个输出端。其中,两个输入端分别与所述通信单元224和所述认证计算单元222连接,用于接收第一认证值和所述第二认证值。
输出端则根据两者匹配的结果,在所述第一认证值和所述第二认证值匹配时,输出所述汽车通信接口设备认证成功的第一信号,或者在所述第一认证值和所述第二认证值不匹配时,输出所述汽车通信接口设备认证失败的第二信号。诊断模组21可以基于输出端输出的信号来确定当前待执行功能的认证结果。亦即,在所述比较单元输出第一信号时,执行所述待执行功能,而在所述比较单元输出第二信号时,拒绝执行所述待执行功能。
该比较单元223的具体结构可以根据实际设定的匹配规则和模式而确定,可以采用硬件电路、软件程序和/或软硬件结合的方式来实现。其具体为本领域技术人员所熟知,在此不作赘述。
在一些实施例中,该汽车通信接口设备可以是下位机,通过与对应的上位机相互配合以完成设备认证过程。图3为本发明实施例提供的汽车通信接口设备下位机的应用场景示意图。如图3所示,该应用场景包括:汽车通信接口设备下位机41、上位机42以及服务器43。
其中,汽车通信接口设备下位机41与上位机42,上位机42与服务器43之间均建立有通信信道,可以实现双向数据传输。该通信信道具体可以选用任何类型的有线或者无线通信方式。两个通信信道之间也可以采用相同或者不同的通信方式,例如,在汽车通信接口设备下位机41与上位机42之间采用线缆连接,在上位机42与服务器43之间使用无线蜂窝网络连接。
上位机42是指可以直接发出操控命令的计算机设备。其位于用户交互的最上层,可以在屏幕上向用户显示各种反馈信息(例如各项信号的变化)并通过输入设备采集用户的指令以发出相应的操控指令。
具体的,上位机42还可以选择使用任何其它类型的计算机设备,例如个人电脑、平板电脑、手机或者其它能够与服务器建立连接的智能电子设备。
汽车通信接口设备下位机41是直接控制设备获取汽车状况或者相关参数的计算机。其通常用于接收上位机发出的操控指令解释成相应时序信号直接对汽车进行控制,或者是用于读取车辆的状态数据(一般为模拟量)后,转换成数字信号反馈给上位机以向用户展示。
具体的,汽车通信接口设备下位机41可以由PLC、单片机、微处理器或者其它一些低级处理器设备实现。
在实际使用过程中,一方面汽车通信接口设备下位机41通过通信单元来接收来自上位机的选择指令。然后解析接收到的选择指令,并据此确定当前的待执行功能。最后,根据生成的随机数和待执行功能对应的认证算法计算获得第一认证值。
另一方面,上位机42也利用自身的通信模块,向服务器提供该选择指令和来自汽车通信接口设备下位机41的随机数以使服务器能够据此计算获得第二认证值。由服务器计算获得的第二认证值经由上位机42,提供给汽车通信接口设备下位机41完成设备认证的过程。
在另一些实施例中,若因认证失败而使得诊断模组无法建立通信链路n时,上位机42还可以提供协助,下发指令以更新所述待执行功能,变为建立基于另一种诊断协议的通信链路m。
然后,由汽车通信接口设备下位机41的认证模组基于所述更新后的待执行功能,重新进行设备认证以尝试建立与汽车之间的通信链路。
其中,m与n为不同的正整数,m的取值范围为1至N之间,用以表示通信链路m是与认证不成功的通信链路n是基于不同的诊断协议的通信链路。
应当说明的是,为陈述方便,在图3中示例性的揭露了汽车通信接口设备下位机41、上位机42以及服务器43之间的数据信息流向。但本领域技术人员还可以根据实际情况的需要,将汽车通信接口设备需要执行的功能步骤调整到上位机42或者下位机41中执行(例如由上位机42产生随机数)。所有的这些变化或者调整都属于本发明的范围。
本领域技术人员应该还可以进一步意识到,本发明实施例中描述的功能单元(如认证输入单元、认证计算单元、比较单元以及通信单元)能够以电子硬 件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例性电路所执行的步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。
本领域技术人员可以对每个特定的应用来使用不同方法来实现所描述的各个功能单元的功能,但是这种实现不应认为超出本发明的范围。所述的计算机软件可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体或随机存储记忆体等。
基于上述实施例揭露的汽车通信接口设备所执行的一系列功能步骤,本发明实施例还提供了一种基于服务器的认证方法。图4为本发明一实施例提供的认证方法的方法流程图。如图4所示,由汽车通信接口设备执行的方法至少包括如下步骤:
410、确定与汽车通信接口设备中的待执行功能相关的至少一个认证要素并上传至服务器。
具体使用的认证要素可以根据实际情况所选定,与待执行功能相关。例如一组随机数或者认证算法。这些认证要素可以以任何合适的格式和传输形式提供至服务器,例如添加合适的校验位以确保数据传输的可靠性。
420、根据所述认证要素,计算获得对应的第一认证值。
该第一认证值是汽车通信接口设备根据已经确定的认证要素,从程序中调用预先设定好的计算规则计算获得的输出值。
430、接收由所述服务器根据所述认证要素计算获得的第二认证值。
该第二认证值则是由服务器根据汽车通信接口设备上传的认证要素,计算获得的输出值。
440、判断所述第一认证值和所述第二认证值是否匹配。若是,执行步骤450;若否,执行步骤460。
匹配是指第一认证值和第二认证值保持一致,可以满足上述提及的认证的假设前提—“具有相同的输出”。具体可以采用任何合适的衡量基准或者比对方法来完成匹配
450、确定所述汽车通信接口设备认证成功,执行所述待执行功能。认证成功作为一种标识,表明汽车通信接口设备可以正常的执行功能。
460、确定所述汽车通信接口设备认证失败。而认证失败则表明汽车通信接口设备无法正常运行,可能存在不匹配的情况。
基于步骤440获得的匹配结果,在所述汽车通信接口设备认证成功时,汽车通信接口设备才执行所述待执行功能。而在所述汽车通信接口设备认证失败时,汽车通信接口设备的系统将拒绝执行所述待执行功能。
由于服务器相对于内置的认证芯片而言,具有近乎无限制的存储空间和运算能力。因此,在较佳实施例中,所述认证方法可以结合使用多种不同的认证 算法来满足集成功能日益丰富的汽车通信接口设备,为汽车通信接口设备不同的功能分配不同的认证算法,从而有效的提升设备认证的灵活性。
如图5所示,该认证方法的认证要素包括随机数和认证算法。其可以包括如下步骤:
510、产生一组随机数。该随机数可以由汽车通信接口设备根据合适的产生原则而生成。随机数的大小及位数都可以根据实际情况来决定。
520、根据待执行功能,确定对应的认证算法。
该待执行功能是指汽车通信接口设备当前需要执行的功能。在本实施例中,不同的认证算法与不同的功能相对应,具有映射关系。由此,在确定待执行功能以后,便可以唯一的确定需要使用的认证算法。
在一些实施例中,所述待执行功能可以包括升级固件或建立通信链路n。其中,升级固件是指对汽车通信接口设备中的固件程序进行版本更新。而建立通信链路n是指建立基于某个特定诊断协议的通信链路。
在此,n的取值范围为1至N。N为汽车通信接口设备中集成的,可供选择使用的协议的总数量。这样的,可以通过通信链路n来表示与不同协议相对应的通信链路。
530、以所述随机数为基础,通过所述对应的认证算法,计算获得对应的第一认证值。
540、接收来自服务器的第二认证值并与所述第一认证值比较,确定当前的认证结果。该认证结果包括汽车通信接口设备认证成功或者认证失败。
服务器在计算第二认证值时,使用相同的随机数,并调用与待执行功能相对应的认证算法。
在一些实施例中,汽车通信接口设备可以仅担任下位机的角色,通过一个额外的上位机间接的与服务器建立通信连接。例如,在下位机产生的随机数可以通过所述上位机,上传至所述服务器。
上位机作为直接与用户交互的上层,可以执行一个或者多个功能,与下位机相互配合来完成认证的完整过程。例如,上位机可以分别向下位机和服务器提供选择指令,用以确定待执行功能。该选择指令是指上位机采集到的,请求汽车通信接口设备执行某项功能的用户操控指令。
在另一些实施例中,汽车通信接口设备认证失败,无法建立通信链路n时,上位机还可以进一步提供新的控制指令,选择建立另一种诊断协议的通信链路m,将待执行功能更新为“建立通信链路m”。
服务器和下位机都可以根据该控制指令,重新对“建立通信链路m”这一功能进行认证以希望能够使汽车通信接口设备与汽车成功的建立通信连接。
本发明实施例提供的认证方法基于服务器而实现,不需要使用专用的认证芯片,从而降低了设备的硬件成本。而且,认证算法设置为多种,具有多重认证可以提供很高的安全性。即使认证算法不慎泄露或者被破解,也可以非常简单的通过更新认证算法的方式来恢复汽车诊断产品的安全性,不再受到内置认 证芯片不便于修改的限制。
图6和图7分别是图5所示的认证方法对不同待执行功能进行认证的具体实例。如图6所示,当用户选择使用诊断协议1与汽车进行通信时,上位机可以分别向服务器和下位机提供与诊断协议1对应的选择指令1(S610)。
下位机和服务器均使用相同的随机数和与选择指令1对应的认证算法1进行运算,分别获得第一认证值和第二认证值并据此确定是否认证成功(S620)。
在认证成功时,下位机正常的执行功能,建立基于诊断协议1的通信链路(S630)。上位机通过该通信链路与汽车的电子控制系统正常通信,完成汽车诊断的工作任务(S640)。
在认证失败时,下位机不能执行建立通信链路1的功能(S650)。上位机也无法通过该通信链路1与汽车的电子控制系统正常通信(S660)。
如图7所示,当用户选择使用升级固件的功能时,上位机可以分别向服务器和下位机提供与升级固件相对应的选择指令2(S710)。
下位机和服务器均使用相同的随机数和与选择指令2对应的认证算法2进行运算,分别获得第一认证值和第二认证值并据此确定是否认证成功(S720)。
在认证成功时,上位机对下位机的固件程序进行升级(S730)。在认证失败时,上位机无法对下位机的固件程序进行升级(S740)。
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;在本发明的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,步骤可以以任意顺序实现,并存在如上所述的本发明的不同方面的许多其它变化,为了简明,它们没有在细节中提供;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。

Claims (12)

  1. 一种汽车通信接口设备的认证方法,其特征在于,包括:
    确定与汽车通信接口设备中的待执行功能相关的至少一个认证要素并上传至服务器;
    根据所述认证要素,计算获得对应的第一认证值;
    接收由所述服务器根据所述认证要素计算获得的第二认证值;
    判断所述第一认证值和所述第二认证值是否匹配;
    若是,确定所述汽车通信接口设备认证成功,执行所述待执行功能;
    若否,确定所述汽车通信接口设备认证失败。
  2. 根据权利要求1所述的认证方法,其特征在于,所述认证要素包括:随机数和认证算法;所述根据所述认证要素,计算获得对应的第一认证值,包括:
    根据所述待执行功能,确定对应的认证算法;
    以所述随机数为基础,通过所述对应的认证算法,计算获得对应的第一认证值。
  3. 根据权利要求1或2所述的认证方法,其特征在于,所述待执行功能包括升级固件或建立通信链路n,n为1至N的正整数,N为可使用协议的总数量,每一个协议与一种通信链路对应。
  4. 根据权利要求3所述的认证方法,其特征在于,所述方法还包括:
    接收来自上位机的选择指令,
    根据所述选择指令,确定所述待执行的功能。
  5. 根据权利要求4所述的认证方法,其特征在于,所述确定至少一个认证要素并上传至服务器,包括:
    生成随机数并通过所述上位机上传至所述服务器,所述服务器还用于接收所述来自上位机的选择指令以确定所述待执行的功能。
  6. 根据权利要求3至5任一项所述的认证方法,其特征在于,当所述待执行功能为建立通信链路n时,所述方法还包括:
    在所述汽车通信接口设备认证失败时,拒绝建立通信链路n;
    根据所述上位机的控制指令,更新所述待执行功能为建立通信链路m;
    基于所述更新后的待执行功能,重新认证所述汽车通信接口设备;m与n为不同的正整数,m的取值范围为1至N之间。
  7. 一种汽车通信接口设备,包括用于执行至少一项待执行功能的诊断模组以及用于在所述诊断模组执行所述待执行功能前,进行设备认证的认证模组,其特征在于,
    所述认证模组包括认证输入单元、认证计算单元、比较单元以及通信单元;
    其中,所述认证输入单元用于确定与汽车通信接口设备中的待执行功能相关的至少一个认证要素;所述认证计算单元与所述认证输入单元连接,计算获 得对应的第一认证值;
    所述通信单元用于将所述认证要素上传至服务器并且接收来自所述服务器的第二认证值;所述第二认证值为所述服务器根据所述认证要素计算获得;
    所述比较单元分别与所述通信单元和所述认证计算单元连接,用于判断所述第一认证值和所述第二认证值是否匹配;
    在所述第一认证值和所述第二认证值匹配时,输出所述汽车通信接口设备认证成功的第一信号;
    在所述第一认证值和所述第二认证值不匹配时,输出所述汽车通信接口设备认证失败的第二信号;
    所述诊断模组与所述比较单元连接,在所述比较单元输出第一信号时,执行所述待执行功能,在所述比较单元输出第二信号时,拒绝执行所述待执行功能。
  8. 根据权利要求7所述的汽车通信接口设备,其特征在于,所述认证要素包括:随机数和认证算法,所述认证输入单元包括:随机数发生器以及认证算法选择器;
    所述随机数发生器用于产生一个或多个随机数;所述认证算法选择器用于根据所述待执行功能,确定对应的认证算法。
  9. 根据权利要求7或8所述的汽车通信接口设备,其特征在于,所述待执行功能包括升级固件或建立通信链路n,n为1至N的正整数,N为可使用协议的总数量,每一个协议与一种通信链路对应。
  10. 根据权利要求9所述的汽车通信接口设备,其特征在于,所述汽车通信接口设备为下位机;
    所述下位机通过所述通信单元与上位机建立通信连接,接收来自上位机的选择指令并根据所述选择指令确定所述待执行功能。
  11. 根据权利要求10所述的汽车通信接口设备,其特征在于,所述上位机与所述服务器通信连接,向所述服务器提供所述选择指令及所述随机数,并且将所述第二认证值反馈至所述下位机。
  12. 根据权利要求7至11任一项所述的汽车通信接口设备,其特征在于,当所述诊断模组根据所述比较单元输出的第二信号,拒绝建立通信链路n时;
    在所述上位机的控制下,所述诊断模组更新所述待执行功能为建立通信链路m;
    所述认证模组基于所述更新后的待执行功能,重新进行设备认证;m与n为不同的正整数,m的取值范围为1至N之间。
PCT/CN2019/129774 2018-12-29 2019-12-30 汽车通信接口设备及其认证方法 WO2020135855A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811639103.7 2018-12-29
CN201811639103.7A CN109450954B (zh) 2018-12-29 2018-12-29 汽车通信接口设备及其认证方法

Publications (1)

Publication Number Publication Date
WO2020135855A1 true WO2020135855A1 (zh) 2020-07-02

Family

ID=65539780

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/129774 WO2020135855A1 (zh) 2018-12-29 2019-12-30 汽车通信接口设备及其认证方法

Country Status (2)

Country Link
CN (1) CN109450954B (zh)
WO (1) WO2020135855A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109450954B (zh) * 2018-12-29 2021-01-15 深圳市道通科技股份有限公司 汽车通信接口设备及其认证方法
CN111400118B (zh) * 2020-03-16 2023-09-26 杭州涂鸦信息技术有限公司 一种针对在线功能文件的串口命令创建方法及系统

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009146921A1 (de) * 2008-06-05 2009-12-10 Efkon Germany Gmbh Verfahren und system zur erstellung von kraftfahrzeug-ferndiagnosen
CN102183945A (zh) * 2011-01-17 2011-09-14 武汉理工大学 一种多功能电控汽车远程故障诊断系统
KR20130049006A (ko) * 2011-11-03 2013-05-13 주식회사 타오스 스마트 단말을 이용한 차량 관리 시스템 및 그 방법
CN104333576A (zh) * 2014-10-21 2015-02-04 普华基础软件股份有限公司 一种ecu升级装置及方法
CN105235639A (zh) * 2015-09-02 2016-01-13 钱英 一种电动汽车防盗方法
CN106814675A (zh) * 2016-12-31 2017-06-09 华晨汽车集团控股有限公司 用于验证汽车诊断设备合法性的安全访问方法
CN108600224A (zh) * 2018-04-25 2018-09-28 深圳市道通科技股份有限公司 诊断设备及诊断设备的安全访问方法
CN109450954A (zh) * 2018-12-29 2019-03-08 深圳市道通科技股份有限公司 汽车通信接口设备及其认证方法

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105743854A (zh) * 2014-12-11 2016-07-06 深圳富泰宏精密工业有限公司 安全认证系统及方法
CN104890623A (zh) * 2015-05-21 2015-09-09 深圳市德艾卡科技有限公司 车载智能终端控制系统及控制方法
US9865110B2 (en) * 2015-05-22 2018-01-09 M2MD Technologies, Inc. Method and system for securely and automatically obtaining services from a machine device services server
CN105790953B (zh) * 2016-03-02 2019-05-10 飞天诚信科技股份有限公司 双接口认证设备及其工作方法
CN107086996B (zh) * 2017-04-14 2020-06-16 重庆邮电大学 车联网安全认证装置及方法

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009146921A1 (de) * 2008-06-05 2009-12-10 Efkon Germany Gmbh Verfahren und system zur erstellung von kraftfahrzeug-ferndiagnosen
CN102183945A (zh) * 2011-01-17 2011-09-14 武汉理工大学 一种多功能电控汽车远程故障诊断系统
KR20130049006A (ko) * 2011-11-03 2013-05-13 주식회사 타오스 스마트 단말을 이용한 차량 관리 시스템 및 그 방법
CN104333576A (zh) * 2014-10-21 2015-02-04 普华基础软件股份有限公司 一种ecu升级装置及方法
CN105235639A (zh) * 2015-09-02 2016-01-13 钱英 一种电动汽车防盗方法
CN106814675A (zh) * 2016-12-31 2017-06-09 华晨汽车集团控股有限公司 用于验证汽车诊断设备合法性的安全访问方法
CN108600224A (zh) * 2018-04-25 2018-09-28 深圳市道通科技股份有限公司 诊断设备及诊断设备的安全访问方法
CN109450954A (zh) * 2018-12-29 2019-03-08 深圳市道通科技股份有限公司 汽车通信接口设备及其认证方法

Also Published As

Publication number Publication date
CN109450954B (zh) 2021-01-15
CN109450954A (zh) 2019-03-08

Similar Documents

Publication Publication Date Title
US10083555B2 (en) Car control method of electronic apparatus and electronic apparatus thereof
US20230021634A1 (en) OTA System Software Upgrade Control Method and Terminal Device
US10061574B2 (en) Method and apparatus for multiple vehicle software module reflash
US10223132B2 (en) Synchronization between electronic devices
US9973485B2 (en) Apparatus and method to securely receive a key
US9858064B2 (en) Methods and apparatus for vehicle computing system software updates
US9557981B2 (en) Method and apparatus for automatic module upgrade
CN105992306B (zh) 一种终端与家庭网关的绑定方法
CN111512655A (zh) 利用安全元件提供通信服务的方法及电子装置
WO2020135855A1 (zh) 汽车通信接口设备及其认证方法
WO2013184257A1 (en) Message-based identification of an electronic device
EP3944588B1 (en) Method for uwb transaction and electronic device therefor
EP4262146A1 (en) Iot device and method for onboarding iot device to server
CN104023257A (zh) 移动终端控制电视终端的方法及系统
US8880770B2 (en) Protocol translating adapter
CN113556715A (zh) 设备连接方法及装置、计算机可读介质和电子设备
CN112261642A (zh) 用于转移订阅的方法和用于支持该方法的电子装置
CN105897858B (zh) 促进移动装置和车辆计算机系统之间的通信的系统和方法
KR20200044569A (ko) 통신 열화를 방지하기 위한 전자 장치 및 그 제어 방법
CN115167330A (zh) 用于车辆的通信错误诊断装置、具有该装置的系统及方法
CN113518331B (zh) 通信方法和装置
CN111682965A (zh) 一种fota控制器
US20200391695A1 (en) Electronic device for managing application relating to key of external electronic device, and operating method of electronic device
EP4068817A1 (en) Electronic device for transmitting/receiving network configuration information and operation method thereof
CN110677920A (zh) 手机-车机互联系统及具有其的车辆和连接方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19903032

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19903032

Country of ref document: EP

Kind code of ref document: A1