WO2015096038A1 - 一种媒体数据传输方法和设备 - Google Patents

一种媒体数据传输方法和设备 Download PDF

Info

Publication number
WO2015096038A1
WO2015096038A1 PCT/CN2013/090340 CN2013090340W WO2015096038A1 WO 2015096038 A1 WO2015096038 A1 WO 2015096038A1 CN 2013090340 W CN2013090340 W CN 2013090340W WO 2015096038 A1 WO2015096038 A1 WO 2015096038A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
frequency band
receiving device
sending device
wireless network
Prior art date
Application number
PCT/CN2013/090340
Other languages
English (en)
French (fr)
Inventor
单振威
Original Assignee
华为终端有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为终端有限公司 filed Critical 华为终端有限公司
Priority to CN201380070424.9A priority Critical patent/CN104919764B/zh
Priority to PCT/CN2013/090340 priority patent/WO2015096038A1/zh
Priority to US15/107,084 priority patent/US10142388B2/en
Priority to EP13900352.9A priority patent/EP3076609B1/en
Publication of WO2015096038A1 publication Critical patent/WO2015096038A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • H04L65/762Media network packet handling at the source 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/64Hybrid switching systems
    • H04L12/6418Hybrid transport
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/65Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a media data transmission method and device.
  • WiGig Wireless Gigabit
  • WiGig Wireless Gigabit
  • the frequency band corresponding to WiGig is 60 GHz
  • the frequency band corresponding to 802.11 ⁇ is 2.4 GHz.
  • the user terminal or the AP will switch to a frequency band with a slower transmission speed but a longer transmission distance, such as 2.4 GHz; and when the user terminal is closer to the AP, , the user terminal or AP will switch to the 60 GHz band to obtain a higher connection rate.
  • the 2.4 GHz band refers to a frequency range around 2.4 GHz. Specifically, in China, the United States, and Europe, the frequency ranges from 2.400 to 2.4835 GHz, and in Japan refers to the frequency range of 2.471 to 2.497 GHz.
  • the 5 GHz band refers to the frequency range around 5 GHz, which refers to 5.85-5.925 GHz in the United States and 5.855-5.925 GHz in Europe.
  • the 60 GHz band generally refers to the 56 GHz-66 GHz free spectrum, which varies from country to country.
  • the coding mode used for transmitting the media data is determined according to a standard protocol, and the subsequent coding mode is not changed even if it is switched to another wireless network.
  • the method of determining the encoding method lacks flexibility.
  • the embodiment of the invention provides a media data transmission method and device, which can flexibly select a coding mode.
  • the first aspect provides a media data transmission method, where the sending device and the receiving device of the media data are currently located in the same wireless network, and the method includes:
  • the transmitting device acquires a frequency band of the wireless network
  • the sending device determines whether the frequency band of the wireless network meets the set condition, and if yes, sets the media data encoding mode of the sending device to be uncompressed, and the sending device sends the receiving device to the receiving device Send uncompressed media data;
  • the media data coding mode of the sending device is set to be compressed, and the sending device sends the compressed media data to the receiving device.
  • the method before the acquiring, by the sending device, the frequency band of the wireless network, the method further includes:
  • the transmitting device uses one of the plurality of available frequency bands to perform media data transmission; the sending device acquires information about the switching of the transmission mode, and determines whether to switch the wireless network according to the information of the switching mode of the transmission mode;
  • the wireless network that performs data transmission is switched to the wireless network of the other of the plurality of available frequency bands;
  • the method further includes:
  • the sending device sends a notification message, or carries a notification identifier in the uncompressed media data, where the notification message or the notification identifier is used to notify the receiving device that the media data encoding mode of the sending device is set to Not compressed.
  • the set condition is: the frequency band is 5 GHz or 60 GHz.
  • the set condition is: a center of a frequency band of the switched wireless network The frequency is greater than the threshold.
  • the sending device sends the receiving device to the uncompressed
  • the media data specifically includes: the sending device sends the uncompressed media data to the receiving device by using a real-time transmission protocol.
  • a second aspect provides a method for transmitting data by an electronic device, where the method includes: using one of a plurality of available frequency bands for data transmission; Obtain information about the switching of the transmission mode;
  • the frequency band for performing the data transmission is switched to the other of the plurality of available frequency bands, and determining whether to compress the subsequently transmitted data according to the switched frequency band;
  • the compressed subsequent transmitted data, or the uncompressed subsequently transmitted data is transmitted to the receiving device according to the result of the confirmation.
  • determining whether to compress the transmitted data according to the switched frequency band includes:
  • the center frequency of the switched frequency band is lower than the center frequency of the frequency band before the handover, it is determined to compress the subsequently transmitted data
  • center frequency of the switched band is higher than the center frequency of the band before switching, it is determined that the data of the subsequent transmission is not compressed.
  • the transmitting the uncompressed subsequently transmitted data to the receiving device specifically, receiving the data by using a real-time transmission protocol
  • the device transmits uncompressed, subsequently transmitted data.
  • the method further includes: sending, by the sending device, the The receiving device sends a notification message, or the sending device carries the notification identifier in the data of the uncompressed subsequent transmission, where the notification message or the notification identifier is used to notify the receiving device and the data encoding mode setting of the sending device. Not compressed.
  • a third aspect of the embodiments of the present invention provides a data transmission method, where the sending device and the receiving device of the data are currently located in the same wireless network, and the method includes:
  • the receiving device determines an encoding mode of the data, and if the encoding mode of the data is not compressed, directly decoding the media data.
  • the determining, by the receiving device, the encoding manner of the data includes:
  • a fourth aspect of the embodiments of the present invention provides a sending device, where the receiving device is currently in the same wireless network, and the sending device includes: a transceiver and a processor;
  • the transceiver is configured to send uncompressed media data to the receiving device when the media data encoding mode of the sending device is set to be uncompressed; or: encode the media data of the sending device
  • the processor is configured to acquire a frequency band of the wireless network; determine whether the frequency band of the wireless network is a set frequency band, and if yes, The media data encoding mode of the sending device is set to be uncompressed; if the frequency band of the wireless network is not the set frequency band, the media data encoding mode of the sending device is set to be compressed.
  • the transceiver is further configured to: use one of a plurality of available frequency bands to perform media data transmission;
  • the processor is further configured to: before acquiring the frequency band of the wireless network, acquire information about the switching of the transmission mode, and determine, according to the information about the switching mode of the transmission mode, whether to switch the wireless network; if the result of the determination is to switch the transmission wireless network, Transmitting, by the wireless network performing data transmission, to a wireless network of another of the plurality of available frequency bands;
  • the obtaining the frequency band of the wireless network is specifically: the sending device acquires a frequency band of the switched wireless network.
  • the transceiver is further configured to determine, by the processor, When the frequency band of the wireless network is the set frequency band, sending a notification message to the receiving device;
  • the processor is further configured to: when determining that the frequency band of the wireless network is a set frequency band, carrying the notification identifier in the uncompressed media data;
  • the notification message or the notification identifier is used to notify the receiving device that the media data encoding mode of the sending device is set to be uncompressed.
  • the set frequency band is 5 GHz or 60 GHz.
  • the sending the uncompressed media data to the receiving device includes: transmitting, by using a real-time transmission protocol, uncompressed media data to the receiving device.
  • a fifth aspect provides a transmitting device, where the sending device includes a transceiver and a processor, and the transceiver is configured to: use one of a plurality of available frequency bands for data transmission; and compress the subsequent transmission according to the result of the confirmation. Data, or uncompressed, subsequently transmitted data is transmitted to the receiving device;
  • the processor is configured to: obtain information about a switching mode of the transmission mode; determine, according to the obtained information, whether to switch the transmission frequency band; when the acquired information meets the requirement of switching the transmission frequency band, switch the frequency band for performing data transmission to the multiple available
  • the other of the frequency bands determines whether to compress the subsequently transmitted data based on the switched frequency band.
  • determining, according to the switched frequency band, whether to compress the transmitted data includes: if the center frequency of the switched frequency band is lower than a center frequency of the frequency band before the switching, It is determined that the data of the subsequent transmission is compressed; if the center frequency of the switched frequency band is higher than the center frequency of the frequency band before the handover, it is determined that the data of the subsequent transmission is not compressed.
  • the transceiver is specifically configured to: transmit the uncompressed subsequently transmitted data to the receiving device by using a real-time transmission protocol.
  • the transceiver is further configured to determine, by the processor, that the frequency band of the wireless network is a set frequency band. Sending a notification message to the receiving device;
  • the processor is further configured to: when determining that the frequency band of the wireless network is a set frequency band, carrying the notification identifier in the uncompressed subsequently transmitted data;
  • the notification message or the notification identifier is used to notify the receiving device that the data encoding mode of the sending device is set to be uncompressed.
  • the sixth aspect provides a receiving device, where the receiving device and the sending device are located in the same wireless network, and the receiving device includes: a transceiver and a processor;
  • the transceiver is configured to receive data sent by the sending device
  • the processor is configured to determine a coding manner of the data, if the data is encoded The data is decoded directly without compression.
  • the determining, by the processor, the coding manner of the data includes:
  • Reading a notification identifier in the data determining an encoding manner of the data according to the notification identifier
  • the embodiment of the invention provides a media data transmission method and device.
  • the transmitting device does not compress the transmitted media data, but for a wireless network of other frequency bands than the set frequency band, The media data is compressed, and the solution does not need to compress all the media data transmitted in the wireless network, but selects compression or non-compression according to the frequency band of the wireless network, and the flexibility is higher.
  • FIG. 1 is a flow chart of a media data transmission method according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of a method for transmitting data of an electronic device according to Embodiment 2 of the present invention
  • FIG. 3 is a third embodiment of the method of the present invention.
  • FIG. 4 is a flowchart of a media data transmission method according to Embodiment 4 of the method of the present invention
  • FIG. 5 is a flowchart of a media data transmission method according to Embodiment 5 of the method of the present invention
  • FIG. 6 is a flowchart of a method for transmitting media data according to Embodiment 6 of the method of the present invention;
  • FIG. 4 is a flowchart of a media data transmission method according to Embodiment 4 of the method of the present invention
  • FIG. 5 is a flowchart of a media data transmission method according to Embodiment 5 of the method of the present invention
  • FIG. 6 is a flowchart of
  • FIG. 7 is a flowchart of a method for transmitting media data according to Embodiment 7 of the method of the present invention
  • FIG. 8 is a flowchart of Embodiment 8 of the method of the present invention
  • FIG. 9 is a flowchart of a method for transmitting media data according to Embodiment 9 of the present invention
  • FIG. 10 is a flowchart of a method for transmitting media data according to Embodiment 10 of the method of the present invention
  • 11 is a schematic structural diagram of a transmitting device according to Embodiment 11 of the present invention
  • FIG. 12 is a schematic diagram of Embodiment 12 of the present invention. Transmitting a schematic structure of the device
  • FIG. 13 is a schematic structural diagram of a receiving apparatus according to Embodiment 13 of the present invention.
  • An embodiment of the present invention provides a media data transmission method, where the media data includes at least one of the following: text data, audio data, video data, and picture data.
  • the sending device and receiving device of the media data are currently located on the same wireless network.
  • the premise of the implementation of the method is that the transmitting device and the receiving device of the media data are currently located in the same wireless network, and the wireless network includes a 2G, 3G or 4G or 5G network of a wireless local area network or a mobile telephone network.
  • the mobile phone network can refer to the following embodiments.
  • the transmitting device and the receiving device of the media data know that the same local area network can be located in a plurality of ways, for example, two devices can be known in the process of accessing the local area network. Specifically, if the sending device and the receiving device establish a local area network through direct connection, some information such as device identification needs to be exchanged during the negotiation process. After the labels are exchanged, both the sending device and the receiving device can know that the other party is in the same wireless network as the receiving device. In the LAN.
  • the sending device or the receiving device may send an inquiry message to the AP, or one of the two devices passes the single service discovery protocol (SSDP, Simple Service Discovery Protocol) to another device. Or an Address Resolution Protocol (ARP) sends an inquiry message to exchange LAN information of each other, and determines whether the two devices are in the same WLAN according to the result of the exchange.
  • SSDP single service discovery protocol
  • ARP Address Resolution Protocol
  • the access to the wireless local area network may refer to a 2.4G wireless local area network, or a 5G wireless local area network, or a 60G wireless local area network, and is not limited to the wireless local area network of the currently-exemplified frequency band.
  • the trigger condition of the method is that the sending device accesses the wireless local area network
  • the following "transmitting device accessing the local area network” includes at least one of the following: the transmitting device accesses the wireless local area network for the first time, and the transmitting device Switching from one wireless LAN to another. That is to say, the method can be applied to the case where the transmitting device first accesses the wireless local area network, or can be applied only to the sending Sending a device to a wireless LAN to switch to another wireless LAN, you can also use the sending device to access the wireless LAN for the first time and switch the wireless LAN.
  • the method can be executed immediately, or can wait until the transmitting device needs to send the media data to the receiving device before executing the media data.
  • the method includes:
  • Step S1 The transmitting device acquires the frequency band of the wireless network; it should be understood that the wireless network may be a wireless local area network, or may be a 2G/3G/4G (LTE) or a next-generation mobile communication network of the mobile phone network.
  • LTE 2G/3G/4G
  • the execution device of the method that is, the sending device (which may also be referred to as a source) may be a site.
  • Site can also be an access point (AP).
  • the receiving device described later may be an access point AP or a station.
  • Site A and Site B uses Site A and Site B to represent two different sites. If Site A to Site B communicate directly, and Site A sends media data to Site B, Site A is the transmitting device and Site B is the receiving device; if Site A to Site B communicates through the access point, and Site A The media data is sent to the site B, and the path of the media data transmitted between the site A and the site B actually includes a segment of the site A to the access point, and a segment of the access point to the site B.
  • Site A is the transmitting device
  • the access point is the receiving device
  • Site B is the receiving device.
  • the access point may be a router, a gateway, or a mobile phone with a access point function, a portable computer, a tablet computer, a data card, a digital television, a set top box, etc.
  • the site may be a mobile phone, a tablet computer, a data card, or a data source. Card, digital TV and other equipment.
  • the sending device acquires the frequency band of the wireless network, which may be the frequency band obtained by the sending device when accessing the network.
  • the transmitting device may send the signal to other devices that are located on the same wireless network as the sending device after accessing the network. Request a message to get it. If the sending device is directly connected to the receiving device, the other device here is the receiving device. If the sending device communicates with the receiving device through the AP, the external device here may be an AP in addition to the receiving device.
  • the sending device acquires the frequency band of the wireless network, and the specific operation may be: the sending device scans the available frequency band by sending a pointer request (probe requeset) or determines a usable frequency band by using a beacon frame sent by the receiving device, and then sends the frequency band.
  • the device selects an available frequency band and
  • the receiving device establishes a wireless connection, and after the connection is successfully established, the transmitting device learns the current wireless network frequency band.
  • Step S2 The sending device determines whether the frequency band of the wireless network meets the set condition; wherein the set condition may specifically refer to the set frequency band, but is not limited to only the set frequency band.
  • Step S3 If the frequency band of the wireless network meets the set condition, the media data encoding mode of the sending device is set to be uncompressed, and the sending device sends the uncompressed media data to the receiving device; wherein, the setting is satisfied in step S3.
  • the condition may be that the set frequency band is 5 GHz or 60 GHz. As the technology develops, the set frequency band will change. The role of the set frequency band means that the data has more efficient transmission efficiency in the frequency band. , can not be compressed transmission.
  • the media encoding mode of the sending device When the media encoding mode of the sending device is set to be uncompressed, if the media data collected by the transmitting device in real time can be directly sent by means of no compression; if the transmitting device obtains compressed media data, the media data is decompressed, The decompressed data is re-encoded and sent to the receiving device.
  • Step S4 If the frequency band of the wireless network does not meet the set condition, the media data encoding mode of the sending device is set to be compressed, and the sending device sends the compressed media data to the receiving device.
  • the compressed media data may be: selecting an appropriate compression method according to the hardware capability of the sending device, or selecting an appropriate compression method according to the existing compression efficiency, or selecting a specific compression method, such as H.264 or H.265, etc., but not limited to the compression method of the current example.
  • a media data transmission method is provided by the embodiment of the present invention.
  • the transmitting device obtains the frequency band of the wireless network, and the sending device determines whether the frequency band of the wireless network is a set frequency band. If the frequency band of the wireless network is the set frequency band, the transmitting device is sent.
  • the media data encoding mode is set to be uncompressed, and the transmitting device sends the uncompressed media data to the receiving device. Due to the set frequency band network, the transmission rate is very high, and the transmitting device directly transmits the uncompressed data to the receiving device, which reduces the delay caused by the compression and reduces the resources consumed by the transmitting device due to the compressed data. Reduce the resources that the receiving device needs to decompress.
  • the method further includes:
  • Step S01 the sending device uses one of the plurality of available frequency bands to perform media data transmission
  • Step S02 the sending device acquires information about the switching of the transmission mode, and according to the transmission mode.
  • the information of the handover determines whether to switch the wireless network;
  • Step S03 If the result of the determination is to switch the transmission wireless network, the wireless network that performs data transmission is switched to the wireless network of the other of the multiple available frequency bands;
  • the transmitting device obtains the frequency band of the wireless network, and the transmitting device obtains the frequency band of the switched wireless network.
  • the method further includes:
  • Step S5 the sending device sends a notification message, or carries a notification identifier in the uncompressed media data, where the notification message or the notification identifier is used to notify the receiving device of the media data encoding of the sending device.
  • the mode is set to not compress.
  • the sending device may send the notification message before sending the notification message, or may send the notification message after the media data is sent.
  • the sending device sends the uncompressed media data to the receiving device, which specifically includes:
  • the transmitting device transmits the uncompressed media data to the receiving device by using a real-time transmission protocol; but the uncompressed media data is not limited to the currently described real-time transmission protocol, and may be other protocols.
  • the method further includes: Step S6A, the sending device accesses the wireless network for the first time; or
  • Step S6B The sending device switches from the previous wireless network to the current wireless network.
  • the sending device accesses the wireless network for the first time in step S6A. It can be understood that the transmitting device has not accessed the wireless network before, and is currently accessing the wireless network for the first time.
  • the conditions can be set as follows:
  • the frequency band is 5 GHz or 60 GHz.
  • the setting condition is: the center frequency of the frequency band of the switched wireless network is greater than a threshold.
  • the threshold is determined according to a maximum transmission rate that the transmitting device or the receiving device hardware can process.
  • the embodiment of the invention further provides a method for transmitting data by an electronic device, as shown in FIG. 2, the party The law includes:
  • Step A1 using one of a plurality of available frequency bands for data transmission;
  • the transmitting device may be the first time to access the wireless network. When there are multiple wireless networks with available frequency bands, the transmitting device may select an available frequency band for data transmission.
  • the data referred to in step A1 may be media data or other data.
  • Step A2 obtaining information about the switching of the transmission mode
  • the information about the obtained transmission mode switching may be determined according to the signal strength between the sending device and the receiving device, or the distance, etc., to determine whether the available frequency band can be switched.
  • Step A3 determining, according to the obtained information, whether to switch the transmission frequency band
  • Step A4 When the acquired information meets the requirement of switching the transmission frequency band, the frequency band for performing the data transmission is switched to the other of the plurality of available frequency bands, and determining whether to subsequently transmit the data according to the switched frequency band. Compression
  • Step A5 The compressed subsequent transmitted data or the uncompressed subsequently transmitted data is transmitted to the receiving device according to the result of the confirmation.
  • the higher the frequency band of the available wireless network the faster the transmission rate. Therefore, the data can be transmitted without compression.
  • the available wireless network with a lower frequency band has a relatively low transmission rate, and can be compressed. , for transmission.
  • a method for transmitting data by an electronic device by using one of a plurality of available frequency bands for data transmission, and when the acquired information meets the requirement of switching a transmission frequency band, switching the frequency band for performing data transmission to The other one of the plurality of available frequency bands determines whether to compress the subsequently transmitted data according to the switched frequency band, which reduces resources consumed by the receiving device to be decompressed, so that the media data transmission has higher efficiency.
  • determining whether to compress the transmitted data according to the switched frequency band, as described in step A4, includes:
  • the center frequency of the switched frequency band is lower than the center frequency of the frequency band before the handover, it is determined to compress the subsequently transmitted data
  • center frequency of the switched band is higher than the center frequency of the band before switching, it is determined that the data of the subsequent transmission is not compressed.
  • the center frequency of the switched band is lower than the center frequency of the band before switching, then it can be recognized In order to reduce the data transmission rate in the switched wireless network, it is not suitable for direct uncompressed transmission. Therefore, the data can be compressed and transmitted. Similarly, if the center frequency of the switched frequency band is higher than the center frequency of the frequency band before the handover, then The data transmission rate in the switched wireless network is increased, and it is suitable for direct uncompressed transmission.
  • the transmitting the uncompressed subsequently transmitted data to the receiving device is specifically: transmitting the uncompressed subsequently transmitted data to the receiving device by using a real-time transmission protocol.
  • the method further includes:
  • the sending device sends a notification message to the receiving device, or the sending device carries the notification identifier in the data of the uncompressed subsequent transmission, where the notification message or the notification identifier is used to notify the receiving device and the sending device
  • the data encoding method is set to be uncompressed.
  • the embodiment of the present invention provides a data transmission method. As shown in FIG. 3, the data sending device and the receiving device are currently located in the same wireless network, and the method includes:
  • Step Q1 The receiving device receives data sent by the sending device.
  • the receiving device may be an access point AP or a station.
  • the access point may be a router, a gateway, or a mobile phone with a access point function, a portable computer, a tablet computer, a data card, a digital television, a set top box, etc.
  • the site may be a mobile phone, a tablet computer, a data card, a data card, or the like. Digital TV and other equipment.
  • Step Q2 The receiving device determines an encoding manner of the data, and if the encoding manner of the data is not compressed, directly decoding the data.
  • the specific operation of decoding the data can refer to the prior art.
  • the receiving device determines that the encoding mode of the data is compression, and the specific operations of decompressing, decoding, decompressing and decoding the data may refer to the prior art, which is not described in detail herein.
  • a data transmission method is provided by the embodiment of the present invention.
  • the receiving device determines the encoding mode of the data. If the encoding mode of the data is not compressed, the data is directly decoded, thereby reducing the need for the receiving device to decompress and consume. Resources make data transmission more efficient.
  • the determining, by the receiving device, the encoding manner of the data includes: reading a notification identifier in the data, and determining, according to the notification identifier, an encoding manner of the data; or Reading a notification message sent by the sending device, and determining a coding manner of the data according to the notification message.
  • the encoding manner of the data when the notification identifier in the read data is empty, or the value is an agreed value, the encoding manner of the data may be uncompressed. Similarly, the encoding manner of the data may be compressed.
  • the embodiment of the present invention provides a media data transmission method, which is a preferred embodiment of the first and second embodiments.
  • the sending device and the receiving device are directly connected, and no AP is involved, and the sending device detects the signal. Intensity, or measuring the distance from the receiving device, further, the transmitting device requests access to the 5G/60G network.
  • the specific instructions are as follows:
  • the method includes:
  • Step 301 The sending device detects the signal strength of the 2.4G, 5G, and 60G frequency bands of the receiving device, and finds that the signal strength of the 5G, 60G frequency band is less than the set value; or, the sending device measures the distance between the receiving device (Sink) and the transmitting device, and the measured The distance is greater than 10m; therefore, the transmitting device selects the 2.4G network.
  • the sending device selects the 2.4G network to access the 2.4G wireless local area network for the first time, and can also switch to the 2.4G wireless local area network according to the measurement in step 301.
  • the signal strength in step 301 is expressed by a numerical value in units of dBm (full name: decibel relative to one milliwatt), and represents a decibel number expressed by one milliwatt.
  • dBm full name: decibel relative to one milliwatt
  • the following is a correspondence between dBm and signal grid number:
  • the signal strength is -40dBm to -50dBm, it represents the strongest value of the signal;
  • the signal strength is -50dBm to -60dBm, it is equivalent to the range of 5 signals;
  • the signal strength is - 60dbm to -70dBm represents the 4-frame signal display range; when the signal strength is -70dBm to -80dBm, it represents the 3-frame display of the strip signal;
  • the signal strength is -80dBm to -90dBm, it is the intensity range of the 2-frame signal; when the signal strength is -90 to -99 dBm is a 1 grid signal.
  • the description
  • step 302 and step 303 the sending device and the receiving device implement device and service discovery through wireless direct connection (Wi-Fi Direct).
  • Wi-Fi Direct wireless direct connection
  • Step 304 The sending device and the receiving device establish a connection through a wireless direct connection or a tunneled direct link setup (TDLS, Tunneled Direct Link Setup).
  • TDLS Tunneled Direct Link Setup
  • Step 305 The sending device and the receiving device perform capability negotiation, for example, to negotiate whether the receiving device supports H.264 and H.265 decoding.
  • the receiving device supports H.264 decoding as an example. Description.
  • the above steps 302 to 305 are operations of establishing a physical layer and a data link layer connection between the transmitting device and the receiving device.
  • steps 306 to 311 are to establish an application layer session connection between the sending device and the receiving device, including:
  • Step 306 and step 307 the sending device requests the receiving device to initiate establishment of a Real Time Streaming Protocol (RTSP) session.
  • RTSP Real Time Streaming Protocol
  • Step 308 and step 309 the receiving device initiates the establishment of the RTSP session, carries the wfd-presentation-url parameter, and the source end replies to the request.
  • Step 310 and step 311 the receiving device requests playback, and the sending device replies to the request, and starts.
  • the transmitting device acquires the frequency band after performing the operation of step 301, sets the media data encoding mode of the sending device to be compressed, and the transmitting device sends the compressed media data to the receiving device.
  • steps 312 to 314 illustrate that when the sending device finds that the network needs to be switched to the set frequency band network, the process of timely switching includes:
  • Step 312 to step 314, the sending device detects that the signal strength of the 5G/60G frequency band of the receiving device is greater than a set value, or the transmitting device detects that the distance between the sending device and the receiving device is less than 10 meters, and the sending device requests to access the 5G/60G network. , and the sending device is successfully accessed.
  • Step 315 When the sending device accesses the 5G/60G network, the media data encoding mode of the sending device is set to be uncompressed, the uncompressed data is packaged, and the data packet is identified as an uncompressed data packet in the packaged data packet, and Uncompressed packets are sent to the receiving device.
  • the sending device may send the notification message before sending the media data, or send the notification message after sending the media data, where the notification message or the notification identifier is used to notify the receiving device of the media data of the sending device.
  • the encoding mode is set to not compress.
  • Step 316 The receiving device receives the uncompressed data packet, determines that the media data is encoded without compression, and decodes the display data.
  • the receiving device determines that the encoding mode of the media data is not compressed, and specifically includes: Reading a notification identifier in the media data, determining, according to the notification identifier, that an encoding manner of the media data is determined to be uncompressed; or
  • a media data transmission method provided by an embodiment of the present invention, by measuring a signal strength of a set frequency band network; or acquiring one of a distance between a measured transmitting device and a receiving device (Sink); according to the measured setting
  • the frequency band network selected for access is selected; when accessing the set frequency band network, The uncompressed data is packed, and the packet is identified as an uncompressed packet in the packaged packet, and the uncompressed packet is sent to the receiving device.
  • the transmitting device directly transmits the uncompressed data to the receiving device, which reduces the delay caused by the compression, and reduces the resources consumed by the transmitting device due to the compressed data, and also reduces The receiving device needs to decompress the consumed resources.
  • the embodiment of the present invention provides a media data transmission method, which is a preferred embodiment of the first embodiment and the second embodiment.
  • the sending device (Source) and the receiving device (Sink) are directly connected, and the AP is not involved.
  • the signal strength is detected by the receiving device (Sink), or the distance from the receiving device is measured. Further, the receiving device (Sink) requests access to the 5G/60G network.
  • the method includes:
  • Step 401 The receiving device (Source) detects the signal strength of the 2.4G, 5G, and 60G frequency bands of the transmitting device, and finds that the signal strength of the 5G, 60G frequency band is less than a set value; or, the receiving device measures the distance between the receiving device and the sending device, and the measured The distance is greater than 10m; therefore, the receiving device selects the 2.4G network.
  • the sending device selects the 2.4G network to access the 2.4G wireless local area network for the first time, and can also switch to the 2.4G wireless local area network according to the measurement in step 301.
  • step 402 and step 403 the sending device and the receiving device implement device and service discovery through wireless direct connection (Wi-Fi Direct).
  • Step 404 The sending device and the receiving device establish a connection by using a wireless direct connection or a tunneled direct link setup (TDLS, Tunneled Direct Link Setup).
  • TDLS Tunneled Direct Link Setup
  • Step 405 The sending device and the receiving device perform capability negotiation, for example, to negotiate whether the receiving device supports H.264 and H.265 decoding.
  • the receiving device supports H.264 decoding as an example for subsequent description.
  • the above steps 402 to 405 are operations of establishing a physical layer and a data link layer connection between the transmitting device and the receiving device.
  • steps 406 to 411 are to establish an application layer session connection between the sending device and the receiving device, including:
  • Step 406 and step 407 the sending device requests the receiving device to initiate a real-time streaming protocol (RTSP, RTSP,
  • Real Time Streaming Protocol The establishment of a session.
  • Step 408 and step 409 the receiving device initiates the establishment of the RTSP session, carries the wfd-presentation-url parameter, and the source end replies to the request.
  • Step 410 and step 411 the receiving device requests playback, and the sending device replies to the request, and starts H.264 compression encoded media stream transmission.
  • the sending device determines that the frequency band of the wireless local area network is not the set frequency band, sets the media data encoding mode of the sending device to compression, and the sending device sends the compressed media data to the receiving device.
  • Step 412 The receiving device detects that the 5G/60G frequency band signal of the sending device is strong, or the distance between the sending device and the receiving device is less than 10 meters.
  • Step 413 and step 414 the receiving device requests access to the 5G/60G network, and receives a successful access response sent by the sending device.
  • sink requests access, source response, Sink and Source are both connected to the 5G/60G network.
  • Step 415 When the sending device accesses the 5G/60G network, the media data encoding mode of the sending device is set to be uncompressed, the uncompressed data is packaged, and the data packet is identified as an uncompressed data packet in the packaged data packet, and Uncompressed packets are sent to the receiving device.
  • Step 416 The receiving device receives the uncompressed data packet, determines that the media data is encoded without compression, and decodes the display data.
  • the transmitting device performs H.264 compression encoding transmission on the remaining and subsequent data in the video memory. See steps 401 to 411.
  • the media data transmission method provided by the embodiment of the present invention receives the distance between the transmitting device and the receiving device measured by the receiving device; when the distance is less than the set distance, selects the frequency band network that is set to access; When the frequency band network is fixed, the uncompressed data is packaged, and the data packet is identified as an uncompressed data packet in the packaged data packet, and the uncompressed data packet is sent to the receiving device. Since the transmission rate is very high for the set frequency band network, the transmitting device directly transmits the uncompressed data to the receiving device, which reduces the delay caused by the compression, and reduces the resources consumed by the transmitting device due to the compressed data, and also reduces The receiving device needs to decompress the consumed resources.
  • the embodiment of the present invention provides a media data transmission method, which is a preferred embodiment of the first embodiment and the second embodiment.
  • the receiving device detects the signal strength, or measures the distance from the receiving device.
  • the 5G/60G network is requested to be accessed by the sending device (Source). Specific instructions See below:
  • the method includes:
  • Step 501 The receiving device detects the signal strength of the 2.4G, 5G, and 60G frequency bands of the transmitting device, and finds that the signal strength of the 5G, 60G frequency band is less than a set value; or, the receiving device measures the distance between the receiving device and the sending device by more than 10m, and the sending device detects Or the above measured content is sent to the transmitting device.
  • Step 502 The sending device detects, according to the signal strength of the 2.4G, 5G, and 60G frequency bands of the transmitting device, that the signal strength of the 5G, 60G frequency band is less than the set value, or the receiving device measures that the distance between the receiving device and the sending device is greater than 10m, choose 2.4G network.
  • the subsequent steps 503 to 513 are the same as the steps 402 to 412 in the seventh embodiment, and are not described again.
  • Step 514 The receiving device notifies the source end by requesting a SetParameter()Action from the sending device, and the distance between the sending device and the receiving device is less than 10 meters.
  • Step 515 and step 516 the sending device receives the request sent by the receiving device, requesting access.
  • Step 517 When the sending device accesses the 5G/60G network, the uncompressed data is packaged, and the data packet is identified as an uncompressed data packet in the packaged data packet, and the uncompressed data packet is sent to the receiving device.
  • Step 518 the receiving device receives the uncompressed data packet, and decodes the display data.
  • the sending device If the receiving device detects that the distance from the sending device is greater than 10 meters, the sending device is notified to switch to the 2.4G network, and the sending device performs H.264 compression encoding transmission on the remaining data in the video memory. For details, refer to step 501 to step 512. .
  • the media data transmission method provided by the embodiment of the present invention receives the distance between the sending device and the receiving device measured by the receiving device sent by the receiving device; the distance between the transmitting device and the receiving device measured according to the received receiving device is less than When setting the distance, select the band network to access the setting; when accessing the set band network, package the uncompressed data, and identify the packet as an uncompressed packet in the packaged packet, which will not The compressed data packet is sent to the receiving device. Since the transmission rate is very high for the set frequency band network, the transmitting device directly transmits the uncompressed data to the receiving device, which reduces the delay caused by the compression, and reduces the resources consumed by the transmitting device due to the compressed data, and also reduces The receiving device needs to decompress the consumed resources.
  • the embodiment of the present invention provides a media data transmission method, which is a preferred embodiment of the first and second embodiments.
  • the source device detects the signal strength of the receiving device, or measures the distance from the receiving device.
  • the receiving device requests access to the 5G/60G network.
  • the method includes:
  • Step 601 The sending device (Source) detects the signal strength of the 2.4G, 5G, and 60G frequency bands of the receiving device, and finds that the signal strength of the 5G, 60G frequency band is less than the set value; or, the receiving device measures the distance between the receiving device and the sending device by more than 10m, and sends The device transmits the above content detected or measured to the receiving device.
  • Source detects the signal strength of the 2.4G, 5G, and 60G frequency bands of the receiving device, and finds that the signal strength of the 5G, 60G frequency band is less than the set value; or, the receiving device measures the distance between the receiving device and the sending device by more than 10m, and sends The device transmits the above content detected or measured to the receiving device.
  • Step 602 According to the signal strength of the 2.4G, 5G, and 60G frequency bands of the receiving device detected by the sending device in step 601, it is found that the signal strength of the 5G, 60G frequency band is less than the set value; or, the transmitting device measures the distance between the receiving device and the sending device is greater than 10m, The receiving device selects a 2.4G network.
  • the subsequent steps 603 to 612 are the same as the steps 402 to 411 in the fourth embodiment, and are not described again.
  • Step 613 The sending device detects that the signal strength of the 5G/60G frequency band of the receiving device is greater than a set value, or the transmitting device detects that the distance between the sending device and the receiving device is less than 10 meters.
  • Step 614 The sending device notifies the sink by requesting a SetParameter()Action from the receiving device. At the end, the distance between Source and Sink is less than 10 meters or the signal in 5G/60G band is stronger.
  • Steps 615 and 616 The receiving device device requests access to the 5G/60G network, and the receiving device successfully accesses.
  • Step 617 When the sending device accesses the 5G/60G network, the uncompressed data is packaged, and the data packet is identified as an uncompressed data packet in the packetized data packet, and the uncompressed data packet is sent to the receiving device.
  • Step 618 The receiving device receives the uncompressed data packet, and decodes the display data.
  • a media data transmission method provided by an embodiment of the present invention, by measuring a signal strength of a set frequency band network; or acquiring one of a distance between a measured transmitting device and a receiving device (Sink); according to the measured setting
  • the frequency band network selected for access is selected; when accessing the set frequency band network, The uncompressed data is packed, and the packet is identified as an uncompressed packet in the packaged packet, and the uncompressed packet is sent to the receiving device.
  • the transmitting device directly transmits the uncompressed data to the receiving device, which reduces the delay caused by the compression, and reduces the resources consumed by the transmitting device due to the compressed data, and also reduces The receiving device needs to decompress the consumed resources.
  • the embodiment of the present invention provides a media data transmission method, where an AP is included in the implementation of the method, and the location of the sink device and the AP in the solution is fixed, and the source device is removable.
  • the method includes:
  • Step 701 The sending device (Source) detects the signal strength of the 2.4G, 5G, and 60G frequency bands of the AP, and finds that the signal strength of the 5G, 60G frequency band is less than the set value; or, if the transmitting device measures the distance between the AP and the sending device by more than 10m, The device chooses to access the 2.4G network.
  • Source detects the signal strength of the 2.4G, 5G, and 60G frequency bands of the AP, and finds that the signal strength of the 5G, 60G frequency band is less than the set value; or, if the transmitting device measures the distance between the AP and the sending device by more than 10m, The device chooses to access the 2.4G network.
  • Step 702 The Sink device detects the signal strength of the AP or the distance from the AP (the detection means is similar to the source), and selects to access the 5G/60G or 2.4G network.
  • Step 703 Implement device and service discovery through SSDP or mDNS.
  • Step 704 The source and the sink perform capability negotiation, establish an RTSP session, and the Sink side requests to play, and the source end responds to the request, and then starts compression coding (the compression mode is not limited to H.264).
  • Step 705 The Sink decompresses and decodes the played media content.
  • Step 706 The source device detects that the signal of the 5G/60G band of the AP is strong or the distance from the AP is less than 10 meters, and the source device requests to access the 5G/60G network.
  • Step 707 The source end does not compress and encode the data, and directly transfers the uncompressed data in the video memory (the RCT may be packed into the uncompressed data, and the packed data is identified as uncompressed data in the header identifier) to be transmitted to the Sink.
  • the RCT may be packed into the uncompressed data, and the packed data is identified as uncompressed data in the header identifier
  • Step 708 If the AP detects that the Sink terminal accesses the 2.4G network, the AP compresses and packs the uncompressed media content, and identifies the compression coding mode in the packet header.
  • Step 709 the Sink decompresses and decodes the played media content.
  • Step 710 If the source device detects that the 5G/60G band signal of the AP is weak or the distance is greater than 10 meters, switch to the 2.4G network, and compress and encode the remaining and subsequent data in the video memory. For details, see steps 701 to 706. .
  • the media data transmission method when the source accesses the set frequency band network, the uncompressed data is packaged, and the data packet is identified as an uncompressed data packet in the packaged data packet, and the data packet is not compressed.
  • the compressed data packet is sent to the AP, and then compressed and forwarded by the AP to the Sink. Since the transmission rate is very high for the set frequency band network, the transmitting device directly transmits the uncompressed data to the receiving device, which reduces the delay caused by the compression, and reduces the resources consumed by the transmitting device due to the compressed data, and also reduces The receiving device needs to decompress the consumed resources.
  • the embodiment of the present invention provides a media data transmission method, where an AP is included in the implementation of the method, and the location of the sending device (Source) and the AP in the solution is fixed, and the receiving device (Sink) is movable.
  • the method includes:
  • Step 801 The sending device (Source) detects the signal strength of the 2.4G, 5G, and 60G frequency bands of the AP, and finds that the signal strength of the 5G, 60G frequency band is greater than a set value; or, the sending device measures the distance between the AP and the sending device to be less than 10 m, then, sends The device chooses to access the 5G/60G network.
  • Source detects the signal strength of the 2.4G, 5G, and 60G frequency bands of the AP, and finds that the signal strength of the 5G, 60G frequency band is greater than a set value; or, the sending device measures the distance between the AP and the sending device to be less than 10 m, then, sends The device chooses to access the 5G/60G network.
  • Step 802 The Sink device detects the signal strength of the AP or the distance from the AP (detection means and The source side is similar), choose to access the 5G/60G network.
  • Step 803 Implement device and service discovery through SSDP or mDNS.
  • Step 804 The source and the Sink perform capability negotiation, establish an RTSP session, and request playback by the Sink.
  • Step 805 The source packs the uncompressed data, identifies the data packet as an uncompressed data packet in the packaged data packet, and sends the uncompressed data packet to the receiving device.
  • Step 806 Sink decodes and plays the media content.
  • Step 807 The Sink device detects that the 5G/60G frequency band of the AP is weak or the distance from the AP is greater than 10 meters, and the Sink device requests to access the 2.4G network.
  • Step 808 If the AP detects that the Sink terminal accesses the 2.4G network, the AP compresses and encodes the uncompressed content and performs packet transmission, and identifies the compression coding mode in the packet header.
  • Step 809 The Sink decompresses and decodes the played media content.
  • Step 810 If the Sink device detects that the 5G/60G band of the AP is strong or is less than 10 meters from the AP, and switches to the 5G/60G network, the AP will not process the media data and directly forward it to the Sink.
  • the media data transmission method when the source accesses the set frequency band network, the uncompressed data is packaged, and the data packet is identified as an uncompressed data packet in the packaged data packet, and the data packet is not compressed.
  • the compressed packet is sent to the Sink. Since the transmission rate is very high for the set frequency band network, the transmitting device directly transmits the uncompressed data to the receiving device, which reduces the delay caused by the compression, and reduces the resources consumed by the transmitting device due to the compressed data, and also reduces The receiving device needs to decompress the consumed resources.
  • the embodiment of the present invention provides a data transmission method, where the method is for a mobile communication network, and switching from a 2G/3G/4G network to a 5G network is performed, and data that needs to be transmitted can be uncompressed, thereby improving data.
  • Transmission efficiency, specific operations, as shown in Figure 10, include:
  • Step 901 Phone A initiates a video or audio call to the 2G/3G/4G network via Switch A to Telephone B.
  • Step 902 The switch A finds the number home location register (HLR) according to the telephone number of the telephone B, and then finds the home switch B of the B number in the number home location register.
  • Step 903 Switch A initiates a video or audio telephone call to the 2G/3G/4G network to Switch B.
  • Step 904 Switch B initiates a video or audio telephone call to the 2G/3G/4G network to the telephone B.
  • Step 905 The phone is connected, and the phone B returns a message to the phone A that the off-hook/on button is pressed.
  • Step 906 The phone A sends a message to the phone B confirming that the phone B off-hook/on button has been pressed.
  • Step 907 Phone A compresses and encodes the video and/or audio data to phone B.
  • Step 908 The phone A detects that the 5G network is available, and repeats the process of steps 901 to 906 to establish a call connection with the telephone B 5G.
  • Step 909 Transfer uncompressed video and/or audio.
  • Step 910 Repeatly detecting whether the network is available. If it is detected that the 5G network is unavailable, repeat the steps.
  • the process of 901 ⁇ 907 establishes a call connection with the telephone B 2G/3G/4G, and compresses and encodes the video and/or audio data.
  • a data transmission method provided by an embodiment of the present invention when the phone A is accessed, packages uncompressed data. Since the transmission rate is very high for the transmitting device, the transmitting device directly transmits the uncompressed data to the receiving device, which reduces the delay caused by the compression, reduces the resources consumed by the transmitting device due to the compressed data, and reduces the need for the receiving device to be decompressed. Resources consumed.
  • the embodiment of the present invention provides a transmitting device, which is located in the same wireless network as the receiving device. As shown in FIG. 11, the transmitting device includes: a transceiver 111 and a processor 112;
  • the transceiver 111 is configured to: when the media data encoding mode of the sending device is set to be uncompressed, send uncompressed media data to the receiving device; or encode the media data of the sending device.
  • the mode is set to be compressed, the compressed media data is sent to the receiving device;
  • the processor 112 is configured to acquire a frequency band of the wireless network; and determine whether the frequency band of the wireless network is a set frequency band, if And setting the media data encoding mode of the sending device to be uncompressed; if the frequency band of the wireless network is not the set frequency band, setting the media data encoding mode of the sending device to be compressed.
  • the sending device of the embodiment of the present invention obtains the frequency band of the wireless network by using the sending device, and the sending device determines whether the frequency band of the wireless network is the set frequency band. If the frequency band of the wireless network is the set frequency band, the media of the sending device is sent. The data encoding mode is set to be uncompressed, and the transmitting device is to the receiving device. Send uncompressed media data. Due to the set frequency band of the wireless network, the transmission rate is very high, and the transmitting device directly transmits the uncompressed data to the receiving device, which reduces the delay caused by the compression and reduces the resources consumed by the transmitting device due to the compressed data. Reduce the resources that the receiving device needs to decompress.
  • the transceiver is further configured to: use one of a plurality of available frequency bands to perform media data transmission;
  • the processor is further configured to: before acquiring the frequency band of the wireless network, acquire information about the switching of the transmission mode, and determine, according to the information about the switching mode of the transmission mode, whether to switch the wireless network; if the result of the determination is to switch the transmission wireless network, Transmitting, by the wireless network performing data transmission, to a wireless network of another of the plurality of available frequency bands;
  • the obtaining the frequency band of the wireless network is specifically: the sending device acquires a frequency band of the switched wireless network.
  • the transceiver is further configured to: when the processor determines that the frequency band of the wireless network is a set frequency band, send a notification message to the receiving device;
  • the processor is further configured to: when determining that the frequency band of the wireless network is a set frequency band, carrying the notification identifier in the uncompressed media data;
  • the notification message or the notification identifier is used to notify the receiving device that the media data encoding mode of the sending device is set to be uncompressed.
  • the set frequency band is 5 GHz or 60 GHz.
  • the sending by the receiving device, the uncompressed media data, specifically: sending the uncompressed media data to the receiving device by using a real-time transmission protocol. .
  • a transmitting device may be the transmitting device described in Embodiments 1, 3, and 4 to 8 of the foregoing method, and is not repeatedly described herein.
  • the embodiment of the present invention provides a transmitting device. As shown in FIG. 12, the transmitting device includes a transceiver 121 and a processor 122.
  • the transceiver 121 is configured to: use one of a plurality of available frequency bands for data transmission; and transmit the compressed subsequent transmitted data or the uncompressed subsequently transmitted data to the receiving device according to the result of the confirmation;
  • the processor 122 is configured to: obtain information about the switching of the transmission mode; determine whether to switch the transmission frequency band according to the acquired information; and switch the frequency band in which the data transmission is performed to the multiple when the acquired information meets the requirement of switching the transmission frequency band The other of the available frequency bands, and based on the switched frequency band, determines whether to compress the subsequently transmitted data.
  • the transmitting device provided by the embodiment of the present invention performs data transmission by using one of a plurality of available frequency bands, and when the acquired information meets the requirement of switching the transmission frequency band, the frequency band for performing data transmission is switched to the multiple available frequency bands.
  • the other one determines whether to compress the subsequently transmitted data according to the switched frequency band, reduces the resources that the receiving device needs to decompress, and makes the media data transmission more efficient.
  • determining, according to the switched frequency band, whether to compress the transmitted data includes: if the center frequency of the switched frequency band is lower than a center frequency of the frequency band before the handover, determining to compress the subsequently transmitted data; The center frequency of the latter frequency band is higher than the center frequency of the frequency band before the handover, and it is determined that the data of the subsequent transmission is not compressed.
  • the transceiver is specifically configured to: transmit the uncompressed subsequently transmitted data to the receiving device by using a real-time transmission protocol.
  • the transceiver is further configured to: when the processor determines that the frequency band of the wireless network is a set frequency band, send a notification message to the receiving device;
  • the processor is further configured to: when determining that the frequency band of the wireless network is a set frequency band, carrying the notification identifier in the uncompressed subsequently transmitted data;
  • the notification message or the notification identifier is used to notify the receiving device that the data encoding mode of the sending device is set to be uncompressed.
  • the embodiment of the present invention provides a receiving device.
  • the receiving device includes: a transceiver 131 and a processor 132;
  • the transceiver 131 is configured to receive media data sent by the sending device.
  • the processor 132 is configured to determine an encoding manner of the media data, and directly decode the media data if the encoding manner of the media data is not compressed.
  • a receiving device is provided by the receiving device, and the encoding mode of the media data is determined by the receiving device. If the encoding mode of the media data is not compressed, the media data is directly decoded. The resources consumed by the receiving device to be decompressed are reduced, so that the media data transmission is more efficient.
  • the determining, by the processor, the encoding manner of the media data specifically: reading a notification identifier in the media data, and determining, according to the notification identifier, an encoding manner of the media data; or
  • a receiving device may be the transmitting device described in Embodiments 2 to 8 of the foregoing method, and is not repeatedly described herein.
  • the program may be stored in a computer readable storage medium, and the storage medium may include: ROM, RAM, disk or CD, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

一种媒体数据传输方法和设备,其中,所述媒体数据的发送设备和接收设备当前位于同一无线网络,所述方法包括:所述发送设备获取所述无线网络的频段;所述发送设备判断所述无线网络的频段是否为设定的频段,如果是,将所述发送设备的媒体数据编码方式设置为不压缩,所述发送设备向接收设备发送不经压缩的媒体数据;如果所述无线网络的频段不是设定的频段,将所述发送设备的媒体数据编码方式设置为压缩,所述发送设备向接收设备发送经过压缩的媒体数据。该方案减少了由于压缩导致的时延,同时减少了发送设备由于压缩数据耗费的资源,也减少了接收设备需要解压缩消耗的资源。

Description

一种媒体数据传输方法和设备
技术领域
本发明涉及通信技术领域, 特别涉及一种媒体数据传输方法和设备。
背景技术
无线千兆比特( WiGig, Wireless Gigabit )是一种更快的短距离传输技术, 支持多种带宽, 该技术很大部分是由传统 Wi-Fi延伸而来, 因此, 它可以切换 到 802.11η, WiGig对应的频段是 60GHz, 而 802.11η对应的频段是 2.4GHz。 当用户终端距离接入点 (AP, Access Point )较远, 则用户终端或者 AP将切 换到传输速度较慢, 但传输距离更远的频段, 如 2.4GHz; 而当用户终端距离 AP较近时, 则用户终端或者 AP将切换到 60GHz频段, 以获得更高的连接速 率。
上述的频段实际上不是某个具体的频率, 而是一个频率的范围, 而且, 在 各个国家的规定并不一定相同。例如, 2.4GHz频段指的是 2.4GHz附近的频率 范围, 具体来说, 在中国、 美国和欧洲指的是频率为 2.400-2.4835GHz这个范 围, 在日本指的是 2.471 -2.497GHz的频率范围。 5GHz频段指的是 5GHz附近 的频率范围, 在美国指的是 5.85-5.925GHz, 在欧洲指的是 5.855-5.925GHz。 60GHz频段一般指的是 56GHz-66GHz这一段免费频谱, 在各个国家具体情况 也不同。
在上述现有技术中, 在用户终端或者 AP首次接入无线网络时, 就根据标 准协议确定了传输媒体数据采用的编码方式, 后续即使切换到其他无线网络, 也不会再更改编码方式, 这种确定编码方式的方法缺乏灵活性。
发明内容
本发明实施例提供一种媒体数据传输方法和设备,能够灵活的选择编码方 式。
第一方面,提供了一种媒体数据传输方法, 所述媒体数据的发送设备和接 收设备当前位于同一无线网络, 所述方法包括:
所述发送设备获取所述无线网络的频段;
所述发送设备判断所述无线网络的频段是否满足设定的条件,如果是,将 所述发送设备的媒体数据编码方式设置为不压缩,所述发送设备向接收设备发 送不经压缩的媒体数据;
如果所述无线网络的频段不满足设定的条件,将所述发送设备的媒体数据 编码方式设置为压缩, 所述发送设备向接收设备发送经过压缩的媒体数据。
在第一种可能的实现方式中,根据第一方面, 所述发送设备获取所述无线 网络的频段之前还包括:
所述发送设备采用多个可用频段中无线网络中的一个进行媒体数据传输; 所述发送设备获取传输方式切换的信息,并根据所述传输方式切换的信息 判断是否切换无线网络;
如果判断结果是切换传输无线网络,将所述进行数据传输的无线网络切换 为所述多个可用频段中的另一个频段的无线网络;
所述发送设备获取所述无线网络的频段具体为,所述发送设备获取切换后 的无线网络的频段。
在第二种可能的实现方式中, 结合第一方面或者第一种可能的实现方式 中,如果所述发送设备判断所述无线网络的频段满足设定的条件, 所述方法还 包括:
所述发送设备发送通知消息,或者在所述不经压缩的媒体数据中携带通知 标识,所述通知消息或所述通知标识用于通知所述接收设备所述发送设备的媒 体数据编码方式设置为不压缩。
在第三种可能的实现方式中,结合第一方面或第一种可能的实现方式或第 二种可能的实现方式, 所述设定的条件为: 频段为 5GHz或 60GHz。
在第四种可能的实现方式中,结合第一种可能的实现方式或第二种可能的 实现方式的任意一种, 所述设定的条件为: 所述切换后的无线网络的频段的中 心频率大于阈值。
在第五种可能的实现方式中, 结合第一方面, 或者第一种可能的实现方式 至第四种可能的实现方式的任意一种,所述发送设备向所述接收设备发送不经 压缩的媒体数据, 具体包括: 所述发送设备采用实时传输协议向所述接收设备 发送不经压缩的媒体数据。
第二方面, 提供了一种电子设备传输数据的方法, 所述方法包括: 采用多个可用频段中的一个进行数据传输; 获取传输方式切换的信息;
根据获取的信息判断是否切换传输频段;
当获取的信息符合切换传输频段的要求时,将所述进行数据传输的频段切 换为所述多个可用频段中的另一个,并根据切换后的频段确定是否对后续传输 的数据进行压缩;
根据确认的结果将压缩的后续传输的数据,或者未压缩的后续传输的数据 传输给接收设备。
在第一种可能的实现方式中,根据第二方面, 所述根据切换后的频段确定 是否对传输的数据进行压缩包括:
如果切换后的频段的中心频率低于切换前的频段的中心频率,确定对后续 传输的数据进行压缩;
如果切换后的频段的中心频率高于切换前的频段的中心频率,确定不对后 续传输的数据压缩。
在第二种可能的实现方式中,根据第二方面第一种可能的实现方式中, 所 述将未压缩的后续传输的数据传输给所述接收设备具体为,采用实时传输协议 向所述接收设备传输未压缩的后续传输的数据。
在第三种可能的实现方式中,根据第二方面第一种可能的实现方式或者第 二种可能实现的方式, 如果确定不对后续传输的数据压缩, 所述方法还包括: 发送设备向所述接收设备发送通知消息,或者发送设备在所述未压缩的后 续传输的数据中携带通知标识,所述通知消息或所述通知标识用于通知所述接 收设备、 所述发送设备的数据编码方式设置为不压缩。
本发明实施例第三方面提供了一种数据传输方法,所述数据的发送设备和 接收设备当前位于同一无线网络, 所述方法包括:
所述接收设备接收所述发送设备发送的数据,
所述接收设备确定所述数据的编码方式,如果所述数据的编码方式为不压 缩, 直接对所述媒体数据解码。
本发明实施例第三方面的第一种可能的实现方式中,所述接收设备确定所 述数据的编码方式包括:
读取所述数据中的通知标识, 根据所述通知标识确定所述数据的编码方 式 或
读取所述发送设备发送的通知消息,根据所述通知消息确定所述数据的编 码方式。
本发明实施例第四方面,提供一种发送设备, 与接收设备当前位于同一无 线网络, 所述发送设备包括: 收发器和处理器;
所述收发器, 用于在将所述发送设备的媒体数据编码方式设置为不压缩 时, 向所述接收设备发送不经压缩的媒体数据; 或者, 在将所述发送设备的媒 体数据编码方式设置为压缩时, 向所述接收设备发送经过压缩的媒体数据; 所述处理器, 用于获取所述无线网络的频段; 判断所述无线网络的频段是 否为设定的频段,如果是,将所述发送设备的媒体数据编码方式设置为不压缩; 如果所述无线网络的频段不是设定的频段,将所述发送设备的媒体数据编码方 式设置为压缩。
本发明实施例第四方面的第一种可能的实现方式中, 所述收发器还用于, 采用多个可用频段中无线网络中的一个进行媒体数据传输;
所述处理器还用于,在获取所述无线网络的频段之前, 获取传输方式切换 的信息, 并根据所述传输方式切换的信息判断是否切换无线网络; 如果判断结 果是切换传输无线网络,将所述进行数据传输的无线网络切换为所述多个可用 频段中的另一个频段的无线网络;
所述获取所述无线网络的频段具体为,所述发送设备获取切换后的无线网 络的频段。
结合本发明实施例第四方面的第一种实现方式或者第四方面,本发明实施 例第四方面的第二种可能的实现方式中, 所述收发器,还用于在处理器判断所 述无线网络的频段为设定的频段时, 向所述接收设备发送通知消息;
或者所述处理器,还用于在判断所述无线网络的频段为设定的频段时,在 所述不经压缩的媒体数据中携带通知标识;
所述通知消息或所述通知标识用于通知所述接收设备所述发送设备的媒 体数据编码方式设置为不压缩。
在第三种可能的实现方式中,结合第四方面或第一种可能的实现方式或第 二种可能的实现方式, 所述设定的频段为 5GHz或 60GHz。 在第四种可能的实现方式中,结合第四方面或第一种可能的实现方式至第 三种可能的实现方式的任意一种,所述向所述接收设备发送不经压缩的媒体数 据, 具体包括: 采用实时传输协议向所述接收设备发送不经压缩的媒体数据。
第五方面, 提供了一种发送设备, 所述发送设备包括收发器和处理器; 所述收发器用于, 采用多个可用频段中的一个进行数据传输; 根据确认的 结果将压缩的后续传输的数据, 或者未压缩的后续传输的数据传输给接收设 备;
所述处理器用于, 获取传输方式切换的信息; 根据获取的信息判断是否切 换传输频段; 当获取的信息符合切换传输频段的要求时,将所述进行数据传输 的频段切换为所述多个可用频段中的另一个,并根据切换后的频段确定是否对 后续传输的数据进行压缩。
在第一种可能的实现方式中,根据第五方面, 所述根据切换后的频段确定 是否对传输的数据进行压缩包括:如果切换后的频段的中心频率低于切换前的 频段的中心频率,确定对后续传输的数据进行压缩; 如果切换后的频段的中心 频率高于切换前的频段的中心频率, 确定不对后续传输的数据压缩。
在第二种可能的实现方式中, 结合第五方面第一种可能的实现方式, 所述 收发器具体用于,采用实时传输协议向所述接收设备传输未压缩的后续传输的 数据。
在第三种可能的实现方式中,结合第一种可能的实现方式或第二种可能的 实现方式, 所述收发器,还用于在处理器判断所述无线网络的频段为设定的频 段时, 向所述接收设备发送通知消息;
或者所述处理器,还用于在判断所述无线网络的频段为设定的频段时,在 所述未压缩的后续传输的数据中携带通知标识;
所述通知消息或所述通知标识用于通知所述接收设备、所述发送设备的数 据编码方式设置为不压缩。
第六方面,提供了一种接收设备, 所述接收设备与发送设备位于同一无线 网络, 所述接收设备包括: 收发器和处理器;
所述收发器, 用于接收发送设备发送的数据;
所述处理器, 用于确定所述数据的编码方式,如果所述数据的编码方式为 不压缩, 直接对所述数据解码。
在第一种可能的实现方式中,根据第六方面, 所述处理器中确定所述数据 的编码方式, 具体包括:
读取所述数据中的通知标识, 根据所述通知标识确定所述数据的编码方 式; 或
读取所述发送设备发送的通知消息,根据所述通知消息确定所述数据的编 码方式。
本发明实施例提供一种媒体数据传输方法和设备,对于设定的频段的无线 网络,发送设备对传输的媒体数据不进行压缩, 而对于设定的频段之外的其他 频段的无线网络, 对媒体数据进行压缩, 采取该方案, 并不需要对所有的无线 网络中传输的媒体数据都进行压缩,而是根据无线网络的频段来选择压缩或者 不压缩, 灵活性更高。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施 例或现有技术描述中所需要使用的附图作筒单地介绍,显而易见地, 下面描述 中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲,在不付 出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。
图 1是本发明方法实施例一提供的一种媒体数据传输方法流程图; 图 2是本发明方法实施例二提供的一种电子设备传输数据的方法流程图 图 3是本发明方法实施例三提供的一种媒体数据传输方法流程图; 图 4是本发明方法实施例四提供的一种媒体数据传输方法流程图; 图 5是本发明方法实施例五提供的一种媒体数据传输方法流程图; 图 6是本发明方法实施例六提供的一种媒体数据传输方法流程图; 图 7是本发明方法实施例七提供的一种媒体数据传输方法流程图; 图 8是本发明方法实施例八提供的一种媒体数据传输方法流程图; 图 9是本发明方法实施例九提供的一种媒体数据传输方法流程图; 图 10是本发明方法实施例十提供的一种媒体数据传输方法流程图 图 11是本发明方法实施例十一提供的一种发送设备结构示意图; 图 12是本发明方法实施例十二提供的一种发送设备结构示意图; 图 13是本发明方法实施例十三提供的一种接收设备结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清 楚地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的 实施例。基于本发明中的实施例, 本领域普通技术人员在没有作出创造性劳动 前提下所获得的所有其他实施例, 都属于本发明保护的范围。
实施例一
本发明实施例提供一种媒体数据传输方法,所述媒体数据包括以下至少一 个: 文本数据、 音频数据、 视频数据、 图片数据。 媒体数据的发送设备和接收 设备当前位于同一无线网络。
本方法实施的前提是媒体数据的发送设备和接收设备当前位于同一无线 网, 该无线网包括无线局域网、 移动电话网络的 2G、 3G或 4G或 5G网络。
以下先以无线局域网为例说明, 移动电话网络可以参考后续的实施例。 媒体数据的发送设备和接收设备知道彼此位于同一局域网可以通过多种 方式, 例如可以是两个设备在接入该局域网过程中获知。 具体来说, 如果发送 设备和接收设备通过直连方式组建局域网,在协商的过程中需要交换一些设备 标识等信息, 交换完这些标识后,发送设备和接收设备均可以获知对方与自己 位于同一无线局域网中。 如果发送设备和接收设备通过 AP接入局域网, 则发 送设备或接收设备可以向 AP发送询问消息, 或者两个设备中的一个设备向另 一个设备通过筒单服务发现协议(SSDP, Simple Service Discovery Protocol) 或位址解析通讯协定 (ARP, Address Resolution Protocol)发送询问消息来交换彼 此的局域网信息, 并根据交换的结果确定这两个设备是否在同一无线局域网 中。
接入所述无线局域网可以是指 2.4G无线局域网, 或者 5G无线局域网, 或者 60G无线局域网, 也不限于当前举例的频段的无线局域网。
还需要说明的是, 该方法的触发条件是发送设备接入无线局域网, 此处和 后续提到的 "发送设备接入局域网" 包括以下至少一个: 发送设备首次接入无 线局域网,和发送设备从一个无线局域网切换到另一个无线局域网。也就是说, 本方式可以适用于发送设备首次接入无线局域网的情形,也可以仅仅适用于发 送设备一个无线局域网切换到另一个无线局域网的情形,还可以同时适用发送 设备首次接入无线局域网和切换无线局域网。
在发送设备首次接入无线局域网, 或者切换到新的无线局域网之后, 该方 法可以立即执行, 或者也可以等到发送设备需要向接收设备发送媒体数据时, 在发送媒体数据之前执行。
如图 1所示, 所述方法包括:
步骤 S1 , 发送设备获取无线网络的频段; 需要理解的是, 所说的无线网 络可以是无线局域网,也可以是移动电话网络的 2G/3G/4G(LTE)或下一代移动 通讯网给。
其中, 该方法的执行设备即发送设备(也可以称作源端) 可以是站点
( Station ), 也可以是接入点 ( AP )。 后续说明的接收设备可以是接入点 AP, 也可以是站点 ( Station )。 为方便说明, 以下用站点 A和站点 B分别代表两个 不同的站点。 如果站点 A到站点 B直连通信、 且站点 A向站点 B发送媒体数 据, 此时站点 A为发送设备, 站点 B为接收设备; 如果站点 A到站点 B间通 过接入点通信、 且站点 A向站点 B发送媒体数据, 站点 A到站点 B之间传输 媒体数据的路径, 实际上包括了站点 A到接入点的一段, 和接入点到站点 B 的一段。 在第一段中, 站点 A是发送设备, 接入点是接收设备, 而在第二段 中, 接入点是发送设备, 而站点 B是接收设备。
其中, 接入点可以是路由器、 网关或者是带接入点功能的手机、便携式电 脑、 平板电脑、 数据卡、 数字电视、 机顶盒等设备, 所述站点可以是手机、 平 板电脑、 数据卡、 数据卡、 数字电视等设备。
上述步骤 S1中发送设备获取无线网络的频段,具体可以是发送设备在接入 网络时获得的频段; 也可以是发送设备在接入网络之后、再向与发送设备位于 同一无线网络的其他设备发送请求消息来获取的。如果发送设备与接收设备是 直连通信的, 那么此处的其他设备就是接收设备,如果发送设备与接收设备通 过 AP通信, 那么此处的外部设备除了接收设备, 还可以是 AP。
上述步骤 SI中发送设备获取无线网络的频段, 具体操作可以是: 发送设 备通过发送指针请求(probe requeset )扫描可用频段或者通过接收设备发送的 信标帧 ( beacon frame ) 来确定可用频段, 然后发送设备选择一个可用频段与 接收设备建立无线连接, 连接建立成功后,从而发送设备获知当前的无线网络 频段。
步骤 S2, 发送设备判断无线网络的频段是否满足设定的条件; 其中, 设 定的条件可以具体是指设定的频段, 但不限于仅指设定的频段。
步骤 S3 , 如果无线网络的频段满足设定的条件, 将发送设备的媒体数据 编码方式设置为不压缩, 发送设备向接收设备发送不经压缩的媒体数据; 其中, 步骤 S3中所述满足设定的条件可以是指设定的频段为 5GHz或者 60GHz 的频段, 随着技术的发展, 该设定的频段会有变化, 设定的频段的作 用是指数据在该频段中有更高效的传输效率, 可以不进行压缩传输。
当发送设备的媒体编码方式设置为不压缩,若发送设备实时采集的媒体数 据, 可以通过不压缩的方式直接发送; 若该发送设备获得是压缩的媒体数据, 则将该媒体数据解压缩, 将解压缩的数据重新编码发送给接收设备。
步骤 S4, 如果无线网络的频段不满足设定的条件, 将发送设备的媒体数 据编码方式设置为压缩, 发送设备向接收设备发送经过压缩的媒体数据。
其中, 经过压缩的媒体数据可以是: 根据发送设备的硬件能力选择合适的 压缩方式, 或者根据现有的压缩效率, 选择合适的压缩方式, 或者选择特定的 一种压缩方式, 例如 H.264或 H.265等, 但不限于当前举例的压缩方式。
本发明实施例提供的一种媒体数据传输方法,通过发送设备获取无线网络 的频段,发送设备判断无线网络的频段是否为设定的频段,如果无线网络的频 段是设定的频段,将发送设备的媒体数据编码方式设置为不压缩,发送设备向 接收设备发送不经压缩的媒体数据。 由于设定的频段的网络络, 其传输速率非 常高,发送设备将未压缩的数据直接发送给接收设备, 减少了由于压缩导致的 时延, 同时减少了发送设备由于压缩数据耗费的资源,也减少了接收设备需要 解压缩消耗的资源。
可选的,当发送设备从一个可以频段的无线网络中切换到另一个频段的无 线网络时, 则在步骤 S1之前, 所说方法还包括:
步骤 S01 , 所述发送设备采用多个可用频段中无线网络中的一个进行媒体 数据传输;
步骤 S02, 所述发送设备获取传输方式切换的信息, 并根据所述传输方式 切换的信息判断是否切换无线网络;
步骤 S03 , 如果判断结果是切换传输无线网络, 将所述进行数据传输的无 线网络切换为所述多个可用频段中的另一个频段的无线网络;
贝' J , 步骤 S1总所述发送设备获取所述无线网络的频段具体为: 所述发送 设备获取切换后的无线网络的频段。
可选的,如果所述发送设备判断所述无线网络的频段满足设定的条件, 所 述方法还包括:
步骤 S5 , 所述发送设备发送通知消息, 或者在所述不经压缩的媒体数据 中携带通知标识,所述通知消息或所述通知标识用于通知所述接收设备所述发 送设备的媒体数据编码方式设置为不压缩。
其中,发送设备发送通知消息可以是在发送媒体数据之前,先发送通知消 息, 也可以是, 在发送媒体数据之后发送该通知消息。
可选的, 上述步骤 S3中, 发送设备向所述接收设备发送不经压缩的媒体 数据, 具体包括:
所述发送设备采用实时传输协议向所述接收设备发送不经压缩的媒体数 据; 但发送不经压缩的媒体数据不限于当前说明的实时传输协议,还可以是其 他协议。
可选的, 发送设备获取所述无线网络的频段信息之前, 所述方法还包括: 步骤 S6A, 所述发送设备首次接入无线网络; 或
步骤 S6B, 所述发送设备从前一个无线网络切换到当前无线网络。
其中, 步骤 S6A 中发送设备首次接入无线网络, 可以理解为发送设备之 前都没有接入过无线网络, 当前为第一次接入无线网络。
可选的, 设定的条件可以为: 频段为 5GHz或 60GHz。
可选的, 所述设定的条件为: 所述切换后的无线网络的频段的中心频率大于阈 值。其中, 所说的阈值根据发送设备或者接收设备硬件可以处理的最大传输速 率确定。 实施例二
本发明实施例还提供了一种电子设备传输数据的方法,如图 2所示, 该方 法包括:
步骤 A1 , 采用多个可用频段中的一个进行数据传输;
其中,发送设备可以是首次接入无线网络, 当有多个可用频段的无线网络 时, 发送设备可以选择一个可用频段进行数据传输。 步骤 A1中所说的数据可 以是媒体数据, 也可以是其他数据。
步骤 A2, 获取传输方式切换的信息;
其中, 获取的传输方式切换的信息, 具体可以是根据发送设备与接收设备 之间的信号强度, 或者是距离等, 判断是否可以切换可用频段。
步骤 A3 , 根据获取的信息判断是否切换传输频段;
步骤 A4, 当获取的信息符合切换传输频段的要求时, 将所述进行数据传 输的频段切换为所述多个可用频段中的另一个,并根据切换后的频段确定是否 对后续传输的数据进行压缩;
步骤 A5 , 根据确认的结果将压缩的后续传输的数据, 或者未压缩的后续 传输的数据传输给接收设备。
通常, 频段越高的可用无线网络, 具有更快的传输速率, 因此, 可以考虑 对数据不压缩进行传输, 同理,频段较低的可用无线网络,传输速率相对较低, 可以采用压缩数据后, 进行传输。
本发明实施例提供的一种电子设备传输数据的方法,通过采用多个可用频 段中的一个进行数据传输, 当获取的信息符合切换传输频段的要求时,将所述 进行数据传输的频段切换为所述多个可用频段中的另一个,并根据切换后的频 段确定是否对后续传输的数据进行压缩,减少了接收设备需要解压缩消耗的资 源, 使得媒体数据传输具有更高的效率。
可选的, 步骤 A4中所述根据切换后的频段确定是否对传输的数据进行压 缩包括:
如果切换后的频段的中心频率低于切换前的频段的中心频率,确定对后续 传输的数据进行压缩;
如果切换后的频段的中心频率高于切换前的频段的中心频率,确定不对后 续传输的数据压缩。
由于切换后的频段的中心频率低于切换前的频段的中心频率,那么可以认 为切换后的无线网络中数据传输速率降低, 不适合直接不压缩传输, 因此, 可 以对数据进行压缩后传输; 同理,切换后的频段的中心频率高于切换前的频段 的中心频率,则切换后的无线网络中数据传输速率提高,适合直接不压缩传输。
可选的, 所述将未压缩的后续传输的数据传输给所述接收设备具体为, 采 用实时传输协议向所述接收设备传输未压缩的后续传输的数据。
可选的, 如果确定不对后续传输的数据压缩, 所述方法还包括:
发送设备向所述接收设备发送通知消息,或者发送设备在所述未压缩的后 续传输的数据中携带通知标识,所述通知消息或所述通知标识用于通知所述接 收设备、 所述发送设备的数据编码方式设置为不压缩。
实施例三
本发明实施例提供一种数据传输方法, 如图 3所示, 所述数据的发送设备 和接收设备当前位于同一无线网络, 该方法包括:
步骤 Q1 , 接收设备接收所述发送设备发送的数据;
其中, 接收设备可以是接入点 AP, 也可以是站点( Station )。 接入点可以 是路由器、 网关或者是带接入点功能的手机、便携式电脑、平板电脑、数据卡、 数字电视、机顶盒等设备, 所述站点可以是手机、平板电脑、数据卡、数据卡、 数字电视等设备。
步骤 Q2, 接收设备确定所述数据的编码方式, 如果所述数据的编码方式 为不压缩, 直接对所述数据解码。 其中, 对数据解码的具体操作可以参考现有 技术。
还需要说明的是, 当步骤 Q2中接收设备确定数据的编码方式为压缩, 则 对数据先解压缩, 再解码, 解压缩和解码的具体操作可以参考现有技术, 此处 不详述。
本发明实施例提供的一种数据传输方法,通过接收设备确定所述数据的编 码方式, 如果所述数据的编码方式为不压缩, 直接对所述数据解码, 减少了接 收设备需要解压缩消耗的资源, 使得数据传输具有更高的效率。
可选的, 上述步骤 Q2中, 所述接收设备确定所述数据的编码方式包括: 读取所述数据中通知标识, 根据所述通知标识确定所述数据的编码方式; 或, 读取所述发送设备发送的通知消息,根据所述通知消息确定所述数据的编 码方式。
其中, 当读取的数据中的通知标识为空, 或者数值为约定的值时, 可以表 示数据的编码方式为不压缩, 同理, 也可以得知数据的编码方式为压缩。
实施例四
本发明实施例提供一种媒体数据传输方法,是实施例一、二的一种优选的 实施方案, 本实施例中, 发送设备和接收设备之间直连, 不涉及 AP, 由发送 设备检测信号强度, 或者测量与接收设备的距离, 进一步, 由发送设备请求接 入 5G/60G网络。 具体说明参见如下:
如图 4所示, 该方法包括:
步骤 301 , 发送设备检测接收设备的 2.4G, 5G, 60G频段信号强度, 发 现 5G, 60G频段信号强度小于设定值; 或者, 发送设备测量接收设备(Sink ) 与发送设备的距离, 且测量的距离大于 10m; 因此, 发送设备选择 2.4G网络。 其中, 发送设备选择 2.4G网络可以是首次接入 2.4G无线局域网, 也可以根据 步骤 301中的测量, 切换到该 2.4G无线局域网。
其中, 步骤 301中所述信号强度用数值来表示的话单位是 dBm (全称: decibel relative to one milliwatt) , 表示的是一毫瓦表示的分贝数。 下面是一个 dBm与信号格数的对应关系: 当信号强度为 -40dBm到 -50dBm代表信号的最 强值; 当信号强度为 -50dBm到 -60dBm相当于 5格信号的范围; 当信号强度为 -60dbm到 -70dBm代表 4格信号显示范围; 当信号强度为 -70dBm到 -80dBm代 表条形信号的 3格显示;当信号强度为 -80dBm到 -90dBm是 2格信号的强度范 围; 当信号强度为 -90到 -99dBm就是 1格信号。 此处仅是便于理解的说明, 并 非对本发明实施例的限制。
步骤 302和步骤 303 , 发送设备与接收设备通过无线直连( Wi-Fi Direct ) 实现设备和服务发现。
步骤 304 , 发送设备和接收设备通过无线直连, 或者通道直接链路建立 ( TDLS , Tunneled Direct Link Setup )建立连接。
步骤 305 , 发送设备和接收设备进行能力协商, 例如协商接收设备是否支 持 H.264和 H.265解码,本实施例中以接收设备支持 H.264解码为例进行后续 说明。
上述步骤 302至步骤 305是发送设备与接收设备之间建立物理层和数据链 路层连接的操作。
如下步骤 306至步骤 311是发送设备和接收设备之间建立应用层会话连 接, 包括:
步骤 306和步骤 307,发送设备请求接收设备发起实时串流协议(RTSP , Real Time Streaming Protocol )会话的建立。
步骤 308 和步骤 309 , 接收设备发起 RTSP 会话的建立, 携带 wfd-presentation-url参数 , Source端回复该请求。
步骤 310 和步骤 311 , 接收设备请求播放, 发送设备回复该请求, 开始
H.264压缩编码的媒体流传输。 其中, 发送设备在执行步骤 301的操作后获取 频段,将发送设备的媒体数据编码方式设置为压缩,发送设备向接收设备发送 经过压缩的媒体数据。
如下步骤 312至步骤 314中说明的是,当发送设备发现需要切换网络到设 定的频段网络时, 及时切换的过程, 具体包括:
步骤 312至步骤 314, 发送设备检测到接收设备的 5G/60G频段信号强度 大于设定值, 或者, 发送设备检测到发送设备与接收设备的距离小于 10米, 发送设备请求接入 5G/60G网络, 且发送设备成功接入。
步骤 315 , 发送设备接入 5G/60G网络时, 发送设备的媒体数据编码方式 设置为不压缩,将未压缩的数据打包, 且在打包的数据包中标识该数据包为未 压缩数据包, 将未压缩的数据包发送给接收设备。
其中, 发送设备也可以在发送媒体数据之前, 先发送通知消息, 或者, 在 发送媒体数据之后发送该通知消息,通知消息或所述通知标识用于通知所述接 收设备所述发送设备的媒体数据编码方式设置为不压缩。
步骤 316, 接收设备接收到未压缩的数据包, 确定所述媒体数据的编码方 式为不压缩, 解码显示数据。
需要理解的是,接收设备确定所述媒体数据的编码方式为不压缩, 具体可 以包括: 读取所述媒体数据中通知标识,根据所述通知标识确定所述媒体数据的编 码方式确定为不压缩; 或,
读取所述发送设备发送的通知消息,根据所述通知消息确定所述媒体数据 的编码方式为不压缩。
如果检测到接收设备的 5G/60G网络中信号较弱, 或者接收设备距离发送 设备大于 10米, 切换到 2.4G网络, 将显存中剩余的和后续的数据进行 H.264 压缩编码传输, 具体参见步骤 301至步骤 311。
本发明实施例提供的一种媒体数据传输方法,通过测量设定的频段网络的 信号强度;或者获取测量的发送设备与接收设备( Sink )之间的距离其中之一; 根据测量到的设定的频段网络的信号强度大于设定值时, 或者,发送设备获得 的发送设备与接收设备的距离小于设定距离时,选择接入设定的频段网络; 当 接入设定的频段网络时,将未压缩的数据打包,且在打包的数据包中标识该数 据包为未压缩数据包,将未压缩的数据包发送给接收设备。 由于对于设定的频 段网络, 其传输速率非常高, 发送设备将未压缩的数据直接发送给接收设备, 减少了由于压缩导致的时延, 同时减少了发送设备由于压缩数据耗费的资源, 也减少了接收设备需要解压缩消耗的资源。
实施例五
本发明实施例提供一种媒体数据传输方法是实施例一、二的一种优选的实 施方案, 本实施例中, 发送设备(Source )和接收设备(Sink )之间直连, 不 涉及 AP, 由接收设备(Sink )检测信号强度, 或者测量与接收设备的距离, 进一步, 由接收设备(Sink )请求接入 5G/60G网络。 具体说明参见如下: 如图 5所述, 该方法包括:
步骤 401 , 接收设备(Source )检测发送设备的 2.4G, 5G, 60G频段信号 强度, 发现 5G, 60G频段信号强度小于设定值; 或者, 接收设备测量接收设 备与发送设备的距离, 且测量的距离大于 10m; 因此, 接收设备选择 2.4G网 络。 其中, 发送设备选择 2.4G网络可以是首次接入 2.4G无线局域网, 也可以 根据步骤 301中的测量, 切换到该 2.4G无线局域网。
步骤 402和步骤 403, 发送设备与接收设备通过无线直连( Wi-Fi Direct ) 实现设备和服务发现。 步骤 404 , 发送设备和接收设备通过无线直连, 或者通道直接链路建立 ( TDLS , Tunneled Direct Link Setup )建立连接。
步骤 405 , 发送设备和接收设备进行能力协商, 例如协商接收设备是否支 持 H.264和 H.265解码,本实施例中以接收设备支持 H.264解码为例进行后续 说明。
上述步骤 402至步骤 405是发送设备与接收设备之间建立物理层和数据链 路层连接的操作。
如下步骤 406至步骤 411是发送设备和接收设备之间建立应用层会话连 接, 包括:
步骤 406和步骤 407 ,发送设备请求接收设备发起实时串流协议( RTSP ,
Real Time Streaming Protocol )会话的建立。
步骤 408 和步骤 409 , 接收设备发起 RTSP 会话的建立, 携带 wfd-presentation-url参数 , Source端回复该请求。
步骤 410 和步骤 411 , 接收设备请求播放, 发送设备回复该请求, 开始 H.264压缩编码的媒体流传输。 其中, 发送设备判断出无线局域网的频段不是 设定的频段,将发送设备的媒体数据编码方式设置为压缩,发送设备向接收设 备发送经过压缩的媒体数据。
步骤 412, 接收设备检测到发送设备的 5G/60G频段信号较强, 或者发送 设备与接收设备的距离小于 10米。
步骤 413和步骤 414, 接收设备请求接入 5G/60G网络, 并接收到发送设 备发送的成功接入响应。 J¾I时, sink请求接入, source响应, Sink和 Source 都同时接入了 5G/60G网络。
步骤 415 , 发送设备接入 5G/60G网络时, 发送设备的媒体数据编码方式 设置为不压缩,将未压缩的数据打包, 且在打包的数据包中标识该数据包为未 压缩数据包, 将未压缩的数据包发送给接收设备。
步骤 416, 接收设备接收到未压缩的数据包, 确定所述媒体数据的编码方 式为不压缩, 解码显示数据。
接收设备若再次检测到发送设备距离接收设备大于 10米,切换到 2.4G网 络,发送设备将显存中剩余的和后续的数据进行 H.264压缩编码传输, 具体参 见步骤 401至步骤 411。
本发明实施例提供的一种媒体数据传输方法,通过接收接收设备测量的发 送设备与接收设备之间的距离; 当距离小于设定距离时,选择接入设定的频段 网络; 当接入设定的频段网络时, 将未压缩的数据打包, 且在打包的数据包中 标识该数据包为未压缩数据包,将未压缩的数据包发送给接收设备。 由于对于 设定的频段网络, 其传输速率非常高,发送设备将未压缩的数据直接发送给接 收设备, 减少了由于压缩导致的时延, 同时减少了发送设备由于压缩数据耗费 的资源, 也减少了接收设备需要解压缩消耗的资源。
实施例六
本发明实施例提供一种媒体数据传输方法,是实施例一、二的一种优选的 实施方案, 本实施例中由接收设备(Sink )检测信号强度, 或者测量与接收设 备的距离, 进一步, 由发送设备(Source )请求接入 5G/60G网络。 具体说明 参见如下:
如图 6所述, 该方法包括:
步骤 501 , 接收设备检测发送设备的 2.4G, 5G, 60G频段信号强度, 发 现 5G, 60G频段信号强度小于设定值; 或者, 接收设备测量接收设备与发送 设备的距离大于 10m,发送设备将检测或者测量的上述内容,发送给发送设备。
步骤 502, 发送设备根据步骤 501中接收设备检测发送设备的 2.4G, 5G, 60G频段信号强度, 发现 5G, 60G频段信号强度小于设定值; 或者, 接收设 备测量接收设备与发送设备的距离大于 10m, 选择 2.4G网络。
后续步骤 503至步骤 513, 与上述实施例七中步骤 402~412对应相同, 此 处不重述。
步骤 514 , 接收设备通过向发送设备请求 SetParameter()Action 来通知 Source端, 发送设备与接收设备的距离小于 10米。
步骤 515 和步骤 516, 发送设备接收到接收设备发送的请求, 请求接入
5G/60G网络, 并且成功接入。
步骤 517, 发送设备接入 5G/60G网络时, 将未压缩的数据打包, 且在打 包的数据包中标识该数据包为未压缩数据包,将未压缩的数据包发送给接收设 备。 步骤 518, 接收设备接收到未压缩的数据包, 解码显示数据。
接收设备若再次检测到与发送设备的距离大于 10米, 通知发送设备切换 到 2.4G网络, 发送设备将显存中剩余的和后续的数据进行 H.264压缩编码传 输, 具体参见步骤 501至步骤 512。
本发明实施例提供的一种媒体数据传输方法,通过接收接收设备发送的接 收设备测量的发送设备与接收设备之间的距离;根据接收的接收设备测量的发 送设备与接收设备之间的距离小于设定距离时,选择接入设定的频段网络; 当 接入设定的频段网络时,将未压缩的数据打包,且在打包的数据包中标识该数 据包为未压缩数据包,将未压缩的数据包发送给接收设备。 由于对于设定的频 段网络, 其传输速率非常高, 发送设备将未压缩的数据直接发送给接收设备, 减少了由于压缩导致的时延, 同时减少了发送设备由于压缩数据耗费的资源, 也减少了接收设备需要解压缩消耗的资源。
实施例七
本发明实施例提供一种媒体数据传输方法,是实施例一、二的一种优选的 实施方案, 本实施例中由发送设备(source )检测接收设备信号强度, 或者测 量与接收设备的距离, 进一步, 由接收设备(Sink )请求接入 5G/60G网络。 具体说明参见如下, 如图 7所示, 该方法包括:
步骤 601 , 发送设备(Source )检测接收设备的 2.4G, 5G, 60G频段信号 强度, 发现 5G, 60G频段信号强度小于设定值; 或者, 接收设备测量接收设 备与发送设备的距离大于 10m,发送设备将检测或者测量的上述内容,发送给 接收设备。
步骤 602, 根据步骤 601 中发送设备检测接收设备的 2.4G, 5G, 60G频 段信号强度, 发现 5G, 60G频段信号强度小于设定值; 或者, 发送设备测量 接收设备与发送设备的距离大于 10m, 接收设备选择 2.4G网络。
后续步骤 603至步骤 612, 与上述实施例四中步骤 402~411对应相同, 此 处不重述。
步骤 613,发送设备检测到接收设备的 5G/60G频段信号强度大于设定值, 或者, 发送设备检测到发送设备与接收设备的距离小于 10米。
步骤 614 , 发送设备通过向接收设备请求 SetParameter()Action来通知 Sink 端, Source与 Sink的距离小于 10米或者 5G/60G频段信号较强。
步骤 615和 616: 接收设备设备请求接入 5G/60G网络, 且接收设备成功 接入。
步骤 617, 发送设备接入 5G/60G网络时, 将未压缩的数据打包, 且在打 包的数据包中标识该数据包为未压缩数据包,将未压缩的数据包发送给接收设 备。
步骤 618, 接收设备接收到未压缩的数据包, 解码显示数据。
如果检测到接收设备的 5G/60G频段信号较弱, 或者接收设备距离发送设 备大于 10米, 切换到 2.4G网络, 将显存中剩余的和后续的数据进行 H.264压 缩编码传输, 具体参见步骤 601至步骤 612。
本发明实施例提供的一种媒体数据传输方法,通过测量设定的频段网络的 信号强度;或者获取测量的发送设备与接收设备( Sink )之间的距离其中之一; 根据测量到的设定的频段网络的信号强度大于设定值时, 或者,发送设备获得 的发送设备与接收设备的距离小于设定距离时,选择接入设定的频段网络; 当 接入设定的频段网络时,将未压缩的数据打包,且在打包的数据包中标识该数 据包为未压缩数据包,将未压缩的数据包发送给接收设备。 由于对于设定的频 段网络, 其传输速率非常高, 发送设备将未压缩的数据直接发送给接收设备, 减少了由于压缩导致的时延, 同时减少了发送设备由于压缩数据耗费的资源, 也减少了接收设备需要解压缩消耗的资源。
实施例八
本发明实施例提供一种媒体数据传输方法,在该方法的实施过程中包括有 AP, 且本方案中接收设备(Sink )和 AP的位置固定, 而发送设备( Source ) 是可移动的。 具体说明参见如下, 如图 8, 该方法包括:
步骤 701 , 发送设备 ( Source )检测 AP的 2.4G, 5G, 60G频段信号强度, 发现 5G, 60G频段信号强度小于设定值; 或者, 发送设备测量 AP与发送设 备的距离大于 10m, 则, 发送设备选择接入 2.4G网络。
步骤 702: Sink端设备检测 AP的信号强度或与 AP的距离 (检测手段与 Source端类似), 选择接入 5G/60G或 2.4G网络。
步骤 703, 通过 SSDP或 mDNS实现设备和服务发现。 步骤 704: Source和 Sink双方进行能力协商, 建立 RTSP会话, 并由 Sink 端请求播放, Source端回复该请求,之后开始压缩编码(压缩方式不限于 H.264 ) 的媒体流传输 。
步骤 705: Sink解压缩并解码播放媒体内容。
步骤 706, Source端设备检测到 AP的 5G/60G频段信号较强或者距离 AP 小于 10米, Source端设备请求接入 5G/60G网络。
步骤 707: Source端不对数据进行压缩编码, 直接把显存中的未压缩数 据(可以把未压缩数据进行 RTP打包, 在包头标识位中标识出该打包数据为 未压缩数据)传输给 Sink端。
步骤 708,如果 AP检测到 Sink端接入的是 2.4G网络,则 AP对未压缩的 媒体内容进行压缩打包后传输, 并在包头中标识出压缩编码方式。
步骤 709, Sink解压缩并解码播放媒体内容。
步骤 710, 如果 Source端设备检测到 AP的 5G/60G频段信号较弱或者距 离大于 10米,切换到 2.4G网络, 将显存中剩余的和后续的数据进行压缩编码 传输, 具体参见步骤 701至 706。
本发明实施例提供的一种媒体数据传输方法, 当 Source接入设定的频段 网络时,将未压缩的数据打包,且在打包的数据包中标识该数据包为未压缩数 据包, 将未压缩的数据包发送给 AP, 由 AP再进行压缩转发给 Sink。 由于对 于设定的频段网络, 其传输速率非常高,发送设备将未压缩的数据直接发送给 接收设备, 减少了由于压缩导致的时延, 同时减少了发送设备由于压缩数据耗 费的资源, 也减少了接收设备需要解压缩消耗的资源。
实施例九
本发明实施例提供一种媒体数据传输方法,在该方法的实施过程中包括有 AP, 且本方案中发送设备(Source )和 AP的位置固定, 而接收设备(Sink ) 是可移动的。 具体说明参见如下, 如图 9, 该方法包括:
步骤 801 , 发送设备(Source )检测 AP的 2.4G, 5G, 60G频段信号强度, 发现 5G, 60G频段信号强度大于设定值; 或者, 发送设备测量 AP与发送设 备的距离小于 10m, 则, 发送设备选择接入 5G/60G 网络。
步骤 802, Sink端设备检测 AP的信号强度或与 AP的距离 (检测手段与 Source端类似), 选择接入 5G/60G网络。
步骤 803, 通过 SSDP或 mDNS实现设备和服务发现。
步骤 804: Source和 Sink双方进行能力协商, 建立 RTSP会话, 并由 Sink 端请求播放。
步骤 805: Source将未压缩的数据打包, 在打包的数据包中标识该数据包 为未压缩数据包, 将未压缩的数据包发送给接收设备。
步骤 806: Sink解码播放媒体内容。
步骤 807: Sink端设备检测到 AP的 5G/60G频段信号较弱或者与 AP距离 大于 10米, Sink端设备请求接入 2.4G网络。
步骤 808:如果 AP检测到 Sink端接入的是 2.4G网络,则 AP对无压缩的 内容进行压缩编码并打包传输, 并在包头标识出压缩编码方式。
步骤 809: Sink解压缩并解码播放媒体内容。
步骤 810: 如果 Sink端设备检测到 AP的 5G/60G频段信号较强或者距离 AP的小于 10米, 切换到 5G/60G网络, AP将对流经的媒体数据不做处理并 直接转发给 Sink。
本发明实施例提供的一种媒体数据传输方法, 当 Source接入设定的频段 网络时,将未压缩的数据打包,且在打包的数据包中标识该数据包为未压缩数 据包, 将未压缩的数据包发送给 Sink。 由于对于设定的频段网络, 其传输速率 非常高,发送设备将未压缩的数据直接发送给接收设备, 减少了由于压缩导致 的时延, 同时减少了发送设备由于压缩数据耗费的资源,也减少了接收设备需 要解压缩消耗的资源。
实施例十
本发明实施例提供一种数据传输方法, 在该方法是针对移动通信网络中, 从 2G/3G/4G网络切换到 5G网络是,可以对需要传输的数据进行不压缩处理, 从而提高了数据的传输效率, 具体操作, 如图 10所示, 包括:
步骤 901: 电话 A通过交换机 A向电话 B发起 2G/3G/4G网络的视频或音频电 话呼叫。
步骤 902 : 交换机 A根据电话 B的电话号码找到号码归属位置寄存器 ( HLR ), 然后在该号码归属位置寄存器中找到 B号码的归属地交换机 B。 步骤 903: 交换机 A向交换机 B发起 2G/3G/4G网络的视频或音频电话呼叫。 步骤 904: 交换机 B向电话 B发起 2G/3G/4G网络的视频或音频电话呼叫。 步骤 905: 电话接通, 电话 B向电话 A回复摘机 /接通键被按下的消息。 步骤 906: 电话 A向电话 B发送确认接收到电话 B摘机 /接通键被按下的消 息。
步骤 907: 电话 A将视频和 /或音频数据压缩编码并传输给电话 B。
步骤 908: 电话 A检测到 5G网络可用, 重复步骤 901~906的过程, 建立与电 话 B 5G的通话连接。
步骤 909: 对无压缩的视频和 /或音频进行传输。
步骤 910: 重复检测网络是否可用, 如果检测到 5G网络不可用, 重复步骤
901~907的过程, 建立与电话 B 2G/3G/4G的通话连接, 并对视频和 /或音频数据 进行压缩编码后传输。
本发明实施例提供的一种数据传输方法, 当电话 A接入 时, 将未 压缩的数据打包。 由于对于 其传输速率非常高, 发送设备将未压缩 的数据直接发送给接收设备, 减少了由于压缩导致的时延, 同时减少了发送设 备由于压缩数据耗费的资源, 也减少了接收设备需要解压缩消耗的资源。
实施例十一
本发明实施例提供一种发送设备, 与接收设备当前位于同一无线网络,如 图 11所示, 该发送设备包括: 收发器 111和处理器 112;
所述收发器 111 , 用于在将所述发送设备的媒体数据编码方式设置为不压 缩时, 向所述接收设备发送不经压缩的媒体数据; 或者, 在将所述发送设备的 媒体数据编码方式设置为压缩时, 向所述接收设备发送经过压缩的媒体数据; 所述处理器 112, 用于获取所述无线网络的频段; 判断所述无线网络的频 段是否为设定的频段,如果是,将所述发送设备的媒体数据编码方式设置为不 压缩; 如果所述无线网络的频段不是设定的频段,将所述发送设备的媒体数据 编码方式设置为压缩。
本发明实施例提供的一种发送设备, 通过发送设备获取无线网络的频段, 发送设备判断无线网络的频段是否为设定的频段,如果无线网络的频段是设定 的频段,将发送设备的媒体数据编码方式设置为不压缩,发送设备向接收设备 发送不经压缩的媒体数据。 由于设定的频段的无线网络, 其传输速率非常高, 发送设备将未压缩的数据直接发送给接收设备, 减少了由于压缩导致的时延, 同时减少了发送设备由于压缩数据耗费的资源,也减少了接收设备需要解压缩 消耗的资源。
可选的, 所述收发器还用于, 采用多个可用频段中无线网络中的一个进行 媒体数据传输;
所述处理器还用于,在获取所述无线网络的频段之前, 获取传输方式切换 的信息, 并根据所述传输方式切换的信息判断是否切换无线网络; 如果判断结 果是切换传输无线网络,将所述进行数据传输的无线网络切换为所述多个可用 频段中的另一个频段的无线网络;
所述获取所述无线网络的频段具体为,所述发送设备获取切换后的无线网 络的频段。
所述收发器, 还用于在处理器判断所述无线网络的频段为设定的频段时, 向所述接收设备发送通知消息;
或者所述处理器,还用于在判断所述无线网络的频段为设定的频段时,在 所述不经压缩的媒体数据中携带通知标识;
所述通知消息或所述通知标识用于通知所述接收设备所述发送设备的媒 体数据编码方式设置为不压缩。
可选的, 所述设定的频段为 5GHz或 60GHz。
可选的, 所述向所述接收设备发送不经压缩的媒体数据, 具体包括: 采用 实时传输协议向所述接收设备发送不经压缩的媒体数据。。
本发明实施例说明的一种发送设备可以上述方法实施例一、三, 以及四至 八中说明的发送设备, 此处不重述。
实施例十二
本发明实施例提供了一种发送设备, 如图 12所示, 该发送设备包括收发 器 121和处理器 122;
所述收发器 121用于, 采用多个可用频段中的一个进行数据传输; 根据确 认的结果将压缩的后续传输的数据,或者未压缩的后续传输的数据传输给接收 设备; 所述处理器 122用于, 获取传输方式切换的信息; 根据获取的信息判断是 否切换传输频段; 当获取的信息符合切换传输频段的要求时,将所述进行数据 传输的频段切换为所述多个可用频段中的另一个,并根据切换后的频段确定是 否对后续传输的数据进行压缩。
本发明实施例提供的发送设备,通过采用多个可用频段中的一个进行数据 传输, 当获取的信息符合切换传输频段的要求时,将所述进行数据传输的频段 切换为所述多个可用频段中的另一个,并根据切换后的频段确定是否对后续传 输的数据进行压缩, 减少了接收设备需要解压缩消耗的资源,使得媒体数据传 输具有更高的效率。
可选的, 所述根据切换后的频段确定是否对传输的数据进行压缩包括: 如 果切换后的频段的中心频率低于切换前的频段的中心频率,确定对后续传输的 数据进行压缩; 如果切换后的频段的中心频率高于切换前的频段的中心频率, 确定不对后续传输的数据压缩。
可选的, 所述收发器具体用于, 采用实时传输协议向所述接收设备传输未 压缩的后续传输的数据。
可选的, 所述收发器,还用于在处理器判断所述无线网络的频段为设定的 频段时, 向所述接收设备发送通知消息;
或者所述处理器,还用于在判断所述无线网络的频段为设定的频段时,在 所述未压缩的后续传输的数据中携带通知标识;
所述通知消息或所述通知标识用于通知所述接收设备、所述发送设备的数 据编码方式设置为不压缩。
实施例十三
本发明实施例提供一种接收设备, 如图 13所示, 接收设备包括: 收发器 131和处理器 132;
所述收发器 131 , 用于接收发送设备发送的媒体数据
所述处理器 132, 用于确定所述媒体数据的编码方式, 如果所述媒体数据 的编码方式为不压缩, 直接对所述媒体数据解码。
本发明实施例提供的一种接收设备,通过接收设备确定所述媒体数据的编 码方式, 如果所述媒体数据的编码方式为不压缩, 直接对所述媒体数据解码, 减少了接收设备需要解压缩消耗的资源, 使得媒体数据传输具有更高的效率。 可选的, 所述处理器中确定所述媒体数据的编码方式, 具体包括: 读取所述媒体数据中通知标识,根据所述通知标识确定所述媒体数据的编 码方式; 或
读取所述发送设备发送的通知消息,根据所述通知消息确定所述媒体数据 的编码方式。
本发明实施例说明的一种接收设备可以上述方法实施例二至八中说明的 发送设备, 此处不重述。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步 骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读 存储介质中, 存储介质可以包括: ROM、 RAM, 磁盘或光盘等。
以上对本发明实施例所提供的一种媒体数据传输方法和设备,进行了详细 施例的说明只是用于帮助理解本发明的方法及其核心思想; 同时,对于本领域 的一般技术人员,依据本发明的思想, 在具体实施方式及应用范围上均会有改 变之处, 综上所述, 本说明书内容不应理解为对本发明的限制。

Claims

权 利 要 求
1、 一种媒体数据传输方法, 所述媒体数据的发送设备和接收设备当前位 于同一无线网络, 其特征在于, 所述方法包括:
所述发送设备获取所述无线网络的频段;
所述发送设备判断所述无线网络的频段是否满足设定的条件,如果是,将 所述发送设备的媒体数据编码方式设置为不压缩,所述发送设备向接收设备发 送不经压缩的媒体数据;
如果所述无线网络的频段不满足设定的条件,将所述发送设备的媒体数据 编码方式设置为压缩, 所述发送设备向接收设备发送经过压缩的媒体数据。
2、 如权利要求 1所述的方法, 其特征在于, 所述发送设备获取所述无线 网络的频段之前还包括:
所述发送设备采用多个可用频段中无线网络中的一个进行媒体数据传输; 所述发送设备获取传输方式切换的信息,并根据所述传输方式切换的信息 判断是否切换无线网络;
如果判断结果是切换传输无线网络,将所述进行数据传输的无线网络切换 为所述多个可用频段中的另一个频段的无线网络;
所述发送设备获取所述无线网络的频段具体为,所述发送设备获取切换后 的无线网络的频段。
3、 如权利要求 1或 2所述的方法, 其特征在于, 如果所述发送设备判断 所述无线网络的频段满足设定的条件, 所述方法还包括:
所述发送设备发送通知消息,或者在所述不经压缩的媒体数据中携带通知 标识,所述通知消息或所述通知标识用于通知所述接收设备所述发送设备的媒 体数据编码方式设置为不压缩。
4、 如权利要求 1至 3任一项所述的方法, 其特征在于, 所述设定的条件 为: 频段为 5GHz或 60GHz。
5、 如权利要求 2或 3所述的方法, 其特征在于, 所述设定的条件为: 所 述切换后的无线网络的频段的中心频率大于阈值。
6、 如权利要求 1至 5任一项所述的方法, 其特征在于, 所述发送设备向 所述接收设备发送不经压缩的媒体数据, 具体包括: 所述发送设备采用实时传 输协议向所述接收设备发送不经压缩的媒体数据。
7、 一种电子设备传输数据的方法, 其特征在于, 所述方法包括: 采用多个可用频段中的一个进行数据传输;
获取传输方式切换的信息;
根据获取的信息判断是否切换传输频段;
当获取的信息符合切换传输频段的要求时,将所述进行数据传输的频段切 换为所述多个可用频段中的另一个,并根据切换后的频段确定是否对后续传输 的数据进行压缩;
根据确认的结果将压缩的后续传输的数据,或者未压缩的后续传输的数据 传输给接收设备。
8、 如权利要求 7所述的方法, 其特征在于, 所述根据切换后的频段确定 是否对传输的数据进行压缩包括:
如果切换后的频段的中心频率低于切换前的频段的中心频率,确定对后续 传输的数据进行压缩;
如果切换后的频段的中心频率高于切换前的频段的中心频率,确定不对后 续传输的数据压缩。
9、 如权利要求 8所述的方法, 其特征在于, 所述将未压缩的后续传输的 数据传输给所述接收设备具体为,采用实时传输协议向所述接收设备传输未压 缩的后续传输的数据。
10、 如权利要求 8或 9所述的方法, 其特征在于, 如果确定不对后续传输 的数据压缩, 所述方法还包括:
发送设备向所述接收设备发送通知消息,或者发送设备在所述未压缩的后 续传输的数据中携带通知标识,所述通知消息或所述通知标识用于通知所述接 收设备、 所述发送设备的数据编码方式设置为不压缩。
11、一种数据传输方法, 所述数据的发送设备和接收设备当前位于同一无 线网络, 其特征在于, 所述方法包括:
所述接收设备接收所述发送设备发送的数据,
所述接收设备确定所述数据的编码方式,如果所述数据的编码方式为不压 缩, 直接对所述媒体数据解码。
12、 如权利要求 11所述的方法, 其特征在于, 所述接收设备确定所述数 据的编码方式包括:
读取所述数据中的通知标识, 根据所述通知标识确定所述数据的编码方 式 或
读取所述发送设备发送的通知消息,根据所述通知消息确定所述数据的编 码方式。
13、 一种发送设备, 与接收设备当前位于同一无线网络, 其特征在于, 所 述发送设备包括: 收发器和处理器;
所述收发器, 用于在将所述发送设备的媒体数据编码方式设置为不压缩 时, 向所述接收设备发送不经压缩的媒体数据; 或者, 在将所述发送设备的媒 体数据编码方式设置为压缩时, 向所述接收设备发送经过压缩的媒体数据; 所述处理器, 用于获取所述无线网络的频段; 判断所述无线网络的频段是 否为设定的频段,如果是,将所述发送设备的媒体数据编码方式设置为不压缩; 如果所述无线网络的频段不是设定的频段,将所述发送设备的媒体数据编码方 式设置为压缩。
14、 如权利要求 13所述的发送设备, 其特征在于, 所述收发器还用于, 采用多个可用频段中无线网络中的一个进行媒体数据传输;
所述处理器还用于,在获取所述无线网络的频段之前, 获取传输方式切换 的信息, 并根据所述传输方式切换的信息判断是否切换无线网络; 如果判断结 果是切换传输无线网络,将所述进行数据传输的无线网络切换为所述多个可用 频段中的另一个频段的无线网络;
所述获取所述无线网络的频段具体为,所述发送设备获取切换后的无线网 络的频段。
15、 如权利要求 13或 14所述发送设备, 其特征在于,
所述收发器, 还用于在处理器判断所述无线网络的频段为设定的频段时, 向所述接收设备发送通知消息;
或者所述处理器,还用于在判断所述无线网络的频段为设定的频段时,在 所述不经压缩的媒体数据中携带通知标识;
所述通知消息或所述通知标识用于通知所述接收设备所述发送设备的媒 体数据编码方式设置为不压缩。
16、 如权利要求 13至 15任一项所述的发送设备, 其特征在于, 所述设定 的频段为 5GHz或 60GHz。
17、 如权利要求 13至 16任一项所述发送设备, 其特征在于, 所述向所述 接收设备发送不经压缩的媒体数据, 具体包括: 采用实时传输协议向所述接收 设备发送不经压缩的媒体数据。
18、 一种发送设备, 其特征在于, 所述发送设备包括收发器和处理器; 所述收发器用于, 采用多个可用频段中的一个进行数据传输; 根据确认的 结果将压缩的后续传输的数据, 或者未压缩的后续传输的数据传输给接收设 备;
所述处理器用于, 获取传输方式切换的信息; 根据获取的信息判断是否切 换传输频段; 当获取的信息符合切换传输频段的要求时,将所述进行数据传输 的频段切换为所述多个可用频段中的另一个,并根据切换后的频段确定是否对 后续传输的数据进行压缩。
19、 如权利要求 18所述的发送设备, 其特征在于, 所述根据切换后的频 段确定是否对传输的数据进行压缩包括:如果切换后的频段的中心频率低于切 换前的频段的中心频率,确定对后续传输的数据进行压缩; 如果切换后的频段 的中心频率高于切换前的频段的中心频率, 确定不对后续传输的数据压缩。
20、 如权利要求 19所述的发送设备, 其特征在于, 所述收发器具体用于, 采用实时传输协议向所述接收设备传输未压缩的后续传输的数据。
21、 如权利要求 19或 20所述的发送设备, 其特征在于, 所述收发器, 还 用于在处理器判断所述无线网络的频段为设定的频段时,向所述接收设备发送 通知消息;
或者所述处理器,还用于在判断所述无线网络的频段为设定的频段时,在 所述未压缩的后续传输的数据中携带通知标识;
所述通知消息或所述通知标识用于通知所述接收设备、所述发送设备的数 据编码方式设置为不压缩。
22、 一种接收设备, 所述接收设备与发送设备位于同一无线网络, 其特征 在于, 所述接收设备包括: 收发器和处理器; 所述收发器, 用于接收发送设备发送的数据;
所述处理器, 用于确定所述数据的编码方式,如果所述数据的编码方式为 不压缩, 直接对所述数据解码。
23、 如权利要求 22所述接收设备, 其特征在于, 所述处理器中确定所述 数据的编码方式, 具体包括:
读取所述数据中的通知标识, 根据所述通知标识确定所述数据的编码方 式 或
读取所述发送设备发送的通知消息,根据所述通知消息确定所述数据的编 码方式。
PCT/CN2013/090340 2013-12-24 2013-12-24 一种媒体数据传输方法和设备 WO2015096038A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN201380070424.9A CN104919764B (zh) 2013-12-24 2013-12-24 一种媒体数据传输方法和设备
PCT/CN2013/090340 WO2015096038A1 (zh) 2013-12-24 2013-12-24 一种媒体数据传输方法和设备
US15/107,084 US10142388B2 (en) 2013-12-24 2013-12-24 Method and device for transmitting media data
EP13900352.9A EP3076609B1 (en) 2013-12-24 2013-12-24 Method and device for transmitting media data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/090340 WO2015096038A1 (zh) 2013-12-24 2013-12-24 一种媒体数据传输方法和设备

Publications (1)

Publication Number Publication Date
WO2015096038A1 true WO2015096038A1 (zh) 2015-07-02

Family

ID=53477317

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/090340 WO2015096038A1 (zh) 2013-12-24 2013-12-24 一种媒体数据传输方法和设备

Country Status (4)

Country Link
US (1) US10142388B2 (zh)
EP (1) EP3076609B1 (zh)
CN (1) CN104919764B (zh)
WO (1) WO2015096038A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108307523A (zh) * 2016-08-17 2018-07-20 中兴通讯股份有限公司 一种信号获取方法和装置

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107241119B (zh) * 2017-07-10 2020-07-24 深圳市共进电子股份有限公司 测试具有双频WiFi功能的电力线通信装置的方法
JP6977419B2 (ja) * 2017-09-12 2021-12-08 セイコーエプソン株式会社 電子機器、プログラム及び無線通信方法
KR102513433B1 (ko) 2018-09-13 2023-03-24 삼성전자주식회사 영상전송을 위한 다중 무선 네트워크 환경에서의 QoS 제어 장치 및 이의 제어방법
US20220030592A1 (en) * 2018-11-30 2022-01-27 Sony Group Corporation Terminal device and method
US11558707B2 (en) * 2020-06-29 2023-01-17 Qualcomm Incorporated Sound field adjustment
WO2022033379A1 (zh) * 2020-08-14 2022-02-17 华为技术有限公司 一种媒体信息传输方法及装置
WO2023212049A1 (en) * 2022-04-26 2023-11-02 Intel Corporation Mechanisms for multi-carrier transmit switching for new radio systems in 5g ran1

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101438516A (zh) * 2006-06-05 2009-05-20 三星电子株式会社 传送未压缩等时数据的信道分配管理方法、未压缩等时数据传送方法及其设备
CN101507207A (zh) * 2006-08-25 2009-08-12 三星电子株式会社 用于无线通信的方法和设备
CN102349244A (zh) * 2009-03-12 2012-02-08 佳能株式会社 通信设备及其控制方法
CN103139197A (zh) * 2011-11-30 2013-06-05 美国博通公司 通过因特网协议以较高速率的声音视觉数据传输

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06180948A (ja) * 1992-12-11 1994-06-28 Sony Corp ディジタル信号処理装置又は方法、及び記録媒体
JPH06343167A (ja) 1993-06-01 1994-12-13 Sanyo Electric Co Ltd 動画像圧縮回路
US7184400B2 (en) * 2002-06-14 2007-02-27 Avaya Technology Corp. Apparatus and method for media parameters selection based on network and host conditions
JP4120934B2 (ja) * 2003-06-16 2008-07-16 ソニー株式会社 画像処理装置および画像処理方法、記録媒体、並びに、プログラム
US8218517B2 (en) * 2006-02-28 2012-07-10 Broadcom Corporation Method and apparatus for dual frequency timing acquisition for compressed WCDMA communication networks
US8306060B2 (en) 2006-11-07 2012-11-06 Samsung Electronics Co., Ltd. System and method for wireless communication of uncompressed video having a composite frame format
CN101035279B (zh) * 2007-05-08 2010-12-15 孟智平 一种在视频资源中使用信息集的方法
JP2011087162A (ja) * 2009-10-16 2011-04-28 Sony Corp 受信装置、受信方法、送信装置および送信方法
US20120057536A1 (en) * 2010-09-02 2012-03-08 Samsung Electronics Co., Ltd. Method and apparatus for supporting multi-band wifi
US8493981B2 (en) * 2010-11-03 2013-07-23 Broadcom Corporation Switch module
WO2012110301A1 (en) * 2011-02-14 2012-08-23 Nokia Siemens Networks Oy Different application of compressed mode
CN106464963B (zh) * 2014-07-16 2019-05-28 麦克赛尔株式会社 影像发送接收装置和影像显示装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101438516A (zh) * 2006-06-05 2009-05-20 三星电子株式会社 传送未压缩等时数据的信道分配管理方法、未压缩等时数据传送方法及其设备
CN101507207A (zh) * 2006-08-25 2009-08-12 三星电子株式会社 用于无线通信的方法和设备
CN102349244A (zh) * 2009-03-12 2012-02-08 佳能株式会社 通信设备及其控制方法
CN103139197A (zh) * 2011-11-30 2013-06-05 美国博通公司 通过因特网协议以较高速率的声音视觉数据传输

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108307523A (zh) * 2016-08-17 2018-07-20 中兴通讯股份有限公司 一种信号获取方法和装置
CN108307523B (zh) * 2016-08-17 2021-06-29 中兴通讯股份有限公司 一种信号获取方法和装置

Also Published As

Publication number Publication date
EP3076609A1 (en) 2016-10-05
CN104919764B (zh) 2019-04-26
EP3076609A4 (en) 2016-12-14
US20160373505A1 (en) 2016-12-22
EP3076609B1 (en) 2018-09-05
US10142388B2 (en) 2018-11-27
CN104919764A (zh) 2015-09-16

Similar Documents

Publication Publication Date Title
WO2015096038A1 (zh) 一种媒体数据传输方法和设备
CN106464700B (zh) 使用at命令控制mtu大小的发现方法以及移动终端
CN108029075A (zh) 服务发现和拓扑管理
WO2013163842A1 (zh) 一种移动终端接入无线接入点的方法和无线接入点
WO2015165024A1 (zh) 一种数据传输的方法和终端
CN105516635A (zh) 视频通话系统、装置和方法
WO2017079883A1 (zh) 一种信号强度测量方法及设备
RU2007116807A (ru) Система и способ передачи обслуживания в гетерогенной сети
WO2014194815A1 (zh) 一种切换编码方式的方法、发送端和接收端
JP7235149B2 (ja) 情報処理装置、通信システム、情報処理方法およびプログラム
US20240172084A1 (en) Data transmission method and apparatus
WO2022222811A1 (zh) 数据传输方法和数据传输装置
US10631215B2 (en) Method and apparatus for communicating with a wireless local area network in a mobile communication system
WO2022057119A1 (zh) 小区切换方法、装置、存储介质及电子设备
WO2014075560A1 (zh) 异网络聚合系统和方法
WO2014047936A1 (zh) 数据传输方法、装置、终端及基站
WO2015139324A1 (zh) 配置指示方法和通信设备
WO2015062063A1 (zh) 传输数据的方法、装置和系统
WO2022198613A1 (zh) 一种媒体数据传输方法及通信装置
WO2012083815A1 (zh) 无线数据业务接入方法、系统及装置
JP4540635B2 (ja) 適応通信方法とモジュール
WO2023088009A1 (zh) 一种数据传输的方法及通信装置
WO2014082294A1 (zh) 一种媒体流传输方法及相关设备、系统
WO2014075263A1 (zh) 传输数据的方法、基站、接入网设备和用户设备
WO2011107057A2 (zh) 数据传输方法、无线接入网设备、无线网关及系统

Legal Events

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

Ref document number: 13900352

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 15107084

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

REEP Request for entry into the european phase

Ref document number: 2013900352

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2013900352

Country of ref document: EP