WO2022242362A1 - Image data sending method, image data receiving method, terminal, chip, and storage medium - Google Patents

Image data sending method, image data receiving method, terminal, chip, and storage medium Download PDF

Info

Publication number
WO2022242362A1
WO2022242362A1 PCT/CN2022/085779 CN2022085779W WO2022242362A1 WO 2022242362 A1 WO2022242362 A1 WO 2022242362A1 CN 2022085779 W CN2022085779 W CN 2022085779W WO 2022242362 A1 WO2022242362 A1 WO 2022242362A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
wireless terminal
component
image data
processed
Prior art date
Application number
PCT/CN2022/085779
Other languages
French (fr)
Chinese (zh)
Inventor
许超杰
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2022242362A1 publication Critical patent/WO2022242362A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/30Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using hierarchical techniques, e.g. scalability

Definitions

  • the present application relates to the technical field of communication, and in particular to a method for sending and receiving image data, a terminal, a chip and a storage medium.
  • the WLAN technology based on 802.11 (Wi-Fi) screen projection solution is based on the traditional Wi-Fi Direct (Wi-Fi Direct) technology, and the video data is processed by the video encoding module. compression.
  • the existing Wi-Fi projection technology has the disadvantage of large delay, so it can only be applied to scenarios that do not require real-time performance, such as playing movies, etc., but cannot be applied to scenarios that require real-time performance, such as online mobile games, etc. .
  • Embodiments of the present application provide a method for sending and receiving image data, a terminal, a chip, and a storage medium.
  • an embodiment of the present application provides a method for sending image data in a first wireless terminal, the method including:
  • the first data component represents contour data in the image data
  • the second data component represents the image details in the data
  • the embodiment of the present application provides a method for receiving image data in a second wireless terminal, the method is applied in the second wireless terminal, and the method includes:
  • the verification result is a successful verification, demodulating the second processed data to obtain a second data component; wherein the second data component represents the detail data in the image data;
  • an embodiment of the present application provides a first wireless terminal, where the first wireless terminal includes: a coding unit, a modulating unit, a generating unit, and a sending unit,
  • the coding unit is configured to perform layered coding processing on image data to obtain a first data component and a second data component; wherein, the first data component represents contour data in the image data; the second The data component characterizes detail data in the image data;
  • the modulation unit is configured to perform modulation processing on the first data component according to a first modulation order to obtain first processed data; perform modulation processing on the second data component according to a second modulation order to obtain second processed data; wherein, the first modulation order is smaller than the second modulation order;
  • the generating unit is configured to generate a data packet corresponding to the image data according to the first processed data and the second processed data;
  • the sending unit is configured to send the data packet to a second wireless terminal.
  • the embodiment of the present application provides a first wireless terminal.
  • the first wireless terminal includes a first processor and a first memory storing instructions executable by the first processor. When the instructions are executed When the first processor executes, implement the method as described in the first aspect.
  • the embodiment of the present application provides a second wireless terminal, where the second wireless terminal includes: a receiving unit, a checking unit, a demodulating unit, and a decoding unit,
  • the receiving unit is configured to receive a data packet corresponding to the image data sent by the first wireless terminal; wherein the data packet includes first processed data and second processed data;
  • the demodulation unit is configured to demodulate the first processed data to obtain a first data component; wherein the first data component represents contour data in the image data;
  • the verification unit is configured to perform verification processing on the first data component to obtain a verification result
  • the demodulation unit is further configured to demodulate the second processed data to obtain a second data component if the verification result is a successful verification; wherein the second data component represents detail data in said image data;
  • the decoding unit is configured to perform combined decoding processing on the first data component and the second data component to obtain the image data.
  • the embodiment of the present application provides a second wireless terminal, where the second wireless terminal includes a second processor and a second memory storing instructions executable by the second processor. When the instructions are executed When the second processor executes, implement the method as described in the second aspect.
  • the embodiment of the present application provides a chip, the chip includes a processor and an interface, the processor obtains program instructions through the interface, and the processor is used to run the program instructions to execute the The method described in one aspect or the second aspect.
  • Figure 1 is a schematic diagram of the implementation of Wi-Fi projection
  • FIG. 2 is a first schematic diagram of the implementation flow of the method for sending image data
  • FIG. 3 is a second schematic diagram of the implementation flow of the method for sending image data
  • FIG. 4 is a schematic diagram of a first implementation flow of a method for receiving image data
  • FIG. 5 is a second schematic diagram of the implementation flow of the image data receiving method
  • FIG. 6 is a schematic diagram of an implementation flow of a method for sending and receiving image data
  • FIG. 7 is a schematic structural diagram of a first wireless terminal performing screen projection processing of image data
  • FIG. 8 is a schematic structural diagram of a second wireless terminal performing screen projection processing of image data
  • Fig. 9 is a schematic diagram of verification processing
  • FIG. 10 is a first structural diagram of a first wireless terminal
  • FIG. 11 is a second structural schematic diagram of the first wireless terminal
  • FIG. 12 is a first structural diagram of a second wireless terminal
  • FIG. 13 is a second structural schematic diagram of a second wireless terminal.
  • the current Wi-Fi projection solution is based on the traditional Wi-Fi direct connection technology, and the video data is compressed by the video encoding module.
  • Miracast is a wireless display standard based on Wi-Fi Direct.
  • 3C devices Common, Computer, Consumer
  • 3C devices that support this standard can share video screens wirelessly, for example, mobile phones can directly transfer videos or photos to TVs or Other devices do not need any connection wires, and do not need to go through a wireless hotspot (Access Point, AP).
  • AP Access Point
  • the data output from the source terminal (Source) to the screen will be directly transmitted to the receiver terminal (Sink) through Wi-Fi peer-to-peer (Peer-to-Peer) technology.
  • video data usually requires a large throughput
  • video or image data at the source end is usually compressed using a video encoder (H.264 or H.265) to reduce throughput.
  • Figure 1 is a schematic diagram of the implementation of Wi-Fi projection.
  • the mobile phone taking the mobile phone as the signal source and the smart TV as the receiving end as an example, the mobile phone can play video image data on the configured screen.
  • the encoder encodes the video image data, and then sends the encoded data to the Wi-Fi transmitter to be sent to the smart TV through the transmitting antenna.
  • the smart TV receives the encoded data sent by the mobile phone through the receiving antenna and Wi-Fi receiver, and then sends the encoded data to the decoder, and decodes to obtain the corresponding video image data, and the smart TV can process the video image data Display and playback, so that Wi-Fi projection can be realized.
  • the Wi-Fi projection technology has the disadvantage of large delay.
  • the delay mainly comes from two aspects: one is the encoding delay and the retransmission delay of signal transmission.
  • CSMA/CA Carrier Sense Multiple Access and Collision Avoidance
  • each transmission needs to compete for the air interface, especially for video data.
  • the required throughput rate is high, and high-order modulated Wi-Fi signals need to be used for carrying.
  • high-order modulated signals have high requirements on the signal-to-noise ratio.
  • the current Wi-Fi projection technology still has the problem of unstable image quality.
  • the H.264 encoding technology required for screen projection encodes images into I frames, B frames, and P frames.
  • the I frame is a key frame. Once the I frame is lost, the subsequent 29 frames will not be able to be decoded (calculated based on the usual I frame interval of 30), which will lead to problems such as video freezes and blurred screens.
  • the projection effect is poor and serious. affect user experience.
  • the image sending and receiving method proposed in this application uses Wi-Fi, OFDMA technology and video image layered transmission Combined, it can simultaneously take into account the image clarity and real-time performance of the projection screen.
  • the improvement of real-time performance mainly comes from: improving transmission robustness, reducing retransmission, and reducing the frequency of air interface competition.
  • a single Wi-Fi packet can only support a single MCS mode, so a high MCS mode is required for video projection.
  • the channel signal-to-noise ratio is required to be higher, and the retransmission is usually increased.
  • the retransmission rate of the system is equal to the retransmission rate of the low-order MCS mode corresponding to the profile data, thereby greatly reducing the retransmission rate.
  • the outline data and the detail data are separately packaged and sent, so they must compete for the air interface respectively.
  • profile data and detail data can be sent together in the same packet, and only need to compete for the air interface once; in addition, after the retransmission rate is reduced, the frequency of air interface competition is also effectively reduced.
  • the image sending and receiving method proposed in this application has high transmission robustness, low retransmission rate, and less air interface competition, which can greatly reduce transmission delay, thereby improving the effect of screen projection and effectively expanding the application of screen projection Scenes.
  • An embodiment of the present application provides a method for sending an image, and the method can be applied to a first wireless terminal, wherein the first wireless terminal can be any terminal device equipped with a display screen and supporting the Wi-Fi 6 protocol, for example: Tablet computer, mobile phone, e-reader, personal computer (Personal Computer, PC), notebook computer, car equipment, Internet TV, wearable device, personal digital assistant (Personal Digital Assistant, PDA), portable media player (Portable Media Player, PMP), navigation device, etc.
  • FIG. 2 is a first schematic diagram of an implementation flow of a method for sending image data.
  • the method for sending image data by a first wireless terminal may include the following steps:
  • Step 101 Perform layered encoding on image data to obtain a first data component and a second data component; wherein, the first data component represents contour data in the image data; the second data component represents detail data in the image data.
  • the first wireless terminal may perform layered coding processing on the image data, so as to obtain the first data component and the second data component corresponding to the image data.
  • the first wireless terminal may also display the image data through a display screen while performing layered coding processing on the image data.
  • the display screen configured by the first wireless terminal may also perform layered coding processing on the image data to obtain different data components after layered coding.
  • the first wireless terminal may be configured with a layered encoder for performing layered encoding processing, so that the layered encoder may be used to perform layered encoding processing on the image data.
  • the above image data may be image data of an image signal being displayed by the first wireless terminal, or may be image data of a video signal being played by the first wireless terminal.
  • different data components obtained after image data undergoes layered encoding can be used to represent different features in the image data, wherein the first data component can represent the image Contour data in the data; the second data component may represent detail data in the image data.
  • the layered encoder configured in the first wireless terminal may be a conventional JSCC encoder, a wavelet transform encoder, or other types of encoders.
  • JSCC encoder a conventional JSCC encoder
  • wavelet transform encoder a wavelet transform encoder
  • the JSCC encoder adopts joint coding technology, which can comprehensively consider source coding and channel coding.
  • the first wireless terminal may be configured with a JSCC encoder, and after the first wireless terminal uses the JSCC encoder to perform layered encoding processing on the image data, it can obtain the first data component Coarse used to represent the contour data in the image data, At the same time, the second data component Fine used to characterize the detail data in the image data can be obtained.
  • the wavelet transform encoder is a video encoder based on wavelet transform.
  • the first wireless terminal can be configured with a wavelet transform encoder, and the first wireless terminal can generate data with different resolutions after using the wavelet transform encoder to perform layered encoding processing on the image data, wherein It may include a first data component Coarse for characterizing outline data in the image data, and may also include a second data component Fine for characterizing detail data in the image data.
  • the first wireless terminal after the first wireless terminal performs layered coding processing on the image data by using other types of configured encoders with layered coding functions, it can also generate data with different resolutions, which may include
  • the first data component Coarse of the outline data in can also include the second data component Fine used to characterize the detail data in the image data.
  • Step 102 Perform modulation processing on the first data component according to the first modulation order to obtain first processed data; perform modulation processing on the second data component according to the second modulation order to obtain second processed data; wherein, the first A modulation order is smaller than a second modulation order.
  • the first wireless terminal after the first wireless terminal performs layered coding processing on the image data and obtains the first data component and the second data component corresponding to the image data, it can encode the second data component according to the first modulation order A data component is modulated to obtain first processed data; meanwhile, the second data component may be modulated according to a second modulation order to obtain second processed data.
  • Modulation Coding Scheme MCS
  • MCS Modulation Coding Scheme
  • the modulation scheme may include QPSK, 16QAM, 64QAM, 256QAM, 1024QAM, 4096QAM, etc., which are not specifically limited in this application.
  • the first wireless terminal can modulate the first data component according to a modulation scheme of QPSK, 16QAM or 64QAM; preferably, the first wireless terminal can modulate the second data component according to a modulation scheme of 256QAM, 1024QAM or 4096QAM deal with.
  • the first modulation order used when performing modulation processing on the first data component and the second data component respectively, may be smaller than the second adjustment order.
  • the first modulation order and the second modulation order may include 4, 16, 64, 256, 1024, 4096, etc., which are not specifically limited in this application.
  • the first data component is modulated by using the first modulation order to produce the first processed data corresponding to the contour data in the image data
  • the first processed data is produced by using the second modulation order
  • the two data components are modulated to produce second processed data corresponding to contour data in the image data.
  • Step 103 Generate a data packet corresponding to the image data according to the first processed data and the second processed data, and send the data packet to the second wireless terminal.
  • the first wireless terminal performs modulation processing on the first data component according to the first modulation order to obtain the first processed data; at the same time, the second The data component is modulated, and after the second processed data is obtained, a data packet corresponding to the image data may be further generated according to the first processed data and the second processed data, and then the data packet is sent to a second wireless terminal.
  • the first wireless terminal after the first wireless terminal obtains the first data component and the second data component corresponding to the image data through the layered coding process, it can assign the first data component and the second data component respectively Subsequent processing is performed on the resource units (Resource Unit, RU) corresponding to two users (User) of the same Orthogonal Frequency Division Multiple Access (OFDMA) packet.
  • Resource Unit Resource Unit
  • OFDMA divides the entire frequency band into many subcarriers, and converts the frequency selective fading channel into several flat fading subchannels, so that it can effectively resist the frequency selective fading in the wireless mobile environment. Because sub-carriers overlap and occupy spectrum, OFDM can provide higher spectrum utilization and higher information transmission rate. By assigning different subcarriers to different users, OFDMA provides a natural multiple access mode, and since different subcarriers are occupied, users are mutually orthogonal and there is no intra-cell interference. At the same time, OFDMA can support two subcarrier allocation modes: distributed and centralized. In the subcarrier distributed allocation mode, the independence of frequency selective fading of different subcarriers can be exploited to obtain diversity gain.
  • OFDMA subdivides the channel into smaller RUs. Through OFDMA resource subdivision, multiple clients can perform parallel transmission by occupying different RU resources.
  • the first wireless terminal can use different resource units RU to perform parallel transmission of the first processed data and the second processed data.
  • the first wireless terminal when the first wireless terminal sends the data packet to the second wireless terminal, it may send the first processed data to the second wireless terminal through the first resource unit; at the same time, it may Sending the second processed data to the second wireless terminal through a second resource unit.
  • the first resource unit and the second resource unit may include different time-frequency resource blocks.
  • the first wireless terminal may perform the first processed data and the second processed data based on the Wi-Fi 6 protocol. generation and dispatch. That is, the first wireless terminal modulates the first data component and the second data component based on the Wi-Fi 6 protocol; and sends the first processed data and the second processed data based on the Wi-Fi 6 protocol.
  • the first wireless terminal may perform the first processed data and the second processed data based on the Wi-Fi 7 protocol. generation and dispatch. That is, the first wireless terminal performs modulation processing on the first data component and the second data component based on the Wi-Fi 7 protocol; and sends the first processed data and the second processed data based on the Wi-Fi 7 protocol.
  • Wi-Fi 6 is the sixth generation of wireless network technology, which is the name of the Wi-Fi standard. It is a wireless local area network technology created by the Wi-Fi Alliance based on the IEEE 802.11 standard. Wi-Fi 6 mainly uses technologies such as OFDMA and multi-user-multiple-input multiple-output (Multi-User Multiple-Input Multiple-Output, MU-MIMO). MU-MIMO technology allows routers to communicate with multiple devices at the same time, instead of sequentially to communicate. MU-MIMO allows routers to communicate with four devices at once, and Wi-Fi 6 will allow communication with up to eight devices. Wi-Fi 6 also utilizes OFDMA (Orthogonal Frequency Division Multiple Access) and transmit beamforming, both of which work to improve efficiency and network capacity, respectively. Wi-Fi 6 can reach a maximum rate of 9.6Gbps.
  • OFDMA Orthogonal Frequency Division Multiple Access
  • Wi-Fi 6 A new technology in Wi-Fi 6 allows devices to schedule communications with routers, reducing the time it takes to keep antennas powered up to transmit and search for signals, which means less battery drain and improved battery life.
  • the first wireless terminal can The first resource unit corresponding to the first data component adopts a low-order modulation mode, and the second resource unit corresponding to the second data component adopts a high-order modulation mode.
  • the first wireless terminal may also configure resource sizes for the first resource unit and the second resource unit respectively.
  • the first wireless terminal may also configure and adjust the MCS corresponding to the first data component and the second data component, that is, set the first modulation order and the second modulation order.
  • the first wireless terminal can flexibly allocate bandwidth to the first data component and the second data component by adjusting the resource size of the RU and adjusting the MCS corresponding to different RUs.
  • the first wireless terminal generates a data packet corresponding to the image data according to the first processed data and the second processed data, and then directly sends the data packet to the second wireless terminal, Therefore, different data components of the image data can be sent in the same frame, thereby ensuring synchronous sending of the outline data and the detail data in the image data.
  • the second wireless terminal may be a screen projection device, that is, after receiving the data packet corresponding to the image data, the second wireless terminal may display the same image synchronously with the first wireless terminal data.
  • FIG. 3 is a schematic diagram of the second implementation flow of the image data sending method.
  • the method for sending image data by the first wireless terminal may further include the following steps:
  • Step 104 calculating a check value corresponding to the first data component.
  • Step 105 Generate a frame check sequence according to the check value, and add the frame check sequence to the first processed data.
  • the first wireless terminal before the first wireless terminal generates the data packet according to the first processed data and the second processed data, it can calculate the check value for the first data component, and then can calculate the check value according to the check value
  • the value generates a frame check sequence, so that the frame check sequence can be added to the first processed data, so that the second wireless terminal can perform check processing on the first data component.
  • the first wireless terminal may use a variety of different methods to calculate the check value of the first data component, for example, the first wireless terminal may use a cyclic redundancy check (Cyclic redundancy check) check, CRC) to calculate the check value.
  • CRC Cyclic redundancy check
  • CRC is a kind of checksum
  • the check value obtained by the first wireless terminal using CRC calculation is the remainder obtained by dividing two byte data streams by binary division (no carry, XOR is used instead of subtraction).
  • the dividend is the binary representation of the information data stream that needs to calculate the checksum, that is, the first processed data
  • the divisor is a predefined (short) binary number with a length of , usually represented by a coefficient of a polynomial.
  • the first wireless terminal may use the remainder obtained by CRC calculation as the frame check sequence FCS, and directly add the FCS after the first processed data.
  • the first wireless terminal may also use other verification methods to generate the verification value, which is not specifically limited in the present application.
  • the second wireless terminal may only perform an FCS check on the first processed data corresponding to the first data component and reply, correspondingly, the first wireless terminal Before the data packet corresponding to the image data is generated, the FCS may be generated and added only to the first processed data.
  • the second wireless terminal can use the first processed
  • the frame check sequence added in the data is checked, and after the check is successful, the first wireless terminal can receive the confirmation response sent by the second wireless terminal.
  • step 101 to step 105 since the more important contour data is modulated by using low-order MCS, in In non-ideal conditions, the robustness of transmission can be greatly improved; on the other hand, the profile data and detail data are sent simultaneously in the same packet, which effectively reduces the frequency of air interface competition; on the other hand, only the profile data corresponding After the first processing, the data is checked by FCS, so the retransmission rate can be effectively reduced.
  • the embodiment of the present application provides a method for sending and receiving image data, which separates the contour data and detail data in the image data through layered coding processing, and uses low-order MCS to modulate the more important contour data, so that it can Improve transmission robustness.
  • the method for sending and receiving image data proposed by this application has high transmission robustness, low retransmission rate, and less air interface competition, which can greatly reduce transmission delay, thereby improving
  • the effect of screen projection effectively expands the application scenarios of screen projection.
  • Yet another embodiment of the present application provides a method for sending and receiving image data, and the method can be applied to a second wireless terminal, wherein the second wireless terminal can be any terminal device supporting the Wi-Fi 6 protocol, for example: Tablet PC, mobile phone, e-reader, personal computer PC, notebook computer, car equipment, Internet TV, wearable device, personal digital assistant PDA, portable media player PMP, navigation device, etc.
  • the second wireless terminal can be any terminal device supporting the Wi-Fi 6 protocol, for example: Tablet PC, mobile phone, e-reader, personal computer PC, notebook computer, car equipment, Internet TV, wearable device, personal digital assistant PDA, portable media player PMP, navigation device, etc.
  • FIG. 4 is a schematic diagram of a first implementation flow of a method for receiving image data.
  • the method for receiving image data by a second wireless terminal may include the following steps:
  • Step 201 Receive a data packet corresponding to image data sent by a first wireless terminal; wherein, the data packet includes first processed data and second processed data.
  • the second wireless terminal may first receive a data packet corresponding to the image data sent by the first wireless terminal, and the data packet carries the first processed data and the second processed data.
  • the first processed data and the second processed data are modulated data.
  • the above image data may be image data of an image signal being displayed by the first wireless terminal, or may be image data of a video signal being played by the first wireless terminal.
  • the second wireless terminal when the second wireless terminal receives the data packet sent by the first wireless terminal and includes the first processed data and the second processed data, it can simultaneously use different resource units to perform The first processed data and the second processed data are received.
  • the second wireless terminal may receive the first processed data sent by the first wireless terminal through the first resource unit; meanwhile, the second wireless terminal may receive the second processed data sent by the first wireless terminal through the second resource unit.
  • the first wireless terminal allocates the first processed data and the second processed data to two different RUs corresponding to two users of the same OFDMA packet for transmission processing, corresponding Specifically, the second wireless terminal also receives data packets through two different RUs. That is to say, based on the same OFDMA packet, the second wireless terminal can use the first resource unit and the second resource unit to receive the first processed data and the second processed data in parallel.
  • the first resource unit and the second resource unit may include different time-frequency resource blocks.
  • the first processed data and the second processed data may be generated by performing modulation processing based on different MCSs.
  • the MCS corresponding to the first processed data and the MCS corresponding to the second processed data are different modulation schemes.
  • the modulation scheme may include QPSK, 16QAM, 64QAM, 256QAM, 1024QAM, 4096QAM, etc., which are not specifically limited in this application.
  • the first processed data may use an MCS of QPSK, 16QAM, or 64QAM; the second processed data may use an MCS of 256QAM, 1024QAM, or 4096QAM.
  • the first wireless terminal when generating the first processed data, may use a low-order modulation mode, and when generating the second processed data, the first wireless terminal may use a high-order modulation mode model. That is to say, the first modulation order used by the first wireless terminal to generate the first processed data may be smaller than the second modulation order used to generate the second processed data.
  • the first modulation order and the second modulation order may include 4, 16, 64, 256, 1024, 4096, etc., which are not specifically limited in this application.
  • the second wireless terminal needs to perform the first processed data and the described data based on the Wi-Fi 6 protocol or the Wi-Fi 7 protocol. Receiving of the second processed data.
  • Wi-Fi 6 mainly uses technologies such as OFDMA and MU-MIMO. It is precisely because both Wi-Fi 6 and Wi-Fi 7 protocols support OFDMA and support different users to use different MCS, so in this application , based on the Wi-Fi 6 protocol or the Wi-Fi 7 protocol, the second wireless terminal may receive the first processed data and the second processed data modulated by different MCSs through the first resource unit and the second resource unit.
  • Step 202 Perform demodulation processing on the first processed data to obtain a first data component; wherein, the first data component represents contour data in the image data.
  • the second wireless terminal may first demodulate the first processed data processing, so as to obtain the first data component corresponding to the image data.
  • the first data component obtained by the second wireless terminal after demodulating the first processed data may be Characterize contour data in image data.
  • the second wireless terminal can obtain different data components corresponding to the image data and representing different features by analyzing the data packets.
  • Step 203 Perform verification processing on the first data component to obtain a verification result.
  • the second wireless terminal after the second wireless terminal performs demodulation processing on the first processed data to obtain the first data component, it may perform verification processing on the first data component, thereby obtaining a verification result.
  • the second wireless terminal may first perform verification processing on the first data component, so as to determine whether the data transmission is correct according to the generated verification result.
  • the second wireless terminal when performing verification processing on the first data component, may first calculate the verification value corresponding to the first data component; The check value and the frame check sequence of the first processed data determine the check result.
  • the method for calculating the check value of the first data component by the first wireless terminal is the same as the method for calculating the check value of the first data component by the second wireless terminal.
  • the second wireless terminal may calculate the check value using CRC.
  • the second wireless terminal may determine the check result in combination with the frame check sequence FCS included in the first processed data.
  • the second wireless terminal since the first wireless terminal directly determines the check value as FCS, the second wireless terminal can directly compare the check value with FCS, and if the check value is the same as FCS, determine the check result is the verification success; if the verification value is different from the FCS, it is determined that the verification result is a verification failure.
  • the first wireless terminal and the second wireless terminal may also use other verification methods to generate the check value, which is not specifically limited in the present application.
  • the first processed data corresponds to the contour data in the image data
  • the second processed data corresponds to the detail data in the image data.
  • the degree of criticality of contour data is often higher than that of detail data; on the other hand, low-order modulation modes are used when generating the first processed data, and high-order modulation modes are used when generating the second processed data .
  • the second wireless terminal may choose to only perform verification processing on the first data component, and determine whether retransmission is required according to the obtained verification result, without performing verification processing on the second data component, that is, regardless of the second processing Whether there is a transmission error in the final data, as long as the verification result corresponding to the first data component is a successful verification, the second processed data will be demodulated, thereby reducing the probability of retransmission and further reducing the delay. Purpose.
  • the second wireless terminal in order to reduce the delay, can only perform FCS check on the received first processed data and reply. Before the generation, the FCS may be generated and added only to the first processed data.
  • Step 204 if the verification result is that the verification is successful, demodulate the second processed data to obtain a second data component, where the second data component represents the detail data in the image data.
  • the second wireless terminal after the second wireless terminal performs verification processing on the first data component to obtain the verification result, if the verification result is a successful verification, then the second wireless terminal can perform verification on the second processed data. Demodulate to obtain the corresponding second data component.
  • the second wireless terminal may directly perform demodulation processing on the second processed data, so as to obtain a second data component corresponding to the image data.
  • the basis for the second wireless terminal to determine whether to demodulate the second processed data is only the verification result corresponding to the first data component, that is, no matter whether the second processed data is Destruction, as long as the verification result of the first data component is a successful verification, the second wireless terminal will perform demodulation processing.
  • the first data component obtained by the second wireless terminal after demodulating the first processed data may be Characterize the contour data in the image data; since the second processed data corresponds to the detail data in the image data, the second data component obtained after the second wireless terminal demodulates the second processed data can represent the image data details in the data.
  • the second wireless terminal can obtain different data components corresponding to the image data and representing different features by analyzing the data packets.
  • FIG. 5 is a schematic diagram of the second implementation flow of the image data receiving method.
  • the second wireless terminal is performing verification processing on the first data component to obtain the verification result Afterwards, that is, after step 203, the method for the second wireless terminal to send image data may also include the following steps:
  • Step 206 If the verification result is that the verification is successful, send an acknowledgment response to the first wireless terminal.
  • the second wireless terminal after the second wireless terminal performs verification processing on the first data component to obtain the verification result, if the verification result is a successful verification, then it can be considered that the first processed data is in the process of being sent is not destroyed, then the second wireless terminal can send an acknowledgment response to the first wireless terminal.
  • the basis for the second wireless terminal to determine whether to send an acknowledgment response to the first wireless terminal is only the verification result corresponding to the first data component, that is, no matter whether the second processed data is destroyed during transmission, As long as the verification result of the first data component is a successful verification, the second wireless terminal will send an acknowledgment response.
  • the second wireless terminal may send the first The wireless terminal sends an acknowledgment (Acknowledgment, ACK); if the verification result is a verification failure, then the second wireless terminal can send a negative acknowledgment (Negative-Acknowledgment, NACK) to the first wireless terminal, and discard the data packet corresponding to the image data , not performing demodulation processing on the second processed data.
  • ACK acknowledgment
  • NACK negative acknowledgment
  • the ACK character is a character used as a confirmation message under some communication protocols, and some communication protocols use other characters; NACK is a protocol message used in digital communication. Its function is as a response to confirm the receipt of data, but it is a message signal indicating that there is a small error.
  • Step 205 Perform combined decoding processing on the first data component and the second data component to obtain image data.
  • the combined decoding process can be performed on the first data component and the second data component, so that image data can be obtained.
  • the second wireless terminal may be configured with a layered decoder for performing combined decoding processing, so that the layered decoder may be used to perform combined decoding of the first data component and the second data component deal with.
  • the layered decoder configured in the second wireless terminal may be a conventional JSCC decoder, a wavelet transform decoder, or other types of decoders. This application does not make specific limitations.
  • the second wireless terminal may be configured with a JSCC decoder, and after the second wireless terminal simultaneously inputs the first data component Coarse representing the outline data and the second data component Fine representing the detail data into the JSCC decoder for combined decoding processing , the corresponding image data can be obtained.
  • the second wireless terminal may be configured with a wavelet transform decoder, and the second wireless terminal simultaneously inputs the first data component Coarse representing the contour data and the second data component Fine representing the detail data into the wavelet transform decoder for combined decoding After processing, the corresponding image data can be obtained.
  • the second wireless terminal may be configured with other types of decoders with a layered decoding function, and the decoder may also perform combined decoding processing on data with different resolutions at the same time, for example, the first data component representing contour data Coarse and the second data component Fine representing the detail data are decoded to obtain corresponding image data.
  • the second The method for the wireless terminal to send image data may also include the following steps:
  • Step 207 display image data.
  • the second wireless terminal after the second wireless terminal completes the analysis and acquisition of the image data, it can display the image data synchronously with the first wireless terminal, so that the image data transfer from the first wireless terminal to the second wireless terminal can be completed. Screencasting processing.
  • the first wireless terminal is a screen projection device
  • the second wireless terminal is a screen projection device.
  • step 201 to step 206 since the more important contour data is modulated by using low-order MCS, the robustness of transmission can be greatly improved; on the other hand, the profile data and detail data are sent simultaneously in the same packet, which effectively reduces the frequency of air interface competition; on the other hand, only the profile data corresponding After the first processing, the data is checked by FCS, so the retransmission rate can be effectively reduced.
  • the embodiment of the present application provides a method for sending and receiving image data, which separates the contour data and detail data in the image data through layered coding processing, and uses low-order MCS to modulate the more important contour data, so that it can Improve transmission robustness.
  • the method for sending and receiving image data proposed by this application has high transmission robustness, low retransmission rate, and less air interface competition, which can greatly reduce transmission delay, thereby improving
  • the effect of screen projection effectively expands the application scenarios of screen projection.
  • another embodiment of the present application provides a method for sending and receiving image data, the method can be applied to the first wireless terminal and the second wireless terminal, wherein the first wireless terminal can be any The display screen, the terminal device supporting the Wi-Fi 6 protocol, the second wireless terminal can be any terminal device supporting the Wi-Fi 6 protocol, the first wireless terminal is the screen projection device, and the second wireless terminal is the screen projected device.
  • the first wireless terminal can be any The display screen
  • the second wireless terminal can be any terminal device supporting the Wi-Fi 6 protocol
  • the first wireless terminal is the screen projection device
  • the second wireless terminal is the screen projected device.
  • Fig. 6 is a schematic diagram of an implementation process of a method for sending and receiving image data.
  • the method for sending and receiving image data by a first wireless terminal and a second wireless terminal may include the following steps :
  • Step 301 the first wireless terminal performs layered coding processing on image data to obtain a first data component and a second data component.
  • the first wireless terminal may perform layered coding processing on the image data, so as to obtain the first data component and the second data component corresponding to the image data.
  • the first wireless terminal may be configured with a layered encoder for performing layered encoding processing, so that the layered encoder may be used to perform layered encoding processing on the image data.
  • the above image data may be image data of an image signal being displayed by the first wireless terminal, or may be image data of a video signal being played by the first wireless terminal.
  • the first data component may represent contour data in the image data; the second data component may represent detail data in the image data.
  • Step 302 the first wireless terminal modulates the first data component according to the first modulation order to obtain the first processed data; performs modulation processing on the second data component according to the second modulation order to obtain the second processed data .
  • the first wireless terminal after the first wireless terminal performs layered coding processing on the image data and obtains the first data component and the second data component corresponding to the image data, it can encode the first data according to the first modulation order
  • the component is modulated to obtain the first processed data; at the same time, the second data component can be modulated according to the second modulation order to obtain the second processed data.
  • Step 303 the first wireless terminal calculates a check value corresponding to the first data component.
  • Step 304 the first wireless terminal generates a frame check sequence according to the check value, and adds the frame check sequence to the first processed data.
  • the first wireless terminal can calculate the check value for the first processed data, and then can generate a frame check sequence according to the check value, so that the frame check sequence can be added to the first processing In the latter data, the second wireless terminal can perform verification processing on the first data component.
  • Step 305 the first wireless terminal sends the first processed data and the second processed data to the second wireless terminal.
  • the first wireless terminal may further generate the image data according to the first processed data and the second processed data corresponding data packets, and then send the data packets to the second wireless terminal.
  • the first wireless terminal may use different RUs to send the first processed data and the second processed data in parallel. For example, when the first wireless terminal sends the data packet to the second wireless terminal, it can send the first processed data to the second wireless terminal through the first resource unit; The second processed data is sent to the second wireless terminal.
  • the second wireless terminal when the second wireless terminal receives the data packet sent by the first wireless terminal and includes the first processed data and the second processed data, it can simultaneously use different resource units to perform the first processing The post data and the reception of the second processed data.
  • the second wireless terminal may receive the first processed data sent by the first wireless terminal through the first resource unit; at the same time, the second wireless terminal may receive the first processed data sent by the first wireless terminal through the second resource unit. The second processed data.
  • Step 306 the second wireless terminal demodulates the first processed data to obtain the first data component.
  • the second wireless terminal may first demodulate the first processed data processing, so as to obtain the first data component corresponding to the image data.
  • the first data component represents contour data in the image data.
  • Step 307 the second wireless terminal performs verification processing on the first data component, and obtains a verification result.
  • the second wireless terminal after the second wireless terminal performs demodulation processing on the first processed data to obtain the first data component, it may perform verification processing on the first data component to obtain a verification result, and then according to The generated checksum results determine whether the data transfer was correct.
  • the first processed data corresponds to the contour data in the image data
  • the second processed data corresponds to the detail data in the image data.
  • the degree of criticality of contour data is often higher than that of detail data; on the other hand, low-order modulation modes are used when generating the first processed data, and high-order modulation modes are used when generating the second processed data .
  • the second wireless terminal may choose to only perform verification processing on the first data component, and determine whether retransmission is required according to the obtained verification result, without performing verification processing on the second data component, that is, regardless of the second processing Whether there is a transmission error in the final data, as long as the verification result corresponding to the first data component is a successful verification, the second processed data will be demodulated, thereby reducing the probability of retransmission and further reducing the delay. Purpose.
  • Step 308 If the verification result is that the verification is successful, the second wireless terminal sends an ACK to the first wireless terminal.
  • Step 309 the second wireless terminal demodulates the second processed data to obtain a second data component.
  • the second wireless terminal may send an ACK to the first wireless terminal, and at the same time, the second wireless terminal may send an ACK to the second processed
  • the data is demodulated to obtain the second data component.
  • the order of performing step 308 and step 309 is not limited.
  • Step 310 the second wireless terminal performs combined decoding processing on the first data component and the second data component to obtain image data.
  • the second wireless terminal may be configured with a layered decoder for performing combined decoding processing, so that the layered decoder may be used to perform combined decoding processing on the first data component and the second data component, and obtain image data.
  • Step 311 the second wireless terminal displays image data.
  • the second wireless terminal after the second wireless terminal completes the analysis and acquisition of the image data, it can display the image data synchronously with the first wireless terminal, so that the image data transfer from the first wireless terminal to the second wireless terminal can be completed. Screencasting processing.
  • the embodiment of the present application provides a method for sending and receiving image data, which separates the contour data and detail data in the image data through layered coding processing, and uses low-order MCS to modulate the more important contour data, so that it can Improve transmission robustness.
  • the method for sending and receiving image data proposed by this application has high transmission robustness, low retransmission rate, and less air interface competition, which can greatly reduce transmission delay, thereby improving
  • the effect of screen projection effectively expands the application scenarios of screen projection.
  • FIG. 7 is a schematic structural diagram of the first wireless terminal performing screen projection processing of image data.
  • the first wireless terminal may be equipped with a display, a layered coding device and a Wi-Fi transmitting module, wherein, for the input image data, the first wireless terminal may use a layered encoder to perform layered encoding processing on the image data while using the display to display the image data, so as to obtain the Coarse component ( The first data component used to characterize the outline data) and the Fine component (the second data component used to characterize the detail data), and then the Coarse component and the Fine component are sent to the Wi-Fi transmitting module together, and the Wi-Fi transmitting module will The Coarse component and the Fine component are assigned to two different resource units RU (the first resource unit RU1 and the second resource unit RU2) corresponding to the User (the first user User1 and the second user User2) of the same OFDMA packet for transmission
  • the Coarse component and the Fine component are assigned to two different resource units RU (the first
  • both Wi-Fi 6 protocol and Wi-Fi 7 protocol support OFDMA, and support different users to use different MCS. Therefore, RU1 corresponding to the Coarse component can adopt a low-order modulation mode, corresponding to generated data 1 (first processed data), and RU2 corresponding to the Fine component can adopt a high-order modulation mode, corresponding to generated data 2 (second processed data).
  • the layered encoder can be a conventional JSCC encoder (for generating Coarse components, Fine components), or a wavelet transform encoder, or other types of encoders (for generating multi-resolution rate data, corresponding to the outline and detail parts of the image respectively).
  • the Coarse component represents the contour part of the image and belongs to key data.
  • the Coarse component can be modulated by low-order MCS, and can maintain high transmission robustness in non-ideal environments. property;
  • the Fine component represents the microscopic details of the image, and is sent using high-order MCS modulation.
  • the receiver can solve all the detailed data, and the image quality is good; while in the case of an unsatisfactory channel,
  • the decoded data contains some erroneous bit information, and the corresponding image quality is degraded. In the case of few error bits, although there is a certain error in the QAM demodulation constellation judgment, it will not deviate too far, so the image quality degradation is not obvious, and there will be no serious freeze and blur caused by retransmission.
  • the first wireless terminal can implement flexible bandwidth allocation for the Coarse component and the Fine component by adjusting the sizes of RU1 and RU2 and the MCS modes used by different components.
  • the data 1 corresponding to the Coarse component and the data 2 corresponding to the Fine component are sent to the second wireless terminal in the same frame, which can also ensure the synchronous sending of the Coarse component and the Fine component.
  • Fig. 8 is a schematic structural diagram of the second wireless terminal performing screen projection processing of image data.
  • the second wireless terminal may be configured with a layered decoder and a Wi-Fi receiving module, wherein the Wi-Fi receiving module receives
  • the first wireless terminal sends the data packets including data 1 and data 2 through the first resource unit RU1 and the second resource unit RU2 of two users User (the first user User1 and the second user User2)
  • the data 1 and data 2 are analyzed to obtain the Coarse component corresponding to data 1 and the Fine component corresponding to data 2
  • the second wireless terminal further combines the Coarse component (used to characterize the first data component of the contour data) and the Fine component (used to The second data component representing the detail data) is input to the layered decoder for combined decoding processing, so that the corresponding image data can be restored, and the image data is displayed, so as to complete the image processing from the first wireless terminal to the second wireless terminal.
  • Screen projection processing of data is performed by the data packets including data
  • the second wireless terminal can also make certain adaptations to the Wi-Fi response mechanism to achieve the purpose of reducing delay.
  • the second wireless terminal The Wi-Fi receiving module can only perform FCS check on the data of the Coarse component and send ACK, and does not perform FCS check on the data of the Fine component, thereby reducing the probability of retransmission and reducing the delay.
  • FIG. 9 is a schematic diagram of verification processing.
  • the first wireless terminal sends a data packet including data 1 and data 2 to the second wireless terminal, wherein the first wireless terminal passes the first user
  • the first resource unit RU1 corresponding to User1 transmits data 1, and at the same time transmits data 2 through the second resource unit RU2 corresponding to the second user User2.
  • a request to send (Require To Send, RTS) is an output signal used to indicate that the device is ready to receive;
  • CTS clear to send
  • RTS of the first wireless terminal is connected to the CTS of the second wireless terminal; the CTS of the first wireless terminal is connected to the RTS of the second wireless terminal.
  • the former signal controls the transmission of the second wireless terminal, and the latter signal controls the transmission of the first wireless terminal.
  • the second wireless terminal For the transmission of the second wireless terminal (receiving by the first wireless terminal), if the first wireless terminal sends an RTS signal (meaning to notify the second wireless terminal to stop sending) when the receiving buffer is almost full, the second wireless terminal detects it through CTS The signal stops sending; after a period of time, the first wireless terminal receives a free buffer and sends an RTS signal to instruct the second wireless terminal to start sending data. The first wireless terminal sends (the second wireless terminal receives) similarly.
  • RTS signal meaning to notify the second wireless terminal to stop sending
  • the second wireless terminal may perform an FCS check on data 1 in the data packet and send an ACK, That is, only the data corresponding to the Coarse component is ACKed.
  • the ACK implementation scheme includes but is not limited to the following forms: the second wireless terminal only sends a single-packet ACK; or, the second wireless terminal sends an ACK in MU format, and the data of the two users are simultaneously processed ACK.
  • the data format of the PHY layer and the MAC layer borrows the data format of multiple users for transmission .
  • the data of different users use different MCS modes: the Coarse component has a small amount of data, but requires high reliability, that is, the ACK mechanism; the Fine component has a large amount of data, but because it is detailed data, some data is allowed to be lost. Therefore no ACK mechanism is required.
  • the second wireless terminal only performs an FCS checksum response to the Coarse component.
  • the second wireless terminal after the second wireless terminal receives the data of the Coarse component and checks that the FCS is passed, it will respond with ACK/BA; the second wireless terminal can send ACKs in various formats, all of which are considered equivalent Behavior, because actually only do ACK for the Coarse component.
  • the method for sending and receiving image data proposed in this application can capture air interface packets for confirmation in the Wi-Fi projection scenario of point-to-point communication, that is, this application uses a multi-user data frame format based on point-to-point communication ; and the receiver side replies with a single-packet ACK (if the receiver replies with MU-ACK, it is considered equivalent).
  • the embodiment of the present application provides a method for sending and receiving image data, which separates the contour data and detail data in the image data through layered coding processing, and uses low-order MCS to modulate the more important contour data, so that it can Improve transmission robustness.
  • the method for sending and receiving image data proposed by this application has high transmission robustness, low retransmission rate, and less air interface competition, which can greatly reduce transmission delay, thereby improving
  • the effect of screen projection effectively expands the application scenarios of screen projection.
  • FIG. 10 is a first schematic diagram of the composition and structure of the first wireless terminal.
  • the first wireless terminal 10 proposed in the embodiment of the present application may include a coding unit 11, Modulation unit 12, generating unit 13, sending unit 14,
  • the encoding unit 11 is configured to perform layered encoding processing on image data to obtain a first data component and a second data component; wherein, the first data component represents contour data in the image data; the second The two data components characterize the detail data in the image data;
  • the modulation unit 12 is configured to perform modulation processing on the first data component according to a first modulation order to obtain first processed data; perform modulation processing on the second data component according to a second modulation order, Obtaining second processed data; wherein, the first modulation order is smaller than the second modulation order;
  • the generating unit 13 is configured to generate a data packet corresponding to the image data according to the first processed data and the second processed data;
  • the sending unit 14 is configured to send the data packet to the second wireless terminal.
  • FIG. 11 is a second schematic diagram of the composition structure of the first wireless terminal.
  • the first wireless terminal 10 proposed in the embodiment of the present application may also include a first processor 15, a There is a first memory 16 with instructions executable by the first processor 15. Further, the first wireless terminal 10 may also include a first communication interface 17, and is used to connect the first processor 15, the first memory 16 and the first communication interface. The first bus 18 of the interface 17 .
  • the first processor 15 is configured to perform layered coding processing on the image data to obtain a first data component and a second data component; wherein, the first data component Representing contour data in the image data; the second data component representing detail data in the image data; performing modulation processing on the first data component according to a first modulation order to obtain first processed data; Perform modulation processing on the second data component according to a second modulation order to obtain second processed data; wherein, the first modulation order is smaller than the second modulation order; according to the first processed data and the obtained Generate a data packet corresponding to the image data from the second processed data, and send the data packet to the second wireless terminal.
  • FIG. 12 is a schematic diagram of the composition and structure of the second wireless terminal.
  • the second wireless terminal 20 proposed in the embodiment of the present application may include a receiving unit 21 and a verification unit 22 , demodulation unit 23, decoding unit 24,
  • the receiving unit 21 is configured to receive a data packet corresponding to the image data sent by the first wireless terminal; wherein, the data packet includes first processed data and second processed data;
  • the demodulation unit 23 is configured to demodulate the first processed data to obtain a first data component; wherein the first data component represents contour data in the image data;
  • the verification unit 22 is configured to perform verification processing on the first data component to obtain a verification result
  • the demodulation unit 23 is further configured to demodulate the second processed data to obtain a second data component if the verification result is a successful verification; wherein the second data component characterizing detail data in the image data;
  • the decoding unit 24 is configured to perform combined decoding processing on the first data component and the second data component to obtain the image data.
  • FIG. 13 is a second schematic diagram of the composition structure of the second wireless terminal.
  • the second wireless terminal 20 proposed in the embodiment of the present application may also include a second processor 25, a memory There is a second memory 26 with instructions executable by the second processor 25.
  • the second wireless terminal 20 may also include a second communication interface 27, and is used to connect the second processor 25, the second memory 26 and the second communication interface.
  • a second bus 28 for the interface 27 may be used to connect the second processor 25, the second memory 26 and the second communication interface.
  • the second processor 25 is configured to receive a data packet corresponding to the image data sent by the first wireless terminal; wherein, the data packet includes the first processed data and the second Two processed data; performing demodulation processing on the first processed data to obtain a first data component; wherein, the first data component represents the contour data in the image data; performing a demodulation process on the first data component Verifying processing to obtain a verification result; if the verification result is a successful verification, demodulate the second processed data to obtain a second data component; wherein the second data component represents the The detailed data in the image data; performing combined decoding processing on the first data component and the second data component to obtain the image data.
  • the above-mentioned processor may be an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a digital signal processor (Digital Signal Processor, DSP), a digital signal processing device (Digital Signal Processing Device, DSPD) , Programmable Logic Device (ProgRAMmable Logic Device, PLD), Field Programmable Gate Array (Field ProgRAMmable Gate Array, FPGA), Central Processing Unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor in at least one.
  • ASIC Application Specific Integrated Circuit
  • DSP Digital Signal Processor
  • DSPD Digital Signal Processing Device
  • PLD Programmable Logic Device
  • Field Programmable Gate Array Field ProgRAMmable Gate Array
  • CPU Central Processing Unit
  • controller microcontroller, microprocessor in at least one.
  • the memory may be connected to the processor, wherein the memory is used to store executable program code, the program code includes computer operation instructions, the memory may include a high-speed RAM memory, and may also include a non-volatile memory, for example, at least two magnetic disk memories .
  • the bus is used to connect the communication interface, the processor and the memory, and the mutual communication between these devices.
  • the memory is used to store instructions and data.
  • the above-mentioned memory can be a volatile memory (volatile memory), such as a random access memory (Random-Access Memory, RAM); or a non-volatile memory (non-volatile memory), such as a read-only memory ( Read-Only Memory, ROM), flash memory (flash memory), hard disk (Hard Disk Drive, HDD) or solid-state drive (Solid-State Drive, SSD); or a combination of the above types of memory, and provide instructions to the processor and data.
  • volatile memory such as a random access memory (Random-Access Memory, RAM); or a non-volatile memory (non-volatile memory), such as a read-only memory ( Read-Only Memory, ROM), flash memory (flash memory), hard disk (Hard Disk Drive, HDD) or solid-state drive (Solid-State Drive, SSD); or a combination of the above types of memory, and provide instructions to the processor and data.
  • each functional module in this embodiment may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software function modules.
  • the integrated unit is implemented in the form of a software function module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the technical solution of this embodiment is essentially or The part contributed by the prior art or the whole or part of the technical solution can be embodied in the form of software products, the computer software products are stored in a storage medium, and include several instructions to make a computer device (which can be a personal A computer, a server, or a network device, etc.) or a processor (processor) executes all or part of the steps of the method of this embodiment.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read only memory (Read Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other various media that can store program codes.
  • the embodiment of the present application provides a first wireless terminal and a second wireless terminal, which separate the contour data and detail data in the image data through layered coding processing, and use low-order MCS to modulate the more important contour data, In this way, the robustness of the transmission can be improved.
  • the resource unit in the same OFDMA packet is used to transmit the outline data and the detail data, and only the FCS check is performed on the first processed data corresponding to the outline data, on the basis of effectively reducing the retransmission rate
  • it can also reduce the frequency of air interface competition, that is to say, the method for sending and receiving image data proposed in this application has high transmission robustness, low retransmission rate, and less air interface competition, which can greatly reduce transmission delay, thereby It can improve the effect of screen projection and effectively expand the application scenarios of screen projection.
  • An embodiment of the present application provides a computer-readable storage medium on which a program is stored, and when the program is executed by a processor, the method for sending and receiving image data as described above is implemented.
  • the program instructions corresponding to a method for sending and receiving image data in this embodiment may be stored on a storage medium such as an optical disc, a hard disk, or a USB flash drive.
  • a storage medium such as an optical disc, a hard disk, or a USB flash drive.
  • the first data component represents contour data in the image data
  • the second data component represents the image details in the data
  • the verification result is a successful verification, demodulating the second processed data to obtain a second data component; wherein the second data component represents the detail data in the image data;
  • An embodiment of the present application provides a chip, which includes a processor and an interface, the processor acquires program instructions through the interface, and the processor is used to run the program instructions to implement the method for sending and receiving image data as described above.
  • the embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) having computer-usable program code embodied therein.
  • a computer-usable storage media including but not limited to disk storage and optical storage, etc.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions
  • the device realizes the function specified in implementing one or more procedures of the flowchart and/or one or more blocks of the block diagram.
  • the contour data and detail data in the image data are separated through layered coding processing, and the more important contour data is modulated by using low-order MCS, so that the robustness of transmission can be improved.
  • it can also reduce the frequency of air interface competition.
  • the image sending and receiving method proposed in this application has high transmission robustness, low retransmission rate, and less air interface competition, which can greatly reduce transmission delay, thereby improving the effect of screen projection and effectively expanding the application of screen projection Scenes.

Abstract

Disclosed in embodiments of the present application are an image data sending method, an image data receiving method, a terminal, a chip, and a storage medium. A first wireless terminal performs hierarchical encoding on image data to obtain a first data component and a second data component, modulates the first data component according to a first modulation order to obtain first processed data, modulates the second data component according to a second modulation order to obtain second processed data, and generates a data packet corresponding to the image data according to the first processed data and the second processed data and sends the data packet to a second wireless terminal. The second wireless terminal demodulates the first processed data to obtain the first data component and verifies the first data component to obtain a verification result, if the verification result is "succeeding in verification", demodulates the second processed data to obtain the second data component, and combines and decodes the first data component and the second data component to obtain the image data.

Description

图像数据的发送和接收方法、终端、芯片及存储介质Image data sending and receiving method, terminal, chip and storage medium
相关申请的交叉引用Cross References to Related Applications
本申请基于申请号为202110546189.4、申请日为2021年5月19日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is based on a Chinese patent application with application number 202110546189.4 and a filing date of May 19, 2021, and claims the priority of this Chinese patent application. The entire content of this Chinese patent application is hereby incorporated by reference into this application.
技术领域technical field
本申请涉及通信技术领域,尤其涉及一种图像数据的发送和接收方法、终端、芯片及存储介质。The present application relates to the technical field of communication, and in particular to a method for sending and receiving image data, a terminal, a chip and a storage medium.
背景技术Background technique
目前,在无线通信系统中,无线局域网技术(WLAN technology based on 802.11,Wi-Fi)投屏方案基于传统的Wi-Fi直连(Wi-Fi Direct)技术,并通过视频编码模块对视频数据进行压缩。At present, in the wireless communication system, the WLAN technology based on 802.11 (Wi-Fi) screen projection solution is based on the traditional Wi-Fi Direct (Wi-Fi Direct) technology, and the video data is processed by the video encoding module. compression.
然而,现有的Wi-Fi投屏技术存在延时较大的缺点,因此仅仅可以应用于无需实时性的场景,如播放电影等,而无法应用于要求实时性的场景,如在线手机游戏等。However, the existing Wi-Fi projection technology has the disadvantage of large delay, so it can only be applied to scenarios that do not require real-time performance, such as playing movies, etc., but cannot be applied to scenarios that require real-time performance, such as online mobile games, etc. .
可见,如何降低Wi-Fi投屏技术的延时,进而提高投屏效果、扩大投屏应用场景,成为亟待解决的问题。It can be seen that how to reduce the delay of the Wi-Fi screen projection technology, thereby improving the projection effect and expanding the application scenarios of the screen projection has become an urgent problem to be solved.
发明内容Contents of the invention
本申请实施例提供了一种图像数据的发送和接收方法、终端、芯片及存储介质。Embodiments of the present application provide a method for sending and receiving image data, a terminal, a chip, and a storage medium.
本申请实施例的技术方案是这样实现的:The technical scheme of the embodiment of the application is realized in this way:
第一方面,本申请实施例提供了一种在第一无线终端中发送图像数据的方法,所述方法包括:In a first aspect, an embodiment of the present application provides a method for sending image data in a first wireless terminal, the method including:
对所述图像数据进行分层编码处理,获得第一数据分量和第二数据分量;其中,所述第一数据分量表征所述图像数据中的轮廓数据;所述第二数据分量表征所述图像数据中的细节数据;performing layered encoding processing on the image data to obtain a first data component and a second data component; wherein, the first data component represents contour data in the image data; the second data component represents the image details in the data;
按照第一调制阶数对所述第一数据分量进行调制处理,获得第一处理后数据;按照第二调制阶数对所述第二数据分量进行调制处理,获得第二处理后数据;其中,第一调制阶数小于所述第二调制阶数;performing modulation processing on the first data component according to a first modulation order to obtain first processed data; performing modulation processing on the second data component according to a second modulation order to obtain second processed data; wherein, the first modulation order is smaller than the second modulation order;
根据所述第一处理后数据和所述第二处理后数据生成所述图像数据对应的数据包,并将所述数据包发送至第二无线终端。Generate a data packet corresponding to the image data according to the first processed data and the second processed data, and send the data packet to a second wireless terminal.
第二方面,本申请实施例提供了一种在第二无线终端中接收图像数据的方法,所述方法应用于第二无线终端中,所述方法包括:In a second aspect, the embodiment of the present application provides a method for receiving image data in a second wireless terminal, the method is applied in the second wireless terminal, and the method includes:
接收第一无线终端发送的所述图像数据对应的数据包;其中,所述数据包包括第一处理后数据和第二处理后数据;Receive a data packet corresponding to the image data sent by the first wireless terminal; wherein the data packet includes first processed data and second processed data;
对所述第一处理后数据进行解调处理,获得第一数据分量;其中,所述第一数据分量表征所述图像数据中的轮廓数据;Demodulating the first processed data to obtain a first data component; wherein the first data component represents contour data in the image data;
对所述第一数据分量进行校验处理,获得校验结果;performing verification processing on the first data component to obtain a verification result;
若所述校验结果为校验成功,则对所述第二处理后数据进行解调处理,获得第二数据分量;其中,所述第二数据分量表征所述图像数据中的细节数据;If the verification result is a successful verification, demodulating the second processed data to obtain a second data component; wherein the second data component represents the detail data in the image data;
对所述第一数据分量和所述第二数据分量进行合并解码处理,获得所述图像数据。performing combined decoding processing on the first data component and the second data component to obtain the image data.
第三方面,本申请实施例提供了一种第一无线终端,所述第一无线终端包括:编码单元,调制单元,生成单元,发送单元,In a third aspect, an embodiment of the present application provides a first wireless terminal, where the first wireless terminal includes: a coding unit, a modulating unit, a generating unit, and a sending unit,
所述编码单元,被配置为对图像数据进行分层编码处理,获得第一数据分量和第二数据分量;其中,所述第一数据分量表征所述图像数据中的轮廓数据;所述第二数据分量表征所述图像数据中的细节数据;The coding unit is configured to perform layered coding processing on image data to obtain a first data component and a second data component; wherein, the first data component represents contour data in the image data; the second The data component characterizes detail data in the image data;
所述调制单元,被配置为按照第一调制阶数对所述第一数据分量进行调制处理,获得第一处理后数据;按照第二调制阶数对所述第二数据分量进行调制处理,获得第二处理后数据;其中,第一调制阶数小于所述第二调制阶数;The modulation unit is configured to perform modulation processing on the first data component according to a first modulation order to obtain first processed data; perform modulation processing on the second data component according to a second modulation order to obtain second processed data; wherein, the first modulation order is smaller than the second modulation order;
所述生成单元,被配置为根据所述第一处理后数据和所述第二处理后数据生成所述图像数据对应的数据包;The generating unit is configured to generate a data packet corresponding to the image data according to the first processed data and the second processed data;
所述发送单元,被配置为将所述数据包发送至第二无线终端。The sending unit is configured to send the data packet to a second wireless terminal.
第四方面,本申请实施例提供了一种第一无线终端,所述第一无线终端包括第一处理器、存储有所述第一处理器可执行指令的第一存储器,当所述指令被所述第一处理器执行时,实现如第一方面所述的方法。In a fourth aspect, the embodiment of the present application provides a first wireless terminal. The first wireless terminal includes a first processor and a first memory storing instructions executable by the first processor. When the instructions are executed When the first processor executes, implement the method as described in the first aspect.
第五方面,本申请实施例提供了一种第二无线终端,所述第二无线终端包括:接收单元,校验单元,解调单元,解码单元,In a fifth aspect, the embodiment of the present application provides a second wireless terminal, where the second wireless terminal includes: a receiving unit, a checking unit, a demodulating unit, and a decoding unit,
所述接收单元,被配置为接收第一无线终端发送的图像数据对应的数据包;其中,所述数据包包括第一处理后数据和第二处理后数据;The receiving unit is configured to receive a data packet corresponding to the image data sent by the first wireless terminal; wherein the data packet includes first processed data and second processed data;
所述解调单元,被配置为对所述第一处理后数据进行解调处理,获得第一数据分量;其中,所述第一数据分量表征所述图像数据中的轮廓数据;The demodulation unit is configured to demodulate the first processed data to obtain a first data component; wherein the first data component represents contour data in the image data;
所述校验单元,被配置为对所述第一数据分量进行校验处理,获得校验结果;The verification unit is configured to perform verification processing on the first data component to obtain a verification result;
所述解调单元,还被配置为若所述校验结果为校验成功,则对所述第二处理后数据进行解调处理,获得第二数据分量;其中,所述第二数据分量表征所述图像数据中的细节数据;The demodulation unit is further configured to demodulate the second processed data to obtain a second data component if the verification result is a successful verification; wherein the second data component represents detail data in said image data;
所述解码单元,被配置为对所述第一数据分量和所述第二数据分量进行合并解码处理,获得所述图像数据。The decoding unit is configured to perform combined decoding processing on the first data component and the second data component to obtain the image data.
第六方面,本申请实施例提供了一种第二无线终端,所述第二无线终端包括第二处理器、存储有所述第二处理器可执行指令的第二存储器,当所述指令被所述第二处理器执行时,实现如第二方面所述的方法。In a sixth aspect, the embodiment of the present application provides a second wireless terminal, where the second wireless terminal includes a second processor and a second memory storing instructions executable by the second processor. When the instructions are executed When the second processor executes, implement the method as described in the second aspect.
第七方面,本申请实施例提供了一种芯片,所述芯片包括处理器和接口,所述处理器通过所述接口获取程序指令,所述处理器用于运行所述程序指令,以执行如第一方面或第二方面所述的方法。In the seventh aspect, the embodiment of the present application provides a chip, the chip includes a processor and an interface, the processor obtains program instructions through the interface, and the processor is used to run the program instructions to execute the The method described in one aspect or the second aspect.
附图说明Description of drawings
图1为Wi-Fi投屏的实现示意图;Figure 1 is a schematic diagram of the implementation of Wi-Fi projection;
图2为图像数据的发送方法的实现流程示意图一;FIG. 2 is a first schematic diagram of the implementation flow of the method for sending image data;
图3为图像数据的发送方法的实现流程示意图二;FIG. 3 is a second schematic diagram of the implementation flow of the method for sending image data;
图4为图像数据的接收方法的实现流程示意图一;FIG. 4 is a schematic diagram of a first implementation flow of a method for receiving image data;
图5为图像数据的接收方法的实现流程示意图二;FIG. 5 is a second schematic diagram of the implementation flow of the image data receiving method;
图6为图像数据的发送和接收方法的实现流程示意图;FIG. 6 is a schematic diagram of an implementation flow of a method for sending and receiving image data;
图7为第一无线终端进行图像数据投屏处理的结构示意图;7 is a schematic structural diagram of a first wireless terminal performing screen projection processing of image data;
图8为第二无线终端进行图像数据投屏处理的结构示意图;FIG. 8 is a schematic structural diagram of a second wireless terminal performing screen projection processing of image data;
图9为校验处理的示意图;Fig. 9 is a schematic diagram of verification processing;
图10为第一无线终端的组成结构示意图一;FIG. 10 is a first structural diagram of a first wireless terminal;
图11为第一无线终端的组成结构示意图二;FIG. 11 is a second structural schematic diagram of the first wireless terminal;
图12为第二无线终端的组成结构示意图一;FIG. 12 is a first structural diagram of a second wireless terminal;
图13为第二无线终端的组成结构示意图二。FIG. 13 is a second structural schematic diagram of a second wireless terminal.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。可以理解的是,此处所描述的具体实施例仅用于解释相关申请,而非对该申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关申请相关的部分。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the specific embodiments described here are only used to explain the related application, not to limit the application. It should also be noted that, for the convenience of description, only the parts related to the relevant application are shown in the drawings.
随着电子技术的发展,将一设备上的数据投放至另一设备上进行显示越来越普遍,如将手机或平板上播放的视频投送到智能电视上显示并播放。With the development of electronic technology, it is becoming more and more common to transfer data from one device to another device for display, such as transferring a video played on a mobile phone or a tablet to a smart TV for display and playback.
目前的Wi-Fi投屏方案基于传统的Wi-Fi直连技术,并通过视频编码模块对视频数据进行压缩。The current Wi-Fi projection solution is based on the traditional Wi-Fi direct connection technology, and the video data is compressed by the video encoding module.
Miracast是以Wi-Fi直连为基础的无线显示标准。支持此标准的3C设备(通讯产品(Communication)、电脑产品(Computer)、消费类电子产品(Consumer))可透过无线方式分享视频画面,例如手机可透过Miracast将视频或照片直接在电视或其他设备播放而无需任何连接线,也不需透过无线热点(Access Point,AP)。Miracast is a wireless display standard based on Wi-Fi Direct. 3C devices (Communication, Computer, Consumer) that support this standard can share video screens wirelessly, for example, mobile phones can directly transfer videos or photos to TVs or Other devices do not need any connection wires, and do not need to go through a wireless hotspot (Access Point, AP).
以Wi-Fi联盟制定的Miracast标准为例,信号源端(Source)输出到屏幕的数据,都会通过Wi-Fi点对点(Peer-to-Peer)技术,直接传输到接收端(Sink)。由于视频数据通常需要很大的吞吐量,因此源端的视频或图像数据通常要使用视频编码器(H.264或H.265)进行压缩以降低吞吐量。Taking the Miracast standard formulated by the Wi-Fi Alliance as an example, the data output from the source terminal (Source) to the screen will be directly transmitted to the receiver terminal (Sink) through Wi-Fi peer-to-peer (Peer-to-Peer) technology. Since video data usually requires a large throughput, video or image data at the source end is usually compressed using a video encoder (H.264 or H.265) to reduce throughput.
图1为Wi-Fi投屏的实现示意图,如图1所示,以手机为信号源端,智能电视为接收端为例,手机可以在配置的屏幕上播放视频图像数据,同时,还可以通过编码器对视频图像数据进行编码处理,然后再将编码后的数据发送至Wi-Fi发射机,以通过发射天线发送至智能电视。相应地,智能电视通过接收天线和Wi-Fi接收机接收到手机发送的编码后数据,然后将编码后数据发送至解码器,解码获得对应的视频图像数据,智能电视可以对该视频图像数据进行显示和播放,从而可以实现Wi-Fi投屏。Figure 1 is a schematic diagram of the implementation of Wi-Fi projection. As shown in Figure 1, taking the mobile phone as the signal source and the smart TV as the receiving end as an example, the mobile phone can play video image data on the configured screen. At the same time, it can also pass The encoder encodes the video image data, and then sends the encoded data to the Wi-Fi transmitter to be sent to the smart TV through the transmitting antenna. Correspondingly, the smart TV receives the encoded data sent by the mobile phone through the receiving antenna and Wi-Fi receiver, and then sends the encoded data to the decoder, and decodes to obtain the corresponding video image data, and the smart TV can process the video image data Display and playback, so that Wi-Fi projection can be realized.
另外还有一些投屏方案,利用了源-信道联合编码(Joint Source-Channel Coding,JSCC)编码技术,但无线传输技术没有构建在Wi-Fi之上,而是开发了不兼容的专用物理层,比如在不同的时隙采用不同的调制方案(Modulation Coding Scheme,MCS)调制技术来进行视频分层传输,且构建在专用无线物理层的JSCC技术,类似方案不能最大化利用现有协议标准和产业配套,成本高,推广难度大。。There are also some screen projection solutions that use the Joint Source-Channel Coding (JSCC) coding technology, but the wireless transmission technology is not built on Wi-Fi, but an incompatible dedicated physical layer is developed , such as using different Modulation Coding Scheme (MCS) modulation technologies in different time slots for video layered transmission, and the JSCC technology built on the dedicated wireless physical layer, similar schemes cannot maximize the use of existing protocol standards and Industrial supporting, high cost, difficult to promote. .
目前Wi-Fi投屏技术存在延时较大的缺点,延时主要来自两个方面:一方面为编码延时、信号发送的重传延时,其中,仅H.264技术编码延时会带来100毫秒以上的延时;另一方面是由于Wi-Fi通信技术是基于冲突避免(Carrier Sense Multiple Access and Collision Avoidance,CSMA/CA)的技术,每次传输都需要竞争空口,尤其是视频数据所需吞吐率较高,需要使用高阶调制的Wi-Fi信号来承载,但高阶调制信号对信噪比的要求高,一旦通信环境存在干扰或者非理想特性,很容易导致发生错包(帧校验序列(Frame Check Sequence,FCS)校验失败)而触发重传,带来较大延时。At present, the Wi-Fi projection technology has the disadvantage of large delay. The delay mainly comes from two aspects: one is the encoding delay and the retransmission delay of signal transmission. Among them, only the encoding delay of H.264 technology will bring On the other hand, because Wi-Fi communication technology is based on the technology of Carrier Sense Multiple Access and Collision Avoidance (CSMA/CA), each transmission needs to compete for the air interface, especially for video data. The required throughput rate is high, and high-order modulated Wi-Fi signals need to be used for carrying. However, high-order modulated signals have high requirements on the signal-to-noise ratio. Once there is interference or non-ideal characteristics in the communication environment, it is easy to cause error packets ( Frame Check Sequence (FCS) verification failure) triggers retransmission, resulting in a large delay.
进一步地,当前Wi-Fi投屏技术还存在图像画质不稳定的问题。投屏所需的H.264编码技术把图像编码成I帧、B帧、P帧。其中,I帧是关键帧,一旦I帧丢失,就会导致后续29个帧均无法解码(以通常I帧间隔为30计算),从而导致视频卡顿、花屏等问题,投屏效果差,严重影响用户体验。Furthermore, the current Wi-Fi projection technology still has the problem of unstable image quality. The H.264 encoding technology required for screen projection encodes images into I frames, B frames, and P frames. Among them, the I frame is a key frame. Once the I frame is lost, the subsequent 29 frames will not be able to be decoded (calculated based on the usual I frame interval of 30), which will lead to problems such as video freezes and blurred screens. The projection effect is poor and serious. affect user experience.
由此可见,由于延时较大和视频卡顿等问题的存在,使得当前Wi-Fi投屏技术实际上仅可以应用于无需实时性的场景,如播放电影等,而无法应用于要求实时性的场景,如在线手机游戏等。It can be seen that due to the existence of problems such as large delays and video freezes, the current Wi-Fi screen projection technology can actually only be applied to scenarios that do not require real-time performance, such as playing movies, but cannot be applied to scenarios that require real-time performance. Scenarios, such as online mobile games, etc.
为了解决Wi-Fi投屏技术存在的延时较大、投屏效果差、应用场景受限等问题,本申请提出的图像的发送和接收方法将Wi-Fi、OFDMA技术以及视频图像分层传输结合起来,能同时兼顾投屏的图像清晰度和实时性。其中,对实时性的改善主要来自:提高传输鲁棒性、减少重传,减少空口竞争频度。In order to solve the problems of large delay, poor projection effect, and limited application scenarios in Wi-Fi projection technology, the image sending and receiving method proposed in this application uses Wi-Fi, OFDMA technology and video image layered transmission Combined, it can simultaneously take into account the image clarity and real-time performance of the projection screen. Among them, the improvement of real-time performance mainly comes from: improving transmission robustness, reducing retransmission, and reducing the frequency of air interface competition.
在本申请的一些实施例中,常规方案中,Wi-Fi单一封包仅能支持单一MCS模式,因此对视频投屏需要采用高MCS模式。但如果使用高MCS模式,则对信道信噪比要求较高,重传通常会加大。而在本申请中,系统的重传率等同于轮廓数据对应的低阶MCS模式的重传率,从而大幅度降低了重传率。In some embodiments of the present application, in conventional solutions, a single Wi-Fi packet can only support a single MCS mode, so a high MCS mode is required for video projection. However, if the high MCS mode is used, the channel signal-to-noise ratio is required to be higher, and the retransmission is usually increased. However, in this application, the retransmission rate of the system is equal to the retransmission rate of the low-order MCS mode corresponding to the profile data, thereby greatly reducing the retransmission rate.
在本申请的一些实施例中,常规方案中,轮廓数据和细节数据各自组包发送,则必须各自竞争空口。而在本申请中,轮廓数据和细节数据可以在同一个封包中一起发送,仅需竞争一次空口;另外,重传率降低后,也有效地减少了空口竞争频度。In some embodiments of the present application, in the conventional solution, the outline data and the detail data are separately packaged and sent, so they must compete for the air interface respectively. In this application, profile data and detail data can be sent together in the same packet, and only need to compete for the air interface once; in addition, after the retransmission rate is reduced, the frequency of air interface competition is also effectively reduced.
也就是说,本申请提出的图像的发送和接收方法,传输鲁棒性高,重传率低,空口竞争少,进而能够大大降低传输延时,从而可以提高投屏效果,有效扩大投屏应用场景。In other words, the image sending and receiving method proposed in this application has high transmission robustness, low retransmission rate, and less air interface competition, which can greatly reduce transmission delay, thereby improving the effect of screen projection and effectively expanding the application of screen projection Scenes.
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
本申请一实施例提供了一种图像的发送方法,该方法可以应用于第一无线终端,其中,第一无线终端可以为任何配置有显示屏、支持Wi-Fi 6协议的终端设备,例如:平板电脑、手机、电子阅读器、个人计算机(Personal Computer,PC)、笔记本电脑、车载设备、网络电视、可穿戴设备、个人数字助理(Personal Digital Assistant,PDA)、便捷式媒体播放器(Portable Media Player,PMP)、导航装置等。An embodiment of the present application provides a method for sending an image, and the method can be applied to a first wireless terminal, wherein the first wireless terminal can be any terminal device equipped with a display screen and supporting the Wi-Fi 6 protocol, for example: Tablet computer, mobile phone, e-reader, personal computer (Personal Computer, PC), notebook computer, car equipment, Internet TV, wearable device, personal digital assistant (Personal Digital Assistant, PDA), portable media player (Portable Media Player, PMP), navigation device, etc.
图2为图像数据的发送方法的实现流程示意图一,如图2所示,在本申请的实施例中,第一无线终端进行图像数据发送的方法可以包括以下步骤:FIG. 2 is a first schematic diagram of an implementation flow of a method for sending image data. As shown in FIG. 2 , in an embodiment of the present application, the method for sending image data by a first wireless terminal may include the following steps:
步骤101、对图像数据进行分层编码处理,获得第一数据分量和第二数据分量;其中,第一数据分量表征图像数据中的轮廓数据;第二数据分量表征图像数据中的细节数据。Step 101: Perform layered encoding on image data to obtain a first data component and a second data component; wherein, the first data component represents contour data in the image data; the second data component represents detail data in the image data.
在本申请的实施例中,第一无线终端可以对图像数据进行分层编码处理,从而可以获得该图像数据对应的第一数据分量和第二数据分量。In the embodiment of the present application, the first wireless terminal may perform layered coding processing on the image data, so as to obtain the first data component and the second data component corresponding to the image data.
需要说明的是,在本申请中,第一无线终端在对图像数据进行分层编码处理的同时,还可以通过显示屏显示图像数据。It should be noted that, in this application, the first wireless terminal may also display the image data through a display screen while performing layered coding processing on the image data.
进一步地,在本申请的实施例中,第一无线终端配置的显示屏在显示目标视频或图像数据的同时,还可以对图像数据进行分层编码处理,获得分层编码后的不同数据分量。其中,第一无线终端中可以配置有用于执行分层编码处理的分层编码器,从而可以利用分层编码器对图像数据进行分层编码处理。Further, in the embodiment of the present application, while displaying target video or image data, the display screen configured by the first wireless terminal may also perform layered coding processing on the image data to obtain different data components after layered coding. Wherein, the first wireless terminal may be configured with a layered encoder for performing layered encoding processing, so that the layered encoder may be used to perform layered encoding processing on the image data.
需要说明的是,在本申请的实施例中,上述图像数据可以为第一无线终端正在显示的图像信号的图像数据,也可以为第一无线终端正在播放的视频信号的图像数据。It should be noted that, in the embodiment of the present application, the above image data may be image data of an image signal being displayed by the first wireless terminal, or may be image data of a video signal being played by the first wireless terminal.
可以理解的是,在本申请的实施例中,图像数据经过分层编码后获得的不同的数据分量可以用于对图像数据中的不同特征进行表征,其中,第一数据分量可以表征所述图像数据中的轮廓数据;第二数据分量可以表征所述图像数据中的细节数据。It can be understood that, in the embodiment of the present application, different data components obtained after image data undergoes layered encoding can be used to represent different features in the image data, wherein the first data component can represent the image Contour data in the data; the second data component may represent detail data in the image data.
示例性的,在本申请的实施例中,第一无线终端中配置的分层编码器可以是常规的JSCC编码器,也可以是小波变换编码器,还可以是其他类型的编码器,对此本申请不进行具体限定。Exemplarily, in the embodiment of the present application, the layered encoder configured in the first wireless terminal may be a conventional JSCC encoder, a wavelet transform encoder, or other types of encoders. For this This application does not make specific limitations.
其中,JSCC编码器采用联合编码技术,能够将信源编码和信道编码综合考虑。其中,第一无线终端可以配置有JSCC编码器,第一无线终端在利用JSCC编码器对图像数据进行分层编码处理之后,能够获得用于表征图像数据中的轮廓数据的第一数据分量Coarse,同时可以获得用于表征图像数据中的细节数据的第二数据分量Fine。Among them, the JSCC encoder adopts joint coding technology, which can comprehensively consider source coding and channel coding. Wherein, the first wireless terminal may be configured with a JSCC encoder, and after the first wireless terminal uses the JSCC encoder to perform layered encoding processing on the image data, it can obtain the first data component Coarse used to represent the contour data in the image data, At the same time, the second data component Fine used to characterize the detail data in the image data can be obtained.
其中,小波变换编码器即为基于小波变换的视频编码器。在本申请的一些实施例中,第一无线终端可以配置有小波变换编码器,第一无线终端在利用小波变换编码器对图像数据进行分层编码处理之后,能够产生不同分辨率的数据,其中可以包括用于表征图像数据中的轮廓数据的第一数据分量Coarse,还可以包括用于表征图像数据中的细节数据的第二数据分量Fine。Wherein, the wavelet transform encoder is a video encoder based on wavelet transform. In some embodiments of the present application, the first wireless terminal can be configured with a wavelet transform encoder, and the first wireless terminal can generate data with different resolutions after using the wavelet transform encoder to perform layered encoding processing on the image data, wherein It may include a first data component Coarse for characterizing outline data in the image data, and may also include a second data component Fine for characterizing detail data in the image data.
相应地,第一无线终端在利用配置的其他类型的、具有分层编码功能的编码器对图像数据进行分层编码处理之后,也能够产生不同分辨率的数据,其中可以包括用于表征 图像数据中的轮廓数据的第一数据分量Coarse,还可以包括用于表征图像数据中的细节数据的第二数据分量Fine。Correspondingly, after the first wireless terminal performs layered coding processing on the image data by using other types of configured encoders with layered coding functions, it can also generate data with different resolutions, which may include The first data component Coarse of the outline data in can also include the second data component Fine used to characterize the detail data in the image data.
步骤102、按照第一调制阶数对第一数据分量进行调制处理,获得第一处理后数据;按照第二调制阶数对第二数据分量进行调制处理,获得第二处理后数据;其中,第一调制阶数小于第二调制阶数。Step 102: Perform modulation processing on the first data component according to the first modulation order to obtain first processed data; perform modulation processing on the second data component according to the second modulation order to obtain second processed data; wherein, the first A modulation order is smaller than a second modulation order.
在本申请的实施例中,第一无线终端在对图像数据进行分层编码处理,获得该图像数据对应的第一数据分量和第二数据分量之后,可以按照第一调制阶数对所述第一数据分量进行调制处理,获得第一处理后数据;同时可以按照第二调制阶数对所述第二数据分量进行调制处理,获得第二处理后数据。In the embodiment of the present application, after the first wireless terminal performs layered coding processing on the image data and obtains the first data component and the second data component corresponding to the image data, it can encode the second data component according to the first modulation order A data component is modulated to obtain first processed data; meanwhile, the second data component may be modulated according to a second modulation order to obtain second processed data.
需要说明的是,在本申请的实施例中,可以适用不同的调制与编码策略(Modulation Coding Scheme,MCS)来对不同的数据分量进行调制处理,即第一调制阶数与第二调整阶数不同,其中,第一调制阶数用于对表征图像数据中的轮廓数据的第一数据分量进行调制处理,第二调制阶数用于对表征图像数据中的细节数据的第二数据分量进行调制处理。It should be noted that, in the embodiments of the present application, different modulation and coding strategies (Modulation Coding Scheme, MCS) can be applied to modulate different data components, that is, the first modulation order and the second adjustment order Different, where the first modulation order is used to modulate the first data component representing the contour data in the image data, and the second modulation order is used to modulate the second data component representing the detail data in the image data deal with.
其中,调制方案可以包括QPSK,16QAM,64QAM,256QAM,1024QAM,4096QAM等,本申请不进行具体限定。优选地,第一无线终端可以按照QPSK或16QAM或64QAM的调制方案对第一数据分量进行调制处理;优选地,第一无线终端可以按照256QAM或1024QAM或4096QAM的调制方案对第二数据分量进行调制处理。Wherein, the modulation scheme may include QPSK, 16QAM, 64QAM, 256QAM, 1024QAM, 4096QAM, etc., which are not specifically limited in this application. Preferably, the first wireless terminal can modulate the first data component according to a modulation scheme of QPSK, 16QAM or 64QAM; preferably, the first wireless terminal can modulate the second data component according to a modulation scheme of 256QAM, 1024QAM or 4096QAM deal with.
可以理解的是,在本申请的实施例中,为了保证数据发送的实时性和有效性,轮廓数据的关键程度往往高于细节数据的关键程度,因此,可以对第一数据分量采用低阶MCS,从而可以保证在非理想的环境下也能保持较高的传输鲁棒性。相应地,可以对第二数据分量采用高阶MCS,在理想的环境下能够还原出图像数据中的细节数据,传输效果好,而在非理想的环境下,即使出现误差,也仅仅是图像数据中的直接数据存在误差,并不会导致花屏或者卡顿的现象。It can be understood that in the embodiments of the present application, in order to ensure the real-time and effectiveness of data transmission, the criticality of outline data is often higher than that of detail data, therefore, low-order MCS can be used for the first data component , so as to ensure high transmission robustness even in non-ideal environments. Correspondingly, high-order MCS can be used for the second data component, and the detailed data in the image data can be restored in an ideal environment, and the transmission effect is good, but in a non-ideal environment, even if an error occurs, it is only the image data There are errors in the direct data in , which will not cause blurred screen or freeze.
由此可见,在本申请的实施例中,在对第一数据分量和第二数据分量分别进行调制处理时,使用的第一调制阶数可以小于第二调整阶数。其中,第一调制阶数和第二调制阶数可以包括4,16,64,256,1024,4096等,本申请不进行具体限定。It can be seen that, in the embodiment of the present application, when performing modulation processing on the first data component and the second data component respectively, the first modulation order used may be smaller than the second adjustment order. Wherein, the first modulation order and the second modulation order may include 4, 16, 64, 256, 1024, 4096, etc., which are not specifically limited in this application.
进一步地,在本申请的实施例中,使用第一调制阶数对第一数据分量进行调制处理,生产与图像数据中的轮廓数据对应的第一处理后数据,使用第二调制阶数对第二数据分量进行调制处理,生产与图像数据中的轮廓数据对应的第二处理后数据。Further, in the embodiment of the present application, the first data component is modulated by using the first modulation order to produce the first processed data corresponding to the contour data in the image data, and the first processed data is produced by using the second modulation order The two data components are modulated to produce second processed data corresponding to contour data in the image data.
步骤103、根据第一处理后数据和第二处理后数据生成图像数据对应的数据包,并将数据包发送至第二无线终端。Step 103: Generate a data packet corresponding to the image data according to the first processed data and the second processed data, and send the data packet to the second wireless terminal.
在本申请的实施例中,第一无线终端在按照第一调制阶数对所述第一数据分量进行调制处理,获得第一处理后数据;同时可以按照第二调制阶数对所述第二数据分量进行调制处理,获得第二处理后数据之后,可以进一步根据所述第一处理后数据和所述第二处理后数据生成所述图像数据对应的数据包,然后将所述数据包发送至第二无线终端。In the embodiment of the present application, the first wireless terminal performs modulation processing on the first data component according to the first modulation order to obtain the first processed data; at the same time, the second The data component is modulated, and after the second processed data is obtained, a data packet corresponding to the image data may be further generated according to the first processed data and the second processed data, and then the data packet is sent to a second wireless terminal.
进一步地,在本申请的实施例中,第一无线终端在通过分层编码处理获得图像数据对应的第一数据分量和第二数据分量之后,可以将第一数据分量和第二数据分量分别分配到同一个正交频分多址(Orthogonal Frequency Division Multiple Access,OFDMA)封包的两个用户(User)对应的资源单元(Resource Unit,RU)上进行后续的处理。Further, in the embodiment of the present application, after the first wireless terminal obtains the first data component and the second data component corresponding to the image data through the layered coding process, it can assign the first data component and the second data component respectively Subsequent processing is performed on the resource units (Resource Unit, RU) corresponding to two users (User) of the same Orthogonal Frequency Division Multiple Access (OFDMA) packet.
其中,OFDMA将整个频带分割成许多子载波,将频率选择性衰落信道转化为若干平坦衰落子信道,从而能够有效地抵抗无线移动环境中的频率选择性衰落。由于子载波重叠占用频谱,OFDM能够提供较高的频谱利用率和较高的信息传输速率。通过给不同的用户分配不同的子载波,OFDMA提供了天然的多址方式,并且由于占用不同的子载波,用户间满足相互正交,没有小区内干扰。同时,OFDMA可支持两种子载波分配模式:分布式和集中式。在子载波分布式分配的模式中,可以利用不同子载波的频率选择性衰落的独立性而获得分集增益。Among them, OFDMA divides the entire frequency band into many subcarriers, and converts the frequency selective fading channel into several flat fading subchannels, so that it can effectively resist the frequency selective fading in the wireless mobile environment. Because sub-carriers overlap and occupy spectrum, OFDM can provide higher spectrum utilization and higher information transmission rate. By assigning different subcarriers to different users, OFDMA provides a natural multiple access mode, and since different subcarriers are occupied, users are mutually orthogonal and there is no intra-cell interference. At the same time, OFDMA can support two subcarrier allocation modes: distributed and centralized. In the subcarrier distributed allocation mode, the independence of frequency selective fading of different subcarriers can be exploited to obtain diversity gain.
OFDMA将信道细分为较小的RU,通过OFDMA的资源细分,多个客户端可以通 过占据不同的RU资源进行并行传输。OFDMA subdivides the channel into smaller RUs. Through OFDMA resource subdivision, multiple clients can perform parallel transmission by occupying different RU resources.
可见,基于相同的OFDMA封包,第一无线终端可以利用不同的资源单元RU进行第一处理后数据和第二处理后数据的并行传输。It can be seen that based on the same OFDMA packet, the first wireless terminal can use different resource units RU to perform parallel transmission of the first processed data and the second processed data.
示例性的,在本申请中,第一无线终端在将数据包发送至第二无线终端时,可以通过第一资源单元将所述第一处理后数据发送至所述第二无线终端;同时可以通过第二资源单元将所述第二处理后数据发送至所述第二无线终端。Exemplarily, in this application, when the first wireless terminal sends the data packet to the second wireless terminal, it may send the first processed data to the second wireless terminal through the first resource unit; at the same time, it may Sending the second processed data to the second wireless terminal through a second resource unit.
可以理解的是,在本申请中,第一资源单元和第二资源单元可以包括不同的时频资源块。It can be understood that, in this application, the first resource unit and the second resource unit may include different time-frequency resource blocks.
可选地,在本申请的实施例中,实现本申请提出的图像数据的发送和接收方法,第一无线终端可以基于Wi-Fi 6协议进行第一处理后数据和所述第二处理后数据的生成和发送。即第一无线终端基于Wi-Fi 6协议对第一数据分量和第二数据分量进行调制处理;并基于Wi-Fi 6协议发送第一处理后数据和第二处理后数据。Optionally, in the embodiments of the present application, to implement the method for sending and receiving image data proposed in the present application, the first wireless terminal may perform the first processed data and the second processed data based on the Wi-Fi 6 protocol. generation and dispatch. That is, the first wireless terminal modulates the first data component and the second data component based on the Wi-Fi 6 protocol; and sends the first processed data and the second processed data based on the Wi-Fi 6 protocol.
可选地,在本申请的实施例中,实现本申请提出的图像数据的发送和接收方法,第一无线终端可以基于Wi-Fi 7协议进行第一处理后数据和所述第二处理后数据的生成和发送。即第一无线终端基于Wi-Fi 7协议对第一数据分量和第二数据分量进行调制处理;并基于Wi-Fi 7协议发送第一处理后数据和第二处理后数据。Optionally, in the embodiments of the present application, to implement the method for sending and receiving image data proposed in the present application, the first wireless terminal may perform the first processed data and the second processed data based on the Wi-Fi 7 protocol. generation and dispatch. That is, the first wireless terminal performs modulation processing on the first data component and the second data component based on the Wi-Fi 7 protocol; and sends the first processed data and the second processed data based on the Wi-Fi 7 protocol.
其中,Wi-Fi 6即第六代无线网络技术,是Wi-Fi标准的名称。是Wi-Fi联盟创建于IEEE 802.11标准的无线局域网技术。Wi-Fi 6主要使用了OFDMA、多用户-多输入多输出(Multi-User Multiple-Input Multiple-Output,MU-MIMO)等技术,MU-MIMO技术允许路由器同时与多个设备通信,而不是依次进行通信。MU-MIMO允许路由器一次与四个设备通信,Wi-Fi 6将允许与多达8个设备通信。Wi-Fi 6还利用OFDMA(正交频分多址)和发射波束成形,两者的作用分别提高效率和网络容量。Wi-Fi 6最高速率可达9.6Gbps。Among them, Wi-Fi 6 is the sixth generation of wireless network technology, which is the name of the Wi-Fi standard. It is a wireless local area network technology created by the Wi-Fi Alliance based on the IEEE 802.11 standard. Wi-Fi 6 mainly uses technologies such as OFDMA and multi-user-multiple-input multiple-output (Multi-User Multiple-Input Multiple-Output, MU-MIMO). MU-MIMO technology allows routers to communicate with multiple devices at the same time, instead of sequentially to communicate. MU-MIMO allows routers to communicate with four devices at once, and Wi-Fi 6 will allow communication with up to eight devices. Wi-Fi 6 also utilizes OFDMA (Orthogonal Frequency Division Multiple Access) and transmit beamforming, both of which work to improve efficiency and network capacity, respectively. Wi-Fi 6 can reach a maximum rate of 9.6Gbps.
Wi-Fi 6中的一项新技术允许设备规划与路由器的通信,减少了保持天线通电以传输和搜索信号所需的时间,这就意味着减少电池消耗并改善电池续航表现。A new technology in Wi-Fi 6 allows devices to schedule communications with routers, reducing the time it takes to keep antennas powered up to transmit and search for signals, which means less battery drain and improved battery life.
由于Wi-Fi 6协议和Wi-Fi 7协议均支持OFDMA,并且支持不同User使用不同的MCS,因此在本申请中,基于Wi-Fi 6协议或Wi-Fi 7协议,第一无线终端可以对第一数据分量对应的第一资源单元采用低阶调制模式,对第二数据分量对应的第二资源单元采用高阶调制模式。Since both the Wi-Fi 6 protocol and the Wi-Fi 7 protocol support OFDMA and support different users to use different MCSs, in this application, based on the Wi-Fi 6 protocol or the Wi-Fi 7 protocol, the first wireless terminal can The first resource unit corresponding to the first data component adopts a low-order modulation mode, and the second resource unit corresponding to the second data component adopts a high-order modulation mode.
需要说明的是,在本申请的实施例中,第一无线终端还可以分别对第一资源单元和第二资源单元进行资源大小的配置。It should be noted that, in the embodiment of the present application, the first wireless terminal may also configure resource sizes for the first resource unit and the second resource unit respectively.
相应地,在本申请中,第一无线终端还可以对第一数据分量和第二数据分量对应的MCS进行配置和调整,即对第一调制阶数和第二调制阶数进行设置。Correspondingly, in this application, the first wireless terminal may also configure and adjust the MCS corresponding to the first data component and the second data component, that is, set the first modulation order and the second modulation order.
也就是说,在本申请中,第一无线终端通过调节RU的资源大小,以及调节不同RU对应的MCS,可以实现灵活的对第一数据分量和第二数据分量进行带宽分配。That is to say, in this application, the first wireless terminal can flexibly allocate bandwidth to the first data component and the second data component by adjusting the resource size of the RU and adjusting the MCS corresponding to different RUs.
可以理解的是,在本申请的实施例中,第一无线终端根据第一处理后数据和第二处理后数据生成图像数据对应的数据包,然后直接将该数据包发送至第二无线终端,从而可以使得图像数据的不同数据分量在同一帧中发送,进而保证了图像数据中的轮廓数据和细节数据的同步发送。It can be understood that, in the embodiment of the present application, the first wireless terminal generates a data packet corresponding to the image data according to the first processed data and the second processed data, and then directly sends the data packet to the second wireless terminal, Therefore, different data components of the image data can be sent in the same frame, thereby ensuring synchronous sending of the outline data and the detail data in the image data.
需要说明的是,在本申请的实施例中,第二无线终端可以为投屏设备,即第二无线终端在接收到图像数据对应的数据包之后,可以与第一无线终端同步显示相同的图像数据。It should be noted that, in the embodiment of the present application, the second wireless terminal may be a screen projection device, that is, after receiving the data packet corresponding to the image data, the second wireless terminal may display the same image synchronously with the first wireless terminal data.
进一步地,在本申请的实施例中,图3为图像数据的发送方法的实现流程示意图二,如图3所示,第一无线终端在根据所述第一处理后数据和所述第二处理后数据生成所述图像数据对应的数据包之前,即步骤103之前,第一无线终端进行图像数据发送的方法还可以包括以下步骤:Further, in the embodiment of the present application, FIG. 3 is a schematic diagram of the second implementation flow of the image data sending method. As shown in FIG. Before generating the data packet corresponding to the image data, that is, before step 103, the method for sending image data by the first wireless terminal may further include the following steps:
步骤104、计算第一数据分量对应的校验值。 Step 104, calculating a check value corresponding to the first data component.
步骤105、根据校验值生成帧校验序列,并将帧校验序列添加至第一处理后数据。Step 105: Generate a frame check sequence according to the check value, and add the frame check sequence to the first processed data.
在本申请的实施例中,第一无线终端在根据第一处理后数据和第二处理后数据进行数据包的生成之前,可以针对第一数据分量进行校验值的计算,然后可以根据校验值生成帧校验序列,从而可以将帧校验序列添加至第一处理后数据中,以使第二无线终端可以对第一数据分量进行校验处理。In the embodiment of the present application, before the first wireless terminal generates the data packet according to the first processed data and the second processed data, it can calculate the check value for the first data component, and then can calculate the check value according to the check value The value generates a frame check sequence, so that the frame check sequence can be added to the first processed data, so that the second wireless terminal can perform check processing on the first data component.
需要说明的是,在本申请的实施例中,第一无线终端可以使用多种不同的方法计算第一数据分量的校验值,例如,第一无线终端可以使用循环冗余校验(Cyclic redundancy check,CRC)计算该校验值。It should be noted that, in the embodiment of the present application, the first wireless terminal may use a variety of different methods to calculate the check value of the first data component, for example, the first wireless terminal may use a cyclic redundancy check (Cyclic redundancy check) check, CRC) to calculate the check value.
其中,CRC为校验和的一种,第一无线终端采用CRC计算获得的校验值是两个字节数据流采用二进制除法(没有进位,使用XOR来代替减法)相除所得到的余数。其中,被除数是需要计算校验和的信息数据流的二进制表示,即为第一处理后数据,除数是一个长度为的预定义(短)的二进制数,通常用多项式的系数来表示。Wherein, CRC is a kind of checksum, and the check value obtained by the first wireless terminal using CRC calculation is the remainder obtained by dividing two byte data streams by binary division (no carry, XOR is used instead of subtraction). Wherein, the dividend is the binary representation of the information data stream that needs to calculate the checksum, that is, the first processed data, and the divisor is a predefined (short) binary number with a length of , usually represented by a coefficient of a polynomial.
相应地,在本申请中,第一无线终端可以将采用CRC计算获得的余数作为帧检验序列FCS,直接将该FCS添加至第一处理后数据之后。Correspondingly, in the present application, the first wireless terminal may use the remainder obtained by CRC calculation as the frame check sequence FCS, and directly add the FCS after the first processed data.
可以理解的是,在本申请的实施例中,第一无线终端也可以采用其他的检验方法进行校验值的生成,本申请不进行具体限定。It can be understood that, in the embodiment of the present application, the first wireless terminal may also use other verification methods to generate the verification value, which is not specifically limited in the present application.
需要说明的是,在本申请的实施例中,为了减少延时,第二无线终端可以只对第一数据分量对应的第一处理后数据进行FCS检查并回复,相应地,第一无线终端在图像数据对应的数据包的生成之前,也可以只对第一处理后数据进行FCS的生成和添加。It should be noted that, in the embodiment of the present application, in order to reduce the delay, the second wireless terminal may only perform an FCS check on the first processed data corresponding to the first data component and reply, correspondingly, the first wireless terminal Before the data packet corresponding to the image data is generated, the FCS may be generated and added only to the first processed data.
可以理解的是,在本申请中,第一无线终端在将基于第一处理后数据和第二处理后数据生成的数据包发送至第二无线终端之后,第二无线终端可以利用第一处理后数据中添加的帧校验序列进行校验处理,在校验成功之后,第一无线终端可以接收第二无线终端发送的确认应答。It can be understood that, in this application, after the first wireless terminal sends the data packet generated based on the first processed data and the second processed data to the second wireless terminal, the second wireless terminal can use the first processed The frame check sequence added in the data is checked, and after the check is successful, the first wireless terminal can receive the confirmation response sent by the second wireless terminal.
综上所述,在本申请的实施例中,根据步骤101至步骤105所提出的图像数据的发送和接收方法,一方面,由于对更为重要的轮廓数据使用低阶MCS进行调制处理,在非理想的情况下能够大大提高传输鲁棒性;另一方面,将轮廓数据和细节数据在同一个封包中同时发送,有效地减少了空口竞争频度;再一方面,仅对轮廓数据对应的第一处理后数据进行FCS检查,因此可以有效降低重传率。To sum up, in the embodiment of the present application, according to the image data sending and receiving method proposed in step 101 to step 105, on the one hand, since the more important contour data is modulated by using low-order MCS, in In non-ideal conditions, the robustness of transmission can be greatly improved; on the other hand, the profile data and detail data are sent simultaneously in the same packet, which effectively reduces the frequency of air interface competition; on the other hand, only the profile data corresponding After the first processing, the data is checked by FCS, so the retransmission rate can be effectively reduced.
本申请实施例提供了一种图像数据的发送和接收方法,通过分层编码处理将图像数据中的轮廓数据和细节数据分离出来,对较为重要的轮廓数据使用低阶MCS进行调制处理,从而能够提高传输鲁棒性,同时,使用同一个OFDMA封包中的资源单元传输轮廓数据和细节数据,并且只对轮廓数据对应的第一处理后数据进行FCS检查,在有效降低重传率的基础上,还能减少空口竞争频度,也就是说,本申请提出的图像数据的发送和接收方法,传输鲁棒性高,重传率低,空口竞争少,进而能够大大降低传输延时,从而可以提高投屏效果,有效扩大投屏应用场景。The embodiment of the present application provides a method for sending and receiving image data, which separates the contour data and detail data in the image data through layered coding processing, and uses low-order MCS to modulate the more important contour data, so that it can Improve transmission robustness. At the same time, use resource units in the same OFDMA packet to transmit profile data and detail data, and only perform FCS check on the first processed data corresponding to the profile data. On the basis of effectively reducing the retransmission rate, It can also reduce the frequency of air interface competition, that is to say, the method for sending and receiving image data proposed by this application has high transmission robustness, low retransmission rate, and less air interface competition, which can greatly reduce transmission delay, thereby improving The effect of screen projection effectively expands the application scenarios of screen projection.
本申请的再一实施例提供了一种图像数据的发送和接收方法,该方法可以应用于第二无线终端,其中,第二无线终端可以为任何支持Wi-Fi 6协议的终端设备,例如:平板电脑、手机、电子阅读器、个人计算机PC、笔记本电脑、车载设备、网络电视、可穿戴设备、个人数字助理PDA、便捷式媒体播放器PMP、导航装置等。Yet another embodiment of the present application provides a method for sending and receiving image data, and the method can be applied to a second wireless terminal, wherein the second wireless terminal can be any terminal device supporting the Wi-Fi 6 protocol, for example: Tablet PC, mobile phone, e-reader, personal computer PC, notebook computer, car equipment, Internet TV, wearable device, personal digital assistant PDA, portable media player PMP, navigation device, etc.
图4为图像数据的接收方法的实现流程示意图一,如图4所示,在本申请的实施例中,第二无线终端进行图像数据接收的方法可以包括以下步骤:FIG. 4 is a schematic diagram of a first implementation flow of a method for receiving image data. As shown in FIG. 4 , in an embodiment of the present application, the method for receiving image data by a second wireless terminal may include the following steps:
步骤201、接收第一无线终端发送的图像数据对应的数据包;其中,数据包包括第一处理后数据和第二处理后数据。 Step 201. Receive a data packet corresponding to image data sent by a first wireless terminal; wherein, the data packet includes first processed data and second processed data.
在本申请的实施例中,第二无线终端可以先接收第一无线终端发送的图像数据对应的数据包,数据包中携带有第一处理后数据和第二处理后数据。其中,第一处理后数据和第二处理后数据为调制处理后的数据。In the embodiment of the present application, the second wireless terminal may first receive a data packet corresponding to the image data sent by the first wireless terminal, and the data packet carries the first processed data and the second processed data. Wherein, the first processed data and the second processed data are modulated data.
需要说明的是,在本申请的实施例中,上述图像数据可以为第一无线终端正在显示的图像信号的图像数据,也可以为第一无线终端正在播放的视频信号的图像数据。It should be noted that, in the embodiment of the present application, the above image data may be image data of an image signal being displayed by the first wireless terminal, or may be image data of a video signal being played by the first wireless terminal.
进一步地,在本申请的实施例中,第二无线终端在接收第一无线终端发送的、包括 有第一处理后数据和第二处理后数据的数据包时,可以同时采用不同的资源单元进行第一处理后数据和第二处理后数据的接收。例如,第二无线终端可以通过第一资源单元接收第一无线终端发送的第一处理后数据;同时,第二无线终端可以通过第二资源单元接收第一无线终端发送的第二处理后数据。Further, in the embodiment of the present application, when the second wireless terminal receives the data packet sent by the first wireless terminal and includes the first processed data and the second processed data, it can simultaneously use different resource units to perform The first processed data and the second processed data are received. For example, the second wireless terminal may receive the first processed data sent by the first wireless terminal through the first resource unit; meanwhile, the second wireless terminal may receive the second processed data sent by the first wireless terminal through the second resource unit.
需要说明的是,在本申请中,第一无线终端是将第一处理后数据和第二处理后数据分配到同一个OFDMA封包的两个用户对应的两个不同的RU上进行传输处理,相应地,第二无线终端也是通过两个不同的RU接收数据包的。也就是说,基于相同的OFDMA封包,第二无线终端可以利用第一资源单元和第二资源单元进行第一处理后数据和第二处理后数据的并行接收。It should be noted that, in this application, the first wireless terminal allocates the first processed data and the second processed data to two different RUs corresponding to two users of the same OFDMA packet for transmission processing, corresponding Specifically, the second wireless terminal also receives data packets through two different RUs. That is to say, based on the same OFDMA packet, the second wireless terminal can use the first resource unit and the second resource unit to receive the first processed data and the second processed data in parallel.
需要说明的是,在本申请的实施例中,第一资源单元和第二资源单元可以包括不同的时频资源块。It should be noted that, in the embodiment of the present application, the first resource unit and the second resource unit may include different time-frequency resource blocks.
进一步地,在本申请的实施例中,第一处理后数据和第二处理后数据可以为基于不同MCS进行调制处理生成的。在本申请的一些实施例中,第一处理后数据对应的MCS与第二处理后数据对应的MCS是不同的调制方案。其中,调制方案可以包括QPSK,16QAM,64QAM,256QAM,1024QAM,4096QAM等,本申请不进行具体限定。优选地,第一处理后数据可以使用QPSK或16QAM或64QAM的MCS;第二处理后数据可以使用256QAM或1024QAM或4096QAM的MCS。Further, in the embodiment of the present application, the first processed data and the second processed data may be generated by performing modulation processing based on different MCSs. In some embodiments of the present application, the MCS corresponding to the first processed data and the MCS corresponding to the second processed data are different modulation schemes. Wherein, the modulation scheme may include QPSK, 16QAM, 64QAM, 256QAM, 1024QAM, 4096QAM, etc., which are not specifically limited in this application. Preferably, the first processed data may use an MCS of QPSK, 16QAM, or 64QAM; the second processed data may use an MCS of 256QAM, 1024QAM, or 4096QAM.
示例性的,在本申请的实施例中,在生成第一处理后数据时,第一无线终端可以采用低阶调制模式,在生成第二处理后数据时,第一无线终端可以采用高阶调制模式。也就是说,第一无线终端生成第一处理后数据时使用的第一调制阶数可以小于生成第二处理后数据是使用的第二调制阶数。其中,第一调制阶数和第二调制阶数可以包括4,16,64,256,1024,4096等,本申请不进行具体限定。Exemplarily, in the embodiment of the present application, when generating the first processed data, the first wireless terminal may use a low-order modulation mode, and when generating the second processed data, the first wireless terminal may use a high-order modulation mode model. That is to say, the first modulation order used by the first wireless terminal to generate the first processed data may be smaller than the second modulation order used to generate the second processed data. Wherein, the first modulation order and the second modulation order may include 4, 16, 64, 256, 1024, 4096, etc., which are not specifically limited in this application.
进一步地,在本申请的实施例中,实现本申请提出的图像数据的发送和接收方法,需要第二无线终端基于Wi-Fi 6协议或Wi-Fi 7协议进行第一处理后数据和所述第二处理后数据的接收。Further, in the embodiments of the present application, to implement the method for sending and receiving image data proposed in the present application, the second wireless terminal needs to perform the first processed data and the described data based on the Wi-Fi 6 protocol or the Wi-Fi 7 protocol. Receiving of the second processed data.
其中,Wi-Fi 6主要使用了OFDMA、MU-MIMO等技术,也正是由于Wi-Fi 6协议和Wi-Fi 7协议均支持OFDMA,并且支持不同User使用不同的MCS,因此在本申请中,基于Wi-Fi 6协议或Wi-Fi 7协议,第二无线终端可以通过第一资源单元和第二资源单元接收采用不同的MCS调制后的第一处理后数据和第二处理后数据。Among them, Wi-Fi 6 mainly uses technologies such as OFDMA and MU-MIMO. It is precisely because both Wi-Fi 6 and Wi-Fi 7 protocols support OFDMA and support different users to use different MCS, so in this application , based on the Wi-Fi 6 protocol or the Wi-Fi 7 protocol, the second wireless terminal may receive the first processed data and the second processed data modulated by different MCSs through the first resource unit and the second resource unit.
步骤202、对第一处理后数据进行解调处理,获得第一数据分量;其中,第一数据分量表征图像数据中的轮廓数据。Step 202: Perform demodulation processing on the first processed data to obtain a first data component; wherein, the first data component represents contour data in the image data.
在本申请的实施例中,第二无线终端在接收第一无线终端发送的、包括有第一处理后数据和第二处理后数据的数据包之后,可以先对第一处理后数据进行解调处理,从而获得图像数据对应的第一数据分量。In the embodiment of the present application, after receiving the data packet sent by the first wireless terminal and including the first processed data and the second processed data, the second wireless terminal may first demodulate the first processed data processing, so as to obtain the first data component corresponding to the image data.
进一步地,在本申请的实施例中,由于第一处理后数据对应于图像数据中的轮廓数据,因此,第二无线终端对第一处理后数据进行解调处理后获得的第一数据分量可以表征图像数据中的轮廓数据。Further, in the embodiment of the present application, since the first processed data corresponds to the contour data in the image data, the first data component obtained by the second wireless terminal after demodulating the first processed data may be Characterize contour data in image data.
也就是说,在本申请中,第二无线终端通过对数据包的解析可以获得图像数据对应的、表征不同特征的不同数据分量。That is to say, in this application, the second wireless terminal can obtain different data components corresponding to the image data and representing different features by analyzing the data packets.
步骤203、对第一数据分量进行校验处理,获得校验结果。Step 203: Perform verification processing on the first data component to obtain a verification result.
在本申请的实施例中,第二无线终端在对第一处理后数据进行解调处理,获得第一数据分量之后,可以对第一数据分量进行校验处理,从而获得校验结果。In the embodiment of the present application, after the second wireless terminal performs demodulation processing on the first processed data to obtain the first data component, it may perform verification processing on the first data component, thereby obtaining a verification result.
进一步地,在本申请的实施例中,第二无线终端在获取第一数据分量之后,可以先对第一数据分量进行校验处理,从而根据生成的校验结果确定数据传输是否正确。Further, in the embodiment of the present application, after acquiring the first data component, the second wireless terminal may first perform verification processing on the first data component, so as to determine whether the data transmission is correct according to the generated verification result.
示例性的,在本申请的实施例中,第二无线终端在对所述第一数据分量进行校验处理时,可以先计算所述第一数据分量对应的校验值;然后可以根据所述校验值和所述第一处理后数据的帧校验序列,确定所述校验结果。Exemplarily, in the embodiment of the present application, when performing verification processing on the first data component, the second wireless terminal may first calculate the verification value corresponding to the first data component; The check value and the frame check sequence of the first processed data determine the check result.
可以理解的是,在本申请的实施例中,第一无线终端计算第一数据分量的校验值的 方法与第二无线终端计算第一数据分量的校验值的方法是相同的。例如,如果第一无线终端采用CRC计算校验值,那么第二无线终端可以使用CRC计算该校验值。It can be understood that, in the embodiment of the present application, the method for calculating the check value of the first data component by the first wireless terminal is the same as the method for calculating the check value of the first data component by the second wireless terminal. For example, if the first wireless terminal calculates the check value using CRC, the second wireless terminal may calculate the check value using CRC.
进一步地,在本申请的实施例中,第二无线终端计算获得校验值之后,可以结合第一处理后数据中包括的帧检验序列FCS进行校验结果的确定。在本申请的一些实施例中,由于第一无线终端直接将校验值确定为FCS,因此第二无线终端可以直接比较校验值和FCS,如果校验值和FCS相同,则确定校验结果为校验成功;如果校验值和FCS不同,则确定校验结果为校验失败。Further, in the embodiment of the present application, after the second wireless terminal calculates and obtains the check value, it may determine the check result in combination with the frame check sequence FCS included in the first processed data. In some embodiments of the present application, since the first wireless terminal directly determines the check value as FCS, the second wireless terminal can directly compare the check value with FCS, and if the check value is the same as FCS, determine the check result is the verification success; if the verification value is different from the FCS, it is determined that the verification result is a verification failure.
可以理解的是,在本申请的实施例中,第一无线终端和第二无线终端也可以采用其他的检验方法进行校验值的生成,本申请不进行具体限定。It can be understood that, in the embodiment of the present application, the first wireless terminal and the second wireless terminal may also use other verification methods to generate the check value, which is not specifically limited in the present application.
需要说明的是,在本申请的实施例中,一方面,第一处理后数据对应于图像数据中的轮廓数据,第二处理后数据对应于图像数据中的细节数据,为了保证数据发送的实时性和有效性,轮廓数据的关键程度往往高于细节数据的关键程度;另一方面,在生成第一处理后数据时采用低阶调制模式,在生成第二处理后数据时采用高阶调制模式。因此,第二无线终端可以选择仅仅对第一数据分量进行校验处理,并根据获得的校验结果确定是否需要重传,而不再对第二数据分量进行校验处理,即无论第二处理后数据是否存在传输错误,只要第一数据分量对应的校验结果为校验成功,就对第二处理后数据进行解调处理,从而可以减小重传的概率,进而可以达到减少延时的目的。It should be noted that, in the embodiment of the present application, on the one hand, the first processed data corresponds to the contour data in the image data, and the second processed data corresponds to the detail data in the image data. In order to ensure the real-time data transmission The degree of criticality of contour data is often higher than that of detail data; on the other hand, low-order modulation modes are used when generating the first processed data, and high-order modulation modes are used when generating the second processed data . Therefore, the second wireless terminal may choose to only perform verification processing on the first data component, and determine whether retransmission is required according to the obtained verification result, without performing verification processing on the second data component, that is, regardless of the second processing Whether there is a transmission error in the final data, as long as the verification result corresponding to the first data component is a successful verification, the second processed data will be demodulated, thereby reducing the probability of retransmission and further reducing the delay. Purpose.
也就是说,在本申请中,为了减少延时,第二无线终端可以只对接收到的第一处理后数据进行FCS检查并回复,相应地,第一无线终端在图像数据对应的数据包的生成之前,也可以只对第一处理后数据进行FCS的生成和添加。That is to say, in this application, in order to reduce the delay, the second wireless terminal can only perform FCS check on the received first processed data and reply. Before the generation, the FCS may be generated and added only to the first processed data.
步骤204、若校验结果为校验成功,则对第二处理后数据进行解调处理,获得第二数据分量;其中,第二数据分量表征图像数据中的细节数据。 Step 204, if the verification result is that the verification is successful, demodulate the second processed data to obtain a second data component, where the second data component represents the detail data in the image data.
在本申请的实施例中,第二无线终端对第一数据分量进行校验处理获得校验结果之后,如果校验结果为校验成功,那么第二无线终端便可以对第二处理后数据进行解调处理,获得对应的第二数据分量。In the embodiment of the present application, after the second wireless terminal performs verification processing on the first data component to obtain the verification result, if the verification result is a successful verification, then the second wireless terminal can perform verification on the second processed data. Demodulate to obtain the corresponding second data component.
进一步地,在本申请的实施例中,如果第二无线终端确定第一数据分量对应的校验结果为校验成功,那么便可以认为第一处理后数据在发送的过程中没有被破坏,因此第二无线终端可以直接对第二处理后数据进行解调处理,从而可以获得图像数据对应的第二数据分量。Further, in the embodiment of the present application, if the second wireless terminal determines that the verification result corresponding to the first data component is a successful verification, then it can be considered that the first processed data has not been damaged during the transmission process, so The second wireless terminal may directly perform demodulation processing on the second processed data, so as to obtain a second data component corresponding to the image data.
可以理解的是,在本申请中,第二无线终端确定是否解调第二处理后数据的依据仅仅为第一数据分量对应的校验结果,即无论第二处理后数据在传输过程中是否被破坏,只要第一数据分量的校验结果为校验成功,那么第二无线终端便会执行解调处理。It can be understood that, in this application, the basis for the second wireless terminal to determine whether to demodulate the second processed data is only the verification result corresponding to the first data component, that is, no matter whether the second processed data is Destruction, as long as the verification result of the first data component is a successful verification, the second wireless terminal will perform demodulation processing.
进一步地,在本申请的实施例中,由于第一处理后数据对应于图像数据中的轮廓数据,因此,第二无线终端对第一处理后数据进行解调处理后获得的第一数据分量可以表征图像数据中的轮廓数据;由于第二处理后数据对应于图像数据中的细节数据,因此,第二无线终端对第二处理后数据进行解调处理后获得的第二数据分量可以表征图像数据中的细节数据。Further, in the embodiment of the present application, since the first processed data corresponds to the contour data in the image data, the first data component obtained by the second wireless terminal after demodulating the first processed data may be Characterize the contour data in the image data; since the second processed data corresponds to the detail data in the image data, the second data component obtained after the second wireless terminal demodulates the second processed data can represent the image data details in the data.
也就是说,在本申请中,第二无线终端通过对数据包的解析可以获得图像数据对应的、表征不同特征的不同数据分量。That is to say, in this application, the second wireless terminal can obtain different data components corresponding to the image data and representing different features by analyzing the data packets.
进一步地,在本申请的实施例中,图5为图像数据的接收方法的实现流程示意图二,如图5所示,第二无线终端在对第一数据分量进行校验处理,获得校验结果之后,即步骤203之后,第二无线终端进行图像数据发送的方法还可以包括以下步骤:Further, in the embodiment of the present application, FIG. 5 is a schematic diagram of the second implementation flow of the image data receiving method. As shown in FIG. 5, the second wireless terminal is performing verification processing on the first data component to obtain the verification result Afterwards, that is, after step 203, the method for the second wireless terminal to send image data may also include the following steps:
步骤206、若校验结果为校验成功,则向第一无线终端发送确认应答。Step 206: If the verification result is that the verification is successful, send an acknowledgment response to the first wireless terminal.
在本申请的实施例中,第二无线终端对第一数据分量进行校验处理获得校验结果之后,如果校验结果为校验成功,那么便可以认为第一处理后数据在发送的过程中没有被破坏,那么第二无线终端便可以向第一无线终端发送确认应答。In the embodiment of the present application, after the second wireless terminal performs verification processing on the first data component to obtain the verification result, if the verification result is a successful verification, then it can be considered that the first processed data is in the process of being sent is not destroyed, then the second wireless terminal can send an acknowledgment response to the first wireless terminal.
可见,在本申请中,第二无线终端确定是否向第一无线终端发送确认应答的依据仅仅为第一数据分量对应的校验结果,即无论第二处理后数据在传输过程中是否被破坏, 只要第一数据分量的校验结果为校验成功,那么第二无线终端便会发送确认应答。It can be seen that in this application, the basis for the second wireless terminal to determine whether to send an acknowledgment response to the first wireless terminal is only the verification result corresponding to the first data component, that is, no matter whether the second processed data is destroyed during transmission, As long as the verification result of the first data component is a successful verification, the second wireless terminal will send an acknowledgment response.
可以理解的是,在本申请的实施例中,第二无线终端对第一数据分量进行校验处理获得校验结果之后,如果校验结果为校验成功,那么第二无线终端可以向第一无线终端发送确认应答(Acknowledgement,ACK);如果校验结果为校验失败,那么第二无线终端可以向第一无线终端发送否定应答(Negative-Acknowledgment,NACK),并丢弃图像数据对应的数据包,不对第二处理后数据进行解调处理。It can be understood that, in the embodiment of the present application, after the second wireless terminal performs verification processing on the first data component to obtain the verification result, if the verification result is a successful verification, then the second wireless terminal may send the first The wireless terminal sends an acknowledgment (Acknowledgment, ACK); if the verification result is a verification failure, then the second wireless terminal can send a negative acknowledgment (Negative-Acknowledgment, NACK) to the first wireless terminal, and discard the data packet corresponding to the image data , not performing demodulation processing on the second processed data.
其中,ACK字符是一些通信协议下用来做确认消息的字符,也有通信协议使用其他字符;NACK这种协议消息在数字通信中被使用。其作用是作为一种确认数据收到的应答,但表明有小错误存在的一种消息信号。Among them, the ACK character is a character used as a confirmation message under some communication protocols, and some communication protocols use other characters; NACK is a protocol message used in digital communication. Its function is as a response to confirm the receipt of data, but it is a message signal indicating that there is a small error.
步骤205、对第一数据分量和第二数据分量进行合并解码处理,获得图像数据。Step 205: Perform combined decoding processing on the first data component and the second data component to obtain image data.
在本申请的实施例中,第二无线终端在分别对第一处理后数据和第二处理后数据进行解调处理,获得表征轮廓数据的第一数据分量和表征细节数据的第二数据分量之后,便可以对第一数据分量和第二数据分量进行合并解码处理,从而可以获得图像数据。In the embodiment of the present application, after the second wireless terminal performs demodulation processing on the first processed data and the second processed data respectively, and obtains the first data component representing the profile data and the second data component representing the detail data , the combined decoding process can be performed on the first data component and the second data component, so that image data can be obtained.
进一步地,在本申请的实施例中,第二无线终端中可以配置有用于执行合并解码处理的分层解码器,从而可以利用分层解码器对第一数据分量和第二数据分量进行合并解码处理。Further, in the embodiment of the present application, the second wireless terminal may be configured with a layered decoder for performing combined decoding processing, so that the layered decoder may be used to perform combined decoding of the first data component and the second data component deal with.
示例性的,在本申请的实施例中,第二无线终端中配置的分层解码器可以是常规的JSCC解码器,也可以时小波变换解码器,还可以是其他类型的解码器,对此本申请不进行具体限定。Exemplarily, in the embodiment of the present application, the layered decoder configured in the second wireless terminal may be a conventional JSCC decoder, a wavelet transform decoder, or other types of decoders. This application does not make specific limitations.
其中,第二无线终端可以配置有JSCC解码器,第二无线终端在将表征轮廓数据的第一数据分量Coarse和表征细节数据的第二数据分量Fine同时输入至JSCC解码器中进行合并解码处理之后,便可以获得对应的图像数据。Wherein, the second wireless terminal may be configured with a JSCC decoder, and after the second wireless terminal simultaneously inputs the first data component Coarse representing the outline data and the second data component Fine representing the detail data into the JSCC decoder for combined decoding processing , the corresponding image data can be obtained.
其中,第二无线终端可以配置有小波变换解码器,第二无线终端在将表征轮廓数据的第一数据分量Coarse和表征细节数据的第二数据分量Fine同时输入至小波变换解码器中进行合并解码处理之后,便可以获得对应的图像数据。Wherein, the second wireless terminal may be configured with a wavelet transform decoder, and the second wireless terminal simultaneously inputs the first data component Coarse representing the contour data and the second data component Fine representing the detail data into the wavelet transform decoder for combined decoding After processing, the corresponding image data can be obtained.
相应地,第二无线终端可以配置有其他类型的、具有分层解码功能的解码器,该解码器也可以同时对不同分辨率的数据进行合并解码处理,例如对表征轮廓数据的第一数据分量Coarse和表征细节数据的第二数据分量Fine进行解码处理,便可以获得对应的图像数据。Correspondingly, the second wireless terminal may be configured with other types of decoders with a layered decoding function, and the decoder may also perform combined decoding processing on data with different resolutions at the same time, for example, the first data component representing contour data Coarse and the second data component Fine representing the detail data are decoded to obtain corresponding image data.
进一步地,在本申请的实施例中,基于上述图5,在对所述第一数据分量和所述第二数据分量进行合并解码处理,获得所述图像数据之后,即步骤205之后,第二无线终端进行图像数据发送的方法还可以包括以下步骤:Further, in the embodiment of the present application, based on the above-mentioned FIG. 5, after performing combined decoding processing on the first data component and the second data component to obtain the image data, that is, after step 205, the second The method for the wireless terminal to send image data may also include the following steps:
步骤207、显示图像数据。 Step 207, display image data.
在本申请的实施例中,第二无线终端在完成对图像数据的解析和获取之后,便可以与第一无线终端同步显示图像数据,从而可以完成第一无线终端向第二无线终端的图像数据的投屏处理。其中,第一无线终端为投屏设备,第二无线终端为被投屏设备。In the embodiment of the present application, after the second wireless terminal completes the analysis and acquisition of the image data, it can display the image data synchronously with the first wireless terminal, so that the image data transfer from the first wireless terminal to the second wireless terminal can be completed. Screencasting processing. Wherein, the first wireless terminal is a screen projection device, and the second wireless terminal is a screen projection device.
综上所述,在本申请的实施例中,根据步骤201至步骤206所提出的图像数据的发送和接收方法,一方面,由于对更为重要的轮廓数据使用低阶MCS进行调制处理,在非理想的情况下能够大大提高传输鲁棒性;另一方面,将轮廓数据和细节数据在同一个封包中同时发送,有效地减少了空口竞争频度;再一方面,仅对轮廓数据对应的第一处理后数据进行FCS检查,因此可以有效降低重传率。To sum up, in the embodiment of this application, according to the image data sending and receiving method proposed in step 201 to step 206, on the one hand, since the more important contour data is modulated by using low-order MCS, the In non-ideal conditions, the robustness of transmission can be greatly improved; on the other hand, the profile data and detail data are sent simultaneously in the same packet, which effectively reduces the frequency of air interface competition; on the other hand, only the profile data corresponding After the first processing, the data is checked by FCS, so the retransmission rate can be effectively reduced.
本申请实施例提供了一种图像数据的发送和接收方法,通过分层编码处理将图像数据中的轮廓数据和细节数据分离出来,对较为重要的轮廓数据使用低阶MCS进行调制处理,从而能够提高传输鲁棒性,同时,使用同一个OFDMA封包中的资源单元传输轮廓数据和细节数据,并且只对轮廓数据对应的第一处理后数据进行FCS检查,在有效降低重传率的基础上,还能减少空口竞争频度,也就是说,本申请提出的图像数据的发送和接收方法,传输鲁棒性高,重传率低,空口竞争少,进而能够大大降低传输延时,从而可以提高投屏效果,有效扩大投屏应用场景。The embodiment of the present application provides a method for sending and receiving image data, which separates the contour data and detail data in the image data through layered coding processing, and uses low-order MCS to modulate the more important contour data, so that it can Improve transmission robustness. At the same time, use resource units in the same OFDMA packet to transmit profile data and detail data, and only perform FCS check on the first processed data corresponding to the profile data. On the basis of effectively reducing the retransmission rate, It can also reduce the frequency of air interface competition, that is to say, the method for sending and receiving image data proposed by this application has high transmission robustness, low retransmission rate, and less air interface competition, which can greatly reduce transmission delay, thereby improving The effect of screen projection effectively expands the application scenarios of screen projection.
基于上述实施例,本申请的再一实施例提供了一种图像数据的发送和接收方法,该方法可以应用于第一无线终端和第二无线终端,其中,第一无线终端可以为任何配置有显示屏、支持Wi-Fi 6协议的终端设备,第二无线终端可以为任何支持Wi-Fi 6协议的终端设备,第一无线终端为投屏设备,第二无线终端为被投屏设备。Based on the above embodiments, another embodiment of the present application provides a method for sending and receiving image data, the method can be applied to the first wireless terminal and the second wireless terminal, wherein the first wireless terminal can be any The display screen, the terminal device supporting the Wi-Fi 6 protocol, the second wireless terminal can be any terminal device supporting the Wi-Fi 6 protocol, the first wireless terminal is the screen projection device, and the second wireless terminal is the screen projected device.
图6为图像数据的发送和接收方法的实现流程示意图,如图6所示,在本申请的实施例中,第一无线终端和第二无线终端进行图像数据发送和接收的方法可以包括以下步骤:Fig. 6 is a schematic diagram of an implementation process of a method for sending and receiving image data. As shown in Fig. 6, in an embodiment of the present application, the method for sending and receiving image data by a first wireless terminal and a second wireless terminal may include the following steps :
步骤301、第一无线终端对图像数据进行分层编码处理,获得第一数据分量和第二数据分量。Step 301, the first wireless terminal performs layered coding processing on image data to obtain a first data component and a second data component.
在本申请的实施例中,第一无线终端可以对图像数据进行分层编码处理,从而可以获得该图像数据对应的第一数据分量和第二数据分量。其中,第一无线终端中可以配置有用于执行分层编码处理的分层编码器,从而可以利用分层编码器对图像数据进行分层编码处理。In the embodiment of the present application, the first wireless terminal may perform layered coding processing on the image data, so as to obtain the first data component and the second data component corresponding to the image data. Wherein, the first wireless terminal may be configured with a layered encoder for performing layered encoding processing, so that the layered encoder may be used to perform layered encoding processing on the image data.
需要说明的是,在本申请的实施例中,上述图像数据可以为第一无线终端正在显示的图像信号的图像数据,也可以为第一无线终端正在播放的视频信号的图像数据。其中,第一数据分量可以表征图像数据中的轮廓数据;第二数据分量可以表征图像数据中的细节数据。It should be noted that, in the embodiment of the present application, the above image data may be image data of an image signal being displayed by the first wireless terminal, or may be image data of a video signal being played by the first wireless terminal. Wherein, the first data component may represent contour data in the image data; the second data component may represent detail data in the image data.
步骤302、第一无线终端按照第一调制阶数对第一数据分量进行调制处理,获得第一处理后数据;按照第二调制阶数对第二数据分量进行调制处理,获得第二处理后数据。Step 302, the first wireless terminal modulates the first data component according to the first modulation order to obtain the first processed data; performs modulation processing on the second data component according to the second modulation order to obtain the second processed data .
在本申请的实施例中,第一无线终端在对图像数据进行分层编码处理,获得该图像数据对应的第一数据分量和第二数据分量之后,可以按照第一调制阶数对第一数据分量进行调制处理,获得第一处理后数据;同时可以按照第二调制阶数对第二数据分量进行调制处理,获得第二处理后数据。In the embodiment of the present application, after the first wireless terminal performs layered coding processing on the image data and obtains the first data component and the second data component corresponding to the image data, it can encode the first data according to the first modulation order The component is modulated to obtain the first processed data; at the same time, the second data component can be modulated according to the second modulation order to obtain the second processed data.
可以理解的是,在本申请的实施例中,为了保证数据发送的实时性和有效性,轮廓数据的关键程度往往高于细节数据的关键程度,因此,可以对第一数据分量采用低阶MCS,从而可以保证在非理想的环境下也能保持较高的传输鲁棒性。相应地,可以对第二数据分量采用高阶MCS,在理想的环境下能够还原出图像数据中的细节数据,传输效果好,而在非理想的环境下,即使出现误差,也仅仅是图像数据中的直接数据存在误差,并不会导致花屏或者卡顿的现象。It can be understood that in the embodiments of the present application, in order to ensure the real-time and effectiveness of data transmission, the criticality of outline data is often higher than that of detail data, therefore, low-order MCS can be used for the first data component , so as to ensure high transmission robustness even in non-ideal environments. Correspondingly, high-order MCS can be used for the second data component, and the detailed data in the image data can be restored in an ideal environment, and the transmission effect is good, but in a non-ideal environment, even if an error occurs, it is only the image data There are errors in the direct data in , which will not cause blurred screen or freeze.
步骤303、第一无线终端计算第一数据分量对应的校验值。Step 303, the first wireless terminal calculates a check value corresponding to the first data component.
步骤304、第一无线终端根据校验值生成帧校验序列,并将帧校验序列添加至第一处理后数据。Step 304, the first wireless terminal generates a frame check sequence according to the check value, and adds the frame check sequence to the first processed data.
在本申请的实施例中,第一无线终端可以针对第一处理后数据进行校验值的计算,然后可以根据校验值生成帧校验序列,从而可以将帧校验序列添加至第一处理后数据中,以使第二无线终端可以对第一数据分量进行校验处理。In the embodiment of the present application, the first wireless terminal can calculate the check value for the first processed data, and then can generate a frame check sequence according to the check value, so that the frame check sequence can be added to the first processing In the latter data, the second wireless terminal can perform verification processing on the first data component.
步骤305、第一无线终端将第一处理后数据和第二处理后数据发送至第二无线终端。Step 305, the first wireless terminal sends the first processed data and the second processed data to the second wireless terminal.
在本申请的实施例中,第一无线终端在获得第一处理后数据和第二处理后数据之后,可以进一步根据所述第一处理后数据和所述第二处理后数据生成所述图像数据对应的数据包,然后将所述数据包发送至第二无线终端。In an embodiment of the present application, after obtaining the first processed data and the second processed data, the first wireless terminal may further generate the image data according to the first processed data and the second processed data corresponding data packets, and then send the data packets to the second wireless terminal.
示例性的,在本申请中,基于相同的OFDMA封包,第一无线终端可以利用不同的RU进行第一处理后数据和第二处理后数据的并行发送。例如,第一无线终端在将数据包发送至第二无线终端时,可以通过第一资源单元将所述第一处理后数据发送至所述第二无线终端;同时可以通过第二资源单元将所述第二处理后数据发送至所述第二无线终端。Exemplarily, in this application, based on the same OFDMA packet, the first wireless terminal may use different RUs to send the first processed data and the second processed data in parallel. For example, when the first wireless terminal sends the data packet to the second wireless terminal, it can send the first processed data to the second wireless terminal through the first resource unit; The second processed data is sent to the second wireless terminal.
相应地,在本申请中,第二无线终端在接收第一无线终端发送的、包括有第一处理后数据和第二处理后数据的数据包时,可以同时采用不同的资源单元进行第一处理后数据和第二处理后数据的接收。例如,第二无线终端可以通过第一资源单元接收所述第一无线终端发送的所述第一处理后数据;同时,第二无线终端可以通过第二资源单元接收 所述第一无线终端发送的所述第二处理后数据。Correspondingly, in this application, when the second wireless terminal receives the data packet sent by the first wireless terminal and includes the first processed data and the second processed data, it can simultaneously use different resource units to perform the first processing The post data and the reception of the second processed data. For example, the second wireless terminal may receive the first processed data sent by the first wireless terminal through the first resource unit; at the same time, the second wireless terminal may receive the first processed data sent by the first wireless terminal through the second resource unit. The second processed data.
步骤306、第二无线终端对第一处理后数据进行解调处理,获得第一数据分量。Step 306, the second wireless terminal demodulates the first processed data to obtain the first data component.
在本申请的实施例中,第二无线终端在接收第一无线终端发送的、包括有第一处理后数据和第二处理后数据的数据包之后,可以先对第一处理后数据进行解调处理,从而获得图像数据对应的第一数据分量。其中,第一数据分量表征图像数据中的轮廓数据。In the embodiment of the present application, after receiving the data packet sent by the first wireless terminal and including the first processed data and the second processed data, the second wireless terminal may first demodulate the first processed data processing, so as to obtain the first data component corresponding to the image data. Wherein, the first data component represents contour data in the image data.
步骤307、第二无线终端对第一数据分量进行校验处理,获得校验结果。Step 307, the second wireless terminal performs verification processing on the first data component, and obtains a verification result.
在本申请的实施例中,第二无线终端在对第一处理后数据进行解调处理,获得第一数据分量之后,可以对第一数据分量进行校验处理,从而获得校验结果,进而根据生成的校验结果确定数据传输是否正确。In the embodiment of the present application, after the second wireless terminal performs demodulation processing on the first processed data to obtain the first data component, it may perform verification processing on the first data component to obtain a verification result, and then according to The generated checksum results determine whether the data transfer was correct.
需要说明的是,在本申请的实施例中,一方面,第一处理后数据对应于图像数据中的轮廓数据,第二处理后数据对应于图像数据中的细节数据,为了保证数据发送的实时性和有效性,轮廓数据的关键程度往往高于细节数据的关键程度;另一方面,在生成第一处理后数据时采用低阶调制模式,在生成第二处理后数据时采用高阶调制模式。因此,第二无线终端可以选择仅仅对第一数据分量进行校验处理,并根据获得的校验结果确定是否需要重传,而不再对第二数据分量进行校验处理,即无论第二处理后数据是否存在传输错误,只要第一数据分量对应的校验结果为校验成功,就对第二处理后数据进行解调处理,从而可以减小重传的概率,进而可以达到减少延时的目的。It should be noted that, in the embodiment of the present application, on the one hand, the first processed data corresponds to the contour data in the image data, and the second processed data corresponds to the detail data in the image data. In order to ensure the real-time data transmission The degree of criticality of contour data is often higher than that of detail data; on the other hand, low-order modulation modes are used when generating the first processed data, and high-order modulation modes are used when generating the second processed data . Therefore, the second wireless terminal may choose to only perform verification processing on the first data component, and determine whether retransmission is required according to the obtained verification result, without performing verification processing on the second data component, that is, regardless of the second processing Whether there is a transmission error in the final data, as long as the verification result corresponding to the first data component is a successful verification, the second processed data will be demodulated, thereby reducing the probability of retransmission and further reducing the delay. Purpose.
步骤308、如果校验结果为校验成功,第二无线终端向第一无线终端发送ACK。Step 308: If the verification result is that the verification is successful, the second wireless terminal sends an ACK to the first wireless terminal.
步骤309、第二无线终端对第二处理后数据进行解调处理,获得第二数据分量。Step 309, the second wireless terminal demodulates the second processed data to obtain a second data component.
在本申请的实施例中,若确定第一数据分量对应的校验结果为校验成功,那么第二无线终端可以向第一无线终端发送ACK,同时,第二无线终端可以对第二处理后数据进行解调处理,获得第二数据分量。其中,不对执行步骤308和步骤309的先后顺序进行限定。In the embodiment of the present application, if it is determined that the verification result corresponding to the first data component is a successful verification, then the second wireless terminal may send an ACK to the first wireless terminal, and at the same time, the second wireless terminal may send an ACK to the second processed The data is demodulated to obtain the second data component. Wherein, the order of performing step 308 and step 309 is not limited.
步骤310、第二无线终端对第一数据分量和第二数据分量进行合并解码处理,获得图像数据。Step 310, the second wireless terminal performs combined decoding processing on the first data component and the second data component to obtain image data.
在本申请的实施例中,第二无线终端中可以配置有用于执行合并解码处理的分层解码器,从而可以利用分层解码器对第一数据分量和第二数据分量进行合并解码处理,获得图像数据。In the embodiment of the present application, the second wireless terminal may be configured with a layered decoder for performing combined decoding processing, so that the layered decoder may be used to perform combined decoding processing on the first data component and the second data component, and obtain image data.
步骤311、第二无线终端显示图像数据。Step 311, the second wireless terminal displays image data.
在本申请的实施例中,第二无线终端在完成对图像数据的解析和获取之后,便可以与第一无线终端同步显示图像数据,从而可以完成第一无线终端向第二无线终端的图像数据的投屏处理。In the embodiment of the present application, after the second wireless terminal completes the analysis and acquisition of the image data, it can display the image data synchronously with the first wireless terminal, so that the image data transfer from the first wireless terminal to the second wireless terminal can be completed. Screencasting processing.
本申请实施例提供了一种图像数据的发送和接收方法,通过分层编码处理将图像数据中的轮廓数据和细节数据分离出来,对较为重要的轮廓数据使用低阶MCS进行调制处理,从而能够提高传输鲁棒性,同时,使用同一个OFDMA封包中的资源单元传输轮廓数据和细节数据,并且只对轮廓数据对应的第一处理后数据进行FCS检查,在有效降低重传率的基础上,还能减少空口竞争频度,也就是说,本申请提出的图像数据的发送和接收方法,传输鲁棒性高,重传率低,空口竞争少,进而能够大大降低传输延时,从而可以提高投屏效果,有效扩大投屏应用场景。The embodiment of the present application provides a method for sending and receiving image data, which separates the contour data and detail data in the image data through layered coding processing, and uses low-order MCS to modulate the more important contour data, so that it can Improve transmission robustness. At the same time, use resource units in the same OFDMA packet to transmit profile data and detail data, and only perform FCS check on the first processed data corresponding to the profile data. On the basis of effectively reducing the retransmission rate, It can also reduce the frequency of air interface competition, that is to say, the method for sending and receiving image data proposed by this application has high transmission robustness, low retransmission rate, and less air interface competition, which can greatly reduce transmission delay, thereby improving The effect of screen projection effectively expands the application scenarios of screen projection.
基于上述实施例,在本申请的另一实施例中,图7为第一无线终端进行图像数据投屏处理的结构示意图,如图7所示,第一无线终端可以配置有显示器、分层编码器以及Wi-Fi发射模块,其中,对于输入的图像数据,第一无线终端在利用显示器显示图像数据的同时,可以利用分层编码器对图像数据进行分层编码处理,从而获得的Coarse分量(用于表征轮廓数据的第一数据分量)和Fine分量(用于表征细节数据的第二数据分量),然后,Coarse分量和Fine分量被一起送至Wi-Fi发射模块,Wi-Fi发射模块将Coarse分量和Fine分量分配到同一个OFDMA封包的两个用于User(第一用户User1和第二用户User2)对应的不同资源单元RU(第一资源单元RU1和第二资源单元RU2)上进行发送。其中,Wi-Fi 6协议和Wi-Fi 7协议均支持OFDMA,并且支持不同User 使用不同的MCS。因此,Coarse分量对应的RU1可以采用低阶调制模式,对应生成数据1(第一处理后数据),Fine分量对应的RU2可以采用高阶调制模式,对应生成数据2(第二处理后数据)。Based on the above-mentioned embodiments, in another embodiment of the present application, FIG. 7 is a schematic structural diagram of the first wireless terminal performing screen projection processing of image data. As shown in FIG. 7, the first wireless terminal may be equipped with a display, a layered coding device and a Wi-Fi transmitting module, wherein, for the input image data, the first wireless terminal may use a layered encoder to perform layered encoding processing on the image data while using the display to display the image data, so as to obtain the Coarse component ( The first data component used to characterize the outline data) and the Fine component (the second data component used to characterize the detail data), and then the Coarse component and the Fine component are sent to the Wi-Fi transmitting module together, and the Wi-Fi transmitting module will The Coarse component and the Fine component are assigned to two different resource units RU (the first resource unit RU1 and the second resource unit RU2) corresponding to the User (the first user User1 and the second user User2) of the same OFDMA packet for transmission . Among them, both Wi-Fi 6 protocol and Wi-Fi 7 protocol support OFDMA, and support different users to use different MCS. Therefore, RU1 corresponding to the Coarse component can adopt a low-order modulation mode, corresponding to generated data 1 (first processed data), and RU2 corresponding to the Fine component can adopt a high-order modulation mode, corresponding to generated data 2 (second processed data).
在本申请的一些实施例中,分层编码器可以是常规的JSCC编码器(用于产生Coarse分量、Fine分量),也可以是小波变换编码器,或者其他类型的编码器(产生的多分辨率数据,分别对应于图像的轮廓和细节部分)。In some embodiments of the present application, the layered encoder can be a conventional JSCC encoder (for generating Coarse components, Fine components), or a wavelet transform encoder, or other types of encoders (for generating multi-resolution rate data, corresponding to the outline and detail parts of the image respectively).
可以理解的是,在本申请的实施例中,Coarse分量代表了图像的轮廓部分,属于关键数据,Coarse分量可以采用低阶MCS调制,在非理想的环境下也可以保持较高的传输鲁棒性;Fine分量代表了图像的微观细节部分,使用高阶MCS调制发送,在信道较好的情况下,接收机可以解出全部细节数据,画质较好;而在信道不理想的情况下,解出的数据包含一些错误的比特信息,相应图像质量出现下降。在错误比特不多的情况下,QAM解调星座判决虽然有一定误差,但并不会偏离太远,因此图像质量下降并不明显,而且不会出现重传导致的严重卡顿、花屏现象。It can be understood that, in the embodiment of the present application, the Coarse component represents the contour part of the image and belongs to key data. The Coarse component can be modulated by low-order MCS, and can maintain high transmission robustness in non-ideal environments. property; the Fine component represents the microscopic details of the image, and is sent using high-order MCS modulation. In the case of a good channel, the receiver can solve all the detailed data, and the image quality is good; while in the case of an unsatisfactory channel, The decoded data contains some erroneous bit information, and the corresponding image quality is degraded. In the case of few error bits, although there is a certain error in the QAM demodulation constellation judgment, it will not deviate too far, so the image quality degradation is not obvious, and there will be no serious freeze and blur caused by retransmission.
进一步地,在本申请的实施例中,第一无线终端通过调节RU1和RU2的大小,以及不同分量使用的MCS模式,可以为Coarse分量和Fine分量实现灵活的带宽分配。另外,Coarse分量对应的数据1和Fine分量对应的数据2在同一帧中发送至第二无线终端,也可以保证Coarse分量和Fine分量的同步发送。Further, in the embodiment of the present application, the first wireless terminal can implement flexible bandwidth allocation for the Coarse component and the Fine component by adjusting the sizes of RU1 and RU2 and the MCS modes used by different components. In addition, the data 1 corresponding to the Coarse component and the data 2 corresponding to the Fine component are sent to the second wireless terminal in the same frame, which can also ensure the synchronous sending of the Coarse component and the Fine component.
图8为第二无线终端进行图像数据投屏处理的结构示意图,如图8所示,第二无线终端可以配置有分层解码器和Wi-Fi接收模块,其中,Wi-Fi接收模块接收到第一无线终端通过两个用户User(第一用户User1和第二用户User2)的第一资源单元RU1和第二资源单元RU2发送的、包括有数据1和数据2的数据包之后,会对数据1和数据2进行解析,获得数据1对应的Coarse分量和数据2对应的Fine分量,接着,第二无线终端再将Coarse分量(用于表征轮廓数据的第一数据分量)和Fine分量(用于表征细节数据的第二数据分量)输入至分层解码器进行合并解码处理,从而可以恢复相应地图像数据,并对该图像数据进行显示处理,以完成第一无线终端向第二无线终端进行图像数据的投屏处理。Fig. 8 is a schematic structural diagram of the second wireless terminal performing screen projection processing of image data. As shown in Fig. 8, the second wireless terminal may be configured with a layered decoder and a Wi-Fi receiving module, wherein the Wi-Fi receiving module receives After the first wireless terminal sends the data packets including data 1 and data 2 through the first resource unit RU1 and the second resource unit RU2 of two users User (the first user User1 and the second user User2), the data 1 and data 2 are analyzed to obtain the Coarse component corresponding to data 1 and the Fine component corresponding to data 2, and then, the second wireless terminal further combines the Coarse component (used to characterize the first data component of the contour data) and the Fine component (used to The second data component representing the detail data) is input to the layered decoder for combined decoding processing, so that the corresponding image data can be restored, and the image data is displayed, so as to complete the image processing from the first wireless terminal to the second wireless terminal. Screen projection processing of data.
其中,由于借用已有端口物理层(Physical,PHY)层数据格式,因此电路的时域、频域部分均能复用,仅解码电路需要为两个用户分别设置。Wherein, since the data format of the physical layer (Physical, PHY) layer of the existing port is borrowed, both the time domain and the frequency domain of the circuit can be multiplexed, and only the decoding circuit needs to be set separately for the two users.
进一步地,在本申请的实施例中,第二无线终端还可以对Wi-Fi的应答机制做一定适配以达到减少时延的目的,在本申请的一些实施例中,第二无线终端中的Wi-Fi接收模块可以只对Coarse分量的数据做FCS检查并发送ACK,对Fine分量的数据并不做FCS检查,从而可以减少重传的概率,降低延时。Further, in the embodiments of the present application, the second wireless terminal can also make certain adaptations to the Wi-Fi response mechanism to achieve the purpose of reducing delay. In some embodiments of the present application, the second wireless terminal The Wi-Fi receiving module can only perform FCS check on the data of the Coarse component and send ACK, and does not perform FCS check on the data of the Fine component, thereby reducing the probability of retransmission and reducing the delay.
示例性的,图9为校验处理的示意图,如图9所示,第一无线终端向第二无线终端发送包括有数据1和数据2的数据包,其中,第一无线终端通过第一用户User1对应的第一资源单元RU1传输数据1,同时通过第二用户User2应的第二资源单元RU2传输数据2。Exemplarily, FIG. 9 is a schematic diagram of verification processing. As shown in FIG. 9, the first wireless terminal sends a data packet including data 1 and data 2 to the second wireless terminal, wherein the first wireless terminal passes the first user The first resource unit RU1 corresponding to User1 transmits data 1, and at the same time transmits data 2 through the second resource unit RU2 corresponding to the second user User2.
在本申请的一些实施例中,发送请求(Require To Send,RTS)为输出信号,用于指示本设备准备好可接收;发送清除(Clear To Send,CTS)为输入信号,有效时停止发送。例如,第一无线终端的RTS连接第二无线终端的CTS;第一无线终端的CTS连接第二无线终端的RTS。前一路信号控制第二无线终端的发送,后一路信号控制第一无线终端的发送。对第二无线终端的发送(第一无线终端接收)来说,如果第一无线终端接收缓冲快满的时发出RTS信号(意思通知第二无线终端停止发送),第二无线终端通过CTS检测到该信号,停止发送;一段时间后第一无线终端接收缓冲有了空余,发出RTS信号,指示第二无线终端开始发送数据。第一无线终端发(第二无线终端接收)类似。In some embodiments of the present application, a request to send (Require To Send, RTS) is an output signal used to indicate that the device is ready to receive; a clear to send (CTS) is an input signal, which stops sending when valid. For example, the RTS of the first wireless terminal is connected to the CTS of the second wireless terminal; the CTS of the first wireless terminal is connected to the RTS of the second wireless terminal. The former signal controls the transmission of the second wireless terminal, and the latter signal controls the transmission of the first wireless terminal. For the transmission of the second wireless terminal (receiving by the first wireless terminal), if the first wireless terminal sends an RTS signal (meaning to notify the second wireless terminal to stop sending) when the receiving buffer is almost full, the second wireless terminal detects it through CTS The signal stops sending; after a period of time, the first wireless terminal receives a free buffer and sends an RTS signal to instruct the second wireless terminal to start sending data. The first wireless terminal sends (the second wireless terminal receives) similarly.
需要说明的是,在本申请中,第二无线终端接收第二无线终端发送的、包括有数据1和数据2的数据包之后,可以对该数据包中的数据1进行FCS检查并发送ACK,即仅仅对Coarse分量对应的数据进行ACK。It should be noted that, in this application, after receiving the data packet sent by the second wireless terminal and including data 1 and data 2, the second wireless terminal may perform an FCS check on data 1 in the data packet and send an ACK, That is, only the data corresponding to the Coarse component is ACKed.
在本申请的一些实施例中,ACK实现方案包括但不限于以下形式:第二无线终端仅发送一个单包ACK;或者,第二无线终端发送MU格式的ACK,对两个User的数据同时进行ACK。In some embodiments of the present application, the ACK implementation scheme includes but is not limited to the following forms: the second wireless terminal only sends a single-packet ACK; or, the second wireless terminal sends an ACK in MU format, and the data of the two users are simultaneously processed ACK.
可以理解的是,在本申请的实施例中,在单点对单点的数据传输中,虽然实际接收方为一个用户,但在PHY层和MAC层数据格式借用了多用户的数据格式进行传输。不同用户的数据(Coarse分量和Fine分量)使用不同的MCS模式:Coarse分量数据量少,但需要高可靠性,即ACK机制;Fine分量数据量大,但因为是细节数据,允许丢失部分数据,因此无需ACK机制。相应地,第二无线终端只对Coarse分量做FCS校验和应答。It can be understood that, in the embodiment of the present application, in the point-to-point data transmission, although the actual receiver is a user, the data format of the PHY layer and the MAC layer borrows the data format of multiple users for transmission . The data of different users (Coarse component and Fine component) use different MCS modes: the Coarse component has a small amount of data, but requires high reliability, that is, the ACK mechanism; the Fine component has a large amount of data, but because it is detailed data, some data is allowed to be lost. Therefore no ACK mechanism is required. Correspondingly, the second wireless terminal only performs an FCS checksum response to the Coarse component.
在本申请的一些实施例中,第二无线终端收到Coarse分量的数据并校验FCS通过后,会以ACK/BA应答;第二无线终端可以发送各种格式的ACK,均视为等同的行为,因为实际上仅对Coarse分量做ACK。In some embodiments of the present application, after the second wireless terminal receives the data of the Coarse component and checks that the FCS is passed, it will respond with ACK/BA; the second wireless terminal can send ACKs in various formats, all of which are considered equivalent Behavior, because actually only do ACK for the Coarse component.
可以理解的是,本申请提出的图像数据的发送和接收方法,在点对点通信的Wi-Fi投屏场景,可以抓取空口包进行确认,即本申请基于点对点通信使用了多用户的数据帧格式;且接收器侧回复单包ACK(如果接收器回复MU-ACK,则视为等效)。It can be understood that the method for sending and receiving image data proposed in this application can capture air interface packets for confirmation in the Wi-Fi projection scenario of point-to-point communication, that is, this application uses a multi-user data frame format based on point-to-point communication ; and the receiver side replies with a single-packet ACK (if the receiver replies with MU-ACK, it is considered equivalent).
本申请实施例提供了一种图像数据的发送和接收方法,通过分层编码处理将图像数据中的轮廓数据和细节数据分离出来,对较为重要的轮廓数据使用低阶MCS进行调制处理,从而能够提高传输鲁棒性,同时,使用同一个OFDMA封包中的资源单元传输轮廓数据和细节数据,并且只对轮廓数据对应的第一处理后数据进行FCS检查,在有效降低重传率的基础上,还能减少空口竞争频度,也就是说,本申请提出的图像数据的发送和接收方法,传输鲁棒性高,重传率低,空口竞争少,进而能够大大降低传输延时,从而可以提高投屏效果,有效扩大投屏应用场景。The embodiment of the present application provides a method for sending and receiving image data, which separates the contour data and detail data in the image data through layered coding processing, and uses low-order MCS to modulate the more important contour data, so that it can Improve transmission robustness. At the same time, use resource units in the same OFDMA packet to transmit profile data and detail data, and only perform FCS check on the first processed data corresponding to the profile data. On the basis of effectively reducing the retransmission rate, It can also reduce the frequency of air interface competition, that is to say, the method for sending and receiving image data proposed by this application has high transmission robustness, low retransmission rate, and less air interface competition, which can greatly reduce transmission delay, thereby improving The effect of screen projection effectively expands the application scenarios of screen projection.
基于上述实施例,在本申请的另一实施例中,图10为第一无线终端的组成结构示意图一,如图10示,本申请实施例提出的第一无线终端10可以包括编码单元11,调制单元12,生成单元13,发送单元14,Based on the above-mentioned embodiments, in another embodiment of the present application, FIG. 10 is a first schematic diagram of the composition and structure of the first wireless terminal. As shown in FIG. 10 , the first wireless terminal 10 proposed in the embodiment of the present application may include a coding unit 11, Modulation unit 12, generating unit 13, sending unit 14,
所述编码单元11,被配置为对图像数据进行分层编码处理,获得第一数据分量和第二数据分量;其中,所述第一数据分量表征所述图像数据中的轮廓数据;所述第二数据分量表征所述图像数据中的细节数据;The encoding unit 11 is configured to perform layered encoding processing on image data to obtain a first data component and a second data component; wherein, the first data component represents contour data in the image data; the second The two data components characterize the detail data in the image data;
所述调制单元12,被配置为按照第一调制阶数对所述第一数据分量进行调制处理,获得第一处理后数据;按照第二调制阶数对所述第二数据分量进行调制处理,获得第二处理后数据;其中,第一调制阶数小于所述第二调制阶数;The modulation unit 12 is configured to perform modulation processing on the first data component according to a first modulation order to obtain first processed data; perform modulation processing on the second data component according to a second modulation order, Obtaining second processed data; wherein, the first modulation order is smaller than the second modulation order;
所述生成单元13,被配置为根据所述第一处理后数据和所述第二处理后数据生成所述图像数据对应的数据包;The generating unit 13 is configured to generate a data packet corresponding to the image data according to the first processed data and the second processed data;
所述发送单元14,被配置为将所述数据包发送至第二无线终端。The sending unit 14 is configured to send the data packet to the second wireless terminal.
在本申请的实施例中,进一步地,图11为第一无线终端的组成结构示意图二,如图11示,本申请实施例提出的第一无线终端10还可以包括第一处理器15、存储有第一处理器15可执行指令的第一存储器16,进一步地,第一无线终端10还可以包括第一通信接口17,和用于连接第一处理器15、第一存储器16以及第一通信接口17的第一总线18。In the embodiment of the present application, further, FIG. 11 is a second schematic diagram of the composition structure of the first wireless terminal. As shown in FIG. 11 , the first wireless terminal 10 proposed in the embodiment of the present application may also include a first processor 15, a There is a first memory 16 with instructions executable by the first processor 15. Further, the first wireless terminal 10 may also include a first communication interface 17, and is used to connect the first processor 15, the first memory 16 and the first communication interface. The first bus 18 of the interface 17 .
进一步地,在本申请的实施例中,第一处理器15,被配置为对所述图像数据进行分层编码处理,获得第一数据分量和第二数据分量;其中,所述第一数据分量表征所述图像数据中的轮廓数据;所述第二数据分量表征所述图像数据中的细节数据;按照第一调制阶数对所述第一数据分量进行调制处理,获得第一处理后数据;按照第二调制阶数对所述第二数据分量进行调制处理,获得第二处理后数据;其中,第一调制阶数小于所述第二调制阶数;根据所述第一处理后数据和所述第二处理后数据生成所述图像数据对应的数据包,并将所述数据包发送至第二无线终端。Further, in the embodiment of the present application, the first processor 15 is configured to perform layered coding processing on the image data to obtain a first data component and a second data component; wherein, the first data component Representing contour data in the image data; the second data component representing detail data in the image data; performing modulation processing on the first data component according to a first modulation order to obtain first processed data; Perform modulation processing on the second data component according to a second modulation order to obtain second processed data; wherein, the first modulation order is smaller than the second modulation order; according to the first processed data and the obtained Generate a data packet corresponding to the image data from the second processed data, and send the data packet to the second wireless terminal.
进一步对,在本申请的实施例中,图12为第二无线终端的组成结构示意图一,如图12示,本申请实施例提出的第二无线终端20可以包括接收单元21,校验单元22, 解调单元23,解码单元24,Further, in the embodiment of the present application, FIG. 12 is a schematic diagram of the composition and structure of the second wireless terminal. As shown in FIG. 12 , the second wireless terminal 20 proposed in the embodiment of the present application may include a receiving unit 21 and a verification unit 22 , demodulation unit 23, decoding unit 24,
所述接收单元21,被配置为接收第一无线终端发送的图像数据对应的数据包;其中,所述数据包包括第一处理后数据和第二处理后数据;The receiving unit 21 is configured to receive a data packet corresponding to the image data sent by the first wireless terminal; wherein, the data packet includes first processed data and second processed data;
所述解调单元23,被配置为对所述第一处理后数据进行解调处理,获得第一数据分量;其中,所述第一数据分量表征所述图像数据中的轮廓数据;The demodulation unit 23 is configured to demodulate the first processed data to obtain a first data component; wherein the first data component represents contour data in the image data;
所述校验单元22,被配置为对所述第一数据分量进行校验处理,获得校验结果;The verification unit 22 is configured to perform verification processing on the first data component to obtain a verification result;
所述解调单元23,还被配置为若所述校验结果为校验成功,则对所述第二处理后数据进行解调处理,获得第二数据分量;其中,所述第二数据分量表征所述图像数据中的细节数据;The demodulation unit 23 is further configured to demodulate the second processed data to obtain a second data component if the verification result is a successful verification; wherein the second data component characterizing detail data in the image data;
所述解码单元24,被配置为对所述第一数据分量和所述第二数据分量进行合并解码处理,获得所述图像数据。The decoding unit 24 is configured to perform combined decoding processing on the first data component and the second data component to obtain the image data.
在本申请的实施例中,进一步地,图13为第二无线终端的组成结构示意图二,如图13示,本申请实施例提出的第二无线终端20还可以包括第二处理器25、存储有第二处理器25可执行指令的第二存储器26,进一步地,第二无线终端20还可以包括第二通信接口27,和用于连接第二处理器25、第二存储器26以及第二通信接口27的第二总线28。In the embodiment of the present application, further, FIG. 13 is a second schematic diagram of the composition structure of the second wireless terminal. As shown in FIG. 13, the second wireless terminal 20 proposed in the embodiment of the present application may also include a second processor 25, a memory There is a second memory 26 with instructions executable by the second processor 25. Further, the second wireless terminal 20 may also include a second communication interface 27, and is used to connect the second processor 25, the second memory 26 and the second communication interface. A second bus 28 for the interface 27 .
进一步地,在本申请的实施例中,第二处理器25,被配置为接收第一无线终端发送的所述图像数据对应的数据包;其中,所述数据包包括第一处理后数据和第二处理后数据;对所述第一处理后数据进行解调处理,获得第一数据分量;其中,所述第一数据分量表征所述图像数据中的轮廓数据;对所述第一数据分量进行校验处理,获得校验结果;若所述校验结果为校验成功,则对所述第二处理后数据进行解调处理,获得第二数据分量;其中,所述第二数据分量表征所述图像数据中的细节数据;对所述第一数据分量和所述第二数据分量进行合并解码处理,获得所述图像数据。Further, in the embodiment of the present application, the second processor 25 is configured to receive a data packet corresponding to the image data sent by the first wireless terminal; wherein, the data packet includes the first processed data and the second Two processed data; performing demodulation processing on the first processed data to obtain a first data component; wherein, the first data component represents the contour data in the image data; performing a demodulation process on the first data component Verifying processing to obtain a verification result; if the verification result is a successful verification, demodulate the second processed data to obtain a second data component; wherein the second data component represents the The detailed data in the image data; performing combined decoding processing on the first data component and the second data component to obtain the image data.
在本申请的实施例中,上述处理器可以为特定用途集成电路(Application Specific Integrated Circuit,ASIC)、数字信号处理器(Digital Signal Processor,DSP)、数字信号处理装置(Digital Signal Processing Device,DSPD)、可编程逻辑装置(ProgRAMmable Logic Device,PLD)、现场可编程门阵列(Field ProgRAMmable Gate Array,FPGA)、中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器中的至少一种。可以理解地,对于不同的设备,用于实现上述处理器功能的电子器件还可以为其它,本申请实施例不作具体限定。存储器可以与处理器连接,其中,存储器用于存储可执行程序代码,该程序代码包括计算机操作指令,存储器可能包含高速RAM存储器,也可能还包括非易失性存储器,例如,至少两个磁盘存储器。In the embodiment of the present application, the above-mentioned processor may be an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a digital signal processor (Digital Signal Processor, DSP), a digital signal processing device (Digital Signal Processing Device, DSPD) , Programmable Logic Device (ProgRAMmable Logic Device, PLD), Field Programmable Gate Array (Field ProgRAMmable Gate Array, FPGA), Central Processing Unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor in at least one. It can be understood that, for different devices, the electronic device used to implement the above processor function may also be other, which is not specifically limited in this embodiment of the present application. The memory may be connected to the processor, wherein the memory is used to store executable program code, the program code includes computer operation instructions, the memory may include a high-speed RAM memory, and may also include a non-volatile memory, for example, at least two magnetic disk memories .
在本申请的实施例中,总线用于连接通信接口、处理器以及存储器以及这些器件之间的相互通信。In the embodiment of the present application, the bus is used to connect the communication interface, the processor and the memory, and the mutual communication between these devices.
在本申请的实施例中,存储器,用于存储指令和数据。In the embodiments of the present application, the memory is used to store instructions and data.
在实际应用中,上述存储器可以是易失性存储器(volatile memory),例如随机存取存储器(Random-Access Memory,RAM);或者非易失性存储器(non-volatile memory),例如只读存储器(Read-Only Memory,ROM),快闪存储器(flash memory),硬盘(Hard Disk Drive,HDD)或固态硬盘(Solid-State Drive,SSD);或者上述种类的存储器的组合,并向处理器提供指令和数据。In practical applications, the above-mentioned memory can be a volatile memory (volatile memory), such as a random access memory (Random-Access Memory, RAM); or a non-volatile memory (non-volatile memory), such as a read-only memory ( Read-Only Memory, ROM), flash memory (flash memory), hard disk (Hard Disk Drive, HDD) or solid-state drive (Solid-State Drive, SSD); or a combination of the above types of memory, and provide instructions to the processor and data.
另外,在本实施例中的各功能模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in this embodiment may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software function modules.
集成的单元如果以软件功能模块的形式实现并非作为独立的产品进行销售或使用时,可以存储在一个计算机可读取存储介质中,基于这样的理解,本实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或processor(处理器) 执行本实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software function module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment is essentially or The part contributed by the prior art or the whole or part of the technical solution can be embodied in the form of software products, the computer software products are stored in a storage medium, and include several instructions to make a computer device (which can be a personal A computer, a server, or a network device, etc.) or a processor (processor) executes all or part of the steps of the method of this embodiment. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (Read Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other various media that can store program codes.
本申请实施例提供了一种第一无线终端和第二无线终端,通过分层编码处理将图像数据中的轮廓数据和细节数据分离出来,对较为重要的轮廓数据使用低阶MCS进行调制处理,从而能够提高传输鲁棒性,同时,使用同一个OFDMA封包中的资源单元传输轮廓数据和细节数据,并且只对轮廓数据对应的第一处理后数据进行FCS检查,在有效降低重传率的基础上,还能减少空口竞争频度,也就是说,本申请提出的图像数据的发送和接收方法,传输鲁棒性高,重传率低,空口竞争少,进而能够大大降低传输延时,从而可以提高投屏效果,有效扩大投屏应用场景。The embodiment of the present application provides a first wireless terminal and a second wireless terminal, which separate the contour data and detail data in the image data through layered coding processing, and use low-order MCS to modulate the more important contour data, In this way, the robustness of the transmission can be improved. At the same time, the resource unit in the same OFDMA packet is used to transmit the outline data and the detail data, and only the FCS check is performed on the first processed data corresponding to the outline data, on the basis of effectively reducing the retransmission rate In addition, it can also reduce the frequency of air interface competition, that is to say, the method for sending and receiving image data proposed in this application has high transmission robustness, low retransmission rate, and less air interface competition, which can greatly reduce transmission delay, thereby It can improve the effect of screen projection and effectively expand the application scenarios of screen projection.
本申请实施例提供一种计算机可读存储介质,其上存储有程序,该程序被处理器执行时实现如上所述的图像数据的发送和接收方法。An embodiment of the present application provides a computer-readable storage medium on which a program is stored, and when the program is executed by a processor, the method for sending and receiving image data as described above is implemented.
具体来讲,本实施例中的一种图像数据的发送和接收方法对应的程序指令可以被存储在光盘,硬盘,U盘等存储介质上,当存储介质中的与一种图像数据的发送和接收方法对应的程序指令被第一无线终端读取或被执行时,包括如下步骤:Specifically, the program instructions corresponding to a method for sending and receiving image data in this embodiment may be stored on a storage medium such as an optical disc, a hard disk, or a USB flash drive. When the program instruction corresponding to the receiving method is read or executed by the first wireless terminal, the following steps are included:
对所述图像数据进行分层编码处理,获得第一数据分量和第二数据分量;其中,所述第一数据分量表征所述图像数据中的轮廓数据;所述第二数据分量表征所述图像数据中的细节数据;performing layered encoding processing on the image data to obtain a first data component and a second data component; wherein, the first data component represents contour data in the image data; the second data component represents the image details in the data;
按照第一调制阶数对所述第一数据分量进行调制处理,获得第一处理后数据;按照第二调制阶数对所述第二数据分量进行调制处理,获得第二处理后数据;其中,第一调制阶数小于所述第二调制阶数;performing modulation processing on the first data component according to a first modulation order to obtain first processed data; performing modulation processing on the second data component according to a second modulation order to obtain second processed data; wherein, the first modulation order is smaller than the second modulation order;
根据所述第一处理后数据和所述第二处理后数据生成所述图像数据对应的数据包,并将所述数据包发送至第二无线终端。Generate a data packet corresponding to the image data according to the first processed data and the second processed data, and send the data packet to a second wireless terminal.
当存储介质中的与一种图像数据的发送和接收方法对应的程序指令被第二无线终端读取或被执行时,包括如下步骤:When the program instructions corresponding to a method for sending and receiving image data in the storage medium are read or executed by the second wireless terminal, the following steps are included:
接收第一无线终端发送的所述图像数据对应的数据包;其中,所述数据包包括第一处理后数据和第二处理后数据;Receive a data packet corresponding to the image data sent by the first wireless terminal; wherein the data packet includes first processed data and second processed data;
对所述第一处理后数据进行解调处理,获得第一数据分量;其中,所述第一数据分量表征所述图像数据中的轮廓数据;Demodulating the first processed data to obtain a first data component; wherein the first data component represents contour data in the image data;
对所述第一数据分量进行校验处理,获得校验结果;performing verification processing on the first data component to obtain a verification result;
若所述校验结果为校验成功,则对所述第二处理后数据进行解调处理,获得第二数据分量;其中,所述第二数据分量表征所述图像数据中的细节数据;If the verification result is a successful verification, demodulating the second processed data to obtain a second data component; wherein the second data component represents the detail data in the image data;
对所述第一数据分量和所述第二数据分量进行合并解码处理,获得所述图像数据。performing combined decoding processing on the first data component and the second data component to obtain the image data.
本申请实施例提供一种芯片,其包括处理器和接口,所述处理器通过接口获取程序指令,所述处理器用于运行所述程序指令,实现如上所述的图像数据的发送和接收方法。An embodiment of the present application provides a chip, which includes a processor and an interface, the processor acquires program instructions through the interface, and the processor is used to run the program instructions to implement the method for sending and receiving image data as described above.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) having computer-usable program code embodied therein.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的实现流程示意图和/或方框图来描述的。应理解可由计算机程序指令实现流程示意图和/或方框图中的每一流程和/或方框、以及实现流程示意图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在实现流程示意图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to the implementation flow diagrams and/or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and/or block in the schematic flowchart and/or block diagram, and a combination of processes and/or blocks in the schematic flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a Means for realizing the functions specified in one or more steps of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定 方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在实现流程示意图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in implementing one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在实现流程示意图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in implementing the process flow or processes of the flowchart diagrams and/or the block or blocks of the block diagrams.
以上所述,仅为本申请的较佳实施例而已,并非用于限定本申请的保护范围。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the protection scope of the present application.
工业实用性Industrial Applicability
在本申请的实施例中,通过分层编码处理将图像数据中的轮廓数据和细节数据分离出来,对较为重要的轮廓数据使用低阶MCS进行调制处理,从而能够提高传输鲁棒性,同时,使用同一个OFDMA封包中的资源单元传输轮廓数据和细节数据,并且只对轮廓数据对应的第一处理后数据进行FCS检查,在有效降低重传率的基础上,还能减少空口竞争频度,也就是说,本申请提出的图像的发送和接收方法,传输鲁棒性高,重传率低,空口竞争少,进而能够大大降低传输延时,从而可以提高投屏效果,有效扩大投屏应用场景。In the embodiment of the present application, the contour data and detail data in the image data are separated through layered coding processing, and the more important contour data is modulated by using low-order MCS, so that the robustness of transmission can be improved. At the same time, Use resource units in the same OFDMA packet to transmit profile data and detail data, and only perform FCS check on the first processed data corresponding to the profile data. On the basis of effectively reducing the retransmission rate, it can also reduce the frequency of air interface competition. In other words, the image sending and receiving method proposed in this application has high transmission robustness, low retransmission rate, and less air interface competition, which can greatly reduce transmission delay, thereby improving the effect of screen projection and effectively expanding the application of screen projection Scenes.

Claims (21)

  1. 一种在第一无线终端中发送图像数据的方法,包括:A method of sending image data in a first wireless terminal, comprising:
    对所述图像数据进行分层编码处理,获得第一数据分量和第二数据分量;其中,所述第一数据分量表征所述图像数据中的轮廓数据;所述第二数据分量表征所述图像数据中的细节数据;performing layered encoding processing on the image data to obtain a first data component and a second data component; wherein, the first data component represents contour data in the image data; the second data component represents the image details in the data;
    按照第一调制阶数对所述第一数据分量进行调制处理,获得第一处理后数据;按照第二调制阶数对所述第二数据分量进行调制处理,获得第二处理后数据;其中,第一调制阶数小于所述第二调制阶数;performing modulation processing on the first data component according to a first modulation order to obtain first processed data; performing modulation processing on the second data component according to a second modulation order to obtain second processed data; wherein, the first modulation order is smaller than the second modulation order;
    根据所述第一处理后数据和所述第二处理后数据生成所述图像数据对应的数据包,并将所述数据包发送至第二无线终端。Generate a data packet corresponding to the image data according to the first processed data and the second processed data, and send the data packet to a second wireless terminal.
  2. 根据权利要求1所述的方法,其中,所述将所述数据包发送至第二无线终端,包括:The method according to claim 1, wherein the sending the data packet to the second wireless terminal comprises:
    通过第一资源单元将所述第一处理后数据发送至所述第二无线终端;sending the first processed data to the second wireless terminal through a first resource unit;
    通过第二资源单元将所述第二处理后数据发送至所述第二无线终端。Sending the second processed data to the second wireless terminal through a second resource unit.
  3. 根据权利要求2所述的方法,其中,The method of claim 2, wherein,
    所述第一资源单元和所述第二资源单元包括不同的时频资源块。The first resource unit and the second resource unit include different time-frequency resource blocks.
  4. 根据权利要求3所述的方法,其中,所述方法还包括:The method according to claim 3, wherein the method further comprises:
    分别对所述第一资源单元和所述第二资源单元进行资源大小的配置。Configuring resource sizes for the first resource unit and the second resource unit respectively.
  5. 根据权利要求1所述的方法,其中,所述根据所述第一处理后数据和所述第二处理后数据生成所述图像数据对应的数据包之前,所述方法还包括:The method according to claim 1, wherein, before generating the data packet corresponding to the image data according to the first processed data and the second processed data, the method further comprises:
    计算所述第一数据分量对应的校验值;calculating a check value corresponding to the first data component;
    根据所述校验值生成帧校验序列,并将所述帧校验序列添加至所述第一处理后数据。A frame check sequence is generated according to the check value, and the frame check sequence is added to the first processed data.
  6. 根据权利要求1至5任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 1 to 5, wherein the method further comprises:
    基于Wi-Fi 6协议对所述第一数据分量和所述第二数据分量进行调制处理;performing modulation processing on the first data component and the second data component based on the Wi-Fi 6 protocol;
    基于Wi-Fi 6协议发送所述第一处理后数据和所述第二处理后数据。Sending the first processed data and the second processed data based on the Wi-Fi 6 protocol.
  7. 根据权利要求1至5任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 1 to 5, wherein the method further comprises:
    基于Wi-Fi 7协议对所述第一数据分量和所述第二数据分量进行调制处理;Modulating the first data component and the second data component based on the Wi-Fi 7 protocol;
    基于Wi-Fi 7协议发送所述第一处理后数据和所述第二处理后数据。Sending the first processed data and the second processed data based on the Wi-Fi 7 protocol.
  8. 根据权利要求5所述的方法,其中,所述方法还包括:The method according to claim 5, wherein the method further comprises:
    接收所述第二无线终端发送的确认应答。Receive an acknowledgment response sent by the second wireless terminal.
  9. 一种在第二无线终端中接收图像数据的方法,所述方法包括:A method of receiving image data in a second wireless terminal, the method comprising:
    接收第一无线终端发送的所述图像数据对应的数据包;其中,所述数据包包括第一处理后数据和第二处理后数据;Receive a data packet corresponding to the image data sent by the first wireless terminal; wherein the data packet includes first processed data and second processed data;
    对所述第一处理后数据进行解调处理,获得第一数据分量;其中,所述第一数据分量表征所述图像数据中的轮廓数据;Demodulating the first processed data to obtain a first data component; wherein the first data component represents contour data in the image data;
    对所述第一数据分量进行校验处理,获得校验结果;performing verification processing on the first data component to obtain a verification result;
    若所述校验结果为校验成功,则对所述第二处理后数据进行解调处理,获得第二数据分量;其中,所述第二数据分量表征所述图像数据中的细节数据;If the verification result is a successful verification, demodulating the second processed data to obtain a second data component; wherein the second data component represents the detail data in the image data;
    对所述第一数据分量和所述第二数据分量进行合并解码处理,获得所述图像数据。performing combined decoding processing on the first data component and the second data component to obtain the image data.
  10. 根据权利要求9所述的方法,其中,所述接收第一无线终端发送的所述图像数据对应的数据包,包括:The method according to claim 9, wherein the receiving the data packet corresponding to the image data sent by the first wireless terminal comprises:
    通过第一资源单元接收所述第一无线终端发送的所述第一处理后数据;receiving the first processed data sent by the first wireless terminal through a first resource unit;
    通过第二资源单元接收所述第一无线终端发送的所述第二处理后数据。The second processed data sent by the first wireless terminal is received by using a second resource unit.
  11. 根据权利要求10所述的方法,其中,The method of claim 10, wherein,
    所述第一资源单元和所述第二资源单元包括不同的时频资源块。The first resource unit and the second resource unit include different time-frequency resource blocks.
  12. 根据权利要求9所述的方法,其中,所述对所述第一数据分量进行校验处理,获得校验结果,包括:The method according to claim 9, wherein said performing verification processing on said first data component to obtain a verification result comprises:
    计算所述第一数据分量对应的校验值;calculating a check value corresponding to the first data component;
    根据所述校验值和所述第一处理后数据的帧校验序列,确定所述校验结果。The check result is determined according to the check value and the frame check sequence of the first processed data.
  13. 根据权利要求12所述的方法,其中,所述根据所述校验值和所述第一处理后数据的帧校验序列,确定所述校验结果,包括:The method according to claim 12, wherein said determining the verification result according to the verification value and the frame verification sequence of the first processed data comprises:
    若所述校验值和所述帧校验序列相同,则确定所述校验结果为校验成功;If the check value is the same as the frame check sequence, it is determined that the check result is a successful check;
    若所述校验值和所述帧校验序列不同,则确定所述校验结果为校验失败。If the check value is different from the frame check sequence, it is determined that the check result is a check failure.
  14. 根据权利要求13所述的方法,其中,所述对所述第一数据分量进行校验处理,获得校验结果之后,所述方法还包括:The method according to claim 13, wherein, after performing verification processing on the first data component, after obtaining the verification result, the method further comprises:
    若所述校验结果为校验成功,则向所述第一无线终端发送确认应答。If the verification result is that the verification is successful, sending an acknowledgment response to the first wireless terminal.
  15. 根据权利要求9所述的方法,其中,所述对所述第一数据分量和所述第二数据分量进行合并解码处理,获得所述图像数据之后,所述方法还包括:The method according to claim 9, wherein, after performing combined decoding processing on the first data component and the second data component, after obtaining the image data, the method further comprises:
    显示所述图像数据。The image data is displayed.
  16. 根据权利要求9至15任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 9 to 15, wherein the method further comprises:
    基于Wi-Fi 6协议或Wi-Fi 7协议接收所述第一处理后数据和所述第二处理后数据。The first processed data and the second processed data are received based on the Wi-Fi 6 protocol or the Wi-Fi 7 protocol.
  17. 一种第一无线终端,所述第一无线终端包括:编码单元,调制单元,生成单元,发送单元,A first wireless terminal, the first wireless terminal comprising: a coding unit, a modulating unit, a generating unit, a sending unit,
    所述编码单元,被配置为对图像数据进行分层编码处理,获得第一数据分量和第二数据分量;其中,所述第一数据分量表征所述图像数据中的轮廓数据;所述第二数据分量表征所述图像数据中的细节数据;The coding unit is configured to perform layered coding processing on image data to obtain a first data component and a second data component; wherein, the first data component represents contour data in the image data; the second The data component characterizes detail data in the image data;
    所述调制单元,被配置为按照第一调制阶数对所述第一数据分量进行调制处理,获得第一处理后数据;按照第二调制阶数对所述第二数据分量进行调制处理,获得第二处理后数据;其中,第一调制阶数小于所述第二调制阶数;The modulation unit is configured to perform modulation processing on the first data component according to a first modulation order to obtain first processed data; perform modulation processing on the second data component according to a second modulation order to obtain second processed data; wherein, the first modulation order is smaller than the second modulation order;
    所述生成单元,被配置为根据所述第一处理后数据和所述第二处理后数据生成所述图像数据对应的数据包;The generating unit is configured to generate a data packet corresponding to the image data according to the first processed data and the second processed data;
    所述发送单元,被配置为将所述数据包发送至第二无线终端。The sending unit is configured to send the data packet to a second wireless terminal.
  18. 一种第二无线终端,所述第二无线终端包括:接收单元,校验单元,解调单元,解码单元,A second wireless terminal, the second wireless terminal comprising: a receiving unit, a checking unit, a demodulating unit, a decoding unit,
    所述接收单元,被配置为接收第一无线终端发送的图像数据对应的数据包;其中,所述数据包包括第一处理后数据和第二处理后数据;The receiving unit is configured to receive a data packet corresponding to the image data sent by the first wireless terminal; wherein the data packet includes first processed data and second processed data;
    所述解调单元,被配置为对所述第一处理后数据进行解调处理,获得第一数据分量;其中,所述第一数据分量表征所述图像数据中的轮廓数据;The demodulation unit is configured to demodulate the first processed data to obtain a first data component; wherein the first data component represents contour data in the image data;
    所述校验单元,被配置为对所述第一数据分量进行校验处理,获得校验结果;The verification unit is configured to perform verification processing on the first data component to obtain a verification result;
    所述解调单元,还被配置为若所述校验结果为校验成功,则对所述第二处理后数据进行解调处理,获得第二数据分量;其中,所述第二数据分量表征所述图像数据中的细节数据;The demodulation unit is further configured to demodulate the second processed data to obtain a second data component if the verification result is a successful verification; wherein the second data component represents detail data in said image data;
    所述解码单元,被配置为对所述第一数据分量和所述第二数据分量进行合并解码处理,获得所述图像数据。The decoding unit is configured to perform combined decoding processing on the first data component and the second data component to obtain the image data.
  19. 一种第一无线终端,所述第一无线终端包括第一处理器、存储有所述第一处理器可执行指令的第一存储器,当所述指令被所述第一处理器执行时,实现如权利要求1-8任一项所述的方法。A first wireless terminal, the first wireless terminal includes a first processor and a first memory storing instructions executable by the first processor, and when the instructions are executed by the first processor, the The method according to any one of claims 1-8.
  20. 一种第二无线终端,所述第二无线终端包括第二处理器、存储有所述第二处理器可执行指令的第二存储器,当所述指令被所述第二处理器执行时,实现如权利要求9-16任一项所述的方法。A second wireless terminal, the second wireless terminal includes a second processor and a second memory storing instructions executable by the second processor, and when the instructions are executed by the second processor, the The method according to any one of claims 9-16.
  21. 一种芯片,所述芯片包括处理器和接口,所述处理器通过所述接口获取程序指令,所述处理器用于运行所述程序指令,以执行如权利要求1-8或9-16任一项所述的方法。A chip, the chip includes a processor and an interface, the processor obtains program instructions through the interface, and the processor is used to run the program instructions to perform any one of claims 1-8 or 9-16 method described in the item.
PCT/CN2022/085779 2021-05-19 2022-04-08 Image data sending method, image data receiving method, terminal, chip, and storage medium WO2022242362A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110546189.4 2021-05-19
CN202110546189.4A CN115379231A (en) 2021-05-19 2021-05-19 Method for transmitting and receiving image data, terminal, chip and storage medium

Publications (1)

Publication Number Publication Date
WO2022242362A1 true WO2022242362A1 (en) 2022-11-24

Family

ID=84058946

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/085779 WO2022242362A1 (en) 2021-05-19 2022-04-08 Image data sending method, image data receiving method, terminal, chip, and storage medium

Country Status (2)

Country Link
CN (1) CN115379231A (en)
WO (1) WO2022242362A1 (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1366770A (en) * 2000-03-02 2002-08-28 皇家菲利浦电子有限公司 System and method for improving video transmission over wireless network
CN101208925A (en) * 2005-03-31 2008-06-25 高通股份有限公司 Power savings in hierarchically coded modulation
CN101273627A (en) * 2005-09-27 2008-09-24 韩国电子通信研究院 Apparatus for transmitting and receiving digital multimedia broadcasting for high-quality video service
EP2164218A2 (en) * 2008-09-11 2010-03-17 NTT DoCoMo, Inc. Method and apparatus for transmitting/receiving multimedia broadcast/multicast data based on hierarchical modulation
CN102301819A (en) * 2008-11-21 2011-12-28 皮恩-汉·霍 System, Method, And Computer Program For Superposition Coded Multicast With A Single Modulation Scheme
CN104022850A (en) * 2014-06-20 2014-09-03 太原科技大学 Self-adaptive layered video transmission method based on channel characteristics
US20140269937A1 (en) * 2013-03-14 2014-09-18 Harris Corporation Systems and methods for multiple stream encoded digital video
CN107786892A (en) * 2017-10-27 2018-03-09 深圳Tcl数字技术有限公司 A kind of method, apparatus and readable storage medium storing program for executing for broadcasting DTV
CN109565351A (en) * 2016-06-14 2019-04-02 瑞典爱立信有限公司 Control data transmission scheme
WO2021180220A1 (en) * 2020-03-13 2021-09-16 华为技术有限公司 Image encoding and decoding method and apparatus

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1366770A (en) * 2000-03-02 2002-08-28 皇家菲利浦电子有限公司 System and method for improving video transmission over wireless network
CN101208925A (en) * 2005-03-31 2008-06-25 高通股份有限公司 Power savings in hierarchically coded modulation
CN101273627A (en) * 2005-09-27 2008-09-24 韩国电子通信研究院 Apparatus for transmitting and receiving digital multimedia broadcasting for high-quality video service
EP2164218A2 (en) * 2008-09-11 2010-03-17 NTT DoCoMo, Inc. Method and apparatus for transmitting/receiving multimedia broadcast/multicast data based on hierarchical modulation
CN102301819A (en) * 2008-11-21 2011-12-28 皮恩-汉·霍 System, Method, And Computer Program For Superposition Coded Multicast With A Single Modulation Scheme
US20140269937A1 (en) * 2013-03-14 2014-09-18 Harris Corporation Systems and methods for multiple stream encoded digital video
CN104022850A (en) * 2014-06-20 2014-09-03 太原科技大学 Self-adaptive layered video transmission method based on channel characteristics
CN109565351A (en) * 2016-06-14 2019-04-02 瑞典爱立信有限公司 Control data transmission scheme
CN107786892A (en) * 2017-10-27 2018-03-09 深圳Tcl数字技术有限公司 A kind of method, apparatus and readable storage medium storing program for executing for broadcasting DTV
WO2021180220A1 (en) * 2020-03-13 2021-09-16 华为技术有限公司 Image encoding and decoding method and apparatus

Also Published As

Publication number Publication date
CN115379231A (en) 2022-11-22

Similar Documents

Publication Publication Date Title
CN112753185B (en) Method and apparatus for hybrid automatic repeat request (HARQ) in a Wireless Local Area Network (WLAN)
KR101456497B1 (en) System and method for wireless communication of uncompressed video having a composite frame format
CN101855872B (en) Method and system for formation and communication of information frames in wireless communication systems
US8132071B2 (en) Transmitting device, receiving device, packet transmission method, packet reception method, and programs for same
EP2437421B1 (en) Method, device and communication system for retransmitting based on forward error correction
US7782836B2 (en) Method and system for transmission of different types of information in wireless communication
TW201519596A (en) Systems and methods for smart HARQ for WiFi
US8681755B2 (en) Method and apparatus for generating data frame in wireless personal area network
US20080273600A1 (en) Method and apparatus of wireless communication of uncompressed video having channel time blocks
CN109428681B (en) Wireless communication device and wireless communication method
US10523398B2 (en) Electronic apparatus and wireless communication method
CN104871546A (en) Enhanced video streaming with application layer forward error correction
US9614883B2 (en) Method and device for transmitting uncompressed video streams
TWI229991B (en) Wireless communication method and wireless communication device
JP2022516802A (en) Data retransmission over wireless network
TWI811233B (en) Communication device and method
WO2018201984A1 (en) Data transmission method and device
US20110206022A1 (en) QoS WIRELESS NETWORKING FOR HOME ENTERTAINMENT
WO2022242362A1 (en) Image data sending method, image data receiving method, terminal, chip, and storage medium
WO2022133918A1 (en) Decoding failure processing method, apparatus and system
WO2017054571A1 (en) Data transmission method, device and system
JP7318033B2 (en) Wireless communication device and wireless communication method
CN114631280A (en) Media access controller with codec error model
WO2022050019A1 (en) Information processing device and decoding method
WO2024007224A1 (en) Feedback-based adaptive transmission method

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE