WO2015062499A1 - Data transmission method and device - Google Patents
Data transmission method and device Download PDFInfo
- Publication number
- WO2015062499A1 WO2015062499A1 PCT/CN2014/089777 CN2014089777W WO2015062499A1 WO 2015062499 A1 WO2015062499 A1 WO 2015062499A1 CN 2014089777 W CN2014089777 W CN 2014089777W WO 2015062499 A1 WO2015062499 A1 WO 2015062499A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- media output
- output device
- data
- data transmission
- target media
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/485—End-user interface for client configuration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1027—Persistence of sessions during load balancing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/4104—Peripherals receiving signals from specially adapted client devices
- H04N21/4122—Peripherals receiving signals from specially adapted client devices additional display device, e.g. video projector
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/414—Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
- H04N21/41407—Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance embedded in a portable device, e.g. video client on a mobile phone, PDA, laptop
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/436—Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
- H04N21/43615—Interfacing a Home Network, e.g. for connecting the client to a plurality of peripherals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/44227—Monitoring of local network, e.g. connection or bandwidth variations; Detecting new devices in the local network
Definitions
- the present application relates to the field of communication technologies, and in particular, to a data transmission method and apparatus.
- the information exchange between different terminals becomes more frequent.
- the information exchange between different terminals also realizes the operation of transferring pictures, videos, sharing data resources, etc., which greatly facilitates people's life.
- the push technology has gradually matured, becoming a common method for people to push each other to transmit data.
- the so-called push technology is a function of transferring data on one terminal to another terminal through user operations.
- the picture 1 needs to be selected first, and then the terminal A initiates a search through the terminal A.
- terminal A searches for many terminals including terminal B.
- the user selects the terminal B, and the terminal A establishes a data transmission link with the terminal B, and pushes the picture 1 to the terminal B through the data transmission link terminal A.
- the data transmission link between terminal A and terminal B is immediately disconnected.
- the user wants to continue to push the picture 2 to the terminal B through the terminal A, the user needs to re-select the picture 2, and then re-search the terminal B through the terminal A, select the terminal B again and establish a data transmission link with the terminal B again, through data transmission. The link is pushed.
- the present application provides a data transmission method and apparatus, in order to solve the problem that a plurality of files are pushed by a terminal device in an existing push method, the user needs to search and select the terminal device multiple times, and The terminal device establishes multiple data transmission links to complete the push, which increases the user's operation complexity and reduces the user experience.
- the technical solutions are as follows:
- the present application provides a data transmission method, which is applied to a mobile terminal, and the method includes:
- the device information includes at least a physical address of the target media output device, and sending, by using a physical address of the target media output device included in the device information, to the target media output device a communication connection request to establish a data transmission link with the target media output device; wherein a data transmission link established with the target media output device is used to transmit data and maintain a persistent connection state;
- the output device When it is determined that the data needs to be transmitted, acquiring the first data to be transmitted, and transmitting the first data to the target media output device by using the established data transmission link corresponding to the target media output device, so that the target media
- the output device outputs the first data after receiving the first data.
- the detecting the media output device that meets the preset condition that is in the same local area network as the mobile terminal includes:
- the media output device that meets the preset condition is detected.
- the method when the first determination result indicates that the electronic device is a UPNP device having a preset identifier, the method further includes: before determining that the media output device that meets the preset condition is detected, the method further includes: :
- the electronic device is an electronic device supporting a preset media transmission protocol
- the determining that the data needs to be transmitted includes:
- the preset user operation When a preset user operation is detected, it is determined that data needs to be transmitted; wherein the preset user operation includes a preset key input operation, a tilt operation, or a preset gesture input operation.
- the method further includes:
- the saved data transmission link is re-established by using the saved device information of the target media output device, and the re-established data transmission chain is utilized.
- the road sends the second data to be transmitted to the target media output device.
- the sending, by using the established data transmission link corresponding to the target media output device, the first data to the target media output device includes:
- the output device Utilizing an established data transmission link corresponding to the target media output device to the target media
- the output device sends the address information of the first data to be transmitted, so that the target media output device acquires the first data by using the address information of the first data.
- the present application further provides a data transmission method, which is applied to a media output device, and the method includes:
- the media output The device is a target media output device in the media output device that is in the same local area network as the mobile terminal is detected and determined by the mobile terminal; the communication connection request is used by the mobile terminal to obtain the a device information sent by the media output device to the media output device, configured to implement a request for establishing a data transmission link between the mobile terminal and the media output device;
- the method before receiving the communication connection request sent by the mobile terminal to establish a data transmission link with the mobile terminal, the method further includes:
- the communication connection request is a communication connection request sent by the electronic device to the media output device by using a physical address of the target media output device included in the device information.
- the sending, by the electronic device in the local area network, the device information of the media output device includes:
- the outputting the first data after receiving the first data includes:
- the present application provides a data transmission apparatus, which is applied to a mobile terminal, and the apparatus includes:
- a detecting module configured to detect a media output device that meets a preset condition under the same local area network as the mobile terminal
- a determining module configured to determine at least one media output device as a target media output device in the media output device detected by the detecting module
- a first acquiring module configured to acquire device information of the target media output device, where the device information includes at least a physical address of the target media output device;
- a first data transmission link establishing module configured to send a communication connection request to the target media output device by using a physical address of the target media output device included in the device information to establish a data transmission link with the target media output device Wherein the data transmission link established with the target media output device is used to transmit data and maintain a continuous connection state;
- a second acquiring module configured to acquire first data to be transmitted
- a first sending module configured to send the first data to the target media output device by using a data transmission link established by the first data transmission link establishing module and corresponding to the target media output device, so that the target The media output device outputs the first data after receiving the first data.
- the detecting module includes:
- a first detecting submodule configured to detect an electronic device that is in the same local area network as the mobile terminal
- a first determining sub-module configured to determine whether the electronic device detected by the first detecting sub-module is a universal plug-and-play UPNP device with a preset identifier
- a first acquiring submodule configured to determine, in the first determining submodule, the first detecting submodule
- the electronic device obtained by the block detection is a universal plug and play UPNP device with a preset identifier
- the first determination result is obtained
- the determining module is specifically configured to: when the first determining result indicates that the electronic device is a UPNP device, determine that the media output device that meets the preset condition is detected.
- the detecting module further includes:
- a second determining sub-module configured to determine whether the detected electronic device that is in the same local area network as the mobile terminal is an electronic device that supports a preset media transmission protocol
- a second obtaining sub-module configured to: when the second determining sub-module determines that the detected electronic device that is in the same local area network as the mobile terminal is an electronic device that supports the preset media transmission protocol, acquiring a second determination result;
- a third acquiring submodule configured to: when the second determining result indicates that the electronic device is an electronic device supporting a preset media transmission protocol, acquire a physical address of the detected UPNP device and an electronic device that supports the preset media transmission protocol The physical address of the device;
- a comparison module configured to compare whether a physical address of the UPNP device is the same as a physical address of the electronic device supporting the preset media transmission protocol
- the determining module is specifically configured to: when the comparing module compares the physical address of the UPNP device with the physical address of the electronic device supporting the preset media transmission protocol, determining that the media output that meets the preset condition is detected is detected. device.
- the apparatus further includes:
- a saving module configured to save the obtained device information of the target media output device
- the first data transmission link establishing module is specifically configured to use the saved device of the target media output device when determining that data needs to be transmitted and determining that the data transmission link corresponding to the target media output device is disconnected Information re-establishes the data transmission link;
- the first sending module is specifically configured to send the second data to be transmitted to the target media output device by using a data transmission link re-established by the first data transmission link establishing module.
- the first sending module is specifically configured to send to the target media output device by using a data transmission link that is established corresponding to the target media output device.
- the data content of the transmitted first data or
- the present application provides a data transmission apparatus, which is applied to a media output device, and the apparatus includes:
- a first receiving module configured to receive a communication connection request sent by the mobile terminal to establish a data transmission link with the mobile terminal; wherein a data transmission link established with the target media output device is used to transmit data, and is continued a connection state;
- the media output device is a target media output device in the media output device that is detected and determined by the mobile terminal and is in the same local area network as the mobile terminal, and the communication connection request is And transmitting, by the mobile terminal, the obtained device connection information of the media output device to the media output device, to implement a communication connection request for establishing a data transmission link between the mobile terminal and the media output device;
- a second data transmission link establishing module configured to establish a data transmission link with the mobile terminal according to the device information
- a second receiving module configured to receive, by using a data transmission link established by the second data transmission link establishing module, the first data sent by the mobile terminal;
- An output module configured to output the first data after receiving the first data.
- the apparatus further includes:
- a second sending module configured to send device information of the media output device to an electronic device in a local area network, where the device information includes at least a physical address of the media output device;
- the communication connection request is a communication connection request sent by the electronic device to the media output device by using a physical address of the target media output device included in the device information.
- the second sending module is specifically configured to:
- the electronic device in the domain network sends the device information of the media output device.
- the output module is specifically configured to:
- the present application does not require the user to reselect the target media output device to establish a connection each time the transmission is performed, which reduces the user each time compared to the conventional push method.
- it is necessary to re-establish the connection with the target media output device, which improves the user experience.
- FIG. 1 is a flowchart of a data transmission method provided by the present application
- FIG. 3 is still another flowchart of a data transmission method provided by the present application.
- FIG. 4 is still another flowchart of a data transmission method provided by the present application.
- FIG. 5 is still another flowchart of a data transmission method provided by the present application.
- FIG. 6 is still another flowchart of a data transmission method provided by the present application.
- FIG. 7 is a schematic structural diagram of a data transmission apparatus provided by the present application.
- FIG. 8 is a schematic structural diagram of a detection module in a data transmission device according to the present application.
- FIG. 9 is another schematic structural diagram of a detection module in a data transmission device according to the present application.
- FIG. 10 is another schematic structural diagram of a data transmission apparatus provided by the present application.
- FIG. 11 is a schematic structural diagram of still another data transmission apparatus provided by the present application.
- FIG. 12 is still another schematic structural diagram of a data transmission apparatus provided by the present application.
- the data transmission method provided by the embodiment of the present application detects the media output device that meets the preset condition under the same local area network as the mobile terminal, and determines at least one media output device as the target media output device in the detected media output device. Obtaining device information of the target media output device, and transmitting, by using the device information, a communication connection request to the target media output device to establish a data transmission link with the target media output device, wherein the device information includes at least a physical address of the target media output device.
- the first data to be transmitted is acquired, and the first data is sent to the target media output device by using the established data transmission link corresponding to the target media output device, so that the target media output device receives the first data.
- the first data is output after one data.
- the mobile terminal includes, but is not limited to, a tablet PC, a smart phone, a feature phone, a PDA, and the like.
- the media output device is an electronic device having an output module, including but not limited to a device having an output module, such as a television, a laptop computer, a tablet computer, or the like.
- a mobile terminal as a mobile phone and a target media output device as a smart television as an example for detailed description.
- FIG. 1 shows a flowchart of a data transmission method provided by the present application, including the following steps:
- Step 101 Detect a media output device that meets a preset condition under the same local area network as the mobile terminal, and determine at least one media output device as the target media output device in the detected media output device.
- the media output device is a device under the same local area network as the mobile terminal, and may include a personal computer, a PAD computer, a smart TV, a smart TV box, and the like in the same local area network.
- the mobile terminal is used as a mobile phone
- the target media output device is a smart TV as an example.
- the mobile phone sends a detection signal to the local area network, and uses the detection signal to detect a media output device that meets the preset condition under the same local area network as the mobile phone.
- the media output device that meets the preset condition herein refers to a media output device that can establish a data transmission link with the mobile phone and exchange information. After the mobile phone detects the media output device that can be connected, it determines at least one of the media output devices as the target media output device.
- determining that the at least one media output device is the target media output device may include: after the mobile phone detects the media output device that can be connected, displaying all the detected devices through the display screen for the user to select. Which media output device is selected by the user, the mobile phone determines that the media output device is the target media output device, and all subsequent data interaction objects are all the target media output devices; or, the mobile phone determines all the media output devices detected as targets.
- the media output device; or, the mobile phone sequentially determines a plurality of, for example, three according to the detected media output device, and determines that the first three media output devices detected first are the target media output devices; or according to the user setting, The media output device that meets the user setting rules is the target media output device.
- the mobile phone finds and displays to the user through all the media output devices in the same local area network as the mobile phone, and the user determines that the smart TV is the target media output device from all the media output devices.
- Step 102 Acquire device information of the target media output device, where the device information includes at least a physical address of the target media output device, and send a communication connection request to the target media output device by using the physical address of the target media output device included in the device information.
- the media output device establishes a data transmission link.
- the data transmission link established with the target media output device is used to transmit data and maintain a continuous connection state.
- acquiring device information of the target media output device may include: receiving the target The broadcast information sent by the media output device, where the broadcast information includes device information of the target media output device.
- the mobile device scans the target media output device in the local area network to directly obtain the physical identifier of the target media output device, and obtains the device information according to the physical identifier.
- the user After selecting the smart TV as the target media output device, the user continues to obtain the device information of the smart TV, wherein the device information includes at least the physical address of the smart TV.
- the physical address of the target media output device may be an IP address of the device, a MAC (Media Access Control), or the like.
- the mobile phone uses the physical address of the smart TV to send a communication connection request to the smart TV to establish a data transmission link with the smart television and transmit the data through the data transmission link.
- the data transmission link is kept in a continuous connection state. Specifically, if the mobile terminal A establishes a data transmission link with the target media output device B, the mobile terminal A transmits the data through the data transmission link every time the target media output device B transmits data, and each of the mobile terminal A When the data transmission is completed, the data transmission link is still in a connected state, waiting for the mobile terminal A to use the data transmission link to perform data transmission to the target media output device B again.
- Step 103 When it is determined that the data needs to be transmitted, obtain the first data to be transmitted, and send the first data to the target media output device by using the established data transmission link corresponding to the target media output device, so that the target media output device is The first data is output after receiving the first data.
- the preset user operations may include a preset key input operation, a tilt operation, an analog mouse input operation, or a preset gesture input operation.
- the transmitting the first data to the target media output device by using the established data transmission link corresponding to the target media output device may include: using the established data transmission link corresponding to the target media output device to the target
- the media output device sends the data content of the first data to be transmitted, or sends the address information of the first data to be transmitted to the target media output device by using the established data transmission link corresponding to the target media output device to make the target
- the media output device acquires the first data by using the address information of the first data.
- the first data is data information sent by the mobile device to the target media output device, where To include files, audio streams, video streams, and more.
- the current user wants to send the first data, such as the video A to the smart TV.
- the mobile phone acquires the first data and detects the preset user operation, and uses the established The data transmission link corresponding to the smart TV sends the first data video A to the smart TV, and the smart TV receives the first data video A and outputs the first data to play the video A.
- the mobile terminal may simultaneously transmit data in parallel when performing data transmission. Data is transmitted to a plurality of target media output devices, and data transmission to each target media output device may be implemented one by one by serially transmitting data.
- the specific transmission mode of the mobile terminal is not limited herein, and any manner in which data transmission can be implemented belongs to the protection scope of the present application.
- the technical solution disclosed in the present application after detecting a media output device that meets a preset condition under the same local area network as the mobile terminal, and determining at least one media output device as the target media output device in the detected media output device, Obtaining device information of the target media output device, and transmitting, by using the device information, a communication connection request to the target media output device to establish a data transmission link with the target media output device, wherein the device information includes at least a physical address of the target media output device.
- the first data to be transmitted is acquired, and the first data is sent to the target media output device by using the established data transmission link corresponding to the target media output device, so that the target media output device receives the first data.
- the first data is output after one data. Therefore, after detecting and determining the target media output device, the present application establishes a data transmission link corresponding to the target media output device, and the data transmission link maintains a continuous connection state. In the subsequent process of transmitting data to the target media output device, the data is directly transmitted to the target media output device by using the established data transmission link. Therefore, when performing multiple data transmissions on the same target media output device, the present application does not require the user to reselect the target media output device to establish a connection each time the transmission is performed, which reduces the user's data transmission each time compared to the conventional push method. All need to re-establish the connection with the target media output device to improve the user experience.
- FIG. 2 Another flowchart of the data transmission method provided by the present application detects media that meets preset conditions under the same local area network as the mobile terminal.
- Output devices including:
- Step 101A Detect an electronic device that is in the same local area network as the mobile terminal.
- Step 101B Determine whether the detected electronic device is a universal plug and play UPNP device with a preset identifier, and obtain a first determination result.
- the mobile terminal when the mobile terminal detects that the mobile terminal is in the same local area network as the media output device that meets the preset condition, it will spend a large amount of network resources to search all the media output devices in the local area network for the data transmission link. Established, and usually the number of target media output devices required by the user is only one, up to three. The establishment of a data transmission link with all media output devices searched in the local area network not only wastes a lot of network resources, but also causes network congestion and network delay.
- the mobile terminal can detect the electronic device in the same local area network as the mobile terminal, and determine whether the electronic device has A universal UPNP (Universal Plug and Play) device is preset and the first judgment result is obtained.
- a universal UPNP Universal Plug and Play
- the universal UPNP protocol is a network protocol for facilitating mobile terminals to search for electronic devices.
- the universal UPNP module is included in the electronic device to be searched by the mobile terminal.
- each UPNP device has a physical identifier for distinguishing other UPNP devices.
- the identifier may include attribute information indicating a property of the UPNP device or a user-defined device name or the like.
- determining whether the electronic device is a universal UPNP device having a preset identifier may include determining whether the electronic device is a universal UPNP device whose device name is “LeTV”, or determining whether the electronic device is a device name. It includes the universal UPNP device of LeEco.
- Step 101C The obtained first judgment result indicates that when the electronic device is a UPNP device with a preset identifier, it is determined that the media output device that meets the preset condition is detected. If not, return to step 101A.
- the detection is in the same office as the mobile terminal.
- the media output device that meets the preset condition in the domain network further includes the following steps: when the first determination result indicates that the electronic device is a UPNP device with a preset identifier, step 101D is further performed. Step 101D: Determine whether the detected electronic device that is in the same local area network as the mobile terminal is an electronic device that supports the preset media transmission protocol, and obtain a second determination result.
- the electronic device supporting the preset media transmission protocol refers to a device that can receive data information sent by the mobile device and can read and process the received data information.
- the preset media transmission protocol may be a data communication protocol in a local area network, such as a DLNA (DIGITAL LIVING NETWORK ALLIANCE) network protocol.
- the mobile terminal pushes video data to the electronic device, and the electronic device needs to have a module that can receive and read and process the video data.
- the electronic device should have a DMR (Digital Media Receiver) module for receiving video data sent by the Android system.
- the electronic device should have an AirPlay module for receiving video data sent by the Apple iOS system.
- An electronic device having a DMR module and/or an AirPlay module, respectively, is referred to as an electronic device supporting a preset media transmission protocol.
- step 101E when the second determination result indicates that the electronic device is an electronic device supporting a preset media transmission protocol, the physical address of the detected UPNP device and the physical address of the electronic device supporting the preset media transmission protocol are acquired.
- step 101F it is compared whether the physical address of the UPNP device is the same as the physical address of the electronic device supporting the preset media transmission protocol. If they are the same, step 101G is performed. If not, the process returns to step 101A.
- step 101G it is determined that the media output device that meets the preset condition is detected.
- the media transmission device by performing further verification on the detected media transmission device, when the media transmission device simultaneously satisfies the UPNP device and is a device supporting the preset media transmission protocol, determining that the media transmission device is the target media transmission device, The accuracy of the data transmission link is ensured, that is, the efficiency of data transmission is further ensured.
- FIG. 4 a data transmission method provided by the present application Another flow chart also includes:
- Step 104 Save device information of the obtained target media output device.
- Step 105 When it is determined that the data needs to be transmitted and it is determined that the data transmission link corresponding to the target media output device is disconnected, the data transmission link is re-established by using the saved device information of the target media output device, and the re-established data transmission link is utilized. Sending the second data to be transmitted to the target media output device.
- the second data is data information that the mobile device retransmits to the target media output device, and may include a file, an audio stream, a video stream, and the like.
- step 104 may be performed after step 103, or may be performed simultaneously with step 103, and is also performed after step 102 acquires device information of the target media output device.
- step 104 is only described as a preferred embodiment in the order of the above steps, and the specific execution order in the actual application process is not limited to the technical solutions disclosed in the present application.
- the mobile terminal saves the acquired device information of the target media output device. Therefore, when determining that the data transmission link currently needs to be transmitted and determining that the data transmission link corresponding to the target media output device is disconnected, the mobile terminal directly re-establishes the data transmission link by using the saved device information of the target media output device, and uses the re-established The data transmission link transmits the second data to be transmitted to the target media output device.
- the user does not need to re-detect the search media output device, and re-determines that the target media output device is transmitting data, which facilitates the user operation and improves the user experience.
- FIG. 5 another flowchart of a data transmission method provided by the present application includes:
- Step 201 Receive a communication connection request sent by the mobile terminal to establish a data transmission link with the mobile terminal.
- the data transmission link established with the target media output device is used to transmit data and maintain a continuous connection state.
- the media output device is a target media output device in the media output device that is detected and determined by the mobile terminal and is in the same local area network as the mobile terminal.
- Communication connection The request is sent to the media output device by the mobile terminal by using the acquired device information of the media output device, and is used to implement a request for establishing a data transmission link between the mobile terminal and the media output device.
- Step 202 Receive first data sent by the mobile terminal by using a data transmission link, and output the first data after receiving the first data.
- the media output device receives the data content of the first data sent by the mobile terminal, and directly outputs the data content of the first data.
- the address information of the first data is received, and the first data is acquired by using the address information of the first data for output.
- FIG. 6 another flowchart of a data transmission method provided by the present application includes:
- Step 200 Send device information of the media output device to an electronic device in the local area network, where the device information includes at least a physical address of the media output device.
- Step 201 Receive a communication connection request sent by the mobile terminal to establish a data transmission link with the mobile terminal.
- the communication connection request sent by the mobile terminal is to send a communication connection request to the target media output device by using a physical address of the target media output device included in the device information.
- Step 202 Receive first data sent by the mobile terminal by using a data transmission link, and output the first data after receiving the first data.
- the media output device may send the device information of the media output device to the electronic device in the local area network in real time or periodically.
- the device information of the media output device is sent to the electronic device in the local area network according to the detection request.
- the present application also provides a computer readable recording medium on which a program for executing the above method is recorded.
- the computer readable recording medium includes any mechanism for storing or transmitting information in a form readable by a computer (eg, a computer).
- a machine-readable medium includes read only memory (ROM), random access memory (RAM), magnetic disk storage media, optical storage media, flash storage media, electrical, optical, acoustic, or other forms of propagation signals (eg, carrier waves) , infrared signals, digital signals, etc.).
- the present application further provides a structure diagram of a data transmission device.
- the device includes: a detection module 1000, a determination module 2000, a first acquisition module 3000, and a first a data transmission link establishing module 4000, a second obtaining module 5000, and a first sending module 6000, where
- the detecting module 1000 is configured to detect a media output device that meets a preset condition under the same local area network as the mobile terminal.
- the determining module 2000 is configured to determine at least one media output device as the target media output device in the media output device detected by the detecting module 1000.
- the first obtaining module 3000 is configured to acquire device information of the target media output device.
- the device information includes at least a physical address of the target media output device.
- the first data transmission link establishing module 4000 is configured to send a communication connection request to the target media output device by using a physical address of the target media output device included in the device information to establish a data transmission link with the target media output device.
- the data transmission link established with the target media output device is used to transmit data and maintain a continuous connection state.
- the second obtaining module 5000 is configured to acquire first data to be transmitted.
- the first sending module 6000 is configured to send, by using a data transmission link corresponding to the target media output device established by the first data transmission link establishing module 4000, the first data to the target media output device, so that the target media output device receives the data.
- the first data is output after the first data.
- the first sending module 6000 may be specifically configured to send the data content of the first data to be transmitted to the target media output device by using the established data transmission link corresponding to the target media output device.
- the address information of the first data to be transmitted is sent to the target media output device by using the established data transmission link corresponding to the target media output device, so that the target media output device acquires the first data by using the address information of the first data. .
- the present application further provides a schematic structural diagram of a detection module in a data transmission apparatus.
- the detection module 1000 includes: a first detection module 1001, a first determination module 1002, and a first result acquisition module 1003. among them,
- the first detecting module 1001 is configured to detect an electronic device that is in the same local area network as the mobile terminal. Ready.
- the first determining module 1002 is configured to determine whether the electronic device detected by the first detecting module 1001 is a universal plug and play UPNP device with a preset identifier.
- the first result obtaining module 1003 is configured to obtain the first determination result when the first determining module 1002 determines that the electronic device detected by the first detecting module 1001 is a universal plug and play UPNP device with a preset identifier.
- the determining module 2000 is specifically configured to determine that the media output device that meets the preset condition is detected when the first determination result indicates that the electronic device is a UPNP device having a preset identifier.
- the present application provides another structure diagram of a detection module in a data transmission apparatus.
- the detection module 1000 further includes: a second determination module 1004 and a second result acquisition module 1005.
- the second determining module 1004 is configured to determine whether the detected electronic device that is in the same local area network as the mobile terminal is an electronic device that supports the preset media transmission protocol.
- the second result obtaining module 1005 is configured to obtain the second determination result when the second determining module 1004 determines that the detected electronic device that is in the same local area network as the mobile terminal is an electronic device that supports the preset media transmission protocol.
- the third result obtaining module 1006 is configured to: when the second determination result indicates that the electronic device is an electronic device supporting the preset media transmission protocol, acquire the physical address of the detected UPNP device and the physicality of the electronic device supporting the preset media transmission protocol. address.
- the comparison module 1007 is configured to compare whether the physical address of the UPNP device is the same as the physical address of the electronic device supporting the preset media transmission protocol.
- the determining module 2000 is specifically configured to determine that the media output device that meets the preset condition is detected when the comparison module 1007 compares the physical address of the UPNP device with the physical address of the electronic device supporting the preset media transmission protocol.
- the present application provides another structural diagram of a data transmission apparatus, and further includes: a saving module 7000. among them,
- the saving module 7000 is configured to save the device information of the obtained target media output device.
- the first data transmission link establishing module 4000 is specifically configured to use the target media output device saved by the saving module 7000 when it is determined that the data needs to be transmitted and the data transmission link corresponding to the target media output device is disconnected.
- the device information re-establishes the data transmission link.
- the first sending module 6000 further sends the second data to be transmitted to the target media output device by using the re-established data transmission link.
- the present application provides a further structural diagram of a data transmission apparatus, including: a first receiving module 8000, a second data transmission link establishing module 9000, a second receiving module 10000, and an output module 20000. among them,
- the first receiving module 8000 is configured to receive a communication connection request sent by the mobile terminal to establish a data transmission link with the mobile terminal.
- the data transmission link established with the target media output device is used to transmit data and maintain a continuous connection state.
- the media output device is a target media output device in the media output device that is detected and determined by the mobile terminal and is in the same local area network as the mobile terminal.
- the communication connection request is sent by the mobile terminal to the media output device by using the acquired device information of the media output device, and is used to implement a communication connection request for establishing a data transmission link between the mobile terminal and the media output device.
- the second data transmission link establishing module 9000 is configured to establish a data transmission link with the mobile terminal according to the device information.
- the second receiving module 10000 is configured to receive the first data sent by the mobile terminal by using a data transmission link established by the second data transmission link establishing module 9000.
- the output module 20000 is configured to output the first data after receiving the first data.
- the output module 20000 is specifically configured to: receive the data content of the first data, and directly output the data content of the first data. Alternatively, the address information of the first data is received, and the first data is acquired by using the address information of the first data for output.
- FIG. 12 the present application provides a further structural diagram of a data transmission apparatus.
- the basis of FIG. 11 further includes: a second sending module 30000.
- the second sending module 30000 is configured to send device information of the media output device to an electronic device in a local area network, where the device information includes at least a physical address of the media output device.
- the second sending module 30000 is specifically configured to: send the device information of the media output device to the electronic device in the local area network in real time or periodically. Or receiving a detection request of the electronic device in the local area network, and transmitting the device information of the media output device to the electronic device in the local area network according to the detection request.
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Human Computer Interaction (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Mobile Radio Communication Systems (AREA)
- Information Transfer Between Computers (AREA)
Abstract
A data transmission method and device, comprising: checking in the local area network of a mobile terminal for media output devices that match pre-set requirements, and determining at least one media output device among the detected media output devices as the target media output device; obtaining the device information of the target media output device, and using the physical address of the target media output device contained in the device information to transmit to the target media output device a communication connection request so as to establish a data transmission link with the target media output device. When it is determined that data is to be transmitted, first data to be transmitted is obtained and is transmitted to the target media output device by means of the established data transmission link. By using the technical solution of the present application, when performing multiple data transmissions to a target media output device, a user needs not to reselect the target media output device for connection establishment for each transmission, thereby enhancing user experience.
Description
本申请要求在2013年10月30日提交中国专利局、申请号为2013105302696、发明名称为“一种数据传输方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 2013105302696, entitled "A Data Transmission Method and Apparatus", filed on October 30, 2013, the entire contents of .
本申请涉及通讯技术领域,更具体的说,涉及一种数据传输方法及装置。The present application relates to the field of communication technologies, and in particular, to a data transmission method and apparatus.
随着科学技术的不断发展,不同终端之间的信息交互越发频繁,通过不同终端之间的信息交互也同时实现了如相互传输图片、视频,共享数据资源等操作,极大的方便了人们的生活。在此之中,推送技术也逐渐成熟起来,成为人们互相推送传输数据的一种常用方法。所谓推送技术,即是将一终端上的数据通过用户操作传输至另一种终端上的功能。With the continuous development of science and technology, the information exchange between different terminals becomes more frequent. The information exchange between different terminals also realizes the operation of transferring pictures, videos, sharing data resources, etc., which greatly facilitates people's life. Among them, the push technology has gradually matured, becoming a common method for people to push each other to transmit data. The so-called push technology is a function of transferring data on one terminal to another terminal through user operations.
在传统的数据推送方法中,举例来说,用户欲通过终端A向终端B推送图片1时,首先需要选中图片1,进而通过终端A对终端B发起搜索。通常情况下终端A是会搜索出包括终端B在内的许多终端。此时用户选中终端B,终端A与终端B建立数据传输链路,通过该数据传输链路终端A将图片1推送至终端B。推送完成后,终端A与终端B间的数据传输链路立即断开。如果用户想继续通过终端A给终端B推送图片2时,用户需要重新选中图片2,进而重新通过终端A搜索到终端B,再次选中终端B并与终端B再次建立数据传输链路,通过数据传输链路进行推送。In the conventional data push method, for example, when the user wants to push the picture 1 to the terminal B through the terminal A, the picture 1 needs to be selected first, and then the terminal A initiates a search through the terminal A. Usually, terminal A searches for many terminals including terminal B. At this time, the user selects the terminal B, and the terminal A establishes a data transmission link with the terminal B, and pushes the picture 1 to the terminal B through the data transmission link terminal A. After the push is completed, the data transmission link between terminal A and terminal B is immediately disconnected. If the user wants to continue to push the picture 2 to the terminal B through the terminal A, the user needs to re-select the picture 2, and then re-search the terminal B through the terminal A, select the terminal B again and establish a data transmission link with the terminal B again, through data transmission. The link is pushed.
显然,现有推送方法中,用户每次欲推送某一文件时,都需要对每次欲推送文件的终端设备进行搜索、选定,进而建立一次数据传输链路,通过建立的数据传输链路完成推送。若对某一终端设备进行多个文件的推送就需要
用户多次进行搜索、选定该终端设备,并与该终端设备建立多次数据传输链路完成推送,这无疑增加了用户的操作复杂度,降低了用户体验。Obviously, in the existing push method, each time a user wants to push a certain file, it is necessary to search and select each terminal device that wants to push the file, and then establish a data transmission link through the established data transmission link. Complete the push. If you want to push multiple files to a terminal device, you need
The user searches for and selects the terminal device multiple times, and establishes multiple data transmission links with the terminal device to complete the push, which undoubtedly increases the user's operation complexity and reduces the user experience.
发明内容Summary of the invention
针对上述问题,本申请提供一种数据传输方法及装置,以解决现有推送方法中对某一终端设备进行多个文件的推送时,需要用户多次搜索、选定该终端设备,并与该终端设备建立多次数据传输链路完成推送,增加用户的操作复杂度,降低了用户体验的问题。技术方案如下:In the above problem, the present application provides a data transmission method and apparatus, in order to solve the problem that a plurality of files are pushed by a terminal device in an existing push method, the user needs to search and select the terminal device multiple times, and The terminal device establishes multiple data transmission links to complete the push, which increases the user's operation complexity and reduces the user experience. The technical solutions are as follows:
基于本申请的一方面,本申请提供一种数据传输方法,应用于移动终端,所述方法包括:Based on an aspect of the present disclosure, the present application provides a data transmission method, which is applied to a mobile terminal, and the method includes:
检测与所述移动终端处于同一局域网下的符合预设条件的媒体输出设备,在检测到的媒体输出设备中确定至少一个媒体输出设备作为目标媒体输出设备;Detecting a media output device that meets a preset condition under the same local area network as the mobile terminal, and determining at least one media output device as the target media output device in the detected media output device;
获取所述目标媒体输出设备的设备信息,所述设备信息至少包括所述目标媒体输出设备的物理地址;利用所述设备信息中包含的目标媒体输出设备的物理地址向所述目标媒体输出设备发送通信连接请求以与所述目标媒体输出设备建立数据传输链路;其中,与所述目标媒体输出设备建立的数据传输链路用于传输数据,且保持持续连接状态;Acquiring device information of the target media output device, where the device information includes at least a physical address of the target media output device, and sending, by using a physical address of the target media output device included in the device information, to the target media output device a communication connection request to establish a data transmission link with the target media output device; wherein a data transmission link established with the target media output device is used to transmit data and maintain a persistent connection state;
当确定需要传输数据时,获取待传输的第一数据,利用已建立的与目标媒体输出设备对应的数据传输链路向所述目标媒体输出设备发送所述第一数据,以使得所述目标媒体输出设备在接收到所述第一数据后输出所述第一数据。When it is determined that the data needs to be transmitted, acquiring the first data to be transmitted, and transmitting the first data to the target media output device by using the established data transmission link corresponding to the target media output device, so that the target media The output device outputs the first data after receiving the first data.
在本申请一具体实施例中,所述检测与所述移动终端处于同一局域网下的符合预设条件的媒体输出设备包括:In a specific embodiment of the present application, the detecting the media output device that meets the preset condition that is in the same local area network as the mobile terminal includes:
检测与所述移动终端处于同一局域网下的电子设备,判断检测得到的所述电子设备是否为具有预设标识的通用即插即用UPNP设备,获取第一判断结果;
Detecting, by the electronic device in the same local area network as the mobile terminal, whether the detected electronic device is a universal plug and play UPNP device with a preset identifier, and obtaining a first determination result;
当所述第一判断结果表明所述电子设备为具有预设标识的UPNP设备时,则确定检测到符合预设条件的媒体输出设备。When the first determination result indicates that the electronic device is a UPNP device having a preset identifier, it is determined that the media output device that meets the preset condition is detected.
在本申请一具体实施例中,当所述第一判断结果表明所述电子设备为具有预设标识的UPNP设备时,在确定检测到符合预设条件的媒体输出设备之前,所述方法还包括:In a specific embodiment of the present application, when the first determination result indicates that the electronic device is a UPNP device having a preset identifier, the method further includes: before determining that the media output device that meets the preset condition is detected, the method further includes: :
判断检测得到的与所述移动终端处于同一局域网下的电子设备是否为支持预设媒体传输协议的电子设备,获取第二判断结果;Determining whether the detected electronic device in the same local area network as the mobile terminal is an electronic device supporting a preset media transmission protocol, and acquiring a second determination result;
当所述第二判断结果表明所述电子设备为支持预设媒体传输协议的电子设备时,获取检测到的UPNP设备的物理地址以及支持预设媒体传输协议的电子设备的物理地址;When the second determination result indicates that the electronic device is an electronic device supporting a preset media transmission protocol, acquiring a physical address of the detected UPNP device and a physical address of the electronic device supporting the preset media transmission protocol;
比较所述UPNP设备的物理地址与所述支持预设媒体传输协议的电子设备的物理地址是否相同,如果相同,则确定检测到符合预设条件的媒体输出设备。Comparing whether the physical address of the UPNP device is the same as the physical address of the electronic device supporting the preset media transmission protocol, and if they are the same, determining to detect the media output device that meets the preset condition.
在本申请一具体实施例中,所述确定需要传输数据包括:In a specific embodiment of the present application, the determining that the data needs to be transmitted includes:
当检测到预设的用户操作时,则确定需要传输数据;其中,所述预设的用户操作包括预设的按键输入操作、甩动操作或者预设手势输入操作。When a preset user operation is detected, it is determined that data needs to be transmitted; wherein the preset user operation includes a preset key input operation, a tilt operation, or a preset gesture input operation.
在本申请一具体实施例中,所述方法还包括:In a specific embodiment of the present application, the method further includes:
保存获取的所述目标媒体输出设备的设备信息;Saving the obtained device information of the target media output device;
当确定需要传输数据且判断与所述目标媒体输出设备对应的数据传输链路断开时,利用保存的所述目标媒体输出设备的设备信息重新建立数据传输链路,利用重新建立的数据传输链路向所述目标媒体输出设备发送待传输的第二数据。When it is determined that data needs to be transmitted and it is determined that the data transmission link corresponding to the target media output device is disconnected, the saved data transmission link is re-established by using the saved device information of the target media output device, and the re-established data transmission chain is utilized. The road sends the second data to be transmitted to the target media output device.
在本申请一具体实施例中,所述利用已建立的与目标媒体输出设备对应的数据传输链路向所述目标媒体输出设备发送所述第一数据包括:In a specific embodiment of the present application, the sending, by using the established data transmission link corresponding to the target media output device, the first data to the target media output device includes:
利用已建立的与目标媒体输出设备对应的数据传输链路向所述目标媒体输出设备发送待传输的第一数据的数据内容;或者,Transmitting, by the established data transmission link corresponding to the target media output device, the data content of the first data to be transmitted to the target media output device; or
利用已建立的与目标媒体输出设备对应的数据传输链路向所述目标媒体
输出设备发送待传输的第一数据的地址信息,以使所述目标媒体输出设备利用所述第一数据的地址信息获取第一数据。Utilizing an established data transmission link corresponding to the target media output device to the target media
The output device sends the address information of the first data to be transmitted, so that the target media output device acquires the first data by using the address information of the first data.
基于本申请的另一方面,本申请还提供一种数据传输方法,应用于媒体输出设备,所述方法包括:Based on another aspect of the present application, the present application further provides a data transmission method, which is applied to a media output device, and the method includes:
接收移动终端发送的通信连接请求以与所述移动终端建立数据传输链路;其中,与所述目标媒体输出设备建立的数据传输链路用于传输数据,且保持持续连接状态;所述媒体输出设备为所述移动终端检测并确定的与所述移动终端处于同一局域网的符合预设条件的媒体输出设备中的一个目标媒体输出设备;所述通信连接请求为所述移动终端利用获取的所述媒体输出设备的设备信息向所述媒体输出设备发送的,用于实现建立所述移动终端与所述媒体输出设备之间数据传输链路的请求;Receiving a communication connection request sent by the mobile terminal to establish a data transmission link with the mobile terminal; wherein a data transmission link established with the target media output device is used for transmitting data and maintaining a continuous connection state; the media output The device is a target media output device in the media output device that is in the same local area network as the mobile terminal is detected and determined by the mobile terminal; the communication connection request is used by the mobile terminal to obtain the a device information sent by the media output device to the media output device, configured to implement a request for establishing a data transmission link between the mobile terminal and the media output device;
利用所述数据传输链路接收所述移动终端发送的第一数据,并在接收到所述第一数据后输出所述第一数据。Receiving, by the data transmission link, first data sent by the mobile terminal, and outputting the first data after receiving the first data.
在本申请一具体实施例中,所述接收移动终端发送的通信连接请求以与所述移动终端建立数据传输链路之前还包括:In a specific embodiment of the present application, before receiving the communication connection request sent by the mobile terminal to establish a data transmission link with the mobile terminal, the method further includes:
向局域网内的电子设备发送所述媒体输出设备的设备信息,其中所述设备信息至少包括所述媒体输出设备的物理地址;Transmitting device information of the media output device to an electronic device in a local area network, where the device information includes at least a physical address of the media output device;
其中,所述通信连接请求为所述电子设备利用所述设备信息中包含的目标媒体输出设备的物理地址向所述媒体输出设备发送的通信连接请求。The communication connection request is a communication connection request sent by the electronic device to the media output device by using a physical address of the target media output device included in the device information.
在本申请一具体实施例中,所述向局域网内的电子设备发送所述媒体输出设备的设备信息包括:In a specific embodiment of the present application, the sending, by the electronic device in the local area network, the device information of the media output device includes:
实时或周期性向局域网内的电子设备发送所述媒体输出设备的设备信息;或者,Transmitting device information of the media output device to an electronic device in a local area network in real time or periodically; or
接收所述局域网内的电子设备的检测请求,依据所述检测请求向所述局域网内的电子设备发送所述媒体输出设备的设备信息。Receiving a detection request of the electronic device in the local area network, and transmitting device information of the media output device to the electronic device in the local area network according to the detection request.
在本申请一具体实施例中,所述接收到所述第一数据后输出所述第一数据包括:
In a specific embodiment of the present application, the outputting the first data after receiving the first data includes:
接收到所述第一数据的数据内容,直接输出所述第一数据的数据内容;或者,Receiving the data content of the first data, directly outputting the data content of the first data; or
接收到所述第一数据的地址信息,利用所述第一数据的地址信息获取第一数据进行输出。Receiving the address information of the first data, and acquiring the first data by using the address information of the first data for output.
基于本申请的再一方面,本申请提供一种数据传输装置,应用于移动终端,所述装置包括:Based on a further aspect of the present application, the present application provides a data transmission apparatus, which is applied to a mobile terminal, and the apparatus includes:
检测模块,设置为检测与所述移动终端处于同一局域网下的符合预设条件的媒体输出设备;a detecting module, configured to detect a media output device that meets a preset condition under the same local area network as the mobile terminal;
确定模块,设置为在所述检测模块检测到的媒体输出设备中确定至少一个媒体输出设备作为目标媒体输出设备;a determining module, configured to determine at least one media output device as a target media output device in the media output device detected by the detecting module;
第一获取模块,设置为获取所述目标媒体输出设备的设备信息;其中所述设备信息至少包括所述目标媒体输出设备的物理地址;a first acquiring module, configured to acquire device information of the target media output device, where the device information includes at least a physical address of the target media output device;
第一数据传输链路建立模块,设置为利用所述设备信息中包含的目标媒体输出设备的物理地址向所述目标媒体输出设备发送通信连接请求以与所述目标媒体输出设备建立数据传输链路;其中,与所述目标媒体输出设备建立的数据传输链路用于传输数据,且保持持续连接状态;a first data transmission link establishing module configured to send a communication connection request to the target media output device by using a physical address of the target media output device included in the device information to establish a data transmission link with the target media output device Wherein the data transmission link established with the target media output device is used to transmit data and maintain a continuous connection state;
第二获取模块,设置为获取待传输的第一数据;a second acquiring module, configured to acquire first data to be transmitted;
第一发送模块,设置为利用所述第一数据传输链路建立模块建立的与目标媒体输出设备对应的数据传输链路向所述目标媒体输出设备发送所述第一数据,以使得所述目标媒体输出设备在接收到所述第一数据后输出所述第一数据。a first sending module, configured to send the first data to the target media output device by using a data transmission link established by the first data transmission link establishing module and corresponding to the target media output device, so that the target The media output device outputs the first data after receiving the first data.
在本申请一具体实施例中,所述检测模块包括:In a specific embodiment of the present application, the detecting module includes:
第一检测子模块,设置为检测与所述移动终端处于同一局域网下的电子设备;a first detecting submodule configured to detect an electronic device that is in the same local area network as the mobile terminal;
第一判断子模块,设置为判断所述第一检测子模块检测得到的所述电子设备是否为具有预设标识的通用即插即用UPNP设备;a first determining sub-module, configured to determine whether the electronic device detected by the first detecting sub-module is a universal plug-and-play UPNP device with a preset identifier;
第一获取子模块,设置为在所述第一判断子模块判断所述第一检测子模
块检测得到的所述电子设备为具有预设标识的通用即插即用UPNP设备时,获取第一判断结果;a first acquiring submodule, configured to determine, in the first determining submodule, the first detecting submodule
When the electronic device obtained by the block detection is a universal plug and play UPNP device with a preset identifier, the first determination result is obtained;
其中,所述确定模块具体设置为当所述第一判断结果表明所述电子设备为UPNP设备时,则确定检测到符合预设条件的媒体输出设备。The determining module is specifically configured to: when the first determining result indicates that the electronic device is a UPNP device, determine that the media output device that meets the preset condition is detected.
在本申请一具体实施例中,所述检测模块还包括:In a specific embodiment of the present application, the detecting module further includes:
第二判断子模块,设置为判断检测得到的与所述移动终端处于同一局域网下的电子设备是否为支持预设媒体传输协议的电子设备;a second determining sub-module, configured to determine whether the detected electronic device that is in the same local area network as the mobile terminal is an electronic device that supports a preset media transmission protocol;
第二获取子模块,设置为在所述第二判断子模块判断检测得到的与所述移动终端处于同一局域网下的电子设备为支持预设媒体传输协议的电子设备时,获取第二判断结果;a second obtaining sub-module, configured to: when the second determining sub-module determines that the detected electronic device that is in the same local area network as the mobile terminal is an electronic device that supports the preset media transmission protocol, acquiring a second determination result;
第三获取子模块,设置为当所述第二判断结果表明所述电子设备为支持预设媒体传输协议的电子设备时,获取检测到的UPNP设备的物理地址以及支持预设媒体传输协议的电子设备的物理地址;And a third acquiring submodule, configured to: when the second determining result indicates that the electronic device is an electronic device supporting a preset media transmission protocol, acquire a physical address of the detected UPNP device and an electronic device that supports the preset media transmission protocol The physical address of the device;
比较模块,设置为比较所述UPNP设备的物理地址与所述支持预设媒体传输协议的电子设备的物理地址是否相同;a comparison module, configured to compare whether a physical address of the UPNP device is the same as a physical address of the electronic device supporting the preset media transmission protocol;
其中,所述确定模块具体设置为当所述比较模块比较所述UPNP设备的物理地址与所述支持预设媒体传输协议的电子设备的物理地址相同时,确定检测到符合预设条件的媒体输出设备。The determining module is specifically configured to: when the comparing module compares the physical address of the UPNP device with the physical address of the electronic device supporting the preset media transmission protocol, determining that the media output that meets the preset condition is detected is detected. device.
在本申请一具体实施例中,所述装置还包括:In a specific embodiment of the present application, the apparatus further includes:
保存模块,设置为保存获取的所述目标媒体输出设备的设备信息;a saving module, configured to save the obtained device information of the target media output device;
其中,所述第一数据传输链路建立模块具体设置为当确定需要传输数据且判断与所述目标媒体输出设备对应的数据传输链路断开时,利用保存的所述目标媒体输出设备的设备信息重新建立数据传输链路;The first data transmission link establishing module is specifically configured to use the saved device of the target media output device when determining that data needs to be transmitted and determining that the data transmission link corresponding to the target media output device is disconnected Information re-establishes the data transmission link;
所述第一发送模块具体设置为利用所述第一数据传输链路建立模块重新建立的数据传输链路向所述目标媒体输出设备发送待传输的第二数据。The first sending module is specifically configured to send the second data to be transmitted to the target media output device by using a data transmission link re-established by the first data transmission link establishing module.
在本申请一具体实施例中,所述第一发送模块具体设置为,利用已建立的与目标媒体输出设备对应的数据传输链路向所述目标媒体输出设备发送待
传输的第一数据的数据内容;或者In a specific embodiment of the present application, the first sending module is specifically configured to send to the target media output device by using a data transmission link that is established corresponding to the target media output device.
The data content of the transmitted first data; or
利用已建立的与目标媒体输出设备对应的数据传输链路向所述目标媒体输出设备发送待传输的第一数据的地址信息,以使所述目标媒体输出设备利用所述第一数据的地址信息获取第一数据。Transmitting address information of the first data to be transmitted to the target media output device by using the established data transmission link corresponding to the target media output device, so that the target media output device utilizes address information of the first data Get the first data.
基于本申请的再一方面,本申请提供一种数据传输装置,应用于媒体输出设备,所述装置包括:Based on a further aspect of the present application, the present application provides a data transmission apparatus, which is applied to a media output device, and the apparatus includes:
第一接收模块,设置为接收移动终端发送的通信连接请求以与所述移动终端建立数据传输链路;其中,与所述目标媒体输出设备建立的数据传输链路用于传输数据,且保持持续连接状态;所述媒体输出设备为所述移动终端检测并确定的与所述移动终端处于同一局域网的符合预设条件的媒体输出设备中的一个目标媒体输出设备;所述通信连接请求为所述移动终端利用获取的所述媒体输出设备的设备信息向所述媒体输出设备发送的,用于实现建立所述移动终端与所述媒体输出设备之间数据传输链路的通信连接请求;a first receiving module, configured to receive a communication connection request sent by the mobile terminal to establish a data transmission link with the mobile terminal; wherein a data transmission link established with the target media output device is used to transmit data, and is continued a connection state; the media output device is a target media output device in the media output device that is detected and determined by the mobile terminal and is in the same local area network as the mobile terminal, and the communication connection request is And transmitting, by the mobile terminal, the obtained device connection information of the media output device to the media output device, to implement a communication connection request for establishing a data transmission link between the mobile terminal and the media output device;
第二数据传输链路建立模块,设置为依据所述设备信息与所述移动终端建立数据传输链路;a second data transmission link establishing module, configured to establish a data transmission link with the mobile terminal according to the device information;
第二接收模块,设置为利用所述第二数据传输链路建立模块建立的数据传输链路接收所述移动终端发送的第一数据;a second receiving module, configured to receive, by using a data transmission link established by the second data transmission link establishing module, the first data sent by the mobile terminal;
输出模块,设置为在接收到所述第一数据后输出所述第一数据。And an output module configured to output the first data after receiving the first data.
在本申请一具体实施例中,所述装置还包括:In a specific embodiment of the present application, the apparatus further includes:
第二发送模块,设置为向局域网内的电子设备发送所述媒体输出设备的设备信息,其中所述设备信息至少包括所述媒体输出设备的物理地址;a second sending module, configured to send device information of the media output device to an electronic device in a local area network, where the device information includes at least a physical address of the media output device;
其中,所述通信连接请求为所述电子设备利用所述设备信息中包含的目标媒体输出设备的物理地址向所述媒体输出设备发送的通信连接请求。The communication connection request is a communication connection request sent by the electronic device to the media output device by using a physical address of the target media output device included in the device information.
在本申请一具体实施例中,所述第二发送模块具体设置为:In a specific embodiment of the present application, the second sending module is specifically configured to:
实时或周期性向局域网内的电子设备发送所述媒体输出设备的设备信息;或者,Transmitting device information of the media output device to an electronic device in a local area network in real time or periodically; or
接收所述局域网内的电子设备的检测请求,依据所述检测请求向所述局
域网内的电子设备发送所述媒体输出设备的设备信息。Receiving a detection request of the electronic device in the local area network, and sending the request to the office according to the detection request
The electronic device in the domain network sends the device information of the media output device.
在本申请一具体实施例中,所述输出模块具体设置为:In an embodiment of the present application, the output module is specifically configured to:
接收到所述第一数据的数据内容,直接输出所述第一数据的数据内容;或者,Receiving the data content of the first data, directly outputting the data content of the first data; or
接收到所述第一数据的地址信息,利用所述第一数据的地址信息获取第一数据进行输出。Receiving the address information of the first data, and acquiring the first data by using the address information of the first data for output.
应用上述技术方案,本申请在对同一目标媒体输出设备进行多次数据传输时,不需要用户每次传输时重新选择该目标媒体输出设备建立连接,相比于传统的推送方法减少了用户每次传输数据时都需要重新建立与目标媒体输出设备连接的步骤,提高了用户体验。Applying the above technical solution, when performing multiple data transmissions on the same target media output device, the present application does not require the user to reselect the target media output device to establish a connection each time the transmission is performed, which reduces the user each time compared to the conventional push method. When transferring data, it is necessary to re-establish the connection with the target media output device, which improves the user experience.
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present application. Other drawings may also be obtained from those of ordinary skill in the art in light of the inventive work.
图1为本申请提供的一种数据传输方法的一种流程图;FIG. 1 is a flowchart of a data transmission method provided by the present application;
图2为本申请提供的一种数据传输方法的另一种流程图;2 is another flow chart of a data transmission method provided by the present application;
图3为本申请提供的一种数据传输方法的再一种流程图;FIG. 3 is still another flowchart of a data transmission method provided by the present application;
图4为本申请提供的一种数据传输方法的再一种流程图;FIG. 4 is still another flowchart of a data transmission method provided by the present application;
图5为本申请提供的一种数据传输方法的再一种流程图;FIG. 5 is still another flowchart of a data transmission method provided by the present application;
图6为本申请提供的一种数据传输方法的再一种流程图;FIG. 6 is still another flowchart of a data transmission method provided by the present application;
图7为本申请提供的一种数据传输装置的一种结构示意图;FIG. 7 is a schematic structural diagram of a data transmission apparatus provided by the present application; FIG.
图8为本申请提供的一种数据传输装置中检测模块的一种结构示意图;FIG. 8 is a schematic structural diagram of a detection module in a data transmission device according to the present application; FIG.
图9为本申请提供的一种数据传输装置中检测模块的另一种结构示意图;
FIG. 9 is another schematic structural diagram of a detection module in a data transmission device according to the present application; FIG.
图10为本申请提供的一种数据传输装置的另一种结构示意图;FIG. 10 is another schematic structural diagram of a data transmission apparatus provided by the present application; FIG.
图11为本申请提供的一种数据传输装置的再一种结构示意图;FIG. 11 is a schematic structural diagram of still another data transmission apparatus provided by the present application; FIG.
图12为本申请提供的一种数据传输装置的再一种结构示意图。FIG. 12 is still another schematic structural diagram of a data transmission apparatus provided by the present application.
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the drawings in the embodiments of the present application. It is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
本申请实施例提供的数据传输方法,通过检测与移动终端处于同一局域网下的符合预设条件的媒体输出设备,并在检测到的媒体输出设备中确定至少一个媒体输出设备作为目标媒体输出设备后,获取目标媒体输出设备的设备信息,利用设备信息向所述目标媒体输出设备发送通信连接请求以与目标媒体输出设备建立数据传输链路,其中设备信息至少包括目标媒体输出设备的物理地址。当确定需要传输数据时,获取待传输的第一数据,利用已建立的与目标媒体输出设备对应的数据传输链路向目标媒体输出设备发送第一数据,以使得目标媒体输出设备在接收到第一数据后输出第一数据。其中,所述移动终端包括但不限于平板电脑PAD、智能手机、功能手机、掌上电脑PDA等。所述媒体输出设备为具有输出模块的电子设备,包括但不限于电视、膝上型计算机、平板电脑等具有输出模块的设备。The data transmission method provided by the embodiment of the present application detects the media output device that meets the preset condition under the same local area network as the mobile terminal, and determines at least one media output device as the target media output device in the detected media output device. Obtaining device information of the target media output device, and transmitting, by using the device information, a communication connection request to the target media output device to establish a data transmission link with the target media output device, wherein the device information includes at least a physical address of the target media output device. When it is determined that the data needs to be transmitted, the first data to be transmitted is acquired, and the first data is sent to the target media output device by using the established data transmission link corresponding to the target media output device, so that the target media output device receives the first data. The first data is output after one data. The mobile terminal includes, but is not limited to, a tablet PC, a smart phone, a feature phone, a PDA, and the like. The media output device is an electronic device having an output module, including but not limited to a device having an output module, such as a television, a laptop computer, a tablet computer, or the like.
为了便于更加清楚地理解本申请的实现方案,申请人以移动终端为手机,目标媒体输出设备为智能电视为例进行详细说明。In order to facilitate a clearer understanding of the implementation of the present application, the applicant uses a mobile terminal as a mobile phone and a target media output device as a smart television as an example for detailed description.
基于移动终端侧,如图1所述,其示出了本申请提供的一种数据传输方法的一种流程图,包括以下步骤:Based on the mobile terminal side, as shown in FIG. 1 , it shows a flowchart of a data transmission method provided by the present application, including the following steps:
步骤101,检测与移动终端处于同一局域网下的符合预设条件的媒体输出设备,在检测到的媒体输出设备中确定至少一个媒体输出设备作为目标媒体输出设备。
Step 101: Detect a media output device that meets a preset condition under the same local area network as the mobile terminal, and determine at least one media output device as the target media output device in the detected media output device.
在本实施例中,媒体输出设备为处于与移动终端同一局域网下的设备,可以包括在同一局域网内的个人计算机、PAD电脑、智能电视、智能电视盒等。此处为了便于更好的说明,现以移动终端为手机,目标媒体输出设备为智能电视为例来阐述。In this embodiment, the media output device is a device under the same local area network as the mobile terminal, and may include a personal computer, a PAD computer, a smart TV, a smart TV box, and the like in the same local area network. Here, in order to facilitate a better description, the mobile terminal is used as a mobile phone, and the target media output device is a smart TV as an example.
手机向局域网内发出检测信号,利用该检测信号检测与手机同时处于同一局域网下的符合预设条件的媒体输出设备。这里所述符合预设条件的媒体输出设备即指的是可与手机建立数据传输链路,进行信息交互的媒体输出设备。在手机检测到可以进行连接的媒体输出设备后,确定其中至少一个媒体输出设备作为目标媒体输出设备。The mobile phone sends a detection signal to the local area network, and uses the detection signal to detect a media output device that meets the preset condition under the same local area network as the mobile phone. The media output device that meets the preset condition herein refers to a media output device that can establish a data transmission link with the mobile phone and exchange information. After the mobile phone detects the media output device that can be connected, it determines at least one of the media output devices as the target media output device.
具体地,确定其中至少一个媒体输出设备作为目标媒体输出设备可以包括:手机检测到可以进行连接的媒体输出设备后,将检测到的所有设备通过显示屏显示出来,以供用户进行选择。用户选中哪个媒体输出设备,手机便确定该媒体输出设备为目标媒体输出设备,默认后续所有数据交互的对象均为该目标媒体输出设备;或者,手机将检测到的所有媒体输出设备均确定为目标媒体输出设备;或者,手机按照检测到的媒体输出设备的顺序依次确定出多个,比如3个,确定先检测到的前3个媒体输出设备为目标媒体输出设备;或根据用户自行设定,符合用户设定规则的媒体输出设备为目标媒体输出设备。Specifically, determining that the at least one media output device is the target media output device may include: after the mobile phone detects the media output device that can be connected, displaying all the detected devices through the display screen for the user to select. Which media output device is selected by the user, the mobile phone determines that the media output device is the target media output device, and all subsequent data interaction objects are all the target media output devices; or, the mobile phone determines all the media output devices detected as targets. The media output device; or, the mobile phone sequentially determines a plurality of, for example, three according to the detected media output device, and determines that the first three media output devices detected first are the target media output devices; or according to the user setting, The media output device that meets the user setting rules is the target media output device.
在本实施例中,手机通过检测将与手机在同一局域网内的所有媒体输出设备找到并显示给用户,用户从所有媒体输出设备中确定出智能电视为目标媒体输出设备。In this embodiment, the mobile phone finds and displays to the user through all the media output devices in the same local area network as the mobile phone, and the user determines that the smart TV is the target media output device from all the media output devices.
步骤102,获取目标媒体输出设备的设备信息,其中设备信息至少包括目标媒体输出设备的物理地址,利用设备信息中包含的目标媒体输出设备的物理地址向目标媒体输出设备发送通信连接请求以与目标媒体输出设备建立数据传输链路。其中,与目标媒体输出设备建立的数据传输链路用于传输数据,且保持持续连接状态。Step 102: Acquire device information of the target media output device, where the device information includes at least a physical address of the target media output device, and send a communication connection request to the target media output device by using the physical address of the target media output device included in the device information. The media output device establishes a data transmission link. The data transmission link established with the target media output device is used to transmit data and maintain a continuous connection state.
在本实施例中,获取目标媒体输出设备的设备信息可以包括,接收目标
媒体输出设备发送的广播信息,该广播信息中包括目标媒体输出设备的设备信息。或,移动设备对局域网内的目标媒体输出设备进行扫描,直接获取目标媒体输出设备的物理标识,依据该物理标识获取设备信息。In this embodiment, acquiring device information of the target media output device may include: receiving the target
The broadcast information sent by the media output device, where the broadcast information includes device information of the target media output device. Or, the mobile device scans the target media output device in the local area network to directly obtain the physical identifier of the target media output device, and obtains the device information according to the physical identifier.
用户选中智能电视作为目标媒体输出设备后,继续获取智能电视的设备信息,其中,设备信息至少包括智能电视的物理地址。目标媒体输出设备的物理地址可以是设备的IP地址、MAC(Media Access Control,介质访问控制地址)等。手机利用智能电视的物理地址向智能电视发送通信连接请求以与智能电视建立数据传输链路,通过数据传输链路传输数据。After selecting the smart TV as the target media output device, the user continues to obtain the device information of the smart TV, wherein the device information includes at least the physical address of the smart TV. The physical address of the target media output device may be an IP address of the device, a MAC (Media Access Control), or the like. The mobile phone uses the physical address of the smart TV to send a communication connection request to the smart TV to establish a data transmission link with the smart television and transmit the data through the data transmission link.
需要说明的是,在本实施例中,移动终端与目标媒体输出设备建立数据传输链路后,该数据传输链路便处于保持持续连接状态。具体地,假如当移动终端A与目标媒体输出设备B建立数据传输链路后,移动终端A每向目标媒体输出设备B传输数据时都利用该数据传输链路进行传输,且在移动终端A每完成一次数据传输时,该数据传输链路还是处于连接状态,等待移动终端A再次利用该数据传输链路向目标媒体输出设备B进行数据传输。It should be noted that, in this embodiment, after the mobile terminal establishes a data transmission link with the target media output device, the data transmission link is kept in a continuous connection state. Specifically, if the mobile terminal A establishes a data transmission link with the target media output device B, the mobile terminal A transmits the data through the data transmission link every time the target media output device B transmits data, and each of the mobile terminal A When the data transmission is completed, the data transmission link is still in a connected state, waiting for the mobile terminal A to use the data transmission link to perform data transmission to the target media output device B again.
步骤103,当确定需要传输数据时,获取待传输的第一数据,利用已建立的与目标媒体输出设备对应的数据传输链路向目标媒体输出设备发送第一数据,以使得目标媒体输出设备在接收到第一数据后输出第一数据。Step 103: When it is determined that the data needs to be transmitted, obtain the first data to be transmitted, and send the first data to the target media output device by using the established data transmission link corresponding to the target media output device, so that the target media output device is The first data is output after receiving the first data.
其中,当检测到预设的用户操作时,则确定需要传输数据。其中,预设的用户操作可以包括预设的按键输入操作、甩动操作、模拟鼠标输入操作或者预设手势输入操作。Wherein, when a preset user operation is detected, it is determined that data needs to be transmitted. The preset user operations may include a preset key input operation, a tilt operation, an analog mouse input operation, or a preset gesture input operation.
其中,利用已建立的与目标媒体输出设备对应的数据传输链路向目标媒体输出设备发送所述第一数据可以包括:利用已建立的与目标媒体输出设备对应的数据传输链路向所述目标媒体输出设备发送待传输的第一数据的数据内容,或者,利用已建立的与目标媒体输出设备对应的数据传输链路向目标媒体输出设备发送待传输的第一数据的地址信息,以使目标媒体输出设备利用第一数据的地址信息获取第一数据。The transmitting the first data to the target media output device by using the established data transmission link corresponding to the target media output device may include: using the established data transmission link corresponding to the target media output device to the target The media output device sends the data content of the first data to be transmitted, or sends the address information of the first data to be transmitted to the target media output device by using the established data transmission link corresponding to the target media output device to make the target The media output device acquires the first data by using the address information of the first data.
其中,第一数据为移动设备向目标媒体输出设备发送的数据信息,其可
以包括文件、音频流、视频流等。The first data is data information sent by the mobile device to the target media output device, where
To include files, audio streams, video streams, and more.
在本实施例中,当前用户欲发送第一数据如视频A至智能电视,用户选定该第一数据后,手机获取该第一数据并检测到预设的用户操作时,利用已建立的与智能电视对应的数据传输链路向智能电视发送第一数据视频A,智能电视接收到第一数据视频A后输出第一数据,进行视频A的播放。In this embodiment, the current user wants to send the first data, such as the video A to the smart TV. After the user selects the first data, the mobile phone acquires the first data and detects the preset user operation, and uses the established The data transmission link corresponding to the smart TV sends the first data video A to the smart TV, and the smart TV receives the first data video A and outputs the first data to play the video A.
此外,对于用户确定两个或两个以上,或移动终端自动确定两个或两个以上个媒体输出设备为目标媒体输出设备时,移动终端在进行数据传输时,可以采用并行传输数据的方式同时向多个目标媒体输出设备传输数据,也可以采用串行传输数据的方式,逐个实现对每个目标媒体输出设备的数据传输。此处对于移动终端的具体传输方式不做限定,凡是可以实现数据传输的方式都属于本申请的保护范围。In addition, when the user determines two or more, or the mobile terminal automatically determines that two or more media output devices are the target media output devices, the mobile terminal may simultaneously transmit data in parallel when performing data transmission. Data is transmitted to a plurality of target media output devices, and data transmission to each target media output device may be implemented one by one by serially transmitting data. The specific transmission mode of the mobile terminal is not limited herein, and any manner in which data transmission can be implemented belongs to the protection scope of the present application.
显然,本申请公开的技术方案,通过检测与移动终端处于同一局域网下的符合预设条件的媒体输出设备,并在检测到的媒体输出设备中确定至少一个媒体输出设备作为目标媒体输出设备后,获取目标媒体输出设备的设备信息,利用设备信息向所述目标媒体输出设备发送通信连接请求以与目标媒体输出设备建立数据传输链路,其中设备信息至少包括目标媒体输出设备的物理地址。当确定需要传输数据时,获取待传输的第一数据,利用已建立的与目标媒体输出设备对应的数据传输链路向目标媒体输出设备发送第一数据,以使得目标媒体输出设备在接收到第一数据后输出第一数据。因此,本申请在检测并确定目标媒体输出设备后,便建立与目标媒体输出设备对应的数据传输链路,且该数据传输链路保持持续连接状态。在后续需要向该目标媒体输出设备传输数据过程中,利用建立的数据传输链路,直接向目标媒体输出设备发送数据。因此,本申请在对同一目标媒体输出设备进行多次数据传输时,不需要用户每次传输时重新选择该目标媒体输出设备建立连接,相比于传统的推送方法减少了用户每次传输数据时都需要重新建立与目标媒体输出设备连接的步骤,提高了用户体验。
Obviously, the technical solution disclosed in the present application, after detecting a media output device that meets a preset condition under the same local area network as the mobile terminal, and determining at least one media output device as the target media output device in the detected media output device, Obtaining device information of the target media output device, and transmitting, by using the device information, a communication connection request to the target media output device to establish a data transmission link with the target media output device, wherein the device information includes at least a physical address of the target media output device. When it is determined that the data needs to be transmitted, the first data to be transmitted is acquired, and the first data is sent to the target media output device by using the established data transmission link corresponding to the target media output device, so that the target media output device receives the first data. The first data is output after one data. Therefore, after detecting and determining the target media output device, the present application establishes a data transmission link corresponding to the target media output device, and the data transmission link maintains a continuous connection state. In the subsequent process of transmitting data to the target media output device, the data is directly transmitted to the target media output device by using the established data transmission link. Therefore, when performing multiple data transmissions on the same target media output device, the present application does not require the user to reselect the target media output device to establish a connection each time the transmission is performed, which reduces the user's data transmission each time compared to the conventional push method. All need to re-establish the connection with the target media output device to improve the user experience.
在上述图1对应的第一个可选实施例的基础上,参阅图2,本申请提供的数据传输方法的另一种流程图,检测与移动终端处于同一局域网下的符合预设条件的媒体输出设备,包括:Based on the first alternative embodiment corresponding to FIG. 1 above, referring to FIG. 2, another flowchart of the data transmission method provided by the present application detects media that meets preset conditions under the same local area network as the mobile terminal. Output devices, including:
步骤101A,检测与移动终端处于同一局域网下的电子设备。 Step 101A: Detect an electronic device that is in the same local area network as the mobile terminal.
步骤101B,判断检测得到的电子设备是否为具有预设标识的通用即插即用UPNP设备,获取第一判断结果。 Step 101B: Determine whether the detected electronic device is a universal plug and play UPNP device with a preset identifier, and obtain a first determination result.
在本实施例中,移动终端检测与所述移动终端处于同一局域网下的符合预设条件的媒体输出设备时,会花费大量的网络资源来搜索局域网内所有的媒体输出设备进行数据传输链路的建立,而通常用户需要的目标媒体输出设备的个数仅为一个,最多三个。与局域网内搜索出的所有媒体输出设备进行数据传输链路的建立不仅浪费了大量的网络资源,甚至还会造成网络堵塞,造成网络时延。基于此,为了便于移动终端高效地检测出与移动终端处于同一局域网下的符合预设条件的媒体输出设备,移动终端可以检测与移动终端处于同一局域网下的电子设备,判断该电子设备是否为具有预设标识的通用UPNP(Universal Plug and Play,即插即用)设备,并获取第一判断结果。In this embodiment, when the mobile terminal detects that the mobile terminal is in the same local area network as the media output device that meets the preset condition, it will spend a large amount of network resources to search all the media output devices in the local area network for the data transmission link. Established, and usually the number of target media output devices required by the user is only one, up to three. The establishment of a data transmission link with all media output devices searched in the local area network not only wastes a lot of network resources, but also causes network congestion and network delay. Based on this, in order to facilitate the mobile terminal to efficiently detect the media output device in the same local area network as the mobile terminal, the mobile terminal can detect the electronic device in the same local area network as the mobile terminal, and determine whether the electronic device has A universal UPNP (Universal Plug and Play) device is preset and the first judgment result is obtained.
其中,通用UPNP协议是一种用于助于移动终端搜索电子设备的网络协议。电子设备中包括通用UPNP模块即可实现被移动终端搜索到。实际应用中,每一个UPNP设备都有用于区别其他UPNP设备的物理标识。所述标识可以包括表示UPNP设备性质的属性信息或用户自定义的设备名称等。在本实施例中,举例来说,判断电子设备是否为具有预设标识的通用UPNP设备可以包括,判断电子设备是否为设备名称为“乐视”的通用UPNP设备,或判断电子设备是否为设备名称中包括“乐视”的通用UPNP设备。Among them, the universal UPNP protocol is a network protocol for facilitating mobile terminals to search for electronic devices. The universal UPNP module is included in the electronic device to be searched by the mobile terminal. In practical applications, each UPNP device has a physical identifier for distinguishing other UPNP devices. The identifier may include attribute information indicating a property of the UPNP device or a user-defined device name or the like. In this embodiment, for example, determining whether the electronic device is a universal UPNP device having a preset identifier may include determining whether the electronic device is a universal UPNP device whose device name is “LeTV”, or determining whether the electronic device is a device name. It includes the universal UPNP device of LeEco.
步骤101C,获取的第一判断结果表明电子设备为具有预设标识的UPNP设备时,则确定检测到符合预设条件的媒体输出设备。若否,返回步骤101A。 Step 101C: The obtained first judgment result indicates that when the electronic device is a UPNP device with a preset identifier, it is determined that the media output device that meets the preset condition is detected. If not, return to step 101A.
具体地,为了保证与移动终端建立的媒体输出设备是支持可传输数据媒体传输协议的媒体输出设备,避免虽然移动终端与媒体输出设备建立了连接但无法正常通信的问题。请参阅图3所示,所述检测与移动终端处于同一局
域网下的符合预设条件的媒体输出设备还包括以下步骤:当第一判断结果表明电子设备为具有预设标识的UPNP设备时,进一步执行步骤101D。步骤101D,判断检测得到的与移动终端处于同一局域网下的电子设备是否为支持预设媒体传输协议的电子设备,获取第二判断结果。Specifically, in order to ensure that the media output device established with the mobile terminal is a media output device supporting a transportable data medium transmission protocol, the problem that the mobile terminal cannot establish normal connection with the media output device is avoided. Referring to FIG. 3, the detection is in the same office as the mobile terminal.
The media output device that meets the preset condition in the domain network further includes the following steps: when the first determination result indicates that the electronic device is a UPNP device with a preset identifier, step 101D is further performed. Step 101D: Determine whether the detected electronic device that is in the same local area network as the mobile terminal is an electronic device that supports the preset media transmission protocol, and obtain a second determination result.
其中,所述支持预设媒体传输协议的电子设备指的是可以实现接收移动设备发送的数据信息、并可对接收的数据信息进行读取、处理的设备。预设媒体传输协议可以为局域网内数据通信协议,例如DLNA(DIGITAL LIVING NETWORK ALLIANCE,数字生活网络联盟)网络协议。在本实施例中,例如移动终端向电子设备推送视频数据,电子设备需具有可接收并读取、处理该视频数据的模块。通常对于安卓Android系统的移动设备来说,电子设备应具备DMR(Digital Media Receiver,数字媒体接收器)模块,用于接收Android系统发送来的视频数据。对于苹果iOS系统的移动设备来说,电子设备应具备AirPlay模块,用于接收苹果iOS系统发送来的视频数据。其分别具有DMR模块和/或AirPlay模块的电子设备称之为支持预设媒体传输协议的电子设备。The electronic device supporting the preset media transmission protocol refers to a device that can receive data information sent by the mobile device and can read and process the received data information. The preset media transmission protocol may be a data communication protocol in a local area network, such as a DLNA (DIGITAL LIVING NETWORK ALLIANCE) network protocol. In this embodiment, for example, the mobile terminal pushes video data to the electronic device, and the electronic device needs to have a module that can receive and read and process the video data. Generally, for a mobile device of the Android Android system, the electronic device should have a DMR (Digital Media Receiver) module for receiving video data sent by the Android system. For mobile devices of the Apple iOS system, the electronic device should have an AirPlay module for receiving video data sent by the Apple iOS system. An electronic device having a DMR module and/or an AirPlay module, respectively, is referred to as an electronic device supporting a preset media transmission protocol.
步骤101E,当所述第二判断结果表明所述电子设备为支持预设媒体传输协议的电子设备时,获取检测到的UPNP设备的物理地址以及支持预设媒体传输协议的电子设备的物理地址。In step 101E, when the second determination result indicates that the electronic device is an electronic device supporting a preset media transmission protocol, the physical address of the detected UPNP device and the physical address of the electronic device supporting the preset media transmission protocol are acquired.
步骤101F,比较UPNP设备的物理地址与支持预设媒体传输协议的电子设备的物理地址是否相同,如果相同,执行步骤101G,如果不同,返回步骤101A。In step 101F, it is compared whether the physical address of the UPNP device is the same as the physical address of the electronic device supporting the preset media transmission protocol. If they are the same, step 101G is performed. If not, the process returns to step 101A.
步骤101G,确定检测到符合预设条件的媒体输出设备。In step 101G, it is determined that the media output device that meets the preset condition is detected.
在本实施例中,通过对检测到的媒体传输设备进行进一步验证,在媒体传输设备同时满足为UPNP设备且为支持预设媒体传输协议的设备时,确定该媒体传输设备为目标媒体传输设备,保证了数据传输链路的准确性,即进一步保证了数据传输的高效性。In this embodiment, by performing further verification on the detected media transmission device, when the media transmission device simultaneously satisfies the UPNP device and is a device supporting the preset media transmission protocol, determining that the media transmission device is the target media transmission device, The accuracy of the data transmission link is ensured, that is, the efficiency of data transmission is further ensured.
在上述实施例的基础上,请参阅图4,本申请提供的一种数据传输方法
的再一种流程图,还包括:On the basis of the above embodiments, please refer to FIG. 4, a data transmission method provided by the present application
Another flow chart also includes:
步骤104,保存获取的目标媒体输出设备的设备信息。Step 104: Save device information of the obtained target media output device.
步骤105,当确定需要传输数据且判断与目标媒体输出设备对应的数据传输链路断开时,利用保存的目标媒体输出设备的设备信息重新建立数据传输链路,利用重新建立的数据传输链路向目标媒体输出设备发送待传输的第二数据。其中,所述第二数据为移动设备向目标媒体输出设备再次发送的数据信息,其可以包括文件、音频流、视频流等。Step 105: When it is determined that the data needs to be transmitted and it is determined that the data transmission link corresponding to the target media output device is disconnected, the data transmission link is re-established by using the saved device information of the target media output device, and the re-established data transmission link is utilized. Sending the second data to be transmitted to the target media output device. The second data is data information that the mobile device retransmits to the target media output device, and may include a file, an audio stream, a video stream, and the like.
此处,需要说明的是,步骤104和前述步骤101-步骤103的顺序并不做出限定。在本申请中,步骤104可在步骤103之后执行,也可与步骤103同时执行,也在步骤102获取目标媒体输出设备的设备信息后就执行。本申请只是以上述步骤的顺序作为优选实施方案进行的描述,其在实际应用过程中具体执行顺序并不限于本申请公开的技术方案。Here, it should be noted that the order of step 104 and the foregoing steps 101-103 is not limited. In the present application, step 104 may be performed after step 103, or may be performed simultaneously with step 103, and is also performed after step 102 acquires device information of the target media output device. The present application is only described as a preferred embodiment in the order of the above steps, and the specific execution order in the actual application process is not limited to the technical solutions disclosed in the present application.
在本实施例中,移动终端会保存获取到的目标媒体输出设备的设备信息。因此,移动终端在确定当前需要传输数据且判断出与目标媒体输出设备对应的数据传输链路断开时,直接利用保存的目标媒体输出设备的设备信息重新建立数据传输链路,利用重新建立的数据传输链路向目标媒体输出设备发送待传输的第二数据。应用本申请的技术方案,无需用户重新进行检测搜索媒体输出设备,重新确定出目标媒体输出设备在传输数据,方便了用户操作,提高了用户体验。In this embodiment, the mobile terminal saves the acquired device information of the target media output device. Therefore, when determining that the data transmission link currently needs to be transmitted and determining that the data transmission link corresponding to the target media output device is disconnected, the mobile terminal directly re-establishes the data transmission link by using the saved device information of the target media output device, and uses the re-established The data transmission link transmits the second data to be transmitted to the target media output device. Applying the technical solution of the present application, the user does not need to re-detect the search media output device, and re-determines that the target media output device is transmitting data, which facilitates the user operation and improves the user experience.
基于媒体输出设备侧,请参阅图5,本申请提供的一种数据传输方法的再一种流程图,包括:Based on the media output device side, referring to FIG. 5, another flowchart of a data transmission method provided by the present application includes:
步骤201,接收移动终端发送的通信连接请求以与移动终端建立数据传输链路。Step 201: Receive a communication connection request sent by the mobile terminal to establish a data transmission link with the mobile terminal.
其中,与目标媒体输出设备建立的数据传输链路用于传输数据,且保持持续连接状态。媒体输出设备为移动终端检测并确定的与移动终端处于同一局域网的符合预设条件的媒体输出设备中的一个目标媒体输出设备。通信连
接请求为移动终端利用获取的媒体输出设备的设备信息向媒体输出设备发送的,用于实现建立移动终端与媒体输出设备之间数据传输链路的请求。The data transmission link established with the target media output device is used to transmit data and maintain a continuous connection state. The media output device is a target media output device in the media output device that is detected and determined by the mobile terminal and is in the same local area network as the mobile terminal. Communication connection
The request is sent to the media output device by the mobile terminal by using the acquired device information of the media output device, and is used to implement a request for establishing a data transmission link between the mobile terminal and the media output device.
步骤202,利用数据传输链路接收移动终端发送的第一数据,并在接收到第一数据后输出第一数据。Step 202: Receive first data sent by the mobile terminal by using a data transmission link, and output the first data after receiving the first data.
在本实施例中,媒体输出设备接收到移动终端发送来的第一数据的数据内容,直接输出第一数据的数据内容。或者,接收到第一数据的地址信息,利用第一数据的地址信息获取第一数据进行输出。In this embodiment, the media output device receives the data content of the first data sent by the mobile terminal, and directly outputs the data content of the first data. Alternatively, the address information of the first data is received, and the first data is acquired by using the address information of the first data for output.
请参阅图6,本申请提供的一种数据传输方法的再一种流程图,包括:Referring to FIG. 6, another flowchart of a data transmission method provided by the present application includes:
步骤200,向局域网内的电子设备发送媒体输出设备的设备信息,其中设备信息至少包括媒体输出设备的物理地址。Step 200: Send device information of the media output device to an electronic device in the local area network, where the device information includes at least a physical address of the media output device.
步骤201,接收移动终端发送的通信连接请求以与移动终端建立数据传输链路。Step 201: Receive a communication connection request sent by the mobile terminal to establish a data transmission link with the mobile terminal.
其中,移动终端发送的通信连接请求是利用设备信息中包含的目标媒体输出设备的物理地址向目标媒体输出设备发送通信连接请求。The communication connection request sent by the mobile terminal is to send a communication connection request to the target media output device by using a physical address of the target media output device included in the device information.
步骤202,利用数据传输链路接收移动终端发送的第一数据,并在接收到第一数据后输出第一数据。Step 202: Receive first data sent by the mobile terminal by using a data transmission link, and output the first data after receiving the first data.
在本实施例中,媒体输出设备可以采用实时或周期性向局域网内的电子设备发送媒体输出设备的设备信息。或者,在接收到局域网内的电子设备的检测请求后,依据检测请求向局域网内的电子设备发送媒体输出设备的设备信息。In this embodiment, the media output device may send the device information of the media output device to the electronic device in the local area network in real time or periodically. Alternatively, after receiving the detection request of the electronic device in the local area network, the device information of the media output device is sent to the electronic device in the local area network according to the detection request.
本申请还提供一种在其上记录有用于执行上述方法的程序的计算机可读记录介质。The present application also provides a computer readable recording medium on which a program for executing the above method is recorded.
所述计算机可读记录介质包括用于以计算机(例如计算机)可读的形式存储或传送信息的任何机制。例如,机器可读介质包括只读存储器(ROM)、随机存取存储器(RAM)、磁盘存储介质、光存储介质、闪速存储介质、电、光、声或其他形式的传播信号(例如,载波、红外信号、数字信号等)等。
The computer readable recording medium includes any mechanism for storing or transmitting information in a form readable by a computer (eg, a computer). For example, a machine-readable medium includes read only memory (ROM), random access memory (RAM), magnetic disk storage media, optical storage media, flash storage media, electrical, optical, acoustic, or other forms of propagation signals (eg, carrier waves) , infrared signals, digital signals, etc.).
对应前述数据传输方法的实施例,本申请还提供了一种数据传输装置的一种结构示意图,请参阅图7,该装置包括:检测模块1000、确定模块2000、第一获取模块3000、第一数据传输链路建立模块4000、第二获取模块5000、第一发送模块6000,其中,Corresponding to the foregoing embodiment of the data transmission method, the present application further provides a structure diagram of a data transmission device. Referring to FIG. 7, the device includes: a detection module 1000, a determination module 2000, a first acquisition module 3000, and a first a data transmission link establishing module 4000, a second obtaining module 5000, and a first sending module 6000, where
检测模块1000,设置为检测与移动终端处于同一局域网下的符合预设条件的媒体输出设备。The detecting module 1000 is configured to detect a media output device that meets a preset condition under the same local area network as the mobile terminal.
确定模块2000,设置为在检测模块1000检测到的媒体输出设备中确定至少一个媒体输出设备作为目标媒体输出设备。The determining module 2000 is configured to determine at least one media output device as the target media output device in the media output device detected by the detecting module 1000.
第一获取模块3000,设置为获取目标媒体输出设备的设备信息。其中设备信息至少包括目标媒体输出设备的物理地址。The first obtaining module 3000 is configured to acquire device information of the target media output device. The device information includes at least a physical address of the target media output device.
第一数据传输链路建立模块4000,设置为利用设备信息中包含的目标媒体输出设备的物理地址向目标媒体输出设备发送通信连接请求以与目标媒体输出设备建立数据传输链路。其中,与目标媒体输出设备建立的数据传输链路用于传输数据,且保持持续连接状态。The first data transmission link establishing module 4000 is configured to send a communication connection request to the target media output device by using a physical address of the target media output device included in the device information to establish a data transmission link with the target media output device. The data transmission link established with the target media output device is used to transmit data and maintain a continuous connection state.
第二获取模块5000,设置为获取待传输的第一数据。The second obtaining module 5000 is configured to acquire first data to be transmitted.
第一发送模块6000,设置为利用第一数据传输链路建立模块4000建立的与目标媒体输出设备对应的数据传输链路向目标媒体输出设备发送第一数据,以使得目标媒体输出设备在接收到第一数据后输出所述第一数据。The first sending module 6000 is configured to send, by using a data transmission link corresponding to the target media output device established by the first data transmission link establishing module 4000, the first data to the target media output device, so that the target media output device receives the data. The first data is output after the first data.
在本实施例中,第一发送模块6000可以具体用于利用已建立的与目标媒体输出设备对应的数据传输链路向目标媒体输出设备发送待传输的第一数据的数据内容。或者,利用已建立的与目标媒体输出设备对应的数据传输链路向目标媒体输出设备发送待传输的第一数据的地址信息,以使目标媒体输出设备利用第一数据的地址信息获取第一数据。In this embodiment, the first sending module 6000 may be specifically configured to send the data content of the first data to be transmitted to the target media output device by using the established data transmission link corresponding to the target media output device. Alternatively, the address information of the first data to be transmitted is sent to the target media output device by using the established data transmission link corresponding to the target media output device, so that the target media output device acquires the first data by using the address information of the first data. .
其中,可参阅图8,本申请还提供了一种数据传输装置中检测模块的一种结构示意图,检测模块1000包括:第一检测模块1001、第一判断模块1002、第一结果获取模块1003,其中,Referring to FIG. 8 , the present application further provides a schematic structural diagram of a detection module in a data transmission apparatus. The detection module 1000 includes: a first detection module 1001, a first determination module 1002, and a first result acquisition module 1003. among them,
第一检测模块1001,设置为检测与移动终端处于同一局域网下的电子设
备。The first detecting module 1001 is configured to detect an electronic device that is in the same local area network as the mobile terminal.
Ready.
第一判断模块1002,设置为判断第一检测模块1001检测得到的电子设备是否为具有预设标识的通用即插即用UPNP设备。The first determining module 1002 is configured to determine whether the electronic device detected by the first detecting module 1001 is a universal plug and play UPNP device with a preset identifier.
第一结果获取模块1003,设置为在第一判断模块1002判断第一检测模块1001检测得到的电子设备为具有预设标识的通用即插即用UPNP设备时,获取第一判断结果。The first result obtaining module 1003 is configured to obtain the first determination result when the first determining module 1002 determines that the electronic device detected by the first detecting module 1001 is a universal plug and play UPNP device with a preset identifier.
此时,确定模块2000具体设置为当第一判断结果表明电子设备为具有预设标识的UPNP设备时,确定检测到符合预设条件的媒体输出设备。At this time, the determining module 2000 is specifically configured to determine that the media output device that meets the preset condition is detected when the first determination result indicates that the electronic device is a UPNP device having a preset identifier.
具体地,参阅图9,本申请提供了一种数据传输装置中检测模块的另一种结构示意图,在图8的基础上检测模块1000还包括:第二判断模块1004、第二结果获取模块1005、第三结果获取模块1006和比较模块1007。其中,Specifically, referring to FIG. 9 , the present application provides another structure diagram of a detection module in a data transmission apparatus. On the basis of FIG. 8 , the detection module 1000 further includes: a second determination module 1004 and a second result acquisition module 1005. The third result acquisition module 1006 and the comparison module 1007. among them,
第二判断模块1004,设置为判断检测得到的与移动终端处于同一局域网下的电子设备是否为支持预设媒体传输协议的电子设备。The second determining module 1004 is configured to determine whether the detected electronic device that is in the same local area network as the mobile terminal is an electronic device that supports the preset media transmission protocol.
第二结果获取模块1005,设置为在第二判断模块1004判断检测得到的与移动终端处于同一局域网下的电子设备为支持预设媒体传输协议的电子设备时,获取第二判断结果。The second result obtaining module 1005 is configured to obtain the second determination result when the second determining module 1004 determines that the detected electronic device that is in the same local area network as the mobile terminal is an electronic device that supports the preset media transmission protocol.
第三结果获取模块1006,设置为当第二判断结果表明电子设备为支持预设媒体传输协议的电子设备时,获取检测到的UPNP设备的物理地址以及支持预设媒体传输协议的电子设备的物理地址。The third result obtaining module 1006 is configured to: when the second determination result indicates that the electronic device is an electronic device supporting the preset media transmission protocol, acquire the physical address of the detected UPNP device and the physicality of the electronic device supporting the preset media transmission protocol. address.
比较模块1007,设置为比较UPNP设备的物理地址与支持预设媒体传输协议的电子设备的物理地址是否相同。The comparison module 1007 is configured to compare whether the physical address of the UPNP device is the same as the physical address of the electronic device supporting the preset media transmission protocol.
此时,确定模块2000具体设置为当比较模块1007比较UPNP设备的物理地址与支持预设媒体传输协议的电子设备的物理地址相同时,确定检测到符合预设条件的媒体输出设备。At this time, the determining module 2000 is specifically configured to determine that the media output device that meets the preset condition is detected when the comparison module 1007 compares the physical address of the UPNP device with the physical address of the electronic device supporting the preset media transmission protocol.
请参阅图10,在前述实施例的基础上,本申请提供了一种数据传输装置的另一种结构示意图,还包括:保存模块7000。其中,
Referring to FIG. 10, based on the foregoing embodiment, the present application provides another structural diagram of a data transmission apparatus, and further includes: a saving module 7000. among them,
保存模块7000,设置为保存获取的目标媒体输出设备的设备信息。The saving module 7000 is configured to save the device information of the obtained target media output device.
在本实施例中,第一数据传输链路建立模块4000具体设置为当确定需要传输数据且判断与目标媒体输出设备对应的数据传输链路断开时,利用保存模块7000保存的目标媒体输出设备的设备信息重新建立数据传输链路。进而第一发送模块6000利用该重新建立的数据传输链路向目标媒体输出设备发送待传输的第二数据。In this embodiment, the first data transmission link establishing module 4000 is specifically configured to use the target media output device saved by the saving module 7000 when it is determined that the data needs to be transmitted and the data transmission link corresponding to the target media output device is disconnected. The device information re-establishes the data transmission link. The first sending module 6000 further sends the second data to be transmitted to the target media output device by using the re-established data transmission link.
请参阅图11,本申请提供了一种数据传输装置的再一种结构示意图,包括:第一接收模块8000、第二数据传输链路建立模块9000、第二接收模块10000和输出模块20000。其中,Referring to FIG. 11 , the present application provides a further structural diagram of a data transmission apparatus, including: a first receiving module 8000, a second data transmission link establishing module 9000, a second receiving module 10000, and an output module 20000. among them,
第一接收模块8000,设置为接收移动终端发送的通信连接请求以与移动终端建立数据传输链路。其中,与目标媒体输出设备建立的数据传输链路用于传输数据,且保持持续连接状态。媒体输出设备为移动终端检测并确定的与移动终端处于同一局域网的符合预设条件的媒体输出设备中的一个目标媒体输出设备。通信连接请求为移动终端利用获取的媒体输出设备的设备信息向媒体输出设备发送的,用于实现建立移动终端与媒体输出设备之间数据传输链路的通信连接请求。The first receiving module 8000 is configured to receive a communication connection request sent by the mobile terminal to establish a data transmission link with the mobile terminal. The data transmission link established with the target media output device is used to transmit data and maintain a continuous connection state. The media output device is a target media output device in the media output device that is detected and determined by the mobile terminal and is in the same local area network as the mobile terminal. The communication connection request is sent by the mobile terminal to the media output device by using the acquired device information of the media output device, and is used to implement a communication connection request for establishing a data transmission link between the mobile terminal and the media output device.
第二数据传输链路建立模块9000,设置为依据设备信息与移动终端建立数据传输链路。The second data transmission link establishing module 9000 is configured to establish a data transmission link with the mobile terminal according to the device information.
第二接收模块10000,设置为利用第二数据传输链路建立模块9000建立的数据传输链路接收移动终端发送的第一数据。The second receiving module 10000 is configured to receive the first data sent by the mobile terminal by using a data transmission link established by the second data transmission link establishing module 9000.
输出模块20000,设置为在接收到第一数据后输出所述第一数据。The output module 20000 is configured to output the first data after receiving the first data.
其中,输出模块20000具体设置为:接收到第一数据的数据内容,直接输出第一数据的数据内容。或者,接收到第一数据的地址信息,利用第一数据的地址信息获取第一数据进行输出。The output module 20000 is specifically configured to: receive the data content of the first data, and directly output the data content of the first data. Alternatively, the address information of the first data is received, and the first data is acquired by using the address information of the first data for output.
在上述实施例的基础上,参阅图12,本申请提供了一种数据传输装置的再一种结构示意图,在图11的基础上还包括:第二发送模块30000。
On the basis of the foregoing embodiment, referring to FIG. 12, the present application provides a further structural diagram of a data transmission apparatus. The basis of FIG. 11 further includes: a second sending module 30000.
其中,第二发送模块30000设置为向局域网内的电子设备发送所述媒体输出设备的设备信息,其中设备信息至少包括媒体输出设备的物理地址。The second sending module 30000 is configured to send device information of the media output device to an electronic device in a local area network, where the device information includes at least a physical address of the media output device.
在本实施例中,第二发送模块30000具体设置为:实时或周期性向局域网内的电子设备发送媒体输出设备的设备信息。或者,接收局域网内的电子设备的检测请求,依据检测请求向局域网内的电子设备发送媒体输出设备的设备信息。In this embodiment, the second sending module 30000 is specifically configured to: send the device information of the media output device to the electronic device in the local area network in real time or periodically. Or receiving a detection request of the electronic device in the local area network, and transmitting the device information of the media output device to the electronic device in the local area network according to the detection request.
需要说明的是,本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。对于装置类实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。It should be noted that each embodiment in the specification is described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same similar parts between the embodiments are referred to each other. can. For the device type embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。Finally, it should also be noted that in this context, relational terms such as first and second are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities. There is any such actual relationship or order between operations. Furthermore, the term "comprises" or "comprises" or "comprises" or any other variations thereof is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device that comprises a plurality of elements includes not only those elements but also Other elements, or elements that are inherent to such a process, method, item, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.
以上对本申请所提供的一种数据传输方法及装置进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。
The data transmission method and apparatus provided by the present application are described in detail above. The principles and implementation manners of the application are described in the specific examples. The description of the above embodiments is only used to help understand the method of the present application. And the core ideas of the present invention; at the same time, those skilled in the art, according to the idea of the present application, there will be changes in the specific embodiments and application scopes. In summary, the contents of this specification should not be construed as limits.
Claims (11)
- 一种数据传输方法,其特征在于,应用于移动终端,所述方法包括:A data transmission method, which is applied to a mobile terminal, and the method includes:检测与所述移动终端处于同一局域网下的符合预设条件的媒体输出设备,在检测到的媒体输出设备中确定至少一个媒体输出设备作为目标媒体输出设备;Detecting a media output device that meets a preset condition under the same local area network as the mobile terminal, and determining at least one media output device as the target media output device in the detected media output device;获取所述目标媒体输出设备的设备信息,所述设备信息至少包括所述目标媒体输出设备的物理地址;利用所述设备信息中包含的目标媒体输出设备的物理地址向所述目标媒体输出设备发送通信连接请求以与所述目标媒体输出设备建立数据传输链路;其中,与所述目标媒体输出设备建立的数据传输链路用于传输数据,且保持持续连接状态;Acquiring device information of the target media output device, where the device information includes at least a physical address of the target media output device, and sending, by using a physical address of the target media output device included in the device information, to the target media output device a communication connection request to establish a data transmission link with the target media output device; wherein a data transmission link established with the target media output device is used to transmit data and maintain a persistent connection state;当确定需要传输数据时,获取待传输的第一数据,利用已建立的与目标媒体输出设备对应的数据传输链路向所述目标媒体输出设备发送所述第一数据,以使得所述目标媒体输出设备在接收到所述第一数据后输出所述第一数据。When it is determined that the data needs to be transmitted, acquiring the first data to be transmitted, and transmitting the first data to the target media output device by using the established data transmission link corresponding to the target media output device, so that the target media The output device outputs the first data after receiving the first data.
- 根据权利要求1所述的方法,其特征在于,所述检测与所述移动终端处于同一局域网下的符合预设条件的媒体输出设备包括:The method according to claim 1, wherein the detecting the media output device that meets the preset condition under the same local area network as the mobile terminal comprises:检测与所述移动终端处于同一局域网下的电子设备,判断检测得到的所述电子设备是否为具有预设标识的通用即插即用UPNP设备,获取第一判断结果;Detecting, by the electronic device in the same local area network as the mobile terminal, whether the detected electronic device is a universal plug and play UPNP device with a preset identifier, and obtaining a first determination result;当所述第一判断结果表明所述电子设备为具有预设标识的UPNP设备时,则确定检测到符合预设条件的媒体输出设备。When the first determination result indicates that the electronic device is a UPNP device having a preset identifier, it is determined that the media output device that meets the preset condition is detected.
- 根据权利要求2所述的方法,其特征在于,当所述第一判断结果表明所述电子设备为具有预设标识的UPNP设备时,在确定检测到符合预设条件的媒体输出设备之前,所述方法还包括:The method according to claim 2, wherein, when the first determination result indicates that the electronic device is a UPNP device having a preset identifier, before determining that the media output device meeting the preset condition is detected, The method also includes:判断检测得到的与所述移动终端处于同一局域网下的电子设备是否为支持预设媒体传输协议的电子设备,获取第二判断结果; Determining whether the detected electronic device in the same local area network as the mobile terminal is an electronic device supporting a preset media transmission protocol, and acquiring a second determination result;当所述第二判断结果表明所述电子设备为支持预设媒体传输协议的电子设备时,获取检测到的UPNP设备的物理地址以及支持预设媒体传输协议的电子设备的物理地址;When the second determination result indicates that the electronic device is an electronic device supporting a preset media transmission protocol, acquiring a physical address of the detected UPNP device and a physical address of the electronic device supporting the preset media transmission protocol;比较所述UPNP设备的物理地址与所述支持预设媒体传输协议的电子设备的物理地址是否相同,如果相同,则确定检测到符合预设条件的媒体输出设备。Comparing whether the physical address of the UPNP device is the same as the physical address of the electronic device supporting the preset media transmission protocol, and if they are the same, determining to detect the media output device that meets the preset condition.
- 根据权利要求1所述的方法,其特征在于,所述确定需要传输数据包括:The method according to claim 1, wherein said determining that data needs to be transmitted comprises:当检测到预设的用户操作时,则确定需要传输数据;其中,所述预设的用户操作包括预设的按键输入操作、甩动操作或者预设手势输入操作。When a preset user operation is detected, it is determined that data needs to be transmitted; wherein the preset user operation includes a preset key input operation, a tilt operation, or a preset gesture input operation.
- 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:保存获取的所述目标媒体输出设备的设备信息;Saving the obtained device information of the target media output device;当确定需要传输数据且判断与所述目标媒体输出设备对应的数据传输链路断开时,利用保存的所述目标媒体输出设备的设备信息重新建立数据传输链路,利用重新建立的数据传输链路向所述目标媒体输出设备发送待传输的第二数据。When it is determined that data needs to be transmitted and it is determined that the data transmission link corresponding to the target media output device is disconnected, the saved data transmission link is re-established by using the saved device information of the target media output device, and the re-established data transmission chain is utilized. The road sends the second data to be transmitted to the target media output device.
- 根据权利要求1所述的方法,其特征在于,所述利用已建立的与目标媒体输出设备对应的数据传输链路向所述目标媒体输出设备发送所述第一数据包括:The method according to claim 1, wherein the transmitting the first data to the target media output device by using the established data transmission link corresponding to the target media output device comprises:利用已建立的与目标媒体输出设备对应的数据传输链路向所述目标媒体输出设备发送待传输的第一数据的数据内容;或者,Transmitting, by the established data transmission link corresponding to the target media output device, the data content of the first data to be transmitted to the target media output device; or利用已建立的与目标媒体输出设备对应的数据传输链路向所述目标媒体输出设备发送待传输的第一数据的地址信息,以使所述目标媒体输出设备利用所述第一数据的地址信息获取第一数据。Transmitting address information of the first data to be transmitted to the target media output device by using the established data transmission link corresponding to the target media output device, so that the target media output device utilizes address information of the first data Get the first data.
- 一种数据传输方法,其特征在于,应用于媒体输出设备,所述方法包括: A data transmission method is characterized in that it is applied to a media output device, and the method includes:接收移动终端发送的通信连接请求以与所述移动终端建立数据传输链路;其中,与所述目标媒体输出设备建立的数据传输链路用于传输数据,且保持持续连接状态;所述媒体输出设备为所述移动终端检测并确定的与所述移动终端处于同一局域网的符合预设条件的媒体输出设备中的一个目标媒体输出设备;所述通信连接请求为所述移动终端利用获取的所述媒体输出设备的设备信息向所述媒体输出设备发送的,用于实现建立所述移动终端与所述媒体输出设备之间数据传输链路的请求;Receiving a communication connection request sent by the mobile terminal to establish a data transmission link with the mobile terminal; wherein a data transmission link established with the target media output device is used for transmitting data and maintaining a continuous connection state; the media output The device is a target media output device in the media output device that is in the same local area network as the mobile terminal is detected and determined by the mobile terminal; the communication connection request is used by the mobile terminal to obtain the a device information sent by the media output device to the media output device, configured to implement a request for establishing a data transmission link between the mobile terminal and the media output device;利用所述数据传输链路接收所述移动终端发送的第一数据,并在接收到所述第一数据后输出所述第一数据。Receiving, by the data transmission link, first data sent by the mobile terminal, and outputting the first data after receiving the first data.
- 根据权利要求7所述的方法,其特征在于,所述接收到所述第一数据后输出所述第一数据包括:The method according to claim 7, wherein the outputting the first data after receiving the first data comprises:接收到所述第一数据的数据内容,直接输出所述第一数据的数据内容;或者,Receiving the data content of the first data, directly outputting the data content of the first data; or接收到所述第一数据的地址信息,利用所述第一数据的地址信息获取第一数据进行输出。Receiving the address information of the first data, and acquiring the first data by using the address information of the first data for output.
- 一种数据传输装置,其特征在于,应用于移动终端,所述装置包括:A data transmission device is characterized in that it is applied to a mobile terminal, and the device includes:检测模块,设置为检测与所述移动终端处于同一局域网下的符合预设条件的媒体输出设备;a detecting module, configured to detect a media output device that meets a preset condition under the same local area network as the mobile terminal;确定模块,设置为在所述检测模块检测到的媒体输出设备中确定至少一个媒体输出设备作为目标媒体输出设备;a determining module, configured to determine at least one media output device as a target media output device in the media output device detected by the detecting module;第一获取模块,设置为获取所述目标媒体输出设备的设备信息;其中所述设备信息至少包括所述目标媒体输出设备的物理地址;a first acquiring module, configured to acquire device information of the target media output device, where the device information includes at least a physical address of the target media output device;第一数据传输链路建立模块,设置为利用所述设备信息中包含的目标媒体输出设备的物理地址向所述目标媒体输出设备发送通信连接请求以与所述目标媒体输出设备建立数据传输链路;其中,与所述目标媒体输出设备建立的数据传输链路用于传输数据,且保持持续连接状态; a first data transmission link establishing module configured to send a communication connection request to the target media output device by using a physical address of the target media output device included in the device information to establish a data transmission link with the target media output device Wherein the data transmission link established with the target media output device is used to transmit data and maintain a continuous connection state;第二获取模块,设置为获取待传输的第一数据;a second acquiring module, configured to acquire first data to be transmitted;第一发送模块,设置为利用所述第一数据传输链路建立模块建立的与目标媒体输出设备对应的数据传输链路向所述目标媒体输出设备发送所述第一数据,以使得所述目标媒体输出设备在接收到所述第一数据后输出所述第一数据。a first sending module, configured to send the first data to the target media output device by using a data transmission link established by the first data transmission link establishing module and corresponding to the target media output device, so that the target The media output device outputs the first data after receiving the first data.
- 一种数据传输装置,其特征在于,应用于媒体输出设备,所述装置包括:A data transmission device, which is applied to a media output device, the device comprising:第一接收模块,设置为接收移动终端发送的通信连接请求以与所述移动终端建立数据传输链路;其中,与所述目标媒体输出设备建立的数据传输链路用于传输数据,且保持持续连接状态;所述媒体输出设备为所述移动终端检测并确定的与所述移动终端处于同一局域网的符合预设条件的媒体输出设备中的一个目标媒体输出设备;所述通信连接请求为所述移动终端利用获取的所述媒体输出设备的设备信息向所述媒体输出设备发送的,用于实现建立所述移动终端与所述媒体输出设备之间数据传输链路的通信连接请求;a first receiving module, configured to receive a communication connection request sent by the mobile terminal to establish a data transmission link with the mobile terminal; wherein a data transmission link established with the target media output device is used to transmit data, and is continued a connection state; the media output device is a target media output device in the media output device that is detected and determined by the mobile terminal and is in the same local area network as the mobile terminal, and the communication connection request is And transmitting, by the mobile terminal, the obtained device connection information of the media output device to the media output device, to implement a communication connection request for establishing a data transmission link between the mobile terminal and the media output device;第二数据传输链路建立模块,设置为依据所述设备信息与所述移动终端建立数据传输链路;a second data transmission link establishing module, configured to establish a data transmission link with the mobile terminal according to the device information;第二接收模块,设置为利用所述第二数据传输链路建立模块建立的数据传输链路接收所述移动终端发送的第一数据;a second receiving module, configured to receive, by using a data transmission link established by the second data transmission link establishing module, the first data sent by the mobile terminal;输出模块,设置为在接收到所述第一数据后输出所述第一数据。And an output module configured to output the first data after receiving the first data.
- 一种在其上记录有用于执行权利要求1-8中任一项所述方法的程序的计算机可读记录介质。 A computer readable recording medium having recorded thereon a program for performing the method of any one of claims 1-8.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310530269.6A CN103546575A (en) | 2013-10-30 | 2013-10-30 | Method and device for data transmission |
CN201310530269.6 | 2013-10-30 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2015062499A1 true WO2015062499A1 (en) | 2015-05-07 |
Family
ID=49969614
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2014/089777 WO2015062499A1 (en) | 2013-10-30 | 2014-10-29 | Data transmission method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN103546575A (en) |
WO (1) | WO2015062499A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105245581A (en) * | 2015-09-18 | 2016-01-13 | 北京金山安全软件有限公司 | Application program transmission method and device |
CN112954740A (en) * | 2021-02-03 | 2021-06-11 | 维沃移动通信有限公司 | Data sending method, data sending device, data receiving method, data receiving device and communication device |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103546575A (en) * | 2013-10-30 | 2014-01-29 | 乐视致新电子科技(天津)有限公司 | Method and device for data transmission |
CN105682182B (en) * | 2014-11-19 | 2019-05-31 | 中国移动通信集团公司 | A kind of discovery of equipment and equipment connection method, equipment and system |
CN104994079B (en) * | 2015-06-10 | 2018-09-07 | 网宿科技股份有限公司 | The treating method and apparatus of access request accelerates server |
CN105142007B (en) * | 2015-07-23 | 2018-09-04 | 深圳Tcl数字技术有限公司 | Control method, multi-screen interactive equipment between multi-screen interactive equipment and system |
CN105430482A (en) * | 2015-09-29 | 2016-03-23 | 合一网络技术(北京)有限公司 | Multi-screen interaction method and terminal equipment |
CN106488280A (en) * | 2016-06-30 | 2017-03-08 | 深圳市美贝壳科技有限公司 | Smart machine and the method for mobile terminal projection simultaneous display |
CN106375838A (en) * | 2016-06-30 | 2017-02-01 | 深圳市美贝壳科技有限公司 | Method for projecting to multiple smart devices through mobile terminal |
CN108289241B (en) * | 2016-09-29 | 2021-05-21 | 努比亚技术有限公司 | Wireless projection device, system and method |
CN107820103A (en) * | 2017-10-16 | 2018-03-20 | 西安万像电子科技有限公司 | The connection method of image transceiver, control device and system |
CN109144449A (en) * | 2018-08-20 | 2019-01-04 | 西安万像电子科技有限公司 | A kind of management method and device of transmission link |
CN110224753B (en) * | 2019-06-25 | 2021-06-15 | Oppo广东移动通信有限公司 | Wireless communication method and related product |
CN110392423B (en) * | 2019-06-28 | 2022-02-11 | 西安万像电子科技有限公司 | Data transmission method, system and equipment |
CN111050417B (en) * | 2019-12-27 | 2021-09-03 | 咻享智能(深圳)有限公司 | Wireless Internet of things equipment control method and related device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102420876A (en) * | 2012-01-06 | 2012-04-18 | 重庆国虹科技发展有限公司 | Active peer-to-peer file transmission method for android-based intelligent mobile terminal |
CN102711175A (en) * | 2012-05-16 | 2012-10-03 | 中兴通讯股份有限公司南京分公司 | Method and device for transmitting data |
CN102982826A (en) * | 2012-11-27 | 2013-03-20 | 广东欧珀移动通信有限公司 | Method and device for searching and selecting blue-ray player |
CN103428559A (en) * | 2013-08-19 | 2013-12-04 | 乐视致新电子科技(天津)有限公司 | Data display method, mobile terminal and play device |
CN103546575A (en) * | 2013-10-30 | 2014-01-29 | 乐视致新电子科技(天津)有限公司 | Method and device for data transmission |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101520803A (en) * | 2009-03-18 | 2009-09-02 | 宇龙计算机通信科技(深圳)有限公司 | File sharing system and method between PC terminal and mobile terminal |
CN102118499A (en) * | 2010-12-31 | 2011-07-06 | 深圳市同洲软件有限公司 | Method, device and system for controlling video play of display terminal by mobile terminal |
-
2013
- 2013-10-30 CN CN201310530269.6A patent/CN103546575A/en active Pending
-
2014
- 2014-10-29 WO PCT/CN2014/089777 patent/WO2015062499A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102420876A (en) * | 2012-01-06 | 2012-04-18 | 重庆国虹科技发展有限公司 | Active peer-to-peer file transmission method for android-based intelligent mobile terminal |
CN102711175A (en) * | 2012-05-16 | 2012-10-03 | 中兴通讯股份有限公司南京分公司 | Method and device for transmitting data |
CN102982826A (en) * | 2012-11-27 | 2013-03-20 | 广东欧珀移动通信有限公司 | Method and device for searching and selecting blue-ray player |
CN103428559A (en) * | 2013-08-19 | 2013-12-04 | 乐视致新电子科技(天津)有限公司 | Data display method, mobile terminal and play device |
CN103546575A (en) * | 2013-10-30 | 2014-01-29 | 乐视致新电子科技(天津)有限公司 | Method and device for data transmission |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105245581A (en) * | 2015-09-18 | 2016-01-13 | 北京金山安全软件有限公司 | Application program transmission method and device |
CN105245581B (en) * | 2015-09-18 | 2018-09-11 | 北京金山安全软件有限公司 | Application program transmission method and device |
CN112954740A (en) * | 2021-02-03 | 2021-06-11 | 维沃移动通信有限公司 | Data sending method, data sending device, data receiving method, data receiving device and communication device |
Also Published As
Publication number | Publication date |
---|---|
CN103546575A (en) | 2014-01-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2015062499A1 (en) | Data transmission method and device | |
US9544933B2 (en) | Method and apparatus for discovering device based on location information | |
KR101780637B1 (en) | Connection status prompting method and device | |
US8718638B2 (en) | Device capable of notifying operation state change thereof through network and communication method of the device | |
US9826021B2 (en) | Communication apparatus and method for controlling the same | |
US20160164933A1 (en) | Discovery and management of synchronous audio or video streaming service to multiple sinks in wireless display system | |
WO2017076035A1 (en) | Multimedia data sending method based on mobile terminal, and mobile terminal | |
CN103596160B (en) | Method and device for data transmission | |
EP2858322A1 (en) | Method and terminal for sharing media stream | |
JP6632000B2 (en) | Audio / video broadcast content playback handover method and corresponding device | |
US20090240785A1 (en) | Information Processing Unit, Information Playback Unit, Information Processing Method, Information Playback Method, Information Processing System and Program | |
US9992805B2 (en) | Apparatus for displaying images and driving method thereof, mobile terminal and driving method thereof | |
CN103702175A (en) | Multi-screen interactive method and multi-screen interactive device | |
WO2018107593A1 (en) | Method and device for sharing file between different terminals | |
CN103648015A (en) | Data display method and apparatus | |
CN109413759B (en) | Method and equipment for wireless connection | |
CN103856374A (en) | Data transmission method, terminal and home interconnected system | |
US20170118276A1 (en) | Display apparatus and control method thereof | |
US10912013B2 (en) | Communication apparatus, control method, and storage medium | |
WO2016150191A1 (en) | Data sharing method and device | |
WO2015062526A1 (en) | Wireless login-based remote control method and apparatus | |
WO2015062500A1 (en) | Remote control apparatus and smart television | |
WO2015165415A1 (en) | Method and apparatus for playing audio data | |
KR102197851B1 (en) | Method and apparatus for discovery target in device-to-device direct communication | |
WO2017092323A1 (en) | Main control device, playing device and data transmission method therefor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 14857005 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: 14857005 Country of ref document: EP Kind code of ref document: A1 |