CN106375479B - Data sharing method and device - Google Patents

Data sharing method and device Download PDF

Info

Publication number
CN106375479B
CN106375479B CN201610950775.4A CN201610950775A CN106375479B CN 106375479 B CN106375479 B CN 106375479B CN 201610950775 A CN201610950775 A CN 201610950775A CN 106375479 B CN106375479 B CN 106375479B
Authority
CN
China
Prior art keywords
data
shared
screen
wifi
sharing
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201610950775.4A
Other languages
Chinese (zh)
Other versions
CN106375479A (en
Inventor
石新明
底浩
谷务成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610950775.4A priority Critical patent/CN106375479B/en
Publication of CN106375479A publication Critical patent/CN106375479A/en
Application granted granted Critical
Publication of CN106375479B publication Critical patent/CN106375479B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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]
    • 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
    • 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
    • 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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure is directed to a kind of data sharing method and devices.The described method includes: determining the data type of data to be shared when receiving the data sharing instruction of shared data;When the data type of the data to be shared is display data on the screen, the target device of the direct-connected connection of Xiang Jianli WIFI sends Screen sharing request;When receiving the shared response message that the target device is returned according to Screen sharing request, Screen sharing operation is executed.Disclosed technique scheme can be simplified Screen sharing operation, be optimized the experience that user uses smart machine with the Screen sharing operation executed between simple realization smart machine.

Description

Data sharing method and device
Technical field
This disclosure relates to wireless local area network technology field more particularly to a kind of data sharing method and device.
Background technique
With the extensive use of smart machine (such as smart phone, tablet computer, smart television), between multiple smart machines Screen interaction and file transfer applications get more and more attention.In the related technology, screen is carried out between different smart machines The operation of interaction and file transmission is more complicated, and the screen interaction multi-pass between smart machine crosses screenshot capture realization, no The operation of setting file store path is also more complicated when being able to achieve real-time interactive, and transmitting file between smart machine, phase Closing technology law leads to that the data sharing operations between smart machine are cumbersome, are not easy, and directly affects the body that user uses smart machine It tests.
Summary of the invention
To overcome the problems in correlation technique, the embodiment of the present disclosure provides a kind of data sharing method and device, uses To solve the problems, such as that data sharing operations are cumbersome, are not easy between management smart machine.
According to the first aspect of the embodiments of the present disclosure, a kind of data sharing method is provided, is applied on source device, can be wrapped It includes:
When receiving the data sharing instruction of shared data, the data type of data to be shared is determined;
When the data type of the data to be shared is display data on the screen, the target of the direct-connected connection of Xiang Jianli WIFI is set Preparation send Screen sharing to request;
When receiving the shared response message that the target device is returned according to Screen sharing request, screen is executed Sharing operation.
In one embodiment, method may also include that
When the data type to be shared is file data, connect by the way that the WIFI is direct-connected to the target device File data described in shown portfolios on display interface.
In one embodiment, method further include:
It receives and sets the direct-connected operational order of WIFI for current network connection type;
It controls the smart machine and network connection is switched to WIFI is direct-connected, and built with the target device in preset range The vertical direct-connected connection of WIFI.
In one embodiment, method further include:
When the second predetermined registration operation for receiving the first predetermined registration operation by physical keyboard triggering or being triggered by touch screen When, determine the data sharing instruction for receiving shared data.
In one embodiment, the data type of data to be shared is determined, comprising:
In the data sharing instruction for receiving the shared data, it is determined whether have selected file data;
If there is selected file data, it is determined that the data type of data to be shared is file data;
If the file data not being selected, it is determined that the data type of data to be shared is display data on the screen.
In one embodiment, Screen sharing operation is executed, comprising:
By wireless screen transmission, the display content synchronization on the source device screen is shown on the target device.
According to the second aspect of an embodiment of the present disclosure, a kind of data sharing method is provided, using on the target device, method Include:
It receives and establishes the Screen sharing request that the source device of the direct-connected connection of WIFI is sent;
It is requested according to the Screen sharing, Xiang Suoshu source device sends shared response message;
When receiving the screen display content that the source device is sent according to the shared response message, in current interface The screen display content of the upper display source device.
In one embodiment, method further include:
Receive the file data that the source device is sent by the direct-connected connection of WIFI;
The file data is stored to file shown on display interface.
In one embodiment, method further include:
It receives and sets the direct-connected operational order of WIFI for current network connection type;
Establish the direct-connected connection of WIFI between the source device.
According to the third aspect of an embodiment of the present disclosure, a kind of data sharing device is provided, is applied on source device, device packet It includes:
Determination type module determines data to be shared when being configured as receiving the data sharing instruction of shared data Data type;
Sending module is configured as determining that the data type of the data to be shared is screen in the determination type module When showing data, the target device of the direct-connected connection of Xiang Jianli WIFI sends Screen sharing request;
Sharing module is configured as total in the screen for receiving the target device and being sent according to the sending module When enjoying the shared response message that request returns, Screen sharing operation is executed.
In one embodiment, device further include:
Data transmission module is configured as determining that the data type to be shared is file in the determination type module When data, file described in shown portfolios on the target device display interface is connected by the way that the WIFI is direct-connected Data.
In one embodiment, device further include:
First receiving module, is configured as receiving and sets the direct-connected operation of WIFI for current network connection type and refer to It enables;
Switching module is connected, is configured as when first receiving module receives the operational order, described in control Network connection is switched to that WIFI is direct-connected by smart machine, and establishes the direct-connected connection of WIFI with the target device in preset range.
In one embodiment, device further include:
Determining module is configured as receiving the first predetermined registration operation triggered by physical keyboard or touching by touch screen When the second predetermined registration operation of hair, the data sharing instruction for receiving shared data is determined.
In one embodiment, determination type module includes:
First determines submodule, is configured as in the data sharing instruction for receiving the shared data, it is determined whether There is selected file data;
Second determines submodule, is configured as when described first determines that submodule is determining and have selected file data, The data type for determining data to be shared is file data;
Third determines submodule, is configured as determining that submodule determines the file data not being selected described first When, determine that the data type of data to be shared is display data on the screen.
In one embodiment, sharing module includes:
Simultaneous display submodule is configured as through wireless screen transmission, by the display content synchronization on the source device screen It is shown on the target device.
According to a fourth aspect of embodiments of the present disclosure, a kind of data sharing device is provided, using on the target device, device Include:
Second receiving module is configured as receiving the Screen sharing request that the source device for establishing the direct-connected connection of WIFI is sent;
Responder module is configured as being requested according to the Screen sharing, and Xiang Suoshu source device sends shared response message;
Display module is configured as in the shared response for receiving the source device and being sent according to the responder module When the screen display content that message is sent, the screen display content of the source device is shown in current interface.
In one embodiment, device further include:
Third receiving module is configured as receiving the file data that the source device is sent by the direct-connected connection of WIFI;
Memory module is configured as storing the received file data of the third receiving module to display interface Under shown file.
In one embodiment, device further include:
4th receiving module, is configured as receiving and sets the direct-connected operation of WIFI for current network connection type and refer to It enables;
Connection establishment module is configured as the direct-connected connection of WIFI established between the source device.
According to a fifth aspect of the embodiments of the present disclosure, a kind of data sharing device is provided, is applied on source device, device packet It includes:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
When receiving the data sharing instruction of shared data, the data type of data to be shared is determined;
When the data type of the data to be shared is display data on the screen, the target of the direct-connected connection of Xiang Jianli WIFI is set Preparation send Screen sharing to request;
When receiving the shared response message that the target device is returned according to Screen sharing request, screen is executed Sharing operation.
According to a sixth aspect of an embodiment of the present disclosure, a kind of data sharing device is provided, using on the target device, device Include:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
It receives and establishes the Screen sharing request that the source device of the direct-connected connection of WIFI is sent;
It is requested according to the Screen sharing, Xiang Suoshu source device sends shared response message;
When receiving the screen display content that the source device is sent according to the shared response message, in current interface The screen display content of the upper display source device.
The technical scheme provided by this disclosed embodiment can include the following benefits: receive shared number in source device According to data sharing instruction when, such as to execute preset slide data generated on the touchscreen total receiving user When enjoying instruction, it may be determined that the data type of data to be shared, and execute screen when data type is display data on the screen and be total to It enjoys operation, therefore user executes slide on the touchscreen can execute Screen sharing operation between smart machine, simplifies Screen sharing operation optimizes the experience that user uses smart machine.
Also, by the way that file data is directly sent to target device interface when determining data type is file data Under the file of upper display, realizes and directly drag to file under the destination folder of target device, solve the relevant technologies The operation of setting file store path more complicated problem when transmitting file between middle smart machine, simplifies file transmission Operation.
Network connection is switched to WIFI is direct-connected by control source device, and is established with the target device in preset range The direct-connected connection of WIFI, so that can realize that screen is total by the direct-connected connection of point-to-point WIFI between source device and target device It enjoys and being transmitted with file.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.
Figure 1A is the flow chart of data sharing method shown according to an exemplary embodiment.
Figure 1B is the scene figure of data sharing method shown according to an exemplary embodiment.
Fig. 2A is the flow chart according to the data sharing method shown in an exemplary embodiment one.
Fig. 2 B is the flow chart according to the step 202 shown in an exemplary embodiment one.
Fig. 3 is according to establishing the direct-connected connection of WIFI between the source device and target device shown in an exemplary embodiment two The flow chart of method.
Fig. 4 is the flow chart according to the data sharing method shown in an exemplary embodiment three.
Fig. 5 is the flow chart according to the data sharing method shown in an exemplary embodiment four.
Fig. 6 is a kind of block diagram of data sharing device shown according to an exemplary embodiment.
Fig. 7 is the block diagram of another data sharing device shown according to an exemplary embodiment.
Fig. 8 is a kind of block diagram of data sharing device shown according to an exemplary embodiment.
Fig. 9 is the block diagram of another data sharing device shown according to an exemplary embodiment.
Figure 10 is a kind of block diagram suitable for data sharing device shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended The example of device and method being described in detail in claims, some aspects of the invention are consistent.
Figure 1A is the flow chart of data sharing method shown according to an exemplary embodiment, and Figure 1B is exemplary according to one Implement the scene figure of the data sharing method exemplified;The data sharing method can apply smart machine (such as: intelligent hand Machine, tablet computer, smart television) on, as shown in Figure 1A, the data sharing method the following steps are included:
In a step 101, when receiving the data sharing instruction of shared data, the data type of data to be shared is determined.
In one embodiment, the method for determining the data type of data to be shared can be found in Fig. 2 B illustrated embodiment, here It is not described in detail first.
In one embodiment, data to be shared can be display data on the screen, such as picture, screen that screen is being shown Upper video being played on etc.;In another embodiment, data to be shared can be file data, for example, a first song, a figure Piece, a document etc..
In one embodiment, when receiving the first predetermined registration operation that user is triggered by physical keyboard, it may be determined that receive Data sharing to shared data instructs, for example, when user continuously presses the video switching key on smart television twice, intelligence TV can receive the data sharing instruction of shared data;In another embodiment, when receive user pass through touch screen trigger Second predetermined registration operation when, it may be determined that receive shared data data sharing instruction, for example, when user smart phone touching When touching that screen is upper to slide into touch screen right side edge from touch screen left side edge, the data that smart phone can receive shared data are total to Enjoy instruction.
In one embodiment, the first predetermined registration operation and second predetermined registration operation can be provided and be stored by smart machine provider In smart machine.
In a step 102, when the data type of data to be shared is display data on the screen, the direct-connected connection of Xiang Jianli WIFI Target device send Screen sharing request.
In one embodiment, source device and target device may be implemented in point-to-point one by the way that respective WIFI is direct-connected Portion's LAN environment can when source device receives data sharing and instructs and determine that data to be shared are display data on the screen Screen sharing request is sent to target device.
In step 103, it when receiving the shared response message that target device is returned according to Screen sharing request, executes Screen sharing operation.
In one embodiment, Screen sharing operation can be realized by wireless screen transmission technology.
In an exemplary scene, as shown in Figure 1B, source device 11 (source device can be any one smart machine, Such as smart phone, tablet computer, smart television, are illustrated here with smart phone) will network connection to be switched to WIFI direct-connected After connection, (target device can be any one intelligence to target device 12 that can be WIFI direct-connected with the setting in preset range Equipment, such as smart phone, tablet computer, smart television, are still illustrated here with smart phone) connection is established, thus source device 11 in the data sharing instruction for receiving shared data, can be realized according to the data type and target device 12 of data to be shared Screen sharing and data transmission.In the disclosure, user can trigger number by the physical button or touch screen of source device 11 According to shared instruction, the Screen sharing and file transmission between source device 11 and target device 12 are realized, it is easy to operate.
In the present embodiment, exist when source device receives the data sharing instruction of shared data, such as receiving user When executing the data sharing generated instruction of preset slide on screen, it may be determined that the data type of data to be shared, and And Screen sharing operation is executed when data type is display data on the screen, user executes slide on the screen can be in intelligence Screen sharing operation can be executed between equipment, simplify Screen sharing operation, optimize the experience that user uses smart machine.
In one embodiment, method may also include that
When data type to be shared is file data, the institute on target device display interface is connected by the way that WIFI is direct-connected The portfolios file data of display.
In one embodiment, method further include:
It receives and sets the direct-connected operational order of WIFI for current network connection type;
Network connection is switched to that WIFI is direct-connected by control smart machine, and is established with the target device in preset range The direct-connected connection of WIFI.
In one embodiment, method further include:
When the second predetermined registration operation for receiving the first predetermined registration operation by physical keyboard triggering or being triggered by touch screen When, determine the data sharing instruction for receiving shared data.
In one embodiment, the data type of data to be shared is determined, comprising:
In the data sharing instruction for receiving shared data, it is determined whether have selected file data;
If there is selected file data, it is determined that the data type of data to be shared is file data;
If the file data not being selected, it is determined that the data type of data to be shared is display data on the screen.
In one embodiment, Screen sharing operation is executed, comprising:
By wireless screen transmission, the display content synchronization on source device screen is shown on target device.
Specifically how to realize data sharing, please refers to subsequent embodiment.
So far, the above method that the embodiment of the present disclosure provides, can be realized by shirtsleeve operation two smart machines it Between Screen sharing and file transmission, optimize user use smart machine experience.
The technical solution of embodiment of the present disclosure offer is provided below with specific embodiment.
Fig. 2A is according to the flow chart of the data sharing method shown in an exemplary embodiment one, and Fig. 2 B is according to an example The flow chart of step 202 shown in property embodiment one;The above method that the present embodiment utilizes the embodiment of the present disclosure to provide, is set with source Standby realize between target device illustrates for Screen sharing and file are transmitted, as shown in Figure 2 A, including it is as follows Step:
In step 201, the data sharing instruction of shared data is received.
In one embodiment, when receiving the first predetermined registration operation that user is triggered by physical keyboard, it may be determined that receive Data sharing to shared data instructs, for example, when user continuously presses the video switching key on smart television twice, intelligence TV can receive the data sharing instruction of shared data;In another embodiment, when receive user pass through touch screen trigger Second predetermined registration operation when, it may be determined that receive shared data data sharing instruction, for example, when user smart phone touching When touching that screen is upper to slide into touch screen right side edge from touch screen left side edge, the data that smart phone can receive shared data are total to Enjoy instruction.
In step 202, it determines the data type of data to be shared, executes step 203 and step 204.
In one embodiment, the detailed description of step 202 may refer to Fig. 2 B, as shown in Figure 2 B, include the following steps:
In step 211, in the data sharing instruction for receiving shared data, it is determined whether have selected number of files According to 212 being thened follow the steps, if the file data not being selected, thens follow the steps if there is selected file data 213。
In the step 212, the data type for determining data to be shared is file data.
In step 213, the data type for determining data to be shared is display data on the screen.
In step 203, it when data type to be shared is file data, connects by the way that WIFI is direct-connected to target device Shown portfolios file data, process terminate on display interface.
In one embodiment, file data directly can be sent to target device, target device directly deposits file data Store up into the file shown on display interface, for example, if the file shown on display interface be " file management figure Piece ", then target device can directly store the file data received to " file management picture " file.
In step 204, when the data type of data to be shared is display data on the screen, the direct-connected connection of Xiang Jianli WIFI Target device send Screen sharing request.
In step 205, it when receiving the shared response message that target device is returned according to Screen sharing request, executes Screen sharing operation.
In one embodiment, Screen sharing operation can be realized by wireless screen transmission technology.
In the present embodiment, by file data being directly sent to target and is set when determining data type being file data Under the file shown on standby interface, realizes and directly drag to file under the destination folder of target device, solve phase The more complicated problem of the operation of setting file store path, simplifies file when transmitting file in the technology of pass between smart machine The operation of transmission.
Fig. 3 is according to establishing the direct-connected connection of WIFI between the source device and target device shown in an exemplary embodiment two The flow chart of method, the above method that the present embodiment utilizes the embodiment of the present disclosure to provide, to be built between source device and target device It is illustrated for the vertical direct-connected connection of WIFI, as shown in figure 3, including the following steps:
In step 301, it receives and sets the direct-connected operational order of WIFI for current network connection type.
In one embodiment, the direct-connected type of WIFI is typically provided in the network connection of smart machine, for different type Smart machine, user triggering set the direct-connected operation of WIFI for current network connection type can not be identical, for example, right In smart phone, when user triggers " setting-Wireless LAN (the Wireless Local Area clicked in smart machine Networks, referred to as WLAN)-WIFI is direct-connected " operation of button when, smart machine can receive current network connection class Type is set as the direct-connected operational order of WIFI.
In step 302, network connection is switched to that WIFI is direct-connected by control smart machine, and with the mesh in preset range Marking device establishes the direct-connected connection of WIFI.
In one embodiment, the coverage area that preset range can be direct-connected for WIFI, such as within the scope of 100 meters.
In one embodiment, smart machine will be connected to the network be switched to WIFI it is direct-connected after, can automatically scanning preset range Interior WIFI direct connection intelligent equipment, receive user triggering the operation of the direct-connected connection of WIFI is established with target device after, source Equipment can establish the direct-connected connection of WIFI between target device automatically.
In the present embodiment, it is direct-connected that network connection is switched to by WIFI by control source device, and in preset range Target device establishes the direct-connected connection of WIFI, so that can pass through the direct-connected company of point-to-point WIFI between source device and target device It connects, realizes Screen sharing and file transmission.
Fig. 4 is according to the flow chart of the data sharing method shown in an exemplary embodiment three, which can To apply on target device (such as: smart phone, tablet computer, smart television), as shown in figure 4, the data sharing method The following steps are included:
In step 401, it receives and establishes the Screen sharing request that the source device of the direct-connected connection of WIFI is sent.
In one embodiment, the equipment identification information of active equipment is carried in Screen sharing request.
In step 402, it is requested according to Screen sharing, sends shared response message to source device.
In step 403, when receiving the screen display content that source device is sent according to shared response message, current The screen display content of source device is shown on interface.
In an exemplary scene, as shown in Figure 1B, (source device can be any one smart machine to source device 11, such as Smart phone, tablet computer, smart television etc., are illustrated here with smart phone) network connection is switched to the direct-connected company of WIFI After connecing, target device 12 that can be direct-connected with the setting WIFI in preset range establishes connection, and thus source device 11 is receiving When the data sharing instruction of shared data, can be realized according to the data types of data to be shared and target device 12 Screen sharing and Data transmission.In the disclosure, user by the physical button of source device 11 or touch screen can trigger data shared instruction, Realize the Screen sharing and file transmission between source device 11 and target device 12, it is easy to operate.
In the present embodiment, when target device receives the Screen sharing request of source device transmission, it can synchronize on the screen aobvious Show the content shown on source device screen, optimizes the experience that user uses smart machine.
In one embodiment, method further include:
Receive the file data that source device is sent by the direct-connected connection of WIFI;
File data is stored to file shown on display interface.
In one embodiment, method further include:
It receives and sets the direct-connected operational order of WIFI for current network connection type;
Establish the direct-connected connection of WIFI between source device.
Fig. 5 is according to the flow chart of the data sharing method shown in an exemplary embodiment four, and the present embodiment utilizes this public affairs The above method for opening embodiment offer is illustrated for transmitting file data between source device and target device, The data sharing method the following steps are included:
In step 501, the file data that source device is sent by the direct-connected connection of WIFI is received.
In step 502, file data is stored to file shown on display interface.
In one embodiment, the file for storing received file data can be opened in advance;In an embodiment In, if being not turned on any file, directly file data can be stored into desktop folder.
In the present embodiment, when receiving the file data of source device transmission, directly file data is stored to target and is set Under the file shown on standby interface, realizes and directly drag to file under the destination folder of target device, solve phase The more complicated problem of the operation of setting file store path, simplifies file when transmitting file in the technology of pass between smart machine The operation of transmission.
Corresponding with the embodiment of aforementioned data sharing method, the disclosure additionally provides the corresponding implementation of data sharing device Example.
Fig. 6 is a kind of block diagram of data sharing device shown according to an exemplary embodiment, which applies sets in source It is standby upper, as shown in fig. 6, the device includes:
Determination type module 610 determines data to be shared when being configured as receiving the data sharing instruction of shared data Data type;
Sending module 620 is configured as determining that the data type of data to be shared is aobvious for screen in determination type module 610 Registration according to when, the target device of the direct-connected connection of Xiang Jianli WIFI sends Screen sharing request;
Sharing module 630 is configured as requesting in the Screen sharing for receiving target device and being sent according to sending module 620 When the shared response message returned, Screen sharing operation is executed.
Fig. 7 is the block diagram of another data sharing device shown according to an exemplary embodiment, as shown in fig. 7, in Fig. 6 On the basis of embodiment, in one embodiment, device further include:
Data transmission module 640 is configured as determining that data type to be shared is number of files in determination type module 610 According to when, connect on target device display interface shown portfolios file data by the way that WIFI is direct-connected.
In one embodiment, device further include:
First receiving module 650, is configured as receiving and sets the direct-connected operation of WIFI for current network connection type Instruction;
Switching module 660 is connected, is configured as when the first receiving module 650 receives operational order, control intelligence is set Standby will be connected to the network is switched to that WIFI is direct-connected, and establishes the direct-connected connection of WIFI with the target device in preset range.
In one embodiment, device further include:
Determining module 670 is configured as receiving the first predetermined registration operation triggered by physical keyboard or passing through touch When shielding the second predetermined registration operation of triggering, the data sharing instruction for receiving shared data is determined.
In one embodiment, determination type module 610 includes:
First determines submodule 611, is configured as in the data sharing instruction for receiving shared data, it is determined whether have Selected file data;
Second determines submodule 612, is configured as determining that the determination of submodule 611 has selected file data first When, determine that the data type of data to be shared is file data;
Third determines submodule 613, is configured as determining that submodule 611 determines the file data not being selected first When, determine that the data type of data to be shared is display data on the screen.
In one embodiment, sharing module 630 includes:
Simultaneous display submodule 631 is configured as showing the display content synchronization on source device screen by wireless screen transmission Show on target device.
Fig. 8 is a kind of block diagram of data sharing device shown according to an exemplary embodiment, which can be applicable to mesh On marking device, as shown in figure 8, the device can include:
Second receiving module 810, the Screen sharing for being configured as receiving the source device transmission for establishing the direct-connected connection of WIFI are asked It asks;
Responder module 820 is configured as being requested according to Screen sharing, sends shared response message to source device;
Display module 830 is configured as sending out in the shared response message for receiving source device and being sent according to responder module 820 When the screen display content sent, the screen display content of source device is shown in current interface.
Fig. 9 is the block diagram of another data sharing device shown according to an exemplary embodiment, as shown in figure 9, in Fig. 8 On the basis of embodiment, in one embodiment, device further include:
Third receiving module 840 is configured as receiving the file data that source device is sent by the direct-connected connection of WIFI;
Memory module 850 is configured as storing the received file data of third receiving module 840 to institute on display interface Under the file of display.
In one embodiment, device further include:
4th receiving module 860, is configured as receiving and sets the direct-connected operation of WIFI for current network connection type Instruction;
Connection establishment module 870 is configured as the direct-connected connection of WIFI established between source device.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein being used as separate part description Unit may or may not be physically separated, component shown as a unit may or may not be Physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to the actual needs Some or all of the modules therein is selected to realize the purpose of disclosure scheme.Those of ordinary skill in the art are not paying wound In the case that the property made is worked, it can understand and implement.
Figure 10 is a kind of block diagram suitable for data sharing device shown according to an exemplary embodiment.For example, device 1000 can be smart phone, tablet computer, personal digital assistant etc..
Referring to Fig.1 0, device 1000 may include following one or more components: processing component 1002, memory 1004, Power supply module 1006, multimedia component 1008, audio component 1010, the interface 1012 of input/output (I/O), sensor module 1014 and communication component 1010.
The integrated operation of the usual control device 1000 of processing component 1002, such as with display, telephone call, data communication, Camera operation and record operate associated operation.Processing element 1002 may include one or more processors 1020 to execute Instruction, to perform all or part of the steps of the methods described above.In addition, processing component 1002 may include one or more moulds Block, convenient for the interaction between processing component 1002 and other assemblies.For example, processing component 1002 may include multi-media module, To facilitate the interaction between multimedia component 1008 and processing component 1002.
Memory 1004 is configured as storing various types of data to support the operation in equipment 1000.These data Example includes the instruction of any application or method for operating on device 1000, contact data, telephone book data, Message, picture, video etc..Memory 1004 can by any kind of volatibility or non-volatile memory device or they Combination is realized, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), it is erasable can Program read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory Reservoir, disk or CD.
Electric power assembly 1006 provides electric power for the various assemblies of device 1000.Electric power assembly 1006 may include power management System, one or more power supplys and other with for device 1000 generate, manage, and distribute the associated component of electric power.
Multimedia component 1008 includes the screen of one output interface of offer between device 1000 and user.Some In embodiment, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen It may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensors To sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense the boundary of a touch or slide action, But also detection duration and pressure relevant to touch or slide.In some embodiments, multimedia component 1008 Including a front camera and/or rear camera.When equipment 1000 is in operation mode, such as screening-mode or video mode When, front camera and/or rear camera can receive external multi-medium data.Each front camera and postposition camera shooting Head can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 1010 is configured as output and/or input audio signal.For example, audio component 1010 includes a wheat Gram wind (MIC), when device 1000 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone quilt It is configured to receive external audio signal.The received audio signal can be further stored in memory 1004 or via communication Component 1010 is sent.In some embodiments, audio component 1010 further includes a loudspeaker, is used for output audio signal.
I/O interface 1012 provides interface, above-mentioned peripheral interface module between processing component 1002 and peripheral interface module It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and Locking press button.
Sensor module 1014 includes one or more sensors, and the state for providing various aspects for device 1000 is commented Estimate.For example, sensor module 1014 can detecte the state that opens/closes of equipment 1000, the relative positioning of component, such as group Part is the display and keypad of device 1000, and sensor module 1014 can be with 1,000 1 groups of detection device 1000 or device The position change of part, the existence or non-existence that user contacts with device 1000,1000 orientation of device or acceleration/deceleration and device 1000 temperature change.Sensor module 1014 may include proximity sensor, be configured to connect in not any physics It is detected the presence of nearby objects when touching.Sensor module 1014 can also include optical sensor, as CMOS or ccd image are sensed Device, for being used in imaging applications.In some embodiments, which can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1010 is configured to facilitate the communication of wired or wireless way between device 1000 and other equipment.Dress The wireless network based on communication standard, such as WIFI can be accessed by setting 1000,2G or 3G or their combination.It is exemplary at one In embodiment, communication component 1010 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, communication component 1010 further includes near-field communication (NFC) module, to promote short range communication. For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) skill can be based in NFC module Art, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1000 can be by one or more application specific integrated circuit (ASIC), number Signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 1004 of instruction, above-metioned instruction can be executed by the processor 1020 of device 1000 to complete the above method.Example Such as, non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and Optical data storage devices etc..
Specific structure suitable for target device can be found in block diagram shown in Fig. 10 and corresponding description, here no longer in detail It states.
Those skilled in the art will readily occur to its of the disclosure after considering specification and practicing disclosure disclosed herein Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (14)

1. a kind of data sharing method, is applied on source device, which is characterized in that the described method includes:
When receiving the data sharing instruction of shared data, the data type of data to be shared is determined;
When the data type of the data to be shared is display data on the screen, the target device hair of the direct-connected connection of Xiang Jianli WIFI Screen sharing is sent to request;
When receiving the shared response message that the target device is returned according to Screen sharing request, Screen sharing is executed Operation;
The method also includes:
When the data type to be shared is file data, shown by direct-connected connect to the target device of the WIFI File data described in shown portfolios on interface;
The data type of the determination data to be shared, comprising:
In the data sharing instruction for receiving the shared data, it is determined whether have selected file data;
If there is selected file data, it is determined that the data type of data to be shared is file data;
If the file data not being selected, it is determined that the data type of data to be shared is display data on the screen.
2. the method according to claim 1, wherein the method also includes:
It receives and sets the direct-connected operational order of WIFI for current network connection type;
It controls the source device and network connection is switched to WIFI is direct-connected, and establish WIFI with the target device in preset range Direct-connected connection.
3. the method according to claim 1, wherein the method also includes:
When receiving the first predetermined registration operation triggered by physical keyboard or the second predetermined registration operation triggered by touch screen, really Surely the data sharing instruction of shared data is received.
4. the method according to claim 1, wherein the execution Screen sharing operates, comprising:
By wireless screen transmission, the display content synchronization on the source device screen is shown on the target device.
5. a kind of data sharing method, using on the target device, which is characterized in that the described method includes:
It receives and establishes the Screen sharing request that the source device of the direct-connected connection of WIFI is sent;
It is requested according to the Screen sharing, Xiang Suoshu source device sends shared response message;
When receiving the screen display content that the source device is sent according to the shared response message, shown in current interface Show the screen display content of the source device;
The method also includes:
Receive the file data that the source device is sent by the direct-connected connection of WIFI;
The file data is stored to file shown on display interface.
6. according to the method described in claim 5, it is characterized in that, the method also includes:
It receives and sets the direct-connected operational order of WIFI for current network connection type;
Establish the direct-connected connection of WIFI between the source device.
7. a kind of data sharing device, is applied on source device, which is characterized in that described device includes:
Determination type module determines the data of data to be shared when being configured as receiving the data sharing instruction of shared data Type;
Sending module is configured as determining that the data type of the data to be shared is that screen is shown in the determination type module When data, the target device of the direct-connected connection of Xiang Jianli WIFI sends Screen sharing request;
Sharing module is configured as being asked according to the Screen sharing that the sending module is sent receiving the target device When seeking the shared response message of return, Screen sharing operation is executed;
Described device further include:
Data transmission module is configured as determining that the data type to be shared is file data in the determination type module When, number of files described in shown portfolios on the target device display interface is connected by the way that the WIFI is direct-connected According to;
The determination type module includes:
First determine submodule, be configured as receive the shared data data sharing instruction when, it is determined whether have by The file data chosen;
Second determines submodule, is configured as determining when described first determines that submodule is determining and have selected file data The data type of data to be shared is file data;
Third determines submodule, is configured as when described first determines that submodule determines the file data not being selected, really The data type of fixed data to be shared is display data on the screen.
8. device according to claim 7, which is characterized in that described device further include:
First receiving module, is configured as receiving and sets the direct-connected operational order of WIFI for current network connection type;
Switching module is connected, is configured as controlling the source when first receiving module receives the operational order and setting Standby will be connected to the network is switched to that WIFI is direct-connected, and establishes the direct-connected connection of WIFI with the target device in preset range.
9. device according to claim 7, which is characterized in that described device further include:
Determining module is configured as receiving by the first predetermined registration operation of physical keyboard triggering or by touch screen triggering When second predetermined registration operation, the data sharing instruction for receiving shared data is determined.
10. device according to claim 7, which is characterized in that the sharing module includes:
Simultaneous display submodule is configured as showing the display content synchronization on the source device screen by wireless screen transmission Onto the target device.
11. a kind of data sharing device, using on the target device, which is characterized in that described device includes:
Second receiving module is configured as receiving the Screen sharing request that the source device for establishing the direct-connected connection of WIFI is sent;
Responder module is configured as being requested according to the Screen sharing, and Xiang Suoshu source device sends shared response message;
Display module is configured as in the shared response message for receiving the source device and being sent according to the responder module When the screen display content of transmission, the screen display content of the source device is shown in current interface;
Described device further include:
Third receiving module is configured as receiving the file data that the source device is sent by the direct-connected connection of WIFI;
Memory module is configured as storing the received file data of the third receiving module to showing on display interface Under the file shown.
12. device according to claim 11, which is characterized in that described device further include:
4th receiving module, is configured as receiving and sets the direct-connected operational order of WIFI for current network connection type;
Connection establishment module is configured as the direct-connected connection of WIFI established between the source device.
13. a kind of data sharing device, is applied on source device, which is characterized in that described device includes:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
When receiving the data sharing instruction of shared data, the data type of data to be shared is determined;
When the data type of the data to be shared is display data on the screen, the target device hair of the direct-connected connection of Xiang Jianli WIFI Screen sharing is sent to request;
When receiving the shared response message that the target device is returned according to Screen sharing request, Screen sharing is executed Operation;
When the data type to be shared is file data, shown by direct-connected connect to the target device of the WIFI File data described in shown portfolios on interface;
The data type of the determination data to be shared, comprising:
In the data sharing instruction for receiving the shared data, it is determined whether have selected file data;
If there is selected file data, it is determined that the data type of data to be shared is file data;
If the file data not being selected, it is determined that the data type of data to be shared is display data on the screen.
14. a kind of data sharing device, using on the target device, which is characterized in that described device includes:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
It receives and establishes the Screen sharing request that the source device of the direct-connected connection of WIFI is sent;
It is requested according to the Screen sharing, Xiang Suoshu source device sends shared response message;
When receiving the screen display content that the source device is sent according to the shared response message, shown in current interface Show the screen display content of the source device;
The processor is also configured to
Receive the file data that the source device is sent by the direct-connected connection of WIFI;
The file data is stored to file shown on display interface.
CN201610950775.4A 2016-10-26 2016-10-26 Data sharing method and device Active CN106375479B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610950775.4A CN106375479B (en) 2016-10-26 2016-10-26 Data sharing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610950775.4A CN106375479B (en) 2016-10-26 2016-10-26 Data sharing method and device

Publications (2)

Publication Number Publication Date
CN106375479A CN106375479A (en) 2017-02-01
CN106375479B true CN106375479B (en) 2019-11-15

Family

ID=57893577

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610950775.4A Active CN106375479B (en) 2016-10-26 2016-10-26 Data sharing method and device

Country Status (1)

Country Link
CN (1) CN106375479B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107145319B (en) * 2017-04-26 2020-07-14 海南云江科技有限公司 Data sharing method, device and system
JP6914728B2 (en) 2017-05-26 2021-08-04 キヤノン株式会社 Communication equipment, communication methods, and programs
CN110324413B (en) 2019-06-25 2022-04-15 北京字节跳动网络技术有限公司 Method, device and storage medium for special effect synchronization
CN111158622B (en) * 2019-12-30 2023-07-21 联想(北京)有限公司 Display method, electronic device and display device
CN112261624B (en) * 2019-12-31 2022-01-11 华为技术有限公司 Method, electronic equipment and system for transmitting file in application
CN113676269B (en) * 2020-05-15 2022-11-04 华为技术有限公司 Data transmission method of electronic device, medium thereof, and electronic device
CN111901648B (en) * 2020-07-30 2022-04-22 深圳市康冠科技股份有限公司 Data sharing method and related device
CN112954596B (en) * 2021-03-09 2023-02-28 北京小米移动软件有限公司 Data sharing method, device, equipment and storage medium
CN113965787B (en) * 2021-10-19 2023-11-17 深圳创维-Rgb电子有限公司 Picture sharing method and device, display terminal and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103116469A (en) * 2013-03-15 2013-05-22 天津三星光电子有限公司 File transmission method and system thereof
CN103561117A (en) * 2013-11-20 2014-02-05 深圳市中兴移动通信有限公司 Screen sharing method and system, transmitting terminal and receiving terminal
CN103905516A (en) * 2012-12-28 2014-07-02 联想(北京)有限公司 Data sharing method and corresponding server and terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7107385B2 (en) * 2002-08-09 2006-09-12 Network Appliance, Inc. Storage virtualization by layering virtual disk objects on a file system
GB201320778D0 (en) * 2013-11-25 2014-01-08 Microsoft Corp Communication system architecture
CN105160017A (en) * 2015-09-25 2015-12-16 上海斐讯数据通信技术有限公司 System and method for image sorting and viewing

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905516A (en) * 2012-12-28 2014-07-02 联想(北京)有限公司 Data sharing method and corresponding server and terminal
CN103116469A (en) * 2013-03-15 2013-05-22 天津三星光电子有限公司 File transmission method and system thereof
CN103561117A (en) * 2013-11-20 2014-02-05 深圳市中兴移动通信有限公司 Screen sharing method and system, transmitting terminal and receiving terminal

Also Published As

Publication number Publication date
CN106375479A (en) 2017-02-01

Similar Documents

Publication Publication Date Title
CN106375479B (en) Data sharing method and device
CN106487622B (en) Equipment control sharing method and device
CN104735057B (en) Share the method and device of equipment control
RU2650505C2 (en) Method and device for connection with controlled intelligent device
CN105163366B (en) Wireless network connecting method and device
CN104684048B (en) WIFI list shows method and apparatus
CN104850327B (en) The screenshot method and device of mobile terminal, electronic equipment
CN106209800B (en) Equipment Authority sharing method and apparatus
JP2017524316A (en) Video communication method, apparatus, program, and recording medium
CN106020592A (en) Split screen display method and device
CN105516508A (en) Method and device for activating virtual SIM card
CN109658927A (en) Wake-up processing method, device and the management equipment of smart machine
CN105204846A (en) Method for displaying video picture in multi-user video, device and terminal equipment
JP6556832B2 (en) Wireless access point control method, apparatus, program, and recording medium
CN105182783A (en) Method, apparatus and terminal for controlling intelligent devices
CN105068467B (en) Control the method and device of smart machine
CN107079310A (en) Obtain, send the method and device of system information
CN107204883A (en) Network failure processing method and device
CN106385351A (en) Control method and device of intelligent household equipment
CN105049763B (en) Trigger the method and device of projection
CN105933465B (en) Access the method and device of wireless network
CN107071862A (en) Account binding method and device and smart machine
CN105307288B (en) The method and apparatus disconnected
CN106358064A (en) Method and equipment for controlling television
CN106465160A (en) Network function switching method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant