WO2024066263A1 - Data relay method and apparatus, system, storage medium, device, and vehicle - Google Patents

Data relay method and apparatus, system, storage medium, device, and vehicle Download PDF

Info

Publication number
WO2024066263A1
WO2024066263A1 PCT/CN2023/084893 CN2023084893W WO2024066263A1 WO 2024066263 A1 WO2024066263 A1 WO 2024066263A1 CN 2023084893 W CN2023084893 W CN 2023084893W WO 2024066263 A1 WO2024066263 A1 WO 2024066263A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
data packet
relay
sdk
public key
Prior art date
Application number
PCT/CN2023/084893
Other languages
French (fr)
Chinese (zh)
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 WO2024066263A1 publication Critical patent/WO2024066263A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]

Definitions

  • the present disclosure relates to the field of computer technology, and in particular, to a data relay method, device, system, storage medium, equipment and vehicle.
  • Application relay or transfer is a technology that can synchronize the progress of the same application on different devices. This technology can seamlessly transfer the application data used on one device to another device for continued use. Related technologies can transfer applications by connecting devices to the network and logging in the same account on different devices. However, in this way, different devices must log in to the same account to achieve application transfer.
  • the purpose of the present disclosure is to provide a data relay method, apparatus, system, storage medium, device and vehicle to realize application data relay.
  • a data relay method is provided, which is applied to a first device, and the method includes:
  • Establishing a data transmission channel with a second device wherein the first device is one of a mobile device and an in-vehicle device, and the second device is the other of the mobile device and the in-vehicle device;
  • the application data packet is sent to the second device, where the application data packet is used by a second relay SDK integrated in a second application in the second device to control the usage progress of the second application to be consistent with the usage progress of the first application on the first device.
  • establishing a data transmission channel with the second device includes:
  • connection request includes a first public key, where the first public key is used by the second device to authenticate the first device;
  • the first public key is generated at least according to the identification code of the first device
  • the feedback information includes a second public key
  • the second public key is generated at least according to the identification code of the second device.
  • the sending the application data packet to the second device includes:
  • the encrypted signature data packet is sent to the second device, where the second device is used to perform signature authentication based on the first public key, and the encrypted signature data packet is decrypted based on the second private key of the second device corresponding to the second public key to obtain an application data packet of the first application.
  • the first private key is generated based on the identification code of the first device and the identification information of the first application
  • the first public key is a public key corresponding to the first private key generated based on the identification code of the first device and the identification information of the first application
  • the second private key is generated based on the identification code of the second device and the identification information of the second application
  • the second public key is a public key corresponding to the second private key generated based on the identification code of the second device and the identification information of the second application.
  • first applications and multiple second applications there are multiple first applications and multiple second applications, and the multiple first applications and multiple second applications correspond one to one.
  • the first public key of each first application is stored in the second relay SDK of the corresponding second application
  • the second public key of each second application is stored in the first relay SDK of the corresponding first application, so that the encrypted signature data packet of any first application can be decrypted and signed and authenticated by the second application corresponding to the first application.
  • the data transmission channel is a data transmission channel based on near field communication.
  • the method before acquiring the application data packet of the first application in the first device based on the first relay SDK, the method includes:
  • a Relay SDK application serves as the first application.
  • the acquiring an application data packet of the first application in the first device based on the first relay SDK includes:
  • the sending the application data packet to the second device includes:
  • the application data packet of the first application in the first device is sent to the second device in real time, so that the usage progress of the second application is consistent with that of the first application in real time.
  • the method further comprises:
  • the usage progress of the first application is controlled to be consistent with the usage progress of the second application on the second device based on the first relay SDK integrated in the application.
  • the first device is a vehicle-mounted device
  • the second device is a mobile device.
  • the method further includes:
  • a data relay apparatus which is applied to a first device, and the apparatus includes:
  • an establishing module configured to establish a data transmission channel with a second device, wherein the first device is one of a mobile device and an in-vehicle device, and the second device is the other of the mobile device and the in-vehicle device;
  • an acquisition module configured to acquire an application data packet of a first application in the first device based on a first relay SDK, wherein the first relay SDK is integrated in the first application, and the application data packet includes usage progress information of the first application on the first device;
  • the sending module is used to send the application data packet to the second device, and the application data packet is used by the second relay SDK integrated in the second application in the second device to control the use progress of the second application to be consistent with the use progress of the first application on the first device.
  • a data relay system including:
  • the mobile device is configured to implement the steps of the first nine methods described in the first aspect as a first device, or the vehicle-mounted device is configured to implement the steps of any one of the methods described in the first aspect as a first device.
  • a mobile device including:
  • a processor is used to execute the computer program in the memory to implement the steps of the data relay method provided in the first nine items of the first aspect.
  • a vehicle comprising: an on-board device, wherein the on-board device is used to implement the steps of the data relay method provided in any one of the first aspects.
  • a computer-readable storage medium on which computer program instructions are stored.
  • the program instructions are executed by a processor, the steps of the data relay method provided in any one of the first aspects of the present disclosure are implemented.
  • a data transmission channel is established with the second device, wherein the first device is one of the mobile device and the vehicle-mounted device, and the second device is the other of the mobile device and the vehicle-mounted device.
  • the application data packet of the first application can be obtained based on the first relay SDK integrated in the first application of the first device, and the application data packet is sent to the second device, so that the second relay SDK integrated in the second application of the second device controls the usage progress of the second application to be consistent with the usage progress of the first application.
  • the usage progress information required for data relay can be flexibly obtained through the relay SDK, thereby improving the accuracy of data relay.
  • Fig. 1 is a flow chart showing a data relay method according to an exemplary embodiment.
  • Fig. 2 is a schematic diagram showing interaction between a first device and a second device according to an exemplary embodiment.
  • Fig. 3 is a block diagram showing a data relay device according to an exemplary embodiment.
  • Fig. 4 is a block diagram of a data relay system according to an exemplary embodiment.
  • Fig. 5 is a block diagram of a mobile device according to an exemplary embodiment.
  • Fig. 6 is a block diagram of a vehicle according to an exemplary embodiment.
  • the present disclosure provides a data relay method, apparatus, system, storage medium, equipment and vehicle to implement data relay of applications.
  • FIG. 1 is a flow chart of a data relay method according to an exemplary embodiment. As shown in FIG. 1 , the method can be applied to a first device, and includes the following steps:
  • S101 Establish a data transmission channel with a second device.
  • the first device is one of the mobile device and the vehicle-mounted device
  • the second device is the other of the mobile device and the vehicle-mounted device.
  • the data transmission channel between the first device and the second device can be used for a first application on the first device and a second application on the second device to perform data relay between each other, wherein the first application and the second application can be the same application deployed on different devices.
  • S102 Acquire an application data packet of a first application program in a first device based on a first relay SDK.
  • the first relay SDK is integrated into the first application, and the application data packet includes usage progress information of the first application on the first device.
  • SDK software development kit
  • Different SDKs can integrate different functions, such as communication functions and data acquisition functions.
  • the technical solution provided by the embodiments of the present disclosure can integrate a first relay SDK for a first application on a first device, and integrate a second relay SDK for a second application on a second device.
  • the relay SDK integrated on the application can be used to define parameter information (i.e., usage progress information) that characterizes the usage progress of the application.
  • usage progress information i.e., usage progress information
  • the parameter information that can be used to characterize their usage progress is different, and thus the parameter information defined by the relay SDK integrated by the application is also different.
  • the parameter information that characterizes the application's usage progress defined by the Relay SDK may include the video name, video definition, and video playback progress of the currently playing video.
  • the information that characterizes the application's usage progress defined by the Relay SDK may include the current location and the route being navigated.
  • the application data packet of the first application program may be generated according to the parameter information defined by the first relay SDK on the first application program currently used by the first device.
  • the relay SDK can be configured to define different parameter information or other information required for data relay according to actual conditions
  • the relay SDK with corresponding functions is integrated into the application
  • the relay SDK on the application can have high operability. Therefore, based on the relay SDK integrated in the application, the usage progress information and other necessary information required for data relay can be flexibly obtained, thereby improving the accuracy of data relay.
  • the relay SDK integrated in the application can also be used to control the usage progress of the application. Therefore, the application data packet sent to the second device can be used by the second relay SDK integrated in the second application in the second device to control the usage progress of the second application to be consistent with the usage progress of the first application on the first device.
  • a data transmission channel is established with the second device, wherein the first device is one of the mobile device and the vehicle-mounted device, and the second device is the other of the mobile device and the vehicle-mounted device.
  • the application data packet of the first application can be obtained based on the first relay SDK integrated in the first application of the first device, and the application data packet is sent to the second device, so that the second relay SDK integrated in the second application of the second device controls the usage progress of the second application to be consistent with the usage progress of the first application.
  • the usage progress information required for data relay can be flexibly obtained through the relay SDK, thereby improving the accuracy of data relay.
  • Fig. 2 is a schematic diagram of interaction between a first device 201 and a second device 202 according to an exemplary embodiment.
  • the technical solution provided by the embodiment of the present disclosure can integrate corresponding device SDKs (first device SDK 2013 and second device SDK 2023 as shown in Fig. 2) for the first application 2011 on the first device 201 and the second application 2021 on the second device 202 on the basis of integrating the first relay SDK 2012 and the second relay SDK 2022.
  • corresponding functions can be integrated into the device SDK according to actual conditions, such as functions for establishing a data transmission channel, generating public and private keys, performing device identity authentication, and transmitting encrypted signature data packets.
  • a data transmission channel can be established, and application data packets can be encrypted and authenticated based on the generated public and private keys, thereby relaying data based on the SDK on the device without relying on logging in to the same account on different devices for authentication.
  • the technical solution provided by the embodiment of the present disclosure may include:
  • the application program integrated with the first relay SDK is used as the first application program.
  • the application running in the foreground of the first device may refer to the application currently used by the first device.
  • the application running in the foreground of the first device is integrated with the first relay SDK, the application may be used as the first application that can perform data relay.
  • the application data packet of the first application may be obtained based on the first relay SDK on the first application of the first device, and data relay may be performed with the second application of the second device based on the established data transmission channel.
  • step S101 may include:
  • connection request includes a first public key, where the first public key is used by the second device to authenticate the first device;
  • a data transmission channel is established with the second device, wherein the feedback information is sent by the second device to the first device when the identity of the first device is successfully authenticated according to the first public key;
  • the first public key is generated at least according to the identification code of the first device
  • the feedback information includes the second public key
  • the second public key is generated at least according to the identification code of the second device.
  • the first device receives the feedback information sent by the second device, it can indicate that the second device has passed the identity authentication of the first device, so the application data packet can be transmitted.
  • the first device and the second device perform reliable identity authentication based on the public key, thereby ensuring that the application data packet can only be parsed on the device authenticated by the public key on the basis of realizing data relay, thereby further improving the security of data relay.
  • the second device can obtain the device information stored in the database through the interface provided by the second device SDK on the second device, and obtain the identification code of the first device corresponding to the first public key output by the public key conversion program preset in the second device SDK by inputting the first public key into the second device SDK. On this basis, it can be determined whether the identity authentication of the first device is successful by determining whether there is a target identification code consistent with the identification code of the first device in the device information.
  • the first public key corresponds to the first private key
  • the second public key corresponds to the second private key
  • the first public key and the first private key can be a function program for generating public and private keys in the first device based on the preset function program in the SDK of the first device.
  • the second public key and the second private key can be generated in the second device based on the function program for generating public and private keys preset in the second device SDK. Since the same function program provided by the device SDK is used to generate the public key and the private key, the corresponding relationship between the public key and the private key can be guaranteed.
  • the first private key may be generated based on the identification code of the first device and the identification information of the first application
  • the first public key may be a public key corresponding to the first private key generated based on the identification code of the first device and the identification information of the first application
  • the second private key may be generated based on the identification code of the second device and the identification information of the second application
  • the second public key may be a public key corresponding to the second private key generated based on the identification code of the second device and the identification information of the second application.
  • the identification code of the device can be used to uniquely identify the device, for example, it can be the International Mobile Equipment Identity (IMEI), or it can be other identification codes that can uniquely identify the device.
  • the identification information of the application can refer to the package name of the application package, and the package names of different application packages are different. For example, for application A, its package name can be com.auto.yingyongA.
  • the identification code of the device and the identification information of the application can be determined according to the actual situation, and this disclosure does not make specific limitations on this.
  • the first device after the first device receives the feedback information sent by the second device, it can authenticate the second device according to the second public key included in the feedback information, and establish a data transmission channel with the second device if the second device is authenticated. In this process, the first device and the second device authenticate their respective devices through the public keys sent to each other, thereby establishing a secure and reliable data transmission channel.
  • the first device SDK on the first device may preset a functional program for communication
  • the feedback information sent by the second device may include a communication interface provided by the second device SDK on the second device, so that the first device may send an application data packet to the communication interface provided by the second device SDK through the first device SDK thereon. In this way, other devices may not be able to identify the communication between the first device and the second device.
  • step S103 may include:
  • the encrypted signature data packet is sent to the second device, where the encrypted signature data packet is used by the second device to perform signature authentication based on the first public key, and the encrypted signature data packet is decrypted based on the second private key corresponding to the second public key of the second device to obtain an application data packet of the first application.
  • the encrypted signature data packet thus obtained is only
  • the analysis can be performed in the second device storing the first public key and the second private key. That is to say, the application data packet is encrypted and signed using the second public key and the first private key to obtain an encrypted signature data packet, so that the second device can authenticate the encrypted signature data packet according to the first public key and the second private key.
  • data relay can be performed according to the SDK on the device without relying on logging in to the same account on different devices for authentication, thereby improving the security and convenience of data relay.
  • the second device may use the first public key to sign and authenticate the encrypted signature data packet to obtain an encrypted data packet that passes the signature authentication, and then use the second private key to decrypt the encrypted data packet to obtain the application data packet of the first application.
  • first applications and multiple second applications there can be multiple first applications and multiple second applications, and the multiple first applications and multiple second applications correspond one to one.
  • the first public key of each first application is stored in the second relay SDK of the corresponding second application
  • the second public key of each second application is stored in the first relay SDK of the corresponding first application, so that the encrypted signature data packet of any first application can be decrypted and signed and authenticated by the second application corresponding to the first application.
  • the public key and the private key correspond one to one, when each application data packet uses different public and private keys, the generated encrypted signature data packets do not affect each other, and the relay of multiple applications between the first device and the second device can be realized at the same time.
  • each first application can generate an application data packet based on the first relay SDK integrated thereon, and use corresponding public and private keys (such as the first private key and the second public key) to encrypt and sign the application data packet, so that the generated encrypted signature data packet corresponds to the first application one by one.
  • the encrypted signature data packets corresponding to different first applications do not affect each other.
  • the data transmission channel established by the first device and the second device may be a data transmission channel based on near field communication.
  • near field communication may include Bluetooth communication and WiFi direct communication, etc.
  • the first device may send a near field communication connection request via Bluetooth broadcast, so that the second device authenticates the second device according to the first public key included in the near field communication connection request.
  • Bluetooth may be used to transmit a data packet with a smaller data volume
  • WiFi Wireless Fidelity
  • the size of the data volume may be determined based on a preset data volume (the preset data volume may be determined based on actual conditions, and the present disclosure does not specifically limit this).
  • a data packet with a data volume greater than or equal to the preset data volume is determined as a data packet with a larger data volume, and accordingly, A data packet whose data volume is smaller than a preset data volume is determined as a data packet with a smaller data volume.
  • step S102 may include:
  • step S103 may include:
  • the application data packet of the first application in the first device is sent to the second device in real time, so that the usage progress of the second application is consistent with that of the first application in real time.
  • the application data flow between different brands and types of mobile phones and car machines is established to improve the user experience.
  • the application data packet of the first application on the first device can be sent to the second device in real time through multi-screen collaboration, so that the usage progress of the second application on the second device is consistent with the first application in real time.
  • the technical solution provided by the embodiment of the present disclosure may also include:
  • the usage progress of the first application is controlled to be consistent with the usage progress of the second application on the second device based on the first relay SDK integrated in the application.
  • the usage time represented by the usage progress information of the second application is later than the usage time represented by the current usage progress of the first application, which can indicate that the usage progress information of the second application is the latest. Therefore, based on the first relay SDK integrated in the application, the usage progress of the first application can be controlled to be consistent with the usage progress of the second application on the second device.
  • the first device may be a vehicle-mounted device
  • the second device may be a mobile device. Therefore, before the above step S102, the following may also be included:
  • the preset gear position can be determined according to actual conditions, for example, it can be the P gear position representing parking. This is not specifically limited.
  • the vehicle-mounted device can obtain the application data packet of the first application based on the first relay SDK on the vehicle-mounted device, and send the application data packet to the mobile device, so that the mobile device controls the use progress of the second application based on the second relay SDK to be consistent with the use progress of the first application on the vehicle-mounted device. In this way, a seamless flow from the first application on the vehicle-mounted device to the second application on the mobile device can be achieved.
  • the first application corresponding to the second application can be pushed to the user on the mobile device so that the user opens the first application on the mobile device, thereby completing the data relay of the application.
  • a data transmission channel is established with the second device, wherein the first device is one of the mobile device and the vehicle-mounted device, and the second device is the other of the mobile device and the vehicle-mounted device.
  • the application data packet of the first application can be obtained based on the first relay SDK integrated in the first application of the first device, and the application data packet is sent to the second device, so that the second relay SDK integrated in the second application of the second device controls the usage progress of the second application to be consistent with the usage progress of the first application.
  • the usage progress information required for data relay can be flexibly obtained through the relay SDK, thereby improving the accuracy of data relay.
  • FIG3 is a block diagram of a data relay device 300 according to an exemplary embodiment. Referring to FIG3, the data relay device 300 includes:
  • An establishing module 301 is used to establish a data transmission channel with a second device, the first device is one of the mobile device and the vehicle-mounted device, and the second device is the other of the mobile device and the vehicle-mounted device;
  • An acquisition module 302 is configured to acquire an application data packet of a first application in a first device based on a first relay SDK, wherein the first relay SDK is integrated in the first application, and the application data packet includes usage progress information of the first application on the first device;
  • the sending module 303 is used to send an application data packet to the second device, where the application data packet is used by a second relay SDK integrated in a second application in the second device to control the use progress of the second application to be consistent with the use progress of the first application on the first device.
  • the establishment module 301 is used to:
  • connection request includes a first public key, where the first public key is used by the second device to authenticate the first device;
  • a data transmission channel is established with the second device, wherein the feedback information is sent by the second device to the first device when the identity of the first device is successfully authenticated according to the first public key;
  • the first public key is generated at least according to the identification code of the first device
  • the feedback information includes the second public key
  • the second public key is generated at least according to the identification code of the second device.
  • the sending module 303 is used to:
  • the encrypted signature data packet is sent to the second device, where the encrypted signature data packet is used by the second device to perform signature authentication based on the first public key, and the encrypted signature data packet is decrypted based on the second private key corresponding to the second public key of the second device to obtain an application data packet of the first application.
  • the first private key is generated based on the identification code of the first device and the identification information of the first application
  • the first public key is the public key corresponding to the first private key generated based on the identification code of the first device and the identification information of the first application
  • the second private key is generated based on the identification code of the second device and the identification information of the second application
  • the second public key is the public key corresponding to the second private key generated based on the identification code of the second device and the identification information of the second application.
  • first applications and multiple second applications there are multiple first applications and multiple second applications, and the multiple first applications and the multiple second applications correspond one to one.
  • the first public key of each first application is stored in the second relay SDK of the corresponding second application
  • the second public key of each second application is stored in the first relay SDK of the corresponding first application, so that the encrypted signature data packet of any first application can be decrypted and signed and authenticated by the second application corresponding to the first application.
  • the data transmission channel is a data transmission channel based on near field communication.
  • the data relay device 300 further includes:
  • the determination module is used to, before acquiring the application data packet of the first application in the first device based on the first relay SDK, in response to detecting that the application running in the foreground of the first device is integrated with the first relay SDK, use the application integrated with the first relay SDK as the first application.
  • the acquisition module 302 is used to:
  • the first relay SDK is used to obtain the first an application data packet of a first application in a device;
  • the sending module 303 is used for:
  • the application data packet of the first application in the first device is sent to the second device in real time, so that the usage progress of the second application is consistent with the first application in real time.
  • the data relay device 300 further includes an execution module, which is used to:
  • the usage progress of the first application is controlled to be consistent with the usage progress of the second application on the second device based on the first relay SDK integrated in the application.
  • FIG4 is a block diagram of a data relay system 400 according to an exemplary embodiment.
  • the data relay system 400 includes:
  • Mobile device 401 and vehicle-mounted device 402 Mobile device 401 and vehicle-mounted device 402;
  • the mobile device 401 is configured as a first device to implement all or part of the steps in the data relay method provided in the above method embodiment, or the vehicle-mounted device 402 is configured as a first device to implement all or part of the steps in the data relay method provided in the above method embodiment.
  • FIG5 is a block diagram of a mobile device 401 according to an exemplary embodiment.
  • the mobile device 401 may include: a processor 4011, a memory 4012.
  • the mobile device 401 may also include one or more of a multimedia component 4013, an input/output (I/O) interface 4014, and a communication component 4015.
  • I/O input/output
  • the processor 4011 is used to control the overall operation of the mobile device 401 to complete all or part of the steps in the data relay method provided in the above method embodiment.
  • the memory 4012 is used to store various types of data to support the operation of the mobile device 401. These data may include, for example, instructions for any application or method used to operate on the mobile device 401, as well as application-related data, such as contact data, sent and received messages, pictures, audio, video, etc.
  • the memory 4012 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access memory (SRAM).
  • SRAM static random access memory
  • Multimedia component 4013 may include a screen and an audio component.
  • the screen may be, for example, a touch screen, and the audio component is used to output and/or input audio signals.
  • the audio component may include a microphone, which is used to receive external audio signals.
  • the received audio signal may be further stored in memory 4012 or sent through communication component 4015.
  • the audio component also includes at least one speaker for outputting audio signals.
  • I/O interface 4014 provides an interface between processor 4011 and other interface modules, and the above-mentioned other interface modules may be keyboards, mice, buttons, etc. These buttons may be virtual buttons or physical buttons.
  • Communication component 4015 is used for wired or wireless communication between mobile device 401 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or a combination of one or more of them, is not limited here. Therefore, the corresponding communication component 4015 may include: Wi-Fi module, Bluetooth module, NFC module, etc.
  • the mobile device 401 can be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), controllers, microcontrollers, microprocessors or other electronic components to execute the data relay method provided in the above method embodiments.
  • ASIC application specific integrated circuits
  • DSP digital signal processors
  • DSPD digital signal processing devices
  • PLD programmable logic devices
  • FPGA field programmable gate arrays
  • controllers microcontrollers, microprocessors or other electronic components to execute the data relay method provided in the above method embodiments.
  • the present disclosure also provides a vehicle 600, as shown in FIG6, which is a block diagram of a vehicle according to an exemplary embodiment.
  • the vehicle 600 includes: an on-board device 402, which is used to implement the steps of the data relay method provided in the above method embodiment.
  • the vehicle 600 may also include other components, and FIG6 only shows the parts related to the embodiment of the present disclosure, and other necessary vehicle components are not shown one by one.
  • a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by the processor, the steps of the above-mentioned data relay method are implemented.
  • the computer-readable storage medium can be the above-mentioned memory 4012 including program instructions, or the memory including program instructions in the vehicle-mounted device 402, and the above-mentioned program instructions can be executed by the processor 4011 of the mobile device 401 or the processor of the vehicle-mounted device 402 to complete the above-mentioned data relay method.
  • a computer program product is further provided.
  • the computer program product includes a computer program that can be executed by a programmable device.
  • the computer program has a code portion for executing the above data relay method when executed by the programmable device.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Medical Informatics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A data relay method. The method is applied to a first device. By establishing a data transmission channel with a second device, under the condition that an application data packet of a first application program is acquired on the basis of a first relay SDK integrated in the first application program of the first device, the application data packet can be sent to the second device, such that a second relay SDK integrated in a second application program of the second device controls the use progress of the second application program to be consistent with the use progress of the first application program.

Description

数据接力方法、装置、系统、存储介质、设备及车辆Data relay method, device, system, storage medium, equipment and vehicle
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本公开要求在2022年09月27日提交中国专利局、申请号为202211185080.3、名称为“数据接力方法、装置、系统、存储介质、设备及车辆”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。This disclosure claims priority to a Chinese patent application filed with the Chinese Patent Office on September 27, 2022, with application number 202211185080.3 and titled “Data relay method, device, system, storage medium, equipment and vehicle,” the entire contents of which are incorporated by reference in this disclosure.
技术领域Technical Field
本公开涉及计算机技术领域,具体地,涉及一种数据接力方法、装置、系统、存储介质、设备及车辆。The present disclosure relates to the field of computer technology, and in particular, to a data relay method, device, system, storage medium, equipment and vehicle.
背景技术Background technique
应用接力或流转是一种可以将不同设备上同一应用的使用进度进行同步的技术,该技术可以将在一个设备上使用的应用数据无缝流转到另一个设备上继续使用。相关技术可以通过将设备接入网络,并且在不同设备上登录同一账号来进行应用流转,然而,在这种方式下,不同设备之间必须要登录同一账号才能实现应用流转。Application relay or transfer is a technology that can synchronize the progress of the same application on different devices. This technology can seamlessly transfer the application data used on one device to another device for continued use. Related technologies can transfer applications by connecting devices to the network and logging in the same account on different devices. However, in this way, different devices must log in to the same account to achieve application transfer.
发明内容Summary of the invention
本公开的目的是提供一种数据接力方法、装置、系统、存储介质、设备及车辆,以实现应用的数据接力。The purpose of the present disclosure is to provide a data relay method, apparatus, system, storage medium, device and vehicle to realize application data relay.
根据本公开实施例的第一方面,提供一种数据接力方法,应用于第一设备,所述方法包括:According to a first aspect of an embodiment of the present disclosure, a data relay method is provided, which is applied to a first device, and the method includes:
建立与第二设备之间的数据传输通道,所述第一设备为移动设备和车载设备的一者,所述第二设备为所述移动设备和所述车载设备中的另一者;Establishing a data transmission channel with a second device, wherein the first device is one of a mobile device and an in-vehicle device, and the second device is the other of the mobile device and the in-vehicle device;
基于第一接力SDK获取所述第一设备中的第一应用程序的应用数据包,其中,所述第一接力SDK集成在所述第一应用程序中,所述应用数据包包括所述第一应用程序在所述第一设备上的使用进度信息;Acquire an application data packet of a first application in the first device based on a first relay SDK, wherein the first relay SDK is integrated in the first application, and the application data packet includes usage progress information of the first application on the first device;
向所述第二设备发送所述应用数据包,所述应用数据包用于所述第二设备中的第二应用程序中集成的第二接力SDK控制所述第二应用程序的使用进度与所述第一设备上的第一应用程序的使用进度一致。 The application data packet is sent to the second device, where the application data packet is used by a second relay SDK integrated in a second application in the second device to control the usage progress of the second application to be consistent with the usage progress of the first application on the first device.
可选地,所述建立与第二设备之间的数据传输通道,包括:Optionally, establishing a data transmission channel with the second device includes:
向所述第二设备发送连接请求,所述连接请求中包括第一公钥,所述第一公钥用于所述第二设备对所述第一设备进行身份认证;Sending a connection request to the second device, where the connection request includes a first public key, where the first public key is used by the second device to authenticate the first device;
在接收到所述第二设备发送的反馈信息的情况下,建立与所述第二设备之间的所述数据传输通道,所述反馈信息是所述第二设备在根据所述第一公钥对所述第一设备进行身份认证通过的情况下发送给所述第一设备的;establishing the data transmission channel with the second device upon receiving feedback information sent by the second device, wherein the feedback information is sent by the second device to the first device upon successfully authenticating the first device according to the first public key;
其中,所述第一公钥至少是根据所述第一设备的识别码生成的,所述反馈信息包括第二公钥,所述第二公钥至少是根据所述第二设备的识别码生成的。The first public key is generated at least according to the identification code of the first device, the feedback information includes a second public key, and the second public key is generated at least according to the identification code of the second device.
可选地,所述向所述第二设备发送所述应用数据包,包括:Optionally, the sending the application data packet to the second device includes:
基于所述第二公钥对所述第一应用程序的应用数据包进行加密,并基于所述第一设备的对应所述第一公钥的第一私钥对加密后的应用数据包进行签名,得到加密签名数据包;Encrypting an application data packet of the first application based on the second public key, and signing the encrypted application data packet based on a first private key of the first device corresponding to the first public key to obtain an encrypted signature data packet;
将所述加密签名数据包发送给所述第二设备,所述加密签名数据包用于所述第二设备基于所述第一公钥进行签名认证,并基于所述第二设备的对应所述第二公钥的第二私钥对所述加密签名数据包进行解密,得到所述第一应用程序的应用数据包。The encrypted signature data packet is sent to the second device, where the second device is used to perform signature authentication based on the first public key, and the encrypted signature data packet is decrypted based on the second private key of the second device corresponding to the second public key to obtain an application data packet of the first application.
可选地,所述第一私钥是根据所述第一设备的识别码以及所述第一应用程序的标识信息生成的,所述第一公钥是根据所述第一设备的识别码以及所述第一应用程序的标识信息生成的对应所述第一私钥的公钥,所述第二私钥是根据所述第二设备的识别码以及所述第二应用程序的标识信息生成的,所述第二公钥是根据所述第二设备的识别码以及所述第二应用程序的标识信息生成的对应所述第二私钥的公钥。Optionally, the first private key is generated based on the identification code of the first device and the identification information of the first application, the first public key is a public key corresponding to the first private key generated based on the identification code of the first device and the identification information of the first application, the second private key is generated based on the identification code of the second device and the identification information of the second application, and the second public key is a public key corresponding to the second private key generated based on the identification code of the second device and the identification information of the second application.
可选地,所述第一应用程序以及所述第二应用程序均为多个,且多个所述第一应用程序以及多个所述第二应用程序一一对应,每一所述第一应用程序的所述第一公钥存储在对应的所述第二应用程序的第二接力SDK中,每一所述第二应用程序的所述第二公钥存储在对应的所述第一应用程序的第一接力SDK中,使得任一所述第一应用程序的加密签名数据包能够被对应所述第一应用程序的第二应用程序解密以及签名认证。Optionally, there are multiple first applications and multiple second applications, and the multiple first applications and multiple second applications correspond one to one. The first public key of each first application is stored in the second relay SDK of the corresponding second application, and the second public key of each second application is stored in the first relay SDK of the corresponding first application, so that the encrypted signature data packet of any first application can be decrypted and signed and authenticated by the second application corresponding to the first application.
可选地,所述数据传输通道为基于近场通信的数据传输通道。Optionally, the data transmission channel is a data transmission channel based on near field communication.
可选地,在所述基于第一接力SDK获取所述第一设备中的第一应用程序的应用数据包之前,包括:Optionally, before acquiring the application data packet of the first application in the first device based on the first relay SDK, the method includes:
响应于检测到所述第一设备前台运行的应用程序集成有第一接力SDK,将集成有第 一接力SDK的应用程序作为所述第一应用程序。In response to detecting that the application running in the foreground of the first device is integrated with the first relay SDK, A Relay SDK application serves as the first application.
可选地,所述基于第一接力SDK获取所述第一设备中的第一应用程序的应用数据包,包括:Optionally, the acquiring an application data packet of the first application in the first device based on the first relay SDK includes:
跟随所述第一设备上的第一应用程序的使用进度的增加,基于所述第一接力SDK实时获取所述第一设备中的第一应用程序的应用数据包;Following the increase in the usage progress of the first application on the first device, acquiring in real time an application data packet of the first application in the first device based on the first relay SDK;
所述向所述第二设备发送所述应用数据包,包括:The sending the application data packet to the second device includes:
跟随所述第一设备上的第一应用程序的使用进度的增加,实时向所述第二设备发送获取到的所述第一设备中的第一应用程序的应用数据包,以使得所述第二应用程序的使用进度跟所述第一应用程序实时保持一致。As the usage progress of the first application on the first device increases, the application data packet of the first application in the first device is sent to the second device in real time, so that the usage progress of the second application is consistent with that of the first application in real time.
可选地,所述方法还包括:Optionally, the method further comprises:
接收所述第二设备发送的所述第二应用程序的应用数据包,所述第二应用程序的应用数据包包括所述第二应用程序的使用进度信息;receiving an application data packet of the second application sent by the second device, where the application data packet of the second application includes usage progress information of the second application;
在所述第二应用程序的使用进度信息所表征的使用时间晚于所述第一应用程序的当前使用进度所表征的使用时间的情况下,基于所述应用程序中集成的第一接力SDK控制所述第一应用程序的使用进度与所述第二设备上的第二应用程序的使用进度一致。When the usage time represented by the usage progress information of the second application is later than the usage time represented by the current usage progress of the first application, the usage progress of the first application is controlled to be consistent with the usage progress of the second application on the second device based on the first relay SDK integrated in the application.
可选地,所述第一设备为车载设备,所述第二设备为移动设备,在所述基于第一接力SDK获取所述第一设备中的第一应用程序的应用数据包之前,还包括:Optionally, the first device is a vehicle-mounted device, and the second device is a mobile device. Before acquiring the application data packet of the first application in the first device based on the first relay SDK, the method further includes:
确定车辆的挡位处于预设挡位。Make sure the vehicle is in the preset gear.
根据本公开实施例的第二方面,提供一种数据接力装置,应用于第一设备,所述装置包括:According to a second aspect of an embodiment of the present disclosure, a data relay apparatus is provided, which is applied to a first device, and the apparatus includes:
建立模块,用于建立与第二设备之间的数据传输通道,所述第一设备为移动设备和车载设备的一者,所述第二设备为所述移动设备和所述车载设备中的另一者;an establishing module, configured to establish a data transmission channel with a second device, wherein the first device is one of a mobile device and an in-vehicle device, and the second device is the other of the mobile device and the in-vehicle device;
获取模块,用于基于第一接力SDK获取所述第一设备中的第一应用程序的应用数据包,其中,所述第一接力SDK集成在所述第一应用程序中,所述应用数据包包括所述第一应用程序在所述第一设备上的使用进度信息;an acquisition module, configured to acquire an application data packet of a first application in the first device based on a first relay SDK, wherein the first relay SDK is integrated in the first application, and the application data packet includes usage progress information of the first application on the first device;
发送模块,用于向所述第二设备发送所述应用数据包,所述应用数据包用于所述第二设备中的第二应用程序中集成的第二接力SDK控制所述第二应用程序的使用进度与所述第一设备上的第一应用程序的使用进度一致。The sending module is used to send the application data packet to the second device, and the application data packet is used by the second relay SDK integrated in the second application in the second device to control the use progress of the second application to be consistent with the use progress of the first application on the first device.
根据本公开实施例的第三方面,提供一种数据接力系统,包括: According to a third aspect of an embodiment of the present disclosure, a data relay system is provided, including:
移动设备以及车载设备;Mobile devices and vehicle-mounted devices;
其中所述移动设备被配置成作为第一设备实现第一方面中前九项所述方法的步骤,或者,所述车载设备被配置成作为第一设备实现第一方面中任一项所述方法的步骤。The mobile device is configured to implement the steps of the first nine methods described in the first aspect as a first device, or the vehicle-mounted device is configured to implement the steps of any one of the methods described in the first aspect as a first device.
根据本公开实施例的第四方面,提供一种移动设备,包括:According to a fourth aspect of an embodiment of the present disclosure, a mobile device is provided, including:
存储器,其上存储有计算机程序;a memory having a computer program stored thereon;
处理器,用于执行所述存储器中的所述计算机程序,以实现第一方面中前九项所提供的数据接力方法的步骤。A processor is used to execute the computer program in the memory to implement the steps of the data relay method provided in the first nine items of the first aspect.
根据本公开实施例的第五方面,提供一种车辆,包括:车载设备,所述车载设备用于实现第一方面中任一项所提供的数据接力方法的步骤。According to a fifth aspect of an embodiment of the present disclosure, a vehicle is provided, comprising: an on-board device, wherein the on-board device is used to implement the steps of the data relay method provided in any one of the first aspects.
根据本公开实施例的第六方面,提供一种计算机可读存储介质,其上存储有计算机程序指令,该程序指令被处理器执行时实现本公开第一方面中任一项所提供的数据接力方法的步骤。According to a sixth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the data relay method provided in any one of the first aspects of the present disclosure are implemented.
通过上述技术方案,建立与第二设备之间的数据传输通道,其中第一设备为移动设备和车载设备的一者,第二设备为移动设备和车载设备中的另一者。由此,可以基于集成在第一设备的第一应用程序中的第一接力SDK获取该第一应用程序的应用数据包,并将该应用数据包发送至第二设备,以使第二设备的第二应用程序中集成的第二接力SDK控制第二应用程序的使用进度与第一应用程序的使用进度一致。由此可以通过接力SDK灵活获取数据接力所需的使用进度信息,从而提高数据接力的准确性。Through the above technical solution, a data transmission channel is established with the second device, wherein the first device is one of the mobile device and the vehicle-mounted device, and the second device is the other of the mobile device and the vehicle-mounted device. Thus, the application data packet of the first application can be obtained based on the first relay SDK integrated in the first application of the first device, and the application data packet is sent to the second device, so that the second relay SDK integrated in the second application of the second device controls the usage progress of the second application to be consistent with the usage progress of the first application. Thus, the usage progress information required for data relay can be flexibly obtained through the relay SDK, thereby improving the accuracy of data relay.
本公开的其他特征和优点将在随后的具体实施方式部分予以详细说明。Other features and advantages of the present disclosure will be described in detail in the following detailed description.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
附图是用来提供对本公开的进一步理解,并且构成说明书的一部分,与下面的具体实施方式一起用于解释本公开,但并不构成对本公开的限制。在附图中:The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:
图1是根据一示例性实施例示出的一种数据接力方法的流程图。Fig. 1 is a flow chart showing a data relay method according to an exemplary embodiment.
图2是根据一示例性实施例示出的一种第一设备与第二设备之间的交互示意图。Fig. 2 is a schematic diagram showing interaction between a first device and a second device according to an exemplary embodiment.
图3是根据一示例性实施例示出的一种数据接力装置的框图。Fig. 3 is a block diagram showing a data relay device according to an exemplary embodiment.
图4是根据一示例性实施例示出的一种数据接力系统的框图。Fig. 4 is a block diagram of a data relay system according to an exemplary embodiment.
图5是根据一示例性实施例示出的一种移动设备的框图。Fig. 5 is a block diagram of a mobile device according to an exemplary embodiment.
图6是根据一示例性实施例示出的一种车辆的框图。 Fig. 6 is a block diagram of a vehicle according to an exemplary embodiment.
具体实施方式Detailed ways
以下结合附图对本公开的具体实施方式进行详细说明。应当理解的是,此处所描述的具体实施方式仅用于说明和解释本公开,并不用于限制本公开。The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.
本公开提供一种数据接力方法、装置、系统、存储介质、设备及车辆,以实现应用的数据接力。The present disclosure provides a data relay method, apparatus, system, storage medium, equipment and vehicle to implement data relay of applications.
图1是根据一示例性实施例示出的一种数据接力方法的流程图,如图1所示,该方法可以应用于第一设备,包括以下步骤:FIG. 1 is a flow chart of a data relay method according to an exemplary embodiment. As shown in FIG. 1 , the method can be applied to a first device, and includes the following steps:
S101,建立与第二设备之间的数据传输通道。S101: Establish a data transmission channel with a second device.
其中,第一设备为移动设备和车载设备的一者,第二设备为移动设备和车载设备中的另一者。The first device is one of the mobile device and the vehicle-mounted device, and the second device is the other of the mobile device and the vehicle-mounted device.
可以理解的是,第一设备与第二设备之间的数据传输通道可以用于第一设备上的第一应用程序与第二设备上的第二应用程序相互进行数据接力。其中第一应用程序以及第二应用程序可以是部署在不同设备上的同一应用程序。It is understandable that the data transmission channel between the first device and the second device can be used for a first application on the first device and a second application on the second device to perform data relay between each other, wherein the first application and the second application can be the same application deployed on different devices.
S102,基于第一接力SDK获取第一设备中的第一应用程序的应用数据包。S102: Acquire an application data packet of a first application program in a first device based on a first relay SDK.
其中,第一接力SDK集成在第一应用程序中,应用数据包包括第一应用程序在第一设备上的使用进度信息。The first relay SDK is integrated into the first application, and the application data packet includes usage progress information of the first application on the first device.
应说明的是,在对应用程序进行开发的过程中,可以采用软件开发工具包(SDK,Software Development Kit)来辅助开发。不同的SDK可以集成不同的功能,例如通信功能以及数据采集功能等。It should be noted that in the process of developing applications, a software development kit (SDK) can be used to assist in development. Different SDKs can integrate different functions, such as communication functions and data acquisition functions.
本公开实施例提供的技术方案可以为第一设备上的第一应用程序集成第一接力SDK,以及为第二设备上的第二应用程序集成第二接力SDK。其中应用程序上集成的接力SDK可以用于定义表征应用程序的使用进度的参数信息(也即使用进度信息)。针对不同的应用程序,可用于表征其使用进度的参数信息不同,由此应用程序所集成的接力SDK定义的参数信息也不同。The technical solution provided by the embodiments of the present disclosure can integrate a first relay SDK for a first application on a first device, and integrate a second relay SDK for a second application on a second device. The relay SDK integrated on the application can be used to define parameter information (i.e., usage progress information) that characterizes the usage progress of the application. For different applications, the parameter information that can be used to characterize their usage progress is different, and thus the parameter information defined by the relay SDK integrated by the application is also different.
举例而言,针对视频播放应用,接力SDK定义的表征应用程序的使用进度的参数信息可以是当前所播放视频的视频名称、视频清晰度以及视频播放进度等相关信息。针对地图应用,接力SDK定义的表征应用程序的使用进度的信息可以是当前定位点以及正在导航的路线等相关信息。由此,针对不同的应用程序,可以基于其上集成的接力SDK生成不同的应用数据包。 For example, for a video playback application, the parameter information that characterizes the application's usage progress defined by the Relay SDK may include the video name, video definition, and video playback progress of the currently playing video. For a map application, the information that characterizes the application's usage progress defined by the Relay SDK may include the current location and the route being navigated. Thus, for different applications, different application data packages can be generated based on the Relay SDK integrated thereon.
在本实施例中,可以根据第一设备当前使用的第一应用程序上的第一接力SDK定义的参数信息生成第一应用程序的应用数据包。In this embodiment, the application data packet of the first application program may be generated according to the parameter information defined by the first relay SDK on the first application program currently used by the first device.
此外值得说明的是,由于可以根据实际情况为接力SDK开发相应的功能(例如接力SDK可以根据实际情况被配置为定义不同的参数信息或者其他数据接力所需的信息),并将具备相应功能的接力SDK集成在应用程序上,因此应用程序上的接力SDK可以具备较高的可操作性。由此基于集成在应用程序上的接力SDK可以灵活获取数据接力所需的使用进度信息以及其他必要信息,从而提高数据接力的准确性。In addition, it is worth noting that, since corresponding functions can be developed for the relay SDK according to actual conditions (for example, the relay SDK can be configured to define different parameter information or other information required for data relay according to actual conditions), and the relay SDK with corresponding functions is integrated into the application, the relay SDK on the application can have high operability. Therefore, based on the relay SDK integrated in the application, the usage progress information and other necessary information required for data relay can be flexibly obtained, thereby improving the accuracy of data relay.
S103,向第二设备发送应用数据包,该应用数据包用于第二设备中的第二应用程序中集成的第二接力SDK控制第二应用程序的使用进度与第一设备上的第一应用程序的使用进度一致。S103, sending an application data packet to the second device, where the application data packet is used by a second relay SDK integrated in a second application in the second device to control the use progress of the second application to be consistent with the use progress of the first application on the first device.
不难理解的是,应用程序上集成的接力SDK还可以用于控制应用程序的使用进度。由此,发送至第二设备的应用数据包可以用于第二设备中的第二应用程序中集成的第二接力SDK控制第二应用程序的使用进度与第一设备上的第一应用程序的使用进度一致。It is not difficult to understand that the relay SDK integrated in the application can also be used to control the usage progress of the application. Therefore, the application data packet sent to the second device can be used by the second relay SDK integrated in the second application in the second device to control the usage progress of the second application to be consistent with the usage progress of the first application on the first device.
通过上述技术方案,建立与第二设备之间的数据传输通道,其中第一设备为移动设备和车载设备的一者,第二设备为移动设备和车载设备中的另一者。由此,可以基于集成在第一设备的第一应用程序中的第一接力SDK获取该第一应用程序的应用数据包,并将该应用数据包发送至第二设备,以使第二设备的第二应用程序中集成的第二接力SDK控制第二应用程序的使用进度与第一应用程序的使用进度一致。由此可以通过接力SDK灵活获取数据接力所需的使用进度信息,从而提高数据接力的准确性。Through the above technical solution, a data transmission channel is established with the second device, wherein the first device is one of the mobile device and the vehicle-mounted device, and the second device is the other of the mobile device and the vehicle-mounted device. Thus, the application data packet of the first application can be obtained based on the first relay SDK integrated in the first application of the first device, and the application data packet is sent to the second device, so that the second relay SDK integrated in the second application of the second device controls the usage progress of the second application to be consistent with the usage progress of the first application. Thus, the usage progress information required for data relay can be flexibly obtained through the relay SDK, thereby improving the accuracy of data relay.
参照图2,图2是根据一示例性实施例示出的一种第一设备201与第二设备202之间的交互示意图。如图2所示,本公开实施例提供的技术方案在为第一设备201上的第一应用程序2011集成第一接力SDK2012,以及为第二设备202上的第二应用程序2021集成第二接力SDK2022的基础上,还可以为第一设备201以及第二设备202集成相应的设备SDK(如图2所示的第一设备SDK2013以及第二设备SDK2023)。Referring to Fig. 2, Fig. 2 is a schematic diagram of interaction between a first device 201 and a second device 202 according to an exemplary embodiment. As shown in Fig. 2, the technical solution provided by the embodiment of the present disclosure can integrate corresponding device SDKs (first device SDK 2013 and second device SDK 2023 as shown in Fig. 2) for the first application 2011 on the first device 201 and the second application 2021 on the second device 202 on the basis of integrating the first relay SDK 2012 and the second relay SDK 2022.
其中,可以根据实际情况为设备SDK集成相应的功能,例如用于建立数据传输通道、生成公私钥、进行设备的身份验证以及传输加密签名数据包等功能。基于设备SDK的这些功能,可以建立数据传输通道,以及基于所生成的公私钥对应用数据包进行加密以及鉴权,由此在不依赖于在不同设备上登录同一账号进行鉴权的情况下,根据设备上的SDK进行数据接力。 Among them, corresponding functions can be integrated into the device SDK according to actual conditions, such as functions for establishing a data transmission channel, generating public and private keys, performing device identity authentication, and transmitting encrypted signature data packets. Based on these functions of the device SDK, a data transmission channel can be established, and application data packets can be encrypted and authenticated based on the generated public and private keys, thereby relaying data based on the SDK on the device without relying on logging in to the same account on different devices for authentication.
不难理解的是,基于接力SDK以及设备SDK进行数据接力,可以在提升数据接力准确性的基础上,进一步提升数据接力的便捷性。It is not difficult to understand that data relay based on relay SDK and device SDK can further improve the convenience of data relay on the basis of improving the accuracy of data relay.
可选地,在上述步骤S102之前,本公开实施例提供的技术方案可以包括:Optionally, before the above step S102, the technical solution provided by the embodiment of the present disclosure may include:
响应于检测到第一设备前台运行的应用程序集成有第一接力SDK,将集成有第一接力SDK的应用程序作为第一应用程序。In response to detecting that the application program running in the foreground of the first device is integrated with the first relay SDK, the application program integrated with the first relay SDK is used as the first application program.
可以理解的是,第一设备前台运行的应用程序可以是指第一设备当前使用的应用程序。在第一设备前台运行的应用程序集成有第一接力SDK的情况下,可以将该应用程序作为可以进行数据接力的第一应用程序。由此,可以基于第一设备的第一应用程序上的第一接力SDK获取该第一应用程序的应用数据包,并基于所建立的数据传输通道进行与第二设备的第二应用程序之间的数据接力。It is understandable that the application running in the foreground of the first device may refer to the application currently used by the first device. In the case where the application running in the foreground of the first device is integrated with the first relay SDK, the application may be used as the first application that can perform data relay. Thus, the application data packet of the first application may be obtained based on the first relay SDK on the first application of the first device, and data relay may be performed with the second application of the second device based on the established data transmission channel.
可选地,上述步骤S101可以包括:Optionally, the above step S101 may include:
向第二设备发送连接请求,连接请求中包括第一公钥,第一公钥用于第二设备对第一设备进行身份认证;Sending a connection request to the second device, where the connection request includes a first public key, where the first public key is used by the second device to authenticate the first device;
在接收到第二设备发送的反馈信息的情况下,建立与第二设备之间的数据传输通道,反馈信息是第二设备在根据第一公钥对第一设备进行身份认证通过的情况下发送给第一设备的;When feedback information sent by the second device is received, a data transmission channel is established with the second device, wherein the feedback information is sent by the second device to the first device when the identity of the first device is successfully authenticated according to the first public key;
其中,第一公钥至少是根据第一设备的识别码生成的,反馈信息包括第二公钥,第二公钥至少是根据第二设备的识别码生成的。The first public key is generated at least according to the identification code of the first device, the feedback information includes the second public key, and the second public key is generated at least according to the identification code of the second device.
应说明的是,若第一设备接收到第二设备发送的反馈信息,则可表明第二设备对第一设备的身份认证通过,如此可以进行应用数据包的传输。在这个过程中,第一设备以及第二设备基于公钥进行可靠的身份认证,由此可以在实现数据接力的基础上,保证应用数据包仅可在公钥认证的设备上进行解析,从而进一步提高数据接力的安全性。It should be noted that if the first device receives the feedback information sent by the second device, it can indicate that the second device has passed the identity authentication of the first device, so the application data packet can be transmitted. In this process, the first device and the second device perform reliable identity authentication based on the public key, thereby ensuring that the application data packet can only be parsed on the device authenticated by the public key on the basis of realizing data relay, thereby further improving the security of data relay.
在一种可能的实现方式中,第二设备可以通过第二设备上的第二设备SDK提供的接口获取数据库中存储的设备信息,并且通过将第一公钥输入第二设备SDK,来得到该第二设备SDK中预设的公钥转换程序输出的与第一公钥对应的第一设备的识别码。在此基础上,可以通过确定设备信息中是否存在与第一设备的识别码一致的目标识别码,来确定对第一设备进行的身份认证是否通过。In a possible implementation, the second device can obtain the device information stored in the database through the interface provided by the second device SDK on the second device, and obtain the identification code of the first device corresponding to the first public key output by the public key conversion program preset in the second device SDK by inputting the first public key into the second device SDK. On this basis, it can be determined whether the identity authentication of the first device is successful by determining whether there is a target identification code consistent with the identification code of the first device in the device information.
还应说明的是,第一公钥对应有第一私钥,第二公钥对应有第二私钥。其中第一公钥以及第一私钥可以是在第一设备中基于第一设备SDK中预设的生成公私钥的功能程序 生成的,第二公钥以及第二私钥可以是在第二设备中基于第二设备SDK中预设的生成公私钥的功能程序生成的。由于采用设备SDK所提供的同一功能程序来生成公钥和私钥,因此可以保证公钥和私钥之间的对应关系。It should also be noted that the first public key corresponds to the first private key, and the second public key corresponds to the second private key. The first public key and the first private key can be a function program for generating public and private keys in the first device based on the preset function program in the SDK of the first device. The second public key and the second private key can be generated in the second device based on the function program for generating public and private keys preset in the second device SDK. Since the same function program provided by the device SDK is used to generate the public key and the private key, the corresponding relationship between the public key and the private key can be guaranteed.
具体而言,第一私钥可以是根据第一设备的识别码以及第一应用程序的标识信息生成的,第一公钥可以是根据第一设备的识别码以及第一应用程序的标识信息生成的对应第一私钥的公钥。类似地,第二私钥可以是根据第二设备的识别码以及第二应用程序的标识信息生成的,第二公钥可以是根据第二设备的识别码以及第二应用程序的标识信息生成的对应第二私钥的公钥。Specifically, the first private key may be generated based on the identification code of the first device and the identification information of the first application, and the first public key may be a public key corresponding to the first private key generated based on the identification code of the first device and the identification information of the first application. Similarly, the second private key may be generated based on the identification code of the second device and the identification information of the second application, and the second public key may be a public key corresponding to the second private key generated based on the identification code of the second device and the identification information of the second application.
其中,设备的识别码可用于唯一标识该设备,例如可以为国际移动设备识别码(International Mobile Equipment Identity,IMEI),也可以为其他可以唯一标识设备的识别码。应用程序的标识信息可以是指该应用程序打包的包名,不同的应用程序打包的包名不相同,例如针对应用程序A,其打包的包名可以为com.auto.yingyongA。设备的识别码以及应用程序的标识信息可以根据实际情况而定,本公开对此不作具体限定。Among them, the identification code of the device can be used to uniquely identify the device, for example, it can be the International Mobile Equipment Identity (IMEI), or it can be other identification codes that can uniquely identify the device. The identification information of the application can refer to the package name of the application package, and the package names of different application packages are different. For example, for application A, its package name can be com.auto.yingyongA. The identification code of the device and the identification information of the application can be determined according to the actual situation, and this disclosure does not make specific limitations on this.
在一种可能的实现方式中,第一设备接收到第二设备发送的反馈信息后,可以根据反馈信息中所包括的第二公钥对第二设备进行身份认证,并在对第二设备身份认证通过的情况下建立与第二设备之间的数据传输通道。在这个过程中,第一设备和第二设备通过互相发送的公钥实现对各自设备的身份认证,由此建立安全可靠的数据传输通道。In a possible implementation, after the first device receives the feedback information sent by the second device, it can authenticate the second device according to the second public key included in the feedback information, and establish a data transmission channel with the second device if the second device is authenticated. In this process, the first device and the second device authenticate their respective devices through the public keys sent to each other, thereby establishing a secure and reliable data transmission channel.
此外,第一设备上的第一设备SDK可以预设用于通信的功能程序,第二设备所发送的反馈信息可以包括第二设备上的第二设备SDK提供的通信接口,由此第一设备可以通过其上的第一设备SDK向第二设备SDK提供的通信接口发送应用数据包。这样,可以使得其他设备无法识别第一设备与第二设备之间的通信。In addition, the first device SDK on the first device may preset a functional program for communication, and the feedback information sent by the second device may include a communication interface provided by the second device SDK on the second device, so that the first device may send an application data packet to the communication interface provided by the second device SDK through the first device SDK thereon. In this way, other devices may not be able to identify the communication between the first device and the second device.
可选地,上述步骤S103可以包括:Optionally, the above step S103 may include:
基于第二公钥对第一应用程序的应用数据包进行加密,并基于第一设备的对应第一公钥的第一私钥对加密后的应用数据包进行签名,得到加密签名数据包;Encrypting an application data packet of the first application based on the second public key, and signing the encrypted application data packet based on a first private key corresponding to the first public key of the first device to obtain an encrypted signature data packet;
将加密签名数据包发送给第二设备,其中加密签名数据包用于第二设备基于第一公钥进行签名认证,并基于第二设备的对应第二公钥的第二私钥对加密签名数据包进行解密,得到第一应用程序的应用数据包。The encrypted signature data packet is sent to the second device, where the encrypted signature data packet is used by the second device to perform signature authentication based on the first public key, and the encrypted signature data packet is decrypted based on the second private key corresponding to the second public key of the second device to obtain an application data packet of the first application.
其中,针对第一应用程序的应用数据包,在通过第二公钥对该应用数据包进行加密,以及通过第一私钥对加密后的应用数据包进行签名之后,由此得到的加密签名数据包仅 可在存储有第一公钥以及第二私钥的第二设备中进行解析。也即是说,采用第二公钥以及第一私钥对应用数据包进行加密和签名来得到加密签名数据包,可以使得第二设备根据第一公钥以及第二私钥对加密签名数据包进行鉴权。如此可以在不依赖于在不同设备上登录同一账号进行鉴权的情况下,根据设备上的SDK进行数据接力,从而提高了数据接力的安全性和便捷性。Among them, for the application data packet of the first application, after the application data packet is encrypted by the second public key and the encrypted application data packet is signed by the first private key, the encrypted signature data packet thus obtained is only The analysis can be performed in the second device storing the first public key and the second private key. That is to say, the application data packet is encrypted and signed using the second public key and the first private key to obtain an encrypted signature data packet, so that the second device can authenticate the encrypted signature data packet according to the first public key and the second private key. In this way, data relay can be performed according to the SDK on the device without relying on logging in to the same account on different devices for authentication, thereby improving the security and convenience of data relay.
示例地,第二设备可以采用第一公钥对加密签名数据包进行签名认证,得到签名认证通过的加密数据包,之后可采用第二私钥对该加密数据包进行解密,从而得到第一应用程序的应用数据包。For example, the second device may use the first public key to sign and authenticate the encrypted signature data packet to obtain an encrypted data packet that passes the signature authentication, and then use the second private key to decrypt the encrypted data packet to obtain the application data packet of the first application.
此外还应说明的是,第一应用程序以及第二应用程序均可以为多个,且多个第一应用程序以及多个第二应用程序一一对应,每一第一应用程序的第一公钥存储在对应的第二应用程序的第二接力SDK中,每一第二应用程序的第二公钥存储在对应的第一应用程序的第一接力SDK中,使得任一第一应用程序的加密签名数据包能够被对应第一应用程序的第二应用程序解密以及签名认证。In addition, it should be noted that there can be multiple first applications and multiple second applications, and the multiple first applications and multiple second applications correspond one to one. The first public key of each first application is stored in the second relay SDK of the corresponding second application, and the second public key of each second application is stored in the first relay SDK of the corresponding first application, so that the encrypted signature data packet of any first application can be decrypted and signed and authenticated by the second application corresponding to the first application.
由于公钥和私钥一一对应,因此在每个应用数据包所采用公私钥不同的情况下,所生成的加密签名数据包互不影响,可以同时实现第一设备和第二设备之间多个应用的接力。Since the public key and the private key correspond one to one, when each application data packet uses different public and private keys, the generated encrypted signature data packets do not affect each other, and the relay of multiple applications between the first device and the second device can be realized at the same time.
在一种可能的实现方式中,每一第一应用程序可以基于其上集成的第一接力SDK生成应用数据包,并采用对应的公私钥(例如上述第一私钥和第二公钥)对应用数据包进行加密和签名,从而使得生成的加密签名数据包与第一应用程序一一对应。其中,不同的第一应用程序对应的加密签名数据包之间互不影响。In a possible implementation, each first application can generate an application data packet based on the first relay SDK integrated thereon, and use corresponding public and private keys (such as the first private key and the second public key) to encrypt and sign the application data packet, so that the generated encrypted signature data packet corresponds to the first application one by one. The encrypted signature data packets corresponding to different first applications do not affect each other.
可选地,第一设备以及第二设备所建立的数据传输通道可以为基于近场通信的数据传输通道。Optionally, the data transmission channel established by the first device and the second device may be a data transmission channel based on near field communication.
应说明的是,近场通信可以包括蓝牙通信以及WiFi直连通信等。在一种可能的实现方式中,第一设备可以通过蓝牙广播的方式发送近场通信连接请求,以使第二设备根据近场通信连接请求中所包括的第一公钥对第二设备进行身份认证。由此,可以在第一设备对第二设备的身份认证通过的情况下,采用蓝牙传输数据量较小的数据包,或者采用WiFi(Wireless Fidelity)直连传输数据量较大的数据包。其中数据量的大小可以根据预设数据量(预设数据量可以根据实际情况而定,本公开对此不作具体限定)进行确定,例如将数据量大于或等于预设数据量的数据包确定为数据量较大的数据包,相应地,将 数据量小于预设数据量的数据包确定为数据量较小的数据包。It should be noted that near field communication may include Bluetooth communication and WiFi direct communication, etc. In one possible implementation, the first device may send a near field communication connection request via Bluetooth broadcast, so that the second device authenticates the second device according to the first public key included in the near field communication connection request. Thus, when the first device authenticates the second device, Bluetooth may be used to transmit a data packet with a smaller data volume, or WiFi (Wireless Fidelity) may be used to directly transmit a data packet with a larger data volume. The size of the data volume may be determined based on a preset data volume (the preset data volume may be determined based on actual conditions, and the present disclosure does not specifically limit this). For example, a data packet with a data volume greater than or equal to the preset data volume is determined as a data packet with a larger data volume, and accordingly, A data packet whose data volume is smaller than a preset data volume is determined as a data packet with a smaller data volume.
不难理解的是,在基于近场通信的数据传输通道中传输数据,几乎不存在网络入侵的风险。由此,在采用第一接力SDK、第二接力SDK、第一设备SDK以及第二设备SDK实现第一设备以及第二设备之间的数据接力的基础上,进一步采用近场通信建立两者之间的数据传输通道,可以提高数据传输的安全性,从而进一步提升数据接力的安全性。It is not difficult to understand that there is almost no risk of network intrusion when transmitting data in a data transmission channel based on near field communication. Therefore, on the basis of using the first relay SDK, the second relay SDK, the first device SDK and the second device SDK to realize data relay between the first device and the second device, further using near field communication to establish a data transmission channel between the two can improve the security of data transmission, thereby further improving the security of data relay.
可选地,上述步骤S102可以包括:Optionally, the above step S102 may include:
跟随第一设备上的第一应用程序的使用进度的增加,基于第一接力SDK实时获取第一设备中的第一应用程序的应用数据包;Following the increase in the usage progress of the first application on the first device, obtaining in real time an application data packet of the first application on the first device based on the first relay SDK;
基于此,上述步骤S103可以包括:Based on this, the above step S103 may include:
跟随第一设备上的第一应用程序的使用进度的增加,实时向第二设备发送获取到的第一设备中的第一应用程序的应用数据包,以使得第二应用程序的使用进度跟第一应用程序实时保持一致。建立了不同品牌、不同种类的手机、车机之间的应用数据流转,提升用户体验。As the usage progress of the first application on the first device increases, the application data packet of the first application in the first device is sent to the second device in real time, so that the usage progress of the second application is consistent with that of the first application in real time. The application data flow between different brands and types of mobile phones and car machines is established to improve the user experience.
举例而言,可以通过多屏协同的方式将第一设备上的第一应用程序的应用数据包实时发送至第二设备,以使第二设备上的第二应用程序的使用进度跟第一应用程序实时保持一致。可选地,本公开实施例提供的技术方案还可以包括:For example, the application data packet of the first application on the first device can be sent to the second device in real time through multi-screen collaboration, so that the usage progress of the second application on the second device is consistent with the first application in real time. Optionally, the technical solution provided by the embodiment of the present disclosure may also include:
接收第二设备发送的第二应用程序的应用数据包,第二应用程序的应用数据包包括第二应用程序的使用进度信息;receiving an application data packet of a second application sent by a second device, where the application data packet of the second application includes usage progress information of the second application;
在第二应用程序的使用进度信息所表征的使用时间晚于第一应用程序的当前使用进度所表征的使用时间的情况下,基于应用程序中集成的第一接力SDK控制第一应用程序的使用进度与第二设备上的第二应用程序的使用进度一致。When the usage time represented by the usage progress information of the second application is later than the usage time represented by the current usage progress of the first application, the usage progress of the first application is controlled to be consistent with the usage progress of the second application on the second device based on the first relay SDK integrated in the application.
不难理解的是,第二应用程序的使用进度信息所表征的使用时间晚于第一应用程序的当前使用进度所表征的使用时间,可以表明第二应用程序的使用进度信息是最新的,由此,可以基于应用程序中集成的第一接力SDK控制第一应用程序的使用进度与第二设备上的第二应用程序的使用进度一致。It is not difficult to understand that the usage time represented by the usage progress information of the second application is later than the usage time represented by the current usage progress of the first application, which can indicate that the usage progress information of the second application is the latest. Therefore, based on the first relay SDK integrated in the application, the usage progress of the first application can be controlled to be consistent with the usage progress of the second application on the second device.
在一种可能的实现方式中,第一设备可以为车载设备,第二设备可以为移动设备。由此,在上述步骤S102之前,还可以包括:In a possible implementation, the first device may be a vehicle-mounted device, and the second device may be a mobile device. Therefore, before the above step S102, the following may also be included:
确定车辆的挡位处于预设挡位。Make sure the vehicle is in the preset gear.
其中,预设挡位可以根据实际情况而定,例如可以为表征停车的P挡位,本公开对 此不作具体限定。The preset gear position can be determined according to actual conditions, for example, it can be the P gear position representing parking. This is not specifically limited.
举例说明,在车辆停车后(也即车辆挡位处于P挡位),用户通常使用移动设备来继续使用在车载设备上使用的应用程序。由此,车载设备可以基于车载设备上的第一接力SDK获取第一应用程序的应用数据包,并且向移动设备发送应用数据包,从而使得移动设备基于第二接力SDK控制第二应用程序的使用进度与车载设备上的第一应用程序的使用进度一致。如此,可以实现车载设备的第一应用程序到移动设备的第二应用程序的无缝流转。For example, after the vehicle is parked (that is, the vehicle gear is in the P gear), the user usually uses the mobile device to continue using the application used on the vehicle-mounted device. Therefore, the vehicle-mounted device can obtain the application data packet of the first application based on the first relay SDK on the vehicle-mounted device, and send the application data packet to the mobile device, so that the mobile device controls the use progress of the second application based on the second relay SDK to be consistent with the use progress of the first application on the vehicle-mounted device. In this way, a seamless flow from the first application on the vehicle-mounted device to the second application on the mobile device can be achieved.
在一种可能的实现方式中,在接收到车载设备上的第二应用程序的应用数据包之后,可以在移动设备向用户推送该第二应用程序对应的第一应用程序,以使用户在移动设备上打开第一应用程序,从而完成应用程序的数据接力。In one possible implementation, after receiving the application data packet of the second application on the vehicle-mounted device, the first application corresponding to the second application can be pushed to the user on the mobile device so that the user opens the first application on the mobile device, thereby completing the data relay of the application.
通过上述技术方案,建立与第二设备之间的数据传输通道,其中第一设备为移动设备和车载设备的一者,第二设备为移动设备和车载设备中的另一者。由此,可以基于集成在第一设备的第一应用程序中的第一接力SDK获取该第一应用程序的应用数据包,并将该应用数据包发送至第二设备,以使第二设备的第二应用程序中集成的第二接力SDK控制第二应用程序的使用进度与第一应用程序的使用进度一致。由此可以通过接力SDK灵活获取数据接力所需的使用进度信息,从而提高数据接力的准确性。Through the above technical solution, a data transmission channel is established with the second device, wherein the first device is one of the mobile device and the vehicle-mounted device, and the second device is the other of the mobile device and the vehicle-mounted device. Thus, the application data packet of the first application can be obtained based on the first relay SDK integrated in the first application of the first device, and the application data packet is sent to the second device, so that the second relay SDK integrated in the second application of the second device controls the usage progress of the second application to be consistent with the usage progress of the first application. Thus, the usage progress information required for data relay can be flexibly obtained through the relay SDK, thereby improving the accuracy of data relay.
基于相同的构思,本公开还提供一种数据接力装置300,应用于第一设备,可用于执行上述方法实施例提供的一种数据接力方法全部或部分的步骤,该数据接力装置300可以以软件、硬件或者两者相结合的方式实现数据接力方法。图3是根据一示例性实施例示出的一种数据接力装置300的框图。参照图3,该数据接力装置300包括:Based on the same concept, the present disclosure also provides a data relay device 300, which is applied to a first device and can be used to execute all or part of the steps of a data relay method provided in the above method embodiment. The data relay device 300 can implement the data relay method in the form of software, hardware, or a combination of both. FIG3 is a block diagram of a data relay device 300 according to an exemplary embodiment. Referring to FIG3, the data relay device 300 includes:
建立模块301,用于建立与第二设备之间的数据传输通道,第一设备为移动设备和车载设备的一者,第二设备为移动设备和车载设备中的另一者;An establishing module 301 is used to establish a data transmission channel with a second device, the first device is one of the mobile device and the vehicle-mounted device, and the second device is the other of the mobile device and the vehicle-mounted device;
获取模块302,用于基于第一接力SDK获取第一设备中的第一应用程序的应用数据包,其中,第一接力SDK集成在第一应用程序中,应用数据包包括第一应用程序在第一设备上的使用进度信息;An acquisition module 302 is configured to acquire an application data packet of a first application in a first device based on a first relay SDK, wherein the first relay SDK is integrated in the first application, and the application data packet includes usage progress information of the first application on the first device;
发送模块303,用于向第二设备发送应用数据包,应用数据包用于第二设备中的第二应用程序中集成的第二接力SDK控制第二应用程序的使用进度与第一设备上的第一应用程序的使用进度一致。The sending module 303 is used to send an application data packet to the second device, where the application data packet is used by a second relay SDK integrated in a second application in the second device to control the use progress of the second application to be consistent with the use progress of the first application on the first device.
可选地,建立模块301用于: Optionally, the establishment module 301 is used to:
向第二设备发送连接请求,连接请求中包括第一公钥,第一公钥用于第二设备对第一设备进行身份认证;Sending a connection request to the second device, where the connection request includes a first public key, where the first public key is used by the second device to authenticate the first device;
在接收到第二设备发送的反馈信息的情况下,建立与第二设备之间的数据传输通道,反馈信息是第二设备在根据第一公钥对第一设备进行身份认证通过的情况下发送给第一设备的;When feedback information sent by the second device is received, a data transmission channel is established with the second device, wherein the feedback information is sent by the second device to the first device when the identity of the first device is successfully authenticated according to the first public key;
其中,第一公钥至少是根据第一设备的识别码生成的,反馈信息包括第二公钥,第二公钥至少是根据第二设备的识别码生成的。The first public key is generated at least according to the identification code of the first device, the feedback information includes the second public key, and the second public key is generated at least according to the identification code of the second device.
可选地,发送模块303用于:Optionally, the sending module 303 is used to:
基于第二公钥对第一应用程序的应用数据包进行加密,并基于第一设备的对应第一公钥的第一私钥对加密后的应用数据包进行签名,得到加密签名数据包;Encrypting an application data packet of the first application based on the second public key, and signing the encrypted application data packet based on a first private key corresponding to the first public key of the first device to obtain an encrypted signature data packet;
将加密签名数据包发送给第二设备,加密签名数据包用于第二设备基于第一公钥进行签名认证,并基于第二设备的对应第二公钥的第二私钥对加密签名数据包进行解密,得到第一应用程序的应用数据包。The encrypted signature data packet is sent to the second device, where the encrypted signature data packet is used by the second device to perform signature authentication based on the first public key, and the encrypted signature data packet is decrypted based on the second private key corresponding to the second public key of the second device to obtain an application data packet of the first application.
可选地,第一私钥是根据第一设备的识别码以及第一应用程序的标识信息生成的,第一公钥是根据第一设备的识别码以及第一应用程序的标识信息生成的对应第一私钥的公钥,第二私钥是根据第二设备的识别码以及第二应用程序的标识信息生成的,第二公钥是根据第二设备的识别码以及第二应用程序的标识信息生成的对应第二私钥的公钥。Optionally, the first private key is generated based on the identification code of the first device and the identification information of the first application, the first public key is the public key corresponding to the first private key generated based on the identification code of the first device and the identification information of the first application, the second private key is generated based on the identification code of the second device and the identification information of the second application, and the second public key is the public key corresponding to the second private key generated based on the identification code of the second device and the identification information of the second application.
可选地,第一应用程序以及第二应用程序均为多个,且多个第一应用程序以及多个第二应用程序一一对应,每一第一应用程序的第一公钥存储在对应的第二应用程序的第二接力SDK中,每一第二应用程序的第二公钥存储在对应的第一应用程序的第一接力SDK中,使得任一第一应用程序的加密签名数据包能够被对应第一应用程序的第二应用程序解密以及签名认证。Optionally, there are multiple first applications and multiple second applications, and the multiple first applications and the multiple second applications correspond one to one. The first public key of each first application is stored in the second relay SDK of the corresponding second application, and the second public key of each second application is stored in the first relay SDK of the corresponding first application, so that the encrypted signature data packet of any first application can be decrypted and signed and authenticated by the second application corresponding to the first application.
可选地,数据传输通道为基于近场通信的数据传输通道。Optionally, the data transmission channel is a data transmission channel based on near field communication.
可选地,数据接力装置300还包括:Optionally, the data relay device 300 further includes:
确定模块,用于在基于第一接力SDK获取第一设备中的第一应用程序的应用数据包之前,响应于检测到第一设备前台运行的应用程序集成有第一接力SDK,将集成有第一接力SDK的应用程序作为第一应用程序。The determination module is used to, before acquiring the application data packet of the first application in the first device based on the first relay SDK, in response to detecting that the application running in the foreground of the first device is integrated with the first relay SDK, use the application integrated with the first relay SDK as the first application.
可选地,获取模块302用于:Optionally, the acquisition module 302 is used to:
跟随第一设备上的第一应用程序的使用进度的增加,基于第一接力SDK实时获取第 一设备中的第一应用程序的应用数据包;Following the increase in the usage progress of the first application on the first device, the first relay SDK is used to obtain the first an application data packet of a first application in a device;
发送模块303用于:The sending module 303 is used for:
跟随第一设备上的第一应用程序的使用进度的增加,实时向第二设备发送获取到的第一设备中的第一应用程序的应用数据包,以使得第二应用程序的使用进度跟第一应用程序实时保持一致。As the usage progress of the first application on the first device increases, the application data packet of the first application in the first device is sent to the second device in real time, so that the usage progress of the second application is consistent with the first application in real time.
可选地,数据接力装置300还包括执行模块,该执行模块用于:Optionally, the data relay device 300 further includes an execution module, which is used to:
接收第二设备发送的第二应用程序的应用数据包,第二应用程序的应用数据包包括第二应用程序的使用进度信息;receiving an application data packet of a second application sent by a second device, where the application data packet of the second application includes usage progress information of the second application;
在第二应用程序的使用进度信息所表征的使用时间晚于第一应用程序的当前使用进度所表征的使用时间的情况下,基于应用程序中集成的第一接力SDK控制第一应用程序的使用进度与第二设备上的第二应用程序的使用进度一致。When the usage time represented by the usage progress information of the second application is later than the usage time represented by the current usage progress of the first application, the usage progress of the first application is controlled to be consistent with the usage progress of the second application on the second device based on the first relay SDK integrated in the application.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
基于相同的构思,本公开还提供一种数据接力系统400,参照图4,图4是根据一示例性实施例示出的一种数据接力系统400的框图。如图4所示,该数据接力系统400包括:Based on the same concept, the present disclosure also provides a data relay system 400, referring to FIG4, which is a block diagram of a data relay system 400 according to an exemplary embodiment. As shown in FIG4, the data relay system 400 includes:
移动设备401以及车载设备402;Mobile device 401 and vehicle-mounted device 402;
其中移动设备401被配置成作为第一设备实现上述方法实施例提供的数据接力方法中全部或部分的步骤,或者,车载设备402被配置成作为第一设备实现上述方法实施例提供的数据接力方法中全部或部分的步骤。The mobile device 401 is configured as a first device to implement all or part of the steps in the data relay method provided in the above method embodiment, or the vehicle-mounted device 402 is configured as a first device to implement all or part of the steps in the data relay method provided in the above method embodiment.
图5是根据一示例性实施例示出的一种移动设备401的框图。如图5所示,该移动设备401可以包括:处理器4011,存储器4012。该移动设备401还可以包括多媒体组件4013,输入/输出(I/O)接口4014,以及通信组件4015中的一者或多者。FIG5 is a block diagram of a mobile device 401 according to an exemplary embodiment. As shown in FIG5 , the mobile device 401 may include: a processor 4011, a memory 4012. The mobile device 401 may also include one or more of a multimedia component 4013, an input/output (I/O) interface 4014, and a communication component 4015.
其中,处理器4011用于控制该移动设备401的整体操作,以完成上述方法实施例提供的数据接力方法中的全部或部分步骤。存储器4012用于存储各种类型的数据以支持在该移动设备401的操作,这些数据例如可以包括用于在该移动设备401上操作的任何应用程序或方法的指令,以及应用程序相关的数据,例如联系人数据、收发的消息、图片、音频、视频等等。该存储器4012可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,例如静态随机存取存储器(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),磁存储器,快闪存储器,磁盘或光盘。多媒体组件4013可以包括屏幕和音频组件。其中屏幕例如可以是触摸屏,音频组件用于输出和/或输入音频信号。例如,音频组件可以包括一个麦克风,麦克风用于接收外部音频信号。所接收的音频信号可以被进一步存储在存储器4012或通过通信组件4015发送。音频组件还包括至少一个扬声器,用于输出音频信号。I/O接口4014为处理器4011和其他接口模块之间提供接口,上述其他接口模块可以是键盘,鼠标,按钮等。这些按钮可以是虚拟按钮或者实体按钮。通信组件4015用于该移动设备401与其他设备之间进行有线或无线通信。无线通信,例如Wi-Fi,蓝牙,近场通信(Near Field Communication,简称NFC),2G、3G、4G、NB-IOT、eMTC、或其他5G等等,或它们中的一种或几种的组合,在此不做限定。因此相应的该通信组件4015可以包括:Wi-Fi模块,蓝牙模块,NFC模块等等。The processor 4011 is used to control the overall operation of the mobile device 401 to complete all or part of the steps in the data relay method provided in the above method embodiment. The memory 4012 is used to store various types of data to support the operation of the mobile device 401. These data may include, for example, instructions for any application or method used to operate on the mobile device 401, as well as application-related data, such as contact data, sent and received messages, pictures, audio, video, etc. The memory 4012 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a 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, disk or optical disk. Multimedia component 4013 may include a screen and an audio component. The screen may be, for example, a touch screen, and the audio component is used to output and/or input audio signals. For example, the audio component may include a microphone, which is used to receive external audio signals. The received audio signal may be further stored in memory 4012 or sent through communication component 4015. The audio component also includes at least one speaker for outputting audio signals. I/O interface 4014 provides an interface between processor 4011 and other interface modules, and the above-mentioned other interface modules may be keyboards, mice, buttons, etc. These buttons may be virtual buttons or physical buttons. Communication component 4015 is used for wired or wireless communication between mobile device 401 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or a combination of one or more of them, is not limited here. Therefore, the corresponding communication component 4015 may include: Wi-Fi module, Bluetooth module, NFC module, etc.
在一示例性实施例中,移动设备401可以被一个或多个应用专用集成电路(Application Specific Integrated Circuit,简称ASIC)、数字信号处理器(Digital Signal Processor,简称DSP)、数字信号处理设备(Digital Signal Processing Device,简称DSPD)、可编程逻辑器件(Programmable Logic Device,简称PLD)、现场可编程门阵列(Field Programmable Gate Array,简称FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法实施例提供的数据接力方法。In an exemplary embodiment, the mobile device 401 can be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), controllers, microcontrollers, microprocessors or other electronic components to execute the data relay method provided in the above method embodiments.
本公开还提供一种车辆600,如图6所示,图6是根据一示例性实施例示出的一种车辆的框图。该车辆600包括:车载设备402,该车载设备402用于实现上述方法实施例提供的数据接力方法的步骤。在具体实施时,车辆600还可以包括其他部件,图6只是示出了与本公开实施例相关的部分,其它必要的车辆部件未一一示出。The present disclosure also provides a vehicle 600, as shown in FIG6, which is a block diagram of a vehicle according to an exemplary embodiment. The vehicle 600 includes: an on-board device 402, which is used to implement the steps of the data relay method provided in the above method embodiment. In a specific implementation, the vehicle 600 may also include other components, and FIG6 only shows the parts related to the embodiment of the present disclosure, and other necessary vehicle components are not shown one by one.
在另一示例性实施例中,还提供了一种包括程序指令的计算机可读存储介质,该程序指令被处理器执行时实现上述的数据接力方法的步骤。例如,该计算机可读存储介质可以为上述包括程序指令的存储器4012,或者为车载设备402中包括程序指令的存储器,上述程序指令可由移动设备401的处理器4011或者车载设备402的处理器执行以完成上述的数据接力方法。 In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by the processor, the steps of the above-mentioned data relay method are implemented. For example, the computer-readable storage medium can be the above-mentioned memory 4012 including program instructions, or the memory including program instructions in the vehicle-mounted device 402, and the above-mentioned program instructions can be executed by the processor 4011 of the mobile device 401 or the processor of the vehicle-mounted device 402 to complete the above-mentioned data relay method.
在另一示例性实施例中,还提供一种计算机程序产品,该计算机程序产品包含能够由可编程的装置执行的计算机程序,该计算机程序具有当由该可编程的装置执行时用于执行上述的数据接力方法的代码部分。In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program that can be executed by a programmable device. The computer program has a code portion for executing the above data relay method when executed by the programmable device.
以上结合附图详细描述了本公开的优选实施方式,但是,本公开并不限于上述实施方式中的具体细节,在本公开的技术构思范围内,可以对本公开的技术方案进行多种简单变型,这些简单变型均属于本公开的保护范围。The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.
另外需要说明的是,在上述具体实施方式中所描述的各个具体技术特征,在不矛盾的情况下,可以通过任何合适的方式进行组合,为了避免不必要的重复,本公开对各种可能的组合方式不再另行说明。It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.
此外,本公开的各种不同的实施方式之间也可以进行任意组合,只要其不违背本公开的思想,其同样应当视为本公开所公开的内容。 In addition, various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.

Claims (15)

  1. 一种数据接力方法,其特征在于,应用于第一设备(201),所述方法包括:A data relay method, characterized in that it is applied to a first device (201), and the method comprises:
    建立与第二设备(202)之间的数据传输通道,所述第一设备(201)为移动设备(401)和车载设备(402)的一者,所述第二设备(202)为所述移动设备(401)和所述车载设备(402)中的另一者;Establishing a data transmission channel with a second device (202), wherein the first device (201) is one of a mobile device (401) and a vehicle-mounted device (402), and the second device (202) is the other of the mobile device (401) and the vehicle-mounted device (402);
    基于第一接力SDK(2012)获取所述第一设备(201)中的第一应用程序(2011)的应用数据包,其中,所述第一接力SDK(2012)集成在所述第一应用程序(2011)中,所述应用数据包包括所述第一应用程序(2011)在所述第一设备(201)上的使用进度信息;Acquiring an application data packet of a first application (2011) in the first device (201) based on a first relay SDK (2012), wherein the first relay SDK (2012) is integrated in the first application (2011), and the application data packet includes usage progress information of the first application (2011) on the first device (201);
    向所述第二设备(202)发送所述应用数据包,所述应用数据包用于所述第二设备(202)中的第二应用程序(2021)中集成的第二接力SDK(2022)控制所述第二应用程序(2021)的使用进度与所述第一设备(201)上的第一应用程序(2011)的使用进度一致。The application data packet is sent to the second device (202), and the application data packet is used by a second relay SDK (2022) integrated in a second application (2021) in the second device (202) to control the usage progress of the second application (2021) to be consistent with the usage progress of the first application (211) on the first device (201).
  2. 根据权利要求1所述的方法,其特征在于,所述建立与第二设备(202)之间的数据传输通道,包括:The method according to claim 1, characterized in that said establishing a data transmission channel with the second device (202) comprises:
    向所述第二设备(202)发送连接请求,所述连接请求中包括第一公钥,所述第一公钥用于所述第二设备(202)对所述第一设备(201)进行身份认证;Sending a connection request to the second device (202), wherein the connection request includes a first public key, and the first public key is used for the second device (202) to authenticate the first device (201);
    在接收到所述第二设备(202)发送的反馈信息的情况下,建立与所述第二设备(202)之间的所述数据传输通道,所述反馈信息是所述第二设备(202)在根据所述第一公钥对所述第一设备(201)进行身份认证通过的情况下发送给所述第一设备(201)的;establishing the data transmission channel with the second device (202) upon receiving feedback information sent by the second device (202), wherein the feedback information is sent by the second device (202) to the first device (201) upon successful identity authentication of the first device (201) according to the first public key;
    其中,所述第一公钥至少是根据所述第一设备(201)的识别码生成的,所述反馈信息包括第二公钥,所述第二公钥至少是根据所述第二设备(202)的识别码生成的。The first public key is generated at least based on the identification code of the first device (201), the feedback information includes a second public key, and the second public key is generated at least based on the identification code of the second device (202).
  3. 根据权利要求2所述的方法,其特征在于,所述向所述第二设备(202)发送所述应用数据包,包括:The method according to claim 2, characterized in that sending the application data packet to the second device (202) comprises:
    基于所述第二公钥对所述第一应用程序(2011)的应用数据包进行加密,并基于所述第一设备(201)的对应所述第一公钥的第一私钥对加密后的应用数据包进行签名,得到加密签名数据包;Encrypting an application data packet of the first application (2011) based on the second public key, and signing the encrypted application data packet based on a first private key of the first device (201) corresponding to the first public key to obtain an encrypted signature data packet;
    将所述加密签名数据包发送给所述第二设备(202),所述加密签名数据包用于所述 第二设备(202)基于所述第一公钥进行签名认证,并基于所述第二设备(202)的对应所述第二公钥的第二私钥对所述加密签名数据包进行解密,得到所述第一应用程序(2011)的应用数据包。The encrypted signature data packet is sent to the second device (202), wherein the encrypted signature data packet is used for The second device (202) performs signature authentication based on the first public key, and decrypts the encrypted signature data packet based on the second private key of the second device (202) corresponding to the second public key to obtain an application data packet of the first application (2011).
  4. 根据权利要求3所述的方法,其特征在于,The method according to claim 3, characterized in that
    所述第一私钥是根据所述第一设备(201)的识别码以及所述第一应用程序(2011)的标识信息生成的;The first private key is generated according to the identification code of the first device (201) and the identification information of the first application (2011);
    所述第一公钥是根据所述第一设备(201)的识别码以及所述第一应用程序(2011)的标识信息生成的对应所述第一私钥的公钥;The first public key is a public key corresponding to the first private key generated according to the identification code of the first device (201) and the identification information of the first application (2011);
    所述第二私钥是根据所述第二设备(202)的识别码以及所述第二应用程序(2021)的标识信息生成的;The second private key is generated according to the identification code of the second device (202) and the identification information of the second application (2021);
    所述第二公钥是根据所述第二设备(202)的识别码以及所述第二应用程序(2021)的标识信息生成的对应所述第二私钥的公钥。The second public key is a public key corresponding to the second private key generated based on the identification code of the second device (202) and the identification information of the second application (2021).
  5. 根据权利要求2-4中任一项所述的方法,其特征在于,The method according to any one of claims 2 to 4, characterized in that
    所述第一应用程序(2011)以及所述第二应用程序(2021)均为多个,且多个所述第一应用程序(2011)以及多个所述第二应用程序(2021)一一对应,每一所述第一应用程序(2011)的所述第一公钥存储在对应的所述第二应用程序(2021)的第二接力SDK(2022)中,每一所述第二应用程序(2021)的所述第二公钥存储在对应的所述第一应用程序(2011)的第一接力SDK(2012)中,使得任一所述第一应用程序(2011)的加密签名数据包能够被对应所述第一应用程序(2011)的第二应用程序(2021)解密以及签名认证。There are multiple first applications (2011) and multiple second applications (2021), and the multiple first applications (2011) and the multiple second applications (2021) correspond one to one. The first public key of each first application (2011) is stored in the second relay SDK (2022) of the corresponding second application (2021), and the second public key of each second application (2021) is stored in the first relay SDK (2012) of the corresponding first application (2011), so that the encrypted signature data packet of any first application (2011) can be decrypted and signed and authenticated by the second application (2021) corresponding to the first application (2011).
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述数据传输通道为基于近场通信的数据传输通道。The method according to any one of claims 1 to 5 is characterized in that the data transmission channel is a data transmission channel based on near field communication.
  7. 根据权利要求1-5任一项所述的方法,其特征在于,在所述基于第一接力SDK(2012)获取所述第一设备(201)中的第一应用程序(2011)的应用数据包之前,包括:The method according to any one of claims 1 to 5, characterized in that, before acquiring the application data packet of the first application (2011) in the first device (201) based on the first relay SDK (2012), it comprises:
    响应于检测到所述第一设备(201)前台运行的应用程序集成有第一接力SDK(2012),将集成有第一接力SDK(2012)的应用程序作为所述第一应用程序(2011)。 In response to detecting that the application program running in the foreground of the first device (201) is integrated with the first relay SDK (2012), the application program integrated with the first relay SDK (2012) is used as the first application program (2011).
  8. 根据权利要求1-5任一项所述的方法,其特征在于,所述基于第一接力SDK(2012)获取所述第一设备(201)中的第一应用程序(2011)的应用数据包,包括:The method according to any one of claims 1 to 5, characterized in that the step of obtaining the application data packet of the first application (2011) in the first device (201) based on the first relay SDK (2012) comprises:
    跟随所述第一设备(201)上的第一应用程序(2011)的使用进度的增加,基于所述第一接力SDK(2012)实时获取所述第一设备(201)中的第一应用程序(2011)的应用数据包;Following the increase in the usage progress of the first application (2011) on the first device (201), based on the first relay SDK (2012), an application data packet of the first application (2011) in the first device (201) is acquired in real time;
    所述向所述第二设备(202)发送所述应用数据包,包括:The sending of the application data packet to the second device (202) comprises:
    跟随所述第一设备(201)上的第一应用程序(2011)的使用进度的增加,实时向所述第二设备(202)发送获取到的所述第一设备(201)中的第一应用程序(2011)的应用数据包,以使得所述第二应用程序(2021)的使用进度跟所述第一应用程序(2011)实时保持一致。As the usage progress of the first application (2011) on the first device (201) increases, the application data packet of the first application (2011) in the first device (201) is sent to the second device (202) in real time, so that the usage progress of the second application (2021) remains consistent with the first application (2011) in real time.
  9. 根据权利要求1-5任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 5, characterized in that the method further comprises:
    接收所述第二设备(202)发送的所述第二应用程序(2021)的应用数据包,所述第二应用程序(2021)的应用数据包包括所述第二应用程序(2021)的使用进度信息;receiving an application data packet of the second application (2021) sent by the second device (202), wherein the application data packet of the second application (2021) includes usage progress information of the second application (2021);
    在所述第二应用程序(2021)的使用进度信息所表征的使用时间晚于所述第一应用程序的当前使用进度所表征的使用时间的情况下,基于所述应用程序中集成的第一接力SDK(2012)控制所述第一应用程序(2011)的使用进度与所述第二设备(202)上的第二应用程序(2021)的使用进度一致。When the usage time represented by the usage progress information of the second application (2021) is later than the usage time represented by the current usage progress of the first application, the usage progress of the first application (2011) is controlled to be consistent with the usage progress of the second application (2021) on the second device (202) based on the first relay SDK (2012) integrated in the application.
  10. 根据权利要求1-5任一项所述的方法,其特征在于,所述第一设备(201)为车载设备(402),所述第二设备(202)为移动设备(401),在所述基于第一接力SDK(2012)获取所述第一设备(201)中的第一应用程序(2011)的应用数据包之前,还包括:The method according to any one of claims 1 to 5, characterized in that the first device (201) is a vehicle-mounted device (402), the second device (202) is a mobile device (401), and before the step of obtaining the application data packet of the first application (2011) in the first device (201) based on the first relay SDK (2012), the method further comprises:
    确定车辆的挡位处于预设挡位。Make sure the vehicle is in the preset gear.
  11. 一种数据接力装置(300),其特征在于,应用于第一设备(201),所述装置包括:A data relay device (300), characterized in that it is applied to a first device (201), and comprises:
    建立模块(301),用于建立与第二设备(202)之间的数据传输通道,所述第一设备(201)为移动设备(401)和车载设备(402)的一者,所述第二设备(202)为所述移动设备(401)和所述车载设备(402)中的另一者; An establishing module (301) is used to establish a data transmission channel with a second device (202), wherein the first device (201) is one of a mobile device (401) and a vehicle-mounted device (402), and the second device (202) is the other of the mobile device (401) and the vehicle-mounted device (402);
    获取模块(302),用于基于第一接力SDK(2012)获取所述第一设备(201)中的第一应用程序(2011)的应用数据包,其中,所述第一接力SDK(2012)集成在所述第一应用程序(2011)中,所述应用数据包包括所述第一应用程序(2011)在所述第一设备(201)上的使用进度信息;an acquisition module (302), configured to acquire an application data packet of a first application (2011) in the first device (201) based on a first relay SDK (2012), wherein the first relay SDK (2012) is integrated in the first application (2011), and the application data packet includes usage progress information of the first application (2011) on the first device (201);
    发送模块(303),用于向所述第二设备(202)发送所述应用数据包,所述应用数据包用于所述第二设备(202)中的第二应用程序(2021)中集成的第二接力SDK(2022)控制所述第二应用程序(2021)的使用进度与所述第一设备(201)上的第一应用程序(2011)的使用进度一致。A sending module (303) is used to send the application data packet to the second device (202), and the application data packet is used by a second relay SDK (2022) integrated in a second application (2021) in the second device (202) to control the usage progress of the second application (2021) to be consistent with the usage progress of the first application (211) on the first device (201).
  12. 一种数据接力系统(400),其特征在于,包括:A data relay system (400), characterized by comprising:
    移动设备(401)以及车载设备(402);Mobile device (401) and vehicle-mounted device (402);
    其中所述移动设备(401)被配置成作为第一设备(201)实现权利要求1-9中任一项所述方法的步骤,或者,所述车载设备(402)被配置成作为第一设备(201)实现权利要求1-10中任一项所述方法的步骤。The mobile device (401) is configured to implement the steps of the method described in any one of claims 1 to 9 as a first device (201), or the vehicle-mounted device (402) is configured to implement the steps of the method described in any one of claims 1 to 10 as a first device (201).
  13. 一种非临时性计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现权利要求1-10中任一项所述方法的步骤。A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that when the program is executed by a processor, the steps of the method described in any one of claims 1 to 10 are implemented.
  14. 一种移动设备(401),其特征在于,所述移动设备(401)作为第一设备(201),包括:A mobile device (401), characterized in that the mobile device (401) serves as a first device (201) and comprises:
    存储器(4012),其上存储有计算机程序;a memory (4012) on which a computer program is stored;
    处理器(4011),用于执行所述存储器中的所述计算机程序,以实现权利要求1-9中任一项所述方法的步骤。A processor (4011) is used to execute the computer program in the memory to implement the steps of the method according to any one of claims 1 to 9.
  15. 一种车辆(601),其特征在于,包括:车载设备(402),所述车载设备(402)作为第一设备(201)用于实现权利要求1-10中任一项所述方法的步骤。 A vehicle (601), characterized in that it comprises: an on-board device (402), wherein the on-board device (402) is used as a first device (201) to implement the steps of the method described in any one of claims 1-10.
PCT/CN2023/084893 2022-09-27 2023-03-29 Data relay method and apparatus, system, storage medium, device, and vehicle WO2024066263A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211185080.3A CN117834568A (en) 2022-09-27 2022-09-27 Data relay method, device, system, storage medium, equipment and vehicle
CN202211185080.3 2022-09-27

Publications (1)

Publication Number Publication Date
WO2024066263A1 true WO2024066263A1 (en) 2024-04-04

Family

ID=90475798

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/084893 WO2024066263A1 (en) 2022-09-27 2023-03-29 Data relay method and apparatus, system, storage medium, device, and vehicle

Country Status (2)

Country Link
CN (1) CN117834568A (en)
WO (1) WO2024066263A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200393847A1 (en) * 2019-06-17 2020-12-17 GM Global Technology Operations LLC Dynamic vehicle navigation based on leader follower scheme
CN113037929A (en) * 2019-12-24 2021-06-25 腾讯科技(深圳)有限公司 Information relay output method and device, electronic equipment and storage medium
CN113891129A (en) * 2021-09-18 2022-01-04 海信视像科技股份有限公司 Display device, content pushing and relay method
CN114489891A (en) * 2022-01-11 2022-05-13 北京字跳网络技术有限公司 Control method, system, device, readable medium and equipment of cloud application program
WO2022100285A1 (en) * 2020-11-16 2022-05-19 Oppo广东移动通信有限公司 Cross-device application handoff method, apparatus and system, device, and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200393847A1 (en) * 2019-06-17 2020-12-17 GM Global Technology Operations LLC Dynamic vehicle navigation based on leader follower scheme
CN113037929A (en) * 2019-12-24 2021-06-25 腾讯科技(深圳)有限公司 Information relay output method and device, electronic equipment and storage medium
WO2022100285A1 (en) * 2020-11-16 2022-05-19 Oppo广东移动通信有限公司 Cross-device application handoff method, apparatus and system, device, and storage medium
CN113891129A (en) * 2021-09-18 2022-01-04 海信视像科技股份有限公司 Display device, content pushing and relay method
CN114489891A (en) * 2022-01-11 2022-05-13 北京字跳网络技术有限公司 Control method, system, device, readable medium and equipment of cloud application program

Also Published As

Publication number Publication date
CN117834568A (en) 2024-04-05

Similar Documents

Publication Publication Date Title
US11882509B2 (en) Virtual key binding method and system
US8972736B2 (en) Fully authenticated content transmission from a provider to a recipient device via an intermediary device
JP6914275B2 (en) Payment authentication methods, devices, and systems for in-vehicle terminals
US20220276855A1 (en) Method and apparatus for processing upgrade package of vehicle
CN110621014B (en) Vehicle-mounted equipment, program upgrading method thereof and server
CN112994873B (en) Certificate application method and equipment
CN110998527B (en) Remote Control of Computing Devices
CN109034798B (en) Electronic payment system, method, apparatus, device and medium based on micro service
WO2017002499A1 (en) Communication system and program
CN112512048B (en) Mobile network access system, method, storage medium and electronic device
CN113242224A (en) Authorization method and device, electronic equipment and storage medium
CN115442063A (en) Charging data sending and receiving method and device, charging pile and vehicle terminal
US20100071033A1 (en) Authentication coordination system, terminal apparatus, storage medium, authentication coordination method, and authentication coordination program
CN111510448A (en) Communication encryption method, device and system in OTA (over the air) upgrade of automobile
CN115868189A (en) Method, vehicle, terminal and system for establishing vehicle safety communication
WO2024066263A1 (en) Data relay method and apparatus, system, storage medium, device, and vehicle
US11582611B1 (en) Prompt and secure data communication pairing
CN113365243B (en) Communication method, device, equipment and system
KR20180012221A (en) Method for providing an authenticated connection between at least two communication partners
CN112667992A (en) Authentication method, authentication device, storage medium, and electronic apparatus
KR20210069496A (en) Method for preventing mileage tampering of car and mileage recording device using the same
KR101408124B1 (en) Authentication method, authentication apparatus and authentication system for portable terminal
CN114780942A (en) Identity authentication method, device and storage medium
CN117349136A (en) Log information acquisition method, device, system, equipment and storage medium
CN117640148A (en) Vehicle-mounted function connection optimization method, device, equipment and storage medium

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

Country of ref document: EP

Kind code of ref document: A1