WO2020232952A1 - 文件传输方法、装置及计算机可读存储介质 - Google Patents

文件传输方法、装置及计算机可读存储介质 Download PDF

Info

Publication number
WO2020232952A1
WO2020232952A1 PCT/CN2019/110484 CN2019110484W WO2020232952A1 WO 2020232952 A1 WO2020232952 A1 WO 2020232952A1 CN 2019110484 W CN2019110484 W CN 2019110484W WO 2020232952 A1 WO2020232952 A1 WO 2020232952A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
target device
icon
address
drag operation
Prior art date
Application number
PCT/CN2019/110484
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 北京小米移动软件有限公司
Priority to JP2019562562A priority Critical patent/JP7328900B2/ja
Priority to KR1020197033847A priority patent/KR102303784B1/ko
Priority to RU2019141051A priority patent/RU2743890C1/ru
Publication of WO2020232952A1 publication Critical patent/WO2020232952A1/zh

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
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/168Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs
    • 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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • 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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • 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/04842Selection of displayed objects or displayed text elements
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1863Arrangements for providing special services to substations for broadcast or conference, e.g. multicast comprising mechanisms for improved reliability, e.g. status reports
    • H04L12/1868Measures taken after transmission, e.g. acknowledgments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • 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/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • 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/75Indicating network or usage conditions on the user display
    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/64Details of telephonic subscriber devices file transfer between terminals

Definitions

  • the present disclosure relates to the field of communications, and in particular to a file transmission method, device and computer-readable storage medium.
  • the present disclosure provides a file transmission method, device and computer readable storage medium, which can simplify file transmission operations.
  • a file transmission method including:
  • the file drag operation is used to drag the icon of the file onto the icon of the target device; in response to the detected file drag operation, obtain the data of the file; Send the data to the target device.
  • the file transfer is realized by dragging the file onto the icon of the target device.
  • the process is simple, and there is no need to install and use third-party instant messaging software on the terminal device.
  • the operation is convenient and the file transfer process is simplified. .
  • the detecting a file drag operation includes: when a locally stored file is selected, detecting the file drag operation for the selected file.
  • the detecting the file drag operation includes: if the end point of the dragged track of the file icon coincides with the position of the target device icon, determining that the detection is detected The file drag operation; or, the detection of the file drag operation includes: if a trigger event generated by pressing the icon of the target device is detected during the process of dragging the icon of the file, then It is determined that the file drag operation is detected.
  • the icon of the target device is divided into two situations. One is that the icon corresponds to a position on the desktop. When the file icon is dragged to this position, a file drag operation is generated. The other is that the icon corresponds to a button. When the file icon is dragged onto this button, a file drag operation is triggered.
  • this application provides the above two detection schemes to realize the detection of file drag operations.
  • the method further includes: when the locally stored file is selected, displaying the icon of the target device in a preset position.
  • the icon of the target device does not need to be displayed all the time, which can facilitate the user to use the terminal device without being disturbed by the icon of the target device when the file is not being transferred.
  • hiding the icon of the target device can save screen space.
  • the file selected in the file drag operation includes one or more files.
  • the user can select one file for transmission at a time, or can select multiple files at the same time for batch transmission.
  • the sending the data of the file to the target device includes: obtaining the address of the target device; based on the address of the target device, transferring the file The data is sent to the target device.
  • the obtaining the address of the target device includes: determining that the icon of the file is dragged according to the relationship between the location area of the interface where the icon of the target device is located and the address of the target device The address of the target device corresponding to the location area where the end point of the moving track is located; or, obtaining the address of the target device includes: determining that the icon in the file is dragged according to the relationship between the trigger event and the address of the target device The address of the target device corresponding to the trigger event generated during the movement, and the trigger event is generated when the icon of the target device is pressed.
  • the icons of each target device connected to the terminal device are located in different location areas on the screen (desktop), according to the location area of the interface where the icon of the target device is located and the address of the target device
  • the relationship between the files and the location area where the end point is located in the file drag process can determine the target device corresponding to the file.
  • the file drag operation triggers the buttons, and each button corresponds to a trigger event.
  • the trigger event corresponds to the address of the target device, and the corresponding target device can be determined according to the trigger event in the terminal device.
  • the method further includes: in response to a user's click operation of clicking the icon of the target device, displaying a file transfer record.
  • the file transfer history is displayed by clicking the icon of the target device, which is convenient for determining which files have been transferred.
  • the method further includes: sending pairing information by broadcasting; receiving response information sent by the target device, the response information includes identity information, and the identity information includes a user account and At least one of the device manufacturer identifiers; when the identity information carried in the response information is predetermined identity information, send a connection establishment request to the target device; receive a connection establishment response sent by the target device.
  • connection relationship between terminal devices is established through pairing and response.
  • the user account and/or device manufacturer identification are used as authentication standards, and the unified user account and/or device manufacturer identification are adopted.
  • the connection can be automatically established between the terminal devices without manual operation, which simplifies the file transfer process; at the same time, due to the existence of the above authentication process, it avoids connecting to unfamiliar mobile devices, causing problems in subsequent use.
  • a file transmission device including:
  • the detection module is configured to detect a file drag operation, the file drag operation is used to drag the icon of the file onto the icon of the target device; the acquisition module is configured to respond to the detected file drag operation , Obtain the data of the file; a sending module, configured to send the data of the file to the target device.
  • the detection module is configured to detect the file drag operation for the selected file when the locally stored file is selected.
  • the detection module is configured to determine that if the end of the drag track of the file icon coincides with the location of the target device icon File drag operation; or, the detection module is configured to determine that if a trigger event generated by pressing the icon of the target device is detected while the icon of the file is being dragged, it is determined to detect all The file drag operation is described.
  • the apparatus further includes: an output module configured to display the icon of the target device in a preset position when the locally stored file is selected.
  • the file selected in the file drag operation includes at least one file.
  • the sending module includes: an acquisition sub-module configured to acquire the address of the target device; and a sending sub-module configured to transfer the address of the target device based on the The data of the file is sent to the target device.
  • the acquisition submodule is configured to determine the track of the icon of the file being dragged according to the relationship between the location area of the interface where the icon of the target device is located and the address of the target device. The address of the target device corresponding to the location area where the end point is located; or, the acquisition sub-module is configured to determine what is generated during the process of dragging the icon of the file according to the relationship between the trigger event and the address of the target device The address of the target device corresponding to the trigger event, where the trigger event is generated when the icon of the target device is pressed.
  • the apparatus further includes: an output module configured to display a file transfer record in response to a click operation of the user clicking the icon of the target device.
  • the device further includes: a receiving module; the sending module is further configured to send pairing information by broadcasting; the receiving module is configured to receive the target device sending The response information includes identity information, and the identity information includes at least one of a user account and a device manufacturer’s identity; the sending module is also configured to When the used user accounts are the same, a connection establishment request is sent to the target device; the receiving module is further configured to receive a connection establishment response sent by the target device.
  • a file transmission device including:
  • a memory for storing processor executable instructions
  • the processor is configured to execute the file transmission method according to the first aspect.
  • a computer-readable storage medium having computer instructions stored thereon, which, when executed by a processor, implement the method as described in the first aspect.
  • Fig. 1 is a diagram showing an application scenario according to an exemplary embodiment
  • Fig. 2 is a flow chart showing a file transmission method according to an exemplary embodiment
  • Fig. 3 is a flowchart showing a file transmission method according to an exemplary embodiment
  • Fig. 4 is an interface diagram of a terminal device according to an exemplary embodiment
  • Fig. 5 is an interface diagram of a terminal device according to an exemplary embodiment
  • Fig. 6 is a schematic diagram showing the structure of a file transmission device according to an exemplary embodiment
  • Fig. 7 is a block diagram showing a file transmission device according to an exemplary embodiment.
  • Fig. 1 is a diagram showing an application scenario according to an exemplary embodiment.
  • this scenario includes a terminal device 1 and a terminal device 2.
  • the terminal device 1 and the terminal device 2 can be two devices within a certain distance and belong to the same user, and a connection can be established between the two terminal devices .
  • Both the terminal device 1 and the terminal device 2 may be mobile terminals, or other terminals, such as computers.
  • the main way to transfer files between the terminal device 1 and the terminal device 2 is to rely on third-party instant messaging software.
  • this implementation requires the installation and use of these instant messaging software, and the operation is not convenient.
  • Fig. 2 is a flow chart showing a file transmission method according to an exemplary embodiment. Referring to FIG. 2, the method may be executed by the terminal device 1 or the terminal device 2 in the scenario shown in FIG. 1, and the file transmission method may include:
  • step S11 a file drag operation is detected, and the file drag operation is used to drag the icon of the file onto the icon of the target device.
  • the file drag operation means that the icon of the file is dragged onto the icon of the target device.
  • the file can be any type of file such as pictures, documents, program installation packages, videos, etc. That is to say, the file transmission method can transmit smaller pictures and documents, and can also transmit larger program installation packages and videos, which is practical Strong sex.
  • the icon of a file is a visualized graphic displayed to the user by the terminal device to represent the file.
  • step S12 in response to the file drag operation, data of the file is acquired.
  • File data refers to all the data that constitutes the file, and the file data is stored in the storage unit of the terminal device.
  • step S13 the data of the file is sent to the target device.
  • file transmission can be implemented based on, but not limited to: local area network transmission protocol, wireless high-fidelity (WIFI) direct connection, hotspot, Bluetooth and other technologies.
  • WIFI wireless high-fidelity
  • the file can be sent using WIFI direct connection technology.
  • WIFI direct connection does not require intermediate media points.
  • the WIFI transmission speed is fast, which can ensure the transmission speed of the video stream.
  • the file transfer is realized by dragging the file onto the icon of the target device.
  • the process is simple, and there is no need to install and use third-party instant messaging software on the terminal device.
  • the operation is convenient and the file transfer process is simplified. .
  • detecting the file drag operation includes: when the locally stored file is selected, detecting the file drag operation for the selected file.
  • detecting the file drag operation includes: if the end of the drag track of the file icon coincides with the position of the target device icon, determining that the file drag operation is detected; or, detecting the file drag operation, including : If a trigger event generated by pressing the icon of the target device is detected while the icon of the file is being dragged, it is determined that the file drag operation is detected.
  • the icon of the target device is divided into two situations. One is that the icon corresponds to a position on the desktop. When the file icon is dragged to this position, a file drag operation is generated. The other is that the icon corresponds to a button. When the file icon is dragged onto this button, a file drag operation is triggered.
  • this application provides the above two detection schemes to realize the detection of file drag operations.
  • the method further includes: when the locally stored file is selected, displaying an icon of the target device in a preset position.
  • the icon of the target device does not need to be displayed all the time, which can facilitate the user to use the terminal device without being disturbed by the icon of the target device when the file is not being transferred.
  • hiding the icon of the target device can save screen space.
  • the selected file in the file drag operation includes one or more files.
  • the user can select one file for transmission at a time, or can select multiple files at the same time for batch transmission.
  • sending the data of the file to the target device includes: obtaining the address of the target device; and sending the data of the file to the target device based on the address of the target device.
  • obtaining the address of the target device includes: according to the relationship between the location area of the interface where the icon of the target device is located and the address of the target device, determining the location area of the target device corresponding to the location area at the end of the drag track of the icon of the file Address; or, obtaining the address of the target device, including: according to the relationship between the trigger event and the address of the target device, determine the address of the target device corresponding to the trigger event generated during the process of dragging the icon of the file, the trigger event is the target device Is generated when the icon is pressed.
  • the icons of each target device connected to the terminal device are located in different location areas on the screen (desktop), according to the location area of the interface where the icon of the target device is located and the address of the target device
  • the relationship between the files and the location area where the end point is located in the file drag process can determine the target device corresponding to the file.
  • the file drag operation triggers the buttons, and each button corresponds to a trigger event.
  • the trigger event corresponds to the address of the target device, and the corresponding target device can be determined according to the trigger event in the terminal device.
  • the method further includes: in response to the user's click operation of clicking the icon of the target device, displaying the file transfer record.
  • the file transfer history is displayed by clicking the icon of the target device, which is convenient for determining which files have been transferred.
  • the method further includes: sending pairing information by broadcasting; receiving response information sent by the target device, the response information includes identity information, and the identity information includes at least one of a user account and a device manufacturer's identity; when the response information carries When the identity information is the predetermined identity information, send a connection establishment request to the target device; receive a connection establishment response sent by the target device.
  • the predetermined identity information may be the identity information of the terminal device of the file sender.
  • a user account refers to a user account logged in to a terminal device or mobile terminal, and the device manufacturer identifier is used to indicate the manufacturer of the terminal device or mobile terminal.
  • connection relationship between terminal devices is established through pairing and response.
  • the user account and/or device manufacturer identification are used as authentication standards, and the unified user account and/or device manufacturer identification are adopted.
  • the connection can be automatically established between the terminal devices without manual operation, which simplifies the file transfer process; at the same time, due to the existence of the above authentication process, it avoids connecting to unfamiliar mobile devices, causing problems in subsequent use.
  • the pairing information may be Bluetooth pairing information, and the terminal device and the mobile terminal realize automatic connection through Bluetooth technology.
  • the terminal devices may be connected manually for the first time, and the automatic connection method described above may be used for the second and subsequent connections.
  • Fig. 3 is a flowchart showing a file transmission method according to an exemplary embodiment.
  • the method may be executed by the terminal device 1 or the terminal device 2 in the scenario shown in FIG. 1, and the file transmission method may include:
  • step S21 a connection is established with the target device.
  • the target device refers to the peer device that is to perform file transfer.
  • the target device when terminal device 1 is to perform file transfer, the target device can be terminal device 2, and when terminal device 2 is to perform file transfer, the target device can be Terminal equipment 1.
  • establishing a connection with the target device may include: sending pairing information through broadcast;
  • Receive response information sent by the target device includes identity information, the identity information includes at least one of a user account and device manufacturer identification; when the identity information carried in the response information is predetermined identity information, send a connection establishment request to the target device ; Receive the connection establishment response sent by the target device.
  • the predetermined identity information may be the identity information of the terminal device of the file sender.
  • a user account refers to a user account logged in to a terminal device or mobile terminal, and the device manufacturer identifier is used to indicate the manufacturer of the terminal device or mobile terminal.
  • connection relationship between terminal devices is established through pairing and response.
  • the user account and/or device manufacturer identification are used as authentication standards, and the unified user account and/or device manufacturer identification are adopted.
  • the connection can be automatically established between the terminal devices without manual operation, which simplifies the file transfer process; at the same time, due to the existence of the above authentication process, it avoids connecting to unfamiliar mobile devices, causing problems in subsequent use.
  • the pairing information may be Bluetooth pairing information, and the terminal devices are automatically connected through Bluetooth technology.
  • the terminal device 1 sends Bluetooth pairing information through broadcast, and the Bluetooth pairing information includes a user account; when the terminal device 2 receives the Bluetooth pairing information, it verifies whether the user account carried in the Bluetooth pairing information is the same as the user account logged in in the terminal device 2. If they are the same, the response information will be returned. The response information includes the user account, otherwise no response information will be returned; the terminal device 1 receives the response information sent by the terminal device 2; the terminal device 1 verifies the user account carried in the response information with the user account logged in in the terminal device 2.
  • terminal device 1 sends a connection establishment request to terminal device 2, and terminal device 2 receives the connection establishment request sent by terminal device 1; terminal device 2 sends a connection establishment response to terminal device 1, and terminal device 1 receives terminal device 2 The connection establishment response sent. If they are different, the terminal device 1 ends the connection establishment process.
  • the process of the terminal device 2 verifying the user account is an optional step, and the terminal device 2 may send response information after receiving the Bluetooth pairing information.
  • connection establishment process may also be initiated by the terminal device 2 and the terminal device 1 may respond.
  • the Bluetooth pairing information and response information can also include the manufacturer.
  • the production Are the quotients the same.
  • the terminal device 2 receives the Bluetooth pairing information, it verifies whether the user account and device manufacturer ID carried in the Bluetooth pairing information are the same as the local user account and device manufacturer ID of the terminal device 2, and if they are the same, the response information is returned, and the response information includes User account, otherwise no response message will be returned.
  • the terminal device 1 verifies whether the user account and device manufacturer ID carried in the response information are the same as the local user account and device manufacturer ID of the terminal device 1; if they are the same, the terminal device 1 sends a connection establishment request to the terminal device 2, and the terminal device 2 Receive the connection establishment request sent by the terminal device 1. Otherwise, the terminal device 1 does not send a connection establishment request.
  • step S21 can be executed repeatedly, that is, one terminal device can be connected to multiple terminal devices.
  • step S22 when the locally stored file is selected, a file drag operation for the selected file is detected.
  • the file drag operation means that the icon of the file is dragged onto the icon of the target device.
  • the file can be any type of file such as pictures, documents, program installation packages, videos, etc. That is to say, the file transmission method can transmit smaller pictures and documents, and can also transmit larger program installation packages and videos, which is practical Strong sex.
  • the icon of a file is a visualized graphic displayed to the user by the terminal device to represent the file.
  • detecting the file drag operation may include: if the end point of the drag track of the file icon coincides with the location of the target device icon, determining that the file drag operation is detected.
  • the location of the icon of the target device is stored in the terminal device, and the terminal device only needs to compare the location of the end point of the drag track of the icon of the file with the stored location of the icon of each target device.
  • the location where the icon of the target device is located is a location area. At this time, the location of the end point of the drag track of the icon of the file only needs to be within the location area of the icon of the target device.
  • detecting a file drag operation may include: if a trigger event generated by the icon of the target device is detected during the process of dragging the icon of the file, determining A file drag operation was detected.
  • the icon of the target device is actually a button.
  • the process includes a pressing action on the button.
  • a trigger event is generated, and the terminal device detects the file drag operation when the trigger event is detected.
  • the icon of the target device is divided into two situations. One is that the icon corresponds to a position on the desktop. When the file icon is dragged to this position, a file drag operation occurs, and the other One is that the icon corresponds to a button. When the file icon is dragged onto this button, a file drag operation is triggered.
  • this application provides the above two detection schemes to realize the detection of file drag operations.
  • the method may further include: when the locally stored file is selected, displaying the icon of the target device in a preset position.
  • the icon of the target device does not need to be displayed all the time, which can facilitate the user to use the terminal device without being disturbed by the icon of the target device when the file is not being transferred.
  • hiding the icon of the target device can save screen space.
  • the method may further include: hiding the icon of the target device when the file transfer operation is not performed for a set time after the file transfer is completed.
  • Fig. 4 is an interface diagram of a terminal device according to an exemplary embodiment.
  • a user uses a mobile terminal to transfer photos
  • he first enters the photo folder, which displays multiple photo files 10, and the user Click to select 3 photos (the ticked part) to be sent.
  • the terminal device detects that a file is selected and displays the icon 100 of the target device in the preset position.
  • the user drags the icon of the file 10 onto the icon 100 of the terminal device through the file drag operation, as shown in FIG. 5.
  • the original icon of the file 10 does not move, and at the same time an icon of the dragged file appears.
  • the drag operation ends, the dragged icon disappears.
  • the preset position may be any set position determined in advance; it may also be a blank position on the desktop of the terminal device, so that the icon of the target device will not block other content on the desktop.
  • step S23 in response to the file drag operation, data of the file is acquired.
  • File data refers to all the data that constitutes the file, and the file data is stored in the storage unit of the terminal device.
  • obtaining the data of the file may include: obtaining the storage address of the selected file; obtaining the data of the file from the storage address of the selected file.
  • the storage address of the file is the physical storage address of the selected file in the terminal device, which has been determined when the user selects the file. Because in the terminal device, the user needs to determine the folder where the file is located in advance in the process of selecting a file, and the folder where the file is located + the name of the file corresponds to the physical storage address of the file.
  • step S24 the data of the file is sent to the target device.
  • the file selected during the file drag operation includes at least one file.
  • the user can select one file for transmission at a time, or can select multiple files at the same time for batch transmission.
  • the selected file during the file drag operation may include three files.
  • sending the data of the file to the target device may include: obtaining the address of the target device; and sending the data of the file to the target device based on the address of the target device.
  • the address of the target device is first obtained and then sent, the process is simple.
  • the address of the target device may refer to an Internet Protocol (IP) address or a Bluetooth device displacement identifier (UUID).
  • IP Internet Protocol
  • UUID Bluetooth device displacement identifier
  • obtaining the address of the target device may include: according to the relationship between the location area of the interface where the icon of the target device is located and the address of the target device, determining the address of the target device corresponding to the location area where the end point of the drag track of the icon of the file is located ; Or, obtaining the address of the target device, including: according to the relationship between the trigger event and the address of the target device, determine the address of the target device corresponding to the trigger event generated in the process of dragging the icon of the file, the trigger event is the target device Generated when the icon is pressed.
  • the icons of each target device connected to the terminal device are located in different location areas on the screen (desktop), according to the location area of the interface where the icon of the target device is located and the address of the target device
  • the relationship between the files and the location area where the end point is located in the file drag process can determine the target device corresponding to the file.
  • the file drag operation triggers the buttons, and each button corresponds to a trigger event.
  • the trigger event corresponds to the address of the target device, and the corresponding target device can be determined according to the trigger event in the terminal device.
  • the relationship between the location area of the interface where the icon of the target device is located and the address of the target device or the relationship between the trigger event and the address of the target device may be stored in the terminal device.
  • the location area or trigger event of the interface where the icon of the target device is located can be preset.
  • a location area or trigger event is associated with the target device in order to obtain the location area and the target device. The relationship between the trigger event and the target device.
  • the interface where the icon of the target device is located is also the desktop of the terminal device.
  • the location area of the interface where the icon of the target device is located is the area covered by the icon of the target device on the desktop of the terminal device.
  • the method further includes: when the file of the target device is selected, detecting a drag operation for the icon of the target device; and using the position at the end of the drag operation (the end position of the drag track) as the icon of the target device The position of the target device; the icon of the target device is displayed at the position of the icon of the target device after dragging.
  • the relationship between the location area of the interface where the icon of the target device is located and the address of the target device can be updated.
  • file transmission can be implemented based on, but not limited to: local area network transmission protocol, wireless high-fidelity (WIFI) direct connection, hotspot, Bluetooth and other technologies.
  • WIFI wireless high-fidelity
  • the file can be sent using WIFI direct connection technology.
  • WIFI direct connection does not require intermediate media points.
  • the WIFI transmission speed is fast, which can ensure the transmission speed of the video stream.
  • the target device On the side of the target device, the target device also displays the identity of the peer device (sender terminal device).
  • the target device automatically receives the file sent by the peer and saves it, without the user's confirmation of reception and no user operation; and, because of this This kind of file transfer is usually between the same user's equipment or two users face-to-face transfer, so there is no security problem without receiving confirmation.
  • the following method may be executed: in response to the user clicking the icon of the target device (or the opposite device), the file transfer record is displayed.
  • the file transfer history is displayed by clicking the icon of the target device, which is convenient for determining which files have been transferred.
  • the icon of the target device can be used as a button, and when the user clicks it, the file transfer record is displayed.
  • the file transfer record may include file name, file size, transfer time, etc. This makes it easy to determine which files have been transferred.
  • it can also display the current file transfer status.
  • the current file transfer status includes file name, file size, transferred percentage, transfer speed, etc.
  • the file transmission record may be displayed on a pop-up window interface, the pop-up window interface includes a close button, when the user clicks the close button, the terminal device receives a close instruction, and closes the pop-up window interface at this time.
  • FIG. 6 is a schematic structural diagram of a file transmission device according to an exemplary embodiment.
  • the file transmission device includes: a detection module 301, an acquisition module 302, and a sending module 303.
  • the detection module 301 is configured to detect a file drag operation, and the file drag operation is used to drag the icon of the file onto the icon of the target device; the acquisition module 302 is configured to obtain in response to the detected file drag operation. File data; the sending module 303 is configured to send the file data to the target device.
  • the detection module 301 is configured to detect a file drag operation on the selected file when the locally stored file is selected.
  • the detection module 301 is configured to determine that the file drag operation is detected if the end of the drag track of the file icon coincides with the location of the target device icon; or, the detection module is configured to When the icon of the file is being dragged, if a trigger event generated by the icon of the target device is detected, it is determined that the file drag operation is detected.
  • the apparatus further includes: an output module 304 configured to display an icon of the target device in a preset position when the locally stored file is selected.
  • the file selected in the file drag operation includes at least one file.
  • the sending module 303 includes: an obtaining sub-module 331 configured to obtain the address of the target device; and the sending sub-module 332 configured to send file data to the target device based on the address of the target device.
  • the acquiring sub-module 331 is configured to determine the location area of the target device corresponding to the location area of the end point of the drag track of the file icon according to the relationship between the location area of the interface where the icon of the target device is located and the address of the target device. Address; or, the acquisition sub-module 331 is configured to determine the address of the target device corresponding to the trigger event generated in the process of dragging the icon of the file according to the relationship between the trigger event and the address of the target device, the trigger event is the target device Is generated when the icon is pressed.
  • the output module 304 is further configured to display the file transfer record in response to the user's click operation of clicking the icon of the target device.
  • the apparatus further includes: a receiving module 305; a sending module 303, which is also configured to send pairing information by broadcasting; and a receiving module 305, which is configured to receive response information sent by the target device, the response information including identity information, identity information Including at least one of a user account and a device manufacturer's identification; the sending module 303 is also configured to send a connection establishment request to the target device when the user account carried in the response information is the same as the user account used locally; the receiving module 305 , Is also configured to receive the connection establishment response sent by the target device.
  • step S22 The manner of detecting the file drag operation by the detecting module 301 can be referred to step S22, the manner of obtaining the file data by the obtaining module 302 can be referred to step S23, and the manner of sending the file data by the sending module 303 can refer to step S24, and detailed description is omitted here.
  • Fig. 7 is a block diagram showing a file transmission device 600 according to an exemplary embodiment.
  • the device 600 may be the aforementioned terminal device.
  • the file transmission device 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 608, an audio component 610, an input/output (I/O) interface 612, a sensor component 614, and the communication component 616.
  • the processing component 602 generally controls the overall operations of the file transfer device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
  • the processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the foregoing method.
  • the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components.
  • the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.
  • the memory 604 is configured to store various types of data to support the operation of the file transfer device 600. Examples of these data include instructions for any software program or method operating on the file transfer device 600, contact data, phone book data, messages, pictures, videos, etc.
  • the memory 604 can be implemented by any type of volatile or nonvolatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable and Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic Disk or Optical Disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read-only memory
  • EPROM erasable and Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Magnetic Disk Magnetic Disk or Optical Disk.
  • the power component 606 provides power to various components of the file transmission device 600.
  • the power component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the file transfer device 600.
  • the multimedia component 608 includes a screen that provides an output interface between the file transfer device 600 and the user.
  • the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touch, sliding, and gestures on the touch panel. The touch sensor can not only sense the boundary of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
  • the audio component 610 is configured to output and/or input audio signals.
  • the audio component 610 includes a speaker for outputting audio signals.
  • the I/O interface 612 provides an interface between the processing component 602 and a peripheral interface module.
  • the above-mentioned peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
  • the sensor component 614 includes one or more sensors for providing the file transfer device 600 with various aspects of status evaluation.
  • the sensor component 614 may include a humidity sensor, a temperature sensor, and the like.
  • the communication component 616 is configured to facilitate wireless communication between the file transfer apparatus 600 and other devices.
  • the communication component 616 can access a wireless network based on a communication standard, such as 2G, 3G, 4G, or 5G, or a combination thereof, so as to realize physical downlink control signaling detection.
  • the communication component 616 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel.
  • the communication component 616 further includes an NFC module.
  • the file transfer device 600 may be implemented by one or more software application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing equipment (DSPD), programmable logic devices (PLD), field Programmable gate array (FPGA), controller, microcontroller, microprocessor, or other electronic components are used to implement the above file transfer method.
  • ASIC software application specific integrated circuits
  • DSP digital signal processors
  • DSPD digital signal processing equipment
  • PLD programmable logic devices
  • FPGA field Programmable gate array
  • controller microcontroller, microprocessor, or other electronic components are used to implement the above file transfer method.
  • non-transitory computer-readable storage medium including instructions, such as the memory 604 including instructions, which can be executed by the processor 620 of the file transfer device 600 to execute the file transfer method.
  • the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本公开是关于一种文件传输方法、装置及计算机可读存储介质,属于终端设备领域。所述文件传输方法包括:检测文件拖动操作,所述文件拖动操作用于将文件的图标拖动到目标设备的图标上;响应于检测到的所述文件拖动操作,获取所述文件的数据;将所述文件的数据发送给所述目标设备。通过拖动文件到目标设备的图标上,来实现文件的传输,该过程简单,且无需在终端设备上安装使用第三方即时通信软件,操作方便,简化了文件传输流程。

Description

文件传输方法、装置及计算机可读存储介质 技术领域
本公开涉及通信领域,尤其涉及一种文件传输方法、装置及计算机可读存储介质。
背景技术
随着移动终端技术的发展,移动终端已经成为人们日常生活中必不可少的装备。日常生活中,经常会遇到需要在移动终端之间或者移动终端和其他终端之间进行文件传输的情况。目前,传输的主要方式是依靠第三方即时通信软件实现文件传输。但是这种实现方式,需要安装、使用这些即时通信软件,操作并不方便。
发明内容
本公开提供一种文件传输方法、装置及计算机可读存储介质,能够简化文件传输操作。
根据本公开实施例的第一方面,提供一种文件传输方法,所述方法包括:
检测文件拖动操作,所述文件拖动操作用于将文件的图标拖动到目标设备的图标上;响应于检测到的所述文件拖动操作,获取所述文件的数据;将所述文件的数据发送给所述目标设备。
在本公开实施例中,通过拖动文件到目标设备的图标上,来实现文件的传输,该过程简单,且无需在终端设备上安装使用第三方即时通信软件,操作方便,简化了文件传输流程。
在本公开实施例的一种实现方式中,所述检测文件拖动操作,包括:当本地存储的文件被选中时,检测针对被选中文件的所述文件拖动操作。
在该实现方式,限定了只有在本地存储的文件被选中时才检测文件拖动操作,避免持续检测造成的资源浪费。
在本公开实施例的一种实现方式中,所述检测文件拖动操作,包括:如果所述文件的图标被拖动轨迹的终点与所述目标设备的图标所在的位置重合,则确定检测到所述文件拖动操作;或者,所述检测文件拖动操作,包括:如果在所述文件的图标被拖动的过程中,检测到所述目标设备的图标被按压所产生的触发事件,则确定检测到所述文件拖动操作。
这里,目标设备的图标分成两种情况,一种是该图标对应桌面上的一个位置,当文件图标被拖动到这个位置时,产生文件拖动操作,另一种是该图标对应一个按钮,当文件图标被拖动到这个按钮上,触发产生文件拖动操作。对应于上述两种情况,本申请提供了上述两种检测方案来实现文件拖动操作的检测。
在本公开实施例的一种实现方式中,所述方法还包括:当本地存储的文件被选中时,在预设位置显示所述目标设备的图标。
这样目标设备的图标无需一直显示,可以便于用户使用终端设备过程中,不传输文件时不被目标设备的图标干扰,同时隐藏目标设备的图标可以节省屏幕空间。
在本公开实施例的一种实现方式中,在所述文件拖动操作中被选中的文件包括一个或多个文件。
在本公开实施例中,用户可以一次选中一个文件进行传输,也可以同时选中多个文件实现批量传输。
在本公开实施例的一种实现方式中,所述将所述文件的数据发送给所述目标设备,包括:获取所述目标设备的地址;基于所述目标设备的地址,将所述文件的数据发送给所述目标设备。
这里,文件发送时先获取目标设备的地址然后发送,过程简单。
在本公开实施例的一种实现方式中,所述获取所述目标设备的地址,包括:根据目标设备的图标所在界面的位置区域和目标设备的地址的关系,确定所述文件的图标被拖动轨迹的终点所在的位置区域所对应的目标设备的地址;或者,所述获取所述目标设备的地址,包括:根据触发事件与目标设备的地址的关系,确定在所述文件的图标被拖动的过程中产生的触发事件对应的目标设备的地址,所述触发事件是所述目标设备的图标被按压时产生的。
这里,获取目标设备的地址存在两种情况,一种是终端设备连接的各个目标设备的图标处于屏幕(桌面)上的不同位置区域,根据目标设备的图标所在界面的位置区域和目标设备的地址的关系,以及文件拖动过程中的终点所在的位置区域可以确定文件对应的目标设备。另一种是文件拖动操作触发了按钮,而每个按钮对应一个触发事件,该触发事件与目标设备的地址相互对应,根据终端设备中的触发事件即可确定对应的目标设备。
在本公开实施例的一种实现方式中,所述方法还包括:响应于用户点击所述目标设备的图标的点击操作,显示文件传输记录。
在该实现方式中,通过点击目标设备的图标来显示文件传输历史,便于确定哪些文件已经传输完成。
在本公开实施例的一种实现方式中,所述方法还包括:通过广播发送配对信息;接收所述目标设备发送的响应信息,所述响应信息包括身份信息,所述身份信息包括用户帐号和设备厂商标识中的至少一种;当所述响应信息所携带的身份信息为预定身份信息时,向所述目标设备发送建立连接请求;接收所述目标设备发送的建立连接应答。
在该实现方式中,终端设备之间的连接关系通过配对和响应建立,在建立连接关系的过程中,通过用户帐号和/或设备厂商标识作为认证标准,采用统一用户帐号和/或设备厂商标识的终端设备之间可以自动建立连接,无需人工操作,简化了文件传输的流程;同时,由于上述认证过程的存在,避免连接到陌生移动设备,造成后续使用出现问题。
根据本公开的第二方面,提供了一种文件传输装置,所述装置包括:
检测模块,被配置为检测文件拖动操作,所述文件拖动操作用于将文件的图标拖动到目标设备的图标上;获取模块,被配置为响应于检测到的所述文件拖动操作,获取所述文件的数据;发送模块,被配置为将所述文件的数据发送给所述目标设备。
在本公开实施例的一种实现方式中,所述检测模块,被配置为当本地存储的文件被选中 时,检测针对被选中文件的所述文件拖动操作。
在本公开实施例的一种实现方式中,所述检测模块,被配置为如果所述文件的图标被拖动轨迹的终点与所述目标设备的图标所在的位置重合,则确定检测到所述文件拖动操作;或者,所述检测模块,被配置为如果在所述文件的图标被拖动的过程中,检测到所述目标设备的图标被按压所产生的触发事件,则确定检测到所述文件拖动操作。
在本公开实施例的一种实现方式中,所述装置还包括:输出模块,被配置为当本地存储的文件被选中时,在预设位置显示所述目标设备的图标。
在本公开实施例的一种实现方式中,在所述文件拖动操作中被选中的文件包括至少一个文件。
在本公开实施例的一种实现方式中,所述发送模块,包括:获取子模块,被配置为获取所述目标设备的地址;发送子模块,被配置为基于所述目标设备的地址,将所述文件的数据发送给所述目标设备。
在本公开实施例的一种实现方式中,所述获取子模块,被配置为根据目标设备的图标所在界面的位置区域和目标设备的地址的关系,确定所述文件的图标被拖动轨迹的终点所在的位置区域所对应的目标设备的地址;或者,所述获取子模块,被配置为根据触发事件与目标设备的地址的关系,确定在所述文件的图标被拖动的过程中产生的触发事件对应的目标设备的地址,所述触发事件是所述目标设备的图标被按压时产生的。
在本公开实施例的一种实现方式中,所述装置还包括:输出模块,被配置为响应于用户点击所述目标设备的图标的点击操作,显示文件传输记录。
在本公开实施例的一种实现方式中,所述装置还包括:接收模块;所述发送模块,还被配置为通过广播发送配对信息;所述接收模块,被配置为接收所述目标设备发送的响应信息,所述响应信息包括身份信息,所述身份信息包括用户帐号和设备厂商标识中的至少一种;所述发送模块,还被配置为当所述响应信息所携带的用户帐号与本地所使用的用户帐号相同时,向所述目标设备发送建立连接请求;所述接收模块,还被配置为接收所述目标设备发送的建立连接应答。
根据本公开的第三面,提供了一种文件传输装置,所述装置包括:
处理器;
用于存储处理器可执行指令的存储器;
其中,所述处理器被配置为执行如第一方面所述的文件传输方法。
根据本公开的第四方面,提供了一种计算机可读存储介质,其上存储有计算机指令,所述计算机指令被处理器执行时实现如第一方面所述的方法。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。
图1是根据一示例性实施例示出的一种应用场景图;
图2是根据一示例性实施例示出的一种文件传输方法的流程图;
图3是根据一示例性实施例示出的一种文件传输方法的流程图;
图4是根据一示例性实施例示出的一种终端设备的界面图;
图5是根据一示例性实施例示出的一种终端设备的界面图;
图6是根据一示例性实施例示出的一种文件传输装置的结构示意图;
图7是根据一示例性实施例示出的一种文件传输装置的框图。
具体实施方式
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。
图1是根据一示例性实施例示出的一种应用场景图。参见图1,该场景包括终端设备1和终端设备2,该终端设备1和终端设备2可以为处于一定距离范围内的两个设备,且属于同一个用户,两个终端设备之间可以建立连接。该终端设备1和终端设备2均可以为移动终端,也可以为其他终端,例如电脑等。通常,在终端设备1和终端设备2之间传输文件的主要方式是依靠第三方即时通信软件实现。但是这种实现方式,需要安装、使用这些即时通信软件,操作并不方便。
图2是根据一示例性实施例示出的一种文件传输方法的流程图。参见图2,该方法可以由图1所示的场景中的终端设备1或终端设备2执行,该文件传输方法可以包括:
在步骤S11中,检测文件拖动操作,文件拖动操作用于将文件的图标拖动到目标设备的图标上。
其中,文件拖动操作是指文件的图标被拖动到目标设备的图标上。
这里,文件可以为图片、文档、程序安装包、视频等任意类型的文件,也就是说,该文件传输方法可以传输较小的图片、文档,也可以传输较大的程序安装包、视频,实用性强。
文件的图标是终端设备展示给用户的用来表示该文件的可视化的图形。
在步骤S12中,响应于文件拖动操作,获取文件的数据。
文件的数据是指构成文件的所有数据,文件的数据存储在终端设备的存储单元中。
在步骤S13中,将文件的数据发送给目标设备。
在本公开实施例中,文件传输可以基于但不限于:局域网传输协议、无线高保真(WIFI) 直连、热点、蓝牙等技术实现。
例如,该该文件可以采用WIFI直连技术进行发送,一方面WIFI直连无需中间介质点,另一方面WIFI传输速度快,能够保证视频流的传输速度。
在本公开实施例中,通过拖动文件到目标设备的图标上,来实现文件的传输,该过程简单,且无需在终端设备上安装使用第三方即时通信软件,操作方便,简化了文件传输流程。
可选地,检测文件拖动操作,包括:当本地存储的文件被选中时,检测针对被选中文件的文件拖动操作。
在该实现方式,限定了只有在本地存储的文件被选中时才检测文件拖动操作,避免持续检测造成的资源浪费。
可选地,检测文件拖动操作,包括:如果文件的图标被拖动轨迹的终点与目标设备的图标所在的位置重合,则确定检测到文件拖动操作;或者,检测文件拖动操作,包括:如果在文件的图标被拖动的过程中,检测到目标设备的图标被按压所产生的触发事件,则确定检测到文件拖动操作。
这里,目标设备的图标分成两种情况,一种是该图标对应桌面上的一个位置,当文件图标被拖动到这个位置时,产生文件拖动操作,另一种是该图标对应一个按钮,当文件图标被拖动到这个按钮上,触发产生文件拖动操作。对应于上述两种情况,本申请提供了上述两种检测方案来实现文件拖动操作的检测。
可选地,该方法还包括:当本地存储的文件被选中时,在预设位置显示目标设备的图标。
这样目标设备的图标无需一直显示,可以便于用户使用终端设备过程中,不传输文件时不被目标设备的图标干扰,同时隐藏目标设备的图标可以节省屏幕空间。
可选地,在文件拖动操作中被选中的文件包括一个或多个文件。
在本公开实施例中,用户可以一次选中一个文件进行传输,也可以同时选中多个文件实现批量传输。
可选地,将文件的数据发送给目标设备,包括:获取目标设备的地址;基于目标设备的地址,将文件的数据发送给目标设备。
这里,文件发送时先获取目标设备的地址然后发送,过程简单。
可选地,获取目标设备的地址,包括:根据目标设备的图标所在界面的位置区域和目标设备的地址的关系,确定文件的图标被拖动轨迹的终点所在的位置区域所对应的目标设备的地址;或者,获取目标设备的地址,包括:根据触发事件与目标设备的地址的关系,确定在文件的图标被拖动的过程中产生的触发事件对应的目标设备的地址,触发事件是目标设备的图标被按压时产生的。
这里,获取目标设备的地址存在两种情况,一种是终端设备连接的各个目标设备的图标处于屏幕(桌面)上的不同位置区域,根据目标设备的图标所在界面的位置区域和目标设备的地址的关系,以及文件拖动过程中的终点所在的位置区域可以确定文件对应的目标设备。另一种是文件拖动操作触发了按钮,而每个按钮对应一个触发事件,该触发事件与目标设备的地址相互对应,根据终端设备中的触发事件即可确定对应的目标设备。
可选地,该方法还包括:响应于用户点击目标设备的图标的点击操作,显示文件传输记录。
在该实现方式中,通过点击目标设备的图标来显示文件传输历史,便于确定哪些文件已经传输完成。
可选地,该方法还包括:通过广播发送配对信息;接收目标设备发送的响应信息,响应信息包括身份信息,身份信息包括用户帐号和设备厂商标识中的至少一种;当响应信息所携带的身份信息为预定身份信息时,向目标设备发送建立连接请求;接收目标设备发送的建立连接应答。
其中,预定身份信息可以为文件发送方终端设备的身份信息。用户帐号是指终端设备或移动终端中登陆的用户帐号,设备厂商标识用于指示该终端设备或移动终端的生产厂商。
在该实现方式中,终端设备之间的连接关系通过配对和响应建立,在建立连接关系的过程中,通过用户帐号和/或设备厂商标识作为认证标准,采用统一用户帐号和/或设备厂商标识的终端设备之间可以自动建立连接,无需人工操作,简化了文件传输的流程;同时,由于上述认证过程的存在,避免连接到陌生移动设备,造成后续使用出现问题。
其中,配对信息可以为蓝牙配对信息,终端设备和移动终端通过蓝牙技术实现自动连接。
可选地,终端设备之间可以在第一次采用手动方式连接,在第二次和后续连接时采用上述自动连接方式连接。
值得说明的是,前述步骤S11~S13与上述可选步骤可以任意组合。
图3是根据一示例性实施例示出的一种文件传输方法的流程图。参见图3,该方法可以由图1所示的场景中的终端设备1或终端设备2执行,该文件传输方法可以包括:
在步骤S21中,与目标设备建立连接。
这里,目标设备是指要进行文件传输的对端设备,例如在终端设备1要进行文件传输时,该目标设备可以为终端设备2,在终端设备2要进行文件传输时,该目标设备可以为终端设备1。
可选地,与目标设备建立连接,可以包括:通过广播发送配对信息;
接收目标设备发送的响应信息,响应信息包括身份信息,身份信息包括用户帐号和设备厂商标识中的至少一种;当响应信息所携带的身份信息为预定身份信息时,向目标设备发送建立连接请求;接收目标设备发送的建立连接应答。
其中,预定身份信息可以为文件发送方终端设备的身份信息。用户帐号是指终端设备或移动终端中登陆的用户帐号,设备厂商标识用于指示该终端设备或移动终端的生产厂商。
在该实现方式中,终端设备之间的连接关系通过配对和响应建立,在建立连接关系的过程中,通过用户帐号和/或设备厂商标识作为认证标准,采用统一用户帐号和/或设备厂商标识的终端设备之间可以自动建立连接,无需人工操作,简化了文件传输的流程;同时,由于上述认证过程的存在,避免连接到陌生移动设备,造成后续使用出现问题。
其中,配对信息可以为蓝牙配对信息,终端设备之间通过蓝牙技术实现自动连接。
例如,终端设备1通过广播发送蓝牙配对信息,蓝牙配对信息包括用户帐号;终端设备2在接收到蓝牙配对信息时,验证蓝牙配对信息携带的用户帐号与终端设备2中登陆的用户帐号是否相同,若相同则返回响应信息,响应信息包括用户帐号,否则不返回响应信息;终端设备1接收终端设备2发送的响应信息;终端设备1验证响应信息携带的用户帐号与终端设备2中登陆的用户帐号是否相同;若相同,则终端设备1向终端设备2发送建立连接请求,终端设备2接收终端设备1发送的建立连接请求;终端设备2向终端设备1发送建立连接应答,终端设备1接收终端设备2发送的建立连接应答。若不同,则终端设备1结束该连接建立过程。
其中,终端设备2验证用户帐号的过程为可选步骤,终端设备2可以在接收到蓝牙配对信息后就发送响应信息。
可替代地,上述连接建立的过程,也可以由终端设备2发起,由终端设备1进行响应。
如前所述,该蓝牙配对信息和响应信息中除了用户帐号外,还可以包括生厂商,终端设备2和终端设备1在进行连接过程中,除了需要验证用户帐号是否相同外,还要验证生产商是否相同。例如,终端设备2在接收到蓝牙配对信息时,验证蓝牙配对信息携带的用户帐号和设备厂商标识与终端设备2本地的用户帐号和设备厂商标识是否相同,若相同则返回响应信息,响应信息包括用户帐号,否则不返回响应信息。再例如,终端设备1验证响应信息携带的用户帐号和设备厂商标识与终端设备1本地的用户帐号和设备厂商标识是否相同;若相同,则终端设备1向终端设备2发送建立连接请求,终端设备2接收终端设备1发送的建立连接请求。否则,终端设备1不发送建立连接请求。
在配对信息和响应信息中携带设备厂商标识,保证只有同一厂家的产品才采用该自动连接方式,以保证终端设备和移动终端均具有该文件拖动传输功能。
值得说明的是,步骤S21可以重复执行,也即一个终端设备可以连接多个终端设备。
在步骤S22中,当本地存储的文件被选中时,检测针对被选中文件的文件拖动操作。
其中,文件拖动操作是指文件的图标被拖动到目标设备的图标上。
这里,文件可以为图片、文档、程序安装包、视频等任意类型的文件,也就是说,该文件传输方法可以传输较小的图片、文档,也可以传输较大的程序安装包、视频,实用性强。
文件的图标是终端设备展示给用户的用来表示该文件的可视化的图形。
在该实现方式,限定了只有在本地存储的文件被选中时才检测文件拖动操作,避免持续检测造成的资源浪费。
在本公开实施例的一种实现方式中,检测文件拖动操作,可以包括:如果文件的图标被拖动轨迹的终点与目标设备的图标所在的位置重合,则确定检测到文件拖动操作。
在这种实现方式中,目标设备的图标所在的位置存储在终端设备中,终端设备只需要将文件的图标被拖动轨迹的终点的位置与存储的各个目标设备的图标所在的位置比较即可。这里,目标设备的图标所在的位置为一个位置区域,此时,文件的图标被拖动轨迹的终点的位置只需要在目标设备的图标的位置区域内即可。
在本公开实施例的另一种实现方式中,检测文件拖动操作,可以包括:如果在文件的图 标被拖动的过程中,检测到目标设备的图标被按压所产生的触发事件,则确定检测到文件拖动操作。
在这种实现方式中,目标设备的图标实际上是一个按钮,当文件的图标被拖动到该按钮上释放时,该过程包含了一个对于该按钮的按压动作,当发生该按压动作时,会产生一个触发事件,终端设备检测到该触发事件即检测到文件拖动操作。
在这两种实现方式中,这里,目标设备的图标分成两种情况,一种是该图标对应桌面上的一个位置,当文件图标被拖动到这个位置时,产生文件拖动操作,另一种是该图标对应一个按钮,当文件图标被拖动到这个按钮上,触发产生文件拖动操作。对应于上述两种情况,本申请提供了上述两种检测方案来实现文件拖动操作的检测。
在本公开实施例中,该方法还可以包括:当本地存储的文件被选中时,在预设位置显示目标设备的图标。这样目标设备的图标无需一直显示,可以便于用户使用终端设备过程中,不传输文件时不被目标设备的图标干扰,同时隐藏目标设备的图标可以节省屏幕空间。
进一步地,该方法还可以包括:当文件传输完成后,当超过设定时间未进行文件传输操作时,隐藏该目标设备的图标。
图4是根据一示例性实施例示出的一种终端设备的界面图,如图4所示,用户在使用移动终端传输照片时,先进入照片文件夹,其中陈列了多张照片文件10,用户通过点击选中3张(打勾的部分)需要发送的照片,此时终端设备检测到有文件被选中,在预设位置显示目标设备的图标100。用户通过文件拖动操作,将文件10的图标拖动到终端设备的图标100上,如图5所示。这里,文件10的图标在拖动过程中,原本的文件10的图标不动,同时另外出现一个被拖动的文件的图标,当该拖动操作结束后,被拖动的图标消失。其中,预设位置可以是事先确定好的任意设定位置;也可以是终端设备的桌面上的空白位置,这样目标设备的图标不会遮挡桌面上的其他内容。
在步骤S23中,响应于文件拖动操作,获取文件的数据。
文件的数据是指构成文件的所有数据,文件的数据存储在终端设备的存储单元中。
在本公开实施例中,获取文件的数据,可以包括:获取被选中的文件的存储地址;从被选中的文件的存储地址获取文件的数据。其中,文件的存储地址是被选中的文件在终端设备中的物理存储地址,其在用户选中该文件时就已经确定。因为在终端设备中,用户选中文件的过程,需要事先确定文件所在的文件夹,而文件所在文件夹+文件的名称就对应了该文件的物理存储地址。
在步骤S24中,将文件的数据发送给目标设备。
在本公开实施例中,在文件拖动操作过程中被选中的文件包括至少一个文件。在本公开实施例中,用户可以一次选中一个文件进行传输,也可以同时选中多个文件实现批量传输。例如,如图4和图5所示,文件拖动操作过程中被选中的文件可以包括3个文件。
可选地,将文件的数据发送给目标设备,可以包括:获取目标设备的地址;基于目标设备的地址,将文件的数据发送给目标设备。
这里,文件发送时先获取目标设备的地址然后发送,过程简单。其中,目标设备的地址 可以是指英特网协议(IP)地址,或者蓝牙设备位移标识(UUID)。这里的目标设备的地址可以在与目标设备建立连接的过程中获取到。
其中,获取目标设备的地址,可以包括:根据目标设备的图标所在界面的位置区域和目标设备的地址的关系,确定文件的图标被拖动轨迹的终点所在的位置区域所对应的目标设备的地址;或者,获取目标设备的地址,包括:根据触发事件与目标设备的地址的关系,确定在文件的图标被拖动的过程中产生的触发事件对应的目标设备的地址,触发事件是目标设备的图标被按压时产生的。
这里,获取目标设备的地址存在两种情况,一种是终端设备连接的各个目标设备的图标处于屏幕(桌面)上的不同位置区域,根据目标设备的图标所在界面的位置区域和目标设备的地址的关系,以及文件拖动过程中的终点所在的位置区域可以确定文件对应的目标设备。另一种是文件拖动操作触发了按钮,而每个按钮对应一个触发事件,该触发事件与目标设备的地址相互对应,根据终端设备中的触发事件即可确定对应的目标设备。
在本公开实施例中,目标设备的图标所在界面的位置区域和目标设备的地址的关系或触发事件与目标设备的地址的关系可以存储在终端设备中。
其中,目标设备的图标所在界面的位置区域或触发事件可以是预先设定的,当与目标设备建立连接后,按顺序依次将一个位置区域或触发事件和目标设备关联,得到位置区域和目标设备的关系或触发事件与目标设备的关系。
其中,目标设备的图标所在界面也即终端设备的桌面。目标设备的图标所在界面的位置区域也即目标设备的图标在终端设备的桌面上所覆盖的区域。
进一步地,该方法还包括:在目标设备的文件被选中时,检测针对该目标设备的图标的拖动操作;将拖动操作结束时的位置(拖动轨迹的终点位置)作为目标设备的图标的位置;在拖动后的目标设备的图标的位置处显示该目标设备的图标。
在目标设备的图标位置发生变动后,可以更新目标设备的图标所在界面的位置区域和目标设备的地址的关系。
在本公开实施例中,文件传输可以基于但不限于:局域网传输协议、无线高保真(WIFI)直连、热点、蓝牙等技术实现。
例如,该该文件可以采用WIFI直连技术进行发送,一方面WIFI直连无需中间介质点,另一方面WIFI传输速度快,能够保证视频流的传输速度。
而在目标设备一侧,目标设备上也显示对端设备(发送方终端设备)的标识,目标设备自动接收对端发送的文件然后保存,无需用户进行接收确认,无需用户操作;并且,由于这种文件传输通常是同一用户的设备间传输或者两个用户面对面传输,所以不进行接收确认也不存在安全问题。
在本公开实施例中,对于发送文件的终端设备或者目标设备,其均可以执行如下方法:响应于用户点击目标设备(或对端设备)的图标的点击操作,显示文件传输记录。在该实现方式中,通过点击目标设备的图标来显示文件传输历史,便于确定哪些文件已经传输完成。
在该实现方式中,目标设备的图标可以作为一个按钮,当用户点击时,展示文件传输记 录。该文件传输记录可以包括文件名称、文件大小、传输时间等。这样便于确定哪些文件已经传输完成。当然,除了显示文件传输记录外,还可以显示当前正在进行的文件传输情况,当前正在进行的文件传输情况包括文件名称、文件大小、已传输百分比、传输速度等。
该文件传输记录可以显示在一弹窗界面上,该弹窗界面包括一关闭按钮,当用户点击关闭按钮时,终端设备接收到关闭指令,此时关闭该弹窗界面。
图6是根据一示例性实施例示出的一种文件传输装置的结构示意图,参见图6,文件传输装置包括:检测模块301、获取模块302和发送模块303。
其中,检测模块301被配置为检测文件拖动操作,文件拖动操作用于将文件的图标拖动到目标设备的图标上;获取模块302被配置为响应于检测到的文件拖动操作,获取文件的数据;发送模块303被配置为将文件的数据发送给目标设备。
可选地,检测模块301,被配置为当本地存储的文件被选中时,检测针对被选中文件的文件拖动操作。
可选地,检测模块301,被配置为如果文件的图标被拖动轨迹的终点与目标设备的图标所在的位置重合,则确定检测到文件拖动操作;或者,检测模块,被配置为如果在文件的图标被拖动的过程中,检测到目标设备的图标被按压所产生的触发事件,则确定检测到文件拖动操作。
可选地,该装置还包括:输出模块304,被配置为当本地存储的文件被选中时,在预设位置显示目标设备的图标。
可选地,在文件拖动操作中被选中的文件包括至少一个文件。
可选地,发送模块303,包括:获取子模块331,被配置为获取目标设备的地址;发送子模块332,被配置为基于目标设备的地址,将文件的数据发送给目标设备。
可选地,获取子模块331,被配置为根据目标设备的图标所在界面的位置区域和目标设备的地址的关系,确定文件的图标被拖动轨迹的终点所在的位置区域所对应的目标设备的地址;或者,获取子模块331,被配置为根据触发事件与目标设备的地址的关系,确定在文件的图标被拖动的过程中产生的触发事件对应的目标设备的地址,触发事件是目标设备的图标被按压时产生的。
可选地,输出模块304,还被配置为响应于用户点击目标设备的图标的点击操作,显示文件传输记录。
可选地,该装置还包括:接收模块305;发送模块303,还被配置为通过广播发送配对信息;接收模块305,被配置为接收目标设备发送的响应信息,响应信息包括身份信息,身份信息包括用户帐号和设备厂商标识中的至少一种;发送模块303,还被配置为当响应信息所携带的用户帐号与本地所使用的用户帐号相同时,向目标设备发送建立连接请求;接收模块305,还被配置为接收目标设备发送的建立连接应答。
检测模块301检测文件拖动操作的方式可以参见步骤S22,获取模块302获取文件的数据的方式可以参见步骤S23,发送模块303发送文件的数据的方式可以参见步骤S24,在此 省略详细描述。
图7是根据一示例性实施例示出的一种文件传输装置600的框图,该装置600可以为前述终端设备。参照图7,文件传输装置600可以包括以下一个或多个组件:处理组件602,存储器604,电力组件606,多媒体组件608,音频组件610,输入/输出(I/O)的接口612,传感器组件614,以及通信组件616。
处理组件602通常控制文件传输装置600的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件602可以包括一个或多个处理器620来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件602可以包括一个或多个模块,便于处理组件602和其他组件之间的交互。例如,处理组件602可以包括多媒体模块,以方便多媒体组件608和处理组件602之间的交互。
存储器604被配置为存储各种类型的数据以支持在文件传输装置600的操作。这些数据的示例包括用于在文件传输装置600上操作的任何软件程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器604可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
电力组件606为文件传输装置600的各种组件提供电力。电力组件606可以包括电源管理系统,一个或多个电源,及其他与为文件传输装置600生成、管理和分配电力相关联的组件。
多媒体组件608包括在文件传输装置600和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与触摸或滑动操作相关的持续时间和压力。
音频组件610被配置为输出和/或输入音频信号。在一些实施例中,音频组件610包括一个扬声器,用于输出音频信号。
I/O接口612为处理组件602和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。
传感器组件614包括一个或多个传感器,用于为文件传输装置600提供各个方面的状态评估。例如,当智能设备为智能空调时,该传感器组件614可以包括湿度传感器、温度传感器等。
通信组件616被配置为便于文件传输装置600和其他设备之间无线方式的通信。在本公开实施例中,通信组件616可以接入基于通信标准的无线网络,如2G、3G、4G或5G,或它们的组合,从而实现物理下行控制信令检测。在一个示例性实施例中,通信组件616经由 广播信道接收来自外部广播管理系统的广播信号或广播相关信息。可选地,通信组件616还包括NFC模组。
在示例性实施例中,文件传输装置600可以被一个或多个软件专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述文件传输方法。
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器604,上述指令可由文件传输装置600的处理器620执行上述文件传输方法。例如,非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。

Claims (20)

  1. 一种文件传输方法,其特征在于,所述方法包括:
    检测文件拖动操作,所述文件拖动操作用于将文件的图标拖动到目标设备的图标上;
    响应于检测到的所述文件拖动操作,获取所述文件的数据;
    将所述文件的数据发送给所述目标设备。
  2. 根据权利要求1所述的方法,其特征在于,所述检测文件拖动操作,包括:
    当本地存储的文件被选中时,检测针对被选中文件的所述文件拖动操作。
  3. 根据权利要求1所述的方法,其特征在于,所述检测文件拖动操作,包括:
    如果所述文件的图标被拖动轨迹的终点与所述目标设备的图标所在的位置重合,则确定检测到所述文件拖动操作;
    或者,所述检测文件拖动操作,包括:
    如果在所述文件的图标被拖动的过程中,检测到所述目标设备的图标被按压所产生的触发事件,则确定检测到所述文件拖动操作。
  4. 根据权利要求1至3任一项所述的方法,其特征在于,所述方法还包括:
    当本地存储的文件被选中时,在预设位置显示所述目标设备的图标。
  5. 根据权利要求1至3任一项所述的方法,其特征在于,在所述文件拖动操作中被选中的文件包括一个或多个文件。
  6. 根据权利要求1至3任一项所述的方法,其特征在于,所述将所述文件的数据发送给所述目标设备,包括:
    获取所述目标设备的地址;
    基于所述目标设备的地址,将所述文件的数据发送给所述目标设备。
  7. 根据权利要求6所述的方法,其特征在于,所述获取所述目标设备的地址,包括:
    根据目标设备的图标所在界面的位置区域和目标设备的地址的关系,确定所述文件的图标被拖动轨迹的终点所在的位置区域所对应的目标设备的地址;
    或者,所述获取所述目标设备的地址,包括:
    根据触发事件与目标设备的地址的关系,确定在所述文件的图标被拖动的过程中产生的触发事件对应的目标设备的地址,所述触发事件是所述目标设备的图标被按压时产生的。
  8. 根据权利要求1至3任一项所述的方法,其特征在于,所述方法还包括:
    响应于用户点击所述目标设备的图标的点击操作,显示文件传输记录。
  9. 根据权利要求1至3任一项所述的方法,其特征在于,所述方法还包括:
    通过广播发送配对信息;
    接收所述目标设备发送的响应信息,所述响应信息包括身份信息,所述身份信息包括用户帐号和设备厂商标识中的至少一种;
    当所述响应信息所携带的身份信息为预定身份信息时,向所述目标设备发送建立连接请求;
    接收所述目标设备发送的建立连接应答。
  10. 一种文件传输装置,其特征在于,所述装置包括:
    检测模块,被配置为检测文件拖动操作,所述文件拖动操作用于将文件的图标拖动到目标设备的图标上;
    获取模块,被配置为响应于检测到的所述文件拖动操作,获取所述文件的数据;
    发送模块,被配置为将所述文件的数据发送给所述目标设备。
  11. 根据权利要求10所述的装置,其特征在于,所述检测模块,被配置为当本地存储的文件被选中时,检测针对被选中文件的所述文件拖动操作。
  12. 根据权利要求10所述的装置,其特征在于,所述检测模块,被配置为如果所述文件的图标被拖动轨迹的终点与所述目标设备的图标所在的位置重合,则确定检测到所述文件拖动操作;
    或者,所述检测模块,被配置为如果在所述文件的图标被拖动的过程中,检测到所述目标设备的图标被按压所产生的触发事件,则确定检测到所述文件拖动操作。
  13. 根据权利要求10至12任一项所述的装置,其特征在于,所述装置还包括:
    输出模块,被配置为当本地存储的文件被选中时,在预设位置显示所述目标设备的图标。
  14. 根据权利要求10至12任一项所述的装置,其特征在于,在所述文件拖动操作中被选中的文件包括至少一个文件。
  15. 根据权利要求10至12任一项所述的装置,其特征在于,所述发送模块,包括:
    获取子模块,被配置为获取所述目标设备的地址;
    发送子模块,被配置为基于所述目标设备的地址,将所述文件的数据发送给所述目标设备。
  16. 根据权利要求15所述的装置,其特征在于,所述获取子模块,被配置为根据目标设备的图标所在界面的位置区域和目标设备的地址的关系,确定所述文件的图标被拖动轨迹的终点所在的位置区域所对应的目标设备的地址;
    或者,所述获取子模块,被配置为根据触发事件与目标设备的地址的关系,确定在所述文件的图标被拖动的过程中产生的触发事件对应的目标设备的地址,所述触发事件是所述目标设备的图标被按压时产生的。
  17. 根据权利要求10至12任一项所述的装置,其特征在于,所述装置还包括:
    输出模块,被配置为响应于用户点击所述目标设备的图标的点击操作,显示文件传输记录。
  18. 根据权利要求10至12任一项所述的装置,其特征在于,所述装置还包括:接收模块;
    所述发送模块,还被配置为通过广播发送配对信息;
    所述接收模块,被配置为接收所述目标设备发送的响应信息,所述响应信息包括身份信息,所述身份信息包括用户帐号和设备厂商标识中的至少一种;
    所述发送模块,还被配置为当所述响应信息所携带的用户帐号与本地所使用的用户帐号相同时,向所述目标设备发送建立连接请求;
    所述接收模块,还被配置为接收所述目标设备发送的建立连接应答。
  19. 一种文件传输装置,其特征在于,所述装置包括:
    处理器;
    用于存储处理器可执行指令的存储器;
    其中,所述处理器被配置为执行权利要求1至9任一项所述的文件传输方法。
  20. 一种计算机可读存储介质,其上存储有计算机指令,其特征在于,所述计算机指令被处理器执行时实现权利要求1至9任一项所述的方法。
PCT/CN2019/110484 2019-05-20 2019-10-10 文件传输方法、装置及计算机可读存储介质 WO2020232952A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2019562562A JP7328900B2 (ja) 2019-05-20 2019-10-10 ファイル伝送方法、装置、およびコンピュータ読み取り可能な記憶媒体
KR1020197033847A KR102303784B1 (ko) 2019-05-20 2019-10-10 파일 전송 방법, 장치 및 컴퓨터 판독가능한 저장매체
RU2019141051A RU2743890C1 (ru) 2019-05-20 2019-10-10 Способ и устройство переноса файла

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910419550.XA CN111970312A (zh) 2019-05-20 2019-05-20 文件传输方法、装置及计算机可读存储介质
CN201910419550.X 2019-05-20

Publications (1)

Publication Number Publication Date
WO2020232952A1 true WO2020232952A1 (zh) 2020-11-26

Family

ID=68732893

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/110484 WO2020232952A1 (zh) 2019-05-20 2019-10-10 文件传输方法、装置及计算机可读存储介质

Country Status (7)

Country Link
US (1) US11409429B2 (zh)
EP (1) EP3742273B1 (zh)
JP (1) JP7328900B2 (zh)
KR (1) KR102303784B1 (zh)
CN (2) CN117544614A (zh)
RU (1) RU2743890C1 (zh)
WO (1) WO2020232952A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7040547B2 (ja) * 2020-03-10 2022-03-23 カシオ計算機株式会社 情報処理装置及びプログラム
CN112291708B (zh) * 2020-11-27 2023-06-23 歌尔科技有限公司 一种数据传输方法、装置、设备及计算机可读存储介质
CN112698770B (zh) * 2020-12-28 2022-08-16 北京小米移动软件有限公司 信息处理方法及装置、存储介质
WO2023287585A1 (en) * 2021-07-14 2023-01-19 Secturion Systems, Inc. Secure data transfer over wireless networks using data storage encryptors
CN113467684A (zh) * 2021-07-19 2021-10-01 交互未来(北京)科技有限公司 文件传输方法及装置、存储介质及电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080100532A1 (en) * 2006-10-25 2008-05-01 Samsung Electronics Co., Ltd. Presentation apparatus with broadcasting function and method using the same
CN101834937A (zh) * 2010-03-19 2010-09-15 宇龙计算机通信科技(深圳)有限公司 一种终端之间进行信息交互的方法、装置及终端
CN102984393A (zh) * 2012-12-12 2013-03-20 深圳市中兴移动通信有限公司 一种移动终端之间传输文件的方法及移动终端
CN103577089A (zh) * 2012-08-10 2014-02-12 中兴通讯股份有限公司 文件传输的方法及触摸屏终端
CN103731186A (zh) * 2013-12-23 2014-04-16 上海斐讯数据通信技术有限公司 一种传输文件的方法及传输终端

Family Cites Families (35)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5801700A (en) * 1996-01-19 1998-09-01 Silicon Graphics Incorporated System and method for an iconic drag and drop interface for electronic file transfer
EA002886B1 (ru) * 1997-11-13 2002-10-31 Хайперспейс Коммьюникейшнз, Инк. Система пересылки файлов
JP4246847B2 (ja) 1999-04-30 2009-04-02 株式会社東芝 ファクシミリ送受信方法、ファクシミリ送受信装置及び通信システム
US7031004B1 (en) * 1999-08-26 2006-04-18 Xerox Corporation Web print submission from within an application
US7266776B2 (en) * 2002-11-25 2007-09-04 Aol Llc Facilitating communications between computer users across a network
US20060083187A1 (en) * 2004-10-18 2006-04-20 Mobile (R&D) Ltd. Pairing system and method for wirelessly connecting communication devices
US7783985B2 (en) * 2006-01-04 2010-08-24 Citrix Systems, Inc. Systems and methods for transferring data between computing devices
US20080307367A1 (en) * 2007-06-07 2008-12-11 John Michael Garrison Method and apparatus for a drag and drop operation implementing a hierarchical path name
JP2009048452A (ja) 2007-08-21 2009-03-05 Nikon Corp 画像転送プログラム
JP4453738B2 (ja) * 2007-10-18 2010-04-21 ソニー株式会社 ファイル転送方法、装置、およびプログラム
KR101012300B1 (ko) * 2008-03-07 2011-02-08 삼성전자주식회사 터치스크린을 구비한 휴대 단말기의 사용자 인터페이스장치 및 그 방법
US20100005138A1 (en) * 2008-04-21 2010-01-07 Topia Technology Electronic file sharing
US8375336B2 (en) * 2008-05-23 2013-02-12 Microsoft Corporation Panning content utilizing a drag operation
US8516125B2 (en) 2008-06-08 2013-08-20 Apple Inc. System and method for simplified data transfer
JP2010092455A (ja) * 2008-09-10 2010-04-22 Ricoh Co Ltd ファイル管理システム及びプログラム
US8321802B2 (en) * 2008-11-13 2012-11-27 Qualcomm Incorporated Method and system for context dependent pop-up menus
TWI477114B (zh) * 2011-02-25 2015-03-11 Univ Nat Chiao Tung 以擴增實境為基礎並結合雲端計算之創新檔案傳輸方法
KR101832370B1 (ko) * 2011-07-14 2018-02-28 엘지전자 주식회사 이동 단말기
JP5172997B2 (ja) * 2011-07-15 2013-03-27 シャープ株式会社 情報処理装置、操作画面表示方法、制御プログラムおよび記録媒体
CN102687117B (zh) * 2012-02-06 2014-09-03 华为技术有限公司 数据传输的方法和装置
CN102542768B (zh) * 2012-02-10 2013-10-09 华为终端有限公司 一种射频设备的配对方法、设备及系统
CN102707880B (zh) * 2012-04-24 2015-01-07 华为终端有限公司 文件传输的方法及终端
CN102830906B (zh) * 2012-07-04 2016-08-03 华为终端有限公司 基于用户界面进行文件处理的方法及终端设备
KR101498603B1 (ko) 2012-09-04 2015-03-05 주식회사 팬택 정보 전달 단말 장치 및 그 방법
WO2015122893A1 (en) * 2014-02-13 2015-08-20 Hewlett-Packard Development Company, L.P. Accessory modules
CN104053249A (zh) * 2014-06-18 2014-09-17 广州三星通信技术研究有限公司 用于在电子终端之间传输数据的装置和方法及其系统
CN104038263B (zh) 2014-06-18 2017-01-11 小米科技有限责任公司 建立蓝牙连接的方法和装置
CN104468741B (zh) * 2014-11-21 2019-01-25 中兴通讯股份有限公司 云桌面的处理方法及装置
EP3484134B1 (en) 2015-02-02 2022-03-23 Apple Inc. Device, method, and graphical user interface for establishing a relationship and connection between two devices
CN104918208B (zh) 2015-05-29 2018-12-07 努比亚技术有限公司 移动终端配对方法及移动终端
WO2017016525A1 (zh) * 2015-07-29 2017-02-02 腾讯科技(深圳)有限公司 业务数据的群发送方法、终端及服务器
JP6625887B2 (ja) 2015-07-31 2019-12-25 任天堂株式会社 無線システム、無線機器、通信プログラム、および通信方法
CN106547455A (zh) * 2015-09-23 2017-03-29 百度在线网络技术(北京)有限公司 终端设备传输文件的方法及终端设备
CN108803958B (zh) * 2017-04-26 2022-12-16 腾讯科技(深圳)有限公司 文件载入控制、云存储应用中实现上传的交互方法和装置
EP3675460B1 (en) 2017-10-09 2022-06-22 Huawei Technologies Co., Ltd. File sharing method and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080100532A1 (en) * 2006-10-25 2008-05-01 Samsung Electronics Co., Ltd. Presentation apparatus with broadcasting function and method using the same
CN101834937A (zh) * 2010-03-19 2010-09-15 宇龙计算机通信科技(深圳)有限公司 一种终端之间进行信息交互的方法、装置及终端
CN103577089A (zh) * 2012-08-10 2014-02-12 中兴通讯股份有限公司 文件传输的方法及触摸屏终端
CN102984393A (zh) * 2012-12-12 2013-03-20 深圳市中兴移动通信有限公司 一种移动终端之间传输文件的方法及移动终端
CN103731186A (zh) * 2013-12-23 2014-04-16 上海斐讯数据通信技术有限公司 一种传输文件的方法及传输终端

Also Published As

Publication number Publication date
JP2021528706A (ja) 2021-10-21
RU2743890C1 (ru) 2021-03-01
EP3742273A1 (en) 2020-11-25
EP3742273B1 (en) 2024-03-27
US20200371655A1 (en) 2020-11-26
KR20200135714A (ko) 2020-12-03
KR102303784B1 (ko) 2021-09-24
CN117544614A (zh) 2024-02-09
US11409429B2 (en) 2022-08-09
CN111970312A (zh) 2020-11-20
JP7328900B2 (ja) 2023-08-17

Similar Documents

Publication Publication Date Title
WO2020232952A1 (zh) 文件传输方法、装置及计算机可读存储介质
JP6228676B2 (ja) 接続状態プロンプティング方法および装置
EP3872611A1 (en) Multi-screen interaction method and apparatus, and storage medium
US10908791B2 (en) Inline message alert
RU2636524C2 (ru) Способ, устройство и система для управления административной связью между учетной записью и устройством
JP6101861B2 (ja) グループ作成方法、グループ脱退方法、装置、プログラム、及び記録媒体
JP7125834B2 (ja) 画像取得方法および装置
WO2017143729A1 (zh) 遥控器绑定的处理方法、装置和设备
JP2023511195A (ja) メッセージ提示方法及び電子デバイス
JP2017512352A (ja) デバイスバインディング方法、装置、プログラム及び記録媒体
CN108833585B (zh) 信息交互方法、装置及存储介质
CN109218410B (zh) 一种消息显示的方法及终端设备
KR101704957B1 (ko) 데이터 전송 방법, 장치, 기기, 프로그램 및 기록매체
US11176192B2 (en) Method and apparatus for recalling image file, control method and apparatus for recalling image file, and mobile terminal
KR20190002575A (ko) 디바이스 간의 복사하기 및 붙이기
CN109302341B (zh) 即时通信方法、装置、电子设备及存储介质
CN109743246B (zh) 消息加急提醒方法、装置和电子设备
EP3647970A1 (en) Method and apparatus for sharing information
CN109885360B (zh) 一种数据处理方法、装置及存储介质
WO2017024739A1 (zh) 发送文件的方法及装置
WO2017107543A1 (zh) 信息输入方法及装置
JP6505043B2 (ja) 通信端末、情報送信方法及びプログラム
CN106533848B (zh) 数据获取方法及装置
US11394818B2 (en) System updating method and device, and storage medium
CN112347275A (zh) 媒体文件推送方法、装置、设备及计算机可读存储介质

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2019562562

Country of ref document: JP

Kind code of ref document: A

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

Ref document number: 19929259

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

Country of ref document: EP

Kind code of ref document: A1