WO2022198906A1 - 车载设备的配对方法及装置、电子设备和存储介质 - Google Patents

车载设备的配对方法及装置、电子设备和存储介质 Download PDF

Info

Publication number
WO2022198906A1
WO2022198906A1 PCT/CN2021/113550 CN2021113550W WO2022198906A1 WO 2022198906 A1 WO2022198906 A1 WO 2022198906A1 CN 2021113550 W CN2021113550 W CN 2021113550W WO 2022198906 A1 WO2022198906 A1 WO 2022198906A1
Authority
WO
WIPO (PCT)
Prior art keywords
vehicle device
pairing
vehicle
response
request information
Prior art date
Application number
PCT/CN2021/113550
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 WO2022198906A1 publication Critical patent/WO2022198906A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • 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/48Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for in-vehicle communication

Definitions

  • the present disclosure relates to the technical field of vehicles, and in particular, to a method and device for pairing a vehicle-mounted device, an electronic device, and a storage medium.
  • in-vehicle devices At present, more and more vehicles are equipped with multiple in-vehicle devices at the same time, and different in-vehicle devices often need to be paired to work together. Different in-vehicle devices record different driving data and/or user data, therefore, it is of great significance to improve the pairing security of in-vehicle devices.
  • the present disclosure provides a technical solution for pairing of in-vehicle devices.
  • a method for pairing an in-vehicle device which is applied to a first in-vehicle device, and the method includes:
  • Pairing is performed with the second in-vehicle device through the wireless connection.
  • the pairing with the second in-vehicle device through the wireless connection includes:
  • pairing request information sent by the second vehicle-mounted device through the wireless connection, wherein the pairing request information carries the identification information of the second vehicle-mounted device;
  • pairing is performed with the second in-vehicle device according to the identification information of the second in-vehicle device.
  • the pairing request information includes a first random number generated by the second vehicle-mounted device
  • the pairing with the second in-vehicle device according to the identification information of the second in-vehicle device in response to the pairing request information includes:
  • first pairing response information In response to the pairing request information, send first pairing response information to the second in-vehicle device, wherein the first pairing response information carries a second random number generated by the first in-vehicle device;
  • pairing confirmation information from the second in-vehicle device, wherein the pairing confirmation information includes the identification information of the second in-vehicle device according to the second in-vehicle device, the first random number and the second random number the generated second authentication data;
  • the sending first pairing response information to the second in-vehicle device in response to the pairing request information includes:
  • first pairing response information is sent to the second in-vehicle device.
  • the method further includes:
  • the identification information of the second in-vehicle device record the information that the pairing has been established with the second in-vehicle device.
  • the pairing with the second in-vehicle device according to the identification information of the second in-vehicle device in response to the pairing request information includes:
  • the second in-vehicle device in response to the pairing request information, send second pairing response information to the second in-vehicle device, wherein, The second pairing response information is used to notify the second in-vehicle device that a pairing has been established with the first in-vehicle device.
  • the sending the service set identifier and password of the wireless access point provided by the first in-vehicle device to the second in-vehicle device through wired communication includes:
  • the method further includes:
  • the first in-vehicle device is controlled according to the control request information.
  • the control request information is used to request real-time acquisition of the video recorded by the first vehicle-mounted device
  • the controlling the first in-vehicle device according to the control request information in response to having established a pairing with the second in-vehicle device includes: in response to having established a pairing with the second in-vehicle device, according to the Control the request information, and send the video to the second in-vehicle device in real time, so that the second in-vehicle device can play the video in real time.
  • a method for pairing an in-vehicle device which is applied to a second in-vehicle device, and the method includes:
  • Pairing is performed with the first in-vehicle device through the wireless connection.
  • the pairing with the first in-vehicle device through the wireless connection includes:
  • the pairing request information includes a first random number
  • the method further includes:
  • first pairing response information returned by the first in-vehicle device in response to the pairing request information, wherein the first pairing response information carries a second random number generated by the first in-vehicle device;
  • the second authentication data is sent to the first in-vehicle device.
  • the method further includes:
  • the method further includes:
  • a service set identifier and password for the wireless access point are stored.
  • the method further includes:
  • the control request information is sent to the first in-vehicle device to control the first in-vehicle device.
  • the instruction is used to play the video recorded by the first vehicle-mounted device in real time
  • the control request information is used to request real-time acquisition of the video recorded by the first vehicle-mounted device
  • the sending the control request information to the first in-vehicle device to control the first in-vehicle device includes: sending the control request information to the first in-vehicle device to control the first in-vehicle device The device sends the video to the second in-vehicle device in real time;
  • the method further includes: in response to receiving the video, playing the video in real time.
  • an apparatus for pairing an in-vehicle device which is applied to a first in-vehicle device, and the apparatus includes:
  • a first sending module configured to send the service set identifier and password of the wireless access point provided by the first in-vehicle device to the second in-vehicle device through wired communication;
  • a first establishing module configured to establish a wireless connection with the second in-vehicle device in response to a wireless connection request sent by the second in-vehicle device according to the service set identifier and password of the wireless access point;
  • the first pairing module is used for pairing with the second vehicle-mounted device through the wireless connection.
  • the first pairing module is used for:
  • pairing request information sent by the second vehicle-mounted device through the wireless connection, wherein the pairing request information carries the identification information of the second vehicle-mounted device;
  • pairing is performed with the second in-vehicle device according to the identification information of the second in-vehicle device.
  • the pairing request information includes a first random number generated by the second vehicle-mounted device
  • the first pairing module is used for:
  • first pairing response information In response to the pairing request information, send first pairing response information to the second in-vehicle device, wherein the first pairing response information carries a second random number generated by the first in-vehicle device;
  • pairing confirmation information from the second in-vehicle device, wherein the pairing confirmation information includes the identification information of the second in-vehicle device according to the second in-vehicle device, the first random number and the second random number the generated second authentication data;
  • the first pairing module is used for:
  • first pairing response information is sent to the second in-vehicle device.
  • the apparatus further includes:
  • the recording module is configured to record the information that the pairing has been established with the second in-vehicle device according to the identification information of the second in-vehicle device.
  • the first pairing module is used for:
  • the second in-vehicle device in response to the pairing request information, send second pairing response information to the second in-vehicle device, wherein, The second pairing response information is used to notify the second in-vehicle device that a pairing has been established with the first in-vehicle device.
  • the first sending module is used for:
  • the apparatus further includes:
  • a second receiving module configured to receive control request information from the second vehicle-mounted device
  • a control module configured to control the first in-vehicle device according to the control request information in response to establishing a pairing with the second in-vehicle device.
  • the control request information is used to request real-time acquisition of the video recorded by the first vehicle-mounted device
  • the control module is configured to: in response to having established a pairing with the second in-vehicle device, according to the control request information, send the video to the second in-vehicle device in real time, so as to be played by the second in-vehicle device in real time the video.
  • a device for pairing an in-vehicle device which is applied to a second in-vehicle device, and the device includes:
  • a first receiving module configured to receive the service set identifier and password of the wireless access point provided by the first in-vehicle device from the first in-vehicle device through wired communication;
  • a second sending module configured to send a wireless connection request to the first in-vehicle device according to the service set identifier and password of the wireless access point, so as to establish a wireless connection with the first in-vehicle device;
  • the second pairing module is used for pairing with the first in-vehicle device through the wireless connection.
  • the second pairing module is used for:
  • the pairing request information includes a first random number
  • the device also includes:
  • a third receiving module configured to receive first pairing response information returned by the first in-vehicle device in response to the pairing request information, wherein the first pairing response information carries the second random generated by the first in-vehicle device number;
  • the first generation module is used to generate the second authentication data according to the identification information of the second vehicle-mounted device, the first random number and the second random number;
  • a third sending module configured to send the second authentication data to the first in-vehicle device.
  • the apparatus further includes:
  • the fourth receiving module is configured to receive second pairing response information returned by the first in-vehicle device in response to the pairing request information, wherein the second pairing response information is used to notify the second in-vehicle device that it has The first in-vehicle device establishes a pairing.
  • the apparatus further includes:
  • the storage module is used for storing the service set identifier and the password of the wireless access point.
  • the apparatus further includes:
  • a fifth receiving module configured to receive an instruction to control the first vehicle-mounted device
  • a second generating module configured to generate control request information according to an instruction for controlling the first in-vehicle device in response to having established a pairing with the first in-vehicle device
  • the fourth sending module is configured to send the control request information to the first vehicle-mounted device, so as to control the first vehicle-mounted device.
  • the instruction is used to play the video recorded by the first vehicle-mounted device in real time
  • the control request information is used to request real-time acquisition of the video recorded by the first vehicle-mounted device
  • the fourth sending module is configured to: send the control request information to the first on-board device, so as to control the first on-board device to send the video to the second on-board device in real time;
  • the apparatus further includes: a playing module for playing the video in real time in response to receiving the video.
  • an electronic device comprising: one or more processors; a memory for storing executable instructions; wherein the one or more processors are configured to invoke the memory storage executable instructions to perform the above method.
  • a computer-readable storage medium having computer program instructions stored thereon, the computer program instructions implementing the above method when executed by a processor.
  • a computer program product comprising computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code, when the computer-readable code is stored in an electronic device When running, the processor in the electronic device executes the above method.
  • the first in-vehicle device sends the service set identifier and password of the wireless access point provided by the first in-vehicle device to the second in-vehicle device through wired communication, and in response to the second in-vehicle device according to the wireless access point
  • a wireless connection request sent by the service set identifier and password of the in-point establishes a wireless connection with the second in-vehicle device, and is paired with the second in-vehicle device through the wireless connection, thereby improving the security of pairing between in-vehicle devices .
  • FIG. 1 shows an exemplary flowchart of a method for pairing an in-vehicle device provided by an embodiment of the present disclosure.
  • FIG. 2 shows another exemplary flowchart of a method for pairing an in-vehicle device provided by an embodiment of the present disclosure.
  • FIG. 3 shows a schematic diagram of an application scenario provided by an embodiment of the present disclosure.
  • FIG. 4 shows another schematic diagram of an application scenario provided by an embodiment of the present disclosure.
  • FIG. 5 shows an exemplary block diagram of a pairing apparatus of an in-vehicle device provided by an embodiment of the present disclosure.
  • FIG. 6 shows another exemplary block diagram of a pairing apparatus of an in-vehicle device provided by an embodiment of the present disclosure.
  • FIG. 7 shows a block diagram of an electronic device 800 provided by an embodiment of the present disclosure.
  • Embodiments of the present disclosure provide a method and apparatus for pairing an in-vehicle device, an electronic device, and a storage medium.
  • a first in-vehicle device sends a service set identifier of a wireless access point provided by the first in-vehicle device to a second in-vehicle device through wired communication and password, establish a wireless connection with the second in-vehicle device in response to a wireless connection request issued by the second in-vehicle device according to the service set identifier and password of the wireless access point, and communicate with the second in-vehicle device through the wireless connection
  • the security of pairing between in-vehicle devices can be improved.
  • FIG. 1 shows an exemplary flowchart of a method for pairing an in-vehicle device provided by an embodiment of the present disclosure.
  • the pairing method of the in-vehicle device is performed by the first in-vehicle device.
  • the pairing method of the in-vehicle device may be implemented by the processor calling computer-readable instructions stored in the memory.
  • the pairing method of the in-vehicle device includes steps S11 to S13.
  • step S11 the service set identifier and password of the wireless access point provided by the first in-vehicle device are sent to the second in-vehicle device through wired communication.
  • step S12 in response to a wireless connection request sent by the second in-vehicle device according to the service set identifier and password of the wireless access point, a wireless connection is established with the second in-vehicle device.
  • step S13 pairing is performed with the second in-vehicle device through the wireless connection.
  • the first in-vehicle device may be any in-vehicle device capable of providing a wireless access point
  • the second in-vehicle device may be any in-vehicle device that supports access to a wireless network.
  • the first in-vehicle device and the second in-vehicle device are different in-vehicle devices.
  • the first vehicle-mounted device may be a DVR (Digital Video Recorder, hard disk video recorder), such as a driving recorder
  • the second vehicle-mounted device may be a HU (Head Unit, vehicle unit).
  • the first in-vehicle device may be a cabin domain controller
  • the second in-vehicle device may also be a camera or a display screen.
  • the first in-vehicle device may automatically set the service set identifier (SSID, Service Set Identifier) and password of the wireless access point, or the first in-vehicle device may manually set the service of the wireless access point by the user Set identifier and password.
  • the first in-vehicle device can set the service set identifier of the wireless access point to DVR_xxxxxxxx and set the password of the wireless access point to random 8-bit characters when it is powered on for the first time, wherein the service set identifier
  • the last 8 characters "xxxxxxxx" of the character can be the first 8 characters of the MAC (Media Access Control, Media Access Control) address of the first vehicle-mounted device.
  • the first in-vehicle device sends the service set identifier and password of the wireless access point provided by the first in-vehicle device to the second in-vehicle device through wired communication, that is, the second in-vehicle device obtains the The service set identifier and password of the wireless access point.
  • the first in-vehicle device sends the service set identifier and password of the wireless access point provided by the first in-vehicle device to the second in-vehicle device through wired communication, instead of sending the service of the wireless access point to the second in-vehicle device through wireless communication
  • the set identifier and password can be used to improve the security of transmitting the service set identifier and password of the wireless access point.
  • the sending the service set identifier and password of the wireless access point provided by the first in-vehicle device to the second in-vehicle device through wired communication includes: controlling the Send the service set identifier and the password of the wireless access point provided by the first in-vehicle device to the second in-vehicle device through a local area network) bus.
  • the second in-vehicle device can obtain the service set identifier and password of the wireless access point from the CAN bus.
  • the first in-vehicle device sends the service set identifier and password of the wireless access point provided by the first in-vehicle device to the second in-vehicle device through the CAN bus, thereby improving the service of transmitting the wireless access point.
  • Security of set identifiers and passwords are used to improve the service of transmitting the wireless access point.
  • the first in-vehicle device may also send the first in-vehicle device to the second in-vehicle device through wired communication such as a CAN-FD (Controller Area Network with Flexible Data-rate) bus.
  • wired communication such as a CAN-FD (Controller Area Network with Flexible Data-rate) bus.
  • the service set identifier and password of the wireless access point provided by the in-vehicle device which are not limited here.
  • the second in-vehicle device may, based on TCP/IP (Transmission Control Protocol/Internet Protocol, Transmission Control Protocol/Internet Protocol), A wireless connection request is sent to the first in-vehicle device.
  • the first in-vehicle device may establish a wireless connection with the second in-vehicle device based on TCP/IP in response to the wireless connection request.
  • the first in-vehicle device and the second in-vehicle device may also establish a wireless connection based on other communication protocols, which is not limited herein.
  • the first in-vehicle device may actively request for pairing with the second in-vehicle device through the wireless connection, or may respond to a request from the second in-vehicle device. Pairing request, pairing with the second in-vehicle device through the wireless connection.
  • the pairing with the second in-vehicle device through the wireless connection includes: receiving pairing request information sent by the second in-vehicle device through the wireless connection, wherein the The pairing request information carries the identification information of the second in-vehicle device; in response to the pairing request information, pairing with the second in-vehicle device is performed according to the identification information of the second in-vehicle device.
  • the second in-vehicle device may send pairing request information to the first in-vehicle device through the wireless connection, where the pairing request information is used to request pairing with the first in-vehicle device.
  • the identification information of the second in-vehicle device may represent information that can uniquely identify the second in-vehicle device.
  • the identification information of the second in-vehicle device may be the MAC address of the second in-vehicle device or the like.
  • the first in-vehicle device may pair with the second in-vehicle device according to the identification information of the second in-vehicle device.
  • two-way authentication can be performed between the first in-vehicle device and the second in-vehicle device, thereby further improving the security of pairing between the first in-vehicle device and the second in-vehicle device.
  • the pairing request information includes a first random number generated by the second in-vehicle device; the response to the pairing request information, according to the identification information of the second in-vehicle device, and the Pairing the second in-vehicle device includes: in response to the pairing request information, sending first pairing response information to the second in-vehicle device, wherein the first pairing response information carries the data generated by the first in-vehicle device.
  • the pairing confirmation information includes second authentication data generated by the second in-vehicle device according to the identification information of the second in-vehicle device, the first random number and the second random number; in response to the second authentication The data matches the first authentication data and establishes a pairing with the second in-vehicle device.
  • both the first in-vehicle device and the second in-vehicle device are capable of generating random numbers.
  • the first in-vehicle device and the second in-vehicle device may respectively generate random numbers through the genRandom function.
  • the second in-vehicle device may generate a first random number, generate pairing request information according to the first random number, and send the pairing request information to the first in-vehicle device, so that the first random number can be transmitted to the first in-vehicle device.
  • the second in-vehicle device may assign the generated first random number to a first variable, generate pairing request information according to the assigned first variable, and send the pairing request information to the first in-vehicle device, thereby The first variable assigned as the first random number can be transmitted to the first in-vehicle device.
  • the first vehicle-mounted device may generate a second random number, generate first pairing response information according to the second random number, and send the first pairing response information to the second vehicle-mounted device device, so that the second random number can be fed back to the second in-vehicle device.
  • the first in-vehicle device may assign the generated second random number to a second variable, generate first pairing response information according to the assigned second variable, and send the first pairing response information to the second in-vehicle device , so that the second variable assigned as the second random number can be fed back to the second vehicle-mounted device.
  • the first in-vehicle device may generate the first authentication data according to the identification information of the second in-vehicle device, the first random number and the second random number; the second in-vehicle device may generate the first authentication data according to the identification information of the second in-vehicle device, the first A random number and a second random number to generate second authentication data.
  • the first in-vehicle device and the second in-vehicle device may generate authentication data according to a symmetric encryption algorithm or an asymmetric encryption algorithm.
  • the first in-vehicle device can generate the first authentication data C 1 using Equation 1 and Equation 3
  • the second in-vehicle device can generate the second authentication data C 2 using Equation 2 and Equation 3:
  • M represents the identification information of the second vehicle-mounted device
  • r 1 represents the first random number
  • r 2 represents the second random number
  • the first in-vehicle device after the first in-vehicle device generates the first authentication data and obtains the second authentication data, it can determine whether the second authentication data matches the first authentication data. If the second authentication data matches the first authentication data, the pairing may be established with the second vehicle-mounted device; if the second authentication data does not match the first authentication data, the pairing may not be established with the second vehicle-mounted device.
  • the second authentication data matches the first authentication data, and the second authentication data may be the same as the first authentication data, or it may be determined according to other preset matching strategies that the second authentication data matches the first authentication data.
  • the second authentication data may be the same as the first authentication data, or it may be determined according to other preset matching strategies that the second authentication data matches the first authentication data.
  • the first in-vehicle device sends first pairing response information carrying the second random number to the second in-vehicle device in response to the pairing request information, according to the identification information of the second in-vehicle device, the first random number and the Two random numbers, generating first authentication data, receiving pairing confirmation information carrying the second authentication data from the second in-vehicle device, and establishing a pairing with the second in-vehicle device in response to the second authentication data matching the first authentication data, whereby, the pairing security of the in-vehicle device can be further improved.
  • the sending, in response to the pairing request information, the first pairing response information to the second in-vehicle device includes: determining, according to the identification information of the second in-vehicle device, that it is not connected to the second in-vehicle device.
  • first pairing response information is sent to the second in-vehicle device.
  • the first in-vehicle device can determine whether to Pairing has been established with a second vehicle device.
  • the first in-vehicle device can compare the identification information of the paired in-vehicle device with the identification information of the second in-vehicle device; if the identification information of the second in-vehicle device is the same as the identification information of the paired in-vehicle device, it can be determined that Pairing has been established with the second in-vehicle device; if the identification information of the second in-vehicle device is different from the identification information of the paired in-vehicle device, it can be determined that the pairing has not been established with the second in-vehicle device.
  • the first pairing response information may be sent to the second in-vehicle device in response to the pairing request information, so as to execute the subsequent pairing process.
  • the first in-vehicle device sends a first pairing response to the second in-vehicle device in response to the pairing request information when it is determined according to the identification information of the second in-vehicle device that the pairing has not been established with the second in-vehicle device information, thereby saving unnecessary pairing procedures.
  • the method further includes: recording information that the pairing has been established with the second in-vehicle device according to the identification information of the second in-vehicle device.
  • the first in-vehicle device may update the identification information of the paired in-vehicle device to the identification information of the second in-vehicle device.
  • the first in-vehicle device records the information that the pairing has been established with the second in-vehicle device according to the identification information of the second in-vehicle device, so that it can receive information from the second in-vehicle device again.
  • the second in-vehicle device sends the pairing request information through the wireless connection, it is determined according to the recorded information that it has been paired with the second in-vehicle device, thereby saving unnecessary pairing procedures.
  • the first in-vehicle device may send the first in-vehicle device to the second in-vehicle device in response to the pairing request information Pairing response information, regardless of whether a pairing has been established with the second in-vehicle device.
  • the pairing with the second in-vehicle device according to the identification information of the second in-vehicle device in response to the pairing request information includes: In the case where the identification information determines that a pairing has been established with the second in-vehicle device, in response to the pairing request information, send second pairing response information to the second in-vehicle device, wherein the second pairing response information is used for Notifying the second in-vehicle device that a pairing has been established with the first in-vehicle device.
  • the first in-vehicle device determines that a pairing has been established with the second in-vehicle device, it can send the second pairing response information to the second in-vehicle device without performing the subsequent pairing process, thereby saving unnecessary pairing processes .
  • the method further includes: receiving control request information from the second in-vehicle device; in response to A pairing has been established with the second in-vehicle device, and the first in-vehicle device is controlled according to the control request information.
  • the second in-vehicle device may send control request information to the first in-vehicle device to control the first in-vehicle device.
  • control request information may be used to control the first in-vehicle device to perform information collection, information storage, information transmission, information upload, password change, etc., wherein the information may include video, photo, sound, vehicle operation information, etc. at least one.
  • the first in-vehicle device controls the first in-vehicle device according to the control request information by receiving the control request information from the second in-vehicle device, and in response to having established a pairing with the second in-vehicle device, Therefore, it is convenient for the user to control the first in-vehicle device through the second in-vehicle device.
  • control request information is used to request real-time acquisition of the video recorded by the first in-vehicle device; in response to having established a pairing with the second in-vehicle device, according to the control request information, Controlling the first in-vehicle device includes: in response to establishing a pairing with the second in-vehicle device, according to the control request information, sending the video to the second in-vehicle device in real time, so that the The second in-vehicle device plays the video in real time.
  • the second in-vehicle device can acquire and play the video recorded by the first in-vehicle device in real time, so that it is convenient for the user to watch the video recorded by the first in-vehicle device through the second in-vehicle device.
  • control request information is used to request to modify the password of the wireless access point; in response to the pairing with the second in-vehicle device being established, according to the control request information,
  • the controlling by the first in-vehicle device includes: in response to establishing pairing with the second in-vehicle device, modifying the password of the wireless access point according to the control request information.
  • FIG. 2 shows another exemplary flowchart of a method for pairing an in-vehicle device provided by an embodiment of the present disclosure.
  • the pairing method of the in-vehicle device is performed by the second in-vehicle device.
  • the pairing method of the in-vehicle device may be implemented by the processor calling computer-readable instructions stored in the memory.
  • the pairing method of the in-vehicle device includes steps S21 to S23.
  • step S21 the service set identifier and password of the wireless access point provided by the first in-vehicle device are received from the first in-vehicle device through wired communication.
  • step S22 a wireless connection request is sent to the first in-vehicle device according to the service set identifier and password of the wireless access point, so as to establish a wireless connection with the first in-vehicle device.
  • step S23 pairing is performed with the first in-vehicle device through the wireless connection.
  • the second in-vehicle device obtains the service set identifier and password of the wireless access point provided by the first in-vehicle device through wired communication, instead of obtaining the service set identifier of the wireless access point through wireless communication password and password, thereby improving the security of transmitting the service set identifier and password of the wireless access point.
  • the receiving from the first in-vehicle device through wired communication the service set identifier and the password of the wireless access point provided by the first in-vehicle device includes: from the first in-vehicle device through the CAN bus The service set identifier and password of the wireless access point provided by the first in-vehicle device are received.
  • the second in-vehicle device can obtain the service set identifier and password of the wireless access point from the CAN bus.
  • the second in-vehicle device may send a wireless connection request to the first in-vehicle device based on TCP/IP.
  • the first in-vehicle device may establish a wireless connection with the second in-vehicle device based on TCP/IP in response to the wireless connection request.
  • the second in-vehicle device may also establish a wireless connection with the first in-vehicle device based on other communication protocols, which is not limited herein.
  • the second in-vehicle device may actively request to pair with the first in-vehicle device through the wireless connection, or may respond to a request from the first in-vehicle device.
  • the pairing request is paired with the first in-vehicle device through the wireless connection.
  • the second in-vehicle device receives the service set identifier and password of the wireless access point provided by the first in-vehicle device from the first in-vehicle device through wired communication, according to the service set identifier of the wireless access point and password, send a wireless connection request to the first in-vehicle device to establish a wireless connection with the first in-vehicle device, and pair with the first in-vehicle device through the wireless connection, thereby improving the pairing security of the in-vehicle device.
  • the pairing with the first in-vehicle device through the wireless connection includes: sending pairing request information to the first in-vehicle device through the wireless connection, so that the first in-vehicle device can be paired by the first in-vehicle device.
  • An in-vehicle device is paired with the second in-vehicle device in response to the pairing request information, wherein the pairing request information carries the identification information of the second in-vehicle device.
  • the second in-vehicle device may send pairing request information to the first in-vehicle device through the wireless connection, where the pairing request information is used to request pairing with the first in-vehicle device.
  • the first in-vehicle device may pair with the second in-vehicle device according to the identification information of the second in-vehicle device.
  • two-way authentication can be performed between the first in-vehicle device and the second in-vehicle device, thereby further improving the security of pairing between the first in-vehicle device and the second in-vehicle device.
  • the pairing request information includes a first random number
  • the method further includes: receiving a response from the first in-vehicle device to The first pairing response information returned by the pairing request information, wherein the first pairing response information carries the second random number generated by the first in-vehicle device; A random number and the second random number are used to generate second authentication data; and the second authentication data is sent to the first in-vehicle device.
  • the second in-vehicle device receives the first pairing response information carrying the second random number returned by the first in-vehicle device in response to the pairing request information, according to the identification information of the second in-vehicle device, the first random number and the The second random number is used to generate the second authentication data, and send the second authentication data to the first in-vehicle device, so that the first in-vehicle device can determine whether the second authentication data matches the first authentication data and then determine whether it is established with the second in-vehicle device. pairing, which can further improve the pairing security of in-vehicle devices.
  • the method further includes: receiving a second pairing response returned by the first in-vehicle device in response to the pairing request information information, wherein the second pairing response information is used to notify the second in-vehicle device that a pairing has been established with the first in-vehicle device.
  • the second pairing response information may be sent to the second in-vehicle device. After receiving the second pairing response, the second in-vehicle device may not need to perform a subsequent pairing process, thereby saving unnecessary pairing processes.
  • the method further includes: storing the The service set identifier and password of the wireless access point.
  • the second in-vehicle device can, after disconnecting the wireless connection with the first in-vehicle device, The service set identifier and password of the wireless access point are used to quickly establish a wireless connection with the first in-vehicle device again.
  • the second in-vehicle device may not store the service set identifier and password of the wireless access point provided by the first in-vehicle device.
  • the method further includes: receiving an instruction for controlling the first in-vehicle device; in response to establishing a pairing with the first in-vehicle device, according to the instruction for controlling the first in-vehicle device, generating control request information; and sending the control request information to the first in-vehicle device to control the first in-vehicle device.
  • this implementation manner it is convenient for the user to control the first in-vehicle device through the second in-vehicle device.
  • the instruction is used to play the video recorded by the first in-vehicle device in real time;
  • the control request information is used to request to obtain the video recorded by the first in-vehicle device in real time;
  • Sending the control request information by the first in-vehicle device to control the first in-vehicle device includes: sending the control request information to the first in-vehicle device to control the first in-vehicle device to send the control request information in real time. sending the video to the second in-vehicle device; after the sending the control request information to the first in-vehicle device, the method further includes: in response to receiving the video, playing the video in real time.
  • the second in-vehicle device can acquire and play the video recorded by the first in-vehicle device in real time, so that it is convenient for the user to watch the video recorded by the first in-vehicle device through the second in-vehicle device.
  • the embodiments of the present disclosure may be applied to technical fields such as smart cockpits.
  • the following describes the pairing method of the vehicle-mounted device provided by the embodiment of the present disclosure through a specific application scenario.
  • the first in-vehicle device is a DVR
  • the second in-vehicle device is a HU.
  • the DVR can be paired with the HU through the pairing method for the in-vehicle device provided by the embodiment of the present disclosure.
  • the service set identifier of the wireless access point can be set to DVR_xxxxxxxx, and the password of the wireless access point can be set to a random 8-digit character, wherein the last 8 characters of the service set identifier
  • the bit characters "xxxxxxxx" can be the first 8 characters of the MAC address of the DVR.
  • FIG. 3 shows a schematic diagram of an application scenario provided by an embodiment of the present disclosure.
  • the DVR can send the service set identifier and password of the wireless access point provided by the DVR to the HU through the CAN bus.
  • the HU may store the service set identifier and password of the wireless access point.
  • the HU may send a wireless connection request to the DVR based on TCP/IP.
  • the DVR may establish a wireless connection with the HU based on TCP/IP in response to the wireless connection request.
  • the HU may send pairing request information to the DVR through the wireless connection, where the pairing request information includes the first random number generated by the HU.
  • the DVR can determine whether a pairing has been established with the HU according to the MAC address of the HU carried in the pairing request information. If the DVR determines that it has not established a pairing with the HU, it may send first pairing response information to the HU in response to the pairing request information, where the first pairing response information carries the second random number generated by the DVR.
  • the DVR can generate the first authentication data according to the HU's MAC address, the first random number and the second random number; the HU can generate the second authentication data according to the HU's MAC address, the first random number and the second random number.
  • the HU After the HU generates the second authentication data, it can generate pairing confirmation information according to the second authentication data, and send the pairing confirmation information to the DVR.
  • the DVR After the DVR generates the first authentication data and obtains the second authentication data, it may determine whether the second authentication data matches the first authentication data.
  • the DVR may establish a pairing with the HU in response to the second authentication data matching the first authentication data. After the DVR establishes pairing with the HU, it can update the MAC address of the paired HU to the MAC address of the HU.
  • FIG. 4 shows another schematic diagram of an application scenario provided by an embodiment of the present disclosure.
  • the DVR after receiving the pairing request information sent from the HU through the wireless connection, if the DVR determines that the pairing has been established with the HU, it can send the second pairing response information to the HU without performing subsequent pairing process, which can save unnecessary pairing process.
  • the user can control the DVR through the HU.
  • the HU can control the DVR to take photos, record videos, change the password, and so on.
  • the HU can control the DVR to send the recorded video to the HU in real time, so that the HU can obtain the video recorded by the DVR in real time, and can play the video in real time.
  • the user can also trigger the DVR to take pictures or record videos through an application (App, Application) on the DVR end.
  • the DVR and the HU can be re-paired by using the pairing method of the vehicle-mounted device provided by the embodiment of the present disclosure.
  • the present disclosure also provides a pairing device, an electronic device, a computer-readable storage medium, and a program for an in-vehicle device, all of which can be used to implement any of the in-vehicle device pairing methods provided by the present disclosure, and the corresponding technical solutions and technical effects can be found in The corresponding records in the method part are not repeated here.
  • FIG. 5 shows an exemplary block diagram of a pairing apparatus of an in-vehicle device provided by an embodiment of the present disclosure.
  • the pairing device of the in-vehicle device is applied to the first in-vehicle device.
  • the pairing device of the vehicle-mounted device includes:
  • a first sending module 51 configured to send the service set identifier and password of the wireless access point provided by the first on-board device to the second on-board device through wired communication;
  • a first establishing module 52 configured to establish a wireless connection with the second in-vehicle device in response to a wireless connection request sent by the second in-vehicle device according to the service set identifier and password of the wireless access point;
  • the first pairing module 53 is configured to pair with the second vehicle-mounted device through the wireless connection.
  • the first pairing module 53 is used for:
  • pairing request information sent by the second vehicle-mounted device through the wireless connection, wherein the pairing request information carries the identification information of the second vehicle-mounted device;
  • pairing is performed with the second in-vehicle device according to the identification information of the second in-vehicle device.
  • the pairing request information includes a first random number generated by the second vehicle-mounted device
  • the first pairing module 53 is used for:
  • first pairing response information In response to the pairing request information, send first pairing response information to the second in-vehicle device, wherein the first pairing response information carries a second random number generated by the first in-vehicle device;
  • pairing confirmation information from the second in-vehicle device, wherein the pairing confirmation information includes the identification information of the second in-vehicle device according to the second in-vehicle device, the first random number and the second random number the generated second authentication data;
  • the first pairing module 53 is used for:
  • first pairing response information is sent to the second in-vehicle device.
  • the apparatus further includes:
  • the recording module is configured to record the information that the pairing has been established with the second in-vehicle device according to the identification information of the second in-vehicle device.
  • the first pairing module 53 is used for:
  • the second in-vehicle device in response to the pairing request information, send second pairing response information to the second in-vehicle device, wherein, The second pairing response information is used to notify the second in-vehicle device that a pairing has been established with the first in-vehicle device.
  • the first sending module 51 is used for:
  • the apparatus further includes:
  • a second receiving module configured to receive control request information from the second vehicle-mounted device
  • a control module configured to control the first in-vehicle device according to the control request information in response to establishing a pairing with the second in-vehicle device.
  • the control request information is used to request real-time acquisition of the video recorded by the first vehicle-mounted device
  • the control module is configured to: in response to having established a pairing with the second in-vehicle device, according to the control request information, send the video to the second in-vehicle device in real time, so as to be played by the second in-vehicle device in real time the video.
  • the first in-vehicle device sends the service set identifier and password of the wireless access point provided by the first in-vehicle device to the second in-vehicle device through wired communication, and in response to the second in-vehicle device according to the wireless access point
  • a wireless connection request sent by the service set identifier and password of the in-point establishes a wireless connection with the second in-vehicle device, and is paired with the second in-vehicle device through the wireless connection, thereby improving the security of pairing between in-vehicle devices .
  • FIG. 6 shows another exemplary block diagram of a pairing apparatus of an in-vehicle device provided by an embodiment of the present disclosure.
  • the pairing device of the in-vehicle device is applied to the second in-vehicle device.
  • the pairing device of the vehicle-mounted device includes:
  • a first receiving module 61 configured to receive the service set identifier and password of the wireless access point provided by the first in-vehicle device from the first in-vehicle device through wired communication;
  • a second sending module 62 configured to send a wireless connection request to the first in-vehicle device according to the service set identifier and password of the wireless access point, so as to establish a wireless connection with the first in-vehicle device;
  • the second pairing module 63 is configured to pair with the first in-vehicle device through the wireless connection.
  • the second pairing module 63 is used for:
  • the pairing request information includes a first random number
  • the device also includes:
  • a third receiving module configured to receive first pairing response information returned by the first in-vehicle device in response to the pairing request information, wherein the first pairing response information carries the second random generated by the first in-vehicle device number;
  • a first generating module configured to generate second authentication data according to the identification information of the second vehicle-mounted device, the first random number and the second random number;
  • a third sending module configured to send the second authentication data to the first in-vehicle device.
  • the apparatus further includes:
  • the fourth receiving module is configured to receive second pairing response information returned by the first in-vehicle device in response to the pairing request information, wherein the second pairing response information is used to notify the second in-vehicle device that it has The first in-vehicle device establishes a pairing.
  • the apparatus further includes:
  • the storage module is used for storing the service set identifier and the password of the wireless access point.
  • the apparatus further includes:
  • a fifth receiving module configured to receive an instruction to control the first vehicle-mounted device
  • a second generating module configured to generate control request information according to an instruction for controlling the first in-vehicle device in response to having established a pairing with the first in-vehicle device
  • the fourth sending module is configured to send the control request information to the first vehicle-mounted device, so as to control the first vehicle-mounted device.
  • the instruction is used to play the video recorded by the first vehicle-mounted device in real time
  • the control request information is used to request real-time acquisition of the video recorded by the first vehicle-mounted device
  • the fourth sending module is configured to: send the control request information to the first on-board device, so as to control the first on-board device to send the video to the second on-board device in real time;
  • the apparatus further includes: a playing module for playing the video in real time in response to receiving the video.
  • the second in-vehicle device receives the service set identifier and password of the wireless access point provided by the first in-vehicle device from the first in-vehicle device through wired communication, according to the service set identifier of the wireless access point and password, send a wireless connection request to the first in-vehicle device to establish a wireless connection with the first in-vehicle device, and pair with the first in-vehicle device through the wireless connection, thereby improving the pairing security of the in-vehicle device.
  • the functions or modules included in the apparatus provided in the embodiments of the present disclosure may be used to execute the methods described in the above method embodiments, and the specific implementation and technical effects may refer to the above method embodiments. It is concise and will not be repeated here.
  • Embodiments of the present disclosure further provide a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the foregoing method is implemented.
  • the computer-readable storage medium may be a non-volatile computer-readable storage medium, or may be a volatile computer-readable storage medium.
  • Embodiments of the present disclosure further provide a computer program, including computer-readable codes, when the computer-readable codes are executed in an electronic device, the processor in the electronic device executes the above method.
  • Embodiments of the present disclosure further provide a computer program product, including computer-readable codes, or a non-volatile computer-readable storage medium carrying computer-readable codes, when the computer-readable codes are executed in an electronic device, A processor in the electronic device executes the above method.
  • Embodiments of the present disclosure further provide an electronic device, including: one or more processors; a memory for storing executable instructions; wherein the one or more processors are configured to invoke executable instructions stored in the memory instruction to execute the above method.
  • the electronic device may be provided as an in-vehicle device.
  • FIG. 7 shows a block diagram of an electronic device 800 provided by an embodiment of the present disclosure.
  • an electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814 , and the communication component 816 .
  • the processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations.
  • the processing component 802 can include one or more processors 820 to execute instructions to perform all or some of the steps of the methods described above.
  • processing component 802 may include one or more modules that facilitate interaction between processing component 802 and other components.
  • processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
  • Memory 804 is configured to store various types of data to support operation at electronic device 800 . Examples of such data include instructions for any application or method operating on electronic device 800, contact data, phonebook data, messages, pictures, videos, and the like. Memory 804 may be implemented by any type of volatile or nonvolatile storage device or combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read only memory
  • EPROM erasable Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Magnetic or Optical Disk Magnetic Disk
  • Power supply assembly 806 provides power to various components of electronic device 800 .
  • Power supply components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 800 .
  • Multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user.
  • the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user.
  • the touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or swipe action, but also detect the duration and pressure associated with the touch or swipe action.
  • the multimedia component 808 includes a front-facing camera and/or a rear-facing camera. When the electronic device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each of the front and rear cameras can be a fixed optical lens system or have focal length and optical zoom capability.
  • Audio component 810 is configured to output and/or input audio signals.
  • audio component 810 includes a microphone (MIC) that is configured to receive external audio signals when electronic device 800 is in operating modes, such as calling mode, recording mode, and voice recognition mode.
  • the received audio signal may be further stored in memory 804 or transmitted via communication component 816 .
  • audio component 810 also includes a speaker for outputting audio signals.
  • the I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to: home button, volume buttons, start button, and lock button.
  • Sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of electronic device 800 .
  • the sensor assembly 814 can detect the on/off state of the electronic device 800, the relative positioning of the components, such as the display and the keypad of the electronic device 800, the sensor assembly 814 can also detect the electronic device 800 or one of the electronic device 800 Changes in the position of components, presence or absence of user contact with the electronic device 800 , orientation or acceleration/deceleration of the electronic device 800 and changes in the temperature of the electronic device 800 .
  • Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact.
  • Sensor assembly 814 may also include a light sensor, such as a complementary metal oxide semiconductor (CMOS) or charge coupled device (CCD) image sensor, for use in imaging applications.
  • CMOS complementary metal oxide semiconductor
  • CCD charge coupled device
  • the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • Communication component 816 is configured to facilitate wired or wireless communication between electronic device 800 and other devices.
  • the electronic device 800 can access a wireless network based on communication standards, such as wireless network (Wi-Fi), second generation mobile communication technology (2G), third generation mobile communication technology (3G), fourth generation mobile communication technology (4G) )/Long Term Evolution (LTE) of Universal Mobile Communications Technology, Fifth Generation Mobile Communications Technology (5G), or a combination thereof.
  • the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel.
  • the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication.
  • the NFC module may be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • electronic device 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A programmed gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation is used to perform the above method.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGA field programmable A programmed gate array
  • controller microcontroller, microprocessor or other electronic component implementation is used to perform the above method.
  • a non-volatile computer-readable storage medium such as a memory 804 comprising computer program instructions executable by the processor 820 of the electronic device 800 to perform the above method is also provided.
  • the present disclosure may be a system, method and/or computer program product.
  • the computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of the present disclosure.
  • a computer-readable storage medium may be a tangible device that can hold and store instructions for use by the instruction execution device.
  • the computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing.
  • Non-exhaustive list of computer readable storage media include: portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM) or flash memory), static random access memory (SRAM), portable compact disk read only memory (CD-ROM), digital versatile disk (DVD), memory sticks, floppy disks, mechanically coded devices, such as printers with instructions stored thereon Hole cards or raised structures in grooves, and any suitable combination of the above.
  • RAM random access memory
  • ROM read only memory
  • EPROM erasable programmable read only memory
  • flash memory static random access memory
  • SRAM static random access memory
  • CD-ROM compact disk read only memory
  • DVD digital versatile disk
  • memory sticks floppy disks
  • mechanically coded devices such as printers with instructions stored thereon Hole cards or raised structures in grooves, and any suitable combination of the above.
  • Computer-readable storage media are not to be construed as transient signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (eg, light pulses through fiber optic cables), or through electrical wires transmitted electrical signals.
  • the computer readable program instructions described herein may be downloaded to various computing/processing devices from a computer readable storage medium, or to an external computer or external storage device over a network such as the Internet, a local area network, a wide area network, and/or a wireless network.
  • the network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers.
  • a network adapter card or network interface in each computing/processing device receives computer-readable program instructions from a network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing/processing device .
  • Computer program instructions for carrying out operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or instructions in one or more programming languages.
  • Source or object code written in any combination, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as the "C" language or similar programming languages.
  • the computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server implement.
  • the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through the Internet connect).
  • LAN local area network
  • WAN wide area network
  • custom electronic circuits such as programmable logic circuits, field programmable gate arrays (FPGAs), or programmable logic arrays (PLAs) can be personalized by utilizing state information of computer readable program instructions.
  • Computer readable program instructions are executed to implement various aspects of the present disclosure.
  • These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer or other programmable data processing apparatus to produce a machine that causes the instructions when executed by the processor of the computer or other programmable data processing apparatus , resulting in means for implementing the functions/acts specified in one or more blocks of the flowchart and/or block diagrams.
  • These computer readable program instructions can also be stored in a computer readable storage medium, these instructions cause a computer, programmable data processing apparatus and/or other equipment to operate in a specific manner, so that the computer readable medium on which the instructions are stored includes An article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks of the flowchart and/or block diagrams.
  • Computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other equipment to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other equipment to produce a computer-implemented process , thereby causing instructions executing on a computer, other programmable data processing apparatus, or other device to implement the functions/acts specified in one or more blocks of the flowcharts and/or block diagrams.
  • each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more functions for implementing the specified logical function(s) executable instructions.
  • the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented in dedicated hardware-based systems that perform the specified functions or actions , or can be implemented in a combination of dedicated hardware and computer instructions.
  • the computer program product can be specifically implemented by hardware, software or a combination thereof.
  • the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK), etc. Wait.
  • a software development kit Software Development Kit, SDK

Abstract

本公开涉及一种车载设备的配对方法及装置、电子设备和存储介质。所述方法包括:通过有线通信向第二车载设备发送所述第一车载设备提供的无线接入点的服务集标识符和密码;响应于由所述第二车载设备根据所述无线接入点的服务集标识符和密码发出的无线连接请求,与所述第二车载设备建立无线连接;通过所述无线连接与所述第二车载设备进行配对。

Description

车载设备的配对方法及装置、电子设备和存储介质
本申请要求在2021年3月23日提交中国专利局、申请号为202110310110.8、申请名称为“车载设备的配对方法及装置、电子设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本公开涉及车辆技术领域,尤其涉及一种车载设备的配对方法及装置、电子设备和存储介质。
背景技术
目前,越来越多的车辆同时配置有多个车载设备,且不同的车载设备之间常常需要通过配对才能协同工作。不同的车载设备记录有不同的行车数据和/或用户数据,因此,提高车载设备的配对安全性具有重要意义。
发明内容
本公开提供了一种车载设备的配对技术方案。
根据本公开的一方面,提供了一种车载设备的配对方法,应用于第一车载设备,所述方法包括:
通过有线通信向第二车载设备发送所述第一车载设备提供的无线接入点的服务集标识符和密码;
响应于由所述第二车载设备根据所述无线接入点的服务集标识符和密码发出的无线连接请求,与所述第二车载设备建立无线连接;
通过所述无线连接与所述第二车载设备进行配对。
在一种可能的实现方式中,所述通过所述无线连接与所述第二车载设备进行配对,包括:
接收所述第二车载设备通过所述无线连接发送的配对请求信息,其中,所述配对请求信息携带所述第二车载设备的标识信息;
响应于所述配对请求信息,根据所述第二车载设备的标识信息,与所述第二车载设备进行配对。
在一种可能的实现方式中,所述配对请求信息包括所述第二车载设备生成的第一随机数;
所述响应于所述配对请求信息,根据所述第二车载设备的标识信息,与所述第二车载设备进行配对,包括:
响应于所述配对请求信息,向所述第二车载设备发送第一配对响应信息,其中,所述第一配对响应信息携带所述第一车载设备生成的第二随机数;
根据所述第二车载设备的标识信息、所述第一随机数和所述第二随机数,生成第一认证数据;
接收来自于所述第二车载设备的配对确认信息,其中,所述配对确认信息包括所述第二车载设备根据第二车载设备的标识信息、所述第一随机数和所述第二随机数生成的第二认证数据;
响应于所述第二认证数据与所述第一认证数据匹配,与所述第二车载设备建立配对。
在一种可能的实现方式中,所述响应于所述配对请求信息,向所述第二车载设备发送第一配对响应信息,包括:
在根据所述第二车载设备的标识信息确定未与所述第二车载设备建立配对的情况下,响应于所述配对请求信息,向所述第二车载设备发送第一配对响应信息。
在一种可能的实现方式中,在所述与所述第二车载设备建立配对之后,所述方法还包括:
根据所述第二车载设备的标识信息,记录已与所述第二车载设备建立配对的信息。
在一种可能的实现方式中,所述响应于所述配对请求信息,根据所述第二车载设备的标识信息,与所述第二车载设备进行配对,包括:
在根据所述第二车载设备的标识信息确定已与所述第二车载设备建立配对的情况下,响应于所述配对请求信息,向所述第二车载设备发送第二配对响应信息,其中,所述第二配对响应信息用于通知所述第二车载设备已与所述第一车载设备建立配对。
在一种可能的实现方式中,所述通过有线通信向第二车载设备发送所述第一车载设备提供的无线接入点的服务集标识符和密码,包括:
通过控制器局域网络CAN总线向第二车载设备发送所述第一车载设备提供的无线接入点的服务集标识符和密码。
在一种可能的实现方式中,在所述通过所述无线连接与所述第二车载设备进行配对之后,所述方法还包括:
接收来自于所述第二车载设备的控制请求信息;
响应于已与所述第二车载设备建立配对,根据所述控制请求信息,对所述第一车载设备进行控制。
在一种可能的实现方式中,
所述控制请求信息用于请求实时获取所述第一车载设备录制的视频;
所述响应于已与所述第二车载设备建立配对,根据所述控制请求信息,对所述第一车载设备进行控制,包括:响应于已与所述第二车载设备建立配对,根据所述控制请求信息,实时发送所述视频至所述第二车载设备,以由所述第二车载设备实时播放所述视频。
根据本公开的一方面,提供了一种车载设备的配对方法,应用于第二车载设备,所述方法包括:
通过有线通信从第一车载设备接收所述第一车载设备提供的无线接入点的服务集标识符和密码;
根据所述无线接入点的服务集标识符和密码,向所述第一车载设备发送无线连接请求,以与所述第一车载设备建立无线连接;
通过所述无线连接与所述第一车载设备进行配对。
在一种可能的实现方式中,所述通过所述无线连接与所述第一车载设备进行配对,包括:
通过所述无线连接向所述第一车载设备发送配对请求信息,以由所述第一车载设备响应于所述配对请求信息,与所述第二车载设备进行配对,其中,所述配对请求信息携带所述第二车载设备的标识信息。
在一种可能的实现方式中,所述配对请求信息包括第一随机数;
在所述向所述第一车载设备发送配对请求信息之后,所述方法还包括:
接收所述第一车载设备响应于所述配对请求信息返回的第一配对响应信息,其中,所述第一配对响应信息携带所述第一车载设备生成的第二随机数;
根据所述第二车载设备的标识信息、所述第一随机数和所述第二随机数,生成第二认证数据;
向所述第一车载设备发送所述第二认证数据。
在一种可能的实现方式中,在所述向所述第一车载设备发送配对请求信息之后,所述方法还包括:
接收所述第一车载设备响应于所述配对请求信息返回的第二配对响应信息,其中,所述第二配对响应信息用于通知所述第二车载设备已与所述第一车载设备建立配对。
在一种可能的实现方式中,在所述通过有线通信从第一车载设备接收所述第一车载设备提供的无线接入点的服务集标识符和密码之后,所述方法还包括:
存储所述无线接入点的服务集标识符和密码。
在一种可能的实现方式中,所述方法还包括:
接收控制所述第一车载设备的指令;
响应于已与所述第一车载设备建立配对,根据控制所述第一车载设备的指令,生成控制请求信息;
向所述第一车载设备发送所述控制请求信息,以对所述第一车载设备进行控制。
在一种可能的实现方式中,
所述指令用于实时播放所述第一车载设备录制的视频;
所述控制请求信息用于请求实时获取所述第一车载设备录制的视频;
所述向所述第一车载设备发送所述控制请求信息,以对所述第一车载设备进行控制,包括:向所述第一车载设备发送所述控制请求信息,以控制所述第一车载设备实时发送所述视频至所述第二车载设备;
在所述向所述第一车载设备发送所述控制请求信息之后,所述方法还包括:响应于接收到所述视频,实时播放所述视频。
根据本公开的一方面,提供了一种车载设备的配对装置,应用于第一车载设备,所述装置包括:
第一发送模块,用于通过有线通信向第二车载设备发送所述第一车载设备提供的无线接入点的服务集标识符和密码;
第一建立模块,用于响应于由所述第二车载设备根据所述无线接入点的服务集标识符和密码发出的无线连接请求,与所述第二车载设备建立无线连接;
第一配对模块,用于通过所述无线连接与所述第二车载设备进行配对。
在一种可能的实现方式中,所述第一配对模块用于:
接收所述第二车载设备通过所述无线连接发送的配对请求信息,其中,所述配对请求信息携带所述第二车载设备的标识信息;
响应于所述配对请求信息,根据所述第二车载设备的标识信息,与所述第二车载设备进行配对。
在一种可能的实现方式中,所述配对请求信息包括所述第二车载设备生成的第一随机数;
所述第一配对模块用于:
响应于所述配对请求信息,向所述第二车载设备发送第一配对响应信息,其中,所述第一配对响应信息携带所述第一车载设备生成的第二随机数;
根据所述第二车载设备的标识信息、所述第一随机数和所述第二随机数,生成第一认证数据;
接收来自于所述第二车载设备的配对确认信息,其中,所述配对确认信息包括所述第二车载设备根据第二车载设备的标识信息、所述第一随机数和所述第二随机数生成的第二认证数据;
响应于所述第二认证数据与所述第一认证数据匹配,与所述第二车载设备建立配对。
在一种可能的实现方式中,所述第一配对模块用于:
在根据所述第二车载设备的标识信息确定未与所述第二车载设备建立配对的情况下,响应于所述配对请求信息,向所述第二车载设备发送第一配对响应信息。
在一种可能的实现方式中,所述装置还包括:
记录模块,用于根据所述第二车载设备的标识信息,记录已与所述第二车载设备建立配对的信息。
在一种可能的实现方式中,所述第一配对模块用于:
在根据所述第二车载设备的标识信息确定已与所述第二车载设备建立配对的情况下,响应于所述配对请求信息,向所述第二车载设备发送第二配对响应信息,其中,所述第二配对响应信息用于通知所述第二车载设备已与所述第一车载设备建立配对。
在一种可能的实现方式中,所述第一发送模块用于:
通过控制器局域网络CAN总线向第二车载设备发送所述第一车载设备提供的无线接入点的服务集标识符和密码。
在一种可能的实现方式中,所述装置还包括:
第二接收模块,用于接收来自于所述第二车载设备的控制请求信息;
控制模块,用于响应于已与所述第二车载设备建立配对,根据所述控制请求信息,对所述第一车载设备进行控制。
在一种可能的实现方式中,
所述控制请求信息用于请求实时获取所述第一车载设备录制的视频;
所述控制模块用于:响应于已与所述第二车载设备建立配对,根据所述控制请求信息,实时发送所述视频至所述第二车载设备,以由所述第二车载设备实时播放所述视频。
根据本公开的一方面,提供了一种车载设备的配对装置,应用于第二车载设备,所述装置包括:
第一接收模块,用于通过有线通信从第一车载设备接收所述第一车载设备提供的无线接入点的服务集标识符和密码;
第二发送模块,用于根据所述无线接入点的服务集标识符和密码,向所述第一车载设备发送无线连接请求,以与所述第一车载设备建立无线连接;
第二配对模块,用于通过所述无线连接与所述第一车载设备进行配对。
在一种可能的实现方式中,所述第二配对模块用于:
通过所述无线连接向所述第一车载设备发送配对请求信息,以由所述第一车载设备响应于所述配对请求信息,与所述第二车载设备进行配对,其中,所述配对请求信息携带所述第二车载设备的标识信息。
在一种可能的实现方式中,所述配对请求信息包括第一随机数;
所述装置还包括:
第三接收模块,用于接收所述第一车载设备响应于所述配对请求信息返回的第一配对响应信息,其中,所述第一配对响应信息携带所述第一车载设备生成的第二随机数;
第一生成模块,用于根据所述第二车载设备的标识信息、所述第一随机数和所述第二随机数,生 成第二认证数据;
第三发送模块,用于向所述第一车载设备发送所述第二认证数据。
在一种可能的实现方式中,所述装置还包括:
第四接收模块,用于接收所述第一车载设备响应于所述配对请求信息返回的第二配对响应信息,其中,所述第二配对响应信息用于通知所述第二车载设备已与所述第一车载设备建立配对。
在一种可能的实现方式中,所述装置还包括:
存储模块,用于存储所述无线接入点的服务集标识符和密码。
在一种可能的实现方式中,所述装置还包括:
第五接收模块,用于接收控制所述第一车载设备的指令;
第二生成模块,用于响应于已与所述第一车载设备建立配对,根据控制所述第一车载设备的指令,生成控制请求信息;
第四发送模块,用于向所述第一车载设备发送所述控制请求信息,以对所述第一车载设备进行控制。
在一种可能的实现方式中,
所述指令用于实时播放所述第一车载设备录制的视频;
所述控制请求信息用于请求实时获取所述第一车载设备录制的视频;
所述第四发送模块用于:向所述第一车载设备发送所述控制请求信息,以控制所述第一车载设备实时发送所述视频至所述第二车载设备;
所述装置还包括:播放模块,用于响应于接收到所述视频,实时播放所述视频。
根据本公开的一方面,提供了一种电子设备,包括:一个或多个处理器;用于存储可执行指令的存储器;其中,所述一个或多个处理器被配置为调用所述存储器存储的可执行指令,以执行上述方法。
根据本公开的一方面,提供了一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现上述方法。
根据本公开的一方面,提供了一种计算机程序产品,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备中运行时,所述电子设备中的处理器执行上述方法。
在本公开实施例中,第一车载设备通过有线通信向第二车载设备发送第一车载设备提供的无线接入点的服务集标识符和密码,响应于由第二车载设备根据所述无线接入点的服务集标识符和密码发出的无线连接请求,与第二车载设备建立无线连接,并通过所述无线连接与第二车载设备进行配对,由此能够提高车载设备之间配对的安全性。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,而非限制本公开。
根据下面参考附图对示例性实施例的详细说明,本公开的其它特征及方面将变得清楚。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。
图1示出本公开实施例提供的车载设备的配对方法的一示例性的流程图。
图2示出本公开实施例提供的车载设备的配对方法的另一示例性的流程图。
图3示出本公开实施例提供的应用场景的一示意图。
图4示出本公开实施例提供的应用场景的另一示意图。
图5示出本公开实施例提供的车载设备的配对装置的一示例性的框图。
图6示出本公开实施例提供的车载设备的配对装置的另一示例性的框图。
图7示出本公开实施例提供的一种电子设备800的框图。
具体实施方式
以下将参考附图详细说明本公开的各种示例性实施例、特征和方面。附图中相同的附图标记表示功能相同或相似的元件。尽管在附图中示出了实施例的各种方面,但是除非特别指出,不必按比例绘制附图。
在这里专用的词“示例性”意为“用作例子、实施例或说明性”。这里作为“示例性”所说明的任何实施例不必解释为优于或好于其它实施例。
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中术语“至少一种”表示多种中的任意一种或多种中的至少两种的任意组合,例如,包括A、B、C中的至少一种,可以表示包括从A、B和C构成的集合中选择的任意一个或多个元素。
另外,为了更好地说明本公开,在下文的具体实施方式中给出了众多的具体细节。本领域技术人员应当理解,没有某些具体细节,本公开同样可以实施。在一些实例中,对于本领域技术人员熟知的方法、手段、元件和电路未作详细描述,以便于凸显本公开的主旨。
本公开实施例提供了一种车载设备的配对方法及装置、电子设备和存储介质,第一车载设备通过有线通信向第二车载设备发送第一车载设备提供的无线接入点的服务集标识符和密码,响应于由第二车载设备根据所述无线接入点的服务集标识符和密码发出的无线连接请求,与第二车载设备建立无线连接,并通过所述无线连接与第二车载设备进行配对,由此能够提高车载设备之间配对的安全性。
图1示出本公开实施例提供的车载设备的配对方法的一示例性的流程图。所述车载设备的配对方法由第一车载设备执行。在一些可能的实现方式中,所述车载设备的配对方法可以通过处理器调用存储器中存储的计算机可读指令的方式来实现。如图1所示,所述车载设备的配对方法包括步骤S11至步骤S13。
在步骤S11中,通过有线通信向第二车载设备发送所述第一车载设备提供的无线接入点的服务集标识符和密码。
在步骤S12中,响应于由所述第二车载设备根据所述无线接入点的服务集标识符和密码发出的无线连接请求,与所述第二车载设备建立无线连接。
在步骤S13中,通过所述无线连接与所述第二车载设备进行配对。
在本公开实施例中,第一车载设备可以为能够提供无线接入点的任意车载设备,第二车载设备可以为支持接入无线网络的任意车载设备。第一车载设备和第二车载设备为不同的车载设备。例如,第 一车载设备可以为DVR(Digital Video Recorder,硬盘录像机),例如行车记录仪;第二车载设备可以为HU(Head Unit,车机)。又如,第一车载设备可以为车舱域控制器,第二车载设备还可以为摄像头或者显示屏。
在本公开实施例中,第一车载设备可以自动设置无线接入点的服务集标识符(SSID,Service Set Identifier)和密码,或者,第一车载设备可以由用户手动设置无线接入点的服务集标识符和密码。例如,第一车载设备可以在第一次开机运行时,将无线接入点的服务集标识符设置为DVR_xxxxxxxx,并将无线接入点的密码设置为随机的8位字符,其中,服务集标识符的后8位字符“xxxxxxxx”可以为第一车载设备的MAC(Media Access Control,媒体存取控制)地址的前8位字符。
在本公开实施例中,第一车载设备通过有线通信向第二车载设备发送第一车载设备提供的无线接入点的服务集标识符和密码,即,第二车载设备通过有线通信获得所述无线接入点的服务集标识符和密码。第一车载设备通过有线通信向第二车载设备发送第一车载设备提供的无线接入点的服务集标识符和密码,而非通过无线通信向第二车载设备发送所述无线接入点的服务集标识符和密码,由此能够提高传输所述无线接入点的服务集标识符和密码的安全性。
在一种可能的实现方式中,所述通过有线通信向第二车载设备发送所述第一车载设备提供的无线接入点的服务集标识符和密码,包括:通过CAN(Controller Area Network,控制器局域网络)总线向第二车载设备发送所述第一车载设备提供的无线接入点的服务集标识符和密码。在该实现方式中,第二车载设备可以从CAN总线上获得所述无线接入点的服务集标识符和密码。在该实现方式中,第一车载设备通过CAN总线向第二车载设备发送第一车载设备提供的无线接入点的服务集标识符和密码,由此能够提高传输所述无线接入点的服务集标识符和密码的安全性。
在其他实现方式中,第一车载设备还可以通过CAN-FD(Controller Area Network with Flexible Data-rate,带灵活数据速率的控制器局域网络)总线等有线通信的方式向第二车载设备发送第一车载设备提供的无线接入点的服务集标识符和密码,在此不做限定。
在本公开实施例中,第二车载设备在接收到所述无线接入点的服务集标识符和密码之后,可以基于TCP/IP(Transmission Control Protocol/Internet Protocol,传输控制协议/网际协议),向第一车载设备发送无线连接请求。第一车载设备可以响应于所述无线连接请求,基于TCP/IP,建立与第二车载设备的无线连接。当然,第一车载设备与第二车载设备也可以基于其他通信协议建立无线连接,在此不做限定。
在本公开实施例中,第一车载设备在与第二车载设备建立无线连接之后,可以通过所述无线连接主动请求与第二车载设备进行配对,或者,可以响应于来自于第二车载设备的配对请求,通过所述无线连接与第二车载设备进行配对。
在一种可能的实现方式中,所述通过所述无线连接与所述第二车载设备进行配对,包括:接收所述第二车载设备通过所述无线连接发送的配对请求信息,其中,所述配对请求信息携带所述第二车载设备的标识信息;响应于所述配对请求信息,根据所述第二车载设备的标识信息,与所述第二车载设备进行配对。在该实现方式中,第二车载设备可以通过所述无线连接向第一车载设备发送配对请求信息,其中,所述配对请求信息用于请求与第一车载设备配对。第二车载设备的标识信息可以表示能够唯一标识第二车载设备的信息。例如,第二车载设备的标识信息可以为第二车载设备的MAC地址等。 第一车载设备在接收到所述配对请求信息之后,可以根据第二车载设备的标识信息,与第二车载设备进行配对。根据该实现方式,能够进行第一车载设备与第二车载设备之间的双向认证,从而能够进一步提高行第一车载设备与第二车载设备之间配对的安全性。
作为该实现方式的一个示例,所述配对请求信息包括所述第二车载设备生成的第一随机数;所述响应于所述配对请求信息,根据所述第二车载设备的标识信息,与所述第二车载设备进行配对,包括:响应于所述配对请求信息,向所述第二车载设备发送第一配对响应信息,其中,所述第一配对响应信息携带所述第一车载设备生成的第二随机数;根据所述第二车载设备的标识信息、所述第一随机数和所述第二随机数,生成第一认证数据;接收来自于所述第二车载设备的配对确认信息,其中,所述配对确认信息包括所述第二车载设备根据第二车载设备的标识信息、所述第一随机数和所述第二随机数生成的第二认证数据;响应于所述第二认证数据与所述第一认证数据匹配,与所述第二车载设备建立配对。
在该示例中,第一车载设备和第二车载设备均具备生成随机数的能力。例如,第一车载设备和第二车载设备可以分别通过genRandom函数生成随机数。第二车载设备可以生成第一随机数,根据第一随机数生成配对请求信息,并将所述配对请求信息发送至第一车载设备,从而能够将第一随机数传递给第一车载设备。在一个例子中,第二车载设备可以将生成的第一随机数赋值给第一变量,根据赋值后的第一变量生成配对请求信息,并将所述配对请求信息发送至第一车载设备,从而能够将赋值为第一随机数的第一变量传递给第一车载设备。第一车载设备在接收到来自于第二车载设备的配对请求信息之后,可以生成第二随机数,根据第二随机数生成第一配对响应信息,并将第一配对响应信息发送至第二车载设备,从而能够将第二随机数反馈给第二车载设备。在一个例子中,第一车载设备可以将生成的第二随机数赋值给第二变量,根据赋值后的第二变量生成第一配对响应信息,并将第一配对响应信息发送至第二车载设备,从而能够将赋值为第二随机数的第二变量反馈给第二车载设备。
在该示例中,第一车载设备可以根据第二车载设备的标识信息、第一随机数和第二随机数,生成第一认证数据;第二车载设备可以根据第二车载设备的标识信息、第一随机数和第二随机数,生成第二认证数据。其中,第一车载设备和第二车载设备可以根据对称的加密算法或者非对称的加密算法生成认证数据。
在一个例子中,第一车载设备可以采用式1和式3生成第一认证数据C 1,第二车载设备可以采用式2和式3生成第二认证数据C 2
C 1=M R   式1,
C 2=M R   式2,
Figure PCTCN2021113550-appb-000001
其中,M表示第二车载设备的标识信息,r 1表示第一随机数,r 2表示第二随机数。
尽管以以上例子介绍了确定第一认证数据和第二认证数据的方式如上,但本领域技术人员能够理 解,本公开应不限于此。本领域技术人员可以根据实际应用场景需求和/或个人喜好灵活设置生成第一认证数据和第二认证数据的加密算法。
在上述示例中,第一车载设备在生成第一认证数据并获得第二认证数据之后,可以判断第二认证数据与第一认证数据是否匹配。若第二认证数据与第一认证数据匹配,则可以与第二车载设备建立配对;若第二认证数据与第一认证数据不匹配,则可以不与第二车载设备建立配对。其中,第二认证数据与第一认证数据匹配,可以是第二认证数据与第一认证数据相同,也可以是根据其他预设的匹配策略确定第二认证数据与第一认证数据匹配,在此不做限定。
在上述示例中,第一车载设备响应于所述配对请求信息,向第二车载设备发送携带第二随机数的第一配对响应信息,根据第二车载设备的标识信息、第一随机数和第二随机数,生成第一认证数据,接收来自于第二车载设备的携带第二认证数据的配对确认信息,并响应于第二认证数据与第一认证数据匹配,与第二车载设备建立配对,由此能够进一步提高车载设备的配对安全性。
在一个例子中,所述响应于所述配对请求信息,向所述第二车载设备发送第一配对响应信息,包括:在根据所述第二车载设备的标识信息确定未与所述第二车载设备建立配对的情况下,响应于所述配对请求信息,向所述第二车载设备发送第一配对响应信息。在这个例子中,第一车载设备在接收到来自于第二车载设备通过所述无线连接发送的配对请求信息之后,可以根据所述配对请求信息中携带的第二车载设备的标识信息,判断是否已与第二车载设备建立配对。例如,第一车载设备可以比对已配对的车载设备的标识信息与第二车载设备的标识信息;若第二车载设备的标识信息与所述已配对的车载设备的标识信息相同,则可以判定已与第二车载设备建立配对;若第二车载设备的标识信息与所述已配对的车载设备的标识信息不相同,则可以判定未与第二车载设备建立配对。若判定未与第二车载设备建立配对,则可以响应于所述配对请求信息,向第二车载设备发送第一配对响应信息,以执行后续的配对流程。在这个例子中,第一车载设备通过在根据第二车载设备的标识信息确定未与第二车载设备建立配对的情况下,响应于所述配对请求信息,向第二车载设备发送第一配对响应信息,由此能够节省非必要的配对流程。
例如,在所述与所述第二车载设备建立配对之后,所述方法还包括:根据所述第二车载设备的标识信息,记录已与所述第二车载设备建立配对的信息。例如,第一车载设备可以将已配对的车载设备的标识信息更新为第二车载设备的标识信息。在这个例子中,第一车载设备在与第二车载设备建立配对后,根据第二车载设备的标识信息,记录已与第二车载设备建立配对的信息,由此能够在再次接收到来自于第二车载设备通过所述无线连接发送的配对请求信息时,根据记录的信息判定已与第二车载设备配对,从而能够节省非必要的配对流程。
在另一个例子中,第一车载设备在接收到来自于第二车载设备通过所述无线连接发送的配对请求信息之后,可以响应于所述配对请求信息,向所述第二车载设备发送第一配对响应信息,而不考虑是否已与第二车载设备建立配对。
作为该实现方式的一个示例,所述响应于所述配对请求信息,根据所述第二车载设备的标识信息,与所述第二车载设备进行配对,包括:在根据所述第二车载设备的标识信息确定已与所述第二车载设备建立配对的情况下,响应于所述配对请求信息,向所述第二车载设备发送第二配对响应信息,其中,所述第二配对响应信息用于通知所述第二车载设备已与所述第一车载设备建立配对。在该示例中,若 第一车载设备判定已与第二车载设备建立配对,则可以向第二车载设备发送第二配对响应信息,而无需执行后续的配对流程,从而能够节省非必要的配对流程。
在一种可能的实现方式中,在所述通过所述无线连接与所述第二车载设备进行配对之后,所述方法还包括:接收来自于所述第二车载设备的控制请求信息;响应于已与所述第二车载设备建立配对,根据所述控制请求信息,对所述第一车载设备进行控制。在该实现方式中,第二车载设备在与第一车载设备建立配对之后,可以向第一车载设备发送控制请求信息,以对第一车载设备进行控制。例如,所述控制请求信息可以用于控制第一车载设备进行信息采集、信息存储、信息传输、信息上传、更改密码等等,其中,信息可以包括视频、照片、声音、车辆运行信息等中的至少之一。在该实现方式中,第一车载设备通过接收来自于第二车载设备的控制请求信息,并响应于已与第二车载设备建立配对,根据所述控制请求信息,对第一车载设备进行控制,由此能够方便用户通过第二车载设备对第一车载设备进行控制。
作为该实现方式的一个示例,所述控制请求信息用于请求实时获取所述第一车载设备录制的视频;所述响应于已与所述第二车载设备建立配对,根据所述控制请求信息,对所述第一车载设备进行控制,包括:响应于已与所述第二车载设备建立配对,根据所述控制请求信息,实时发送所述视频至所述第二车载设备,以由所述第二车载设备实时播放所述视频。根据该示例,第二车载设备能够实时获取第一车载设备录制的视频并播放,从而能够方便用户通过第二车载设备观看第一车载设备录制的视频。
作为该实现方式的另一个示例,所述控制请求信息用于请求修改所述无线接入点的密码;所述响应于已与所述第二车载设备建立配对,根据所述控制请求信息,对所述第一车载设备进行控制,包括:响应于已与所述第二车载设备建立配对,根据所述控制请求信息,修改所述无线接入点的密码。
图2示出本公开实施例提供的车载设备的配对方法的另一示例性的流程图。所述车载设备的配对方法由第二车载设备执行。在一些可能的实现方式中,所述车载设备的配对方法可以通过处理器调用存储器中存储的计算机可读指令的方式来实现。如图2所示,所述车载设备的配对方法包括步骤S21至步骤S23。
在步骤S21中,通过有线通信从第一车载设备接收所述第一车载设备提供的无线接入点的服务集标识符和密码。
在步骤S22中,根据所述无线接入点的服务集标识符和密码,向所述第一车载设备发送无线连接请求,以与所述第一车载设备建立无线连接。
在步骤S23中,通过所述无线连接与所述第一车载设备进行配对。
在本公开实施例中,第二车载设备通过有线通信获得第一车载设备提供的无线接入点的服务集标识符和密码,而非通过无线通信信获得所述无线接入点的服务集标识符和密码,由此能够提高传输所述无线接入点的服务集标识符和密码的安全性。
在一种可能的实现方式中,所述通过有线通信从第一车载设备接收所述第一车载设备提供的无线接入点的服务集标识符和密码,包括:通过CAN总线从第一车载设备接收所述第一车载设备提供的无线接入点的服务集标识符和密码。在该实现方式中,第二车载设备可以从CAN总线上获得所述无线接入点的服务集标识符和密码。
在本公开实施例中,第二车载设备在接收到所述无线接入点的服务集标识符和密码之后,可以基 于TCP/IP,向第一车载设备发送无线连接请求。第一车载设备可以响应于所述无线连接请求,基于TCP/IP,建立与第二车载设备的无线连接。当然,第二车载设备也可以基于其他通信协议与第一车载设备建立无线连接,在此不做限定。
在本公开实施例中,第二车载设备在与第一车载设备建立无线连接之后,可以通过所述无线连接主动请求与第一车载设备进行配对,或者,可以响应于来自于第一车载设备的配对请求,通过所述无线连接与第一车载设备进行配对。
在本公开实施例中,第二车载设备通过有线通信从第一车载设备接收第一车载设备提供的无线接入点的服务集标识符和密码,根据所述无线接入点的服务集标识符和密码,向第一车载设备发送无线连接请求,以与第一车载设备建立无线连接,并通过所述无线连接与第一车载设备进行配对,由此能够提高车载设备的配对安全性。
在一种可能的实现方式中,所述通过所述无线连接与所述第一车载设备进行配对,包括:通过所述无线连接向所述第一车载设备发送配对请求信息,以由所述第一车载设备响应于所述配对请求信息,与所述第二车载设备进行配对,其中,所述配对请求信息携带所述第二车载设备的标识信息。在该实现方式中,第二车载设备可以通过所述无线连接向第一车载设备发送配对请求信息,其中,所述配对请求信息用于请求与第一车载设备配对。第一车载设备在接收到所述配对请求信息之后,可以根据第二车载设备的标识信息,与第二车载设备进行配对。根据该实现方式,能够进行第一车载设备与第二车载设备之间的双向认证,从而能够进一步提高行第一车载设备与第二车载设备之间配对的安全性。
作为该实现方式的一个示例,所述配对请求信息包括第一随机数;在所述向所述第一车载设备发送配对请求信息之后,所述方法还包括:接收所述第一车载设备响应于所述配对请求信息返回的第一配对响应信息,其中,所述第一配对响应信息携带所述第一车载设备生成的第二随机数;根据所述第二车载设备的标识信息、所述第一随机数和所述第二随机数,生成第二认证数据;向所述第一车载设备发送所述第二认证数据。在该示例中,第二车载设备通过接收第一车载设备响应于所述配对请求信息返回的携带第二随机数的第一配对响应信息,根据第二车载设备的标识信息、第一随机数和第二随机数,生成第二认证数据,并向第一车载设备发送第二认证数据,以由第一车载设备判断第二认证数据与第一认证数据是否匹配进而判断是否与第二车载设备建立配对,从而能够进一步提高车载设备的配对安全性。
作为该实现方式的一个示例,在所述向所述第一车载设备发送配对请求信息之后,所述方法还包括:接收所述第一车载设备响应于所述配对请求信息返回的第二配对响应信息,其中,所述第二配对响应信息用于通知所述第二车载设备已与所述第一车载设备建立配对。在该示例中,若第一车载设备已与第二车载设备建立配对,则可以向第二车载设备发送第二配对响应信息。第二车载设备在接收到第二配对响应之后,可以无需执行后续的配对流程,从而能够节省非必要的配对流程。
在一种可能的实现方式中,在所述通过有线通信从第一车载设备接收所述第一车载设备提供的无线接入点的服务集标识符和密码之后,所述方法还包括:存储所述无线接入点的服务集标识符和密码。在该实现方式中,第二车载设备通过存储第一车载设备提供的无线接入点的服务集标识符和密码,由此在断开与第一车载设备的无线连接之后,能够根据存储的所述无线接入点的服务集标识符和密码,快速与第一车载设备再次建立无线连接。
当然,在其他实现方式中,第二车载设备也可以不存储第一车载设备提供的无线接入点的服务集标识符和密码。
在一种可能的实现方式中,所述方法还包括:接收控制所述第一车载设备的指令;响应于已与所述第一车载设备建立配对,根据控制所述第一车载设备的指令,生成控制请求信息;向所述第一车载设备发送所述控制请求信息,以对所述第一车载设备进行控制。根据该实现方式,能够方便用户通过第二车载设备对第一车载设备进行控制。
作为该实现方式的一个示例,所述指令用于实时播放所述第一车载设备录制的视频;所述控制请求信息用于请求实时获取所述第一车载设备录制的视频;所述向所述第一车载设备发送所述控制请求信息,以对所述第一车载设备进行控制,包括:向所述第一车载设备发送所述控制请求信息,以控制所述第一车载设备实时发送所述视频至所述第二车载设备;在所述向所述第一车载设备发送所述控制请求信息之后,所述方法还包括:响应于接收到所述视频,实时播放所述视频。根据该示例,第二车载设备能够实时获取第一车载设备录制的视频并播放,从而能够方便用户通过第二车载设备观看第一车载设备录制的视频。
本公开实施例可以应用于智能座舱等技术领域。下面通过一个具体的应用场景说明本公开实施例提供的车载设备的配对方法。在该应用场景中,第一车载设备为DVR,第二车载设备为HU。在车辆出厂前,可以通过本公开实施例提供的车载设备的配对方法,将DVR与HU配对。
DVR可以在第一次开机运行时,可以将无线接入点的服务集标识符设置为DVR_xxxxxxxx,并将无线接入点的密码设置为随机的8位字符,其中,服务集标识符的后8位字符“xxxxxxxx”可以为DVR的MAC地址的前8位字符。
图3示出本公开实施例提供的应用场景的一示意图。如图3所示,DVR可以通过CAN总线,向HU发送DVR提供的无线接入点的服务集标识符和密码。HU在接收到所述无线接入点的服务集标识符和密码之后,可以存储所述无线接入点的服务集标识符和密码。HU在接收到所述无线接入点的服务集标识符和密码之后,可以基于TCP/IP,向DVR发送无线连接请求。DVR可以响应于所述无线连接请求,基于TCP/IP,建立与HU的无线连接。
HU在与DVR建立无线连接之后,可以通过所述无线连接向DVR发送配对请求信息,其中,所述配对请求信息包括所述HU生成的第一随机数。DVR在接收到来自于HU通过所述无线连接发送的配对请求信息之后,可以根据所述配对请求信息中携带的HU的MAC地址,判断是否已与HU建立配对。若DVR判定未与HU建立配对,则可以响应于所述配对请求信息,向HU发送第一配对响应信息,其中,所述第一配对响应信息携带DVR生成的第二随机数。
DVR可以根据HU的MAC地址、第一随机数和第二随机数,生成第一认证数据;HU可以根据HU的MAC地址、第一随机数和第二随机数,生成第二认证数据。HU生成第二认证数据后,可以根据第二认证数据生成配对确认信息,并向DVR发送所述配对确认信息。DVR在生成第一认证数据并获得第二认证数据之后,可以判断第二认证数据与第一认证数据是否匹配。DVR可以响应于第二认证数据与第一认证数据匹配,与HU建立配对。DVR在与HU建立配对之后,可以将已配对的HU的MAC地址更新为该HU的MAC地址。
图4示出本公开实施例提供的应用场景的另一示意图。如图4所示,DVR在接收到来自于HU通过 所述无线连接发送的配对请求信息之后,若判定已与HU建立配对,则可以向HU发送第二配对响应信息,而无需执行后续的配对流程,从而能够节省非必要的配对流程。
在DVR与HU建立配对且车辆出厂后,用户可以通过HU对DVR进行控制,例如,可以通过HU控制DVR拍照、录制视频、更改密码等等。例如,HU可以控制DVR实时将录制的视频发送至HU,由此,HU可以实时获取DVR录制的视频,并可以实时播放所述视频。当然,用户也可以在DVR端通过应用(App,Application)触发DVR拍照或者录制视频等。
在车辆出厂后,若需要更换HU,则可以采用本公开实施例提供的车载设备的配对方法重新对DVR与HU进行配对。
可以理解,本公开提及的上述各个方法实施例,在不违背原理逻辑的情况下,均可以彼此相互结合形成结合后的实施例,限于篇幅,本公开不再赘述。本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。
此外,本公开还提供了车载设备的配对装置、电子设备、计算机可读存储介质、程序,上述均可用来实现本公开提供的任一种车载设备的配对方法,相应技术方案和技术效果可参见方法部分的相应记载,不再赘述。
图5示出本公开实施例提供的车载设备的配对装置的一示例性的框图。所述车载设备的配对装置应用于第一车载设备。如图5所示,所述车载设备的配对装置包括:
第一发送模块51,用于通过有线通信向第二车载设备发送所述第一车载设备提供的无线接入点的服务集标识符和密码;
第一建立模块52,用于响应于由所述第二车载设备根据所述无线接入点的服务集标识符和密码发出的无线连接请求,与所述第二车载设备建立无线连接;
第一配对模块53,用于通过所述无线连接与所述第二车载设备进行配对。
在一种可能的实现方式中,所述第一配对模块53用于:
接收所述第二车载设备通过所述无线连接发送的配对请求信息,其中,所述配对请求信息携带所述第二车载设备的标识信息;
响应于所述配对请求信息,根据所述第二车载设备的标识信息,与所述第二车载设备进行配对。
在一种可能的实现方式中,所述配对请求信息包括所述第二车载设备生成的第一随机数;
所述第一配对模块53用于:
响应于所述配对请求信息,向所述第二车载设备发送第一配对响应信息,其中,所述第一配对响应信息携带所述第一车载设备生成的第二随机数;
根据所述第二车载设备的标识信息、所述第一随机数和所述第二随机数,生成第一认证数据;
接收来自于所述第二车载设备的配对确认信息,其中,所述配对确认信息包括所述第二车载设备根据第二车载设备的标识信息、所述第一随机数和所述第二随机数生成的第二认证数据;
响应于所述第二认证数据与所述第一认证数据匹配,与所述第二车载设备建立配对。
在一种可能的实现方式中,所述第一配对模块53用于:
在根据所述第二车载设备的标识信息确定未与所述第二车载设备建立配对的情况下,响应于所述配对请求信息,向所述第二车载设备发送第一配对响应信息。
在一种可能的实现方式中,所述装置还包括:
记录模块,用于根据所述第二车载设备的标识信息,记录已与所述第二车载设备建立配对的信息。
在一种可能的实现方式中,所述第一配对模块53用于:
在根据所述第二车载设备的标识信息确定已与所述第二车载设备建立配对的情况下,响应于所述配对请求信息,向所述第二车载设备发送第二配对响应信息,其中,所述第二配对响应信息用于通知所述第二车载设备已与所述第一车载设备建立配对。
在一种可能的实现方式中,所述第一发送模块51用于:
通过控制器局域网络CAN总线向第二车载设备发送所述第一车载设备提供的无线接入点的服务集标识符和密码。
在一种可能的实现方式中,所述装置还包括:
第二接收模块,用于接收来自于所述第二车载设备的控制请求信息;
控制模块,用于响应于已与所述第二车载设备建立配对,根据所述控制请求信息,对所述第一车载设备进行控制。
在一种可能的实现方式中,
所述控制请求信息用于请求实时获取所述第一车载设备录制的视频;
所述控制模块用于:响应于已与所述第二车载设备建立配对,根据所述控制请求信息,实时发送所述视频至所述第二车载设备,以由所述第二车载设备实时播放所述视频。
在本公开实施例中,第一车载设备通过有线通信向第二车载设备发送第一车载设备提供的无线接入点的服务集标识符和密码,响应于由第二车载设备根据所述无线接入点的服务集标识符和密码发出的无线连接请求,与第二车载设备建立无线连接,并通过所述无线连接与第二车载设备进行配对,由此能够提高车载设备之间配对的安全性。
图6示出本公开实施例提供的车载设备的配对装置的另一示例性的框图。所述车载设备的配对装置应用于第二车载设备。如图6所示,所述车载设备的配对装置包括:
第一接收模块61,用于通过有线通信从第一车载设备接收所述第一车载设备提供的无线接入点的服务集标识符和密码;
第二发送模块62,用于根据所述无线接入点的服务集标识符和密码,向所述第一车载设备发送无线连接请求,以与所述第一车载设备建立无线连接;
第二配对模块63,用于通过所述无线连接与所述第一车载设备进行配对。
在一种可能的实现方式中,所述第二配对模块63用于:
通过所述无线连接向所述第一车载设备发送配对请求信息,以由所述第一车载设备响应于所述配对请求信息,与所述第二车载设备进行配对,其中,所述配对请求信息携带所述第二车载设备的标识信息。
在一种可能的实现方式中,所述配对请求信息包括第一随机数;
所述装置还包括:
第三接收模块,用于接收所述第一车载设备响应于所述配对请求信息返回的第一配对响应信息,其中,所述第一配对响应信息携带所述第一车载设备生成的第二随机数;
第一生成模块,用于根据所述第二车载设备的标识信息、所述第一随机数和所述第二随机数,生成第二认证数据;
第三发送模块,用于向所述第一车载设备发送所述第二认证数据。
在一种可能的实现方式中,所述装置还包括:
第四接收模块,用于接收所述第一车载设备响应于所述配对请求信息返回的第二配对响应信息,其中,所述第二配对响应信息用于通知所述第二车载设备已与所述第一车载设备建立配对。
在一种可能的实现方式中,所述装置还包括:
存储模块,用于存储所述无线接入点的服务集标识符和密码。
在一种可能的实现方式中,所述装置还包括:
第五接收模块,用于接收控制所述第一车载设备的指令;
第二生成模块,用于响应于已与所述第一车载设备建立配对,根据控制所述第一车载设备的指令,生成控制请求信息;
第四发送模块,用于向所述第一车载设备发送所述控制请求信息,以对所述第一车载设备进行控制。
在一种可能的实现方式中,
所述指令用于实时播放所述第一车载设备录制的视频;
所述控制请求信息用于请求实时获取所述第一车载设备录制的视频;
所述第四发送模块用于:向所述第一车载设备发送所述控制请求信息,以控制所述第一车载设备实时发送所述视频至所述第二车载设备;
所述装置还包括:播放模块,用于响应于接收到所述视频,实时播放所述视频。
在本公开实施例中,第二车载设备通过有线通信从第一车载设备接收第一车载设备提供的无线接入点的服务集标识符和密码,根据所述无线接入点的服务集标识符和密码,向第一车载设备发送无线连接请求,以与第一车载设备建立无线连接,并通过所述无线连接与第一车载设备进行配对,由此能够提高车载设备的配对安全性。
在一些实施例中,本公开实施例提供的装置具有的功能或包含的模块可以用于执行上文方法实施例描述的方法,其具体实现和技术效果可以参照上文方法实施例的描述,为了简洁,这里不再赘述。
本公开实施例还提供一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现上述方法。其中,所述计算机可读存储介质可以是非易失性计算机可读存储介质,或者可以是易失性计算机可读存储介质。
本公开实施例还提出一种计算机程序,包括计算机可读代码,当所述计算机可读代码在电子设备中运行时,所述电子设备中的处理器执行用于实现上述方法。
本公开实施例还提出一种计算机程序产品,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备中运行时,所述电子设备中的处理器执行上述方法。
本公开实施例还提供一种电子设备,包括:一个或多个处理器;用于存储可执行指令的存储器;其中,所述一个或多个处理器被配置为调用所述存储器存储的可执行指令,以执行上述方法。
电子设备可以被提供为车载设备。
图7示出本公开实施例提供的一种电子设备800的框图。参照图7,电子设备800可以包括以下一个或多个组件:处理组件802,存储器804,电源组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。
处理组件802通常控制电子设备800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。
存储器804被配置为存储各种类型的数据以支持在电子设备800的操作。这些数据的示例包括用于在电子设备800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
电源组件806为电子设备800的各种组件提供电力。电源组件806可以包括电源管理系统,一个或多个电源,及其他与为电子设备800生成、管理和分配电力相关联的组件。
多媒体组件808包括在所述电子设备800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当电子设备800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当电子设备800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。
传感器组件814包括一个或多个传感器,用于为电子设备800提供各个方面的状态评估。例如,传感器组件814可以检测到电子设备800的打开/关闭状态,组件的相对定位,例如所述组件为电子设备800的显示器和小键盘,传感器组件814还可以检测电子设备800或电子设备800一个组件的位置改变,用户与电子设备800接触的存在或不存在,电子设备800方位或加速/减速和电子设备800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如互补金属氧化物半导体(CMOS)或电荷耦合装置(CCD)图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器, 陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件816被配置为便于电子设备800和其他设备之间有线或无线方式的通信。电子设备800可以接入基于通信标准的无线网络,如无线网络(Wi-Fi)、第二代移动通信技术(2G)、第三代移动通信技术(3G)、第四代移动通信技术(4G)/通用移动通信技术的长期演进(LTE)、第五代移动通信技术(5G)或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
在示例性实施例中,电子设备800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。
在示例性实施例中,还提供了一种非易失性计算机可读存储介质,例如包括计算机程序指令的存储器804,上述计算机程序指令可由电子设备800的处理器820执行以完成上述方法。
本公开可以是系统、方法和/或计算机程序产品。计算机程序产品可以包括计算机可读存储介质,其上载有用于使处理器实现本公开的各个方面的计算机可读程序指令。
计算机可读存储介质可以是可以保持和存储由指令执行设备使用的指令的有形设备。计算机可读存储介质例如可以是――但不限于――电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、静态随机存取存储器(SRAM)、便携式压缩盘只读存储器(CD-ROM)、数字多功能盘(DVD)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合适的组合。这里所使用的计算机可读存储介质不被解释为瞬时信号本身,诸如无线电波或者其他自由传播的电磁波、通过波导或其他传输媒介传播的电磁波(例如,通过光纤电缆的光脉冲)、或者通过电线传输的电信号。
这里所描述的计算机可读程序指令可以从计算机可读存储介质下载到各个计算/处理设备,或者通过网络、例如因特网、局域网、广域网和/或无线网下载到外部计算机或外部存储设备。网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和/或边缘服务器。每个计算/处理设备中的网络适配卡或者网络接口从网络接收计算机可读程序指令,并转发该计算机可读程序指令,以供存储在各个计算/处理设备中的计算机可读存储介质中。
用于执行本公开操作的计算机程序指令可以是汇编指令、指令集架构(ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码,所述编程语言包括面向对象的编程语言—诸如Smalltalk、C++等,以及常规的过程式编程语言—诸如“C”语言或类似的编程语言。计算机可读程序指令可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络—包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算 机(例如利用因特网服务提供商来通过因特网连接)。在一些实施例中,通过利用计算机可读程序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列(FPGA)或可编程逻辑阵列(PLA),该电子电路可以执行计算机可读程序指令,从而实现本公开的各个方面。
这里参照根据本公开实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本公开的各个方面。应当理解,流程图和/或框图的每个方框以及流程图和/或框图中各方框的组合,都可以由计算机可读程序指令实现。
这些计算机可读程序指令可以提供给通用计算机、专用计算机或其它可编程数据处理装置的处理器,从而生产出一种机器,使得这些指令在通过计算机或其它可编程数据处理装置的处理器执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。
也可以把计算机可读程序指令加载到计算机、其它可编程数据处理装置、或其它设备上,使得在计算机、其它可编程数据处理装置或其它设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其它可编程数据处理装置、或其它设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。
附图中的流程图和框图显示了根据本公开的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或指令的一部分,所述模块、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
该计算机程序产品可以具体通过硬件、软件或其结合的方式实现。在一个可选实施例中,所述计算机程序产品具体体现为计算机存储介质,在另一个可选实施例中,计算机程序产品具体体现为软件产品,例如软件开发包(Software Development Kit,SDK)等等。
以上已经描述了本公开的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术的改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。

Claims (21)

  1. 一种车载设备的配对方法,其特征在于,应用于第一车载设备,所述方法包括:
    通过有线通信向第二车载设备发送所述第一车载设备提供的无线接入点的服务集标识符和密码;
    响应于由所述第二车载设备根据所述无线接入点的服务集标识符和密码发出的无线连接请求,与所述第二车载设备建立无线连接;
    通过所述无线连接与所述第二车载设备进行配对。
  2. 根据权利要求1所述的方法,其特征在于,所述通过所述无线连接与所述第二车载设备进行配对,包括:
    接收所述第二车载设备通过所述无线连接发送的配对请求信息,其中,所述配对请求信息携带所述第二车载设备的标识信息;
    响应于所述配对请求信息,根据所述第二车载设备的标识信息,与所述第二车载设备进行配对。
  3. 根据权利要求2所述的方法,其特征在于,所述配对请求信息包括所述第二车载设备生成的第一随机数;
    所述响应于所述配对请求信息,根据所述第二车载设备的标识信息,与所述第二车载设备进行配对,包括:
    响应于所述配对请求信息,向所述第二车载设备发送第一配对响应信息,其中,所述第一配对响应信息携带所述第一车载设备生成的第二随机数;
    根据所述第二车载设备的标识信息、所述第一随机数和所述第二随机数,生成第一认证数据;
    接收来自于所述第二车载设备的配对确认信息,其中,所述配对确认信息包括所述第二车载设备根据第二车载设备的标识信息、所述第一随机数和所述第二随机数生成的第二认证数据;
    响应于所述第二认证数据与所述第一认证数据匹配,与所述第二车载设备建立配对。
  4. 根据权利要求3所述的方法,其特征在于,所述响应于所述配对请求信息,向所述第二车载设备发送第一配对响应信息,包括:
    在根据所述第二车载设备的标识信息确定未与所述第二车载设备建立配对的情况下,响应于所述配对请求信息,向所述第二车载设备发送第一配对响应信息。
  5. 根据权利要求4或5所述的方法,其特征在于,在所述与所述第二车载设备建立配对之后,所述方法还包括:
    根据所述第二车载设备的标识信息,记录已与所述第二车载设备建立配对的信息。
  6. 根据权利要求2所述的方法,其特征在于,所述响应于所述配对请求信息,根据所述第二车载设备的标识信息,与所述第二车载设备进行配对,包括:
    在根据所述第二车载设备的标识信息确定已与所述第二车载设备建立配对的情况下,响应于所述配对请求信息,向所述第二车载设备发送第二配对响应信息,其中,所述第二配对响应信息用于通知所述第二车载设备已与所述第一车载设备建立配对。
  7. 根据权利要求1至6中任意一项所述的方法,其特征在于,所述通过有线通信向第二车载设备发送所述第一车载设备提供的无线接入点的服务集标识符和密码,包括:
    通过控制器局域网络CAN总线向第二车载设备发送所述第一车载设备提供的无线接入点的服务集标识符和密码。
  8. 根据权利要求1至7中任意一项所述的方法,其特征在于,在所述通过所述无线连接与所述第二车载设备进行配对之后,所述方法还包括:
    接收来自于所述第二车载设备的控制请求信息;
    响应于已与所述第二车载设备建立配对,根据所述控制请求信息,对所述第一车载设备进行控制。
  9. 根据权利要求8所述的方法,其特征在于,
    所述控制请求信息用于请求实时获取所述第一车载设备录制的视频;
    所述响应于已与所述第二车载设备建立配对,根据所述控制请求信息,对所述第一车载设备进行控制,包括:响应于已与所述第二车载设备建立配对,根据所述控制请求信息,实时发送所述视频至所述第二车载设备,以由所述第二车载设备实时播放所述视频。
  10. 一种车载设备的配对方法,其特征在于,应用于第二车载设备,所述方法包括:
    通过有线通信从第一车载设备接收所述第一车载设备提供的无线接入点的服务集标识符和密码;
    根据所述无线接入点的服务集标识符和密码,向所述第一车载设备发送无线连接请求,以与所述第一车载设备建立无线连接;
    通过所述无线连接与所述第一车载设备进行配对。
  11. 根据权利要求10所述的方法,其特征在于,所述通过所述无线连接与所述第一车载设备进行配对,包括:
    通过所述无线连接向所述第一车载设备发送配对请求信息,以由所述第一车载设备响应于所述配对请求信息,与所述第二车载设备进行配对,其中,所述配对请求信息携带所述第二车载设备的标识信息。
  12. 根据权利要求11所述的方法,其特征在于,所述配对请求信息包括第一随机数;
    在所述向所述第一车载设备发送配对请求信息之后,所述方法还包括:
    接收所述第一车载设备响应于所述配对请求信息返回的第一配对响应信息,其中,所述第一配对响应信息携带所述第一车载设备生成的第二随机数;
    根据所述第二车载设备的标识信息、所述第一随机数和所述第二随机数,生成第二认证数据;
    向所述第一车载设备发送所述第二认证数据。
  13. 根据权利要求11所述的方法,其特征在于,在所述向所述第一车载设备发送配对请求信息之后,所述方法还包括:
    接收所述第一车载设备响应于所述配对请求信息返回的第二配对响应信息,其中,所述第二配对响应信息用于通知所述第二车载设备已与所述第一车载设备建立配对。
  14. 根据权利要求10至13中任意一项所述的方法,其特征在于,在所述通过有线通信从第一车载设备接收所述第一车载设备提供的无线接入点的服务集标识符和密码之后,所述方法还包括:
    存储所述无线接入点的服务集标识符和密码。
  15. 根据权利要求10至14中任意一项所述的方法,其特征在于,所述方法还包括:
    接收控制所述第一车载设备的指令;
    响应于已与所述第一车载设备建立配对,根据控制所述第一车载设备的指令,生成控制请求信息;
    向所述第一车载设备发送所述控制请求信息,以对所述第一车载设备进行控制。
  16. 根据权利要求15所述的方法,其特征在于,
    所述指令用于实时播放所述第一车载设备录制的视频;
    所述控制请求信息用于请求实时获取所述第一车载设备录制的视频;
    所述向所述第一车载设备发送所述控制请求信息,以对所述第一车载设备进行控制,包括:向所述第一车载设备发送所述控制请求信息,以控制所述第一车载设备实时发送所述视频至所述第二车载设备;
    在所述向所述第一车载设备发送所述控制请求信息之后,所述方法还包括:响应于接收到所述视频,实时播放所述视频。
  17. 一种车载设备的配对装置,其特征在于,应用于第一车载设备,所述装置包括:
    第一发送模块,用于通过有线通信向第二车载设备发送所述第一车载设备提供的无线接入点的服务集标识符和密码;
    第一建立模块,用于响应于由所述第二车载设备根据所述无线接入点的服务集标识符和密码发出的无线连接请求,与所述第二车载设备建立无线连接;
    第一配对模块,用于通过所述无线连接与所述第二车载设备进行配对。
  18. 一种车载设备的配对装置,其特征在于,应用于第二车载设备,所述装置包括:
    第一接收模块,用于通过有线通信从第一车载设备接收所述第一车载设备提供的无线接入点的服务集标识符和密码;
    第二发送模块,用于根据所述无线接入点的服务集标识符和密码,向所述第一车载设备发送无线连接请求,以与所述第一车载设备建立无线连接;
    第二配对模块,用于通过所述无线连接与所述第一车载设备进行配对。
  19. 一种电子设备,其特征在于,包括:
    一个或多个处理器;
    用于存储可执行指令的存储器;
    其中,所述一个或多个处理器被配置为调用所述存储器存储的可执行指令,以执行权利要求1至16中任意一项所述的方法。
  20. 一种计算机可读存储介质,其上存储有计算机程序指令,其特征在于,所述计算机程序指令被处理器执行时实现权利要求1至16中任意一项所述的方法。
  21. 一种计算机程序产品,其特征在于,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备中运行时,所述电子设备中的处理器执行权利要求1至16中任意一项所述的方法。
PCT/CN2021/113550 2021-03-23 2021-08-19 车载设备的配对方法及装置、电子设备和存储介质 WO2022198906A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110310110.8A CN112929988A (zh) 2021-03-23 2021-03-23 车载设备的配对方法及装置、电子设备和存储介质
CN202110310110.8 2021-03-23

Publications (1)

Publication Number Publication Date
WO2022198906A1 true WO2022198906A1 (zh) 2022-09-29

Family

ID=76175571

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/113550 WO2022198906A1 (zh) 2021-03-23 2021-08-19 车载设备的配对方法及装置、电子设备和存储介质

Country Status (2)

Country Link
CN (1) CN112929988A (zh)
WO (1) WO2022198906A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112929988A (zh) * 2021-03-23 2021-06-08 上海商汤临港智能科技有限公司 车载设备的配对方法及装置、电子设备和存储介质
CN117835253A (zh) * 2022-09-27 2024-04-05 比亚迪股份有限公司 局域网通信方法、电子设备、车辆、系统及介质

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120039248A1 (en) * 2010-08-10 2012-02-16 Ford Global Technologies, Llc Method and system for in-vehicle wireless connectivity
CN107390623A (zh) * 2017-08-08 2017-11-24 盯盯拍(深圳)技术股份有限公司 控制车机与行车记录仪连接方法以及控制车机与行车记录仪连接装置
CN108076016A (zh) * 2016-11-15 2018-05-25 中国移动通信有限公司研究院 车载设备之间的认证方法及装置
CN208820917U (zh) * 2018-10-09 2019-05-03 盯盯拍(深圳)云技术有限公司 行车记录仪系统
CN110213738A (zh) * 2019-05-22 2019-09-06 北京安云世纪科技有限公司 车载终端与wifi设备的绑定方法、绑定工具及计算设备
CN110933736A (zh) * 2019-11-27 2020-03-27 安徽江淮汽车集团股份有限公司 车载控制器通讯方法、装置、设备及存储介质
CN112181336A (zh) * 2020-09-25 2021-01-05 深圳市智行至美科技有限公司 行车记录仪及其投屏方法、装置及计算机可读存储介质
CN112929988A (zh) * 2021-03-23 2021-06-08 上海商汤临港智能科技有限公司 车载设备的配对方法及装置、电子设备和存储介质

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9021108B2 (en) * 2010-09-27 2015-04-28 Blackberry Limited Method, system and apparatus for enabling access of a first mobile electronic device to at least one network accessible by a second mobile electronic device
US9380059B2 (en) * 2013-10-16 2016-06-28 Spotify Ab Systems and methods for configuring an electronic device
US10097529B2 (en) * 2015-05-01 2018-10-09 Samsung Electronics Co., Ltd. Semiconductor device for controlling access right to server of internet of things device and method of operating the same
DE102016118114A1 (de) * 2016-09-26 2018-03-29 Schmitz Cargobull Ag Aufbau einer Verbindung zwischen einem mobilen Gerät und einer Telematikeinheit eines Nutzfahrzeugs
DE102017002633A1 (de) * 2017-03-17 2018-09-20 Wabco Gmbh Verfahren zum Aufbau einer drahtlosen Datenverbindung
EP3573034B1 (de) * 2018-05-23 2021-04-07 Schmitz Cargobull AG Aufbau eines drahtlosen kommunikationspfades zwischen einer ersten vorrichtung für ein nutzfahrzeug und einer zweiten vorrichtung
JP6555395B2 (ja) * 2018-07-05 2019-08-07 ソニー株式会社 車載装置、車載装置の制御方法およびプログラム
CN109391042A (zh) * 2018-12-18 2019-02-26 重庆长安汽车股份有限公司 带近场通信的车载无线充电器及方法
CN110535740B (zh) * 2019-08-29 2020-10-02 华人运通(江苏)技术有限公司 信号处理方法、装置、存储介质及终端
CN110855607B (zh) * 2019-09-29 2021-06-08 华为技术有限公司 基于车联网的车辆控制方法、通信装置及存储介质
CN111277980B (zh) * 2020-01-21 2023-09-26 杭州涂鸦信息技术有限公司 基于WiFi探测请求帧的配对方法、遥控方法及其系统和装置

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120039248A1 (en) * 2010-08-10 2012-02-16 Ford Global Technologies, Llc Method and system for in-vehicle wireless connectivity
CN108076016A (zh) * 2016-11-15 2018-05-25 中国移动通信有限公司研究院 车载设备之间的认证方法及装置
CN107390623A (zh) * 2017-08-08 2017-11-24 盯盯拍(深圳)技术股份有限公司 控制车机与行车记录仪连接方法以及控制车机与行车记录仪连接装置
CN208820917U (zh) * 2018-10-09 2019-05-03 盯盯拍(深圳)云技术有限公司 行车记录仪系统
CN110213738A (zh) * 2019-05-22 2019-09-06 北京安云世纪科技有限公司 车载终端与wifi设备的绑定方法、绑定工具及计算设备
CN110933736A (zh) * 2019-11-27 2020-03-27 安徽江淮汽车集团股份有限公司 车载控制器通讯方法、装置、设备及存储介质
CN112181336A (zh) * 2020-09-25 2021-01-05 深圳市智行至美科技有限公司 行车记录仪及其投屏方法、装置及计算机可读存储介质
CN112929988A (zh) * 2021-03-23 2021-06-08 上海商汤临港智能科技有限公司 车载设备的配对方法及装置、电子设备和存储介质

Also Published As

Publication number Publication date
CN112929988A (zh) 2021-06-08

Similar Documents

Publication Publication Date Title
US9769667B2 (en) Methods for controlling smart device
WO2017035988A1 (zh) 确定用户设备控制权限的方法、装置及终端设备
WO2017113842A1 (zh) 控制智能设备的方法及装置
WO2017092417A1 (zh) 基于智能终端设备的网络接入的方法和装置
US10608988B2 (en) Method and apparatus for bluetooth-based identity recognition
WO2016183992A1 (zh) 对账户与设备的控制关系进行管理的方法、装置和系统
WO2017177572A1 (zh) 无线接入点的接入方法和装置
CN104184944B (zh) 获取多媒体数据流的方法及装置
WO2016155306A1 (zh) 网络接入方法及装置
WO2022198906A1 (zh) 车载设备的配对方法及装置、电子设备和存储介质
WO2017071088A1 (zh) 图像获取方法及装置
WO2017035997A1 (zh) 连接状态提示方法和装置
WO2016134600A1 (zh) 智能设备检测方法和装置
WO2017036039A1 (zh) 远程协助方法和客户端
EP2981116B1 (en) Method and apparatus for accessing wi-fi network and computer program product
US10945019B2 (en) Video uploading method, camera apparatus and storage medium
WO2016155231A1 (zh) 网络接入方法及装置
WO2017008400A1 (zh) 控制智能设备的方法及装置
CN104378587A (zh) 摄像设备控制方法、装置及设备
CN104602112A (zh) 配置方法及装置
US20170054713A1 (en) Method and device for guiding an operation and electronic apparatus
CN105100074A (zh) 数据操作处理方法、装置以及终端设备
WO2016065749A1 (zh) 终端验证方法及装置
CN105337800A (zh) 轮询频率调整方法及装置
US10191708B2 (en) Method, apparatrus and computer-readable medium for displaying image data

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: 21932518

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE