WO2017129053A1 - 数据传输方法及装置 - Google Patents

数据传输方法及装置 Download PDF

Info

Publication number
WO2017129053A1
WO2017129053A1 PCT/CN2017/071825 CN2017071825W WO2017129053A1 WO 2017129053 A1 WO2017129053 A1 WO 2017129053A1 CN 2017071825 W CN2017071825 W CN 2017071825W WO 2017129053 A1 WO2017129053 A1 WO 2017129053A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual card
data
target device
source device
virtual
Prior art date
Application number
PCT/CN2017/071825
Other languages
English (en)
French (fr)
Inventor
王倩
王为
Original Assignee
腾讯科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2017129053A1 publication Critical patent/WO2017129053A1/zh
Priority to US15/972,839 priority Critical patent/US11048403B2/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM]
    • G05B19/4185Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM] characterised by the network communication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R11/00Arrangements for holding or mounting articles, not otherwise provided for
    • B60R11/02Arrangements for holding or mounting articles, not otherwise provided for for radio sets, television sets, telephones, or the like; Arrangement of controls thereof
    • B60R11/0264Arrangements for holding or mounting articles, not otherwise provided for for radio sets, television sets, telephones, or the like; Arrangement of controls thereof for control means
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60YINDEXING SCHEME RELATING TO ASPECTS CROSS-CUTTING VEHICLE TECHNOLOGY
    • B60Y2400/00Special features of vehicle units
    • B60Y2400/92Driver displays
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • G06T13/802D [Two Dimensional] animation, e.g. using sprites
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Definitions

  • the present application relates to the field of in-vehicle technology, and in particular, to a data transmission method and apparatus.
  • the functions of the vehicle control system are more and more extensive.
  • the user can control the use of various components in the vehicle through the vehicle control system, and the vehicle control system is not only limited to the control of various functions inside the vehicle, but also can be transmitted with the terminal such as the user's smart phone.
  • the smart phone can
  • the in-vehicle control system transmits audio files to enable the in-vehicle control system to perform audio playback.
  • the data transmission process between the above-mentioned terminal and the on-board control system is generally performed in the background on the terminal and the on-board control system. For the user, no information about the transmission process can be obtained, and the transmission mode is not intuitive. Therefore, there is an urgent need to provide a more intuitive method of data transmission between vehicles.
  • the embodiment of the present application provides a data transmission method and apparatus.
  • the technical solution is as follows:
  • a data transmission method which is applied to a source device, and the method includes:
  • a first movement process is displayed, the first movement process including a process in which the first virtual card is removed from the source device according to the determined moving direction; the target device cooperates with the source device A process of moving the second virtual card into the target device is displayed.
  • a data transmission method for application to a target device, the method comprising:
  • a second moving process is displayed, the second moving process includes a process of moving the second virtual card into the target device, and the source device cooperates with the target device to display the first virtual card from The process by which the source device moves out.
  • a data transmission apparatus for use in a source device, the apparatus comprising:
  • Generating a module configured to generate a first virtual card of the data based on data to be transmitted;
  • a sending module configured to send the data to a target device when detecting a specified operation on the first virtual card; wherein the target device generates a second virtual card corresponding to the first virtual card;
  • a display module configured to determine the first virtual according to an operation direction of the specified operation a moving direction of the card, in the process of data transmission, displaying a first moving process, the first moving process comprising a process in which the first virtual card is removed from the source device according to the determined moving direction; the target device cooperates The source device displays a process in which the second virtual card moves into the target device.
  • a fourth aspect provides a data transmission apparatus, which is applied to a target device, where the apparatus includes:
  • a receiving module configured to receive data sent by the source device, where the source device generates a first virtual card for the data
  • An obtaining module configured to acquire a second virtual card that represents the data and corresponds to the first virtual card
  • a determining module configured to determine a positional relationship between the source device and the target device
  • a display module configured to determine a moving direction of the second virtual card according to the positional relationship, in a data receiving process, displaying a second moving process, where the second moving process includes the second virtual card according to the Determining a process of moving the direction of movement into the target device, the source device cooperating with the target device to display a process in which the first virtual card is removed from the source device.
  • one end displays the process of flying the virtual card for representing the data, and the other end cooperates with the process of displaying the virtual card to enter the device, and the real display is realized in a continuous display manner.
  • the data transmission process greatly improves the intuitiveness of data transmission.
  • FIG. 1 is a structural diagram of an implementation scenario provided by an embodiment of the present application.
  • FIG. 2 is a flowchart of a data transmission method according to an embodiment of the present application.
  • FIG. 3 is a flowchart of a data transmission method according to an embodiment of the present application.
  • FIG. 5 is a schematic diagram of an interface display according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram of an interface display according to an embodiment of the present application.
  • FIG. 7 is a schematic diagram of an interface display according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram of a positional relationship division provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of an interface display according to an embodiment of the present application.
  • FIG. 10 is a schematic diagram of an interface display according to an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of a data transmission apparatus according to an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of a data transmission apparatus according to an embodiment of the present disclosure.
  • FIG. 13 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure.
  • FIG. 14 is a block diagram of a data transmission device 1400, according to an exemplary embodiment.
  • FIG. 1 is a structural diagram of an implementation scenario provided by an embodiment of the present application.
  • the implementation environment includes a plurality of terminal devices 101 and an in-vehicle device 102, and the plurality of terminal devices 101 can respectively establish a data connection with the in-vehicle device 102 for data transmission.
  • the terminal device 101 may be referred to as a source device
  • the in-vehicle device 102 may be referred to as a target device.
  • the terminal device 101 transmits data to the in-vehicle device 102, when the in-vehicle device 102 When data is transmitted to the terminal device 101, its name is reversed.
  • FIG. 2 is a flowchart of a data transmission method provided by an embodiment of the present application. Referring to FIG. 2, the method is applied to a source device, and the method includes:
  • the source device and the target device display a process for the virtual card to represent the data to fly out of the device, and the other end cooperates with the process of displaying the virtual card to enter the device.
  • the continuous display method truly reflects the data transmission process and greatly improves the intuitiveness of data transmission.
  • the generating, by the data to be transmitted, the first virtual card of the data includes: generating, according to the data type of the data to be transmitted, a first virtual card having a shape corresponding to the data type, Different data types correspond to different shapes; or, according to the data type of the data to be transmitted, a first virtual card corresponding to the color of the data type is generated, and different data types correspond to different colors; or, according to the to-be-transmitted The data type of the data, the first virtual card corresponding to the shape corresponding to the data type and the corresponding color, the different data types corresponding to different shapes and different colors.
  • sending the data to the target device includes: when a drag operation on the first virtual card is detected, if Between the touch point of the drag operation and the edge of the screen of the source device And the distance is less than the preset distance, the data is sent to the target device; or, when a sliding operation on the first virtual card is detected, if the touch point of the sliding operation is The distance between the edge of the screen of the source device is continuously reduced and the sliding speed is greater than the preset speed, and the data is sent to the target device.
  • the displaying the first moving process includes:
  • the generated first virtual card includes a plurality of first virtual cards of the multiple data; during data transmission, the displaying The first moving process includes: a process of displaying a plurality of first virtual cards of the plurality of data to be moved out of the source device in a data transmission order during the data transmission process.
  • FIG. 3 is a flowchart of a data transmission method according to an embodiment of the present application. Referring to FIG. 3, the method is applied to a target device, and the method includes:
  • the second moving process includes a process of moving the second virtual card into the target device, and the source device cooperates with the target device to display a process in which the first virtual card is removed from the source device.
  • the source device and the target device display a process for the virtual card to represent the data to fly out of the device, and the other end cooperates with the process of displaying the virtual card to enter the device.
  • the continuous display method truly reflects the data transmission process and greatly improves the intuitiveness of data transmission.
  • the acquiring the second virtual card of the data includes: generating a second virtual card of the data according to a data type of the data; or receiving a first sent by the source device
  • the virtual card information of the virtual card generates a second virtual card of the data according to the virtual card information.
  • the displaying the second moving process includes: acquiring a virtual screen according to a screen size of the source device and the target device; wherein the virtual screen includes a screen and a location of the source device The screen of the target device;
  • displaying the second moving process includes: when starting to receive data sent by the multiple source devices, displaying the plurality of The process of the second virtual card entering the display interface of the target device and moving to the designated location on the display interface of the target device.
  • displaying the second moving process includes: if the quantity of the data is greater than a preset threshold, displaying the second virtual card to enter a display interface of the target device and Moving on the display interface of the target device to a specified location, and displaying the real-time transmission progress of the second virtual card and data at the designated location.
  • FIG. 4 is a flowchart of a data transmission method according to an embodiment of the present application.
  • the embodiment uses a source device to perform data transmission, and another target device performs data reception as an example.
  • the method includes the following steps:
  • the source device generates a virtual card of the data based on the data to be transmitted.
  • the virtual card includes a data name.
  • the virtual card may also include other data information such as a data type.
  • the data to be transmitted can be of various types, such as a video file, an audio file, or a text document.
  • the source device can generate different types of virtual cards, and the different forms refer to any one of shape and color. Elements and so on.
  • an envelope-shaped virtual card can be generated, and a note is displayed on the surface of the envelope
  • an envelope-shaped virtual card can be generated, and the surface of the envelope is displayed with a play for indicating playback.
  • Symbol, and the color of the above virtual card may also vary according to the type of data.
  • the generating process may include any of the following methods:
  • a virtual card having a shape corresponding to the data type is generated, and the different data types correspond to different shapes.
  • the second method generates and types the data according to the data type of the data to be transmitted.
  • a virtual card corresponding to a color, different data types corresponding to different colors; or,
  • a virtual card corresponding to the shape and the corresponding color of the data type is generated, and the different data types correspond to different shapes and different colors.
  • the method for generating a virtual card may be performed according to the generation mode set on the source device or the generation mode of the inter-device protocol, which is not specifically limited in this embodiment of the present application.
  • a virtual card of the same form can also be generated.
  • the source device sends the data to the target device.
  • the target device may be a device that is specified by the source device in advance, that is, a device that has established a binding relationship in advance, or a device that is within a certain range between the current source device and the source device.
  • a plurality of devices are included in a certain range, and the source device may determine the target device from the plurality of devices according to the specified operation direction.
  • the target device may be the device to which the operation direction of the specified operation is directed.
  • the specified operation may be any operation, such as a drag operation or a sliding operation, so that the user can trigger the sending data by a simple operation of the virtual card on the screen of the source device by the finger, thereby enabling the source device and the target.
  • the device prepares for data transmission such as establishing a data transmission connection and starts transmitting data to the target device.
  • the step 402 may further include any one of the following implementations according to different types of operations of the specified operation: (1) when a drag operation on the virtual card is detected, If the distance between the touch point of the drag operation and the screen edge of the source device continues to decrease and the distance is less than the preset distance, the data is sent to the target device. If the drag operation meets the above conditions, the source device user is dragging the virtual card to the edge of the screen, and then it can be determined that the user wants to send data, and then the data is sent to the target device.
  • the source device can establish a data connection between the source device and the target device by interacting with the target device, so that the source device can pass the source device.
  • a data connection that sends data to the target device.
  • the source device displays a first moving process, where the first moving process includes a process in which the virtual card moves out of the source device.
  • the moving direction of the virtual card in the first movement process may be determined according to the operation direction of the specified operation. For example, if the operation direction is sliding to the right, the moving direction of the virtual card in the first moving process may be rightward, and correspondingly, in the second moving process of the corresponding virtual card on the target device, the moving direction is correspondingly To the right, (as shown in Figure 5). Of course, if the operation direction is sliding to the upper right, the moving direction of the virtual card during the first movement may be moving to the upper right to ensure that the displayed moving process is closer to the actual operation.
  • the first moving process and the second moving process together represent a process in which the virtual card flies out from the source device and flies into the target device. Therefore, when displaying the virtual card of one data, the display of the two devices is Complementary, that is, when the source device displays the first portion of the virtual card, the target device displays a second portion of the virtual card, the sum of the first portion and the second portion being the entire virtual card.
  • the data to be transmitted is taken as an example of the data, and in the actual scenario, the data to be transmitted may be multiple data.
  • the generated virtual card includes a plurality of virtual cards of the plurality of data; during the data transmission process, the plurality of virtual cards displaying the plurality of data are moved to the moving process of the target device in a data transmission order.
  • the plurality of virtual cards may be in different forms depending on the type of data.
  • the foregoing first moving process may be synchronized with the data sending progress, or may not be synchronized with the data sending progress, which is not specifically limited in this embodiment of the present application.
  • the first mobile process may be synchronized with the data sending progress.
  • the virtual card display ratio on the source device may be determined according to the data transmission percentage. For example, if the current data has been transmitted by 50%, the virtual card is displayed on the source device. %. If the data connection between the source device and the target device is interrupted, the transmission failure identifier may be displayed on at least one of the source device and the target device. For example, the transmission failure identifier may be a split graph.
  • the target device receives data sent by the source device.
  • the receiving in the step 404 is that the target device starts to receive data sent by the source device, and the process of sending the data by the source device may be implemented by sending a data packet.
  • the target device acquires a virtual card of the data.
  • the virtual card may be obtained in multiple manners, and may be obtained by the target device according to the data sent by the source device, and also according to the data type of the transmitted data, specifically, including any one of the following types.
  • the specific generation process is the same as the generation process described in the above step 401, and details are not described herein.
  • the target device may not generate the virtual card according to the data type, but the source device carries the virtual card information in the data packet, where the virtual card information is used to describe a specific display form of the virtual card, such as a color. And the shape, etc., after the virtual device receives the virtual card information, the target device generates a virtual card of the data.
  • the display size of the virtual card on the source device and the display size on the target device may be different (as shown in FIG. 6), for example, the target device may be larger according to its own screen. Small, generating a virtual card whose display size matches the screen size, or the target device may generate a virtual card having the same display size as the preset display size of the virtual card on the target device. This is not limited.
  • any of the above-mentioned virtual card acquisition methods may be used to display the virtual card. This embodiment of the present application does not specifically limit this.
  • the second moving process includes a process in which the virtual card generated by the target device is moved into the target device.
  • steps 403 and 406 refer to the process in which the source device and the target device cooperate with the virtual card generated by the display source device to be removed from the source device and the virtual card generated by the target device is moved into the target device.
  • the moving process includes not only moving the virtual card of the source device from the specified location to the edge of the source device screen on the source device screen, but also gradually displaying the partial virtual card in an exit manner until the virtual card completely exits the source device screen, and The process of including the virtual card of the target device gradually entering the target device screen from the edge of the target device screen in an incoming manner until the virtual card moves to a specified position of the target device screen (as shown in FIGS. 5 and 7).
  • the source device and the target device may implement the foregoing dynamic display in any one of the following manners or manners 2 in the data transmission process:
  • Method 1 When establishing a data transmission connection, determining a master device and a slave device, the master device acquiring a virtual screen according to a screen size of the source device and the target device, where the virtual screen includes a screen of the source device and a screen of the target device, The master device determines a movement trajectory of the virtual card of the source device and the target device on the virtual screen, thereby controlling the source device and the target device to cooperate to display a movement process of moving the virtual card from the source device to the target device.
  • the master device can be a target device that is a data recipient.
  • the master device may also be elected by the source device and the target device that participate in the data transmission, and the election process may be performed according to the device performance, the currently available computing resources of the device, and the like, which is not specifically limited in this embodiment.
  • Method 2 in the data transmission process, determining the display of the virtual card on the two devices based on a certain moving speed, for example, moving the virtual card from the specified position along the operation direction of the user to the screen at a specified speed on the source device, The virtual card moves from the edge of the screen to a specified location on the target device screen at a specified speed on the target device.
  • the specified speed may be a preset speed, or may be a speed estimated according to the data transmission speed (for example, an average speed or a real-time speed), which is not specifically limited in this embodiment of the present application.
  • the second moving process displayed on the target device may be represented by different moving directions, which specifically indicates which moving direction can be determined according to the positional relationship between the target device and the source device, thereby exhibiting more intuitive and continuous display.
  • the effect of the move In order to demonstrate such a mobile effect, the location relationship between the source device and the target device may be determined at any time when the data transmission is started, the connection is initially established, or the target device has not started to be displayed; and the virtual device is determined according to the location relationship.
  • the direction of movement of the card during the second movement the different positional relationships correspond to different directions of movement.
  • the above positional relationship may refer to a positional relationship on a plane.
  • the positional relationship can be roughly divided into the direction as shown in FIG. 8, that is, the 360-degree octave is divided on the coordinate axis, and the difference between the positional relationship and the direction is less than the preset threshold, and the positional relationship is in the plane.
  • the moving direction may be a moving direction as indicated by the direction of the arrow in FIG.
  • the above-mentioned positional relationship division and the determination of the movement direction may be roughly divided as described above, and may be accurately determined.
  • the movement direction is determined by the actual positional relationship between the devices, which is not specifically limited in the embodiment of the present application.
  • the specified speed may be a preset speed
  • the data may not be transmitted when the virtual card is moved to the specified location, so there may be the following situation: if the data is greater than the preset threshold
  • the value indicates that the virtual card enters the display interface of the target device and moves to the specified location on the display interface of the target device, and displays the real-time transmission progress of the virtual card and the data at the specified location, as shown in FIG.
  • the real-time transmission progress can truly reflect the percentage of data transmission, or it can only be a prompt for data transmission not completed, and is not necessarily displayed according to the actual transmission ratio.
  • the progress bar once the transfer is complete, displays a progress bar that reaches 100%.
  • the foregoing preset threshold may be preset, which is not specifically limited in this embodiment of the present application.
  • the virtual card may first be displayed to enter the display interface of the target device and moved to the designated location on the display interface of the target device, and the virtual card is displayed at the designated location. And real-time transmission of data to provide a more streamlined and intuitive transmission experience.
  • the above embodiment is described by taking a transmission between a source device and a target device as an example.
  • multiple source devices may also perform data transmission to a target device, and the data transmission may be performed. It is a parallel transmission, or it can be a serial transmission.
  • the process of displaying the plurality of virtual cards into the display interface of the target device and moving to the designated location on the display interface of the target device is displayed in the order of receiving, as shown in FIG.
  • the moving track of each virtual card on the screen of the target device may be in the form of a parabola or a straight line, which is not specifically limited in this embodiment of the present application.
  • the embodiment of the present application is only a description of the source device as the terminal device, and the target device is the vehicle device or the in-vehicle device.
  • the vehicle device or the in-vehicle device may also be used as the source device, and the terminal device is The source device performs data transmission, and the specific process is the same as the above process, and will not be described here.
  • the specific display effects of the first moving process and the second moving process in the foregoing steps may be determined according to at least one of speed and strength of the specified operation on the source device to simulate a real physical moving effect, different speeds. It can correspond to different display effects. For example, the faster the speed, the faster the virtual card will fly out. Different strengths can correspond to different display effects. For example, the greater the velocity, the higher the parabola apex when the virtual card flies out, and the virtual card is at the target. The farther the drop point in the device is.
  • the source device and the target device display a process for the virtual card to represent the data to fly out of the device, and the other end cooperates with the process of displaying the virtual card to enter the device.
  • the continuous display method truly reflects the data transmission process and greatly improves the intuitiveness of data transmission.
  • FIG. 11 is a schematic structural diagram of a data transmission apparatus according to an embodiment of the present application.
  • the device is applied to a source device.
  • the apparatus includes:
  • a generating module 1101, configured to generate a first virtual card of the data based on data to be transmitted;
  • the sending module 1102 is configured to: when the specified operation of the first virtual card is detected, send the data to a target device; wherein the target device generates a second virtual card corresponding to the first virtual card;
  • a display module 1103 configured to determine a moving direction of the first virtual card according to an operation direction of the specified operation, and display a first moving process during data transmission, where the first moving process includes the first virtual process a process of moving the card from the source device according to the determined moving direction; the target device cooperates with the source device to display a process of moving the second virtual card into the target device.
  • the generating module 1101 is configured to:
  • the sending module 1102 is configured to:
  • the target device When detecting a sliding operation on the first virtual card, if the distance between the touch point of the sliding operation and the screen edge of the source device continues to decrease and the sliding speed is greater than the preset speed, then The target device sends the data.
  • the display module 1103 is configured to acquire a virtual screen according to a screen size of the source device and the target device; wherein the virtual screen includes a screen of the source device and the target device screen;
  • the generated first virtual card when the data to be transmitted is a plurality of data, includes a plurality of first virtual cards of the plurality of data;
  • the display module 1103 is configured to: when the data is being sent, the plurality of first virtual cards displaying the plurality of data are out of the source device according to a data sending sequence. Cheng.
  • FIG. 12 is a schematic structural diagram of a data transmission apparatus according to an embodiment of the present application.
  • the device is applied to a target device.
  • the apparatus includes:
  • the receiving module 1201 is configured to receive data sent by the source device, where the source device generates a first virtual card for the data.
  • the obtaining module 1202 is configured to acquire the second virtual card that represents the data and corresponds to the first virtual card;
  • a determining module 1203, configured to determine a positional relationship between the source device and the target device
  • the display module 1204 is configured to determine a moving direction of the second virtual card according to the positional relationship, and display a second moving process during data receiving, where the second moving process includes the second virtual card moving in a process of the target device, the source device cooperates with the target device to display a process in which the first virtual card is removed from the source device.
  • the obtaining module 1202 is configured to:
  • the display module 1204 is configured to acquire a virtual screen according to a screen size of the source device and the target device; wherein the virtual screen includes a screen of the source device and the target device screen;
  • the display module 1204 is configured to display a plurality of second virtual cards into the display interface of the target device and in the target device according to the receiving sequence when starting to receive data sent by the plurality of source devices. The process of moving to the specified location on the display interface.
  • the display module 1204 is configured to display, when the quantity of the data is greater than a preset threshold, the second virtual card to enter a display interface of the target device and on a display interface of the target device Moving to a specified location and displaying the real-time transmission progress of the second virtual card and data at the designated location.
  • the data transmission device provided by the foregoing embodiment is only illustrated by the division of each functional module in the data transmission. In actual applications, the function distribution may be completed by different functional modules as needed. The internal structure of the device is divided into different functional modules to perform all or part of the functions described above.
  • the data transmission apparatus and the data transmission method embodiment provided by the foregoing embodiments are in the same concept, and the specific implementation process is described in detail in the method embodiment, and details are not described herein again.
  • the terminal 1300 includes:
  • the terminal 1300 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more computer readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, and a WiFi (Wireless Fidelity, wireless).
  • the fidelity module 170 includes a processor 180 having one or more processing cores, and a power supply 190 and the like. It will be understood by those skilled in the art that the terminal structure shown in FIG. 13 does not constitute a limitation to the terminal, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements. among them:
  • the RF circuit 110 can be used for transmitting and receiving information or during a call, receiving and transmitting signals, and in particular, receiving downlink information of the base station and handing it over to one or more processors 180 In addition, data related to the uplink is transmitted to the base station.
  • the RF circuit 110 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier). , duplexer, etc.
  • SIM Subscriber Identity Module
  • RF circuitry 110 can also communicate with the network and other devices via wireless communication.
  • the wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access). , Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and the like.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • e-mail Short Messaging Service
  • the memory 120 can be used to store software programs and modules, and the processor 180 executes various functional applications and data processing by running software programs and modules stored in the memory 120.
  • the memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to The data created by the use of the terminal 1300 (such as audio data, phone book, etc.) and the like.
  • memory 120 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 120 may also include a memory controller to provide access to memory 120 by processor 180 and input unit 130.
  • the input unit 130 can be configured to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • input unit 130 can include touch-sensitive surface 131 as well as other input devices 132.
  • the touch-sensitive surface 131 also referred to as a touch display or touchpad, collects touch operations on or near the user (eg, the user uses a finger, stylus, etc., any suitable object or accessory to touch The operation on the sensitive surface 131 or in the vicinity of the touch-sensitive surface 131) and driving the corresponding connecting device according to a preset program.
  • the touch-sensitive surface 131 can include two portions of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 180 is provided and can receive commands from the processor 180 and execute them.
  • the touch-sensitive surface 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 130 can also include other input devices 132.
  • other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 140 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the terminal 1300, which can be composed of graphics, text, icons, video, and any combination thereof.
  • the display unit 140 may include a display panel 141.
  • the display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
  • the touch-sensitive surface 131 may cover the display panel 141, and when the touch-sensitive surface 131 detects a touch operation thereon or nearby, it is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 according to the touch event The type provides a corresponding visual output on display panel 141.
  • touch-sensitive surface 131 and display panel 141 are implemented as two separate components to implement input and input functions, in some embodiments, touch-sensitive surface 131 can be integrated with display panel 141 for input. And output function.
  • Terminal 1300 can also include at least one type of sensor 150, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 141 when the terminal 1300 moves to the ear. / Or backlight.
  • the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the terminal 1300 can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, not here Let me repeat.
  • the audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the terminal 1300.
  • the audio circuit 160 can transmit the converted electrical data of the received audio data to the speaker 161 for conversion to the sound signal output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal by the audio circuit 160. After receiving, it is converted into audio data, and then processed by the audio data output processor 180, transmitted to the terminal, for example, via the RF circuit 110, or outputted to the memory 120 for further processing.
  • the audio circuit 160 may also include an earbud jack to provide communication of the peripheral earphones with the terminal 1300.
  • WiFi is a short-range wireless transmission technology
  • the terminal 1300 can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 170, which provides wireless broadband Internet access for users.
  • FIG. 13 shows the WiFi module 170, it can be understood that it does not belong to the essential configuration of the terminal 1300, and may be omitted as needed within the scope of not changing the essence of the application.
  • the processor 180 is a control center of the terminal 1300 that connects various portions of the entire handset with various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling data stored in the memory 120, The various functions and processing data of the terminal 1300 are performed to perform overall monitoring of the mobile phone.
  • the processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, and an application program. Order, etc., the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 180.
  • the terminal 1300 also includes a power source 190 (such as a battery) for powering various components.
  • the power source can be logically coupled to the processor 180 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • Power supply 190 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
  • the terminal 1300 may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the display unit of the terminal is a touch screen display
  • the terminal further includes a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to be processed by one or more Execution.
  • the one or more programs include instructions for performing the operations performed by the source device of FIG. 2 or FIG. 4 above.
  • FIG. 14 is a block diagram of a data transmission device 1400, according to an exemplary embodiment.
  • device 1400 can be provided as an in-vehicle control device.
  • apparatus 1400 includes a processing component 1422 that further includes one or more processors, and memory resources represented by memory 1432 for storing instructions executable by processing component 1422, such as an application.
  • the application stored in the memory 1432 may include one or more modules each corresponding to a set of instructions.
  • the processing component 1422 is configured to execute instructions to perform the data transmission method on the target device side in FIG. 3 or FIG. 4 described above.
  • Apparatus 1400 can also include a power supply component 1426 configured to perform power management of apparatus 1400, a wired or wireless network interface 1450 configured to connect apparatus 1400 to the network, and an input/output (I/O) interface 1458.
  • Apparatus 1400 may operate based on an operating system stored in the memory 1432, for example, Windows Server TM, Mac OS X TM , Unix TM, Linux TM, FreeBSD TM or the like.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

Abstract

本申请公开了一种数据传输方法及装置,属于车载技术领域。所述方法包括:基于待传输的数据,生成用于代表所述数据的第一虚拟卡片;当检测到对所述第一虚拟卡片的指定操作时,向目标设备发送所述数据;其中,所述目标设备生成与所述第一虚拟卡片对应的第二虚拟卡片;根据所述指定操作的操作方向,确定所述第一虚拟卡片的移动方向;在数据发送过程中,显示第一移动过程,所述第一移动过程包括所述第一虚拟卡片从所述源设备按照所述确定的移动方向移出的过程;所述目标设备配合所述源设备显示所述第二虚拟卡片移入所述目标设备的过程。

Description

数据传输方法及装置
本申请要求于2016年1月29日提交中国专利局、申请号为201610067069.5,发明名称为“数据传输方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及车载技术领域,特别涉及一种数据传输方法及装置。
发明背景
随着车载技术的发展,车载控制系统的功能越来越广泛。用户可以通过车载控制系统控制车辆中各个部件的使用,而车载控制系统已经不仅仅局限于对车辆内部各个功能的控制,还可以与用户的智能手机等终端进行数据传输,例如,智能手机可以向车载控制系统传输音频文件,以使得车载控制系统能够进行音频播放。上述这种终端与车载控制系统之间的数据传输过程,一般都在终端和车载控制系统上后台进行,对于用户来说,无法得到关于传输过程的任何信息,这种传输方式并不直观。因此,亟需提供一种直观性较强的车机间数据传输的方法。
发明内容
为了解决现有技术的问题,本申请实施例提供了一种数据传输方法及装置。所述技术方案如下:
第一方面,提供了一种数据传输方法,应用于源设备,所述方法包括:
基于待传输的数据,生成所述数据的第一虚拟卡片;
当检测到对所述第一虚拟卡片的指定操作时,向目标设备发送所述数据;其中,所述目标设备生成与所述第一虚拟卡片对应的第二虚拟卡片;
根据所述指定操作的操作方向,确定所述第一虚拟卡片的移动方向;
在数据发送过程中,显示第一移动过程,所述第一移动过程包括所述第一虚拟卡片从所述源设备按照所述确定的移动方向移出的过程;所述目标设备配合所述源设备显示所述第二虚拟卡片移入所述目标设备的过程。
第二方面,提供了一种数据传输方法,应用于目标设备,所述方法包括:
接收源设备发送的数据;其中,所述源设备为所述数据生成第一虚拟卡片;
获取代表所述数据的且与所述第一虚拟卡片对应的第二虚拟卡片;
确定所述源设备与所述目标设备之间的位置关系;
根据所述位置关系,确定所述第二虚拟卡片的移动方向;
在数据接收过程中,显示第二移动过程,所述第二移动过程包括所述第二虚拟卡片移入所述目标设备的过程,所述源设备配合所述目标设备显示所述第一虚拟卡片从所述源设备移出的过程。
第三方面,提供了一种数据传输装置,应用于源设备,所述装置包括:
生成模块,用于基于待传输的数据,生成所述数据的第一虚拟卡片;
发送模块,用于当检测到对所述第一虚拟卡片的指定操作时,向目标设备发送所述数据;其中,所述目标设备生成与所述第一虚拟卡片对应的第二虚拟卡片;
显示模块,用于根据所述指定操作的操作方向,确定所述第一虚拟 卡片的移动方向,在数据发送过程中,显示第一移动过程,所述第一移动过程包括所述第一虚拟卡片从所述源设备按照上述确定的移动方向移出的过程;所述目标设备配合所述源设备显示所述第二虚拟卡片移入所述目标设备的过程。
第四方面,提供了一种数据传输装置,应用于目标设备,所述装置包括:
接收模块,用于接收源设备发送的数据;其中,所述源设备为所述数据生成第一虚拟卡片;
获取模块,用于获取代表所述数据的且与所述第一虚拟卡片对应的第二虚拟卡片;
确定模块,用于确定所述源设备与所述目标设备之间的位置关系;
显示模块,用于根据所述位置关系,确定所述第二虚拟卡片的移动方向,在数据接收过程中,显示第二移动过程,所述第二移动过程包括所述第二虚拟卡片按照所述确定的移动方向移入至所述目标设备的过程,所述源设备配合所述目标设备显示所述第一虚拟卡片从所述源设备移出的过程。
通过源设备和目标设备在数据传输过程中,一端显示用于代表数据的虚拟卡片飞出设备的过程,另一端配合互补显示虚拟卡片进入设备的过程,以一种连续显示的方式真实的体现了数据传输过程,大大提高了数据传输的直观性。
附图简要说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出 创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例提供的一种实施场景结构图;
图2是本申请实施例提供的一种数据传输方法的流程图;
图3是本申请实施例提供的一种数据传输方法的流程图;
图4是本申请实施例提供的一种数据传输方法的流程图;
图5是本申请实施例提供的一种界面显示示意图;
图6是本申请实施例提供的一种界面显示示意图;
图7是本申请实施例提供的一种界面显示示意图;
图8是本申请实施例提供的一种位置关系划分示意图;
图9是本申请实施例提供的一种界面显示示意图;
图10是本申请实施例提供的一种界面显示示意图;
图11是本申请实施例提供的一种数据传输装置的结构示意图;
图12是本申请实施例提供的一种数据传输装置的结构示意图;
图13是本申请实施例提供的一种终端的结构示意图;
图14是根据一示例性实施例示出的一种数据传输装置1400的框图。
具体实施方式
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。
图1是本申请实施例提供的一种实施场景结构图。参见图1,该实施环境中包括多个终端设备101以及一个车载设备102,该多个终端设备101可以分别与车载设备102建立数据连接,以进行数据传输。以一个终端设备101与车载设备102之间建立了数据连接为例,该终端设备101可以被称为源设备、该车载设备102可以被称为目标设备。当然,这里是以终端设备101向车载设备102发送数据为例,当车载设备102 向终端设备101发送数据时,其称谓反向同理。
图2是本申请实施例提供的一种数据传输方法的流程图。参见图2,该方法应用于源设备,所述方法包括:
201、基于待传输的数据,生成所述数据的第一虚拟卡片。
202、当检测到对所述第一虚拟卡片的指定操作时,向目标设备发送所述数据;其中,所述目标设备生成与所述第一虚拟卡片对应的第二虚拟卡片。
203、根据所述指定操作的操作方向,确定所述第一虚拟卡片的移动方向;在数据发送过程中,显示第一移动过程,所述第一移动过程包括所述第一虚拟卡片从所述源设备移出的过程;所述目标设备配合所述源设备显示所述第二虚拟卡片移入所述目标设备的过程。
本申请实施例提供的方法,通过源设备和目标设备在数据传输过程中,一端显示用于代表数据的虚拟卡片飞出设备的过程,另一端配合互补显示虚拟卡片进入设备的过程,以一种连续显示的方式真实的体现了数据传输过程,大大提高了数据传输的直观性。
在一种可能实现方式中,基于待传输的数据,生成所述数据的第一虚拟卡片包括:根据所述待传输的数据的数据类型,生成与所述数据类型对应形状的第一虚拟卡片,不同数据类型对应于不同形状;或,根据所述待传输的数据的数据类型,生成与所述数据类型对应颜色的第一虚拟卡片,不同数据类型对应于不同颜色;或,根据所述待传输的数据的数据类型,生成与所述数据类型对应形状以及对应颜色的第一虚拟卡片,不同数据类型对应于不同形状以及不同颜色。
在一种可能实现方式中,当检测到对所述第一虚拟卡片的指定操作时,向目标设备发送所述数据包括:当检测到对所述第一虚拟卡片的拖拽操作时,如果所述拖拽操作的触摸点与所述源设备的屏幕边缘之间的 距离持续减小且所述距离小于预设距离,则向所述目标设备发送所述数据;或,当检测到对所述第一虚拟卡片的滑动操作时,如果所述滑动操作的触摸点与所述源设备的屏幕边缘之间的距离持续减小且滑动速度大于预设速度,则向所述目标设备发送所述数据。
在一种可能实现方式中,所述显示第一移动过程包括:
根据所述源设备和所述目标设备的屏幕尺寸,获取虚拟屏幕;其中,所述虚拟屏幕包括所述源设备的屏幕和所述目标设备的屏幕;
确定所述第一虚拟卡片和所述第二虚拟卡片在所述虚拟屏幕上的移动轨迹,以及
根据所述第一虚拟卡片的移动轨迹,显示所述第一虚拟卡片从所述源设备移出的过程;其中,所述目标设备根据所述第二虚拟卡片的移动轨迹,配合所述源设备显示所述第二虚拟卡片移入所述目标设备的过程。
在一种可能实现方式中,所述待传输的数据为多项数据时,所生成的第一虚拟卡片包括所述多项数据的多个第一虚拟卡片;在数据发送过程中,显示所述第一移动过程包括:在所述数据发送过程中,显示所述多项数据的多个第一虚拟卡片按照数据发送顺序移出所述源设备的过程。
上述所有可选技术方案,可以采用任意结合形成本公开的可选实施例,在此不再一一赘述。
图3是本申请实施例提供的一种数据传输方法的流程图。参见图3,该方法应用于目标设备,所述方法包括:
301、接收源设备发送的数据;其中,所述源设备为所述数据生成第一虚拟卡片。
302、获取代表所述数据的且与所述第一虚拟卡片对应的第二虚拟 卡片。
303、确定所述源设备与所述目标设备之间的位置关系;根据所述位置关系,确定所述第二虚拟卡片的移动方向;在数据接收过程中,显示第二移动过程,所述第二移动过程包括所述第二虚拟卡片移入所述目标设备的过程,所述源设备配合所述目标设备显示所述第一虚拟卡片从所述源设备移出的过程。
本申请实施例提供的方法,通过源设备和目标设备在数据传输过程中,一端显示用于代表数据的虚拟卡片飞出设备的过程,另一端配合互补显示虚拟卡片进入设备的过程,以一种连续显示的方式真实的体现了数据传输过程,大大提高了数据传输的直观性。
在一种可能实现方式中,所述获取所述数据的第二虚拟卡片包括:根据所述数据的数据类型,生成所述数据的第二虚拟卡片;或,接收所述源设备发送的第一虚拟卡片的虚拟卡片信息,根据所述虚拟卡片信息,生成所述数据的第二虚拟卡片。
在一种可能实现方式中,所述显示第二移动过程包括:根据所述源设备和所述目标设备的屏幕尺寸,获取虚拟屏幕;其中,所述虚拟屏幕包括所述源设备的屏幕和所述目标设备的屏幕;
确定所述第一虚拟卡片和所述第二虚拟卡片在所述虚拟屏幕上的移动轨迹,以及
根据所述第二虚拟卡片的移动轨迹,显示所述第二虚拟卡片移入所述目标设备的过程;其中,所述源设备根据所述第一虚拟卡片的移动轨迹,配合所述目标设备显示所述第一虚拟卡片从所述源设备移出所述源设备的过程。
在一种可能实现方式中,在数据接收过程中,显示第二移动过程包括:当开始接收多个源设备发送的数据时,按照接收顺序,显示多个第 二虚拟卡片进入所述目标设备的显示界面并在所述目标设备的显示界面上移动至指定位置的过程。
在一种可能实现方式中,在数据接收过程中,显示第二移动过程包括:如果所述数据的数量大于预设阈值,则显示所述第二虚拟卡片进入所述目标设备的显示界面并在所述目标设备的显示界面上移动至指定位置,并在所述指定位置上显示所述第二虚拟卡片和数据的实时传输进度。
上述所有可选技术方案,可以采用任意结合形成本公开的可选实施例,在此不再一一赘述。
图4是本申请实施例提供的一种数据传输方法的流程图。参见图4,该实施例以一个源设备进行数据发送,另一目标设备进行数据接收为例进行说明,具体包括以下步骤:
401、源设备基于待传输的数据,生成该数据的虚拟卡片。
该虚拟卡片包括数据名称,当然,该虚拟卡片还可以包括数据类型等其他数据信息。待传输的数据可以有多种类型,如视频文件、音频文件或文本文档等,对于不同类型的数据,源设备可以生成不同形式的虚拟卡片,该不同形式是指形状与颜色中任一种显示元素等。例如,对于音频文件来说,可以生成一信封形状的虚拟卡片,且信封表面显示有音符,而对于视频文件来说,可以生成一信封形状的虚拟卡片,且信封表面显示有用于表示播放的播放符号,而上述虚拟卡片的颜色也可以根据数据类型的不同而不同。具体地,该生成过程可以包括以下任一种方式:
第一种方式、根据该待传输的数据的数据类型,生成与该数据类型对应形状的虚拟卡片,不同数据类型对应于不同形状。
第二种方式、根据该待传输的数据的数据类型,生成与该数据类型 对应颜色的虚拟卡片,不同数据类型对应于不同颜色;或,
第三种方式、根据该待传输的数据的数据类型,生成与该数据类型对应形状以及对应颜色的虚拟卡片,不同数据类型对应于不同形状以及不同颜色。
至于采用哪种方式生成虚拟卡片,可以根据源设备上所设置的生成方式或设备间协议的生成方式进行,本申请实施例对此不做具体限定。当然,对于每种类型的数据,也可以生成形式一致的虚拟卡片。
402、当检测到对该虚拟卡片的指定操作时,源设备向目标设备发送该数据。
其中,该目标设备可以是指预先由源设备指定的设备,即预先建立了绑定关系的设备,也可以是指当前与源设备之间的距离处于一定范围内的设备,当然,如果在该一定范围内包括多个设备,则源设备可以从多个设备中根据该指定操作方向确定目标设备,此时,目标设备可以为该指定操作的操作方向所朝向的设备。
该指定操作可以是任一种操作,例如拖拽操作或滑动操作,使得用户可以通过手指在源设备的屏幕上对该虚拟卡片的简单操作,实现对发送数据的触发,从而使得源设备与目标设备进行建立数据传输连接等数据传输的准备工作,并开始向目标设备发送数据。
具体地,为了避免误操作等情况发生,该步骤402根据指定操作的操作类型的不同,还可以包括下述任一种实现方式:(1)当检测到对该虚拟卡片的拖拽操作时,如果该拖拽操作的触摸点与该源设备的屏幕边缘之间的距离持续减小且该距离小于预设距离,则向该目标设备发送该数据。如果该拖拽操作符合上述条件,则说明源设备用户正在将该虚拟卡片拖拽至屏幕边缘,则可以确定该用户想要发送数据,则向该目标设备发送数据。(2)当检测到对该虚拟卡片的滑动操作时,如果该滑动操 作的触摸点与该源设备的屏幕边缘之间的距离持续减小且滑动速度大于预设速度,则向该目标设备发送该数据。该第(2)种实现方式的原理与上述第(1)种实现方式的原理类似,在此不做赘述。
当然,需要说明的是,在检测到对该虚拟卡片的指定操作时,源设备可以通过与该目标设备进行交互,以建立源设备和目标设备之间的数据连接,从而可以使得源设备通过该数据连接,向目标设备发送数据。
403、在数据发送过程中,源设备显示第一移动过程,该第一移动过程包括该虚拟卡片移出所述源设备的过程。
为了直观的反映用户操作对数据发送的触发,在步骤403中,可以根据该指定操作的操作方向,确定该虚拟卡片在该第一移动过程中的移动方向。例如,该操作方向为向右滑动,则虚拟卡片在第一移动过程中的移动方向可以为向右,相应地,在目标设备上相应的虚拟卡片的第二移动过程中,其移动方向也相应为向右,(如图5所示)。当然,如果该操作方向为向右上方滑动,则虚拟卡片在第一移动过程中的移动方向可以为向右上方移动,以保证所显示的移动过程更加贴近实际操作。
进一步地,该第一移动过程与第二移动过程共同表现了虚拟卡片从源设备飞出并飞入目标设备的过程,因此,对一个数据的虚拟卡片进行显示时,该两个设备的显示是互补的,也即是在源设备显示虚拟卡片的第一部分时,目标设备显示虚拟卡片的第二部分,该第一部分和第二部分之和为整个虚拟卡片。
在本申请实施例中,仅以待传输的数据为一项数据为例进行说明,而在实际场景中,该待传输的数据可以为多项数据。所生成的虚拟卡片包括该多项数据的多个虚拟卡片;在该数据发送过程中,显示该多项数据的多个虚拟卡片按照数据发送顺序移动至该目标设备的移动过程。当然,该多个虚拟卡片根据数据类型的不同,可以是不同形式。
需要说明的是,上述第一移动过程可以与数据发送进度同步,也可以不与数据发送进度同步,本申请实施例对此不做具体限定。其中,第一移动过程可以与数据发送进度同步可以是指源设备上的虚拟卡片显示比例根据数据传输百分比确定,例如,当前数据已传输了50%,则在源设备上显示该虚拟卡片的50%。而如果源设备和目标设备之间的数据连接发生中断,则可以在源设备和目标设备中至少一个设备上显示传输失败标识,例如,该传输失败标识可以为一个裂图。
404、目标设备接收源设备发送的数据。
该步骤404中的接收是指目标设备开始接收源设备发送的数据,该源设备发送数据的过程可以通过发送数据包的方式实现。
405、目标设备获取该数据的虚拟卡片。
对于目标设备来说,该虚拟卡片的获取方式可以有多种,可以由该目标设备根据源设备发送的数据获取,也根据该传输的数据的数据类型获取,具体地,包括下述任一种方式:(1)根据该数据的数据类型,生成该数据的虚拟卡片。在源设备开始向目标设备发送数据时,所发送的数据包中会携带该数据的数据类型,因此,对于目标设备来说,可以基于该数据类型,生成相应的虚拟卡片。其具体生成过程与上述步骤401中所述的生成过程同理,在此不做赘述。(2)接收该源设备发送的虚拟卡片信息,根据该虚拟卡片信息,生成该数据的虚拟卡片。在这种实现方式中,目标设备可以不根据数据类型进行虚拟卡片的生成,而是由源设备在数据包中携带虚拟卡片信息,该虚拟卡片信息用于描述虚拟卡片的具体显示形式,如颜色和形状等,由目标设备在接收到虚拟卡片信息后,生成该数据的虚拟卡片。
进一步地,该虚拟卡片在源设备上的显示尺寸和在目标设备上的显示尺寸可以不同(如图6所示),例如,目标设备可以根据自身屏幕大 小,生成显示尺寸与该屏幕大小匹配的虚拟卡片,或者,目标设备可以根据目标设备上预设的虚拟卡片的显示尺寸,生成与该预设的显示尺寸相同的虚拟卡片,本申请实施例对此不做限定。
对于目标设备来说,可以采用上述任一种虚拟卡片获取方式以进行虚拟卡片的显示,本申请实施例对此不做具体限定。
406、在数据接收过程中,显示第二移动过程,该第二移动过程包括目标设备生成的虚拟卡片移入所述目标设备的过程。
需要说明的是,上述步骤403和步骤406是指源设备和目标设备配合显示源设备生成的虚拟卡片从源设备移出以及目标设备生成的虚拟卡片移入目标设备的过程。该移动过程不仅包括了源设备的虚拟卡片在源设备屏幕上从指定位置移动至源设备屏幕的边缘,并逐渐以退出的方式显示部分虚拟卡片,直至虚拟卡片完全退出源设备屏幕的过程,还包括了目标设备的虚拟卡片以进入的方式从目标设备屏幕边缘逐渐进入目标设备屏幕,直到虚拟卡片移动至目标设备屏幕的指定位置的过程(如图5和图7所示)。
该源设备和目标设备可以在数据传输过程中采用以下方式一或方式二中任一种方式实现上述动态显示:
方式一、在建立数据传输连接时,确定主设备和从设备,由主设备根据该源设备和目标设备的屏幕尺寸,获取虚拟屏幕,该虚拟屏幕包括源设备的屏幕和目标设备的屏幕,由主设备确定源设备和目标设备的虚拟卡片在虚拟屏幕上的移动轨迹,从而控制源设备和目标设备配合显示该虚拟卡片从源设备移动至目标设备的移动过程。在一些实施例中,该主设备可以为作为数据接收方的目标设备。当然,该主设备还可以由参与数据传输的源设备和目标设备选举得出,其选举过程可以依据设备性能、设备当前可用计算资源等进行,本申请实施例对此不做具体限定。
方式二、在数据传输过程中,基于一定移动速度来确定两个设备上虚拟卡片的显示,例如,在源设备上以指定速度将该虚拟卡片从指定位置沿着用户的操作方向移出屏幕,在目标设备上以指定速度该虚拟卡片从屏幕边缘移动至该目标设备屏幕上的指定位置。该指定速度可以为一预设速度,也可以为根据数据传输速度估计得到的速度(例如平均速度或实时速度),本申请实施例对此不做具体限定。
该目标设备上所显示的第二移动过程可以表现为不同移动方向,具体表现为哪种移动方向可以根据该目标设备与源设备之间的位置关系不同来确定,从而展示更加直观且具有连续性的移动效果。为了展示这种具有移动效果,可以在上述开始传输数据、初始建立连接或目标设备尚未开始显示的任一时刻,确定该源设备与目标设备之间的位置关系;根据该位置关系,确定该虚拟卡片在该第二移动过程中的移动方向,不同位置关系对应于不同移动方向。上述位置关系可以是指在平面上的位置关系。
需要说明的是,可以将位置关系粗略分成如图8中的方向,即在坐标轴上将360度八等分,其位置关系与那个方向的差值小于预设阈值,则将位置关系在平面上表现为源设备在目标设备的西南方,则该移动方向可以为如图8中箭头方向所示的移动方向。
当然,上述位置关系划分以及移动方向的确定可以是如上述粗略划分,还可以精确确定,如以设备之间的实际位置关系确定移动方向,本申请实施例对此不做具体限定。
在本申请的另一实施例中,对于在目标设备上以指定速度该虚拟卡片从屏幕边缘移动至该目标设备屏幕上的指定位置的场景下,由于该指定速度可以为一预设速度,因此,可能在虚拟卡片移动到指定位置时,该数据并未传输完毕,因此,可以有以下情况:如果该数据大于预设阈 值,则显示该虚拟卡片进入目标设备的显示界面并在该目标设备的显示界面上移动至指定位置,并在该指定位置上显示该虚拟卡片和数据的实时传输进度,如图9所示,该实时传输进度可以真实体现数据传输的百分比,也可以仅是对数据传输未完成的一个提示,并不一定是根据实际传输比例进行显示,例如,只要传输未完成,则一直显示一个未达到百分之百的进度条,一旦传输完成,则显示一个达到百分之百的进度条。上述预设阈值可以预先设置,本申请实施例对此不做具体限定。
当然,对于设备之间传输速度过慢的情况,也可以先显示该虚拟卡片进入目标设备的显示界面并在该目标设备的显示界面上移动至指定位置,并在该指定位置上显示该虚拟卡片和数据的实时传输进度,以便提供更流程和直观的传输体验。
需要说明的是,上述实施例是以一个源设备和一个目标设备之间的传输为例进行说明,而实际应用中,还可以有多个源设备向一个目标设备进行数据传输,该数据传输可以是并行传输,也可以是串行传输,具体哪个源设备在先进行传输还是在后进行传输,可以根据源设备的优先级或源设备的建立数据连接的时序进行,因此,对于目标设备来说,当开始接收多个源设备发送的数据时,按照接收顺序,显示多个虚拟卡片进入目标设备的显示界面并在该目标设备的显示界面上移动至指定位置的过程,如图10所示。其中,每个虚拟卡片在目标设备屏幕上的移动轨迹可以是抛物线型或是直线型等形式,本申请实施例对此不做具体限定。
本申请实施例仅是以源设备为终端设备,目标设备为车机设备或车载设备为例进行说明的,在实际使用中,还可以由车机设备或车载设备作为源设备,以终端设备为源设备进行数据传输,其具体过程与上述过程同理,在此不做赘述。
需要说明的是,上述步骤中的第一移动过程和第二移动过程的具体显示效果,可以根据源设备上进行指定操作的速度和力度中至少一项确定,以模拟真实物理移动效果,不同速度可以对应于不同显示效果,如速度越大,虚拟卡片的飞出速度越快,不同力度可以对应于不同显示效果,如力度越大,虚拟卡片飞出时的抛物线顶点越高,虚拟卡片在目标设备中的落点越远。
本申请实施例提供的方法,通过源设备和目标设备在数据传输过程中,一端显示用于代表数据的虚拟卡片飞出设备的过程,另一端配合互补显示虚拟卡片进入设备的过程,以一种连续显示的方式真实的体现了数据传输过程,大大提高了数据传输的直观性。
图11是本申请实施例提供的一种数据传输装置的结构示意图。该装置应用于源设备。参见图11,所述装置包括:
生成模块1101,用于基于待传输的数据,生成所述数据的第一虚拟卡片;
发送模块1102,用于当检测到对所述第一虚拟卡片的指定操作时,向目标设备发送所述数据;其中,所述目标设备生成与所述第一虚拟卡片对应的第二虚拟卡片;
显示模块1103,用于根据所述指定操作的操作方向,确定所述第一虚拟卡片的移动方向,在数据发送过程中,显示第一移动过程,所述第一移动过程包括所述第一虚拟卡片从所述源设备按照上述确定的移动方向移出的过程;所述目标设备配合所述源设备显示所述第二虚拟卡片移入所述目标设备的过程。
在一些实施例中,所述生成模块1101用于:
根据所述待传输的数据的数据类型,生成与所述数据类型对应形状 的第一虚拟卡片,不同数据类型对应于不同形状;或,
根据所述待传输的数据的数据类型,生成与所述数据类型对应颜色的第一虚拟卡片,不同数据类型对应于不同颜色;或,
根据所述待传输的数据的数据类型,生成与所述数据类型对应形状以及对应颜色的第一虚拟卡片,不同数据类型对应于不同形状以及不同颜色。
在一些实施例中,所述发送模块1102用于:
当检测到对所述第一虚拟卡片的拖拽操作时,如果所述拖拽操作的触摸点与所述源设备的屏幕边缘之间的距离持续减小且所述距离小于预设距离,则向所述目标设备发送所述数据;或,
当检测到对所述第一虚拟卡片的滑动操作时,如果所述滑动操作的触摸点与所述源设备的屏幕边缘之间的距离持续减小且滑动速度大于预设速度,则向所述目标设备发送所述数据。
在一些实施例中,所述显示模块1103用于根据所述源设备和所述目标设备的屏幕尺寸,获取虚拟屏幕;其中,所述虚拟屏幕包括所述源设备的屏幕和所述目标设备的屏幕;
确定所述第一虚拟卡片和所述第二虚拟卡片在所述虚拟屏幕上的移动轨迹,以及
根据所述第一虚拟卡片的移动轨迹,显示所述第一虚拟卡片从所述源设备移出的过程;所述目标设备根据所述第二虚拟卡片的移动轨迹,配合所述源设备显示所述第二虚拟卡片移入所述目标设备的过程。
在一些实施例中,所述待传输的数据为多项数据时,所生成的第一虚拟卡片包括所述多项数据的多个第一虚拟卡片;
相应地,所述显示模块1103用于在所述数据发送过程中,显示所述多项数据的多个第一虚拟卡片按照数据发送顺序出所述源设备的过 程。
图12是本申请实施例提供的一种数据传输装置的结构示意图。所述装置应用于目标设备。参见图12,所述装置包括:
接收模块1201,用于接收源设备发送的数据;其中,所述源设备为所述数据生成第一虚拟卡片;
获取模块1202,用于获取所述代表所述数据的且与所述第一虚拟卡片对应的第二虚拟卡片;
确定模块1203,用于确定所述源设备与所述目标设备之间的位置关系;
显示模块1204,用于根据所述位置关系,确定所述第二虚拟卡片的移动方向,在数据接收过程中,显示第二移动过程,所述第二移动过程包括所述第二虚拟卡片移入所述目标设备的过程,所述源设备配合所述目标设备显示所述第一虚拟卡片从所述源设备移出的过程。
在一些实施例中,所述获取模块1202用于:
根据所述数据的数据类型,生成所述数据的第二虚拟卡片;或,
接收所述源设备发送的第一虚拟卡片的虚拟卡片信息,根据所述虚拟卡片信息,生成所述数据的第二虚拟卡片。
在一些实施例中,所述显示模块1204用于根据所述源设备和所述目标设备的屏幕尺寸,获取虚拟屏幕;其中,所述虚拟屏幕包括所述源设备的屏幕和所述目标设备的屏幕;
确定所述第一虚拟卡片和所述第二虚拟卡片在所述虚拟屏幕上的移动轨迹,以及
根据所述第二虚拟卡片的移动轨迹,显示所述第二虚拟卡片移入所述目标设备的过程;所述源设备根据所述第一虚拟卡片的移动轨迹,配合所述目标设备显示所述第一虚拟卡片从所述源设备移出所述源设备 的过程。
在一些实施例中,所述显示模块1204用于当开始接收多个源设备发送的数据时,按照接收顺序,显示多个第二虚拟卡片进入所述目标设备的显示界面并在所述目标设备的显示界面上移动至指定位置的过程。
在一些实施例中,所述显示模块1204用于如果所述数据的数量大于预设阈值,则显示所述第二虚拟卡片进入所述目标设备的显示界面并在所述目标设备的显示界面上移动至指定位置,并在所述指定位置上显示所述第二虚拟卡片和数据的实时传输进度。
需要说明的是:上述实施例提供的数据传输装置在数据传输时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的数据传输装置与数据传输方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。
本实施例提供了一种终端,该终端可以用于执行上述各个实施例中提供的数据传输方法。参见图13,该终端1300包括:
终端1300可以包括RF(Radio Frequency,射频)电路110、包括有一个或一个以上计算机可读存储介质的存储器120、输入单元130、显示单元140、传感器150、音频电路160、WiFi(Wireless Fidelity,无线保真)模块170、包括有一个或者一个以上处理核心的处理器180、以及电源190等部件。本领域技术人员可以理解,图13中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:
RF电路110可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,交由一个或者一个以上处理器180处 理;另外,将涉及上行的数据发送给基站。通常,RF电路110包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(SIM)卡、收发信机、耦合器、LNA(Low Noise Amplifier,低噪声放大器)、双工器等。此外,RF电路110还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于GSM(Global System of Mobile communication,全球移动通讯系统)、GPRS(General Packet Radio Service,通用分组无线服务)、CDMA(Code Division Multiple Access,码分多址)、WCDMA(Wideband Code Division Multiple Access,宽带码分多址)、LTE(Long Term Evolution,长期演进)、电子邮件、SMS(Short Messaging Service,短消息服务)等。
存储器120可用于存储软件程序以及模块,处理器180通过运行存储在存储器120的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器120可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据终端1300的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器120还可以包括存储器控制器,以提供处理器180和输入单元130对存储器120的访问。
输入单元130可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,输入单元130可包括触敏表面131以及其他输入设备132。触敏表面131,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触 敏表面131上或在触敏表面131附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面131可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器180,并能接收处理器180发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面131。除了触敏表面131,输入单元130还可以包括其他输入设备132。具体地,其他输入设备132可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元140可用于显示由用户输入的信息或提供给用户的信息以及终端1300的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元140可包括显示面板141,可选的,可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板141。进一步的,触敏表面131可覆盖显示面板141,当触敏表面131检测到在其上或附近的触摸操作后,传送给处理器180以确定触摸事件的类型,随后处理器180根据触摸事件的类型在显示面板141上提供相应的视觉输出。虽然在图13中,触敏表面131与显示面板141是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面131与显示面板141集成而实现输入和输出功能。
终端1300还可包括至少一种传感器150,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板141的亮度,接近传感器可在终端1300移动到耳边时,关闭显示面板141和/ 或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于终端1300还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路160、扬声器161,传声器162可提供用户与终端1300之间的音频接口。音频电路160可将接收到的音频数据转换后的电信号,传输到扬声器161,由扬声器161转换为声音信号输出;另一方面,传声器162将收集的声音信号转换为电信号,由音频电路160接收后转换为音频数据,再将音频数据输出处理器180处理后,经RF电路110以发送给比如另一终端,或者将音频数据输出至存储器120以便进一步处理。音频电路160还可能包括耳塞插孔,以提供外设耳机与终端1300的通信。
WiFi属于短距离无线传输技术,终端1300通过WiFi模块170可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图13示出了WiFi模块170,但是可以理解的是,其并不属于终端1300的必须构成,完全可以根据需要在不改变申请的本质的范围内而省略。
处理器180是终端1300的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行终端1300的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器180可包括一个或多个处理核心;优选的,处理器180可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程 序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器180中。
终端1300还包括给各个部件供电的电源190(比如电池),优选的,电源可以通过电源管理系统与处理器180逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源190还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。
尽管未示出,终端1300还可以包括摄像头、蓝牙模块等,在此不再赘述。具体在本实施例中,终端的显示单元是触摸屏显示器,终端还包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行。所述一个或者一个以上程序包含用于执行上述图2或图4中源设备所执行操作的指令。
图14是根据一示例性实施例示出的一种数据传输装置1400的框图。例如,装置1400可以被提供为一车载控制设备。参照图14,装置1400包括处理组件1422,其进一步包括一个或多个处理器,以及由存储器1432所代表的存储器资源,用于存储可由处理部件1422的执行的指令,例如应用程序。存储器1432中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件1422被配置为执行指令,以执行上述图3或图4中目标设备侧的数据传输方法。
装置1400还可以包括一个电源组件1426被配置为执行装置1400的电源管理,一个有线或无线网络接口1450被配置为将装置1400连接到网络,和一个输入输出(I/O)接口1458。装置1400可以操作基于存储在存储器1432的操作系统,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
以上所述仅为本申请的较佳实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

Claims (22)

  1. 一种数据传输方法,应用于源设备,其特征在于,所述方法包括:
    基于待传输的数据,生成所述数据的第一虚拟卡片;
    当检测到对所述第一虚拟卡片的指定操作时,向目标设备发送所述数据;其中,所述目标设备生成与所述第一虚拟卡片对应的第二虚拟卡片;
    根据所述指定操作的操作方向,确定所述第一虚拟卡片的移动方向;
    在数据发送过程中,显示第一移动过程,所述第一移动过程包括所述第一虚拟卡片从所述源设备按照所述确定的移动方向移出的过程;所述目标设备配合所述源设备显示所述第二虚拟卡片移入所述目标设备的过程。
  2. 根据权利要求1所述的方法,其特征在于,基于待传输的数据,生成所述数据的第一虚拟卡片包括:
    根据所述待传输的数据的数据类型,生成与所述数据类型对应形状的第一虚拟卡片,不同数据类型对应于不同形状;或,
    根据所述待传输的数据的数据类型,生成与所述数据类型对应颜色的第一虚拟卡片,不同数据类型对应于不同颜色;或,
    根据所述待传输的数据的数据类型,生成与所述数据类型对应形状以及对应颜色的第一虚拟卡片,不同数据类型对应于不同形状以及不同颜色。
  3. 根据权利要求1所述的方法,其特征在于,当检测到对所述第一虚拟卡片的指定操作时,向目标设备发送所述数据包括:
    当检测到对所述第一虚拟卡片的拖拽操作时,如果所述拖拽操作的触摸点与所述源设备的屏幕边缘之间的距离持续减小且所述距离小于预设距离,则向所述目标设备发送所述数据;或,
    当检测到对所述第一虚拟卡片的滑动操作时,如果所述滑动操作的触摸点与所述源设备的屏幕边缘之间的距离持续减小且滑动速度大于预设速度,则向所述目标设备发送所述数据。
  4. 根据权利要求1所述的方法,其特征在于,所述显示第一移动过程包括:
    根据所述源设备和所述目标设备的屏幕尺寸,获取虚拟屏幕;其中,所述虚拟屏幕包括所述源设备的屏幕和所述目标设备的屏幕;
    确定所述第一虚拟卡片和所述第二虚拟卡片在所述虚拟屏幕上的移动轨迹,以及
    根据所述第一虚拟卡片的移动轨迹,显示所述第一虚拟卡片从所述源设备移出的过程;其中,所述目标设备根据所述第二虚拟卡片的移动轨迹,配合所述源设备显示所述第二虚拟卡片移入所述目标设备的过程。
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述待传输的数据为多项数据时,所生成的第一虚拟卡片包括所述多项数据的多个第一虚拟卡片;
    在数据发送过程中,显示所述第一移动过程包括:
    在所述数据发送过程中,显示所述多项数据的多个第一虚拟卡片按照数据发送顺序移出所述源设备的移动过程。
  6. 根据权利要求1所述的方法,其特征在于,所述第一虚拟卡片 和所述第二虚拟卡片分别由第一部分和第二部分组成;当所述源设备显示所述第一虚拟卡片的第一部分时,所述目标设备显示所述第二虚拟卡片的第二部分。
  7. 一种数据传输方法,应用于目标设备,其特征在于,所述方法包括:
    接收源设备发送的数据;其中,所述源设备为所述数据生成第一虚拟卡片;
    获取代表所述数据的且与所述第一虚拟卡片对应的第二虚拟卡片;
    确定所述源设备与所述目标设备之间的位置关系;
    根据所述位置关系,确定所述第二虚拟卡片的移动方向;
    在数据接收过程中,显示第二移动过程,所述第二移动过程包括所述第二虚拟卡片按照所述确定的移动方向移入所述目标设备的过程,所述源设备配合所述目标设备显示所述第一虚拟卡片从所述源设备移出的过程。
  8. 根据权利要求7所述的方法,其特征在于,所述获取所述数据的第二虚拟卡片包括:
    根据所述数据的数据类型,生成所述数据的第二虚拟卡片;或,
    接收所述源设备发送的第一虚拟卡片的虚拟卡片信息,根据所述虚拟卡片信息,生成所述数据的第二虚拟卡片。
  9. 根据权利要求7所述的方法,其特征在于,所述显示第二移动过程包括:
    根据所述源设备和所述目标设备的屏幕尺寸,获取虚拟屏幕;其中, 所述虚拟屏幕包括所述源设备的屏幕和所述目标设备的屏幕;
    确定所述第一虚拟卡片和所述第二虚拟卡片在所述虚拟屏幕上的移动轨迹,以及
    根据所述第二虚拟卡片的移动轨迹,显示所述第二虚拟卡片移入所述目标设备的过程;其中,所述源设备根据所述第一虚拟卡片的移动轨迹,配合所述目标设备显示所述第一虚拟卡片从所述源设备移出所述源设备的过程。
  10. 根据权利要求7所述的方法,其特征在于,在数据接收过程中,显示第二移动过程包括:
    当开始接收多个源设备发送的数据时,按照接收顺序,显示多个第二虚拟卡片进入所述目标设备的显示界面并在所述目标设备的显示界面上移动至指定位置的过程。
  11. 根据权利要求7所述的方法,其特征在于,在数据接收过程中,显示第二移动过程包括:
    如果所述数据的数量大于预设阈值,则显示所述第二虚拟卡片进入所述目标设备的显示界面并在所述目标设备的显示界面上移动至指定位置,并在所述指定位置上显示所述第二虚拟卡片和数据的实时传输进度。
  12. 根据权利要求7所述的方法,其特征在于,所述第一虚拟卡片和所述第二虚拟卡片分别由第一部分和第二部分组成;当所述源设备显示所述第一虚拟卡片的第一部分时,所述目标设备显示所述第二虚拟卡片的第二部分。
  13. 一种数据传输装置,应用于源设备,其特征在于,所述装置包括:
    生成模块,用于基于待传输的数据,生成所述数据的第一虚拟卡片;
    发送模块,用于当检测到对所述第一虚拟卡片的指定操作时,向目标设备发送所述数据;其中,所述目标设备生成与所述第一虚拟卡片对应的第二虚拟卡片;
    显示模块,用于根据所述指定操作的操作方向,确定所述第一虚拟卡片的移动方向,在数据发送过程中,显示第一移动过程,所述第一移动过程包括所述第一虚拟卡片从所述源设备按照上述确定的移动方向移出的过程;所述目标设备配合所述源设备显示所述第二虚拟卡片移入所述目标设备的过程。
  14. 根据权利要求13所述的装置,其特征在于,所述生成模块用于:
    根据所述待传输的数据的数据类型,生成与所述数据类型对应形状的第一虚拟卡片,不同数据类型对应于不同形状;或,
    根据所述待传输的数据的数据类型,生成与所述数据类型对应颜色的第一虚拟卡片,不同数据类型对应于不同颜色;或,
    根据所述待传输的数据的数据类型,生成与所述数据类型对应形状以及对应颜色的第一虚拟卡片,不同数据类型对应于不同形状以及不同颜色。
  15. 根据权利要求13所述的装置,其特征在于,所述发送模块用于:
    当检测到对所述第一虚拟卡片的拖拽操作时,如果所述拖拽操作的触摸点与所述源设备的屏幕边缘之间的距离持续减小且所述距离小于预设距离,则向所述目标设备发送所述数据;或,
    当检测到对所述第一虚拟卡片的滑动操作时,如果所述滑动操作的触摸点与所述源设备的屏幕边缘之间的距离持续减小且滑动速度大于预设速度,则向所述目标设备发送所述数据。
  16. 根据权利要求13所述的装置,其特征在于,所述显示模块用于
    根据所述源设备和所述目标设备的屏幕尺寸,获取虚拟屏幕;其中,所述虚拟屏幕包括所述源设备的屏幕和所述目标设备的屏幕;
    确定所述第一虚拟卡片和所述第二虚拟卡片在所述虚拟屏幕上的移动轨迹,以及
    根据所述第一虚拟卡片的移动轨迹,显示所述第一虚拟卡片从所述源设备移出的过程;其中,所述目标设备根据所述第二虚拟卡片的移动轨迹,配合所述源设备显示所述第二虚拟卡片移入所述目标设备的过程。
  17. 根据权利要求13-16任一项所述的装置,其特征在于,所述待传输的数据为多项数据时,所生成的第一虚拟卡片包括所述多项数据的多个第一虚拟卡片;
    所述显示模块用于在所述数据发送过程中,显示所述多项数据的多个第一虚拟卡片按照数据发送顺序移出所述源设备的过程。
  18. 一种数据传输装置,应用于目标设备,其特征在于,所述装置包括:
    接收模块,用于接收源设备发送的数据;其中,所述源设备为所述数据生成第一虚拟卡片;
    获取模块,用于获取代表所述数据的且与所述第一虚拟卡片对应的第二虚拟卡片;
    确定模块,用于确定所述源设备与所述目标设备之间的位置关系;
    显示模块,用于根据所述位置关系,确定所述第二虚拟卡片的移动方向,在数据接收过程中,显示第二移动过程,所述第二移动过程包括所述第二虚拟卡片按照所述确定的移动方向移入至所述目标设备的过程,所述源设备配合所述目标设备显示所述第一虚拟卡片从所述源设备移出的过程。
  19. 根据权利要求18所述的装置,其特征在于,所述获取模块用于:
    根据所述数据的数据类型,生成所述数据的第二虚拟卡片;或,
    接收所述源设备发送的第一虚拟卡片的虚拟卡片信息,根据所述虚拟卡片信息,生成所述数据的第二虚拟卡片。
  20. 根据权利要求18所述的装置,其特征在于,所述显示模块进一步用于:
    根据所述源设备和所述目标设备的屏幕尺寸,获取虚拟屏幕;其中,所述虚拟屏幕包括所述源设备的屏幕和所述目标设备的屏幕;
    确定所述第一虚拟卡片和所述第二虚拟卡片在所述虚拟屏幕上的移动轨迹,以及
    根据所述第二虚拟卡片的移动轨迹,显示所述第二虚拟卡片移入所述目标设备的过程;其中,所述源设备根据所述第一虚拟卡片的移动轨 迹,配合所述目标设备显示所述第一虚拟卡片从所述源设备移出所述源设备的过程。
  21. 根据权利要求18所述的装置,其特征在于,所述显示模块用于当开始接收多个源设备发送的数据时,按照接收顺序,显示多个第二虚拟卡片进入所述目标设备的显示界面并在所述目标设备的显示界面上移动至指定位置的过程。
  22. 根据权利要求18所述的装置,其特征在于,所述显示模块用于如果所述数据的数量大于预设阈值,则显示所述第二虚拟卡片进入所述目标设备的显示界面并在所述目标设备的显示界面上移动至指定位置,并在所述指定位置上显示所述第二虚拟卡片和数据的实时传输进度。
PCT/CN2017/071825 2016-01-29 2017-01-20 数据传输方法及装置 WO2017129053A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/972,839 US11048403B2 (en) 2016-01-29 2018-05-07 Method and device for animating graphic symbol for indication of data transmission

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610067069.5A CN105681441B (zh) 2016-01-29 2016-01-29 数据传输方法及装置
CN201610067069.5 2016-01-29

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/972,839 Continuation US11048403B2 (en) 2016-01-29 2018-05-07 Method and device for animating graphic symbol for indication of data transmission

Publications (1)

Publication Number Publication Date
WO2017129053A1 true WO2017129053A1 (zh) 2017-08-03

Family

ID=56303847

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/071825 WO2017129053A1 (zh) 2016-01-29 2017-01-20 数据传输方法及装置

Country Status (3)

Country Link
US (1) US11048403B2 (zh)
CN (1) CN105681441B (zh)
WO (1) WO2017129053A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109582407A (zh) * 2017-09-29 2019-04-05 慧与发展有限责任合伙企业 卡片系统框架

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105681441B (zh) 2016-01-29 2019-06-28 腾讯科技(深圳)有限公司 数据传输方法及装置
CN106951202B (zh) * 2017-02-04 2021-01-01 合肥杰发科技有限公司 将移动终端扩展成车载终端移动屏幕的方法及车载终端
CN113169985A (zh) * 2018-12-29 2021-07-23 深圳市柔宇科技股份有限公司 基于数据传输的显示方法、电子设备及计算机可读存储介质
CN110515579A (zh) * 2019-08-28 2019-11-29 北京小米移动软件有限公司 投屏方法、装置、终端及存储介质
JP7380103B2 (ja) 2019-11-12 2023-11-15 富士フイルムビジネスイノベーション株式会社 情報処理装置及びプログラム
CN113220248A (zh) * 2020-01-21 2021-08-06 深圳市超捷通讯有限公司 跨屏显示方法、显示设备及车辆
CN111666055B (zh) * 2020-04-24 2021-12-14 华为技术有限公司 数据的传输方法及装置
US11568384B2 (en) * 2020-12-04 2023-01-31 Code Inc. Cryptocurrency transactions with synchronized images
CN116431038B (zh) * 2023-06-13 2023-10-03 Tcl通讯科技(成都)有限公司 外置存储设备的连接通断提示方法、装置、介质及设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7636794B2 (en) * 2005-10-31 2009-12-22 Microsoft Corporation Distributed sensing techniques for mobile devices
CN102685175A (zh) * 2011-03-18 2012-09-19 宏碁股份有限公司 手持式装置及其相关数据传输方法
CN103944934A (zh) * 2013-01-21 2014-07-23 联想(北京)有限公司 一种信息传输方法、电子设备及服务器
CN104484144A (zh) * 2014-12-10 2015-04-01 广东欧珀移动通信有限公司 图片传输方法及装置
CN105681441A (zh) * 2016-01-29 2016-06-15 腾讯科技(深圳)有限公司 数据传输方法及装置

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7086011B2 (en) * 2001-07-27 2006-08-01 Hewlett-Packard Development Company, L.P. Multi-component iconic representation of file characteristics
US20090199275A1 (en) * 2008-02-06 2009-08-06 David Brock Web-browser based three-dimensional media aggregation social networking application
US9248376B2 (en) * 2008-09-30 2016-02-02 Nintendo Co., Ltd. Computer-readable storage medium having stored game program therein, and game apparatus
CN102446062A (zh) * 2011-08-31 2012-05-09 鸿富锦精密工业(深圳)有限公司 物件传输系统及物件发送设备和接收设备
CN102624873B (zh) * 2012-02-16 2015-07-29 上海华勤通讯技术有限公司 图片分享方法、系统及电子设备
US10169957B2 (en) * 2014-02-13 2019-01-01 Igt Multiple player gaming station interaction systems and methods
US9648062B2 (en) * 2014-06-12 2017-05-09 Apple Inc. Systems and methods for multitasking on an electronic device with a touch-sensitive display
US20170052685A1 (en) * 2015-08-17 2017-02-23 Tenten Technologies Limited User experience for social sharing of electronic data via direct communication of touch screen devices

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7636794B2 (en) * 2005-10-31 2009-12-22 Microsoft Corporation Distributed sensing techniques for mobile devices
CN102685175A (zh) * 2011-03-18 2012-09-19 宏碁股份有限公司 手持式装置及其相关数据传输方法
CN103944934A (zh) * 2013-01-21 2014-07-23 联想(北京)有限公司 一种信息传输方法、电子设备及服务器
CN104484144A (zh) * 2014-12-10 2015-04-01 广东欧珀移动通信有限公司 图片传输方法及装置
CN105681441A (zh) * 2016-01-29 2016-06-15 腾讯科技(深圳)有限公司 数据传输方法及装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109582407A (zh) * 2017-09-29 2019-04-05 慧与发展有限责任合伙企业 卡片系统框架

Also Published As

Publication number Publication date
US11048403B2 (en) 2021-06-29
CN105681441B (zh) 2019-06-28
US20180253207A1 (en) 2018-09-06
CN105681441A (zh) 2016-06-15

Similar Documents

Publication Publication Date Title
WO2017129053A1 (zh) 数据传输方法及装置
EP2720135B1 (en) Data transmission method, data transmission device and terminal provided with touch screen
WO2018103525A1 (zh) 人脸关键点跟踪方法和装置、存储介质
WO2017206916A1 (zh) 处理器中内核运行配置的确定方法以及相关产品
WO2017140276A1 (zh) 网络连接方法及装置、计算机存储介质
WO2016169465A1 (zh) 一种显示弹幕信息的方法、装置和系统
TWI520043B (zh) 消息查看方法、裝置和移動終端
WO2016150331A1 (zh) 一种运行游戏客户端的方法和装置
WO2017088377A1 (zh) 消息撤回方法和装置
WO2016150270A1 (zh) 群组会话消息处理方法和装置
JP2018513499A (ja) 通信メッセージ送信方法及びウェアラブル・デバイス
WO2016119580A1 (zh) 一种开启终端的语音输入功能的方法、装置和终端
WO2015035796A1 (zh) 桌面显示方法、装置及终端
CN106375179B (zh) 一种显示即时通信消息的方法和装置
US10636228B2 (en) Method, device, and system for processing vehicle diagnosis and information
US10463965B2 (en) Control method of scene sound effect and related products
WO2018040813A1 (zh) 音视频通信方法、终端、服务器及存储介质
WO2018177207A1 (zh) 操作控制方法、装置及存储介质
EP3471450A1 (en) Network bandwidth management method, terminal and computer storage medium
WO2017096909A1 (zh) 建立数据连接的方法及装置
CN106951143B (zh) 隐藏应用图标的方法及装置
WO2019011335A1 (zh) 一种移动终端及其控制方法和可读存储介质
CN110072013B (zh) 终端控制方法及装置
WO2017128986A1 (zh) 多媒体菜单项的选择方法、装置及存储介质
CN110673770A (zh) 消息展示方法及终端设备

Legal Events

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

Ref document number: 17743668

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

Country of ref document: EP

Kind code of ref document: A1