WO2022083342A1 - Data transmission method and electronic device - Google Patents

Data transmission method and electronic device Download PDF

Info

Publication number
WO2022083342A1
WO2022083342A1 PCT/CN2021/117421 CN2021117421W WO2022083342A1 WO 2022083342 A1 WO2022083342 A1 WO 2022083342A1 CN 2021117421 W CN2021117421 W CN 2021117421W WO 2022083342 A1 WO2022083342 A1 WO 2022083342A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
information
request
target
electronic device
Prior art date
Application number
PCT/CN2021/117421
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 WO2022083342A1 publication Critical patent/WO2022083342A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections

Definitions

  • the present application relates to the technical field of intelligent terminals, and in particular, to a data transmission method and electronic device.
  • the smart terminal may include: mobile phone, tablet, computer, vehicle-mounted device, smart home, fitness device, TV, large screen, and the like.
  • different smart terminals can be applied to fields such as office, home, sports, travel, education, etc., and different smart terminals can store data respectively. Therefore, in order to provide a good use experience, different smart terminals Data transmission needs to be performed between the above-mentioned intelligent terminals to complete information synchronization.
  • the user when a user replaces a new device or adds a new device, the user needs to transfer data (such as application packages, pictures or files, etc.) from the old device to the new device to synchronize information between the new device and the old device .
  • data such as application packages, pictures or files, etc.
  • One of the existing data transmission methods is to use a third-party server (such as the cloud, etc.), the old device logs in to the cloud account, backs up the data and transfers it to the cloud, and then the new device logs in to the same cloud account, downloads the data and installs the application. program and restore data to complete the synchronization of information between the new device and the old device.
  • the disadvantage of the existing data transmission method 1 is that the data transmission between the new device and the old device needs to use a third-party server and log in to the same server account to complete the information synchronization, and the cloud backup has a slow speed and consumes a lot of energy. Time, consume a lot of traffic and other issues. If the new device and the old device log in to different third-party servers, or log in to different server accounts, or do not log in to the third server, the data transfer between the new device and the old device cannot be completed. , so that information synchronization cannot be achieved.
  • the second existing data transmission method is to establish a one-to-one connection between the new device and the old device.
  • the user operates the old device and selects the data to be transmitted in the old device, so that the old device transmits the selected data to the new device.
  • the new device installs applications and restores data, thus completing the synchronization of information between the new device and the old device.
  • the disadvantage of the existing data transmission method 2 is that only one-to-one data transmission can be completed between the new device and the old device, and the user needs to operate the old device to select the data to be transmitted and transmit it to the new device. , If some hardware (such as buttons or screen) of the old device is damaged, it will cause the user to be unable to operate the old device, so that the data cannot be transferred to the new device, so that information synchronization cannot be achieved.
  • the present application provides a data transmission method and electronic device, the electronic device can realize data transmission with at least one second device without resorting to a third-party server (such as the cloud, etc.)
  • the second device is operated to provide a good user experience.
  • the present application provides a data transmission method, which is applied to a first device, wherein the first device establishes a connection with at least one second device, and the method includes:
  • the second device sends first information based on the first request, wherein the first information includes an application identifier and a device identifier of the second device;
  • a second request is sent to the second device corresponding to the device identifier, so that the second device sends the application package corresponding to the application identifier to the second device based on the second request. the first device to complete data transmission between the first device and the second device.
  • the first request includes device type information of the first device
  • the second device includes compatibility information between an application and a device type
  • the first information is based on the The device type of the first device and the compatibility information are determined.
  • the first device includes device type information
  • the first information further includes compatibility information between the application program and the device type.
  • the method further includes:
  • the application program of the second device in the first information is determined, and the second information is determined and displayed.
  • the first information further includes a version of the application
  • the method further includes:
  • the same application program of the plurality of second devices in the first information is determined, and the third information is determined and displayed.
  • the method before the sending the second request to the second device corresponding to the device identifier, the method further includes:
  • the selected target application program is determined in the second information.
  • the method before the sending the second request to the second device corresponding to the device identifier, the method further includes:
  • the selected target application program is determined in the third information.
  • the first information is updated by the second device based on changes in the application package.
  • the present application provides an apparatus, wherein the apparatus establishes a connection with at least one second device, and the apparatus includes:
  • a first request sending module configured to send a first request to the second device, so that the second device sends first information based on the first request, wherein the first information includes the information of the second device.
  • a receiving module configured to receive the first information sent by the second device
  • a second request sending module configured to send a second request to a second device corresponding to the device identifier based on the first information, so that the second device sends a request to the application based on the second request
  • a corresponding application package is identified to the apparatus to complete data transmission between the apparatus and the second device.
  • the first request includes device type information of the apparatus
  • the second device includes compatibility information between an application program and a device type
  • the first information is based on the device type information of the apparatus.
  • the device type and the compatibility information are determined.
  • the apparatus includes device type information, the first information further includes compatibility information between the application program and the device type, and the apparatus further includes:
  • the second information determination module is configured to determine, based on the compatibility information and the device type information, the application program of the second device in the first information, and determine and display the second information.
  • the first information further includes the version of the application
  • the apparatus further includes:
  • a third information determination module configured to determine, based on the version, the same application program of a plurality of the second devices in the first information, and determine and display the third information.
  • the device further includes:
  • the first selection module is used for determining the selected target application program in the second information in response to the user's selection operation.
  • the device further includes:
  • the second selection module is used for determining the selected target application program in the third information in response to the user's selection operation.
  • the first information is updated by the second device based on changes in the application package.
  • the present application provides an electronic device that establishes a connection with at least one second device, wherein the electronic device includes:
  • a display screen ; one or more processors; a memory; a plurality of application programs; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs Include instructions that, when executed by the electronic device, cause the electronic device to perform the following steps:
  • the second device sends first information based on the first request, wherein the first information includes an application identifier and a device identifier of the second device;
  • a second request is sent to the second device corresponding to the device identifier, so that the second device sends the application package corresponding to the application identifier to the second device based on the second request. the electronic device to complete data transmission between the electronic device and the second device.
  • the first request includes device type information of the electronic device
  • the second device includes compatibility information between an application and a device type
  • the first information is based on the electronic device The device type of the device and the compatibility information are determined.
  • the electronic device includes device type information
  • the first information further includes compatibility information between the application program and the device type
  • the electronic device when the instruction is executed by the electronic device, the After the electronic device performs the step of receiving the first information sent by the second device, the electronic device further performs the steps:
  • the application program of the second device in the first information is judged, and the second information is determined and displayed.
  • the first information further includes a version of an application program, and when the instruction is executed by the electronic device, when the electronic device executes the receiving message sent by the second device After the step of the first message, the electronic device further performs the steps:
  • the same application program of the plurality of second devices in the first information is determined, and the third information is determined and displayed.
  • the electronic device when the instruction is executed by the electronic device, before the electronic device executes the step of sending a second request to the second device corresponding to the device identifier, the The electronic device also performs the steps:
  • the selected target application program is determined in the second information.
  • the electronic device when the instruction is executed by the electronic device, before the electronic device executes the step of sending a second request to the second device corresponding to the device identifier, the The electronic device also performs the steps:
  • the selected target application program is determined in the third information.
  • the first information is updated by the second device based on changes in the application package.
  • the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, which, when executed on a computer, causes the computer to execute the method according to the first aspect.
  • the present application provides a computer program for executing the method of the first aspect when the computer program is executed by a computer.
  • the program in the fifth aspect may be stored in whole or in part on a storage medium packaged with the processor, and may also be stored in part or in part in a memory not packaged with the processor.
  • Figure P1 is a schematic diagram of a data transmission method 1 in the prior art
  • Figure P2 is a schematic diagram of a second data transmission method in the prior art
  • Fig. 2 is the method flow chart of another embodiment of the data transmission method of the present application.
  • FIG. 3 is a schematic structural diagram of a distributed database in an embodiment of the data transmission method of the application.
  • FIG. 4 is a schematic structural diagram of a first device and a second device forming a networking system in an embodiment of the data transmission method of the present application;
  • FIG. 5 is a schematic structural diagram of a first device and a plurality of second devices forming a networking system in an embodiment of the data transmission method of the present application;
  • FIG. 7 is a flowchart of another embodiment of the data transmission method of the present application.
  • FIG. 8(a) is a schematic diagram of an embodiment of displaying an application program of the second device in the first device in the data transmission method of the present application;
  • FIG. 8(b) is a schematic diagram of another embodiment of displaying an application program of the second device in the first device in the data transmission method of the present application;
  • FIG. 8(c) is a schematic diagram of another embodiment of displaying an application program of the second device in the first device in the data transmission method of the present application;
  • FIG. 8(d) is a schematic diagram of another embodiment of displaying an application program of the second device in the first device in the data transmission method of the present application;
  • FIG. 8(e) is a schematic diagram of an embodiment of an application program in the migration device A displayed in the first device in the data transmission method of the application;
  • Fig. 8(f) is a schematic diagram showing an embodiment of the application program in the migration device A, the device B and the device C in the first device in the data transmission method of the application;
  • FIG. 9 is a schematic structural diagram of an embodiment of a data transmission device of the present application.
  • FIG. 10 is a schematic structural diagram of another embodiment of the data transmission device of the present application.
  • FIG. 11 is a schematic structural diagram of still another embodiment of the data transmission device of the present application.
  • FIG. 12 is a schematic structural diagram of an embodiment of the electronic device of the present application.
  • one of the existing data transmission methods is to use a third-party server (such as the cloud, etc.), the old device logs in to the cloud account, backs up the data and transmits it to the cloud, and then the new device logs in to the same cloud account and transfers the data to the cloud.
  • This data downloads and installs apps and restores data to complete the synchronization of information between the new and old devices.
  • the disadvantage of the existing data transmission method 1 is that the data transmission between the new device and the old device needs to use a third-party server and log in to the same server account to complete the information synchronization, and the cloud backup has a slow speed and consumes a lot of energy. Time, consume a lot of traffic and other issues. If the new device and the old device log in to different third-party servers, or log in to different server accounts, or do not log in to the third server, the data transfer between the new device and the old device cannot be completed. , so that information synchronization cannot be achieved.
  • the existing data transmission method 2 is to establish a one-to-one connection between the new device and the old device, and the user operates the old device to select the data to be transmitted in the old device, so that the old device will transfer the selected data. Transfer to a new device, install applications and restore data from the new device, thereby completing the synchronization of information between the new device and the old device.
  • the disadvantage of the existing data transmission method 2 is that only one-to-one data transmission can be completed between the new device and the old device, and the user needs to operate the old device to select the data to be transmitted and transmit it to the new device. , If some hardware (such as buttons or screen) of the old device is damaged, it will cause the user to be unable to operate the old device, so that the data cannot be transferred to the new device, so that information synchronization cannot be achieved.
  • the present application proposes a data transmission method and electronic device, which can realize the transmission of data (such as application package, file or picture, etc.) between the electronic device and at least one second device without resorting to third-party services terminal (such as the cloud, etc.), the user does not need to operate the second device, so as to provide a good use experience.
  • data such as application package, file or picture, etc.
  • third-party services terminal such as the cloud, etc.
  • FIG. 1 is a flowchart of an embodiment of a data transmission method of the present application. As shown in FIG. 1 , the above data transmission method is applied to a first device, wherein the first device establishes a connection with at least one second device, and the method include:
  • S101 Send a first request to the second device, so that the second device sends first information based on the first request, where the first information includes an application identifier and a device identifier of the second device .
  • the first device and the second device may include mobile terminals (mobile phones), smart screens, tablets, computers, smart homes, fitness equipment, TVs, large screens, drones, and Intelligent Connected Vehicles; hereinafter referred to as: ICV), intelligent (car) car (smart/intelligent car) or in-vehicle equipment and other equipment.
  • ICV Intelligent Connected Vehicles
  • the first device and the second device may be the same device or different devices, respectively, and multiple second devices may be the same device or different devices, respectively.
  • the first device may be a mobile phone
  • the second device may be a mobile phone, a tablet, a TV, a large screen, and the like, respectively.
  • the first device may establish connections with a plurality of the second devices respectively, and the connection modes may include wireless connections such as wifi, bluetooth, local area network, broadcast, antenna, etc., or wired connections.
  • the first device may send the first request to a plurality of the second devices respectively, and the first request may include a request by the first device to perform data communication with the second device A message to be transmitted, so as to realize one-to-one or one-to-many data transmission between the first device and a plurality of the second devices.
  • the method can complete the data transmission between the first device and the second device without resorting to a third-party server (such as a cloud, etc.).
  • a third-party server such as a cloud, etc.
  • the first device may respectively receive the first information sent by a plurality of the second devices.
  • the application identifier may be used to identify the name of the application program of the second device, and the like, and the device identifier may be used to identify the device name or ID of the second device, and the like.
  • the second device may include a device A, a device B, and a device C
  • the device A may include an application program A1, an application program A2, and an application program A3
  • the device B may include an application program B1 and an application program B2
  • the device C may include an application program C1 and an application program C2
  • the first information sent by the device A includes the application program A1, the application program A2 and the application program A3 of the device A.
  • the first information sent by the device B may include the application identifiers of the application B1 and B2 of the device B and the device identifier of the device B
  • the first information sent by the device C may include The application program identifiers of the application program C1 and the application program C2 of the device C and the device identifier of the device C.
  • the first device can perform data transmission with a plurality of the second devices through wireless or Bluetooth, and the first device can store the data in all the second devices.
  • the first device may send a second request to a plurality of the second devices respectively, so that the plurality of second devices respectively send corresponding application packages to the first device, so as to causing the first device to complete data transmission with a plurality of the second devices respectively.
  • the second request may include a message from the first device requesting the second device to send an application package to the first device. For example, based on the device identification of the device A, the first device sends the second request to the device A, so that the device A sends the application package of the application A1, the application A2 and the application A3 to the device A, respectively.
  • the first device based on the device ID of the device B, the first device sends a second request to the device B, so that the device B sends the application package of the application B1 and the application B2 to the device B respectively.
  • the first device based on the device identifier of the device C, the first device sends a second request to the device C, so that the device C sends the application packages of the application C1 and the application C2 to the first a device, so as to realize data transmission between the first device and the device A, the device B, and the device C, respectively.
  • a first device and a plurality of second devices perform device networking through wireless, Bluetooth, etc., to form a networking system, and the method may include:
  • S901. Receive first information sent by the second device, where the first information includes an application identifier of the second device;
  • a distributed database is stored in the first device and each second device in the networking system, and the distributed database is used to store the first information of each device in the networking system.
  • the first device after receiving the first information sent by the one or more second devices, stores the received first information of the second devices in a distributed database.
  • the device identification can be used to identify the name or ID of the second device, and the application identification. It can be used to identify the application name or ID of the second device corresponding to the device identification.
  • the distributed database of the first device stores multiple pieces of first information (such as application identifiers and device identifiers, etc.) of the second device.
  • the distributed database stores information corresponding to device A.
  • the application identifier a1, the application identifier b1, and the application identifier c1 can identify the name or ID of the same application, and the application identifier a2, the application identifier b2, and the application identifier c2 can identify the same application. Name or ID, etc. to represent the same app for different devices (versions may vary).
  • a new device eg, a first device
  • an old device eg, a second device
  • Both the new device and the old device contain a distributed database.
  • the distributed database of the new device stores one or more application identifiers of the old device
  • the distributed database of the old device stores one or more applications of the new device.
  • Program ID is used to receive and send the first information and the application package of the application program, etc., and store the received first information in a distributed database. , and complete application installation and data recovery.
  • the package management module of the old device reads the application ID from the field of the application, and sends the application ID to the package management module of the new device, and the package management module of the new device receives the application ID of the old device , and stored in the distributed database of the new device.
  • the package management module of the new device can also send a first request to the old device according to the application identifier of the old device, so that the package management module of the old device can send the new device to the new device according to the first request.
  • the device sends the corresponding application package, and the package management module of the new device completes the installation of the application and data recovery after receiving the application package.
  • the first device and multiple second devices can establish connections to form a networking system to complete data transmission between multiple devices.
  • the first device, multiple second devices such as device A, device B, and device C, etc., both the first device and the multiple second devices may include a distributed database, an application program, and a package management module. Therefore, the distributed database of the first device may store multiple application identifiers and device identifiers of the second device.
  • step S902 may include:
  • the application identifiers and device identifiers of multiple second devices can be displayed on the touch screen of the first device, and the user can operate on the touch screen of the first device to select the first target device to be cloned
  • the identifier and the first target application identifier the first device requests the second device corresponding to the first target device identifier to download the application package corresponding to the first target application identifier.
  • the second device before the second device sends the application package corresponding to the application identifier to the first device, the second device backs up the application package. That is, the second device can back up and store the application package to prevent data loss.
  • the first device may include a package management system for managing the application package, such as installing an application or performing data recovery, which is not limited herein.
  • the method further includes, based on the application package, installing an application and performing data recovery. That is to say, the first device can install the application program and restore the data according to the application program, thereby realizing information synchronization.
  • the user does not need to operate the second device. Further, the user does not need to operate the first device, and the first device does not need to prompt the user during the process of data transmission between the first device and the second device, so as to realize the first device. A silent transmission between a device and the second device.
  • the method further includes: displaying the first information, and determining the first information in response to a user's selection operation
  • the target application in the target device that needs to be transferred.
  • the first information may be displayed in the first device in a list, text or sequence.
  • the target application program of the target device may include the application program of the second device in the first information selected by the user.
  • the user can select the application A1 and application A3 of the device A and the application C1 of the device C in the first information, that is, the target application of the target device is the device A application A1 and application A3, and application C1 of the device C, wherein the first device sends a second request to the device A and the device C, respectively, so that the device A will
  • the application package of the application program A3 is sent to the first device
  • the device C sends the application package of the application program C1 to the first device, so that the first device according to the application program A1, the application program A3 and the application package of the application C1, respectively install the application A1, the application A3 and the application C1, and restore the corresponding data to complete the information synchronization.
  • the first request includes device type information of the first device
  • the second device includes compatibility information between an application and a device type
  • the data sent by the second device The first information is determined based on the device type of the first device and the compatibility information.
  • the first device stores device type information of the first device, and the device type information may include a mobile terminal (mobile phone), a smart screen, a tablet, a computer, a smart home, a fitness device, a TV,
  • the type of equipment such as large screen, drone, intelligent connected vehicle (Intelligent Connected Vehicle; hereinafter referred to as: ICV), smart (car) car (smart/intelligent car) or in-vehicle equipment.
  • the second device stores compatibility information between applications and device types, and the compatibility information may include device types compatible with the application in the second device.
  • the first information may include an application identifier and a device identifier of the second device that are compatible with the first device. That is, the second device determines whether the application program of the second device is compatible with the first device based on the compatibility information and the device type information of the first device, so as to determine the first information .
  • the device A determines that the application A1 and the application A2 of the device A are compatible with the device A
  • the device B determines that the application program B2 of the device B is compatible with the first device
  • the device C determines that the application program C1 of the device C is compatible with the first device
  • the device C determines that the application program C1 of the device C is compatible with the first device.
  • the first information includes the application program A1 of the device A, the application program identification of the application program A2 and the device identification of the device A, the application program identification of the application program B2 of the device B and the device identification of the device B , and the application identifier of the application C1 of the device C and the device identifier of the device B.
  • the device A sends the application program A1 and the application program package of the application program A2 to the first device
  • the device B sends the application program package of the application program B2 to the first device.
  • the device C sends the application package of the application C1 to the first device, so that the first device can install the application A1, the application A2, the application B2 and the application C1 and perform corresponding Data Recovery.
  • the compatibility information may include a preset field added in the application data package during the application development stage of the application, and the preset field is used to indicate a device compatible with the application. type.
  • step S901 may include:
  • the compatibility information between the application program and the device type is stored in the second device.
  • the first device Before the second device sends the first information to the first device, the first device first sends the device type of the first device to the second device, and the second device sends the first device to the first device according to the device type and compatibility information of the first device.
  • the application program identifier of the compatible application program of the first device, so as to prevent the first device from downloading the incompatible application program and wasting resources.
  • the first device includes device type information, and the first information also includes compatibility information between the application program and the device type.
  • the method further includes:
  • the first device stores device type information of the first device.
  • the second device stores compatibility information between applications and device types, and the compatibility information may include device types compatible with the application in the second device.
  • the first device determines whether the application program of the second device is compatible with the first device based on the compatibility information in the first information and the device type information of the first device a device to determine the second information.
  • the first device determines the application A3 of the device A, the application B1 of the device B, and the application of the device C C2 is compatible with the first device.
  • the device A sends the application package of the application A3 to the first device
  • the device B sends the application package of the application B1 to the first device
  • the device C sends the application package of the application C2 to the first device, so that the first device can install the application A3, the application B1 and the application C2 and perform corresponding data recovery.
  • the second information may be displayed in the first device in a list, text or sequence, etc.
  • the first device may display the name of the second device and the application program of the second device, etc. for Meet the user's selection needs.
  • the first device may display the application A3 of the device A and the device A, the application B1 of the device B and the device B, the application C2 of the device C and the device C name etc.
  • step S902 may include:
  • the first information received by the first device further includes compatibility information between the application program of the second device and the device type, which is used to determine whether the application program of the second device is compatible with the first device. If the application program of the second device is not compatible with the first device, the first device does not need to send the first request to the second device, so as to avoid downloading the incompatible application program and wasting resources.
  • the method before the sending the second request to the second device corresponding to the device identifier, the method further includes:
  • the first device determines the selected application program in the second information
  • the target applications correspond to the application A3 of the device A and the application C2 of the device C.
  • the selected target application is determined based on the second information, and the first device sends a second request to the corresponding second device, so that the second device sends the corresponding
  • the application package of the target application is sent to the first device, so that the first device can install the target application and perform data recovery.
  • the first device sends a second request to the device A and the device C, so that the device A sends the application package of the application A3 to the first device , the device C sends the application package of the application C2 to the first device, so that the first device can install the application A3 and the application C2 and restore the corresponding data.
  • the user's selection operation may include clicking on the icon or name of the application program of the second device corresponding to the screen of the first device, or other operation methods, such as voice, gesture, etc. This is not limited.
  • the first information further includes the version of the application
  • the method further includes:
  • the device A, the device B and the device C all include the same application m and the same application n, and the same application m and the same application n of the device A, the device B and the device C
  • the versions of the same application n are different, and the versions of the application m of the device C and the application n of the device A are the highest.
  • the first information may include versions of the same application m and the same application n of the device A, the device B, and the device C, respectively.
  • the first device determines that the version of the application program m of the device C is the highest and the version of the application program n of the device A is the highest, and then determines the third information, wherein the The three pieces of information include the application identifier of the application m of the device C and the device identifier of the device C, the application identifier of the application n of the device A and the device identifier of the device A, wherein the Information such as the names of the application program m of the device C and the application program n of the device A can be displayed in the first device to meet the user's selection requirements.
  • the first device sends a second request to the device A and the device C respectively, so that the device A sends the application package of the application n to the first device, and the Device C sends the application package of application m to the first device, so that the first device can install the highest version of application m and application n and restore data.
  • step S902 may include:
  • the first information may further include application program versions and device identifiers of multiple second devices.
  • the device A, the device B, and the device C all include the same application m, and the device C has the highest version of the application m, then the device C is the second target device, and the application m is The second target application, therefore, the first device can download the application package of the application m of the device C, and complete the installation of the application package, data recovery, and the like.
  • the method before the sending the second request to the second device corresponding to the device identifier, the method further includes:
  • the first device determines in the third information that the selected target application corresponds to the device C application m.
  • the selected target application is determined based on the third information, and the first device sends a second request to the corresponding second device, so that the second device sends the corresponding
  • the application package of the target application is sent to the first device, so that the first device can install the target application and perform data recovery.
  • the first device sends a second request to the device C, so that the device C sends the application package of the application m to the first device for the The first device installs the application program m with the highest version and restores the corresponding data.
  • FIG. 8(e) is a schematic diagram showing an embodiment of the application program in the migration device A in the first device in the data transmission method of the present application, wherein the application program A1, the application program A2 and the application program A3 in the device A are Optionally migrate to the first device, i.e. the application package of application A1, the application package of application A2 and the application package of application A3 in the device A are transferred to the first device, This enables the first device to complete program cloning.
  • FIG. 8(f) is a schematic diagram showing an embodiment of migrating applications in device A, device B, and device C in the first device in the data transmission method of the present application, wherein application A1, application A2 and application A2 in device A Application A3, application B1 and application B2 in device B, and application C1 and C2 in device C are selectively migrated to the first device so that the first device can complete program cloning.
  • the first device includes device type information
  • the first information further includes compatibility information between the application program and the device type and the version of the application program.
  • the fourth information may include a target application of the second device that is compatible with the first device, wherein, relative to the same application in the second device, the target application The version of the program is the highest, so that the first device can install the target application program with the highest compatible version and restore the corresponding data.
  • the first information is updated by the second device based on changes in the application package.
  • the corresponding application program identifier is correspondingly added or deleted in the first information, so as to realize the communication between the first device and the second device. information synchronization between.
  • the corresponding first device is deleted from the first information. All application IDs and device IDs for the second device.
  • the application identifier and device identifier of the corresponding second device are added to the first information.
  • the application program identifier or the device identifier of the second device is deleted.
  • the distributed database of the first device stores the device identification and application identification of device A, the device identification and application identification of device B, and the device identification and application identification of device C. Once the device is disconnected, the device identifier of the device A and all application identifiers in the distributed database of the first device are deleted.
  • FIG. 9 is a schematic structural diagram of an embodiment of a data transmission apparatus of the present application. As shown in FIG. 9 , the above-mentioned data transmission apparatus 100 establishes a connection with at least one second device.
  • the apparatus 100 may include: a first request sending module 10, a receiving The module 20 and the second request sending module 30; it should be understood that the apparatus 100 may correspond to the electronic device 900 shown in FIG. 12 .
  • the first request sending module 10 is configured to send a first request to the second device, so that the second device sends first information based on the first request, wherein the first information includes all the application identification and device identification of the second device;
  • the receiving module 20 is configured to receive the first information sent by the second device
  • the second request sending module 30 is configured to, based on the first information, send a second request to the second device corresponding to the device identifier, so that the second device sends the second request based on the second request.
  • the application program identifies the corresponding application program package to the apparatus 100, so as to complete the data transmission between the apparatus and the second device.
  • the first request includes device type information of the apparatus
  • the second device includes compatibility information between an application program and a device type
  • the first information is based on the device type information of the apparatus.
  • the device type and the compatibility information are determined.
  • the apparatus 100 includes device type information, the first information further includes compatibility information between the application program and the device type, and the apparatus 100 further includes:
  • the second information determining module 41 is configured to determine, based on the compatibility information and the device type information, the application program of the second device in the first information, and determine and display the second information.
  • the first information further includes the version of the application
  • the apparatus 100 further includes:
  • the third information determining module 51 is configured to determine, based on the version, the same application program of the plurality of second devices in the first information, and determine and display the third information.
  • the apparatus 100 further includes:
  • the first selection module 42 is configured to determine the selected target application in the second information in response to the user's selection operation.
  • the apparatus 100 further includes:
  • the second selection module 52 is configured to determine the selected target application program in the third information in response to the user's selection operation.
  • the first information is updated by the second device based on changes in the application package.
  • the second device before the second device sends the application package corresponding to the application identifier to the apparatus 100, the second device backs up the application package.
  • the data transmission apparatus provided by the embodiments shown in FIG. 9 to FIG. 11 can be used to implement the technical solutions of the method embodiments shown in FIG. 1 or FIG. 2 of the present application, and the implementation principles and technical effects can be further referred to the related descriptions in the method embodiments.
  • the data transmission apparatus 100 may correspond to the electronic device 900 shown in FIG. 12 .
  • the functions of the second information determination module 41, the first selection module 42, the third information determination module 51 and the second selection module 52 may be implemented by the processor 910 in the electronic device 900 shown in FIG. 12, and the first request to send
  • the functions of the module 10 , the receiving module 20 and the second request sending module 30 may be implemented by the transceiver 920 in the electronic device 900 shown in FIG. 12 .
  • the data transmission apparatus 100 provided by the embodiments shown in FIG. 9 to FIG. 11 can be used to implement the technical solutions of the method embodiments shown in FIG. 1 to FIG. 3 of the present application.
  • the data transmission apparatus 100 provided by the embodiments shown in FIG. 9 to FIG. 11 can be used to implement the technical solutions of the method embodiments shown in FIG. 1 to FIG. 3 of the present application.
  • each module of the data transmission apparatus shown in FIG. 9 to FIG. 11 above is only a division of logical functions, and may be fully or partially integrated into a physical entity in actual implementation, or may be physically separated.
  • these modules can all be implemented in the form of software calling through processing elements; they can also all be implemented in hardware; some modules can also be implemented in the form of software calling through processing elements, and some modules can be implemented in hardware.
  • the detection module may be a separately established processing element, or may be integrated in a certain chip of the electronic device.
  • the implementation of other modules is similar.
  • all or part of these modules can be integrated together, and can also be implemented independently.
  • each step of the above-mentioned method or each of the above-mentioned modules can be completed by an integrated logic circuit of hardware in the processor element or an instruction in the form of software.
  • the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more specific integrated circuits (Application Specific Integrated Circuit; hereinafter referred to as: ASIC), or, one or more microprocessors Digital Singnal Processor (hereinafter referred to as: DSP), or, one or more Field Programmable Gate Array (Field Programmable Gate Array; hereinafter referred to as: FPGA), etc.
  • ASIC Application Specific Integrated Circuit
  • DSP Digital Singnal Processor
  • FPGA Field Programmable Gate Array
  • these modules can be integrated together and implemented in the form of a system-on-a-chip (System-On-a-Chip; hereinafter referred to as: SOC).
  • FIG. 12 is a schematic structural diagram of an embodiment of an electronic device of the present application. As shown in FIG. 12 , the above-mentioned electronic device may include: a display screen; one or more processors; a memory; multiple application programs; and one or more computer programs .
  • the above-mentioned display screen may include a display screen of a vehicle-mounted computer (Mobile Data Center); the above-mentioned electronic equipment may be a mobile terminal (mobile phone), a smart screen, an unmanned aerial vehicle, an intelligent connected vehicle (Intelligent Connected Vehicle; hereinafter referred to as : ICV), intelligent (car) car (smart/intelligent car) or in-vehicle equipment and other equipment.
  • ICV Intelligent Connected Vehicle
  • car smart/intelligent car
  • the above-mentioned one or more computer programs are stored in the above-mentioned memory, and the above-mentioned one or more computer programs include instructions that, when the above-mentioned instructions are executed by the above-mentioned equipment, cause the above-mentioned equipment to perform the following steps:
  • the second device sends first information based on the first request, wherein the first information includes an application identifier and a device identifier of the second device;
  • a second request is sent to the second device corresponding to the device identifier, so that the second device sends the application package corresponding to the application identifier to the second device based on the second request. the electronic device to complete data transmission between the electronic device and the second device.
  • the first request includes device type information of the electronic device
  • the second device includes compatibility information between an application and a device type
  • the first information is based on the electronic device The device type of the device and the compatibility information are determined.
  • the electronic device includes device type information
  • the first information further includes compatibility information between the application program and the device type
  • the electronic device when the instruction is executed by the electronic device, the After the electronic device performs the step of receiving the first information sent by the second device, the electronic device further performs the steps:
  • the application program of the second device in the first information is determined, and the second information is determined and displayed.
  • the first information further includes a version of an application program, and when the instruction is executed by the electronic device, when the electronic device executes the receiving message sent by the second device After the step of the first message, the electronic device further performs the steps:
  • the same application program of a plurality of the second devices in the first information is determined to determine and display the third information.
  • the electronic device when the instruction is executed by the electronic device, before the electronic device executes the step of sending a second request to the second device corresponding to the device identifier, the The electronic device also performs the steps:
  • the selected target application program is determined in the second information.
  • the electronic device when the instruction is executed by the electronic device, before the electronic device executes the step of sending a second request to the second device corresponding to the device identifier, the The electronic device also performs the steps:
  • the selected target application program is determined in the third information.
  • the first information is updated by the second device based on changes in the application package.
  • the second device before the second device sends the application package corresponding to the application identifier to the electronic device, the second device backs up the application package.
  • the electronic device when the instruction is executed by the electronic device, the electronic device further executes:
  • An application package corresponding to the application identifier sent by the second device is received.
  • the first information further includes compatibility information between the application program and the device type, and when the instruction is executed by the electronic device, the electronic device is made to execute the The first information, sending a first request to the second device, includes:
  • compatibility information determine whether the application program of the second device is compatible with the device type of the electronic device
  • the application program of the second device If the application program of the second device is compatible with the device type of the electronic device, send a first request to the second device, wherein the first request is used to request the second device to send a request to the electronic device
  • An application program that is compatible with the device type of the device identifies the corresponding application program package to the electronic device.
  • the second device includes compatibility information between an application program and a device type, and when the instruction is executed by the electronic device, it causes the electronic device to execute the receiving by the electronic device.
  • the first information sent by the second device includes:
  • First information sent by the second device is received, wherein the first information includes an application identifier compatible with a device type of the electronic device.
  • the first information includes a plurality of application program identifiers and device identifiers of the second devices, and when the instruction is executed by the electronic device, the electronic device is caused to execute the Based on the first information, sending a first request to the second device includes:
  • the program identifies the corresponding application package to the electronic device.
  • the first information further includes a plurality of application program versions and device identifiers of the second devices, and when the instruction is executed by the electronic device, the electronic device is made to execute the The sending, based on the first information, a first request to the second device includes:
  • the same application version of a plurality of the second devices is compared, and a second target device identification and a second target application identification corresponding to the application version are determined, and the second target device identification corresponding to the second target device identification.
  • the device has the highest version of the app;
  • the corresponding application program is packaged to the electronic device.
  • the electronic device when the instruction is executed by the electronic device, the electronic device is caused to further execute:
  • the application identifier of the second device is deleted.
  • the electronic device shown in FIG. 12 may be a terminal device or a circuit device built in the above-mentioned terminal device.
  • the device can be used to execute the functions/steps in the method provided by the embodiment shown in FIG. 1 or FIG. 2 of the present application.
  • the electronic device 900 includes a processor 910 and a transceiver 920 .
  • the electronic device 900 may further include a memory 930 .
  • the processor 910, the transceiver 920 and the memory 930 can communicate with each other through an internal connection path to transmit control and/or data signals. Invoke and run the computer program.
  • the above-mentioned memory 930 can be a read-only memory (read-only memory, ROM), other types of static storage devices that can store static information and instructions, random access memory (random access memory, RAM), or other types of static storage devices that can store information and instructions.
  • types of dynamic storage devices which can also be electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM), or other optical disk storage, optical disks storage (including compact discs, laser discs, optical discs, digital versatile discs, blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or may also be capable of carrying or storing desired program code in the form of instructions or data structures and any other medium that can be accessed by a computer, etc.
  • EEPROM electrically erasable programmable read-only memory
  • CD-ROM compact disc read-only memory
  • optical disks storage including compact discs, laser discs, optical discs, digital versatile discs, blu-ray discs, etc.
  • the electronic device 900 may further include an antenna 940 for sending out the wireless signal output by the transceiver 920 .
  • the above-mentioned processor 910 and the memory 930 can be combined into a processing device, and more commonly, they are independent components, and the processor 910 is used to execute the program codes stored in the memory 930 to realize the above-mentioned functions.
  • the memory 930 may also be integrated in the processor 910 , or be independent of the processor 910 .
  • the electronic device 900 may further include one or more of an input unit 960, a display unit 970, an audio circuit 980, a camera 990, a sensor 901, etc., the audio The circuit may also include a speaker 982, a microphone 984, and the like.
  • the display unit 970 may include a display screen.
  • the above electronic device 900 may further include a power supply 950 for providing power to various devices or circuits in the terminal device.
  • the electronic device 900 shown in FIG. 12 can implement each process of the method provided by the embodiment shown in FIG. 1 or FIG. 2 of the present application.
  • the operations and/or functions of each module in the electronic device 900 are respectively to implement the corresponding processes in the foregoing method embodiments.
  • the detailed description is appropriately omitted here.
  • processor 910 in the electronic device 900 shown in FIG. 12 may be a system-on-chip SOC, and the processor 910 may include a central processing unit (Central Processing Unit; hereinafter referred to as: CPU), and may further include other types of A processor, for example: a graphics processor (Graphics Processing Unit; hereinafter referred to as: GPU), etc.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • each part of the processors or processing units inside the processor 910 can cooperate to implement the previous method process, and the corresponding software programs of each part of the processors or processing units can be stored in the memory 930 .
  • the present application also provides an electronic device, the device includes a storage medium and a central processing unit, the storage medium may be a non-volatile storage medium, and a computer-executable program is stored in the storage medium, and the central processing unit is connected to the central processing unit.
  • the non-volatile storage medium is connected, and the computer-executable program is executed to implement the method provided by the embodiment shown in FIG. 1 or FIG. 2 of the present application.
  • the involved processors may include, for example, a CPU, a DSP, a microcontroller or a digital signal processor, and may also include a GPU, an embedded neural-network process unit (Neural-network Process Units; hereinafter referred to as: NPU) and Image signal processor (Image Signal Processing; hereinafter referred to as: ISP), the processor may also include necessary hardware accelerators or logic processing hardware circuits, such as ASIC, or one or more integrated circuits for controlling the execution of the program of the technical solution of the present application circuit, etc. Furthermore, the processor may have the function of operating one or more software programs, which may be stored in a storage medium.
  • the embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is run on the computer, the computer executes the program provided by the embodiment shown in FIG. 1 or FIG. 2 of the present application. method.
  • the embodiments of the present application further provide a computer program product, the computer program product includes a computer program, which, when running on a computer, enables the computer to execute the method provided by the embodiment shown in FIG. 1 or FIG. 2 of the present application.
  • “at least one” refers to one or more, and “multiple” refers to two or more.
  • “And/or”, which describes the association relationship of the associated objects means that there can be three kinds of relationships, for example, A and/or B, which can indicate the existence of A alone, the existence of A and B at the same time, and the existence of B alone. where A and B can be singular or plural.
  • the character “/” generally indicates that the associated objects are an “or” relationship.
  • “At least one of the following” and similar expressions refer to any combination of these items, including any combination of single or plural items.
  • At least one of a, b, and c may represent: a, b, c, a and b, a and c, b and c or a and b and c, where a, b, c may be single, or Can be multiple.
  • any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution.
  • the computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, Read-Only Memory (Read-Only Memory; hereinafter referred to as: ROM), Random Access Memory (Random Access Memory; hereinafter referred to as: RAM), magnetic disk or optical disk and other various A medium on which program code can be stored.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • magnetic disk or optical disk and other various A medium on which program code can be stored.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

Provided are a data transmission method and an electronic device, the method being applied to a first device, wherein the first device establishes a connection with at least one second device. The method comprises: receiving first information sent by a second device, the first information comprising an application identifier of the second device; on the basis of the first information, sending a first request to the second device, the first request being used for requesting the second device to send, to the first device, an application package corresponding to the application identifier; and receiving the application package, corresponding to the application identifier, that is sent by the second device.

Description

数据传输方法和电子设备Data transmission method and electronic device
本申请要求于2020年10月21日提交中国专利局、申请号为202011131059.6申请名称为“数据传输方法和电子设备”以及2021年09月08日提交中国专利局、申请号为202111047918.8申请名称为“数据传输方法和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application is required to be submitted to the China Patent Office on October 21, 2020, the application number is 202011131059.6, and the application name is "Data Transmission Method and Electronic Equipment" and it is submitted to the China Patent Office on September 8, 2021. The application number is 202111047918.8 The priority of the Chinese patent application for "Data Transmission Method and Electronic Device", the entire contents of which are incorporated herein by reference.
技术领域technical field
本申请涉及智能终端技术领域,特别涉及一种数据传输方法和电子设备。The present application relates to the technical field of intelligent terminals, and in particular, to a data transmission method and electronic device.
背景技术Background technique
随着科技的迅速发展,智能终端的种类越来越多。例如,根据设备类型的分类,所述智能终端可以包括:手机、平板、电脑、车载设备、智能家居、健身设备、电视、大屏幕等。根据不同的应用场景,不同的所述智能终端可以应用于办公、家居、运动、出行、教育等领域,不同的所述智能终端可以分别存储数据,因此,为了提供良好的使用体验,不同的所述智能终端之间需要进行数据传输,以完成信息同步。With the rapid development of technology, there are more and more types of smart terminals. For example, according to the classification of device types, the smart terminal may include: mobile phone, tablet, computer, vehicle-mounted device, smart home, fitness device, TV, large screen, and the like. According to different application scenarios, different smart terminals can be applied to fields such as office, home, sports, travel, education, etc., and different smart terminals can store data respectively. Therefore, in order to provide a good use experience, different smart terminals Data transmission needs to be performed between the above-mentioned intelligent terminals to complete information synchronization.
例如,当用户更换新设备或添置新设备时,用户需要将旧设备中的数据(例如应用程序包、图片或文件等)传输至新设备中,以实现新设备与旧设备之间的信息同步。For example, when a user replaces a new device or adds a new device, the user needs to transfer data (such as application packages, pictures or files, etc.) from the old device to the new device to synchronize information between the new device and the old device .
现有的数据传输方法一是借助第三方服务端(例如云端等),旧设备通过登录云端账号,将数据备份并传输至云端,然后由新设备登录同一云端账号,将该数据下载并安装应用程序和恢复数据,以完成新设备与旧设备之间的信息同步。该现有的数据传输方法一的缺点是,新设备与旧设备之间的数据传输需要借助第三方服务端,并且登录同一服务端账号,才能完成信息同步,而且云端备份存在速度较慢,耗时长,耗费大量的流量等问题。若新设备与旧设备分别登录了不同的第三方服务端,或登录了不同的服务端账号,或并未登录第三服务端时,所述新设备与旧设备之间就无法完成数据的传输,从而无法实现信息同步。One of the existing data transmission methods is to use a third-party server (such as the cloud, etc.), the old device logs in to the cloud account, backs up the data and transfers it to the cloud, and then the new device logs in to the same cloud account, downloads the data and installs the application. program and restore data to complete the synchronization of information between the new device and the old device. The disadvantage of the existing data transmission method 1 is that the data transmission between the new device and the old device needs to use a third-party server and log in to the same server account to complete the information synchronization, and the cloud backup has a slow speed and consumes a lot of energy. Time, consume a lot of traffic and other issues. If the new device and the old device log in to different third-party servers, or log in to different server accounts, or do not log in to the third server, the data transfer between the new device and the old device cannot be completed. , so that information synchronization cannot be achieved.
现有的数据传输方法二是新设备与旧设备之间建立一对一的连接,由用户操作旧设备,选取旧设备中需要传输的数据,使旧设备将选取的数据传输至新设备,由新设备安装应用程序和恢复数据,从而完成新设备与旧设备之间的信息同步。该现有的数据传输方法二的缺点是,新设备与旧设备之间只能完成一对一的数据传输,而且用户需要对旧设备进行操作,才能够选取需要传输的数据并传输至新设备,若旧设备的某些硬件(如按键或屏幕)损坏,则会导致用户无法对旧设备进行操作,以使数据无法传输至新设备,从而无法实现信息同步。The second existing data transmission method is to establish a one-to-one connection between the new device and the old device. The user operates the old device and selects the data to be transmitted in the old device, so that the old device transmits the selected data to the new device. The new device installs applications and restores data, thus completing the synchronization of information between the new device and the old device. The disadvantage of the existing data transmission method 2 is that only one-to-one data transmission can be completed between the new device and the old device, and the user needs to operate the old device to select the data to be transmitted and transmit it to the new device. , If some hardware (such as buttons or screen) of the old device is damaged, it will cause the user to be unable to operate the old device, so that the data cannot be transferred to the new device, so that information synchronization cannot be achieved.
发明内容SUMMARY OF THE INVENTION
本申请提供了一种数据传输方法和电子设备,所述电子设备能够与至少一个第二设备之间实现数据传输,且无需借助第三方服务端(如云端等),也无需用户对所述第二设备进行操作,以提供良好的使用体验。The present application provides a data transmission method and electronic device, the electronic device can realize data transmission with at least one second device without resorting to a third-party server (such as the cloud, etc.) The second device is operated to provide a good user experience.
第一方面,本申请提供了一种数据传输方法,应用于第一设备,其中,所述第一设备与至少一个第二设备建立连接,所述方法包括:In a first aspect, the present application provides a data transmission method, which is applied to a first device, wherein the first device establishes a connection with at least one second device, and the method includes:
向所述第二设备发送第一请求,使得所述第二设备基于所述第一请求发送第一信息,其中,所述第一信息包括所述第二设备的应用程序标识和设备标识;sending a first request to the second device, so that the second device sends first information based on the first request, wherein the first information includes an application identifier and a device identifier of the second device;
接收由所述第二设备发送的第一信息;receiving first information sent by the second device;
基于所述第一信息,向与所述设备标识对应的第二设备发送第二请求,使得所述第二设备基于所述第二请求,发送与所述应用程序标识对应的应用程序包至所述第一设备,以完成所述第一设备与所述第二设备之间的数据传输。Based on the first information, a second request is sent to the second device corresponding to the device identifier, so that the second device sends the application package corresponding to the application identifier to the second device based on the second request. the first device to complete data transmission between the first device and the second device.
其中一种可能的实现方式中,所述第一请求包括所述第一设备的设备类型信息,所述第二设备包括应用程序与设备类型之间的兼容信息,所述第一信息基于所述第一设备的设备类型和所述兼容信息确定。In one possible implementation manner, the first request includes device type information of the first device, the second device includes compatibility information between an application and a device type, and the first information is based on the The device type of the first device and the compatibility information are determined.
其中一种可能的实现方式中,所述第一设备包括设备类型信息,所述第一信息还包括应用程序与设备类型之间的兼容信息,在所述接收由所述第二设备发送的第一信息之后,所述方法进一步包括:In one possible implementation manner, the first device includes device type information, and the first information further includes compatibility information between the application program and the device type. After a message, the method further includes:
基于所述兼容信息和所述设备类型信息,对所述第一信息中所述第二设备的应用程序进行判断,确定并显示第二信息。Based on the compatibility information and the device type information, the application program of the second device in the first information is determined, and the second information is determined and displayed.
其中一种可能的实现方式中,所述第一信息还包括应用程序的版本,在所述接收由所述第二设备发送的第一信息之后,所述方法进一步包括:In one possible implementation manner, the first information further includes a version of the application, and after the receiving the first information sent by the second device, the method further includes:
基于所述版本对所述第一信息中多个所述第二设备的同一应用程序进行判断,确定并显示第三信息。Based on the version, the same application program of the plurality of second devices in the first information is determined, and the third information is determined and displayed.
其中一种可能的实现方式中,在所述向与所述设备标识对应的第二设备发送第二请求之前,所述方法还包括:In one possible implementation manner, before the sending the second request to the second device corresponding to the device identifier, the method further includes:
响应用户选取操作,在所述第二信息中确定所选取的目标应用程序。In response to the user selection operation, the selected target application program is determined in the second information.
其中一种可能的实现方式中,在所述向与所述设备标识对应的第二设备发送第二请求之前,所述方法还包括:In one possible implementation manner, before the sending the second request to the second device corresponding to the device identifier, the method further includes:
响应用户选取操作,在所述第三信息中确定所选取的目标应用程序。In response to the user selection operation, the selected target application program is determined in the third information.
其中一种可能的实现方式中,所述第一信息由所述第二设备基于应用程序包的变化而更新。In one possible implementation manner, the first information is updated by the second device based on changes in the application package.
第二方面,本申请提供了一种装置,其中,所述装置与至少一个第二设备建立连接,所述装置包括:In a second aspect, the present application provides an apparatus, wherein the apparatus establishes a connection with at least one second device, and the apparatus includes:
第一请求发送模块,用于向所述第二设备发送第一请求,使得所述第二设备基于所述第一请求发送第一信息,其中,所述第一信息包括所述第二设备的应用程序标识和设备标识;A first request sending module, configured to send a first request to the second device, so that the second device sends first information based on the first request, wherein the first information includes the information of the second device. application identification and device identification;
接收模块,用于接收由所述第二设备发送的第一信息;a receiving module, configured to receive the first information sent by the second device;
第二请求发送模块,用于基于所述第一信息,向与所述设备标识对应的第二设备发送第二请求,使得所述第二设备基于所述第二请求,发送与所述应用程序标识对应 的应用程序包至所述装置,以完成所述装置与所述第二设备之间的数据传输。A second request sending module, configured to send a second request to a second device corresponding to the device identifier based on the first information, so that the second device sends a request to the application based on the second request A corresponding application package is identified to the apparatus to complete data transmission between the apparatus and the second device.
其中一种可能的实现方式中,所述第一请求包括所述装置的设备类型信息,所述第二设备包括应用程序与设备类型之间的兼容信息,所述第一信息基于所述装置的设备类型和所述兼容信息确定。In one possible implementation manner, the first request includes device type information of the apparatus, the second device includes compatibility information between an application program and a device type, and the first information is based on the device type information of the apparatus. The device type and the compatibility information are determined.
其中一种可能的实现方式中,所述装置包括设备类型信息,所述第一信息还包括应用程序与设备类型之间的兼容信息,所述装置进一步包括:In one possible implementation manner, the apparatus includes device type information, the first information further includes compatibility information between the application program and the device type, and the apparatus further includes:
第二信息确定模块,用于基于所述兼容信息和所述设备类型信息,对所述第一信息中所述第二设备的应用程序进行判断,确定并显示第二信息。The second information determination module is configured to determine, based on the compatibility information and the device type information, the application program of the second device in the first information, and determine and display the second information.
其中一种可能的实现方式中,所述第一信息还包括应用程序的版本,所述装置进一步包括:In one possible implementation manner, the first information further includes the version of the application, and the apparatus further includes:
第三信息确定模块,用于基于所述版本对所述第一信息中多个所述第二设备的同一应用程序进行判断,确定并显示第三信息。A third information determination module, configured to determine, based on the version, the same application program of a plurality of the second devices in the first information, and determine and display the third information.
其中一种可能的实现方式中,所述装置还包括:In one possible implementation manner, the device further includes:
第一选取模块,用于响应用户选取操作,在所述第二信息中确定所选取的目标应用程序。The first selection module is used for determining the selected target application program in the second information in response to the user's selection operation.
其中一种可能的实现方式中,所述装置还包括:In one possible implementation manner, the device further includes:
第二选取模块,用于响应用户选取操作,在所述第三信息中确定所选取的目标应用程序。The second selection module is used for determining the selected target application program in the third information in response to the user's selection operation.
其中一种可能的实现方式中,所述第一信息由所述第二设备基于应用程序包的变化而更新。In one possible implementation manner, the first information is updated by the second device based on changes in the application package.
第三方面,本申请提供了一种电子设备,所述电子设备与至少一个第二设备建立连接,其特征在于,所述电子设备包括:In a third aspect, the present application provides an electronic device that establishes a connection with at least one second device, wherein the electronic device includes:
显示屏;一个或多个处理器;存储器;多个应用程序;以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述电子设备执行时,使得所述电子设备执行以下步骤:a display screen; one or more processors; a memory; a plurality of application programs; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs Include instructions that, when executed by the electronic device, cause the electronic device to perform the following steps:
向所述第二设备发送第一请求,使得所述第二设备基于所述第一请求发送第一信息,其中,所述第一信息包括所述第二设备的应用程序标识和设备标识;sending a first request to the second device, so that the second device sends first information based on the first request, wherein the first information includes an application identifier and a device identifier of the second device;
接收由所述第二设备发送的第一信息;receiving first information sent by the second device;
基于所述第一信息,向与所述设备标识对应的第二设备发送第二请求,使得所述第二设备基于所述第二请求,发送与所述应用程序标识对应的应用程序包至所述电子设备,以完成所述电子设备与所述第二设备之间的数据传输。Based on the first information, a second request is sent to the second device corresponding to the device identifier, so that the second device sends the application package corresponding to the application identifier to the second device based on the second request. the electronic device to complete data transmission between the electronic device and the second device.
其中一种可能的实现方式中,所述第一请求包括所述电子设备的设备类型信息,所述第二设备包括应用程序与设备类型之间的兼容信息,所述第一信息基于所述电子设备的设备类型和所述兼容信息确定。In one possible implementation manner, the first request includes device type information of the electronic device, the second device includes compatibility information between an application and a device type, and the first information is based on the electronic device The device type of the device and the compatibility information are determined.
其中一种可能的实现方式中,所述电子设备包括设备类型信息,所述第一信息还包括应用程序与设备类型之间的兼容信息,在所述指令被所述电子设备执行时,在所述电子设备执行所述接收由所述第二设备发送的第一信息的步骤之后,所述电子设备进一步执行步骤:In one possible implementation manner, the electronic device includes device type information, the first information further includes compatibility information between the application program and the device type, and when the instruction is executed by the electronic device, the After the electronic device performs the step of receiving the first information sent by the second device, the electronic device further performs the steps:
基于所述兼容信息和所述设备类型信息,对所述第一信息中所述第二设备的应用 程序进行判断,确定并显示第二信息。Based on the compatibility information and the device type information, the application program of the second device in the first information is judged, and the second information is determined and displayed.
其中一种可能的实现方式中,所述第一信息还包括应用程序的版本,在所述指令被所述电子设备执行时,在所述电子设备执行所述接收由所述第二设备发送的第一信息的步骤之后,所述电子设备进一步执行步骤:In one possible implementation manner, the first information further includes a version of an application program, and when the instruction is executed by the electronic device, when the electronic device executes the receiving message sent by the second device After the step of the first message, the electronic device further performs the steps:
基于所述版本对所述第一信息中多个所述第二设备的同一应用程序进行判断,确定并显示第三信息。Based on the version, the same application program of the plurality of second devices in the first information is determined, and the third information is determined and displayed.
其中一种可能的实现方式中,在所述指令被所述电子设备执行时,在所述电子设备执行所述向与所述设备标识对应的第二设备发送第二请求的步骤之前,所述电子设备还执行步骤:In one possible implementation manner, when the instruction is executed by the electronic device, before the electronic device executes the step of sending a second request to the second device corresponding to the device identifier, the The electronic device also performs the steps:
响应用户选取操作,在所述第二信息中确定所选取的目标应用程序。In response to the user selection operation, the selected target application program is determined in the second information.
其中一种可能的实现方式中,在所述指令被所述电子设备执行时,在所述电子设备执行所述向与所述设备标识对应的第二设备发送第二请求的步骤之前,所述电子设备还执行步骤:In one possible implementation manner, when the instruction is executed by the electronic device, before the electronic device executes the step of sending a second request to the second device corresponding to the device identifier, the The electronic device also performs the steps:
响应用户选取操作,在所述第三信息中确定所选取的目标应用程序。In response to the user selection operation, the selected target application program is determined in the third information.
其中一种可能的实现方式中,所述第一信息由所述第二设备基于应用程序包的变化而更新。In one possible implementation manner, the first information is updated by the second device based on changes in the application package.
第四方面,本申请提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行如第一方面所述的方法。In a fourth aspect, the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, which, when executed on a computer, causes the computer to execute the method according to the first aspect.
第五方面,本申请提供一种计算机程序,当所述计算机程序被计算机执行时,用于执行第一方面所述的方法。In a fifth aspect, the present application provides a computer program for executing the method of the first aspect when the computer program is executed by a computer.
在一种可能的设计中,第五方面中的程序可以全部或者部分存储在与处理器封装在一起的存储介质上,也可以部分或者全部存储在不与处理器封装在一起的存储器上。In a possible design, the program in the fifth aspect may be stored in whole or in part on a storage medium packaged with the processor, and may also be stored in part or in part in a memory not packaged with the processor.
附图说明Description of drawings
图P1为现有技术的数据传输方法一的示意图;Figure P1 is a schematic diagram of a data transmission method 1 in the prior art;
图P2为现有技术的数据传输方法二的示意图;Figure P2 is a schematic diagram of a second data transmission method in the prior art;
图1为本申请数据传输方法一个实施例的流程图;1 is a flowchart of an embodiment of a data transmission method of the present application;
图2为本申请数据传输方法另一个实施例的方法流程图;Fig. 2 is the method flow chart of another embodiment of the data transmission method of the present application;
图3为本申请数据传输方法一个实施例中分布式数据库的结构示意图;3 is a schematic structural diagram of a distributed database in an embodiment of the data transmission method of the application;
图4为本申请数据传输方法一个实施例中第一设备与第二设备构成组网系统的结构示意图;4 is a schematic structural diagram of a first device and a second device forming a networking system in an embodiment of the data transmission method of the present application;
图5为本申请数据传输方法一个实施例中第一设备与多个第二设备构成组网系统的结构示意图;5 is a schematic structural diagram of a first device and a plurality of second devices forming a networking system in an embodiment of the data transmission method of the present application;
图6为本申请数据传输方法另一个实施例的流程图;6 is a flowchart of another embodiment of the data transmission method of the present application;
图7为本申请数据传输方法再一个实施例的流程图;FIG. 7 is a flowchart of another embodiment of the data transmission method of the present application;
图8(a)为本申请数据传输方法中第一设备中显示第二设备的应用程序一个实施例的示意图;FIG. 8(a) is a schematic diagram of an embodiment of displaying an application program of the second device in the first device in the data transmission method of the present application;
图8(b)为本申请数据传输方法中第一设备中显示第二设备的应用程序另一个实施例的示意图;FIG. 8(b) is a schematic diagram of another embodiment of displaying an application program of the second device in the first device in the data transmission method of the present application;
图8(c)为本申请数据传输方法中第一设备中显示第二设备的应用程序再一个实施例的示意图;8(c) is a schematic diagram of another embodiment of displaying an application program of the second device in the first device in the data transmission method of the present application;
图8(d)为本申请数据传输方法中第一设备中显示第二设备的应用程序再一个实施例的示意图;FIG. 8(d) is a schematic diagram of another embodiment of displaying an application program of the second device in the first device in the data transmission method of the present application;
图8(e)为本申请数据传输方法中第一设备中显示迁移设备A中的应用程序一个实施例的示意图;8(e) is a schematic diagram of an embodiment of an application program in the migration device A displayed in the first device in the data transmission method of the application;
图8(f)为本申请数据传输方法中第一设备中显示迁移设备A、设备B和设备C中的应用程序一个实施例的示意图;Fig. 8(f) is a schematic diagram showing an embodiment of the application program in the migration device A, the device B and the device C in the first device in the data transmission method of the application;
图9为本申请数据传输装置一个实施例的结构示意图;FIG. 9 is a schematic structural diagram of an embodiment of a data transmission device of the present application;
图10为本申请数据传输装置另一个实施例的结构示意图;10 is a schematic structural diagram of another embodiment of the data transmission device of the present application;
图11为本申请数据传输装置再一个实施例的结构示意图;FIG. 11 is a schematic structural diagram of still another embodiment of the data transmission device of the present application;
图12为本申请电子设备一个实施例的结构示意图。FIG. 12 is a schematic structural diagram of an embodiment of the electronic device of the present application.
具体实施方式Detailed ways
本申请的实施方式部分使用的术语仅用于对本申请的具体实施例进行解释,而非旨在限定本申请。The terms used in the embodiments of the present application are only used to explain specific embodiments of the present application, and are not intended to limit the present application.
如图P1所示,现有的数据传输方法一是借助第三方服务端(例如云端等),旧设备通过登录云端账号,将数据备份并传输至云端,然后由新设备登录同一云端账号,将该数据下载并安装应用程序和恢复数据,以完成新设备与旧设备之间的信息同步。该现有的数据传输方法一的缺点是,新设备与旧设备之间的数据传输需要借助第三方服务端,并且登录同一服务端账号,才能完成信息同步,而且云端备份存在速度较慢,耗时长,耗费大量的流量等问题。若新设备与旧设备分别登录了不同的第三方服务端,或登录了不同的服务端账号,或并未登录第三服务端时,所述新设备与旧设备之间就无法完成数据的传输,从而无法实现信息同步。As shown in Figure P1, one of the existing data transmission methods is to use a third-party server (such as the cloud, etc.), the old device logs in to the cloud account, backs up the data and transmits it to the cloud, and then the new device logs in to the same cloud account and transfers the data to the cloud. This data downloads and installs apps and restores data to complete the synchronization of information between the new and old devices. The disadvantage of the existing data transmission method 1 is that the data transmission between the new device and the old device needs to use a third-party server and log in to the same server account to complete the information synchronization, and the cloud backup has a slow speed and consumes a lot of energy. Time, consume a lot of traffic and other issues. If the new device and the old device log in to different third-party servers, or log in to different server accounts, or do not log in to the third server, the data transfer between the new device and the old device cannot be completed. , so that information synchronization cannot be achieved.
如图P2所示,现有的数据传输方法二是新设备与旧设备之间建立一对一的连接,由用户操作旧设备,选取旧设备中需要传输的数据,使旧设备将选取的数据传输至新设备,由新设备安装应用程序和恢复数据,从而完成新设备与旧设备之间的信息同步。该现有的数据传输方法二的缺点是,新设备与旧设备之间只能完成一对一的数据传输,而且用户需要对旧设备进行操作,才能够选取需要传输的数据并传输至新设备,若旧设备的某些硬件(如按键或屏幕)损坏,则会导致用户无法对旧设备进行操作,以使数据无法传输至新设备,从而无法实现信息同步。As shown in Figure P2, the existing data transmission method 2 is to establish a one-to-one connection between the new device and the old device, and the user operates the old device to select the data to be transmitted in the old device, so that the old device will transfer the selected data. Transfer to a new device, install applications and restore data from the new device, thereby completing the synchronization of information between the new device and the old device. The disadvantage of the existing data transmission method 2 is that only one-to-one data transmission can be completed between the new device and the old device, and the user needs to operate the old device to select the data to be transmitted and transmit it to the new device. , If some hardware (such as buttons or screen) of the old device is damaged, it will cause the user to be unable to operate the old device, so that the data cannot be transferred to the new device, so that information synchronization cannot be achieved.
为此,本申请提出一种数据传输方法和电子设备,所述电子设备能够与至少一个第二设备之间实现数据(如应用程序包、文件或图片等)的传输,且无需借助第三方服务端(如云端等),也无需用户对所述第二设备进行操作,以提供良好的使用体验。To this end, the present application proposes a data transmission method and electronic device, which can realize the transmission of data (such as application package, file or picture, etc.) between the electronic device and at least one second device without resorting to third-party services terminal (such as the cloud, etc.), the user does not need to operate the second device, so as to provide a good use experience.
图1为本申请数据传输方法一个实施例的流程图,如图1所示,上述数据传输方法应用于第一设备,其中,所述第一设备与至少一个第二设备建立连接,所述方法包括:FIG. 1 is a flowchart of an embodiment of a data transmission method of the present application. As shown in FIG. 1 , the above data transmission method is applied to a first device, wherein the first device establishes a connection with at least one second device, and the method include:
S101、向所述第二设备发送第一请求,使得所述第二设备基于所述第一请求发送第一信息,其中,所述第一信息包括所述第二设备的应用程序标识和设备标识。S101. Send a first request to the second device, so that the second device sends first information based on the first request, where the first information includes an application identifier and a device identifier of the second device .
所述第一设备和所述第二设备可以包括移动终端(手机),智慧屏,平板,电脑, 智能家居,健身设备,电视,大屏幕,无人机,智能网联车(Intelligent Connected Vehicle;以下简称:ICV),智能(汽)车(smart/intelligent car)或车载设备等设备。所述第一设备和所述第二设备可以分别为相同的设备或不同的设备,多个所述第二设备之间可以分别为相同的设备或不同的设备。例如,所述第一设备可以为手机,所述第二设备可以分别为手机、平板、电视、大屏幕等。The first device and the second device may include mobile terminals (mobile phones), smart screens, tablets, computers, smart homes, fitness equipment, TVs, large screens, drones, and Intelligent Connected Vehicles; hereinafter referred to as: ICV), intelligent (car) car (smart/intelligent car) or in-vehicle equipment and other equipment. The first device and the second device may be the same device or different devices, respectively, and multiple second devices may be the same device or different devices, respectively. For example, the first device may be a mobile phone, and the second device may be a mobile phone, a tablet, a TV, a large screen, and the like, respectively.
所述第一设备可以分别与多个所述第二设备建立连接,连接方式可以包括wifi、蓝牙、局域网、广播、天线等无线连接或有线连接等。在所述步骤S101中,所述第一设备可以分别向多个所述第二设备发送所述第一请求,所述第一请求可以包括所述第一设备请求与所述第二设备进行数据传输的消息,以实现所述第一设备与多个所述第二设备的一对一或一对多的数据传输。The first device may establish connections with a plurality of the second devices respectively, and the connection modes may include wireless connections such as wifi, bluetooth, local area network, broadcast, antenna, etc., or wired connections. In the step S101, the first device may send the first request to a plurality of the second devices respectively, and the first request may include a request by the first device to perform data communication with the second device A message to be transmitted, so as to realize one-to-one or one-to-many data transmission between the first device and a plurality of the second devices.
值得一提的是,本实施例中,所述方法无需借助第三方服务端(如云端等),即可完成所述第一设备与所述第二设备之间的数据传输。It is worth mentioning that, in this embodiment, the method can complete the data transmission between the first device and the second device without resorting to a third-party server (such as a cloud, etc.).
S102、接收由所述第二设备发送的第一信息。S102. Receive the first information sent by the second device.
在所述步骤S102中,所述第一设备可以分别接收多个所述第二设备发送的所述第一信息。所述应用程序标识可以用于标识所述第二设备的应用程序的名称等,所述设备标识可以用于标识所述第二设备的设备名称或ID等。例如,所述第二设备可以包括设备A、设备B以及设备C,所述设备A可以包括应用程序A1、应用程序A2以及应用程序A3,所述设备B可以包括应用程序B1和应用程序B2,所述设备C可以包括应用程序C1和应用程序C2,所述设备A发送的第一信息包括所述设备A的应用程序A1、应用程序A2以及应用程序A3的应用程序标识和所述设备A的设备标识,所述设备B发送的第一信息可以包括所述设备B的应用程序B1和应用程序B2的应用程序标识和所述设备B的设备标识,所述设备C发送的第一信息可以包括所述设备C的应用程序C1和应用程序C2的应用程序标识和所述设备C的设备标识。In the step S102, the first device may respectively receive the first information sent by a plurality of the second devices. The application identifier may be used to identify the name of the application program of the second device, and the like, and the device identifier may be used to identify the device name or ID of the second device, and the like. For example, the second device may include a device A, a device B, and a device C, the device A may include an application program A1, an application program A2, and an application program A3, and the device B may include an application program B1 and an application program B2, The device C may include an application program C1 and an application program C2, and the first information sent by the device A includes the application program A1, the application program A2 and the application program A3 of the device A. A device identifier, the first information sent by the device B may include the application identifiers of the application B1 and B2 of the device B and the device identifier of the device B, and the first information sent by the device C may include The application program identifiers of the application program C1 and the application program C2 of the device C and the device identifier of the device C.
值得一提的是,所述第一设备可以与多个所述第二设备之间通过无线或蓝牙等方式进行数据传输,所述第一设备可以存储所有的所述第二设备中的所述应用程序标识和所述设备标识,以实现可选择性地进行数据传输。It is worth mentioning that the first device can perform data transmission with a plurality of the second devices through wireless or Bluetooth, and the first device can store the data in all the second devices. The application identification and the device identification to realize the optional data transmission.
S103、基于所述第一信息,向与所述设备标识对应的第二设备发送第二请求,使得所述第二设备基于所述第二请求,发送与所述应用程序标识对应的应用程序包至所述第一设备,以完成所述第一设备与所述第二设备之间的数据传输。S103. Based on the first information, send a second request to a second device corresponding to the device identifier, so that the second device sends an application package corresponding to the application identifier based on the second request to the first device to complete data transmission between the first device and the second device.
在所述步骤S103中,所述第一设备可以分别向多个所述第二设备发送第二请求,使得多个所述第二设备分别发送对应的应用程序包至所述第一设备,以使所述第一设备分别与多个所述第二设备完成数据传输。所述第二请求可以包括所述第一设备请求所述第二设备发送应用程序包至所述第一设备的消息。例如,基于所述设备A的设备标识,所述第一设备向所述设备A发送第二请求,使得所述设备A分别发送应用程序A1、应用程序A2以及应用程序A3的应用程序包至所述第一设备,基于所述设备B的设备标识,所述第一设备向所述设备B发送第二请求,使得所述设备B分别发送应用程序B1和应用程序B2的应用程序包至所述第一设备,基于所述设备C的设备标识,所述第一设备向所述设备C发送第二请求,使得所述设备C分别发送应用程序C1和应用程序C2的应用程序包至所述第一设备,从而实现所述第一设备分别与所述设备A、 所述设备B以及所述设备C之间的数据传输。In the step S103, the first device may send a second request to a plurality of the second devices respectively, so that the plurality of second devices respectively send corresponding application packages to the first device, so as to causing the first device to complete data transmission with a plurality of the second devices respectively. The second request may include a message from the first device requesting the second device to send an application package to the first device. For example, based on the device identification of the device A, the first device sends the second request to the device A, so that the device A sends the application package of the application A1, the application A2 and the application A3 to the device A, respectively. The first device, based on the device ID of the device B, the first device sends a second request to the device B, so that the device B sends the application package of the application B1 and the application B2 to the device B respectively. The first device, based on the device identifier of the device C, the first device sends a second request to the device C, so that the device C sends the application packages of the application C1 and the application C2 to the first a device, so as to realize data transmission between the first device and the device A, the device B, and the device C, respectively.
在本实施例中,如图2所示,第一设备与多个第二设备通过无线、蓝牙等方式进行设备组网,构成组网系统,所述方法可以包括:In this embodiment, as shown in FIG. 2 , a first device and a plurality of second devices perform device networking through wireless, Bluetooth, etc., to form a networking system, and the method may include:
S901、接收由所述第二设备发送的第一信息,其中,所述第一信息包括所述第二设备的应用程序标识;S901. Receive first information sent by the second device, where the first information includes an application identifier of the second device;
S902、基于所述第一信息,向所述第二设备发送第一请求,其中,所述第一请求用于请求所述第二设备发送与所述应用程序标识对应的应用程序包至所述第一设备;S902. Based on the first information, send a first request to the second device, where the first request is used to request the second device to send an application package corresponding to the application identifier to the second device the first device;
S903、接收由所述第二设备发送的与所述应用程序标识对应的应用程序包。S903. Receive an application package corresponding to the application identifier sent by the second device.
优选地,该组网系统内的第一设备与每个第二设备中均存储有分布式数据库,该分布式数据库用于存储该组网系统内各个设备的第一信息,该第一信息中可以包含应用程序标识或设备标识等。例如,在接收到由一个或多个第二设备发送的第一信息后,第一设备将接收到的第二设备的第一信息存储于分布式数据库中。可以理解的是,第二设备的设备标识与应用程序标识存在映射关系,映射关系如设备标识+应用程序标识等,如,设备标识可以用于标识第二设备的名称或ID等,应用程序标识可以用于标识与该设备标识对应的第二设备的应用程序名称或ID等。Preferably, a distributed database is stored in the first device and each second device in the networking system, and the distributed database is used to store the first information of each device in the networking system. Can contain application ID or device ID, etc. For example, after receiving the first information sent by the one or more second devices, the first device stores the received first information of the second devices in a distributed database. It can be understood that there is a mapping relationship between the device identification of the second device and the application identification, such as device identification + application identification, etc., for example, the device identification can be used to identify the name or ID of the second device, and the application identification. It can be used to identify the application name or ID of the second device corresponding to the device identification.
如图3所示,第一设备的分布式数据库中存有多个第二设备的第一信息(如应用程序标识以及设备标识等),例如,该分布式数据库中存有与设备A对应的多个第一信息、与设备B对应的多个第一信息以及与设备C对应的多个第一信息等,其中,与设备A对应的多个第一信息中可以包括设备标识a+应用程序标识a1,设备标识a+应用程序标识a2,与设备B对应的多个第一信息中可以包括设备标识b+应用程序标识b1,设备标识b+应用程序标识b2,与设备C对应的多个第一信息中可以包括设备标识c+应用程序标识c1,设备标识c+应用程序标识c2。可以理解的是,应用程序标识a1、应用程序标识b1、应用程序标识c1可以标识同一应用程序的名称或ID等,应用程序标识a2、应用程序标识b2、应用程序标识c2可以标识同一应用程序的名称或ID等,以表示不同设备的同一应用程序(版本可能不同)。As shown in FIG. 3 , the distributed database of the first device stores multiple pieces of first information (such as application identifiers and device identifiers, etc.) of the second device. For example, the distributed database stores information corresponding to device A. A plurality of first information, a plurality of first information corresponding to device B, and a plurality of first information corresponding to device C, etc., wherein, the plurality of first information corresponding to device A may include device identification a + application identification a1, device identifier a+application identifier a2, the multiple first information corresponding to device B may include device identifier b+application identifier b1, device identifier b+application identifier b2, and the multiple first information corresponding to device C It may include device identification c + application identification c1, device identification c + application identification c2. It can be understood that the application identifier a1, the application identifier b1, and the application identifier c1 can identify the name or ID of the same application, and the application identifier a2, the application identifier b2, and the application identifier c2 can identify the same application. Name or ID, etc. to represent the same app for different devices (versions may vary).
如图4所示,新设备(如第一设备)与旧设备(如第二设备)可以建立连接构成组网系统,以完成新设备与旧设备之间的数据传输。新设备与旧设备中均包含有分布式数据库,新设备的分布式数据库中存有旧设备的一个或多个应用程序标识,旧设备的分布式数据库中存有新设备的一个或多个应用程序标识。进一步地,新设备与旧设备中均包括包管理模块以及应用程序,包管理模块用于接收与发送第一信息以及应用程序的应用程序包等,将接收到的第一信息存储于分布式数据库中,以及完成应用程序的安装与数据恢复等。As shown in FIG. 4 , a new device (eg, a first device) and an old device (eg, a second device) can establish a connection to form a networking system to complete data transmission between the new device and the old device. Both the new device and the old device contain a distributed database. The distributed database of the new device stores one or more application identifiers of the old device, and the distributed database of the old device stores one or more applications of the new device. Program ID. Further, both the new equipment and the old equipment include a package management module and an application program, and the package management module is used to receive and send the first information and the application package of the application program, etc., and store the received first information in a distributed database. , and complete application installation and data recovery.
例如,旧设备的包管理模块从应用程序的字段中读取到应用程序标识,并将该应用程序标识发送到新设备的包管理模块,由新设备的包管理模块接收旧设备的应用程序标识,并存储于新设备的分布式数据库中,新设备的包管理模块还可以根据旧设备的应用程序标识向旧设备发送第一请求,以使旧设备的包管理模块根据该第一请求向新设备发送对应的应用程序包,新设备的包管理模块接收到该应用程序包后,完成应用程序的安装与数据恢复等。For example, the package management module of the old device reads the application ID from the field of the application, and sends the application ID to the package management module of the new device, and the package management module of the new device receives the application ID of the old device , and stored in the distributed database of the new device. The package management module of the new device can also send a first request to the old device according to the application identifier of the old device, so that the package management module of the old device can send the new device to the new device according to the first request. The device sends the corresponding application package, and the package management module of the new device completes the installation of the application and data recovery after receiving the application package.
如图5所示,第一设备与多个第二设备可以建立连接构成组网系统,以完成多个 设备间的数据传输。第一设备,多个第二设备如设备A、设备B以及设备C等,第一设备与多个第二设备中均可以包括分布式数据库、应用程序以及包管理模块。因此,第一设备的分布式数据库中可以存有多个第二设备的应用程序标识以及设备标识。As shown in Figure 5, the first device and multiple second devices can establish connections to form a networking system to complete data transmission between multiple devices. The first device, multiple second devices such as device A, device B, and device C, etc., both the first device and the multiple second devices may include a distributed database, an application program, and a package management module. Therefore, the distributed database of the first device may store multiple application identifiers and device identifiers of the second device.
进一步地,步骤S902可以包括:Further, step S902 may include:
S911、显示多个所述第二设备的应用程序标识以及设备标识;S911, displaying a plurality of application identifiers and device identifiers of the second devices;
S912、响应用户选取操作,从多个所述第二设备的应用程序标识以及设备标识中,选取到第一目标设备标识以及第一目标应用程序标识;S912, in response to the user selection operation, select the first target device identifier and the first target application identifier from the application identifiers and device identifiers of the plurality of second devices;
S913、向与所述第一目标设备标识对应的第二设备发送第一请求,所述第一请求用于请求与所述第一目标设备标识对应的所述第二设备发送与所述第一目标应用程序标识对应的应用程序包至所述第一设备。S913. Send a first request to the second device corresponding to the first target device identifier, where the first request is used to request the second device corresponding to the first target device identifier to send the first request to the second device corresponding to the first target device identifier. The target application program identifies the corresponding application program package to the first device.
也就是说,多个第二设备的应用程序标识以及设备标识可以显示于第一设备的触摸屏幕上,由用户在第一设备的触摸屏幕上进行操作,以选取到待克隆的第一目标设备标识以及第一目标应用程序标识,由第一设备向与第一目标设备标识对应的第二设备请求下载与第一目标应用程序标识对应的应用程序包。That is to say, the application identifiers and device identifiers of multiple second devices can be displayed on the touch screen of the first device, and the user can operate on the touch screen of the first device to select the first target device to be cloned The identifier and the first target application identifier, the first device requests the second device corresponding to the first target device identifier to download the application package corresponding to the first target application identifier.
其中一种可能的实现方式中,在所述第二设备发送与所述应用程序标识对应的应用程序包至所述第一设备之前,所述第二设备对所述应用程序包进行备份。也就是说,所述第二设备可以对所述应用程序包进行备份和存储,以防止数据丢失。In one possible implementation manner, before the second device sends the application package corresponding to the application identifier to the first device, the second device backs up the application package. That is, the second device can back up and store the application package to prevent data loss.
需要指出的是,所述第一设备可以包括包管理系统,用于管理所述应用程序包,如安装应用程序或进行数据恢复等,在此不受限制。It should be noted that the first device may include a package management system for managing the application package, such as installing an application or performing data recovery, which is not limited herein.
值得一提的是,所述方法进一步包括,基于所述应用程序包,安装应用程序并进行数据恢复。也就是说,所述第一设备可以根据所述应用程序,安装应用程序并恢复数据,从而实现信息同步。It is worth mentioning that the method further includes, based on the application package, installing an application and performing data recovery. That is to say, the first device can install the application program and restore the data according to the application program, thereby realizing information synchronization.
可以理解的是,所述方法中,用户无需对所述第二设备进行操作。进一步地,用户也可以无需对所述第一设备进行操作,所述第一设备在与所述第二设备传输数据的过程中,所述第一设备也可以无需提示用户,以实现所述第一设备与所述第二设备之间的静默传输。It can be understood that, in the method, the user does not need to operate the second device. Further, the user does not need to operate the first device, and the first device does not need to prompt the user during the process of data transmission between the first device and the second device, so as to realize the first device. A silent transmission between a device and the second device.
其中一种可能的实现方式中,如图8(a)所示,在所述步骤S103之前,所述方法进一步包括,显示所述第一信息,响应用户的选取操作,确定所述第一信息中的需要传输的目标设备的目标应用程序。所述第一信息可以通过列表、文字或序列等方式在所述第一设备中显示。所述目标设备的目标应用程序可以包括用户选取的所述第一信息中的所述第二设备的应用程序。举例地,用户可以选取所述第一信息中的所述设备A的应用程序A1和应用程序A3,和所述设备C的应用程序C1,即所述目标设备的目标应用程序为所述设备A的应用程序A1和应用程序A3,和所述设备C的应用程序C1,其中,所述第一设备分别向所述设备A和设备C发送第二请求,使得所述设备A将应用程序A1和应用程序A3的应用程序包发送至所述第一设备,所述设备C将应用程序C1的应用程序包发送至所述第一设备,以使所述第一设备根据应用程序A1、应用程序A3以及应用程序C1的应用程序包,分别安装应用程序A1、应用程序A3以及应用程序C1,并恢复相应的数据,以完成信息同步。In one possible implementation manner, as shown in FIG. 8(a), before the step S103, the method further includes: displaying the first information, and determining the first information in response to a user's selection operation The target application in the target device that needs to be transferred. The first information may be displayed in the first device in a list, text or sequence. The target application program of the target device may include the application program of the second device in the first information selected by the user. For example, the user can select the application A1 and application A3 of the device A and the application C1 of the device C in the first information, that is, the target application of the target device is the device A application A1 and application A3, and application C1 of the device C, wherein the first device sends a second request to the device A and the device C, respectively, so that the device A will The application package of the application program A3 is sent to the first device, and the device C sends the application package of the application program C1 to the first device, so that the first device according to the application program A1, the application program A3 and the application package of the application C1, respectively install the application A1, the application A3 and the application C1, and restore the corresponding data to complete the information synchronization.
熟知本领域的技术人员应当理解的是,所述第一设备与所述第二设备之间还可以 进行文件或图片等数据的数据传输,应均属于本申请的保护范围。It should be understood by those skilled in the art that data transmission of data such as files or pictures can also be performed between the first device and the second device, which should all belong to the protection scope of the present application.
其中一种可能的实现方式中,所述第一请求包括所述第一设备的设备类型信息,所述第二设备包括应用程序与设备类型之间的兼容信息,所述第二设备发送的所述第一信息基于所述第一设备的设备类型和所述兼容信息确定。In one possible implementation manner, the first request includes device type information of the first device, the second device includes compatibility information between an application and a device type, and the data sent by the second device The first information is determined based on the device type of the first device and the compatibility information.
在本实施例中,所述第一设备存储所述第一设备的设备类型信息,所述设备类型信息可以包括移动终端(手机),智慧屏,平板,电脑,智能家居,健身设备,电视,大屏幕,无人机,智能网联车(Intelligent Connected Vehicle;以下简称:ICV),智能(汽)车(smart/intelligent car)或车载设备等设备的设备类型。所述第二设备存储应用程序与设备类型之间的兼容信息,所述兼容信息可以包括所述第二设备中的应用程序可兼容的设备类型。所述第一信息可以包括所述第二设备的可兼容所述第一设备的应用程序标识和设备标识。也就是说,所述第二设备基于所述兼容信息和所述第一设备的设备类型信息,判断所述第二设备的应用程序是否兼容于所述第一设备,以确定所述第一信息。In this embodiment, the first device stores device type information of the first device, and the device type information may include a mobile terminal (mobile phone), a smart screen, a tablet, a computer, a smart home, a fitness device, a TV, The type of equipment such as large screen, drone, intelligent connected vehicle (Intelligent Connected Vehicle; hereinafter referred to as: ICV), smart (car) car (smart/intelligent car) or in-vehicle equipment. The second device stores compatibility information between applications and device types, and the compatibility information may include device types compatible with the application in the second device. The first information may include an application identifier and a device identifier of the second device that are compatible with the first device. That is, the second device determines whether the application program of the second device is compatible with the first device based on the compatibility information and the device type information of the first device, so as to determine the first information .
举例地,如图8(b)所示,基于所述兼容信息和所述第一设备的设备类型信息,所述设备A判断所述设备A的应用程序A1、应用程序A2可兼容于所述第一设备,所述设备B判断所述设备B的应用程序B2可兼容于所述第一设备,所述设备C判断所述设备C的应用程序C1可兼容于所述第一设备,则所述第一信息包括所述设备A的应用程序A1、应用程序A2的应用程序标识和所述设备A的设备标识,所述设备B的应用程序B2的应用程序标识和所述设备B的设备标识,以及所述设备C的应用程序C1的应用程序标识和所述设备B的设备标识。在所述步骤S103中,所述设备A将应用程序A1、应用程序A2的应用程序包发送至所述第一设备,所述设备B将应用程序B2的应用程序包发送至所述第一设备,所述设备C将应用程序C1的应用程序包发送至所述第一设备,以供所述第一设备安装所述应用程序A1、应用程序A2、应用程序B2以及应用程序C1并进行相应的数据恢复。For example, as shown in FIG. 8(b), based on the compatibility information and the device type information of the first device, the device A determines that the application A1 and the application A2 of the device A are compatible with the device A The first device, the device B determines that the application program B2 of the device B is compatible with the first device, the device C determines that the application program C1 of the device C is compatible with the first device, then the device C determines that the application program C1 of the device C is compatible with the first device. The first information includes the application program A1 of the device A, the application program identification of the application program A2 and the device identification of the device A, the application program identification of the application program B2 of the device B and the device identification of the device B , and the application identifier of the application C1 of the device C and the device identifier of the device B. In the step S103, the device A sends the application program A1 and the application program package of the application program A2 to the first device, and the device B sends the application program package of the application program B2 to the first device. , the device C sends the application package of the application C1 to the first device, so that the first device can install the application A1, the application A2, the application B2 and the application C1 and perform corresponding Data Recovery.
可以理解的是,所述兼容信息可以包括在所述应用程序的应用开发阶段在所述应用程序数据包中添加的预设字段,所述预设字段用于表示所述应用程序可兼容的设备类型。It can be understood that the compatibility information may include a preset field added in the application data package during the application development stage of the application, and the preset field is used to indicate a device compatible with the application. type.
也就是说,步骤S901可以包括:That is to say, step S901 may include:
S921、向所述第二设备发送所述第一设备的设备类型;S921. Send the device type of the first device to the second device;
S922、接收由所述第二设备发送的第一信息,其中,所述第一信息包括与所述第一设备的设备类型相兼容的应用程序标识。S922. Receive first information sent by the second device, where the first information includes an application identifier compatible with the device type of the first device.
也就是说,第二设备中存有应用程序与设备类型之间的兼容信息。在第二设备向第一设备发送第一信息之前,第一设备先向第二设备发送第一设备的设备类型,第二设备根据第一设备的设备类型以及兼容信息,向第一设备发送与第一设备相兼容的应用程序的应用程序标识,以避免第一设备下载到不兼容的应用程序,浪费资源。That is to say, the compatibility information between the application program and the device type is stored in the second device. Before the second device sends the first information to the first device, the first device first sends the device type of the first device to the second device, and the second device sends the first device to the first device according to the device type and compatibility information of the first device. The application program identifier of the compatible application program of the first device, so as to prevent the first device from downloading the incompatible application program and wasting resources.
其中一种可能的实现方式中,如图6所示,所述第一设备包括设备类型信息,所述第一信息还包括应用程序与设备类型之间的兼容信息,在所述接收由所述第二设备发送的第一信息之后,所述方法进一步包括:In one possible implementation manner, as shown in FIG. 6 , the first device includes device type information, and the first information also includes compatibility information between the application program and the device type. After the first information sent by the second device, the method further includes:
S201、基于所述兼容信息和所述设备类型信息,对所述第一信息中所述第二设备 的应用程序进行判断,确定并显示第二信息。S201. Based on the compatibility information and the device type information, determine the application program of the second device in the first information, determine and display the second information.
在本实施例中,所述第一设备存储所述第一设备的设备类型信息。所述第二设备存储应用程序与设备类型之间的兼容信息,所述兼容信息可以包括所述第二设备中的应用程序可兼容的设备类型。在所述步骤S201中,所述第一设备基于所述第一信息中的所述兼容信息和所述第一设备的设备类型信息,判断所述第二设备的应用程序是否兼容于所述第一设备,以确定所述第二信息。In this embodiment, the first device stores device type information of the first device. The second device stores compatibility information between applications and device types, and the compatibility information may include device types compatible with the application in the second device. In the step S201, the first device determines whether the application program of the second device is compatible with the first device based on the compatibility information in the first information and the device type information of the first device a device to determine the second information.
举例地,基于所述兼容信息和所述第一设备的设备类型信息,所述第一设备判断所述设备A的应用程序A3、所述设备B的应用程序B1以及所述设备C的应用程序C2可兼容于所述第一设备。在所述步骤S103中,所述设备A将应用程序A3的应用程序包发送至所述第一设备,所述设备B将应用程序B1的应用程序包发送至所述第一设备,所述设备C将应用程序C2的应用程序包发送至所述第一设备,以供所述第一设备安装所述应用程序A3、应用程序B1以及应用程序C2并进行相应的数据恢复。For example, based on the compatibility information and the device type information of the first device, the first device determines the application A3 of the device A, the application B1 of the device B, and the application of the device C C2 is compatible with the first device. In the step S103, the device A sends the application package of the application A3 to the first device, the device B sends the application package of the application B1 to the first device, and the device C sends the application package of the application C2 to the first device, so that the first device can install the application A3, the application B1 and the application C2 and perform corresponding data recovery.
所述第二信息可以通过列表、文字或序列等方式在所述第一设备中显示,所述第一设备可以显示所述第二设备和所述第二设备的应用程序的名称等,以供满足用户的选取需求。例如,所述第一设备可以显示所述设备A和所述设备A的应用程序A3、所述设备B和所述设备B的应用程序B1、所述设备C和所述设备C的应用程序C2的名称等。The second information may be displayed in the first device in a list, text or sequence, etc., and the first device may display the name of the second device and the application program of the second device, etc. for Meet the user's selection needs. For example, the first device may display the application A3 of the device A and the device A, the application B1 of the device B and the device B, the application C2 of the device C and the device C name etc.
也就是说,步骤S902可以包括:That is, step S902 may include:
S931、根据所述兼容信息,判断所述第二设备的应用程序与所述第一设备的设备类型是否兼容;S931. According to the compatibility information, determine whether the application program of the second device is compatible with the device type of the first device;
S932、若所述第二设备的应用程序与所述第一设备的设备类型兼容,向所述第二设备发送第一请求,其中,所述第一请求用于请求所述第二设备发送与所述第一设备的设备类型相兼容的应用程序标识对应的应用程序包至所述第一设备。S932. If the application program of the second device is compatible with the device type of the first device, send a first request to the second device, where the first request is used to request the second device to send a An application package that is compatible with the device type of the first device identifies the corresponding application package to the first device.
也就是说,第一设备接收到的所述第一信息还包括第二设备的应用程序与设备类型之间的兼容信息,用于判断第二设备的应用程序是否兼容与第一设备。若第二设备的应用程序不兼容第一设备,则第一设备无需向第二设备发送第一请求,避免下载到不兼容的应用程序,浪费资源。That is, the first information received by the first device further includes compatibility information between the application program of the second device and the device type, which is used to determine whether the application program of the second device is compatible with the first device. If the application program of the second device is not compatible with the first device, the first device does not need to send the first request to the second device, so as to avoid downloading the incompatible application program and wasting resources.
其中一种可能的实现方式中,在所述向与所述设备标识对应的第二设备发送第二请求之前,所述方法还包括:In one possible implementation manner, before the sending the second request to the second device corresponding to the device identifier, the method further includes:
S202、响应用户选取操作,在所述第二信息中确定所选取的目标应用程序。S202. In response to the user's selection operation, determine the selected target application program in the second information.
举例地,如图8(c)所示,当用户选取所述设备A的应用程序A3和所述设备C的应用程序C2时,所述第一设备在所述第二信息中确定所选取的目标应用程序对应于所述设备A的应用程序A3和所述设备C的应用程序C2。在所述步骤S103中,基于所述第二信息中确定所选取的目标应用程序,所述第一设备向相应的所述第二设备发送第二请求,以使所述第二设备将相应的目标应用程序的应用程序包发送至所述第一设备,以供所述第一设备安装所述目标应用程序并进行数据恢复。例如,在所述步骤S103中,所述第一设备向所述设备A和所述设备C发送第二请求,以使所述设备A将应用程序A3的应用程序包发送至所述第一设备,所述设备C将应用程序C2的应用程序包发送至所述第一设备,以供所述第一设备安装应用程序A3和应用程序C2并 恢复相应的数据。For example, as shown in FIG. 8( c ), when the user selects the application program A3 of the device A and the application program C2 of the device C, the first device determines the selected application program in the second information The target applications correspond to the application A3 of the device A and the application C2 of the device C. In the step S103, the selected target application is determined based on the second information, and the first device sends a second request to the corresponding second device, so that the second device sends the corresponding The application package of the target application is sent to the first device, so that the first device can install the target application and perform data recovery. For example, in the step S103, the first device sends a second request to the device A and the device C, so that the device A sends the application package of the application A3 to the first device , the device C sends the application package of the application C2 to the first device, so that the first device can install the application A3 and the application C2 and restore the corresponding data.
可以理解的是,所述用户的选取操作可以包括点击所述第一设备的屏幕中对应的所述第二设备的应用程序的图标或名称等,或者其他操作方式,如语音,手势等,在此不受限制。It can be understood that the user's selection operation may include clicking on the icon or name of the application program of the second device corresponding to the screen of the first device, or other operation methods, such as voice, gesture, etc. This is not limited.
其中一种可能的实现方式中,如图7所示,所述第一信息还包括应用程序的版本,在所述接收由所述第二设备发送的第一信息之后,所述方法进一步包括:In one possible implementation manner, as shown in FIG. 7 , the first information further includes the version of the application, and after the receiving the first information sent by the second device, the method further includes:
S301、基于所述版本对所述第一信息中多个所述第二设备的同一应用程序进行判断,确定并显示第三信息。S301. Judging, based on the version, the same application program of multiple second devices in the first information, and determining and displaying third information.
举例地,所述设备A、所述设备B以及所述设备C均包括同一应用程序m和同一应用程序n,并且所述设备A、所述设备B以及所述设备C的同一应用程序m和同一应用程序n的版本不同,且所述设备C的应用程序m和所述设备A的应用程序n的版本最高。所述第一信息可以分别包括所述设备A、所述设备B以及所述设备C的同一应用程序m和同一应用程序n的版本。在所述步骤S301中,所述第一设备判断所述设备C的应用程序m的版本最高和所述设备A的应用程序n的版本最高,则确定所述第三信息,其中,所述第三信息包括所述设备C的应用程序m的应用程序标识和所述设备C的设备标识,个所述设备A的应用程序n的应用程序标识和所述设备A的设备标识,其中,所述第一设备中可以显示所述设备C的应用程序m和所述设备A的应用程序n的名称等信息,以供满足用户的选取需求。在所述步骤S103中,所述第一设备分别向所述设备A和设备C发送第二请求,以使所述设备A将应用程序n的应用程序包发送至所述第一设备,所述设备C将应用程序m的应用程序包发送至所述第一设备,以供所述第一设备安装最高版本的应用程序m和应用程序n并恢复数据。For example, the device A, the device B and the device C all include the same application m and the same application n, and the same application m and the same application n of the device A, the device B and the device C The versions of the same application n are different, and the versions of the application m of the device C and the application n of the device A are the highest. The first information may include versions of the same application m and the same application n of the device A, the device B, and the device C, respectively. In the step S301, the first device determines that the version of the application program m of the device C is the highest and the version of the application program n of the device A is the highest, and then determines the third information, wherein the The three pieces of information include the application identifier of the application m of the device C and the device identifier of the device C, the application identifier of the application n of the device A and the device identifier of the device A, wherein the Information such as the names of the application program m of the device C and the application program n of the device A can be displayed in the first device to meet the user's selection requirements. In the step S103, the first device sends a second request to the device A and the device C respectively, so that the device A sends the application package of the application n to the first device, and the Device C sends the application package of application m to the first device, so that the first device can install the highest version of application m and application n and restore data.
也就是说,步骤S902可以包括:That is, step S902 may include:
S941、对多个所述第二设备的同一应用程序版本进行比较,确定出第二目标设备标识以及与所述应用程序版本对应的第二目标应用程序标识,所述第二目标设备标识对应的第二设备的应用程序版本最高;S941. Compare the same application version of multiple second devices to determine a second target device identifier and a second target application identifier corresponding to the application version, where the second target device identifier corresponds to The second device has the highest version of the application;
S942、向与所述第二目标设备标识对应的第二设备发送第一请求,所述第一请求用于请求与所述第二目标设备标识对应的第二设备发送与所述第二目标应用程序标识对应的应用程序包至所述第一设备。S942. Send a first request to the second device corresponding to the second target device identifier, where the first request is used to request the second device corresponding to the second target device identifier to send the second target application The program identifies the corresponding application package to the first device.
也就是说,第一信息中还可以包括多个第二设备的应用程序版本以及设备标识。举例地,若所述设备A、所述设备B以及所述设备C均包括同一应用程序m,且所述设备C的应用程序m版本最高,则设备C为第二目标设备,应用程序m为第二目标应用程序,因此,第一设备可以下载到设备C的应用程序m的应用程序包,并完成应用程序包的安装与数据恢复等。That is to say, the first information may further include application program versions and device identifiers of multiple second devices. For example, if the device A, the device B, and the device C all include the same application m, and the device C has the highest version of the application m, then the device C is the second target device, and the application m is The second target application, therefore, the first device can download the application package of the application m of the device C, and complete the installation of the application package, data recovery, and the like.
其中一种可能的实现方式中,在所述向与所述设备标识对应的第二设备发送第二请求之前,所述方法还包括:In one possible implementation manner, before the sending the second request to the second device corresponding to the device identifier, the method further includes:
S302、响应用户选取操作,在所述第三信息中确定所选取的目标应用程序。S302. In response to the user's selection operation, determine the selected target application program in the third information.
举例地,如图8(d)所示,当用户选取所述设备C的应用程序m时,所述第一设备在所述第三信息中确定所选取的目标应用程序对应于所述设备C的应用程序m。在所述步骤S103中,基于所述第三信息中确定所选取的目标应用程序,所述第一设备 向相应的所述第二设备发送第二请求,以使所述第二设备将相应的目标应用程序的应用程序包发送至所述第一设备,以供所述第一设备安装所述目标应用程序并进行数据恢复。例如,在所述步骤S103中,所述第一设备向所述设备C发送第二请求,以使所述设备C将应用程序m的应用程序包发送至所述第一设备,以供所述第一设备安装版本最高的应用程序m并恢复相应的数据。For example, as shown in FIG. 8(d), when the user selects the application m of the device C, the first device determines in the third information that the selected target application corresponds to the device C application m. In the step S103, the selected target application is determined based on the third information, and the first device sends a second request to the corresponding second device, so that the second device sends the corresponding The application package of the target application is sent to the first device, so that the first device can install the target application and perform data recovery. For example, in the step S103, the first device sends a second request to the device C, so that the device C sends the application package of the application m to the first device for the The first device installs the application program m with the highest version and restores the corresponding data.
举例地,图8(e)为本申请数据传输方法中第一设备中显示迁移设备A中的应用程序一个实施例的示意图,其中,设备A中的应用程序A1、应用程序A2和应用程序A3可选择地迁移至所述第一设备,即所述设备A中的应用程序A1的应用程序包、应用程序A2的应用程序包和应用程序A3的应用程序包被传输至所述第一设备,使得所述第一设备可以完成程序克隆。图8(f)为本申请数据传输方法中第一设备中显示迁移设备A、设备B和设备C中的应用程序一个实施例的示意图,其中,设备A中的应用程序A1、应用程序A2和应用程序A3、设备B中的应用程序B1和应用程序B2、设备C中的应用程序C1和应用程序C2可选择地迁移至所述第一设备,使得所述第一设备可以完成程序克隆。For example, FIG. 8(e) is a schematic diagram showing an embodiment of the application program in the migration device A in the first device in the data transmission method of the present application, wherein the application program A1, the application program A2 and the application program A3 in the device A are Optionally migrate to the first device, i.e. the application package of application A1, the application package of application A2 and the application package of application A3 in the device A are transferred to the first device, This enables the first device to complete program cloning. Fig. 8(f) is a schematic diagram showing an embodiment of migrating applications in device A, device B, and device C in the first device in the data transmission method of the present application, wherein application A1, application A2 and application A2 in device A Application A3, application B1 and application B2 in device B, and application C1 and C2 in device C are selectively migrated to the first device so that the first device can complete program cloning.
在一种可能的实现方式中,所述第一设备包括设备类型信息,所述第一信息还包括应用程序与设备类型之间的兼容信息和应用程序的版本,在所述接收由所述第二设备发送的第一信息之后,所述方法进一步包括:In a possible implementation manner, the first device includes device type information, and the first information further includes compatibility information between the application program and the device type and the version of the application program. After the first information sent by the second device, the method further includes:
S201、基于所述第一信息中的所述兼容信息和所述设备类型信息,对所述第一信息中所述第二设备的应用程序进行判断,和基于所述版本对所述第一信息中多个所述第二设备的同一应用程序进行判断,确定第四信息。S201. Based on the compatibility information and the device type information in the first information, determine the application program of the second device in the first information, and determine the first information based on the version The same application program of a plurality of the second devices performs judgment to determine the fourth information.
也就是说,所述第四信息可以包括所述第二设备的可兼容所述第一设备的目标应用程序,其中,相对于其他的所述第二设备中的同一应用程序,所述目标应用程序的版本最高,以供所述第一设备能够安装可兼容的版本最高的所述目标应用程序并恢复相应的数据。That is to say, the fourth information may include a target application of the second device that is compatible with the first device, wherein, relative to the same application in the second device, the target application The version of the program is the highest, so that the first device can install the target application program with the highest compatible version and restore the corresponding data.
其中一种可能的实现方式中,所述第一信息由所述第二设备基于应用程序包的变化而更新。In one possible implementation manner, the first information is updated by the second device based on changes in the application package.
具体地,当所述第二设备中的安装或卸载某个应用程序时,所述第一信息中相应增加或删除对应的应用程序标识,以实现所述第一设备与所述第二设备之间的信息同步。Specifically, when an application program is installed or uninstalled in the second device, the corresponding application program identifier is correspondingly added or deleted in the first information, so as to realize the communication between the first device and the second device. information synchronization between.
可选地,当某个第二设备与所述第一设备断开连接,如所述第二设备网络故障或所述第二设备下线时,所述第一信息中删除相应的所述第二设备的所有应用程序标识和设备标识。相应地,当某个第二设备与所述第一设备建立连接时,所述第一信息中增加相应的所述第二设备的应用程序标识和设备标识。Optionally, when a certain second device is disconnected from the first device, such as when the network of the second device fails or the second device goes offline, the corresponding first device is deleted from the first information. All application IDs and device IDs for the second device. Correspondingly, when a second device establishes a connection with the first device, the application identifier and device identifier of the corresponding second device are added to the first information.
也就是说,若监测到第一设备与第二设备断开连接,则删除第二设备的应用程序标识或设备标识等。举例地,第一设备的分布式数据库中存有设备A的设备标识以及应用程序标识、设备B的设备标识以及应用程序标识以及设备C的设备标识以及应用程序标识,若监测到设备A与第一设备断开连接,则删除第一设备的分布式数据库中的设备A的设备标识以及所有应用程序标识。That is, if it is detected that the first device is disconnected from the second device, the application program identifier or the device identifier of the second device is deleted. For example, the distributed database of the first device stores the device identification and application identification of device A, the device identification and application identification of device B, and the device identification and application identification of device C. Once the device is disconnected, the device identifier of the device A and all application identifiers in the distributed database of the first device are deleted.
可以理解的是,上述实施例中的部分或全部步骤骤或操作仅是示例,本申请实施 例还可以执行其它操作或者各种操作的变形。此外,各个步骤可以按照上述实施例呈现的不同的顺序来执行,并且有可能并非要执行上述实施例中的全部操作。It can be understood that, some or all of the steps or operations in the foregoing embodiments are only examples, and the embodiments of the present application may also perform other operations or variations of various operations. Furthermore, the various steps may be performed in a different order presented in the above-described embodiments, and may not perform all operations in the above-described embodiments.
图9为本申请数据传输装置一个实施例的结构示意图,如图9所示,上述数据传输装置100与至少一个第二设备建立连接,所述装置100可以包括:第一请求发送模块10、接收模块20以及第二请求发送模块30;应当理解的是,所述装置100可以对应于图12所示的电子设备900。FIG. 9 is a schematic structural diagram of an embodiment of a data transmission apparatus of the present application. As shown in FIG. 9 , the above-mentioned data transmission apparatus 100 establishes a connection with at least one second device. The apparatus 100 may include: a first request sending module 10, a receiving The module 20 and the second request sending module 30; it should be understood that the apparatus 100 may correspond to the electronic device 900 shown in FIG. 12 .
其中,所述第一请求发送模块10,用于向所述第二设备发送第一请求,使得所述第二设备基于所述第一请求发送第一信息,其中,所述第一信息包括所述第二设备的应用程序标识和设备标识;The first request sending module 10 is configured to send a first request to the second device, so that the second device sends first information based on the first request, wherein the first information includes all the application identification and device identification of the second device;
所述接收模块20,用于接收由所述第二设备发送的第一信息;The receiving module 20 is configured to receive the first information sent by the second device;
所述第二请求发送模块30,用于基于所述第一信息,向与所述设备标识对应的第二设备发送第二请求,使得所述第二设备基于所述第二请求,发送与所述应用程序标识对应的应用程序包至所述装置100,以完成所述装置与所述第二设备之间的数据传输。The second request sending module 30 is configured to, based on the first information, send a second request to the second device corresponding to the device identifier, so that the second device sends the second request based on the second request. The application program identifies the corresponding application program package to the apparatus 100, so as to complete the data transmission between the apparatus and the second device.
其中一种可能的实现方式中,所述第一请求包括所述装置的设备类型信息,所述第二设备包括应用程序与设备类型之间的兼容信息,所述第一信息基于所述装置的设备类型和所述兼容信息确定。In one possible implementation manner, the first request includes device type information of the apparatus, the second device includes compatibility information between an application program and a device type, and the first information is based on the device type information of the apparatus. The device type and the compatibility information are determined.
其中一种可能的实现方式中,如图10所示,所述装置100包括设备类型信息,所述第一信息还包括应用程序与设备类型之间的兼容信息,所述装置100进一步包括:In one possible implementation manner, as shown in FIG. 10 , the apparatus 100 includes device type information, the first information further includes compatibility information between the application program and the device type, and the apparatus 100 further includes:
第二信息确定模块41,用于基于所述兼容信息和所述设备类型信息,对所述第一信息中所述第二设备的应用程序进行判断,确定并显示第二信息。The second information determining module 41 is configured to determine, based on the compatibility information and the device type information, the application program of the second device in the first information, and determine and display the second information.
其中一种可能的实现方式中,如图11所示,所述第一信息还包括应用程序的版本,所述装置100进一步包括:In one possible implementation manner, as shown in FIG. 11 , the first information further includes the version of the application, and the apparatus 100 further includes:
第三信息确定模块51,用于基于所述版本对所述第一信息中多个所述第二设备的同一应用程序进行判断,确定并显示第三信息。The third information determining module 51 is configured to determine, based on the version, the same application program of the plurality of second devices in the first information, and determine and display the third information.
其中一种可能的实现方式中,所述装置100还包括:In one possible implementation manner, the apparatus 100 further includes:
第一选取模块42,用于响应用户选取操作,在所述第二信息中确定所选取的目标应用程序。The first selection module 42 is configured to determine the selected target application in the second information in response to the user's selection operation.
其中一种可能的实现方式中,所述装置100还包括:In one possible implementation manner, the apparatus 100 further includes:
第二选取模块52,用于响应用户选取操作,在所述第三信息中确定所选取的目标应用程序。The second selection module 52 is configured to determine the selected target application program in the third information in response to the user's selection operation.
其中一种可能的实现方式中,所述第一信息由所述第二设备基于应用程序包的变化而更新。In one possible implementation manner, the first information is updated by the second device based on changes in the application package.
其中一种可能的实现方式中,在所述第二设备发送与所述应用程序标识对应的应用程序包至所述装置100之前,所述第二设备对所述应用程序包进行备份。In one possible implementation manner, before the second device sends the application package corresponding to the application identifier to the apparatus 100, the second device backs up the application package.
图9至图11所示实施例提供的数据传输装置可用于执行本申请图1或图2所示方法实施例的技术方案,其实现原理和技术效果可以进一步参考方法实施例中的相关描述。The data transmission apparatus provided by the embodiments shown in FIG. 9 to FIG. 11 can be used to implement the technical solutions of the method embodiments shown in FIG. 1 or FIG. 2 of the present application, and the implementation principles and technical effects can be further referred to the related descriptions in the method embodiments.
应当理解的是,数据传输装置100可以对应于图12所示的电子设备900。其中,第二信息确定模块41、第一选取模块42、第三信息确定模块51和第二选取模块52的功能可以由图12所示的电子设备900中的处理器910实现,第一请求发送模块10、接收模块20以及第二请求发送模块30的功能可以由图12所示的电子设备900中的收发器920实现。It should be understood that the data transmission apparatus 100 may correspond to the electronic device 900 shown in FIG. 12 . The functions of the second information determination module 41, the first selection module 42, the third information determination module 51 and the second selection module 52 may be implemented by the processor 910 in the electronic device 900 shown in FIG. 12, and the first request to send The functions of the module 10 , the receiving module 20 and the second request sending module 30 may be implemented by the transceiver 920 in the electronic device 900 shown in FIG. 12 .
图9至图11所示实施例提供的数据传输装置100可用于执行本申请图1~图3所示方法实施例的技术方案,其实现原理和技术效果可以进一步参考方法实施例中的相关描述。The data transmission apparatus 100 provided by the embodiments shown in FIG. 9 to FIG. 11 can be used to implement the technical solutions of the method embodiments shown in FIG. 1 to FIG. 3 of the present application. For the implementation principle and technical effect, reference may be made to the relevant descriptions in the method embodiments. .
应理解以上图9~图11所示的数据传输装置的各个模块的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且这些模块可以全部以软件通过处理元件调用的形式实现;也可以全部以硬件的形式实现;还可以部分模块以软件通过处理元件调用的形式实现,部分模块通过硬件的形式实现。例如,检测模块可以为单独设立的处理元件,也可以集成在电子设备的某一个芯片中实现。其它模块的实现与之类似。此外这些模块全部或部分可以集成在一起,也可以独立实现。在实现过程中,上述方法的各步骤或以上各个模块可以通过处理器元件中的硬件的集成逻辑电路或者软件形式的指令完成。It should be understood that the division of each module of the data transmission apparatus shown in FIG. 9 to FIG. 11 above is only a division of logical functions, and may be fully or partially integrated into a physical entity in actual implementation, or may be physically separated. And these modules can all be implemented in the form of software calling through processing elements; they can also all be implemented in hardware; some modules can also be implemented in the form of software calling through processing elements, and some modules can be implemented in hardware. For example, the detection module may be a separately established processing element, or may be integrated in a certain chip of the electronic device. The implementation of other modules is similar. In addition, all or part of these modules can be integrated together, and can also be implemented independently. In the implementation process, each step of the above-mentioned method or each of the above-mentioned modules can be completed by an integrated logic circuit of hardware in the processor element or an instruction in the form of software.
例如,以上这些模块可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(Application Specific Integrated Circuit;以下简称:ASIC),或,一个或多个微处理器(Digital Singnal Processor;以下简称:DSP),或,一个或者多个现场可编程门阵列(Field Programmable Gate Array;以下简称:FPGA)等。再如,这些模块可以集成在一起,以片上系统(System-On-a-Chip;以下简称:SOC)的形式实现。For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more specific integrated circuits (Application Specific Integrated Circuit; hereinafter referred to as: ASIC), or, one or more microprocessors Digital Singnal Processor (hereinafter referred to as: DSP), or, one or more Field Programmable Gate Array (Field Programmable Gate Array; hereinafter referred to as: FPGA), etc. For another example, these modules can be integrated together and implemented in the form of a system-on-a-chip (System-On-a-Chip; hereinafter referred to as: SOC).
图12为本申请电子设备一个实施例的结构示意图,如图12所示,上述电子设备可以包括:显示屏;一个或多个处理器;存储器;多个应用程序;以及一个或多个计算机程序。FIG. 12 is a schematic structural diagram of an embodiment of an electronic device of the present application. As shown in FIG. 12 , the above-mentioned electronic device may include: a display screen; one or more processors; a memory; multiple application programs; and one or more computer programs .
其中,上述显示屏可以包括车载计算机(移动数据中心Mobile Data Center)的显示屏;上述电子设备可以为移动终端(手机),智慧屏,无人机,智能网联车(Intelligent Connected Vehicle;以下简称:ICV),智能(汽)车(smart/intelligent car)或车载设备等设备。Wherein, the above-mentioned display screen may include a display screen of a vehicle-mounted computer (Mobile Data Center); the above-mentioned electronic equipment may be a mobile terminal (mobile phone), a smart screen, an unmanned aerial vehicle, an intelligent connected vehicle (Intelligent Connected Vehicle; hereinafter referred to as : ICV), intelligent (car) car (smart/intelligent car) or in-vehicle equipment and other equipment.
其中上述一个或多个计算机程序被存储在上述存储器中,上述一个或多个计算机程序包括指令,当上述指令被上述设备执行时,使得上述设备执行以下步骤:Wherein the above-mentioned one or more computer programs are stored in the above-mentioned memory, and the above-mentioned one or more computer programs include instructions that, when the above-mentioned instructions are executed by the above-mentioned equipment, cause the above-mentioned equipment to perform the following steps:
向所述第二设备发送第一请求,使得所述第二设备基于所述第一请求发送第一信息,其中,所述第一信息包括所述第二设备的应用程序标识和设备标识;sending a first request to the second device, so that the second device sends first information based on the first request, wherein the first information includes an application identifier and a device identifier of the second device;
接收由所述第二设备发送的第一信息;receiving first information sent by the second device;
基于所述第一信息,向与所述设备标识对应的第二设备发送第二请求,使得所述第二设备基于所述第二请求,发送与所述应用程序标识对应的应用程序包至所述电子设备,以完成所述电子设备与所述第二设备之间的数据传输。Based on the first information, a second request is sent to the second device corresponding to the device identifier, so that the second device sends the application package corresponding to the application identifier to the second device based on the second request. the electronic device to complete data transmission between the electronic device and the second device.
其中一种可能的实现方式中,所述第一请求包括所述电子设备的设备类型信息, 所述第二设备包括应用程序与设备类型之间的兼容信息,所述第一信息基于所述电子设备的设备类型和所述兼容信息确定。In one possible implementation manner, the first request includes device type information of the electronic device, the second device includes compatibility information between an application and a device type, and the first information is based on the electronic device The device type of the device and the compatibility information are determined.
其中一种可能的实现方式中,所述电子设备包括设备类型信息,所述第一信息还包括应用程序与设备类型之间的兼容信息,在所述指令被所述电子设备执行时,在所述电子设备执行所述接收由所述第二设备发送的第一信息的步骤之后,所述电子设备进一步执行步骤:In one possible implementation manner, the electronic device includes device type information, the first information further includes compatibility information between the application program and the device type, and when the instruction is executed by the electronic device, the After the electronic device performs the step of receiving the first information sent by the second device, the electronic device further performs the steps:
基于所述兼容信息和所述设备类型信息,对所述第一信息中所述第二设备的应用程序进行判断,确定并显示第二信息。Based on the compatibility information and the device type information, the application program of the second device in the first information is determined, and the second information is determined and displayed.
其中一种可能的实现方式中,所述第一信息还包括应用程序的版本,在所述指令被所述电子设备执行时,在所述电子设备执行所述接收由所述第二设备发送的第一信息的步骤之后,所述电子设备进一步执行步骤:In one possible implementation manner, the first information further includes a version of an application program, and when the instruction is executed by the electronic device, when the electronic device executes the receiving message sent by the second device After the step of the first message, the electronic device further performs the steps:
基于所述版本对所述第一信息中多个所述第二设备的同一应用程序进行判断,以确定并显示第三信息。Based on the version, the same application program of a plurality of the second devices in the first information is determined to determine and display the third information.
其中一种可能的实现方式中,在所述指令被所述电子设备执行时,在所述电子设备执行所述向与所述设备标识对应的第二设备发送第二请求的步骤之前,所述电子设备还执行步骤:In one possible implementation manner, when the instruction is executed by the electronic device, before the electronic device executes the step of sending a second request to the second device corresponding to the device identifier, the The electronic device also performs the steps:
响应用户选取操作,在所述第二信息中确定所选取的目标应用程序。In response to the user selection operation, the selected target application program is determined in the second information.
其中一种可能的实现方式中,在所述指令被所述电子设备执行时,在所述电子设备执行所述向与所述设备标识对应的第二设备发送第二请求的步骤之前,所述电子设备还执行步骤:In one possible implementation manner, when the instruction is executed by the electronic device, before the electronic device executes the step of sending a second request to the second device corresponding to the device identifier, the The electronic device also performs the steps:
响应用户选取操作,在所述第三信息中确定所选取的目标应用程序。In response to the user selection operation, the selected target application program is determined in the third information.
其中一种可能的实现方式中,所述第一信息由所述第二设备基于应用程序包的变化而更新。In one possible implementation manner, the first information is updated by the second device based on changes in the application package.
其中一种可能的实现方式中,在所述第二设备发送与所述应用程序标识对应的应用程序包至所述电子设备之前,所述第二设备对所述应用程序包进行备份。In one possible implementation manner, before the second device sends the application package corresponding to the application identifier to the electronic device, the second device backs up the application package.
其中一种可能的实现方式中,当所述指令被所述电子设备执行时,所述电子设备还执行:In one possible implementation manner, when the instruction is executed by the electronic device, the electronic device further executes:
接收由所述第二设备发送的第一信息,其中,所述第一信息包括所述第二设备的应用程序标识;receiving first information sent by the second device, wherein the first information includes an application identifier of the second device;
基于所述第一信息,向所述第二设备发送第一请求,其中,所述第一请求用于请求所述第二设备发送与所述应用程序标识对应的应用程序包至所述电子设备;Based on the first information, send a first request to the second device, where the first request is used to request the second device to send an application package corresponding to the application identifier to the electronic device ;
接收由所述第二设备发送的与所述应用程序标识对应的应用程序包。An application package corresponding to the application identifier sent by the second device is received.
其中一种可能的实现方式中,所述第一信息还包括应用程序与设备类型之间的兼容信息,当所述指令被所述电子设备执行时,使得所述电子设备执行所述基于所述第一信息,向所述第二设备发送第一请求,包括:In one possible implementation manner, the first information further includes compatibility information between the application program and the device type, and when the instruction is executed by the electronic device, the electronic device is made to execute the The first information, sending a first request to the second device, includes:
根据所述兼容信息,判断所述第二设备的应用程序与所述电子设备的设备类型是否兼容;According to the compatibility information, determine whether the application program of the second device is compatible with the device type of the electronic device;
若所述第二设备的应用程序与所述电子设备的设备类型兼容,向所述第二设备发送第一请求,其中,所述第一请求用于请求所述第二设备发送与所述电子设备的设备 类型相兼容的应用程序标识对应的应用程序包至所述电子设备。If the application program of the second device is compatible with the device type of the electronic device, send a first request to the second device, wherein the first request is used to request the second device to send a request to the electronic device An application program that is compatible with the device type of the device identifies the corresponding application program package to the electronic device.
其中一种可能的实现方式中,所述第二设备包括应用程序与设备类型之间的兼容信息,当所述指令被所述电子设备执行时,使得所述电子设备执行所述接收由所述第二设备发送的第一信息,包括:In one possible implementation manner, the second device includes compatibility information between an application program and a device type, and when the instruction is executed by the electronic device, it causes the electronic device to execute the receiving by the electronic device. The first information sent by the second device includes:
向所述第二设备发送所述电子设备的设备类型;sending the device type of the electronic device to the second device;
接收由所述第二设备发送的第一信息,其中,所述第一信息包括与所述电子设备的设备类型相兼容的应用程序标识。First information sent by the second device is received, wherein the first information includes an application identifier compatible with a device type of the electronic device.
其中一种可能的实现方式中,所述第一信息包括多个所述第二设备的应用程序标识以及设备标识,当所述指令被所述电子设备执行时,使得所述电子设备执行所述基于所述第一信息,向所述第二设备发送第一请求,包括:In one possible implementation manner, the first information includes a plurality of application program identifiers and device identifiers of the second devices, and when the instruction is executed by the electronic device, the electronic device is caused to execute the Based on the first information, sending a first request to the second device includes:
显示多个所述第二设备的应用程序标识以及设备标识;Displaying multiple application identifiers and device identifiers of the second devices;
响应用户选取操作,从多个所述第二设备的应用程序标识以及设备标识中,选取到第一目标设备标识以及第一目标应用程序标识;In response to the user selection operation, select the first target device identifier and the first target application identifier from the application identifiers and device identifiers of a plurality of the second devices;
向与所述第一目标设备标识对应的第二设备发送第一请求,所述第一请求用于请求与所述第一目标设备标识对应的所述第二设备发送与所述第一目标应用程序标识对应的应用程序包至所述电子设备。Sending a first request to a second device corresponding to the first target device identifier, where the first request is used to request the second device corresponding to the first target device identifier to send the first target application The program identifies the corresponding application package to the electronic device.
其中一种可能的实现方式中,所述第一信息还包括多个所述第二设备的应用程序版本以及设备标识,当所述指令被所述电子设备执行时,使得所述电子设备执行所述基于所述第一信息,向所述第二设备发送第一请求,包括:In one possible implementation manner, the first information further includes a plurality of application program versions and device identifiers of the second devices, and when the instruction is executed by the electronic device, the electronic device is made to execute the The sending, based on the first information, a first request to the second device includes:
对多个所述第二设备的同一应用程序版本进行比较,确定出第二目标设备标识以及与所述应用程序版本对应的第二目标应用程序标识,所述第二目标设备标识对应的第二设备的应用程序版本最高;The same application version of a plurality of the second devices is compared, and a second target device identification and a second target application identification corresponding to the application version are determined, and the second target device identification corresponding to the second target device identification. The device has the highest version of the app;
向与所述第二目标设备标识对应的第二设备发送第一请求,所述第一请求用于请求与所述第二目标设备标识对应的第二设备发送与所述第二目标应用程序标识对应的应用程序包至所述电子设备。Send a first request to the second device corresponding to the second target device identification, where the first request is used to request the second device corresponding to the second target device identification to send the second target application identification The corresponding application program is packaged to the electronic device.
其中一种可能的实现方式中,当所述指令被所述电子设备执行时,使得所述电子设备还执行:In one possible implementation manner, when the instruction is executed by the electronic device, the electronic device is caused to further execute:
若监测到所述电子设备与所述第二设备断开连接,则删除所述第二设备的应用程序标识。If it is detected that the electronic device is disconnected from the second device, the application identifier of the second device is deleted.
图12所示的电子设备可以是终端设备也可以是内置于上述终端设备的电路设备。该设备可以用于执行本申请图1或图2所示实施例提供的方法中的功能/步骤。The electronic device shown in FIG. 12 may be a terminal device or a circuit device built in the above-mentioned terminal device. The device can be used to execute the functions/steps in the method provided by the embodiment shown in FIG. 1 or FIG. 2 of the present application.
如图12所示,电子设备900包括处理器910和收发器920。可选地,该电子设备900还可以包括存储器930。其中,处理器910、收发器920和存储器930之间可以通过内部连接通路互相通信,传递控制和/或数据信号,该存储器930用于存储计算机程序,该处理器910用于从该存储器930中调用并运行该计算机程序。As shown in FIG. 12 , the electronic device 900 includes a processor 910 and a transceiver 920 . Optionally, the electronic device 900 may further include a memory 930 . Among them, the processor 910, the transceiver 920 and the memory 930 can communicate with each other through an internal connection path to transmit control and/or data signals. Invoke and run the computer program.
上述存储器930可以是只读存储器(read-only memory,ROM)、可存储静态信息和指令的其它类型的静态存储设备、随机存取存储器(random access memory,RAM)或可存储信息和指令的其它类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact  disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其它磁存储设备,或者还可以是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其它介质等。The above-mentioned memory 930 can be a read-only memory (read-only memory, ROM), other types of static storage devices that can store static information and instructions, random access memory (random access memory, RAM), or other types of static storage devices that can store information and instructions. Types of dynamic storage devices, which can also be electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM), or other optical disk storage, optical disks storage (including compact discs, laser discs, optical discs, digital versatile discs, blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or may also be capable of carrying or storing desired program code in the form of instructions or data structures and any other medium that can be accessed by a computer, etc.
可选地,电子设备900还可以包括天线940,用于将收发器920输出的无线信号发送出去。Optionally, the electronic device 900 may further include an antenna 940 for sending out the wireless signal output by the transceiver 920 .
上述处理器910可以和存储器930可以合成一个处理装置,更常见的是彼此独立的部件,处理器910用于执行存储器930中存储的程序代码来实现上述功能。具体实现时,该存储器930也可以集成在处理器910中,或者,独立于处理器910。The above-mentioned processor 910 and the memory 930 can be combined into a processing device, and more commonly, they are independent components, and the processor 910 is used to execute the program codes stored in the memory 930 to realize the above-mentioned functions. During specific implementation, the memory 930 may also be integrated in the processor 910 , or be independent of the processor 910 .
除此之外,为了使得电子设备900的功能更加完善,该电子设备900还可以包括输入单元960、显示单元970、音频电路980、摄像头990和传感器901等中的一个或多个,所述音频电路还可以包括扬声器982、麦克风984等。其中,显示单元970可以包括显示屏。In addition, in order to make the functions of the electronic device 900 more complete, the electronic device 900 may further include one or more of an input unit 960, a display unit 970, an audio circuit 980, a camera 990, a sensor 901, etc., the audio The circuit may also include a speaker 982, a microphone 984, and the like. Wherein, the display unit 970 may include a display screen.
可选地,上述电子设备900还可以包括电源950,用于给终端设备中的各种器件或电路提供电源。Optionally, the above electronic device 900 may further include a power supply 950 for providing power to various devices or circuits in the terminal device.
应理解,图12所示的电子设备900能够实现本申请图1或图2所示实施例提供的方法的各个过程。电子设备900中的各个模块的操作和/或功能,分别为了实现上述方法实施例中的相应流程。具体可参见本申请图1或图2所示方法实施例中的描述,为避免重复,此处适当省略详细描述。It should be understood that the electronic device 900 shown in FIG. 12 can implement each process of the method provided by the embodiment shown in FIG. 1 or FIG. 2 of the present application. The operations and/or functions of each module in the electronic device 900 are respectively to implement the corresponding processes in the foregoing method embodiments. For details, refer to the description in the method embodiment shown in FIG. 1 or FIG. 2 of the present application. To avoid repetition, the detailed description is appropriately omitted here.
应理解,图12所示的电子设备900中的处理器910可以是片上系统SOC,该处理器910中可以包括中央处理器(Central Processing Unit;以下简称:CPU),还可以进一步包括其他类型的处理器,例如:图像处理器(Graphics Processing Unit;以下简称:GPU)等。It should be understood that the processor 910 in the electronic device 900 shown in FIG. 12 may be a system-on-chip SOC, and the processor 910 may include a central processing unit (Central Processing Unit; hereinafter referred to as: CPU), and may further include other types of A processor, for example: a graphics processor (Graphics Processing Unit; hereinafter referred to as: GPU), etc.
总之,处理器910内部的各部分处理器或处理单元可以共同配合实现之前的方法流程,且各部分处理器或处理单元相应的软件程序可存储在存储器930中。In a word, each part of the processors or processing units inside the processor 910 can cooperate to implement the previous method process, and the corresponding software programs of each part of the processors or processing units can be stored in the memory 930 .
本申请还提供一种电子设备,所述设备包括存储介质和中央处理器,所述存储介质可以是非易失性存储介质,所述存储介质中存储有计算机可执行程序,所述中央处理器与所述非易失性存储介质连接,并执行所述计算机可执行程序以实现本申请图1或图2所示实施例提供的方法。The present application also provides an electronic device, the device includes a storage medium and a central processing unit, the storage medium may be a non-volatile storage medium, and a computer-executable program is stored in the storage medium, and the central processing unit is connected to the central processing unit. The non-volatile storage medium is connected, and the computer-executable program is executed to implement the method provided by the embodiment shown in FIG. 1 or FIG. 2 of the present application.
以上各实施例中,涉及的处理器可以例如包括CPU、DSP、微控制器或数字信号处理器,还可包括GPU、嵌入式神经网络处理器(Neural-network Process Units;以下简称:NPU)和图像信号处理器(Image Signal Processing;以下简称:ISP),该处理器还可包括必要的硬件加速器或逻辑处理硬件电路,如ASIC,或一个或多个用于控制本申请技术方案程序执行的集成电路等。此外,处理器可以具有操作一个或多个软件程序的功能,软件程序可以存储在存储介质中。In the above embodiments, the involved processors may include, for example, a CPU, a DSP, a microcontroller or a digital signal processor, and may also include a GPU, an embedded neural-network process unit (Neural-network Process Units; hereinafter referred to as: NPU) and Image signal processor (Image Signal Processing; hereinafter referred to as: ISP), the processor may also include necessary hardware accelerators or logic processing hardware circuits, such as ASIC, or one or more integrated circuits for controlling the execution of the program of the technical solution of the present application circuit, etc. Furthermore, the processor may have the function of operating one or more software programs, which may be stored in a storage medium.
本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行本申请图1或图2所示实施例 提供的方法。The embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is run on the computer, the computer executes the program provided by the embodiment shown in FIG. 1 or FIG. 2 of the present application. method.
本申请实施例还提供一种计算机程序产品,该计算机程序产品包括计算机程序,当其在计算机上运行时,使得计算机执行本申请图1或图2所示实施例提供的方法。The embodiments of the present application further provide a computer program product, the computer program product includes a computer program, which, when running on a computer, enables the computer to execute the method provided by the embodiment shown in FIG. 1 or FIG. 2 of the present application.
本申请实施例中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示单独存在A、同时存在A和B、单独存在B的情况。其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项”及其类似表达,是指的这些项中的任意组合,包括单项或复数项的任意组合。例如,a,b和c中的至少一项可以表示:a,b,c,a和b,a和c,b和c或a和b和c,其中a,b,c可以是单个,也可以是多个。In the embodiments of the present application, "at least one" refers to one or more, and "multiple" refers to two or more. "And/or", which describes the association relationship of the associated objects, means that there can be three kinds of relationships, for example, A and/or B, which can indicate the existence of A alone, the existence of A and B at the same time, and the existence of B alone. where A and B can be singular or plural. The character "/" generally indicates that the associated objects are an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, and c may represent: a, b, c, a and b, a and c, b and c or a and b and c, where a, b, c may be single, or Can be multiple.
本领域普通技术人员可以意识到,本文中公开的实施例中描述的各单元及算法步骤,能够以电子硬件、计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that the units and algorithm steps described in the embodiments disclosed herein can be implemented by a combination of electronic hardware, computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,任一功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory;以下简称:ROM)、随机存取存储器(Random Access Memory;以下简称:RAM)、磁碟或者光盘等各种可以存储程序代码的介质。In the several embodiments provided in this application, if any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, Read-Only Memory (Read-Only Memory; hereinafter referred to as: ROM), Random Access Memory (Random Access Memory; hereinafter referred to as: RAM), magnetic disk or optical disk and other various A medium on which program code can be stored.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention. should be included within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (13)

  1. 一种数据传输方法,应用于第一设备,其中,所述第一设备与至少一个第二设备建立连接,其特征在于,所述方法包括:A data transmission method, applied to a first device, wherein the first device establishes a connection with at least one second device, wherein the method comprises:
    接收由所述第二设备发送的第一信息,其中,所述第一信息包括所述第二设备的应用程序标识;receiving first information sent by the second device, wherein the first information includes an application identifier of the second device;
    基于所述第一信息,向所述第二设备发送第一请求,其中,所述第一请求用于请求所述第二设备发送与所述应用程序标识对应的应用程序包至所述第一设备;Based on the first information, send a first request to the second device, where the first request is used to request the second device to send an application package corresponding to the application identifier to the first device equipment;
    接收由所述第二设备发送的与所述应用程序标识对应的应用程序包。An application package corresponding to the application identifier sent by the second device is received.
  2. 根据权利要求1所述的方法,其特征在于,所述第一信息还包括应用程序与设备类型之间的兼容信息,所述基于所述第一信息,向所述第二设备发送第一请求,包括:The method according to claim 1, wherein the first information further comprises compatibility information between an application program and a device type, and the first request is sent to the second device based on the first information ,include:
    根据所述兼容信息,判断所述第二设备的应用程序与所述第一设备的设备类型是否兼容;According to the compatibility information, determine whether the application program of the second device is compatible with the device type of the first device;
    若所述第二设备的应用程序与所述第一设备的设备类型兼容,向所述第二设备发送第一请求,其中,所述第一请求用于请求所述第二设备发送与所述第一设备的设备类型相兼容的应用程序标识对应的应用程序包至所述第一设备。If the application program of the second device is compatible with the device type of the first device, send a first request to the second device, wherein the first request is used to request the second device to send a The application package that is compatible with the device type of the first device identifies the corresponding application package to the first device.
  3. 根据权利要求1所述的方法,其特征在于,所述第二设备包括应用程序与设备类型之间的兼容信息,所述接收由所述第二设备发送的第一信息,包括:The method according to claim 1, wherein the second device includes compatibility information between an application program and a device type, and the receiving the first information sent by the second device comprises:
    向所述第二设备发送所述第一设备的设备类型;sending the device type of the first device to the second device;
    接收由所述第二设备发送的第一信息,其中,所述第一信息包括与所述第一设备的设备类型相兼容的应用程序标识。First information sent by the second device is received, wherein the first information includes an application identifier compatible with a device type of the first device.
  4. 根据权利要求1所述的方法,其特征在于,所述第一信息包括多个所述第二设备的应用程序标识以及设备标识,所述基于所述第一信息,向所述第二设备发送第一请求,包括:The method according to claim 1, wherein the first information comprises a plurality of application program identifiers and device identifiers of the second devices, and the sending to the second device based on the first information The first request, including:
    显示多个所述第二设备的应用程序标识以及设备标识;Displaying multiple application identifiers and device identifiers of the second devices;
    响应用户选取操作,从多个所述第二设备的应用程序标识以及设备标识中,选取到第一目标设备标识以及第一目标应用程序标识;In response to the user selection operation, select the first target device identifier and the first target application identifier from the application identifiers and device identifiers of a plurality of the second devices;
    向与所述第一目标设备标识对应的第二设备发送第一请求,所述第一请求用于请求与所述第一目标设备标识对应的所述第二设备发送与所述第一目标应用程序标识对应的应用程序包至所述第一设备。Sending a first request to a second device corresponding to the first target device identifier, where the first request is used to request the second device corresponding to the first target device identifier to send the first target application The program identifies the corresponding application package to the first device.
  5. 根据权利要求1所述的方法,其特征在于,所述第一信息还包括多个所述第二设备的应用程序版本以及设备标识,所述基于所述第一信息,向所述第二设备发送第一请求,包括:The method according to claim 1, wherein the first information further comprises a plurality of application versions and device identifiers of the second devices, and the second device is sent to the second device based on the first information. Send the first request, including:
    对多个所述第二设备的同一应用程序版本进行比较,确定出第二目标设备标识以及与所述应用程序版本对应的第二目标应用程序标识,所述第二目标设备标识对应的第二设备的应用程序版本最高;The same application version of a plurality of the second devices is compared, and a second target device identification and a second target application identification corresponding to the application version are determined, and the second target device identification corresponding to the second target device identification. The device has the highest version of the app;
    向与所述第二目标设备标识对应的第二设备发送第一请求,所述第一请求用于请求与所述第二目标设备标识对应的第二设备发送与所述第二目标应用程序标识对应的 应用程序包至所述第一设备。Send a first request to the second device corresponding to the second target device identification, where the first request is used to request the second device corresponding to the second target device identification to send the second target application identification The corresponding application package is packaged to the first device.
  6. 根据权利要求1至5任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 5, wherein the method further comprises:
    若监测到所述第一设备与所述第二设备断开连接,则删除所述第二设备的应用程序标识。If it is detected that the first device is disconnected from the second device, the application identifier of the second device is deleted.
  7. 一种电子设备,所述电子设备与至少一个第二设备建立连接,其特征在于,所述电子设备包括:An electronic device that establishes a connection with at least one second device, characterized in that the electronic device comprises:
    显示屏;一个或多个处理器;存储器;多个应用程序;以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述电子设备执行时,使得所述电子设备执行以下步骤:a display screen; one or more processors; a memory; a plurality of application programs; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs Include instructions that, when executed by the electronic device, cause the electronic device to perform the following steps:
    接收由所述第二设备发送的第一信息,其中,所述第一信息包括所述第二设备的应用程序标识;receiving first information sent by the second device, wherein the first information includes an application identifier of the second device;
    基于所述第一信息,向所述第二设备发送第一请求,其中,所述第一请求用于请求所述第二设备发送与所述应用程序标识对应的应用程序包至所述电子设备;Based on the first information, send a first request to the second device, where the first request is used to request the second device to send an application package corresponding to the application identifier to the electronic device ;
    接收由所述第二设备发送的与所述应用程序标识对应的应用程序包。An application package corresponding to the application identifier sent by the second device is received.
  8. 根据权利要求7所述的电子设备,其特征在于,所述第一信息还包括应用程序与设备类型之间的兼容信息,当所述指令被所述电子设备执行时,使得所述电子设备执行所述基于所述第一信息,向所述第二设备发送第一请求,包括:The electronic device according to claim 7, wherein the first information further includes compatibility information between the application program and the device type, and when the instruction is executed by the electronic device, the electronic device is made to execute the instruction. The sending a first request to the second device based on the first information includes:
    根据所述兼容信息,判断所述第二设备的应用程序与所述电子设备的设备类型是否兼容;According to the compatibility information, determine whether the application program of the second device is compatible with the device type of the electronic device;
    若所述第二设备的应用程序与所述电子设备的设备类型兼容,向所述第二设备发送第一请求,其中,所述第一请求用于请求所述第二设备发送与所述电子设备的设备类型相兼容的应用程序标识对应的应用程序包至所述电子设备。If the application program of the second device is compatible with the device type of the electronic device, send a first request to the second device, wherein the first request is used to request the second device to send a request to the electronic device An application program that is compatible with the device type of the device identifies the corresponding application program package to the electronic device.
  9. 根据权利要求7所述的电子设备,其特征在于,所述第二设备包括应用程序与设备类型之间的兼容信息,当所述指令被所述电子设备执行时,使得所述电子设备执行所述接收由所述第二设备发送的第一信息,包括:The electronic device according to claim 7, wherein the second device includes compatibility information between an application program and a device type, and when the instruction is executed by the electronic device, the electronic device is made to execute the The receiving the first information sent by the second device includes:
    向所述第二设备发送所述电子设备的设备类型;sending the device type of the electronic device to the second device;
    接收由所述第二设备发送的第一信息,其中,所述第一信息包括与所述电子设备的设备类型相兼容的应用程序标识。First information sent by the second device is received, wherein the first information includes an application identifier compatible with a device type of the electronic device.
  10. 根据权利要求7所述的电子设备,其特征在于,所述第一信息包括多个所述第二设备的应用程序标识以及设备标识,当所述指令被所述电子设备执行时,使得所述电子设备执行所述基于所述第一信息,向所述第二设备发送第一请求,包括:The electronic device according to claim 7, wherein the first information includes a plurality of application program identifiers and device identifiers of the second devices, and when the instruction is executed by the electronic device, the The electronic device performing the sending a first request to the second device based on the first information includes:
    显示多个所述第二设备的应用程序标识以及设备标识;Displaying a plurality of application identifiers and device identifiers of the second devices;
    响应用户选取操作,从多个所述第二设备的应用程序标识以及设备标识中,选取到第一目标设备标识以及第一目标应用程序标识;In response to the user's selection operation, select the first target device identifier and the first target application identifier from the application identifiers and device identifiers of the plurality of second devices;
    向与所述第一目标设备标识对应的第二设备发送第一请求,所述第一请求用于请求与所述第一目标设备标识对应的所述第二设备发送与所述第一目标应用程序标识对应的应用程序包至所述电子设备。Sending a first request to a second device corresponding to the first target device identification, where the first request is used to request the second device corresponding to the first target device identification to send the first target application The program identifies the corresponding application package to the electronic device.
  11. 根据权利要求7所述的电子设备,其特征在于,所述第一信息还包括多个所述第二设备的应用程序版本以及设备标识,当所述指令被所述电子设备执行时,使得 所述电子设备执行所述基于所述第一信息,向所述第二设备发送第一请求,包括:The electronic device according to claim 7, wherein the first information further comprises a plurality of application program versions of the second devices and device identifiers, and when the instruction is executed by the electronic device, all The electronic device performing the sending, based on the first information, the first request to the second device includes:
    对多个所述第二设备的同一应用程序版本进行比较,确定出第二目标设备标识以及与所述应用程序版本对应的第二目标应用程序标识,所述第二目标设备标识对应的第二设备的应用程序版本最高;The same application version of a plurality of the second devices is compared, and a second target device identification and a second target application identification corresponding to the application version are determined, and the second target device identification corresponding to the second target device identification. The device has the highest version of the app;
    向与所述第二目标设备标识对应的第二设备发送第一请求,所述第一请求用于请求与所述第二目标设备标识对应的第二设备发送与所述第二目标应用程序标识对应的应用程序包至所述电子设备。Sending a first request to the second device corresponding to the second target device identification, where the first request is used to request the second device corresponding to the second target device identification to send the second target application identification The corresponding application program is packaged to the electronic device.
  12. 根据权利要求7至11任一项所述的电子设备,其特征在于,当所述指令被所述电子设备执行时,使得所述电子设备还执行:The electronic device according to any one of claims 7 to 11, wherein when the instruction is executed by the electronic device, the electronic device is caused to further execute:
    若监测到所述电子设备与所述第二设备断开连接,则删除所述第二设备的应用程序标识。If it is detected that the electronic device is disconnected from the second device, the application identifier of the second device is deleted.
  13. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行如权利要求1-6任一项所述的方法。A computer-readable storage medium, characterized in that, a computer program is stored in the computer-readable storage medium, and when it runs on a computer, the computer executes the method according to any one of claims 1-6.
PCT/CN2021/117421 2020-10-21 2021-09-09 Data transmission method and electronic device WO2022083342A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202011131059 2020-10-21
CN202011131059.6 2020-10-21
CN202111047918.8 2021-09-08
CN202111047918.8A CN114390485A (en) 2020-10-21 2021-09-08 Data transmission method and electronic equipment

Publications (1)

Publication Number Publication Date
WO2022083342A1 true WO2022083342A1 (en) 2022-04-28

Family

ID=81194590

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/117421 WO2022083342A1 (en) 2020-10-21 2021-09-09 Data transmission method and electronic device

Country Status (2)

Country Link
CN (1) CN114390485A (en)
WO (1) WO2022083342A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117130826A (en) * 2023-02-28 2023-11-28 荣耀终端有限公司 Data backup method, electronic equipment, data backup system and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140156784A1 (en) * 2012-12-03 2014-06-05 Lookout, Inc. Method and system for providing an application to an electronic device for enhancing user security
CN106658354A (en) * 2016-09-14 2017-05-10 广东欧珀移动通信有限公司 Data transmission method and equipment
CN107209678A (en) * 2015-02-09 2017-09-26 谷歌公司 System and method for the adaptive clone of mobile device
CN108108173A (en) * 2016-11-23 2018-06-01 中兴通讯股份有限公司 A kind of information processing method and device
CN108834132A (en) * 2016-10-19 2018-11-16 广东欧珀移动通信有限公司 A kind of data transmission method and equipment and related media production
CN110413312A (en) * 2019-07-15 2019-11-05 北京三快在线科技有限公司 A kind of method, apparatus, equipment and storage medium managing application program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140156784A1 (en) * 2012-12-03 2014-06-05 Lookout, Inc. Method and system for providing an application to an electronic device for enhancing user security
CN107209678A (en) * 2015-02-09 2017-09-26 谷歌公司 System and method for the adaptive clone of mobile device
CN106658354A (en) * 2016-09-14 2017-05-10 广东欧珀移动通信有限公司 Data transmission method and equipment
CN108834132A (en) * 2016-10-19 2018-11-16 广东欧珀移动通信有限公司 A kind of data transmission method and equipment and related media production
CN108108173A (en) * 2016-11-23 2018-06-01 中兴通讯股份有限公司 A kind of information processing method and device
CN110413312A (en) * 2019-07-15 2019-11-05 北京三快在线科技有限公司 A kind of method, apparatus, equipment and storage medium managing application program

Also Published As

Publication number Publication date
CN114390485A (en) 2022-04-22

Similar Documents

Publication Publication Date Title
US20190260851A1 (en) End-to-end user experiences with a digital assistant
WO2020207454A1 (en) Information pushing method and device
CN102651690B (en) To the method and apparatus that shared drive controls
WO2019134306A1 (en) Message processing method, device, terminal apparatus, and readable storage medium
US20140195663A1 (en) Method and System for Providing Cloud-Based Common Distribution Applications
AU2013390850B2 (en) Synchronizing device association data among computing devices
JP2018537783A (en) Run the application using pre-generated components
KR20160013955A (en) Access control for wireless docking
EP3516850B1 (en) Systems and methods for sharing application data between isolated applications executing on one or more application platforms
US20140201803A1 (en) Method and apparatus for widget compatability and transfer
KR20160013953A (en) Utilization and configuration of wireless docking environments
CN108605373B (en) Method and electronic device for providing network sharing service
US11909845B2 (en) Methods and systems for managing applications of a multi-access edge computing environment
KR20220008354A (en) Screen transfer processing method, apparatus, device and storage medium
WO2015176352A1 (en) Android system-based method and device for information exchange between applications
WO2016150191A1 (en) Data sharing method and device
WO2023103759A1 (en) Service calling method, system and apparatus, and device and storage medium
KR20180100371A (en) Data transfer method and device
CN105573128B (en) User device, driving method thereof, service providing apparatus, and driving method thereof
CN112328413A (en) Application service calling method, device and system
WO2022083342A1 (en) Data transmission method and electronic device
CN104468499A (en) Determining format compatibility across a data processing device and another data processing device prior to transfer of a multimedia file therebetween
CN105144651A (en) Application recommendations
US20210049048A1 (en) Inter device transfer of resources for executing application updates cycles
CN112714042B (en) Pressure testing method and device, electronic 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: 21881761

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21881761

Country of ref document: EP

Kind code of ref document: A1