WO2022241737A1 - 数据传输方法及相关设备 - Google Patents

数据传输方法及相关设备 Download PDF

Info

Publication number
WO2022241737A1
WO2022241737A1 PCT/CN2021/094988 CN2021094988W WO2022241737A1 WO 2022241737 A1 WO2022241737 A1 WO 2022241737A1 CN 2021094988 W CN2021094988 W CN 2021094988W WO 2022241737 A1 WO2022241737 A1 WO 2022241737A1
Authority
WO
WIPO (PCT)
Prior art keywords
frame
mac
data transmission
data
transmission device
Prior art date
Application number
PCT/CN2021/094988
Other languages
English (en)
French (fr)
Inventor
刘勇军
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN202180077582.1A priority Critical patent/CN116508275A/zh
Priority to EP21940191.6A priority patent/EP4336755A4/en
Priority to PCT/CN2021/094988 priority patent/WO2022241737A1/zh
Publication of WO2022241737A1 publication Critical patent/WO2022241737A1/zh
Priority to US18/512,280 priority patent/US20240089212A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/43Assembling or disassembling of packets, e.g. segmentation and reassembly [SAR]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0041Arrangements at the transmitter end
    • H04L1/0042Encoding specially adapted to other signal generation operation, e.g. in order to reduce transmit distortions, jitter, or to improve signal shape
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/322Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
    • H04L69/324Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the data link layer [OSI layer 2], e.g. HDLC

Definitions

  • the present application relates to the technical field of communications, and in particular to a data transmission method and related equipment.
  • Network protocols usually include application layer, transport layer, network layer, data link layer and physical layer from top to bottom.
  • the header information of the specific protocol needs to be added every time the data passes through a layer of protocol; while the receiving process is the opposite, the header information of the specific protocol needs to be removed every time the data passes through a layer of protocol. Due to the large number of protocol layers, there is a large delay in data transmission between data transmission devices, and some application scenarios (such as services that require real-time data transmission) cannot meet the low-latency data transmission requirements.
  • Embodiments of the present application provide a data transmission method and related equipment, which can realize low-latency data transmission in a communication network.
  • the first aspect of the present application discloses a data transmission method applied to a first data transmission device, the method comprising: constructing a first Media Access Control (MAC) frame, the first MAC frame including a frame header part and The data part, the frame header part includes a protocol type field, the protocol type field of the first MAC frame is a first indication value, the first indication value represents that the data part of the first MAC frame includes a data header and data content, and the data header includes a frame type field and a data length field, the frame type field is used to indicate the type of the first MAC frame, and the data length field is used to indicate the length of the data content; the first MAC frame is sent to the second data transmission device.
  • MAC Media Access Control
  • IP Internet Protocol
  • the IP address is the address used by the network layer in the currently used five-layer network protocol.
  • the five-layer network protocol includes the application layer, the transport layer, the network layer, the data link layer and the physical layer from top to bottom.
  • the data transmission method based on the IP address The data transmission is slow and cannot meet the low-latency data transmission requirements.
  • the data transmission method provided by the embodiment of the present application constructs an improved MAC frame (such as the first MAC frame), and performs data transmission through the improved MAC frame based on the MAC protocol.
  • the MAC protocol is a protocol used by the data link layer.
  • the network protocol used in the embodiment of the present application includes the data link layer and the physical layer from top to bottom, omitting the processing of the application layer, transport layer and network layer.
  • the data transmission devices do not need to be configured with IP addresses, and can be interconnected and transmit data to each other without configuring IP addresses, which reduces the interconnection time between devices and realizes low-cost Time-delayed data transmission improves transmission efficiency.
  • the protocol type field and the data header of the existing MAC frame are customized to obtain an improved MAC frame, and fast data transmission is realized through the improved MAC frame.
  • the frame type field is the first frame type, and the first frame type indicates that the first MAC frame is used to find the MAC addresses of other data transmission devices; or the frame type field is the second frame type, and the second The frame type indicates that the first MAC frame is used to advertise its own MAC address; or the frame type field is a third frame type, and the third frame type indicates that the first MAC frame is used to transmit application data, and the data content includes application data.
  • the first MAC frame used in the embodiment of the present application includes a data part, the data part includes a data header, and the data header includes a frame type field.
  • the embodiment of the present application defines three frame types through the frame type field, so that it can be realized through the first MAC frame Find the MAC address of other data transmission equipment, advertise its own MAC address, and transmit application data.
  • sending the first MAC frame to the second data transmission device includes: sending the first MAC frame to the second data transmission device in a MAC broadcast manner .
  • the method further includes: receiving a second MAC frame sent by the second data transmission device, and the second MAC frame The frame is sent to the first data transmission device through MAC unicast after the second data transmission device receives the first MAC frame.
  • the structure of the second MAC frame is the same as that of the first MAC frame.
  • the frame type field of the second MAC frame It is the second frame type, the data content of the second MAC frame includes the device information of the second data transmission device, and the frame header of the second MAC frame includes the MAC address of the second data transmission device; the second data is parsed from the second MAC frame The MAC address of the transmitting device.
  • the first data transmission device first sends the first MAC to the second data transmission device through MAC broadcasting, the second data transmission device obtains the MAC address of the first data transmission device from the first MAC frame, and the second data transmission device uses the MAC address
  • the second MAC frame is sent in unicast mode, and the first data transmission device obtains the MAC address of the second data transmission device from the second MAC frame, thereby establishing a data connection between the first data transmission device and the second data transmission device, so that the subsequent first
  • the data transmission device sends the application data to the second data transmission device.
  • the method before constructing the first MAC frame, further includes: receiving a third MAC frame sent by the second data transmission device in a MAC broadcast manner, the structure of the third MAC frame is the same as that of the first MAC frame
  • the MAC frame is the same, the frame type field of the third MAC frame is the first frame type, the data content of the third MAC frame includes the device information of the second data transmission device; the frame header of the third MAC frame includes the MAC address of the second data transmission device address; parse the MAC address of the second data transmission device from the third MAC frame; constructing the first MAC frame includes: constructing the first MAC frame based on the MAC address of the second data transmission device, and the frame type field of the first MAC frame is the first MAC address.
  • Two frame types the frame header of the first MAC frame includes the MAC address of the first data transmission device; sending the first MAC frame to the second data transmission device includes: sending the first MAC frame to the second MAC unicast Data transmission equipment.
  • the second data transmission device first sends the third MAC to the first data transmission device through MAC broadcasting, the first data transmission device obtains the MAC address of the second data transmission device from the third MAC, and the first data transmission device then passes the MAC Send the first MAC to the second data transmission device in a broadcast mode, and the second data transmission device obtains the MAC address of the first data transmission device from the first MAC, thereby establishing a data connection between the first data transmission device and the second data transmission device, In order to subsequently send the application data to the second data transmission device by the first data transmission device.
  • the first data transmission device includes an indoor unit
  • the second data transmission device includes a panel with a screen
  • the indoor unit and the panel with a screen form a visual access control system
  • the device information of the second data transmission device includes screen resolution, screen size and decoder information.
  • the first data transmission device includes an application program corresponding to the second data transmission device, and before constructing the first MAC frame, the method further includes: running the application program on the first data transmission device; Generate the graphical interface of the application program according to the resolution and screen size; encode the graphical interface according to the decoder information to obtain the application data.
  • the data header further includes a packet number field and a fragmentation number field
  • constructing the first MAC frame for the application data includes: fragmenting the application data to obtain fragmented data; The forward error correction coding is performed on the data to obtain the forward error correction code; the forward error correction code and the fragmented data are encapsulated to obtain the first MAC frame.
  • the maximum length of the data content of the improved MAC frame (such as the first MAC frame) used in the embodiment of the present application may be smaller than the size of the application data (for example, smaller than the size of each frame of image in the application data), and the application data is fragmented , can realize the rapid transmission of large application data. Carrying out forward error correction coding on the fragmented data can realize reliable transmission in channels with unreliable or strong noise interference, and improve the reliability of data transmission.
  • the second aspect of the present application discloses a data transmission method applied to a second data transmission device, the method comprising:
  • the first MAC frame includes a frame header part and a data part, the frame header part includes a protocol type field, and the protocol type field of the first MAC frame is a first indication value
  • the first indication value indicates that the data part of the first MAC frame includes a data header and data content
  • the data header includes a frame type field and a data length field
  • the frame type field is used to indicate the type of the first MAC frame
  • the data length field is used to indicate data The length of the content.
  • the frame type field is a third frame type
  • the third frame type indicates that the first MAC frame is used to transmit application data
  • the data content includes application data
  • the method further includes: from the third frame type The first MAC frame parses out the application data.
  • the data header further includes a packet number field and a fragment number field
  • the method further includes: performing forward error correction decoding on the application data to obtain data after error correction decoding;
  • the number field and the fragment number field combine the error-corrected and decoded data into data packets.
  • the frame type field is the first frame type
  • the first frame type indicates that the first MAC frame is used to find the MAC addresses of other data transmission devices
  • the first MAC frame is sent to the
  • the frame header part of the first MAC frame includes the MAC address of the first data transmission device
  • the method further includes: parsing out the first MAC frame of the first frame type The MAC address of the first data transmission device; construct the second MAC frame, the structure of the second MAC frame is the same as the first MAC frame, the frame type field of the second MAC frame is the second frame type, and the data content of the second MAC frame includes The device information of the second data transmission device, the second frame type indicates that the second MAC frame is used to advertise its own MAC address, and the frame header of the second MAC frame includes the MAC address of the second data transmission device; the second MAC frame is passed through the MAC Send to the first data transmission device in unicast mode.
  • the frame type field is the second frame type, and the second frame type indicates that the first MAC frame is used to advertise its own MAC address, and the first MAC frame is sent to the second frame in MAC unicast mode.
  • the frame header of the first MAC frame includes the MAC address of the first data transmission device; before receiving the first MAC frame, the method further includes: constructing a third MAC frame, the structure of the third MAC frame is the same as that of the first MAC frame.
  • the MAC frame is the same, the frame type field of the third MAC frame is the first frame type, the data content of the third MAC frame includes the device information of the second data transmission device, and the first frame type indicates that the third MAC frame is used to search for other data transmission
  • the MAC address of the device, the frame header of the third MAC frame includes the MAC address of the second data transmission device; the third MAC frame is sent to the first data transmission device in the form of MAC broadcast; after receiving the first MAC frame, the method It also includes:
  • the first data transmission device includes an indoor unit
  • the second data transmission device includes a panel with a screen
  • the indoor unit and the panel with a screen form a visual access control system
  • the third aspect of the present application discloses a data transmission device, which is applied to a first data transmission device.
  • the data transmission device includes: a first construction module, configured to construct a first media input control MAC frame, and the first MAC frame includes a frame header part and the data part, the frame header part includes a protocol type field, the protocol type field of the first MAC frame is a first indication value, the first indication value represents that the data part of the first MAC frame includes a data header and data content, and the data header includes a frame type field and a data length field, the frame type field is used to indicate the type of the first MAC frame, and the data length field is used to indicate the length of the data content; the first sending module is used to send the first MAC frame to the second data transmission device.
  • the frame type field is the first frame type, and the first frame type indicates that the first MAC frame is used to find the MAC addresses of other data transmission devices; or the frame type field is the second frame type, and the second The frame type indicates that the first MAC frame is used to advertise its own MAC address; or the frame type field is a third frame type, and the third frame type indicates that the first MAC frame is used to transmit application data, and the data content includes application data.
  • the first sending module is specifically configured to: send the first MAC frame to the second data transmission device in the form of MAC broadcast; the data transmission device further includes : The first receiving module is used to receive the second MAC frame sent by the second data transmission device, and the second MAC frame is sent to the first data transmission through MAC unicast after the second data transmission device receives the first MAC frame
  • the structure of the second MAC frame is the same as that of the first MAC frame
  • the frame type field of the second MAC frame is the second frame type
  • the data content of the second MAC frame includes the device information of the second data transmission device
  • the second MAC frame The frame header of the frame includes the MAC address of the second data transmission device; the first parsing module is used to parse out the MAC address of the second data transmission device from the second MAC frame.
  • the data transmission device further includes: a second receiving module, configured to receive a third MAC frame sent by the second data transmission device in MAC broadcast mode, the structure of the third MAC frame is the same as that of the first MAC frame The frames are the same, the frame type field of the third MAC frame is the first frame type, the data content of the third MAC frame includes the device information of the second data transmission device, and the frame header of the third MAC frame includes the MAC address of the second data transmission device ;
  • the second parsing module is used to parse out the MAC address of the second data transmission device from the third MAC frame;
  • the first construction module is specifically used to: construct the first MAC frame based on the MAC address of the second data transmission device, the first MAC
  • the frame type field of the frame is the second frame type, and the frame header of the first MAC frame includes the MAC address of the first data transmission device;
  • the first sending module is specifically used to: send the first MAC frame to the first MAC frame in MAC unicast mode 2.
  • the first data transmission device includes an application program corresponding to the second data transmission device
  • the device information of the second data transmission device includes screen resolution, screen size and decoder information
  • the data transmission device further includes :
  • the first processing module is used to run the application program corresponding to the second data transmission device on the first data transmission device; generate the graphical interface of the application program according to the screen resolution and screen size; the first processing module is also used to generate the application program according to the decoder
  • the information encodes the graphical interface to obtain application data.
  • the data header further includes a packet number field and a fragment number field
  • the first construction module is specifically used to: fragment the application data to obtain fragmented data; performing forward error correction coding to obtain a forward error correction code; encapsulating the forward error correction code and the fragmented data to obtain a first MAC frame.
  • the fourth aspect of the present application discloses a data transmission device, which is applied to the second data transmission device, and the data transmission device includes:
  • the third receiving module is configured to receive the first media input control MAC frame sent by the first data transmission device, the first MAC frame includes a frame header part and a data part, the frame header part includes a protocol type field, and the protocol type of the first MAC frame
  • the field is a first indication value, the first indication value indicates that the data part of the first MAC frame includes a data header and data content, the data header includes a frame type field and a data length field, and the frame type field is used to indicate the type of the first MAC frame,
  • the data length field is used to indicate the length of data content.
  • the frame type field is a third frame type, and the third frame type indicates that the first MAC frame is used to transmit application data, and the data content includes application data; the data transmission device further includes: a third parsing module, It is used to parse out the application data from the first MAC frame of the third frame type.
  • the data header further includes a packet number field and a fragment number field
  • the data transmission device further includes: a second processing module, configured to perform forward error correction decoding on the application data to obtain the error correction decoding The coded data; the second processing module is also used to combine the error-corrected and decoded data into a data packet according to the packet number field and the fragment number field.
  • the frame type field is the first frame type
  • the first frame type indicates that the first MAC frame is used to find the MAC addresses of other data transmission devices
  • the first MAC frame is sent to the
  • the frame header part of the first MAC frame includes the MAC address of the first data transmission device
  • the data transmission device also includes: a fourth parsing module, configured to parse out the first MAC frame from the first frame type The MAC address of the first data transmission device;
  • the second construction module is used to construct the second MAC frame, the structure of the second MAC frame is the same as that of the first MAC frame, the frame type field of the second MAC frame is the second frame type, and the second MAC frame has the same structure as the first MAC frame.
  • the data content of the second MAC frame includes device information of the second data transmission device, the second frame type indicates that the second MAC frame is used to advertise its own MAC address, and the frame header of the second MAC frame includes the MAC address of the second data transmission device;
  • the second sending module is configured to send the second MAC frame to the first data transmission device through MAC unicast.
  • the frame type field is the second frame type, and the second frame type indicates that the first MAC frame is used to advertise its own MAC address, and the first MAC frame is sent to the second frame in MAC unicast mode.
  • the frame header of the first MAC frame includes the MAC address of the first data transmission device;
  • the data transmission device further includes: a third construction module, configured to construct a third MAC frame before receiving the first MAC frame, the first The structure of the three MAC frames is the same as that of the first MAC frame, the frame type field of the third MAC frame is the first frame type, the data content of the third MAC frame includes the device information of the second data transmission device, and the first frame type indicates the third The MAC frame is used to find the MAC address of other data transmission equipment, and the frame header of the third MAC frame includes the MAC address of the second data transmission equipment; the third sending module is used to send the third MAC frame to the first MAC frame in the form of MAC broadcast.
  • a data transmission device is used to find the MAC address
  • the fifth aspect of the present application discloses a computer-readable storage medium, including computer instructions.
  • the computer instructions run on the computer or processor, the computer or processor executes the data transmission method according to the first aspect or the second aspect.
  • the sixth aspect of the present application discloses a data transmission device, the data transmission device includes an interface circuit and a processor, the processor receives or sends data through the interface circuit, and the processor is configured to invoke computer instructions stored in the memory to enable data transmission The device executes the data transmission method of the first aspect or the second aspect.
  • the seventh aspect of the present application discloses a computer program product.
  • the computer program product is run on a computer or a processor, the computer or processor is made to execute the data transmission method according to the first aspect or the second aspect.
  • the eighth aspect of the present application discloses a terminal, including a processor and a memory, and the processor is used to invoke computer instructions in the memory, so that the terminal executes the data transmission method according to the first aspect or the second aspect.
  • the third aspect provided above, the data transmission device of the fourth aspect, the computer-readable storage medium of the fifth aspect, the data transmission device of the sixth aspect, the computer program product of the seventh aspect, and the terminal of the eighth aspect correspond to the methods in the first aspect and the second aspect above, therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
  • FIG. 1 is a schematic diagram of an application scenario of a data transmission method provided by an embodiment of the present application.
  • FIG. 2 is a schematic structural diagram of an improved MAC frame used in the embodiment of the present application.
  • Fig. 3 shows the frame type defined by the frame type field in the improved MAC frame.
  • Fig. 4 is a schematic structural diagram of an improved MAC frame used in another embodiment of the present application.
  • FIG. 5 is a flowchart of a data transmission method provided by an embodiment of the present application.
  • Fig. 6 is a schematic diagram of the indoor unit fragmenting the application data, performing forward error correction coding on the fragmented data, and encapsulating the forward error correction code and the fragmented data.
  • Figure 7 shows that the panel with screen parses the error correction code and fragmented data from the improved MAC frame of the third frame type, performs forward error correction decoding on the fragmented data, and decodes the error correction code Schematic diagram of the combination of data into one frame of image.
  • Fig. 8 is a flowchart of a data transmission method provided by another embodiment of the present application.
  • FIG. 9 is a structural diagram of a data transmission device provided by an embodiment of the present application.
  • Fig. 10 is a structural diagram of a data transmission device provided by another embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of a data transmission device provided by an embodiment of the present application.
  • FIG. 1 is a schematic diagram of an application scenario of a data transmission method provided by an embodiment of the present application.
  • the data transmission method provided in this embodiment is applied to a visual access control system.
  • the video door control system includes an indoor unit 10 and at least one panel 11 with a screen.
  • the indoor unit 10 is generally located at the entrance, for example, at the entrance.
  • the panel with screen 11 is generally located in a room, such as a bedroom.
  • the indoor unit 10 may include devices with strong computing capabilities, such as home computers, high-end TV sets, high-end routers, home computing centers, and home edge computing centers, etc.
  • the panel with screen 11 may include devices with relatively weak computing capabilities, such as a Diode (light-emitting diode, LED) screen refrigerators, rice cookers with LED screens, etc.
  • Diode light-emitting diode, LED
  • the indoor unit 10 may use the Android system, and the panel with screen 11 may use the Hongmeng embedded system.
  • the indoor unit 10 and the panel with screen 11 may also adopt other operating systems.
  • the indoor unit 10 can use the iOS system, and the panel with screen 11 can use the Windows system.
  • FIG. 1 only shows the interconnection between the indoor unit 10 and one panel with screen 11 , it should be understood that the indoor unit 10 may be interconnected with multiple panels 11 with screen.
  • the indoor unit 10 and the panel with screen 11 can be interconnected through a G.hn standard power line.
  • G.hn is a set of protocol specifications for power lines, telephone lines and coaxial cables. This standard can integrate resources of existing twisted pair lines, coaxial cables and power lines to achieve unified transmission, thereby significantly reducing installation and operating costs.
  • the indoor unit 10 and the panel with screen 11 may be interconnected through other power lines.
  • the indoor unit 10 and the panel with screen 11 may include multiple software and hardware modules.
  • the software modules of the indoor unit 10 may include a panel application program 101 , a panel application program manager 102 , a first device parameter synchronizer 103 , a first fast transmission module 104 , a graphic module 105 and an encoding module 106 .
  • the hardware modules of the indoor unit 10 may include a graphics processor (Graphics Processing Unit, GPU) 107, an encoder 108 and a first transmission unit 109.
  • GPU Graphics Processing Unit
  • the software module of the panel with screen 11 may include a second device parameter synchronizer 111, the second fast transmission module 112, and a decoding module 113
  • the hardware module of the panel with screen 11 may include a second transmission unit 114, a decoder 115 and a display screen 116 .
  • the graphics module 105 and the GPU 107 jointly complete processing related to graphics data through a combination of software and hardware
  • the encoding module 106 and the encoder 108 jointly complete processing related to encoding through a combination of software and hardware.
  • Each panel with screen 11 corresponds to a panel application 101 .
  • the panel application program 101 corresponding to the panel with screen 11 is included in the indoor unit 10 .
  • the indoor unit 10 needs to be upgraded without upgrading each panel 11 with a screen.
  • the panel application programs 101 corresponding to different panels with a screen 11 may be the same or different.
  • the indoor unit 10 runs the panel application program 101 and can generate a graphical interface of the panel with a screen 11 .
  • the panel application manager 102 is used to manage the panel application 101 .
  • the indoor unit 10 is communicatively connected with five panels with screens 11, the indoor unit 10 includes five panel application programs 101, and each panel application program 101 corresponds to one panel with screen 11, and the panel application program manager 102 can control the five panels.
  • the first device parameter synchronizer 103 is used to provide the device parameters of the indoor unit 10 to the first fast transmission module 104 so as to synchronize the device parameters of the indoor unit 10 to the panel with screen 11 .
  • the device information of the indoor station 10 may include screen resolution, screen size and decoder information of the indoor station 10 .
  • the second device parameter synchronizer 111 is used to provide the device parameters of the panel with screen 11 to the second fast transmission module 112 so as to synchronize the device parameters of the panel with screen 11 to the indoor unit 10 .
  • the device information of the panel with screen 11 may include the screen resolution, screen size and decoder information of the panel with screen 11 .
  • the first device parameter synchronizer 103 is also used to provide the screen resolution and screen size of the panel with screen 11 to the panel application 101 through the panel application manager 102 after receiving the device parameters of the panel with screen 11, so that the panel
  • the application program 101 generates a corresponding graphical interface according to the screen resolution and screen size of the panel with screen 11, and provides the decoder information of the panel with screen 11 to the encoding module 106, so that the encoding module 106 can use the information of the decoder of the panel with screen 11 Code the graphical interface.
  • the first device parameter synchronizer 103 synchronizes the device parameters of the indoor unit 10 to the panel with screen 11 . In other embodiments of the present application, the first device parameter synchronizer 103 may not synchronize the device parameters of the indoor unit 10 to the panel with screen 11 .
  • the first fast transmission module 104 and the second fast transmission module 112 are used to carry out data transmission based on the Media Access Control (Media Access Control, MAC) protocol between the indoor unit 10 and the panel with screen 11, the first fast transmission module 104 and the second fast transmission module 112 construct an improved MAC frame, and implement fast data transmission through the improved MAC frame.
  • the data transmission devices (such as the indoor unit 10 and the panel with screen 11) need to be configured with Internet Protocol (Internet Protocol, IP) addresses before they can be interconnected and transmit data.
  • IP address is the address used by the network layer in the currently used five-layer network protocol.
  • the five-layer network protocol includes the application layer, transport layer, network layer, data link layer and physical layer from top to bottom.
  • the data transmission method based on the IP address is slow in data transmission and cannot meet the requirements of low-latency data transmission.
  • the data transmission method provided in the embodiment of the present application performs data transmission based on the MAC protocol, and the MAC protocol is a protocol used by the data link layer.
  • the network protocol used in this embodiment of the present application includes a data link layer and a physical layer from top to bottom, omitting the processing of the application layer, transport layer and network layer.
  • the data transmission devices do not need to be configured with IP addresses, and can be interconnected and transmit data to each other without configuring IP addresses, which reduces the interconnection time between devices and realizes low-cost Time-delayed data transmission improves transmission efficiency.
  • the structure of the improved MAC frame will be described in detail in FIG. 2 .
  • the first fast transmission module 104 performs data transmission through the first transmission unit 109 .
  • the second fast transmission module 112 performs data transmission through the second transmission unit 114 .
  • the first fast transmission module 104 can perform wired transmission or wireless transmission through the first transmission unit 109 .
  • the second fast transmission module 112 can also perform wired transmission or wireless transmission through the second transmission unit 114 .
  • Graphics module 105 is used to provide virtual screen technology.
  • the indoor unit 10 runs the panel application program 101, and generates a graphical interface with the screen panel 11 by the GPU 107.
  • the virtual screen technology means that the graphical interface generated by the application program is not displayed on the actual physical display screen, but is displayed on a virtual screen represented by a section of memory.
  • the graphic interface of the panel with screen 11 generated by the panel application program 101 is not displayed on the indoor unit 10, but is displayed on a virtual screen represented by a segment of memory in the indoor unit 10.
  • the first fast transmission module 104 can obtain the graphic data of the panel with screen 11 from the internal memory of the indoor unit 10 , and send the graphic interface of the panel with screen 11 to the panel with screen 11 .
  • the encoding module 106 is used for encoding the data sent by the indoor unit 10 through the encoder 108 .
  • the equipment parameters of the indoor unit 10 are encoded, or the graphic interface of the panel with screen 11 is encoded.
  • the decoding module 113 is used for decoding the data received by the panel with screen 11 through the decoder 115 .
  • the device parameters of the indoor unit 10 are decoded, or the graphic interface of the panel with screen 11 is decoded.
  • the display screen 116 is used to display the decoded graphic interface of the panel with screen 11 .
  • the data transmission method provided in the embodiment of the present application may be applied to other scenarios.
  • the data transmission method provided by the embodiment of the present application can be used for fast data transmission between the first data transmission device and the second data transmission device, and the first data transmission device and the second data transmission device can be smart phones, smart watches , smart speakers, tablet computers, desktop computers, laptop portable computers, car computers, etc.
  • FIG. 2 is a schematic structural diagram of an improved MAC frame used in the embodiment of the present application.
  • the first data transmission device such as the indoor unit 10 in Figure 1
  • the second data transmission device such as the panel with screen in Figure 1
  • construct an improved MAC frame through the improvement
  • the subsequent MAC frames perform data transmission between the first data transmission device and the second data transmission device.
  • the improved MAC frame is extended on the basis of the existing MAC frame, and the improved MAC frame meets the requirements of the MAC protocol.
  • the improved MAC frame includes frame header part, data part and check part.
  • the frame header part includes destination address field, source address field and protocol type field. Exemplarily, both the destination address field and the source address field are 6 bytes.
  • the protocol type field is 2 bytes.
  • the destination address field includes destination MAC address information
  • the source address field includes source MAC address information
  • the protocol type field of the existing MAC frame is used to indicate the protocol used by the upper layer (that is, the network layer), so that the receiving end can hand over the data part of the received MAC frame to the corresponding protocol of the upper layer. For example, if the protocol type field is 0x0800, it means that the network layer uses the Internet Protocol (Internet Protocol, IP); if the protocol type field is 0x8137, it means that the network layer uses the Internet Packet Exchange (IPX) protocol.
  • IP Internet Protocol
  • IPX Internet Packet Exchange
  • the data part of the existing MAC frame has only one field, and its length is between 46 and 1500 bytes, including the data transmitted from the network layer.
  • the improved MAC frame extends the protocol type field and data part of the existing MAC frame (that is, the custom protocol type and data part), and the value of the protocol type field of the improved MAC frame is different from that of the existing MAC frame. frame.
  • the improved MAC frame is a first indication value, and the first indication value indicates that the data part of the improved MAC frame includes a data header and data content.
  • the first indication value may be 0x0601. It should be understood that in other embodiments of the present application, the first indication value may be other values (different from the value of the protocol type field of the existing MAC frame).
  • the data part of the improved MAC frame includes a data header (represented as "Header” in the figure) and data content (represented as “Payload” in the figure).
  • the data header includes a frame type field (represented as “Frame Type” in the figure) and a data length field (represented as “Len” in the figure).
  • the frame type field is used to indicate the type of the improved MAC frame.
  • Figure 3 shows the frame type defined by the frame type field (ie "Frame Type") in the improved MAC frame.
  • the improved MAC frame defines three frame types through the frame type field.
  • the frame type field of the improved MAC frame is "Search Host”
  • the improved MAC frame is the first frame type
  • the first frame type indicates that the improved MAC frame is used to search the MAC addresses of other data transmission devices.
  • the frame type field of the improved MAC frame is "Publish Host”
  • the improved MAC frame is the second frame type
  • the second frame type indicates that the improved MAC frame is used to advertise its own MAC address.
  • the frame type field of the improved MAC frame is "Data”
  • the improved MAC frame is of the third frame type, and the third frame type indicates that the improved MAC frame is used to send application data (such as video data).
  • the frame type field of the improved MAC frame may define a frame type different from that shown in FIG. 3 , and the frame type field of the improved MAC frame may use a different identifier than that shown in FIG. 3 to indicate a different frame type.
  • the data length field is used to indicate the length of the data content (that is, the Payload field).
  • the data header further includes a packet number field (represented as "PkgID” in the figure) and a segment number field (represented as "SegID” in the figure).
  • the packet number field is used to indicate the data packet to which the data content belongs, that is, to identify the sequence number of the data packet.
  • the fragment number field is used to indicate the position of the data content in the data packet, that is, the sequence number identifying the fragment.
  • a data packet can correspond to a file, such as a frame of image or an audio. When the size of the file is greater than the maximum length of the data content of the improved MAC frame (for example, 1485 bytes), the file needs to be divided into multiple fragments, and each fragment is encapsulated into an improved MAC frame for transmission.
  • the packet number field and the fragment number field are fields set for fragment transmission. Through PkgId and SegId, the receiving end can reassemble a complete data packet (that is, a file) according to the obtained fragmented data.
  • the length of the data header of the improved MAC frame is 15 bytes, wherein the frame type field is 1 byte, the packet number field is 8 bytes (i.e. 64bit), and the fragment number field It is 4 bytes (namely 32bit), and the data length field is 2 bytes (namely 16bit).
  • the length of the data content is between 31 and 1485 bytes (including 31 and 1485 bytes).
  • the first two bytes of the fragment number of the improved MAC frame are used to represent the total number of fragments, and the last two bytes may be used to represent the sequence number of the fragments.
  • the definition of the checking part of the improved MAC frame is the same as that of the existing MAC frame, and is used to transmit the checking code.
  • the length of the checking part is 4 bytes.
  • Fig. 4 is a schematic structural diagram of an improved MAC frame used in another embodiment of the present application.
  • the improved MAC frame may include a frame header part and a data part, and the frame header part includes a protocol type field.
  • the protocol type field of the improved MAC frame may be a first indication value (such as 0x0601), and the first indication value indicates that the data part of the improved MAC frame includes a data header (indicated as "Header” in the figure) and Data content (represented as “Payload” in the figure).
  • the data header of the improved MAC frame includes a frame type field (represented as "Frame Type” in the figure) and a data length field (represented as "Len” in the figure), and the frame type field is used to indicate the type of the improved MAC frame,
  • the data length field is used to indicate the length of data content.
  • the protocol type field is 2 bytes
  • the data part is 46-1500 bytes
  • the frame type field is 1 byte
  • the data length field is 2 bytes.
  • FIG. 5 is a flowchart of a data transmission method provided by an embodiment of the present application.
  • FIG. 5 uses the application scenario shown in FIG. 1 as an example for illustration.
  • the indoor unit constructs an improved MAC frame of the first frame type.
  • the indoor unit looks up the MAC address of the panel with screen through the improved MAC frame of the first frame type.
  • the indoor unit can construct an improved MAC frame of the first frame type when powered on.
  • the improved MAC frame of the first frame type constructed by the indoor unit includes a frame header part and a data part, and the frame header part includes a destination address field, a source address field and a protocol type field.
  • the protocol type field of the improved MAC frame of the first frame type constructed by the indoor unit is a first indication value, and the first indication value indicates that the data part of the improved MAC frame includes a data header and data content.
  • the data header of the improved MAC frame of the first frame type constructed by the indoor unit includes a frame type field, a packet number field, a fragment number field and a data length field.
  • the destination address field of the improved MAC frame of the first frame type constructed by the indoor unit is empty
  • the source address field is the MAC address of the indoor unit
  • the protocol type field is "0x0601”
  • the frame type field is "Search Host”
  • the packet number field, fragment number field, data length field and data content are empty.
  • the data content of the improved MAC frame of the first frame type constructed by the indoor unit includes the equipment parameters of the indoor unit, and the data length field is the data length of the equipment parameters of the indoor unit.
  • the device parameters of the indoor station may include screen resolution, screen size and decoder information of the indoor station.
  • the indoor unit may fill the device parameters of the indoor unit into the data content of the first frame type improved MAC frame through the first device parameter synchronizer 103 .
  • the indoor unit sends the improved MAC frame of the first frame type to the panel with screen in the form of MAC broadcast.
  • the indoor unit can send the improved MAC frame of the first frame type to the panel with screen through the first fast transmission module 104 and the first transmission unit 109 .
  • Broadcasting means that the sender sends data within the entire network. It is a "one-to-all" communication mode, and all devices in the entire network can receive data.
  • the indoor unit may keep the destination address field of the improved MAC frame of the first frame type empty, indicating that the MAC broadcast is performed. Alternatively, the indoor unit may set the destination address field of the improved MAC frame of the first frame type as a preset broadcast address, indicating that MAC broadcast is performed.
  • the panel with screen After receiving the improved MAC frame of the first frame type, the panel with screen parses out the MAC address of the indoor unit from the improved MAC frame of the first frame type.
  • the panel with screen can parse out the source address field of the improved MAC frame of the first frame type, and obtain the MAC address of the indoor unit from the source address field of the improved MAC frame of the first frame type.
  • the panel with screen constructs an improved MAC frame of the second frame type.
  • the panel with screen notifies its own MAC address to the indoor unit through the improved MAC frame of the second frame type.
  • the structure of the improved MAC frame of the second frame type constructed by the panel with screen is the same as that of the improved MAC frame of the first frame type constructed by the indoor unit.
  • the improved MAC frame of the second frame type constructed by the screen panel includes a frame header part and a data part, and the frame header part includes a destination address field, a source address field and a protocol type field.
  • the protocol type field of the improved MAC frame of the second frame type constructed by the panel with screen is a first indication value, and the first indication value indicates that the data part of the improved MAC frame includes a data header and data content.
  • the data header of the improved MAC frame of the second frame type constructed by the panel with screen includes a frame type field, a packet number field, a fragment number field and a data length field.
  • the destination address field of the improved MAC frame of the second frame type constructed by the panel with screen is the MAC address of the indoor unit
  • the source address field is the MAC address of the panel with screen
  • the protocol type field of the improved MAC frame is "0x0601”
  • the frame type field is "Publish Host”
  • the packet number field and fragment number field are empty
  • the data content includes the device parameters of the panel with screen
  • the data length field is The data length of the device parameter of the panel with screen.
  • the panel with screen can fill the device parameters of the panel with screen into the data content of the improved MAC frame of the second frame type constructed by the panel with screen through the second device parameter synchronizer 111 .
  • the device parameters of the panel with screen include screen resolution, screen size and decoder information of the panel with screen.
  • the panel with screen sends the improved MAC frame of the second frame type to the indoor unit through MAC unicast.
  • the panel with screen can send the improved MAC frame of the second frame type to the indoor unit through the second fast transmission module 112 and the second transmission unit 114 .
  • Unicast refers to the establishment of a separate information transmission path between the sender and each receiver, and a "one-to-one" communication mode between the sender and the receiver.
  • the indoor unit After receiving the improved MAC frame of the second frame type, the indoor unit parses out the MAC address and device parameters of the panel with screen from the improved MAC frame of the second frame type.
  • the indoor unit can parse out the source address field of the improved MAC frame of the second frame type, and obtain the MAC address of the panel with screen from the source address field of the improved MAC frame of the second frame type.
  • the indoor unit can parse out the data content of the improved MAC frame of the second frame type, and obtain the device parameters of the panel with screen from the data content of the improved MAC frame of the second frame type.
  • the indoor unit runs a panel application corresponding to the panel with a screen.
  • the panel application program (panel application program 101 ) corresponding to the panel with screen is included in the indoor unit.
  • the panel with a screen is a refrigerator with an LED screen
  • the indoor unit runs a panel application program corresponding to the refrigerator.
  • the indoor unit generates a graphic interface of a panel application program corresponding to the panel with a screen according to the screen resolution and the screen size of the panel with a screen.
  • the indoor unit can generate the graphical interface of the panel application program corresponding to the panel with the screen through the graphics module 105 and the GPU 107.
  • the indoor unit generates the graphical interface of the panel application program corresponding to the refrigerator according to the screen resolution and screen size of the refrigerator.
  • the indoor unit encodes the generated graphic interface according to the decoder information of the panel with screen to obtain application data.
  • the indoor unit can encode the generated graphical interface through the encoding module 106 and the encoder 108 .
  • the indoor unit encodes the generated graphical interface according to the decoder information of the refrigerator to obtain application data.
  • the encoding format supported by the panel with screen can be determined. For example, according to the decoder information of the panel with screen, it is determined that the panel with screen supports the H.264 encoding format, and the indoor unit encodes the generated graphic interface to obtain a video stream in H.264 format. As another example, according to the decoder information of the panel with screen, it is determined that the panel with screen supports the Joint Photographic Experts Group (JPEG) encoding format, and the indoor unit encodes the generated graphical interface to obtain the video in H.264 format flow.
  • JPEG Joint Photographic Experts Group
  • the application data obtained by encoding the graphical interface generated by the indoor unit according to the decoder information of the panel with screen includes multiple frames of images.
  • the indoor station constructs an improved MAC frame of the third frame type.
  • the indoor unit transmits the application data to the panel with the screen through the improved MAC frame of the third frame type.
  • the structure of the improved MAC frame of the third frame type is the same as the improved MAC frame of the first frame type constructed by the indoor unit and the improved MAC frame of the second frame type constructed by the panel with screen.
  • the improved MAC frame of the third frame type includes a frame header and a data part, and the frame header includes a destination address field, a source address field and a protocol type field.
  • the protocol type field of the improved MAC frame of the third frame type is a first indication value, and the first indication value indicates that the data part of the improved MAC frame of the third frame type includes a data header and data content.
  • the data header of the improved MAC frame of the third frame type includes a frame type field, a packet number field, a fragment number field and a data length field.
  • the data content of the improved MAC frame of the third frame type includes application data.
  • the destination address field of the improved MAC frame of the third frame type is the MAC address of the panel with screen
  • the source address field of the improved MAC frame of the third frame type is the MAC address
  • the protocol type field of the improved MAC frame of the third frame type is "0x0601”
  • the frame type field of the improved MAC frame of the third frame type is "Data”
  • the improved MAC frame of the third frame type The data content of the frame is the application data
  • the data length field of the improved MAC frame of the third frame type is the data length of the application data.
  • the construction of the improved MAC frame of the third frame type by the indoor unit includes: fragmenting the application data to obtain fragmented data; performing forward error correction on the fragmented data Encoding to obtain a forward error correction code; encapsulating the forward error correction code and the fragmented data to obtain an improved MAC frame of the third frame type.
  • the packet number field and the fragment number field of the improved MAC frame of the third frame type are the packet number and the fragment number corresponding to the fragmented data.
  • the data content of the improved MAC frame of the third frame type includes a forward error correction code and fragmented data.
  • the maximum length of the data content of the improved MAC frame may be smaller than the size of the application data (for example, smaller than the size of each frame of image in the application data).
  • the indoor unit transmits the application data in pieces.
  • the length of the data content is between 31 and 1485 bytes, and the maximum is 1485 bytes, and each frame of image in the application data can be segmented according to 1485 bytes.
  • Forward error correction coding is a technology used to control errors when transmitting data in unreliable or strong noise channels.
  • Forward error correction coding has the characteristics of introducing concatenated channel coding and other gain coding techniques, which can automatically correct transmission bit error.
  • Forward Error Correction Coding redundantly encodes data, such as application data, by using a forward error correction code.
  • Encapsulating the forward error correction code and fragmented data may be to encapsulate the forward error correction code into an improved MAC frame, and encapsulate each fragmented data into an improved MAC frame, that is, Fill the forward error correction code or the fragmented data into the data content field of the corresponding improved MAC frame.
  • Fig. 6 is a schematic diagram of the indoor unit fragmenting the application data, performing forward error correction coding on the fragmented data, and encapsulating the forward error correction code and the fragmented data.
  • the application data includes three frames of images Frame1, Frame2 and Frame3.
  • the indoor unit slices Frame1 to obtain five sliced data of SEG1, SEG2, SEG3, SEG4, and SEG5.
  • SEG1, SEG2 , SEG3, SEG4 and SEG5 perform forward error correction coding to obtain forward error correction code SEG6, encapsulate SEG1 to obtain the improved MAC frame of the third frame type corresponding to SEG1, and encapsulate SEG2 to obtain the corresponding frame of SEG2
  • the improved MAC frame of the third frame type encapsulates SEG3, obtains the improved MAC frame of the third frame type corresponding to SEG3, encapsulates SEG4, and obtains the improved MAC frame of the third frame type corresponding to SEG4
  • SEG5 is encapsulated to obtain an improved MAC frame of the third frame type corresponding to SEG5
  • SEG6 is encapsulated to obtain an improved MAC frame of the third frame type corresponding to SEG6 (Fig. 6 only shows encapsulation of
  • the indoor unit sends the improved MAC frame of the third frame type to the panel with screen.
  • the indoor unit can send the improved MAC frame of the third frame type to the panel with screen through the first fast transmission module 104 and the first transmission unit 109 .
  • the indoor unit slices the application data to obtain the fragmented data; performs forward error correction coding on the fragmented data to obtain the forward error correction code;
  • the post-chip data is encapsulated to obtain an improved MAC frame of the third frame type.
  • the indoor unit sends the improved MAC frame of the third frame type obtained through fragmentation, forward error correction coding and encapsulation to the panel with screen.
  • the panel with screen After receiving the improved MAC frame of the third frame type, the panel with screen parses the application data from the improved MAC frame of the third frame type.
  • the packet number field and the fragmentation number field of the improved MAC frame of the third frame type are empty, and the panel with a screen can be based on the data length field of the improved MAC frame of the third frame type , determining the data length of the improved MAC frame, and parsing the application data from the data content of the improved MAC frame of the third frame type according to the data length of the improved MAC frame.
  • the panel with screen determines that the data length of the improved MAC frame of the third frame type is 1200 bytes according to the data length field of the improved MAC frame of the third frame type, and the data length of the improved MAC frame of the third frame type is 1200 bytes. 1200 bytes of data are obtained from the data content of the frame, and the obtained 1200 bytes of data are used as application data.
  • the improved MAC frame of the third frame type received by the panel with screen is obtained by performing fragmentation, forward error correction coding and encapsulation on a frame of image as shown in FIG. 6 ,
  • the packet number field and the fragmentation number field of the improved MAC frame of the third frame type are not empty, and the data content of the improved MAC frame of the third frame type includes forward error correction code or fragmented data.
  • the panel with screen parses forward error correction codes and fragmented data from multiple improved MAC frames of the third frame type, and performs forward error correction decoding on the fragmented data according to the forward error correction codes code to obtain the data after error correction decoding, according to the packet number field and the fragmentation number field in the improved MAC frame of the third frame type, the data after error correction decoding is combined to obtain a data packet (such as a frame image).
  • the error-corrected decoded data includes parsed error-free segmented data and error-corrected segmented data.
  • Fig. 7 shows that the panel with screen parses the error correction code and fragmented data from the improved MAC frame of the third frame type, performs forward error correction decoding on the fragmented data according to the error correction code, and converts the error correction
  • the panel with screen parses SEG1 from the improved MAC frame of the third frame type corresponding to SEG1, parses SEG2 from the improved MAC frame of the third frame type corresponding to SEG2, and parses SEG2 from the improved MAC frame of the third frame type corresponding to SEG3.
  • SEG3 is parsed from the improved MAC frame of the three frame types
  • SEG4 is parsed from the improved MAC frame of the third frame type corresponding to SEG4
  • SEG5 is parsed from the improved MAC frame of the third frame type corresponding to SEG5, from
  • the improved MAC frame of the third frame type corresponding to SEG6 is parsed to obtain SEG6 (only SEG1 is parsed from the improved MAC frame of the third frame type corresponding to SEG1 in the figure).
  • the panel with screen determines that there is an error in the analyzed SEG4 and SEG5, and recovers the correct SEG4 and SEG5 (that is, obtains SEG4 and SEG5 after error correction).
  • the panel with screen combines the error-corrected and decoded data (including parsed error-free SEG1, SEG2, SEG3 and error-corrected SEG4, SEG5) into Frame1.
  • the panel with screen decodes the obtained application data to obtain a graphical interface of the panel application program corresponding to the panel with screen.
  • the panel with screen can decode the application data through the decoding module 113 and the decoder 115 .
  • the refrigerator decodes the analyzed application data to obtain the graphical interface of the panel application program corresponding to the refrigerator.
  • the panel with screen displays the graphic interface of the panel application program corresponding to the panel with screen on the panel with screen.
  • the panel with screen can display the graphic interface of the panel application program corresponding to the panel with screen on the display screen 116 .
  • the refrigerator displays the graphical interface of the corresponding panel application program on the LED screen of the refrigerator.
  • both the panel with screen and the indoor unit need to be configured with IP addresses before they can communicate with each other and send data to each other.
  • the data transmission method based on the IP address cannot meet the low-latency requirement.
  • the data transmission method provided by the embodiment of the present application performs data transmission based on the MAC protocol instead of relying on the network layer protocol.
  • Both the panel with screen and the indoor unit do not need to be configured with an IP address, and can be interconnected and transmit data to each other without configuring an IP address, which reduces the interconnection time between devices, realizes low-latency data transmission, and improves transmission efficiency.
  • Fig. 8 is a flowchart of a data transmission method provided by another embodiment of the present application.
  • the panel with screen constructs an improved MAC frame of the first frame type.
  • the panel with screen can construct an improved MAC frame of the first frame type when powered on.
  • the destination address field of the improved MAC frame of the first frame type constructed by the panel with screen is empty
  • the source address field is the MAC address of the panel with screen
  • the protocol type field is "0x0601”
  • the frame type field is "Search Host”
  • the packet number field and fragment number field are empty
  • the data content includes the device parameters of the panel with screen
  • the data length field is the data length of the device parameters of the panel with screen.
  • the panel with a screen sends the improved MAC frame of the first frame type to the indoor unit in a MAC broadcast manner.
  • the indoor unit After receiving the improved MAC frame of the first frame type, the indoor unit parses out the MAC address and device parameters of the panel with screen from the improved MAC frame of the first frame type.
  • the indoor unit constructs an improved MAC frame of the second frame type.
  • the destination address field of the improved MAC frame of the second frame type constructed by the indoor unit is the MAC address of the panel with screen
  • the source address field is the MAC address of the indoor unit
  • the protocol type field is "0x0601”
  • the frame type field is "Public Host”
  • the packet number field, fragment number field, data length field and data content are empty.
  • the data content of the improved MAC frame of the second frame type constructed by the indoor unit includes the equipment parameters of the indoor unit, and the data length field is the data length of the equipment parameters of the indoor unit.
  • the device parameters of the indoor station may include screen resolution, screen size and decoder information of the indoor station.
  • the indoor unit sends the improved MAC frame of the second frame type to the panel with screen through MAC unicast.
  • the panel with screen After receiving the improved MAC frame of the second frame type, the panel with screen parses out the MAC address of the indoor unit from the improved MAC frame of the second frame type.
  • the indoor unit runs a panel application corresponding to the panel with a screen.
  • the indoor unit generates a graphic interface of a panel application program corresponding to the panel with a screen according to the screen resolution and the screen size of the panel with a screen.
  • the indoor unit encodes the generated graphic interface according to the decoder information of the panel with screen to obtain application data.
  • the indoor unit constructs an improved MAC frame of the third frame type.
  • the indoor unit sends the improved MAC frame of the third frame type to the panel with screen.
  • the panel with screen After receiving the improved MAC frame of the third frame type, the panel with screen parses the application data from the improved MAC frame of the third frame type.
  • the panel with screen decodes the obtained application data to obtain a graphical interface of the panel application program corresponding to the panel with screen.
  • the panel with screen displays the graphic interface of the panel application program corresponding to the panel with screen on the panel with screen.
  • the embodiment of the present application also provides a data transmission device.
  • FIG. 9 is a structural diagram of a data transmission device provided by an embodiment of the present application.
  • the data transmission device 90 shown in FIG. 9 is applied to the first data transmission device.
  • the data transmission device 90 includes a first construction module 901 and a first sending module 902 .
  • the data transmission device 90 may further include a first receiving module 903 , a first parsing module 904 , a second receiving module 905 , a second parsing module 906 , and a first processing module 907 .
  • the first construction module 901 is configured to construct a first media input control MAC frame.
  • the first MAC frame includes a frame header part and a data part, and the frame header part includes a protocol type field.
  • the protocol type field of the first MAC frame is a first indication value, and the first indication value indicates that the data part of the first MAC frame includes a data header and data content.
  • the data header includes a frame type field and a data length field, the frame type field is used to indicate the type of the first MAC frame, and the data length field is used to indicate the length of data content.
  • the first sending module 902 is configured to send the first MAC frame to the second data transmission device.
  • the frame type field is the first frame type, and the first frame type indicates that the first MAC frame is used to find the MAC addresses of other data transmission devices; or the frame type field is the second frame type, and the second The frame type indicates that the first MAC frame is used to advertise its own MAC address; or the frame type field is a third frame type, and the third frame type indicates that the first MAC frame is used to transmit application data, and the data content includes application data.
  • the first sending module 902 is configured to send the first MAC frame to the second data transmission device in a MAC broadcast manner.
  • the first receiving module 903 is configured to receive the second MAC frame sent by the second data transmission device.
  • the second MAC frame is sent to the first data transmission device through MAC unicast after the second data transmission device receives the first MAC frame.
  • the structure of the second MAC frame is the same as that of the first MAC frame
  • the frame type field of the second MAC frame is the second frame type
  • the data content of the second MAC frame includes device information of the second data transmission device.
  • the frame header of the second MAC frame includes the MAC address of the second data transmission device.
  • the first parsing module 904 is configured to parse out the MAC address of the second data transmission device from the second MAC frame.
  • the second receiving module 905 is configured to receive the third MAC frame sent by the second data transmission device in a MAC broadcast manner.
  • the structure of the third MAC frame is the same as that of the first MAC frame.
  • the frame type field of the third MAC frame is the first frame type, the data content of the third MAC frame includes device information of the second data transmission device, and the frame header of the third MAC frame includes the MAC address of the second data transmission device.
  • the second parsing module 906 is configured to parse out the MAC address of the second data transmission device from the third MAC frame.
  • the first construction module 901 is configured to construct the first MAC frame based on the MAC address of the second data transmission device.
  • the frame type field of the first MAC frame is the second frame type, and the frame header of the first MAC frame includes the MAC address of the first data transmission device.
  • the first sending module 902 is configured to send the first MAC frame to the second data transmission device in a MAC unicast manner.
  • the first data transmission device includes an application program corresponding to the second data transmission device
  • the device information of the second data transmission device includes screen resolution, screen size, and decoder information
  • the first processing module 907 is used to run the application program corresponding to the second data transmission device on the first data transmission device; generate the graphical interface of the application program according to the screen resolution and screen size; encode the graphical interface according to the decoder information to obtain the application data.
  • the data header further includes a packet number field and a fragment number field.
  • the first construction module 901 is used for fragmenting the application data to obtain fragmented data; performing forward error correction coding on the fragmented data to obtain a forward error correction code; The subsequent data is encapsulated to obtain the first MAC frame.
  • Fig. 10 is a structural diagram of a data transmission device provided by another embodiment of the present application.
  • the data transmission device 100 shown in FIG. 10 is applied to the second data transmission device.
  • the data transmission device 100 includes a third receiving module 1001 .
  • the data transmission device 100 may further include a third analysis module 1002, a second processing module 1003, a fourth analysis module 1004, a second construction module 1005, a second sending module 1006, a third construction module 1007, a third sending module Module 1008, fifth parsing module 1009.
  • the third receiving module 1001 is configured to receive the first media input control MAC frame sent by the first data transmission device.
  • the first MAC frame includes a frame header part and a data part, and the frame header part includes a protocol type field.
  • the protocol type field of the first MAC frame is a first indication value, and the first indication value indicates that the data part of the first MAC frame includes a data header and data content.
  • the data header includes a frame type field and a data length field, the frame type field is used to indicate the type of the first MAC frame, and the data length field is used to indicate the length of data content.
  • the frame type field is a third frame type
  • the third frame type indicates that the first MAC frame is used to transmit application data
  • the data content includes application data
  • the third parsing module 1002 is used for parsing application data from the first MAC frame.
  • the data header further includes a packet number field and a fragment number field.
  • the second processing module 1003 is used to perform forward error correction decoding on the application data to obtain data after error correction decoding; combine the data after error correction decoding into data packets according to the packet number field and the fragment number field.
  • the frame type field is the first frame type
  • the first frame type indicates that the first MAC frame is used to find the MAC addresses of other data transmission devices
  • the first MAC frame is sent to the
  • the frame header part of the first MAC frame includes the MAC address of the first data transmission device.
  • the fourth parsing module 1004 is configured to parse out the MAC address of the first data transmission device from the first MAC frame of the first frame type.
  • the second construction module 1005 is used to construct the second MAC frame.
  • the structure of the second MAC frame is the same as that of the first MAC frame.
  • the frame type field of the second MAC frame is the second frame type, the data content of the second MAC frame includes the device information of the second data transmission device, the second frame type indicates that the second MAC frame is used to advertise its own MAC address, and the second
  • the frame header of the MAC frame includes the MAC address of the second data transmission device.
  • the second sending module 1006 is configured to send the second MAC frame to the first data transmission device through MAC unicast.
  • the frame type field is the second frame type, and the second frame type indicates that the first MAC frame is used to advertise its own MAC address, and the first MAC frame is sent to the second frame in MAC unicast mode.
  • the frame header of the first MAC frame includes the MAC address of the first data transmission device.
  • the third construction module 1007 is configured to construct a third MAC frame before receiving the first MAC frame.
  • the structure of the third MAC frame is the same as that of the first MAC frame.
  • the frame type field of the third MAC frame is the first frame type, the data content of the third MAC frame includes the device information of the second data transmission device, and the first frame type indicates that the third MAC frame is used to find the MAC addresses of other data transmission devices , the frame header of the third MAC frame includes the MAC address of the second data transmission device.
  • the third sending module 1008 is configured to send the third MAC frame to the first data transmission device in a manner of MAC broadcast.
  • the fifth parsing module 1009 is configured to parse out the MAC address of the first data transmission device from the first MAC frame of the second frame type.
  • the data transmission devices 90 and 100 may include more or fewer modules, and the names of the modules may be changed.
  • the first receiving module 903 and the second receiving module 905 can be combined into the first receiving module
  • the first parsing module 904 and the second parsing module 906 can be combined into the first parsing module, that is, data transmission
  • the device 90 may include a first construction module, a first sending module, a first receiving module, a first parsing module and a first processing module.
  • the third receiving module 1001 can be renamed the second receiving module, the third analyzing module 1002, the fourth analyzing module 1004, and the fifth analyzing module 1009 can be merged into the second analyzing module, the second constructing module 1005, the third The construction module 1007 can be combined into a second construction module, and the third sending module 1008 can be renamed as the second sending module, that is, the data transmission device 100 can include a second receiving module, a second parsing module, a second processing module, a second Two construction modules and a second sending module.
  • Each module in Fig. 9 and Fig. 10 may correspond to the modules in Fig. 1, for example, the first fast transmission module 104 may correspond to the first construction module 901, the first sending module 902, the first receiving module 903, the second receiving module Module 905, the first device parameter synchronizer 103 can correspond to the first analysis module 904, the second analysis module 906, the panel application manager 102, the graphics module 105, and the encoding module 106 can correspond to the first processing module 907; the second fast transmission The module 112 may correspond to the third receiving module 1001, the third parsing module 1002, the second construction module 1005, the second sending module 1006, the third construction module 1007, and the third sending module 1008, and the second device parameter synchronizer 111 may correspond to the first The fourth parsing module 1004 , the fifth parsing module 1009 , and the decoding module 113 may correspond to the second processing module 1003 .
  • Fig. 11 is a schematic structural diagram of a data transmission device (a first data transmission device or a second data transmission device) provided by an embodiment of the present application.
  • the data transmission device 110 may include: a radio frequency (Radio Frequency, RF) circuit 1101, a memory 1102, an input unit 1103, a display unit 1104, a sensor 1105, an audio circuit 1106, a Wi-Fi module 1107, a processor 1108 And parts such as power supply 1109.
  • RF Radio Frequency
  • FIG. 8 does not constitute a limitation on the data transmission device, and may include more or less components than shown in the figure, or combine some components, or arrange different components.
  • the RF circuit 1101 can be used to send and receive information or receive and send signals during a call. In particular, after receiving the downlink information from the base station, it transfers it to the processor 1108 for processing; in addition, it sends uplink data to the base station.
  • the RF circuit 1101 includes, but is not limited to: an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like.
  • the memory 1102 can be used to store software programs and modules, and the processor 1108 executes various functional applications and data processing of the data transmission device by running the software programs and modules stored in the memory 1102 .
  • the memory 1102 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of data transmission equipment (such as audio data, phonebook, etc.), etc.
  • the memory 1102 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
  • the input unit 1103 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the data transmission device.
  • the input unit 1103 may include a touch panel 11031 and other input devices 11032 .
  • the touch panel 11031 also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger, a stylus, etc. on the touch panel 11031 or near the touch panel 11031 operation), and drive the corresponding connection device according to the preset program.
  • the touch panel 11031 may include two parts, a touch detection device and a touch controller.
  • the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 1108, and receive and execute commands sent by the processor 1108.
  • the touch panel 11031 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the input unit 1103 may also include other input devices 11032 .
  • other input devices 11032 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 1104 can be used to display information input by or provided to the user and various menus of the data transmission device.
  • the display unit 1104 may include a display panel 11041.
  • the display panel 11041 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.
  • the touch panel 11031 can cover the display panel 11041, and when the touch panel 11031 detects a touch operation on or near it, it sends it to the processor 1108 to determine the type of the touch event, and then the processor 1108 according to the touch event Type provides a corresponding visual output on the display panel 11041.
  • the touch panel 11031 and the display panel 11041 are used as two independent components to realize the input and output functions of the data transmission device, but in some embodiments, the touch panel 11031 and the display panel 11041 can be combined Integrate to realize the input and output functions of data transmission equipment.
  • the data transmission device may also include at least one sensor 1105, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor can include an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 11041 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 11041 when the data transmission device moves to the ear. and/or backlighting.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the posture of data transmission equipment (such as horizontal and vertical screen switching) , related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.
  • the data transmission device can also be configured with other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. , which will not be repeated here.
  • the audio circuit 1106, the speaker 11061, and the microphone 11062 can provide an audio interface between the user and the data transmission device.
  • the audio circuit 1106 can transmit the electrical signal converted from the received audio data to the speaker 11061, and the speaker 11061 converts it into an audio signal for output; After being received, it is converted into audio data, and after being processed by the audio data output processor 1108, it is sent to another data transmission device through the RF circuit 1101, or the audio data is output to the memory 1102 for further processing.
  • Wi-Fi is a short-distance wireless transmission technology.
  • the data transmission device 110 can help users send and receive emails, browse web pages, and access streaming media through the Wi-Fi module 1107. It provides users with wireless broadband Internet access.
  • Fig. 8 shows the Wi-Fi module 1107, it can be understood that it is not a necessary component of the data transmission device, and can be omitted as needed without changing the essence of the invention.
  • the processor 1108 is the control center of the data transmission equipment, and uses various interfaces and lines to connect various parts of the entire data transmission equipment, by running or executing software programs and/or modules stored in the memory 1102, and calling data, perform various functions of the data transmission equipment and process data, so as to monitor the data transmission equipment as a whole.
  • the processor 1108 may include one or more processing units; preferably, the processor 1108 may integrate an application processor and a modem, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem mainly processes Wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 1108 .
  • the data transmission device also includes a power supply 1109 (such as a battery) for supplying power to each component.
  • a power supply 1109 (such as a battery) for supplying power to each component.
  • the power supply can be logically connected to the processor 1108 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. Function.
  • the data transmission device may also include a camera, a Bluetooth module, etc., which will not be repeated here.
  • the data transmission device described in FIG. 10 can be used to implement part or all of the processes in the method embodiments introduced in FIGS. 5 and 8 of this application. Please refer to the relevant explanations in the embodiments shown in FIGS. 5 and 8 above, and will not repeat them here. .
  • This embodiment also provides a computer storage medium, where computer instructions are stored in the computer storage medium, and when the computer instructions are run on the data transmission device, the data transmission device executes the above-mentioned related method steps to realize the memory recovery in the above-mentioned embodiment method.
  • This embodiment also provides a computer program product, which, when running on the data transmission device, causes the data transmission device to perform the above related steps, so as to implement the memory recovery method in the above embodiment.
  • an embodiment of the present application also provides a device, which may specifically be a chip, a component or a module, and the device may include a connected processor and a memory; wherein the memory is used to store computer-executable instructions, and when the device is running, The processor can execute the computer-executable instructions stored in the memory, so that the chip executes the memory reclamation method in the above method embodiments.
  • the data transmission equipment, data transmission device, computer storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding method provided above, therefore, the beneficial effects it can achieve can refer to the above The beneficial effects of the provided corresponding method will not be repeated here.
  • the disclosed devices and methods may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components can be combined Or it can be integrated into another device, or some features can be omitted, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • the unit described as a separate component may or may not be physically separated, and a component displayed as a unit may be one physical unit or multiple physical units, that is, it may be located in one place, or may be distributed to multiple different places. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application 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 functional units.
  • the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a readable storage medium.
  • the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the software product is stored in a storage medium Among them, several instructions are included to make a device (which may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disc and other media that can store program codes. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Communication Control (AREA)
  • Small-Scale Networks (AREA)

Abstract

本申请提供一种数据传输方法及相关设备,应用于第一数据传输设备,所述方法包括:构造第一媒体输入控制MAC帧,第一MAC帧包括帧头部分和数据部分,帧头部分包括协议类型字段,第一MAC帧的协议类型字段为第一指示值,第一指示值表示第一MAC帧的数据部分包括数据头和数据内容,数据头包括帧类型字段和数据长度字段,帧类型字段用于指示第一MAC帧的类型,数据长度字段用于指示数据内容的长度;将第一MAC帧发送给第二数据传输设备。本申请可以实现快速的数据传输,降低设备间的传输延时。

Description

数据传输方法及相关设备 技术领域
本申请涉及通信技术领域,尤其涉及一种数据传输方法及相关设备。
背景技术
通信网络中,数据传输设备之间通过网络协议传输数据。网络协议从上到下通常包括应用层、传输层、网络层、数据链路层和物理层。发送过程中,数据每经过一层协议都需要增加特定协议的头部信息;而接收过程则相反,数据每经过一层协议都需要去除特定协议的头部信息。由于协议层数较多,数据传输设备之间的数据传输存在较大的时延,某些应用场景下(例如需要实时传输数据的业务)不能满足低时延数据传输需求。
发明内容
本申请实施例提供了一种数据传输方法及相关设备,可以实现通信网络中的低时延数据传输。
本申请第一方面公开了一种数据传输方法,应用于第一数据传输设备,所述方法包括:构造第一媒体输入控制(Media Access Control,MAC)帧,第一MAC帧包括帧头部分和数据部分,帧头部分包括协议类型字段,第一MAC帧的协议类型字段为第一指示值,第一指示值表示第一MAC帧的数据部分包括数据头和数据内容,数据头包括帧类型字段和数据长度字段,帧类型字段用于指示第一MAC帧的类型,数据长度字段用于指示数据内容的长度;将第一MAC帧发送给第二数据传输设备。
根据现有的网络传输技术,数据传输设备需要配置网际协议(Internet Protocol,IP)地址后才能彼此互连和传输数据。IP地址是目前使用的五层网络协议中网络层使用的地址,五层网络协议从上到下包括应用层、传输层、网络层、数据链路层和物理层,基于IP地址的数据传输方法数据传输较慢,无法满足低时延的数据传输要求。本申请实施例提供的数据传输方法构造改进后的MAC帧(如第一MAC帧),基于MAC协议通过改进后的MAC帧进行数据传输。MAC协议是数据链路层使用的协议,本申请实施例使用的网络协议从上到下包括数据链路层和物理层,省略了应用层、传输层和网络层的处理。根据本申请实施例提供的数据传输方法,数据传输设备不需要配置IP地址,在没有配置IP地址的情况下也能互连并彼此传输数据,减少了设备之间的互连时间,实现了低时延的传输数据,提升了传输效率。本申请实施例对现有的MAC帧的协议类型字段和数据头进行自定义,获得改进后的MAC帧,通过改进后的MAC帧实现了快速的数据传输。
在一些可选的实施方式中,帧类型字段为第一帧类型,第一帧类型指示第一MAC帧用于查找其他数据传输设备的MAC地址;或者帧类型字段为第二帧类型,第二帧类型指示第 一MAC帧用于通告自身的MAC地址;或者帧类型字段为第三帧类型,第三帧类型指示第一MAC帧用于传送应用数据,数据内容包括应用数据。
本申请实施例使用的第一MAC帧包括数据部分,数据部分包括数据头,数据头包括帧类型字段,本申请实施例通过帧类型字段定义了三种帧类型,从而能够通过第一MAC帧实现查找其他数据传输设备的MAC地址、通告自身的MAC地址、传送应用数据三种不同的功能。
在一些可选的实施方式中,若帧类型字段为第一帧类型,将第一MAC帧发送给第二数据传输设备包括:将第一MAC帧以MAC广播的方式发送给第二数据传输设备。
在一些可选的实施方式中,将第一MAC帧以MAC广播的方式发送给第二数据传输设备之后,所述方法还包括:接收第二数据传输设备发送的第二MAC帧,第二MAC帧是第二数据传输设备接收到第一MAC帧后,通过MAC单播方式发送给第一数据传输设备的,第二MAC帧的结构与第一MAC帧相同,第二MAC帧的帧类型字段为第二帧类型,第二MAC帧的数据内容包括第二数据传输设备的设备信息,第二MAC帧的帧头包括第二数据传输设备的MAC地址;从第二MAC帧解析出第二数据传输设备的MAC地址。
第一数据传输设备先通过MAC广播的方式向第二数据传输设备发送第一MAC,第二数据传输设备从第一MAC帧获得第一数据传输设备的MAC地址,第二数据传输设备MAC再以单播方式发送第二MAC帧,第一数据传输设备从第二MAC帧获得第二数据传输设备的MAC地址,从而建立第一数据传输设备与第二数据传输设备的数据连接,以便后续第一数据传输设备向第二数据传输设备发送应用数据。
在一些可选的实施方式中,在构造第一MAC帧之前,所述方法还包括:接收第二数据传输设备以MAC广播的方式发送的第三MAC帧,第三MAC帧的结构与第一MAC帧相同,第三MAC帧的帧类型字段为第一帧类型,第三MAC帧的数据内容包括第二数据传输设备的设备信息;第三MAC帧的帧头包括第二数据传输设备的MAC地址;从第三MAC帧解析出第二数据传输设备的MAC地址;构造第一MAC帧包括:基于第二数据传输设备的MAC地址构造第一MAC帧,第一MAC帧的帧类型字段为第二帧类型,第一MAC帧的帧头包括第一数据传输设备的MAC地址;将第一MAC帧发送给第二数据传输设备包括:将第一MAC帧以MAC单播的方式发送给第二数据传输设备。
第二数据传输设备先通过MAC广播的方式向第一数据传输设备发送第三MAC,第一数据传输设备从第三MAC获得第二数据传输设备的MAC地址,第一数据传输设备再通过MAC单播的方式向第二数据传输设备发送第一MAC,第二数据传输设备从第一MAC获得第一数据传输设备的MAC地址,从而建立第一数据传输设备与第二数据传输设备的数据连接,以便后续第一数据传输设备向第二数据传输设备发送应用数据。
在一些可选的实施方式中,第一数据传输设备包括户内机,第二数据传输设备包括带屏面板,户内机和带屏面板构成可视门禁系统。
在一些可选的实施方式中,第二数据传输设备的设备信息包括屏幕分辨率、屏幕尺寸和解码器信息。
在一些可选的实施方式中,第一数据传输设备包括第二数据传输设备对应的应用程序,构造第一MAC帧之前,所述方法还包括:在第一数据传输设备运行应用程序;根据屏幕分辨率和屏幕尺寸生成应用程序的图形界面;根据解码器信息对图形界面进行编码,得到应用 数据。
在一些可选的实施方式中,数据头还包括包编号字段和分片编号字段,对应用数据构造第一MAC帧包括:对应用数据进行分片,得到分片后的数据;对分片后的数据进行前向纠错编码,得到前向纠错码;对前向纠错码和分片后的数据进行封装,得到第一MAC帧。
本申请实施例使用的改进后的MAC帧(如第一MAC帧)的数据内容的最大长度可能小于应用数据的大小(例如小于应用数据中的每帧图像的大小),对应用数据进行分片,可以实现较大的应用数据的快速传输。对分片后的数据进行前向纠错编码可以实现在不可靠或强噪声干扰的信道中进行可靠传输,提高数据传输的可靠性。
本申请第二方面公开了一种数据传输方法,应用于第二数据传输设备,所述方法包括:
接收第一数据传输设备发送的第一媒体输入控制MAC帧,第一MAC帧包括帧头部分和数据部分,帧头部分包括协议类型字段,第一MAC帧的协议类型字段为第一指示值,第一指示值表示第一MAC帧的数据部分包括数据头和数据内容,数据头包括帧类型字段和数据长度字段,帧类型字段用于指示第一MAC帧的类型,数据长度字段用于指示数据内容的长度。
在一些可选的实施方式中,帧类型字段为第三帧类型,第三帧类型指示第一MAC帧用于传送应用数据,数据内容包括应用数据;所述方法还包括:从第三帧类型的第一MAC帧解析出应用数据。
在一些可选的实施方式中,数据头还包括包编号字段和分片编号字段,所述方法还包括:对应用数据进行前向纠错译码,得到纠错译码后的数据;根据包编号字段和分片编号字段将纠错译码后的数据组合为数据包。
在一些可选的实施方式中,帧类型字段为第一帧类型,第一帧类型指示第一MAC帧用于查找其他数据传输设备的MAC地址,第一MAC帧是以MAC广播的方式发送给第二数据传输设备的,第一MAC帧的帧头部分包括第一数据传输设备的MAC地址;接收第一MAC帧之后,所述方法还包括:从第一帧类型的第一MAC帧解析出第一数据传输设备的MAC地址;构造第二MAC帧,第二MAC帧的结构与第一MAC帧相同,第二MAC帧的帧类型字段为第二帧类型,第二MAC帧的数据内容包括第二数据传输设备的设备信息,第二帧类型指示第二MAC帧用于通告自身的MAC地址,第二MAC帧的帧头包括第二数据传输设备的MAC地址;将第二MAC帧通过MAC单播方式发送给第一数据传输设备。
在一些可选的实施方式中,帧类型字段为第二帧类型,第二帧类型指示第一MAC帧用于通告自身的MAC地址,第一MAC帧是以MAC单播的方式发送给第二数据传输设备的,第一MAC帧的帧头包括第一数据传输设备的MAC地址;接收第一MAC帧之前,所述方法还包括:构造第三MAC帧,第三MAC帧的结构与第一MAC帧相同,第三MAC帧的帧类型字段为第一帧类型,第三MAC帧的数据内容包括第二数据传输设备的设备信息,第一帧类型指示第三MAC帧用于查找其他数据传输设备的MAC地址,第三MAC帧的帧头包括第二数据传输设备的MAC地址;将第三MAC帧以MAC广播的方式发送给第一数据传输设备;接收第一MAC帧之后,所述方法还包括:从第二帧类型的第一MAC帧解析出第一数据传输设备的MAC地址。
在一些可选的实施方式中,第一数据传输设备包括户内机,第二数据传输设备包括带屏面板,户内机和带屏面板构成可视门禁系统。
本申请第三方面公开了一种数据传输装置,应用于第一数据传输设备,数据传输装置包括:第一构造模块,用于构造第一媒体输入控制MAC帧,第一MAC帧包括帧头部分和数据部分,帧头部分包括协议类型字段,第一MAC帧的协议类型字段为第一指示值,第一指示值表示第一MAC帧的数据部分包括数据头和数据内容,数据头包括帧类型字段和数据长度字段,帧类型字段用于指示第一MAC帧的类型,数据长度字段用于指示数据内容的长度;第一发送模块,用于将第一MAC帧发送给第二数据传输设备。
在一些可选的实施方式中,帧类型字段为第一帧类型,第一帧类型指示第一MAC帧用于查找其他数据传输设备的MAC地址;或者帧类型字段为第二帧类型,第二帧类型指示第一MAC帧用于通告自身的MAC地址;或者帧类型字段为第三帧类型,第三帧类型指示第一MAC帧用于传送应用数据,数据内容包括应用数据。
在一些可选的实施方式中,若帧类型字段为第一帧类型,第一发送模块具体用于:将第一MAC帧以MAC广播的方式发送给第二数据传输设备;数据传输装置还包括:第一接收模块,用于接收第二数据传输设备发送的第二MAC帧,第二MAC帧是第二数据传输设备接收到第一MAC帧后,通过MAC单播方式发送给第一数据传输设备的,第二MAC帧的结构与第一MAC帧相同,第二MAC帧的帧类型字段为第二帧类型,第二MAC帧的数据内容包括第二数据传输设备的设备信息,第二MAC帧的帧头包括第二数据传输设备的MAC地址;第一解析模块,用于从第二MAC帧解析出第二数据传输设备的MAC地址。
在一些可选的实施方式中,数据传输装置还包括:第二接收模块,用于接收第二数据传输设备以MAC广播的方式发送的第三MAC帧,第三MAC帧的结构与第一MAC帧相同,第三MAC帧的帧类型字段为第一帧类型,第三MAC帧的数据内容包括第二数据传输设备的设备信息,第三MAC帧的帧头包括第二数据传输设备的MAC地址;第二解析模块,用于从第三MAC帧解析出第二数据传输设备的MAC地址;第一构造模块具体用于:基于第二数据传输设备的MAC地址构造第一MAC帧,第一MAC帧的帧类型字段为第二帧类型,第一MAC帧的帧头包括第一数据传输设备的MAC地址;第一发送模块具体用于:将第一MAC帧以MAC单播的方式发送给第二数据传输设备。
在一些可选的实施方式中,第一数据传输设备包括第二数据传输设备对应的应用程序,第二数据传输设备的设备信息包括屏幕分辨率、屏幕尺寸和解码器信息,数据传输装置还包括:第一处理模块,用于在第一数据传输设备运行第二数据传输设备对应的应用程序;根据屏幕分辨率和屏幕尺寸生成应用程序的图形界面;第一处理模块,还用于根据解码器信息对图形界面进行编码,得到应用数据。
在一些可选的实施方式中,数据头还包括包编号字段和分片编号字段,第一构造模块具体用于:对应用数据进行分片,得到分片后的数据;对分片后的数据进行前向纠错编码,得到前向纠错码;对前向纠错码和分片后的数据进行封装,得到第一MAC帧。
本申请第四方面公开了一种数据传输装置,应用于第二数据传输设备,数据传输装置包括:
第三接收模块,用于接收第一数据传输设备发送的第一媒体输入控制MAC帧,第一MAC帧包括帧头部分和数据部分,帧头部分包括协议类型字段,第一MAC帧的协议类型字段为第一指示值,第一指示值表示第一MAC帧的数据部分包括数据头和数据内容,数据头包括帧类型字段和数据长度字段,帧类型字段用于指示第一MAC帧的类型,数据长度字段用于 指示数据内容的长度。
在一些可选的实施方式中,帧类型字段为第三帧类型,第三帧类型指示第一MAC帧用于传送应用数据,数据内容包括应用数据;数据传输装置还包括:第三解析模块,用于从第三帧类型的第一MAC帧解析出应用数据。
在一些可选的实施方式中,数据头还包括包编号字段和分片编号字段,数据传输装置还包括:第二处理模块,用于对应用数据进行前向纠错译码,得到纠错译码后的数据;第二处理模块,还用于根据包编号字段和分片编号字段将纠错译码后的数据组合为数据包。
在一些可选的实施方式中,帧类型字段为第一帧类型,第一帧类型指示第一MAC帧用于查找其他数据传输设备的MAC地址,第一MAC帧是以MAC广播的方式发送给第二数据传输设备的,第一MAC帧的帧头部分包括第一数据传输设备的MAC地址;数据传输装置还包括:第四解析模块,用于从第一帧类型的第一MAC帧解析出第一数据传输设备的MAC地址;第二构造模块,用于构造第二MAC帧,第二MAC帧的结构与第一MAC帧相同,第二MAC帧的帧类型字段为第二帧类型,第二MAC帧的数据内容包括第二数据传输设备的设备信息,第二帧类型指示第二MAC帧用于通告自身的MAC地址,第二MAC帧的帧头包括第二数据传输设备的MAC地址;第二发送模块,用于将第二MAC帧通过MAC单播方式发送给第一数据传输设备。
在一些可选的实施方式中,帧类型字段为第二帧类型,第二帧类型指示第一MAC帧用于通告自身的MAC地址,第一MAC帧是以MAC单播的方式发送给第二数据传输设备的,第一MAC帧的帧头包括第一数据传输设备的MAC地址;数据传输装置还包括:第三构造模块,用于在接收第一MAC帧之前,构造第三MAC帧,第三MAC帧的结构与第一MAC帧相同,第三MAC帧的帧类型字段为第一帧类型,第三MAC帧的数据内容包括第二数据传输设备的设备信息,第一帧类型指示第三MAC帧用于查找其他数据传输设备的MAC地址,第三MAC帧的帧头包括第二数据传输设备的MAC地址;第三发送模块,用于将第三MAC帧以MAC广播的方式发送给第一数据传输设备;第五解析模块,用于从第二帧类型的第一MAC帧解析出第一数据传输设备的MAC地址。
本申请第五方面公开了一种计算机可读存储介质,包括计算机指令,当计算机指令在计算机或处理器上运行时,使得计算机或处理器执行如第一方面或第二方面的数据传输方法。
本申请第六方面公开了一种数据传输设备,数据传输设备包括接口电路和处理器,处理器通过接口电路接收或发送数据,处理器被配置为调用存储在存储器中的计算机指令,使得数据传输设备执行如第一方面或第二方面的数据传输方法。
本申请第七方面公开了一种计算机程序产品,当计算机程序产品在计算机或处理器上运行时,使得计算机或处理器执行如第一方面或第二方面的数据传输方法。
本申请第八方面公开了一种终端,包括处理器和存储器,处理器用于调用存储器中的计算机指令,使得终端执行如第一方面或第二方面的数据传输方法。
应当理解地,上述提供的第三方面、第四方面的数据传输装置、第五方面的计算机可读存储介质、第六方面的数据传输设备、第七方面的计算机程序产品和第八方面的终端均与上述第一方面、第二方面的方法对应,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
附图说明
图1是本申请实施例提供的数据传输方法的应用场景示意图。
图2是本申请实施例使用的改进后的MAC帧的结构示意图。
图3示出改进后的MAC帧通过帧类型字段定义的帧类型。
图4是本申请另一实施例使用的改进后的MAC帧的结构示意图。
图5是本申请实施例提供的数据传输方法的流程图。
图6是户内机对应用数据进行分片,对分片后的数据进行前向纠错编码,对前向纠错码和分片后的数据进行封装的示意图。
图7是带屏面板从第三帧类型的改进后的MAC帧解析出纠错码和分片后的数据,对分片后的数据进行前向纠错译码,将纠错译码后的数据组合为一帧图像的示意图。
图8是本申请另一实施例提供的数据传输方法的流程图。
图9是本申请实施例提供的数据传输装置的结构图。
图10是本申请另一实施例提供的数据传输装置的结构图。
图11是本申请实施例提供的数据传输设备的结构示意图。
具体实施方式
为了便于理解,示例性的给出了部分与本申请实施例相关概念的说明以供参考。
需要说明的是,本申请中“至少一个”是指一个或者多个,“多个”是指两个或多于两个。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。本申请的说明书和权利要求书及附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不是用于描述特定的顺序或先后次序。
为了更好地理解本申请实施例提供的数据传输方法及相关设备,下面首先对本申请数据传输方法的应用场景进行描述。
图1是本申请实施例提供的数据传输方法的应用场景示意图。本实施例提供的数据传输方法应用于可视门禁系统。可视门禁系统包括户内机10和至少一个带屏面板11。户内机10一般位于入户处,例如位于玄关处。带屏面板11一般位于房间内,例如卧室内。户内机10可以包括计算能力较强的设备,例如家庭计算机、高端电视机、高端路由器、家庭计算中心、家庭边缘计算中心等,带屏面板11可以包括计算能力较弱的设备,例如带发光二极管(light-emitting diode,LED)屏的电冰箱,带LED屏的电饭煲等。
在本申请的一个实施例中,户内机10可以采用安卓系统,带屏面板11可以采用鸿蒙嵌入式系统。在本申请的其他实施例中,户内机10和带屏面板11也可以采用其他的操作系统。例如,户内机10可以采用iOS系统,带屏面板11可以采用Windows系统。
图1只示出户内机10和一个带屏面板11互连,应当理解,户内机10可以和多个带屏面板11互连。
在本申请的一个实施例中,户内机10和带屏面板11可以通过G.hn标准电力线互连。G.hn是关于电源线、电话线和同轴电缆的一套协议规范,该标准可以把现有的双绞线、 同轴电缆以及电源线进行资源整合,实现统一传输,从而显著降低安装和运营成本。
在本申请的其他实施例中,户内机10和带屏面板11可以通过其他的电力线互连。
户内机10和带屏面板11可以包括多个软、硬件模块。参阅图1所示,户内机10的软件模块可以包括面板应用程序101、面板应用程序管理器102、第一设备参数同步器103、第一快传模块104、图形模块105和编码模块106。户内机10的硬件模块可以包括图形处理器(Graphics Processing Unit,GPU)107、编码器108和第一传输单元109。带屏面板11的软件模块可以包括第二设备参数同步器111、第二快传模块112、解码模块113,带屏面板11的硬件模块可以包括第二传输单元114、解码器115和显示屏116。应当理解,图形模块105和GPU107通过软硬件结合共同完成图形数据相关的处理,编码模块106和编码器108通过软硬件结合共同完成编码相关的处理。
每个带屏面板11对应一个面板应用程序101。在图1所示实施例中,为了降低用户的使用成本,方便可视门禁系统的业务升级,带屏面板11对应的面板应用程序101包括在户内机10中。当需要对可视门禁系统进行业务升级时,只需升级户内机10,无需升级每个带屏面板11。把带屏面板11的业务软件(即面板应用程序101)迁移到户内机10,通过分享户内机10的计算能力来支持带屏面板11的业务软件的运行,还能够降低对带屏面板11的计算能力的要求,减小带屏面板11的硬件成本。不同带屏面板11对应的面板应用程序101可以相同,也可以不同。户内机10运行面板应用程序101,可以生成带屏面板11的图形界面。
面板应用程序管理器102用于对面板应用程序101进行管理。例如,户内机10与五个带屏面板11通信连接,户内机10包括五个面板应用程序101,每个面板应用程序101对应一个带屏面板11,面板应用程序管理器102可以对五个面板应用程序101进行管理。
第一设备参数同步器103用于将户内机10的设备参数提供给第一快传模块104,以将户内机10的设备参数同步到带屏面板11。户内机10的设备信息可以包括户内机10的屏幕分辨率、屏幕尺寸和解码器信息。类似的,第二设备参数同步器111用于将带屏面板11的设备参数提供给第二快传模块112,以将带屏面板11的设备参数同步到户内机10。带屏面板11的设备信息可以包括带屏面板11的屏幕分辨率、屏幕尺寸和解码器信息。第一设备参数同步器103还用于在接收到带屏面板11的设备参数后,将带屏面板11的屏幕分辨率和屏幕尺寸通过面板应用程序管理器102提供给面板应用程序101,使面板应用程序101根据带屏面板11的屏幕分辨率和屏幕尺寸生成对应的图形界面,以及将带屏面板11的解码器信息提供给编码模块106,使编码模块106根据带屏面板11的解码器信息对图形界面进行编码。
在图1所示实施例中,第一设备参数同步器103将户内机10的设备参数同步到带屏面板11。在本申请的其他实施例中,第一设备参数同步器103可以不将户内机10的设备参数同步到带屏面板11。
第一快传模块104和第二快传模块112用于在户内机10和带屏面板11之间进行基于媒体接入控制(Media Access Control,MAC)协议的数据传输,第一快传模块104和第二快传模块112构造改进后的MAC帧,通过改进后的MAC帧实现快速的数据传输。根据现有的网络传输技术,数据传输设备(例如户内机10与带屏面板11)需要配置网际协议(Internet Protocol,IP)地址后才能彼此互连和传输数据。IP地址是目前使用的 五层网络协议中网络层使用的地址,五层网络协议从上到下包括应用层、传输层、网络层、数据链路层和物理层,发送过程中,数据每经过一层协议都需要增加特定协议的头部信息,而接收过程则相反,数据每经过一层协议都需要去除特定协议的头部信息。基于IP地址的数据传输方法数据传输较慢,无法满足低时延的数据传输要求。本申请实施例提供的数据传输方法基于MAC协议进行数据传输,MAC协议是数据链路层使用的协议。本申请实施例使用的网络协议从上到下包括数据链路层和物理层,省略了应用层、传输层和网络层的处理。根据本申请实施例提供的数据传输方法,数据传输设备不需要配置IP地址,在没有配置IP地址的情况下也能互连并彼此传输数据,减少了设备之间的互连时间,实现了低时延的传输数据,提升了传输效率。改进后的MAC帧的结构将在图2中进行详细描述。第一快传模块104通过第一传输单元109进行数据传输。第二快传模块112通过第二传输单元114进行数据传输。第一快传模块104可以通过第一传输单元109进行有线传输或无线传输。第二快传模块112也可以通过第二传输单元114进行有线传输或无线传输。
图形模块105用于提供虚拟屏技术。户内机10运行面板应用程序101,通过GPU 107生成带屏面板11的图形界面。虚拟屏技术是指应用程序生成的图形界面不显示在实际的物理显示屏幕上,而是显示在由一段内存表示的虚拟屏幕上。通过图形模块105提供的虚拟屏技术,面板应用程序101生成的带屏面板11的图形界面不显示在户内机10上,而是显示在户内机10中由一段内存表示的虚拟屏幕上。第一快传模块104可以从户内机10的该段内存中获得带屏面板11的图形数据,将带屏面板11的图形界面发送给带屏面板11。
编码模块106用于根据通过编码器108对户内机10发送的数据进行编码。例如,对户内机10的设备参数进行编码,或者,对带屏面板11的图形界面进行编码。
解码模块113用于通过解码器115对带屏面板11接收的数据进行解码。例如,对户内机10的设备参数进行解码,或者,对带屏面板11的图形界面进行解码。
显示屏116用于显示解码后的带屏面板11的图形界面。
应当理解,本申请实施例提供的数据传输方法可以应用于其他场景。本申请实施例提供的数据传输方法可以用于在第一数据传输设备和第二数据传输设备之间进行快速的数据传输,第一数据传输设备和第二数据传输设备可以是智能手机、智能手表、智能音箱、平板电脑、台式计算机、膝上型便携计算机、车载电脑等。
图2是本申请实施例使用的改进后的MAC帧的结构示意图。
本申请实施例提供的数据传输方法中,第一数据传输设备(例如图1中户内机10)和第二数据传输设备(例如图1中带屏面板)构造改进后的MAC帧,通过改进后的MAC帧在第一数据传输设备和第二数据传输设备之间进行数据传输。
改进后的MAC帧是在现有的MAC帧的基础上扩展得到的,改进后的MAC帧符合MAC协议的要求。
改进后的MAC帧包括帧头部分、数据部分和校验部分。帧头部分包括目的地址字段、源地址字段和协议类型字段。示例性的,目的地址字段、源地址字段均为6字节。协议类型字段为2字节。
目的地址字段包含目的MAC地址信息,源地址字段包含源MAC地址信息。
现有的MAC帧的协议类型字段用来指示上一层(即网络层)使用的协议,以便接收端把接收到的MAC帧的数据部分交给上一层相应的协议。例如,若协议类型字段为0x0800,表示网络层使用的是网际协议(Internet Protocol,IP);若协议类型字段为0x8137,表示网络层使用的是互联网分组交换(Internetwork Packet Exchange,IPX)协议。
现有的MAC帧的数据部分只有一个字段,其长度在46到1500字节之间,包含网络层传下来的数据。
改进后的MAC帧对现有的MAC帧的协议类型字段和数据部分进行了扩展(即自定义协议类型和数据部分),改进后的MAC帧的协议类型字段的取值不同于现有的MAC帧。改进后的MAC帧为第一指示值,第一指示值表示改进后的MAC帧的数据部分包括数据头和数据内容。在本申请的一个实施例中,第一指示值可以是0x0601。应当理解,在本申请的其他实施例中,第一指示值可以是其他数值(不同于现有的MAC帧的协议类型字段的取值即可)。
改进后的MAC帧的数据部分包括数据头(图中表示为“Header”)和数据内容(图中表示为“Payload”)。数据头包括帧类型字段(图中表示为“Frame Type”)和数据长度字段(图中表示为“Len”)。帧类型字段用于指示改进后的MAC帧的类型。
图3示出改进后的MAC帧通过帧类型字段(即“Frame Type”)定义的帧类型。
参阅图3所示,改进后的MAC帧通过帧类型字段定义了三种帧类型。当改进后的MAC帧的帧类型字段为“Search Host”时,改进后的MAC帧为第一帧类型,第一帧类型指示改进后的MAC帧用于查找其他数据传输设备的MAC地址。当改进后的MAC帧的帧类型字段为“Publish Host”时,改进后的MAC帧为第二帧类型,第二帧类型指示改进后的MAC帧用于通告自身的MAC地址。当改进后的MAC帧的帧类型字段为“Data”时,改进后的MAC帧为第三帧类型,第三帧类型指示改进后的MAC帧用于发送应用数据(例如视频数据)。应当理解,改进后的MAC帧的帧类型字段可以定义与图3不同的帧类型,改进后的MAC帧的帧类型字段可以采用与图3不同的标识符表示不同的帧类型。
数据长度字段用于指示数据内容(即Payload字段)的长度。
在本申请的一个实施例中,数据头还包括包编号字段(图中表示为“PkgID”)和分片编号字段(图中表示为“SegID”)。包编号字段用于指示数据内容所属的数据包,即标识数据包的序号。分片编号字段用于指示数据内容在数据包中的位置,即标识分片的序号。一个数据包可以对应一个文件,例如一帧图像或者一个音频。当文件的大小大于改进后的MAC帧的数据内容的最大长度(例如1485字节)时,需要将文件划分为多个分片,每个分片封装到一个改进后的MAC帧中进行传输。包编号字段和分片编号字段就是为了进行分片传输而设置的字段。通过PkgId和SegId,接收端可以根据获得的分片数据重组出一个完整的数据包(即一个文件)。
在本申请的一个实施例中,改进后的MAC帧的数据头的长度为15字节,其中,帧类型字段为1字节,包编号字段为8字节(即64bit),分片编号字段为4字节(即32bit),数据长度字段为2字节(即16bit)。数据内容的长度在31到1485字节之间(包含31与1485字节)。
在本申请的一个实施例中,改进后的MAC帧的分片编号的前两个字节用于表示分片总数,后两个字节可以用于表示分片序号。
改进后的MAC帧的校验部分的定义与现有的MAC帧相同,用于传输校验码,示例性的,该校验部分的长度为4字节。
图4是本申请另一实施例使用的改进后的MAC帧的结构示意图。
参见图4所示,改进后的MAC帧可以包括帧头部分和数据部分,帧头部分包括协议类型字段。示例性的,改进后的MAC帧的协议类型字段可以为第一指示值(例如0x0601),第一指示值表示改进后的MAC帧的数据部分包括数据头(图中表示为“Header”)和数据内容(图中表示为“Payload”)。改进后的MAC帧的数据头包括帧类型字段(图中表示为“Frame Type”)和数据长度字段(图中表示为“Len”),帧类型字段用于指示改进后的MAC帧的类型,数据长度字段用于指示数据内容的长度。示例性的,协议类型字段为2字节,数据部分为46-1500字节,帧类型字段为1字节,数据长度字段为2字节。
图5是本申请实施例提供的数据传输方法的流程图。图5以图1所示应用场景为例进行说明。
501,户内机构造第一帧类型的改进后的MAC帧。
户内机通过第一帧类型的改进后的MAC帧查找带屏面板的MAC地址。
户内机可以在上电时构造第一帧类型的改进后的MAC帧。
参见图2所示,户内机构造的第一帧类型的改进后的MAC帧包括帧头部分、数据部分,帧头部分包括目的地址字段、源地址字段和协议类型字段。户内机构造的第一帧类型的改进后的MAC帧的协议类型字段为第一指示值,第一指示值表示改进后的MAC帧的数据部分包括数据头和数据内容。户内机构造的第一帧类型的改进后的MAC帧的数据头包括帧类型字段、包编号字段、分片编号字段和数据长度字段。
在本申请的一个实施例中,户内机构造的第一帧类型的改进后的MAC帧的目的地址字段为空,源地址字段为户内机的MAC地址,协议类型字段为“0x0601”,帧类型字段为“Search Host”,包编号字段、分片编号字段、数据长度字段和数据内容为空。
在本申请的另一个实施例中,户内机构造的第一帧类型的改进后的MAC帧的数据内容包括户内机的设备参数,数据长度字段为户内机的设备参数的数据长度。户内机的设备参数可以包括户内机的屏幕分辨率、屏幕尺寸和解码器信息。
参阅图1所示,户内机可以通过第一设备参数同步器103将户内机的设备参数填入第一帧类型的改进后的MAC帧的数据内容中。
502,户内机将第一帧类型的改进后的MAC帧以MAC广播的方式发送给带屏面板。
参阅图1所示,户内机可以通过第一快传模块104和第一传输单元109将第一帧类型的改进后的MAC帧发送给带屏面板。
广播是指发送端在整个网络内发送数据,是“一对所有”的通讯模式,整个网络内的所有设备都可以接收到数据。
户内机可以保持第一帧类型的改进后的MAC帧的目的地址字段为空,表示进行MAC广播。或者,户内机可以将第一帧类型的改进后的MAC帧的目的地址字段设置为预设广播地址,表示进行MAC广播。
503,带屏面板接收到第一帧类型的改进后的MAC帧后,从第一帧类型的改进后的MAC帧解析出户内机的MAC地址。
带屏面板可以解析出第一帧类型的改进后的MAC帧的源地址字段,从第一帧类型的 改进后的MAC帧的源地址字段获得户内机的MAC地址。
504,带屏面板构造第二帧类型的改进后的MAC帧。
带屏面板通过第二帧类型的改进后的MAC帧向户内机通告自身的MAC地址。
带屏面板构造的第二帧类型的改进后的MAC帧的结构与户内机构造的第一帧类型的改进后的MAC帧相同。参见图2所示,带屏面板构造的第二帧类型的改进后的MAC帧包括帧头部分和数据部分,帧头部分包括目的地址字段、源地址字段和协议类型字段。带屏面板构造的第二帧类型的改进后的MAC帧的协议类型字段为第一指示值,第一指示值表示改进后的MAC帧的数据部分包括数据头和数据内容。带屏面板构造的第二帧类型的改进后的MAC帧的数据头包括帧类型字段、包编号字段、分片编号字段和数据长度字段。
在本申请的一个实施例中,带屏面板构造的第二帧类型的改进后的MAC帧的目的地址字段为户内机的MAC地址,源地址字段为带屏面板的MAC地址,第二帧类型的改进后的MAC帧的协议类型字段为“0x0601”,帧类型字段为“Publish Host”,包编号字段和分片编号字段为空,数据内容包括带屏面板的设备参数,数据长度字段为带屏面板的设备参数的数据长度。
参阅图1所示,带屏面板可以通过第二设备参数同步器111将带屏面板的设备参数填入带屏面板构造的第二帧类型的改进后的MAC帧的数据内容中。
在本申请的一个实施例中,带屏面板的设备参数包括带屏面板的屏幕分辨率、屏幕尺寸和解码器信息。
505,带屏面板将第二帧类型的改进后的MAC帧通过MAC单播的方式发送给户内机。
参阅图1所示,带屏面板可以通过第二快传模块112和第二传输单元114将第二帧类型的改进后的MAC帧发送给户内机。
单播是指在发送端和每一个接收端之间建立单独的信息发送路径,发送端和接收端之间是“一对一”的通讯模式。
506,户内机接收到第二帧类型的改进后的MAC帧后,从第二帧类型的改进后的MAC帧解析出带屏面板的MAC地址和设备参数。
户内机可以解析出第二帧类型的改进后的MAC帧的源地址字段,从第二帧类型的改进后的MAC帧的源地址字段获得带屏面板的MAC地址。户内机可以解析出第二帧类型的改进后的MAC帧的数据内容,从第二帧类型的改进后的MAC帧的数据内容中获得带屏面板的设备参数。
507,户内机运行带屏面板对应的面板应用程序。
参阅图1所示,带屏面板对应的面板应用程序(面板应用程序101)包括在户内机中。
例如,带屏面板为带LED屏的电冰箱,户内机运行电冰箱对应的面板应用程序。
508,户内机根据带屏面板的屏幕分辨率和屏幕尺寸,生成带屏面板对应的面板应用程序的图形界面。
参阅图1所示,户内机可以通过图形模块105和GPU 107生成带屏面板对应的面板应用程序的图形界面。
继续以带屏面板为带LED屏的电冰箱为例,户内机根据电冰箱的屏幕分辨率和屏幕尺 寸,生成电冰箱对应的面板应用程序的图形界面。
509,户内机根据带屏面板的解码器信息对生成的图形界面进行编码,得到应用数据。
参阅图1所示,户内机可以通过编码模块106和编码器108对生成的图形界面进行编码。
继续以带屏面板为带LED屏的电冰箱为例,户内机根据电冰箱的解码器信息对生成的图形界面进行编码,得到应用数据。
根据带屏面板的解码器信息,可以确定带屏面板支持的编码格式。例如,根据带屏面板的解码器信息,确定带屏面板支持H.264编码格式,户内机对生成的图形界面进行编码,得到H.264格式的视频流。又如,根据带屏面板的解码器信息,确定带屏面板支持联合图像专家组(Joint Photographic Experts Group,JPEG)编码格式,户内机对生成的图形界面进行编码,得到H.264格式的视频流。
户内机根据带屏面板的解码器信息对生成的图形界面进行编码得到的应用数据包括多帧图像。
510,户内机构造第三帧类型的改进后的MAC帧。
户内机通过第三帧类型的改进后的MAC帧向带屏面板传送应用数据。
第三帧类型的改进后的MAC帧的结构与户内机构造的第一帧类型的改进后的MAC帧、带屏面板构造的第二帧类型的改进后的MAC帧相同。参见图2所示,第三帧类型的改进后的MAC帧包括帧头部分和数据部分,帧头部分包括目的地址字段、源地址字段和协议类型字段。第三帧类型的改进后的MAC帧的协议类型字段为第一指示值,第一指示值表示第三帧类型的改进后的MAC帧的数据部分包括数据头和数据内容。第三帧类型的改进后的MAC帧的数据头包括帧类型字段、包编号字段、分片编号字段和数据长度字段。第三帧类型的改进后的MAC帧的数据内容包括应用数据。
在本申请的一个实施例中,第三帧类型的改进后的MAC帧的目的地址字段为带屏面板的MAC地址,第三帧类型的改进后的MAC帧的源地址字段为户内机的MAC地址,第三帧类型的改进后的MAC帧的协议类型字段为“0x0601”,第三帧类型的改进后的MAC帧的帧类型字段为“Data”,第三帧类型的改进后的MAC帧的数据内容为应用数据,第三帧类型的改进后的MAC帧的数据长度字段为应用数据的数据长度。
在本申请的一个实施例中,户内机构造第三帧类型的改进后的MAC帧包括:对应用数据进行分片,得到分片后的数据;对分片后的数据进行前向纠错编码,得到前向纠错码;对前向纠错码和分片后的数据进行封装,得到第三帧类型的改进后的MAC帧。第三帧类型的改进后的MAC帧的包编号字段和分片编号字段为分片后的数据对应的包编号和分片编号。在该实施例中,第三帧类型的改进后的MAC帧的数据内容包括前向纠错码和分片后的数据。
改进后的MAC帧的数据内容的最大长度可能小于应用数据的大小(例如小于应用数据中的每帧图像的大小),为了实现应用数据的快速传输,户内机对应用数据进行分片传输。例如,数据内容的长度在31到1485字节之间,最大为1485字节,可以按照1485字节对应用数据中的每帧图像进行分片。
前向纠错编码是在不可靠或强噪声干扰的信道中传输数据时用来控制错误的一项技术,前向纠错编码具有引入级联信道编码等增益编码技术的特点,可以自动纠正传输误码的。前 向纠错编码通过使用前向纠错码对数据(例如应用数据)进行冗余编码。
更多前向纠错编码的信息可以参考相关技术,此处不再赘述。
对前向纠错码和分片后的数据进行封装可以是将前向纠错码封装为一个改进后的MAC帧,将每个分片后的数据封装为一个改进后的MAC帧,也就是将前向纠错码或分片后的数据填入对应的改进后的MAC帧的数据内容字段。
图6是户内机对应用数据进行分片,对分片后的数据进行前向纠错编码,对前向纠错码和分片后的数据进行封装的示意图。
参见图6所示,应用数据包括Frame1、Frame2和Frame3三帧图像,户内机对Frame1进行分片,得到SEG1、SEG2、SEG3、SEG4和SEG5共5个分片后的数据,对SEG1、SEG2、SEG3、SEG4和SEG5进行前向纠错编码,得到前向纠错码SEG6,对SEG1进行封装,得到SEG1对应的第三帧类型的改进后的MAC帧,对SEG2进行封装,得到SEG2对应的第三帧类型的改进后的MAC帧,对SEG3进行封装,得到SEG3对应的第三帧类型的改进后的MAC帧,对SEG4进行封装,得到SEG4对应的第三帧类型的改进后的MAC帧,对SEG5进行封装,得到SEG5对应的第三帧类型的改进后的MAC帧,对SEG6进行封装,得到SEG6对应的第三帧类型的改进后的MAC帧(图6只示出对SEG1进行封装,得到SEG1对应的第三帧类型的改进后的MAC帧)。
511,户内机将第三帧类型的改进后的MAC帧发送给带屏面板。
参阅图1所示,户内机可以通过第一快传模块104和第一传输单元109将第三帧类型的改进后的MAC帧发送给带屏面板。
例如,510中,户内机对应用数据进行分片,得到分片后的数据;对分片后的数据进行前向纠错编码,得到前向纠错码;对前向纠错码和分片后的数据进行封装,得到第三帧类型的改进后的MAC帧。户内机将经过分片、前向纠错编码和封装得到的第三帧类型的改进后的MAC帧发送给带屏面板。
512,带屏面板接收第三帧类型的改进后的MAC帧之后,从第三帧类型的改进后的MAC帧解析出应用数据。
在本申请的一个实施例中,第三帧类型的改进后的MAC帧的包编号字段和分片编号字段为空,带屏面板可以根据第三帧类型的改进后的MAC帧的数据长度字段,确定改进后的MAC帧的数据长度,根据改进后的MAC帧的数据长度,从第三帧类型的改进后的MAC帧的数据内容中解析出应用数据。例如,带屏面板根据第三帧类型的改进后的MAC帧的数据长度字段,确定第三帧类型的改进后的MAC帧的数据长度为1200字节,从第三帧类型的改进后的MAC帧的数据内容中获取1200字节的数据,将获取的1200字节的数据作为应用数据。
在本申请的另一个实施例中,带屏面板接收的第三帧类型的改进后的MAC帧是根据图6所示通过对一帧图像进行分片、前向纠错编码和封装得到的,第三帧类型的改进后的MAC帧的包编号字段和分片编号字段不为空,第三帧类型的改进后的MAC帧的数据内容包括前向纠错码或分片后的数据。相应的,带屏面板从多个第三帧类型的改进后的MAC帧解析出前向纠错码和分片后的数据,根据前向纠错码对分片后的数据进行前向纠错译码,得到纠错译码后的数据,根据第三帧类型的改进后的MAC帧中的包编号字段和分片编号字段,对纠错译码后的数据进行组合,得到数据包(例如一帧图像)。纠错译码后的数据包 括解析出的无差错的分片后的数据和纠错后的分片后的数据。
图7是带屏面板从第三帧类型的改进后的MAC帧解析出纠错码和分片后的数据,根据纠错码对分片后的数据进行前向纠错译码,将纠错译码后的数据组合为一帧图像的示意图。
参阅图7所示,带屏面板从SEG1对应的第三帧类型的改进后的MAC帧解析出SEG1,从SEG2对应的第三帧类型的改进后的MAC帧解析出SEG2,从SEG3对应的第三帧类型的改进后的MAC帧解析出SEG3,从SEG4对应的第三帧类型的改进后的MAC帧解析出SEG4,从SEG5对应的第三帧类型的改进后的MAC帧解析出SEG5,从SEG6对应的第三帧类型的改进后的MAC帧解析出SEG6(图中只示出从SEG1对应的第三帧类型的改进后的MAC帧解析出SEG1)。根据SEG6,带屏面板确定解析出的SEG4、SEG5出现差错,恢复出正确的SEG4、SEG5(即得到纠错后的SEG4、SEG5)。带屏面板将纠错译码后的数据(包括解析出的无差错的SEG1、SEG2、SEG3和纠错后的SEG4、SEG5)组合为Frame1。
513,带屏面板对获得的应用数据进行解码,得到带屏面板对应的面板应用程序的图形界面。
参阅图1所示,带屏面板可以通过解码模块113和解码器115对应用数据进行解码。
继续以带屏面板为带LED屏的电冰箱为例,电冰箱对解析出应用数据进行解码,得到电冰箱对应的面板应用程序的图形界面。
514,带屏面板将带屏面板对应的面板应用程序的图形界面显示在带屏面板上。
参阅图1所示,带屏面板可以将带屏面板对应的面板应用程序的图形界面显示在显示屏116上。
继续以带屏面板为带LED屏的电冰箱为例,电冰箱将对应的面板应用程序的图形界面显示在电冰箱的LED屏上。
根据现有的网络传输技术,带屏面板和户内机都需要在配置IP地址后才能彼此互通,彼此发送数据。而基于IP地址的数据传输方法无法满足低时延要求。本申请实施例提供的数据传输方法基于MAC协议进行数据传输,而不再依赖网络层协议。带屏面板和户内机都不需要配置IP地址,在没有配置IP地址的情况下也能互联并彼此传输数据,减少了设备之间的互连时间,实现了低时延传输数据,提升了传输效率。
图8是本申请另一实施例提供的数据传输方法的流程图。
801,带屏面板构造第一帧类型的改进后的MAC帧。
带屏面板可以在上电时构造第一帧类型的改进后的MAC帧。
在本申请的一个实施例中,带屏面板构造的第一帧类型的改进后的MAC帧的目的地址字段为空,源地址字段为带屏面板的MAC地址,协议类型字段为“0x0601”,帧类型字段为“Search Host”,包编号字段和分片编号字段为空,数据内容包括带屏面板的设备参数,数据长度字段为带屏面板的设备参数的数据长度。
802,带屏面板将第一帧类型的改进后的MAC帧以MAC广播的方式发送给户内机。
803,户内机接收第一帧类型的改进后的MAC帧后,从第一帧类型的改进后的MAC帧解析出带屏面板的MAC地址和设备参数。
804,户内机构造第二帧类型的改进后的MAC帧。
在本申请的一个实施例中,户内机构造的第二帧类型的改进后的MAC帧的目的地址 字段为带屏面板的MAC地址,源地址字段为户内机的MAC地址,协议类型字段为“0x0601”,帧类型字段为“Public Host”,包编号字段、分片编号字段、数据长度字段和数据内容为空。
在本申请的另一个实施例中,户内机构造的第二帧类型的改进后的MAC帧的数据内容包括户内机的设备参数,数据长度字段为户内机的设备参数的数据长度。户内机的设备参数可以包括户内机的屏幕分辨率、屏幕尺寸和解码器信息。
805,户内机将第二帧类型的改进后的MAC帧通过MAC单播的方式发送给带屏面板。
806,带屏面板接收第二帧类型的改进后的MAC帧后,从第二帧类型的改进后的MAC帧解析出户内机的MAC地址。
807,户内机运行带屏面板对应的面板应用程序。
808,户内机根据带屏面板的屏幕分辨率和屏幕尺寸,生成带屏面板对应的面板应用程序的图形界面。
809,户内机根据带屏面板的解码器信息对生成的图形界面进行编码,得到应用数据。
810,户内机构造第三帧类型的改进后的MAC帧。
811,户内机将第三帧类型的改进后的MAC帧发送给带屏面板。
812,带屏面板接收第三帧类型的改进后的MAC帧之后,从第三帧类型的改进后的MAC帧解析出应用数据。
813,带屏面板对获得的应用数据进行解码,得到带屏面板对应的面板应用程序的图形界面。
814,带屏面板将带屏面板对应的面板应用程序的图形界面显示在带屏面板上。
807-814的具体内容可以参阅图5中507-514的相关描述,此处不再赘述。
基于与方法实施例同一发明构思,本申请实施例还提供了一种数据传输装置。
图9是本申请实施例提供的数据传输装置的结构图。图9所示的数据传输装置90应用于第一数据传输设备。数据传输装置90包括第一构造模块901和第一发送模块902。可选的,数据传输装置90还可以包括第一接收模块903、第一解析模块904、第二接收模块905、第二解析模块906、第一处理模块907。
第一构造模块901用于构造第一媒体输入控制MAC帧。第一MAC帧包括帧头部分和数据部分,帧头部分包括协议类型字段。第一MAC帧的协议类型字段为第一指示值,第一指示值表示第一MAC帧的数据部分包括数据头和数据内容。数据头包括帧类型字段和数据长度字段,帧类型字段用于指示第一MAC帧的类型,数据长度字段用于指示数据内容的长度。
第一发送模块902用于将第一MAC帧发送给第二数据传输设备。
在一些可选的实施方式中,帧类型字段为第一帧类型,第一帧类型指示第一MAC帧用于查找其他数据传输设备的MAC地址;或者帧类型字段为第二帧类型,第二帧类型指示第一MAC帧用于通告自身的MAC地址;或者帧类型字段为第三帧类型,第三帧类型指示第一MAC帧用于传送应用数据,数据内容包括应用数据。
在一些可选的实施方式中,若帧类型字段为第一帧类型,第一发送模块902用于将第一MAC帧以MAC广播的方式发送给第二数据传输设备。
第一接收模块903用于接收第二数据传输设备发送的第二MAC帧。第二MAC帧是第二 数据传输设备接收到第一MAC帧后,通过MAC单播方式发送给第一数据传输设备的。第二MAC帧的结构与第一MAC帧相同,第二MAC帧的帧类型字段为第二帧类型,第二MAC帧的数据内容包括第二数据传输设备的设备信息。第二MAC帧的帧头包括第二数据传输设备的MAC地址。
第一解析模块904用于从第二MAC帧解析出第二数据传输设备的MAC地址。
第二接收模块905用于接收第二数据传输设备以MAC广播的方式发送的第三MAC帧。第三MAC帧的结构与第一MAC帧相同。第三MAC帧的帧类型字段为第一帧类型,第三MAC帧的数据内容包括第二数据传输设备的设备信息,第三MAC帧的帧头包括第二数据传输设备的MAC地址。
第二解析模块906用于从第三MAC帧解析出第二数据传输设备的MAC地址。
在一些可选的实施方式中,第一构造模块901用于基于第二数据传输设备的MAC地址构造第一MAC帧。第一MAC帧的帧类型字段为第二帧类型,第一MAC帧的帧头包括第一数据传输设备的MAC地址。第一发送模块902用于将第一MAC帧以MAC单播的方式发送给第二数据传输设备。
在一些可选的实施方式中,第一数据传输设备包括第二数据传输设备对应的应用程序,第二数据传输设备的设备信息包括屏幕分辨率、屏幕尺寸和解码器信息。
第一处理模块907用于在第一数据传输设备运行第二数据传输设备对应的应用程序;根据屏幕分辨率和屏幕尺寸生成应用程序的图形界面;根据解码器信息对图形界面进行编码,得到应用数据。
在一些可选的实施方式中,数据头还包括包编号字段和分片编号字段。第一构造模块901用于对应用数据进行分片,得到分片后的数据;对分片后的数据进行前向纠错编码,得到前向纠错码;对前向纠错码和分片后的数据进行封装,得到第一MAC帧。
图10是本申请另一实施例提供的数据传输装置的结构图。图10所示的数据传输装置100应用于第二数据传输设备。数据传输装置100包括第三接收模块1001。可选的,数据传输装置100还可以包括第三解析模块1002、第二处理模块1003、第四解析模块1004、第二构造模块1005、第二发送模块1006、第三构造模块1007、第三发送模块1008、第五解析模块1009。
第三接收模块1001用于接收第一数据传输设备发送的第一媒体输入控制MAC帧。第一MAC帧包括帧头部分和数据部分,帧头部分包括协议类型字段。第一MAC帧的协议类型字段为第一指示值,第一指示值表示第一MAC帧的数据部分包括数据头和数据内容。数据头包括帧类型字段和数据长度字段,帧类型字段用于指示第一MAC帧的类型,数据长度字段用于指示数据内容的长度。
在一些可选的实施方式中,帧类型字段为第三帧类型,第三帧类型指示第一MAC帧用于传送应用数据,数据内容包括应用数据。
第三解析模块1002用于从第一MAC帧解析出应用数据。
在一些可选的实施方式中,数据头还包括包编号字段和分片编号字段。
第二处理模块1003用于对应用数据进行前向纠错译码,得到纠错译码后的数据;根据包编号字段和分片编号字段将纠错译码后的数据组合为数据包。
在一些可选的实施方式中,帧类型字段为第一帧类型,第一帧类型指示第一MAC帧用于查找其他数据传输设备的MAC地址,第一MAC帧是以MAC广播的方式发送给第二数据 传输设备的,第一MAC帧的帧头部分包括第一数据传输设备的MAC地址。
第四解析模块1004用于从第一帧类型的第一MAC帧解析出第一数据传输设备的MAC地址。
第二构造模块1005用于构造第二MAC帧。第二MAC帧的结构与第一MAC帧相同。第二MAC帧的帧类型字段为第二帧类型,第二MAC帧的数据内容包括第二数据传输设备的设备信息,第二帧类型指示第二MAC帧用于通告自身的MAC地址,第二MAC帧的帧头包括第二数据传输设备的MAC地址。
第二发送模块1006用于将第二MAC帧通过MAC单播方式发送给第一数据传输设备。
在一些可选的实施方式中,帧类型字段为第二帧类型,第二帧类型指示第一MAC帧用于通告自身的MAC地址,第一MAC帧是以MAC单播的方式发送给第二数据传输设备的,第一MAC帧的帧头包括第一数据传输设备的MAC地址。
第三构造模块1007用于在接收第一MAC帧之前,构造第三MAC帧。第三MAC帧的结构与第一MAC帧相同。第三MAC帧的帧类型字段为第一帧类型,第三MAC帧的数据内容包括第二数据传输设备的设备信息,第一帧类型指示第三MAC帧用于查找其他数据传输设备的MAC地址,第三MAC帧的帧头包括第二数据传输设备的MAC地址。
第三发送模块1008用于将第三MAC帧以MAC广播的方式发送给第一数据传输设备。
第五解析模块1009用于从第二帧类型的第一MAC帧解析出第一数据传输设备的MAC地址。
应当理解,在本申请的其他实施例中,数据传输装置90、100可以包括更多或更少的模块,模块的名称可以改变。例如,图9中,第一接收模块903、第二接收模块905可以合并为第一接收模块,第一解析模块904、第二解析模块906可以合并为第一解析模块,也就是说,数据传输装置90可以包括第一构造模块、第一发送模块、第一接收模块、第一解析模块和第一处理模块。图10中,第三接收模块1001可以更名为第二接收模块,第三解析模块1002、第四解析模块1004、第五解析模块1009可以合并为第二解析模块,第二构造模块1005、第三构造模块1007可以合并为第二构造模块,第三发送模块1008可以更名为第二发送模块,也就是说,数据传输装置100可以包括第二接收模块、第二解析模块、第二处理模块、第二构造模块和第二发送模块。
图9、图10中的各个模块可以与图1中的模块相对应,例如,第一快传模块104可以对应第一构造模块901、第一发送模块902、第一接收模块903、第二接收模块905,第一设备参数同步器103可以对应第一解析模块904、第二解析模块906,面板应用程序管理器102、图形模块105、编码模块106可以对应第一处理模块907;第二快传模块112可以对应第三接收模块1001、第三解析模块1002、第二构造模块1005、第二发送模块1006、第三构造模块1007、第三发送模块1008,第二设备参数同步器111可以对应第四解析模块1004、第五解析模块1009,解码模块113可以对应第二处理模块1003。
图11是本申请实施例提供的一种数据传输设备(第一数据传输设备或第二数据传输设备)的结构示意图。如图11所示,数据传输设备110可以包括:射频(Radio Frequency,RF)电路1101、存储器1102、输入单元1103、显示单元1104、传感器1105、音频电路1106、Wi-Fi模块1107、处理器1108以及电源1109等部件。本领域技术人员可以理解,图8中示出的结构并不构成对数据传输设备的限定,可以包括比图示更多或更少的部件, 或者组合某些部件,或者不同的部件布置。
RF电路1101可用于收发信息或在通话过程中,对信号进行接收和发送,特别地,接收基站的下行信息后,转给处理器1108进行处理;另外,将涉及上行的数据发送给基站。通常,RF电路1101包括,但不限于:天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。
存储器1102可用于存储软件程序以及模块,处理器1108通过运行存储在存储器1102中的软件程序以及模块,从而执行数据传输设备的各种功能应用以及数据处理。存储器1102可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据数据传输设备的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器1102可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
输入单元1103可用于接收输入的数字或字符信息,以及产生与数据传输设备的用户设置以及功能控制有关的键信号输入。具体地,输入单元1103可包括触控面板11031以及其他输入设备11032。触控面板11031,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触控笔等任何适合的物体或附件在触控面板11031上或在触控面板11031附近的操作),并根据预先设定的程序驱动相应的连接装置。可选地,触控面板11031可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1108,并接收处理器1108发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板11031。除了触控面板11031,输入单元1103还可以包括其他输入设备11032。具体地,其他输入设备11032可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元1104可用于显示由用户输入的信息或提供给用户的信息以及数据传输设备的各种菜单。显示单元1104可包括显示面板11041,可选地,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板11041。进一步地,触控面板11031可覆盖显示面板11041,当触控面板11031检测到在其上或附近的触摸操作后,传送给处理器1108以确定触摸事件的类型,随后处理器1108根据触摸事件的类型在显示面板11041上提供相应的视觉输出。虽然在图8中,触控面板11031与显示面板11041是作为两个独立的部件来实现数据传输设备的输入和输出功能,但是在某些实施例中,可以将触控面板11031与显示面板11041集成而实现数据传输设备的输入和输出功能。
数据传输设备还可包括至少一种传感器1105,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板11041的亮度,接近传感器可在数据传输设备移动到耳边时,关闭显示面板11041和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别数据传输设备姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振 动识别相关功能(比如计步器、敲击)等;此外,数据传输设备还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路1106、扬声器11061,传声器11062可提供用户与数据传输设备之间的音频接口。音频电路1106可将接收到的音频数据转换后的电信号,传输到扬声器11061,由扬声器11061转换为声音信号输出;另一方面,传声器11062将收集的声音信号转换为电信号,由音频电路1106接收后转换为音频数据,再将音频数据输出处理器1108处理后,经RF电路1101发送给另一数据传输设备,或者将音频数据输出至存储器1102以便进一步处理。
Wi-Fi属于短距离无线传输技术,数据传输设备110通过Wi-Fi模块1107可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图8示出了Wi-Fi模块1107,但是可以理解的是,其并不属于数据传输设备的必需构成,完全可以根据需要、在不改变发明本质的范围内进行省略。
处理器1108是数据传输设备的控制中心,利用各种接口和线路连接整个数据传输设备的各个部分,通过运行或执行存储在存储器1102内的软件程序和/或模块,以及调用存储在存储器1102内的数据,执行数据传输设备的各种功能和处理数据,从而对数据传输设备进行整体监控。可选地,处理器1108可包括一个或多个处理单元;优选的,处理器1108可集成应用处理器和调制解调器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1108中。
数据传输设备还包括给各个部件供电的电源1109(比如电池),可选地,电源可以通过电源管理系统与处理器1108逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
尽管未示出,数据传输设备还可以包括摄像头、蓝牙模块等,在此不再赘述。
图10中描述的数据传输设备可以用于实施本申请图5、8介绍的方法实施例中的部分或全部流程,可参见前述图5、8所示实施例中的相关阐述,这里不再赘述。
本实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机指令,当该计算机指令在数据传输设备上运行时,使得数据传输设备执行上述相关方法步骤实现上述实施例中的内存回收方法。
本实施例还提供了一种计算机程序产品,当该计算机程序产品在数据传输设备上运行时,使得数据传输设备执行上述相关步骤,以实现上述实施例中的内存回收方法。
另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中的内存回收方法。
其中,本实施例提供的数据传输设备、数据传输装置、计算机存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将 上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,该模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
该作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
该集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (29)

  1. 一种数据传输方法,应用于第一数据传输设备,其特征在于,所述方法包括:
    构造第一媒体输入控制MAC帧,所述第一MAC帧包括帧头部分和数据部分,所述帧头部分包括协议类型字段,所述第一MAC帧的协议类型字段为第一指示值,所述第一指示值表示所述第一MAC帧的所述数据部分包括数据头和数据内容,所述数据头包括帧类型字段和数据长度字段,所述帧类型字段用于指示所述第一MAC帧的类型,所述数据长度字段用于指示所述数据内容的长度;
    将所述第一MAC帧发送给第二数据传输设备。
  2. 如权利要求1所述的数据传输方法,其特征在于,所述帧类型字段为第一帧类型,所述第一帧类型指示所述第一MAC帧用于查找其他数据传输设备的MAC地址;或者
    所述帧类型字段为第二帧类型,所述第二帧类型指示所述第一MAC帧用于通告自身的MAC地址;或者
    所述帧类型字段为第三帧类型,所述第三帧类型指示所述第一MAC帧用于传送应用数据,所述数据内容包括应用数据。
  3. 如权利要求2所述的数据传输方法,其特征在于,若所述帧类型字段为所述第一帧类型,所述将所述第一MAC帧发送给第二数据传输设备包括:
    将所述第一MAC帧以MAC广播的方式发送给所述第二数据传输设备。
  4. 如权利要求3所述的数据传输方法,其特征在于,所述将所述第一MAC帧以MAC广播的方式发送给所述第二数据传输设备之后,所述方法还包括:
    接收所述第二数据传输设备发送的第二MAC帧,所述第二MAC帧是所述第二数据传输设备接收到所述第一MAC帧后,通过MAC单播方式发送给所述第一数据传输设备的,所述第二MAC帧的结构与所述第一MAC帧相同,所述第二MAC帧的帧类型字段为所述第二帧类型,所述第二MAC帧的数据内容包括所述第二数据传输设备的设备信息,所述第二MAC帧的帧头包括所述第二数据传输设备的MAC地址;
    从所述第二MAC帧解析出所述第二数据传输设备的MAC地址。
  5. 如权利要求2所述的数据传输方法,其特征在于,在所述构造所述第一MAC帧之前,所述方法还包括:
    接收所述第二数据传输设备以MAC广播的方式发送的第三MAC帧,所述第三MAC帧的结构与所述第一MAC帧相同,所述第三MAC帧的帧类型字段为所述第一帧类型,所述第三MAC帧的数据内容包括所述第二数据传输设备的设备信息,所述第三MAC帧的帧头包括所述第二数据传输设备的MAC地址;
    从所述第三MAC帧解析出所述第二数据传输设备的MAC地址;
    所述构造所述第一MAC帧包括:
    基于所述第二数据传输设备的MAC地址构造所述第一MAC帧,所述第一MAC帧的帧类型字段为所述第二帧类型,所述第一MAC帧的帧头包括所述第一数据传输设备的MAC地址;
    所述将所述第一MAC帧发送给第二数据传输设备包括:
    将所述第一MAC帧以MAC单播的方式发送给所述第二数据传输设备。
  6. 如权利要求1至5任一项所述的数据传输方法,其特征在于,所述第一数据传输设备包括户内机,所述第二数据传输设备包括带屏面板,所述户内机和所述带屏面板构成可视门禁系统。
  7. 如权利要求4或5所述的数据传输方法,其特征在于,所述第二数据传输设备的设备信息包括屏幕分辨率、屏幕尺寸和解码器信息。
  8. 如权利要求7所述的数据传输方法,其特征在于,所述第一数据传输设备包括所述第二数据传输设备对应的应用程序,构造所述第一MAC帧之前,所述方法还包括:
    在所述第一数据传输设备运行所述应用程序;
    根据所述屏幕分辨率和所述屏幕尺寸生成所述应用程序的图形界面;
    根据所述解码器信息对所述图形界面进行编码,得到所述应用数据。
  9. 如权利要求2所述的数据传输方法,其特征在于,所述数据头还包括包编号字段和分片编号字段,对所述应用数据构造所述第一MAC帧包括:
    对所述应用数据进行分片,得到分片后的数据;
    对所述分片后的数据进行前向纠错编码,得到前向纠错码;
    对所述前向纠错码和所述分片后的数据进行封装,得到所述第一MAC帧。
  10. 一种数据传输方法,应用于第二数据传输设备,其特征在于,所述方法包括:
    接收第一数据传输设备发送的第一媒体输入控制MAC帧,所述第一MAC帧包括帧头部分和数据部分,所述帧头部分包括协议类型字段,所述第一MAC帧的协议类型字段为第一指示值,所述第一指示值表示所述第一MAC帧的所述数据部分包括数据头和数据内容,所述数据头包括帧类型字段和数据长度字段,所述帧类型字段用于指示所述第一MAC帧的类型,所述数据长度字段用于指示所述数据内容的长度。
  11. 如权利要求10所述的数据传输方法,其特征在于,所述帧类型字段为第三帧类型,所述第三帧类型指示所述第一MAC帧用于传送应用数据,所述数据内容包括应用数据;
    所述方法还包括:
    从所述第三帧类型的所述第一MAC帧解析出所述应用数据。
  12. 如权利要求11所述的数据传输方法,其特征在于,所述数据头还包括包编号字段和分片编号字段,所述方法还包括:
    对所述应用数据进行前向纠错译码,得到纠错译码后的数据;
    根据所述包编号字段和所述分片编号字段将所述纠错译码后的数据组合为数据包。
  13. 如权利要求10所述的数据传输方法,其特征在于,所述帧类型字段为第一帧类型,所述第一帧类型指示所述第一MAC帧用于查找其他数据传输设备的MAC地址,所述第一MAC帧是以MAC广播的方式发送给所述第二数据传输设备的,所述第一MAC帧的帧头部分包括所述第一数据传输设备的MAC地址;
    接收所述第一MAC帧之后,所述方法还包括:
    从所述第一帧类型的所述第一MAC帧解析出所述第一数据传输设备的MAC地址;
    构造第二MAC帧,所述第二MAC帧的结构与所述第一MAC帧相同,所述第二MAC帧的帧类型字段为第二帧类型,所述第二MAC帧的数据内容包括所述第二数据传输设备的设备信息,所述第二帧类型指示所述第二MAC帧用于通告自身的MAC地址,所述第二MAC 帧的帧头包括所述第二数据传输设备的MAC地址;
    将所述第二MAC帧通过MAC单播方式发送给所述第一数据传输设备。
  14. 如权利要求10所述的数据传输方法,其特征在于,所述帧类型字段为第二帧类型,所述第二帧类型指示所述第一MAC帧用于通告自身的MAC地址,所述第一MAC帧是以MAC单播的方式发送给所述第二数据传输设备的,所述第一MAC帧的帧头包括所述第一数据传输设备的MAC地址;
    接收所述第一MAC帧之前,所述方法还包括:
    构造第三MAC帧,所述第三MAC帧的结构与所述第一MAC帧相同,所述第三MAC帧的帧类型字段为第一帧类型,所述第三MAC帧的数据内容包括所述第二数据传输设备的设备信息,所述第一帧类型指示所述第三MAC帧用于查找其他数据传输设备的MAC地址,所述第三MAC帧的帧头包括所述第二数据传输设备的MAC地址;
    将所述第三MAC帧以MAC广播的方式发送给所述第一数据传输设备;
    接收所述第一MAC帧之后,所述方法还包括:
    从所述第二帧类型的所述第一MAC帧解析出所述第一数据传输设备的MAC地址。
  15. 如权利要求11至14任一项所述的数据传输方法,其特征在于,所述第一数据传输设备包括户内机,所述第二数据传输设备包括带屏面板,所述户内机和所述带屏面板构成可视门禁系统。
  16. 一种数据传输装置,应用于第一数据传输设备,其特征在于,所述数据传输装置包括:
    第一构造模块,用于构造第一媒体输入控制MAC帧,所述第一MAC帧包括帧头部分和数据部分,所述帧头部分包括协议类型字段,所述第一MAC帧的协议类型字段为第一指示值,所述第一指示值表示所述第一MAC帧的所述数据部分包括数据头和数据内容,所述数据头包括帧类型字段和数据长度字段,所述帧类型字段用于指示所述第一MAC帧的类型,所述数据长度字段用于指示所述数据内容的长度;
    第一发送模块,用于将所述第一MAC帧发送给第二数据传输设备。
  17. 如权利要求16所述的数据传输装置,其特征在于,所述帧类型字段为第一帧类型,所述第一帧类型指示所述第一MAC帧用于查找其他数据传输设备的MAC地址;或者
    所述帧类型字段为第二帧类型,所述第二帧类型指示所述第一MAC帧用于通告自身的MAC地址;或者
    所述帧类型字段为第三帧类型,所述第三帧类型指示所述第一MAC帧用于传送应用数据,所述数据内容包括应用数据。
  18. 如权利要求17所述的数据传输装置,其特征在于,若所述帧类型字段为所述第一帧类型,所述第一发送模块具体用于:
    将所述第一MAC帧以MAC广播的方式发送给所述第二数据传输设备;
    所述数据传输装置还包括:
    第一接收模块,用于接收所述第二数据传输设备发送的第二MAC帧,所述第二MAC帧是所述第二数据传输设备接收到所述第一MAC帧后,通过MAC单播方式发送给所述第一数据传输设备的,所述第二MAC帧的结构与所述第一MAC帧相同,所述第二MAC帧的帧类型字段为所述第二帧类型,所述第二MAC帧的数据内容包括所述第二数据传输设备的设备 信息,所述第二MAC帧的帧头包括所述第二数据传输设备的MAC地址;
    第一解析模块,用于从所述第二MAC帧解析出所述第二数据传输设备的MAC地址。
  19. 如权利要求17所述的数据传输装置,其特征在于,所述数据传输装置还包括:
    第二接收模块,用于接收所述第二数据传输设备以MAC广播的方式发送的第三MAC帧,所述第三MAC帧的结构与所述第一MAC帧相同,所述第三MAC帧的帧类型字段为所述第一帧类型,所述第三MAC帧的数据内容包括所述第二数据传输设备的设备信息,所述第三MAC帧的帧头包括所述第二数据传输设备的MAC地址;
    第二解析模块,用于从所述第三MAC帧解析出所述第二数据传输设备的MAC地址;
    所述第一构造模块具体用于:
    基于所述第二数据传输设备的MAC地址构造所述第一MAC帧,所述第一MAC帧的帧类型字段为所述第二帧类型,所述第一MAC帧的帧头包括所述第一数据传输设备的MAC地址;
    所述第一发送模块具体用于:
    将所述第一MAC帧以MAC单播的方式发送给所述第二数据传输设备。
  20. 如权利要求18或19所述的数据传输装置,其特征在于,所述第一数据传输设备包括所述第二数据传输设备对应的应用程序,所述第二数据传输设备的设备信息包括屏幕分辨率、屏幕尺寸和解码器信息,所述数据传输装置还包括:
    第一处理模块,用于在所述第一数据传输设备运行所述应用程序;
    所述第一处理模块,还用于根据所述屏幕分辨率和所述屏幕尺寸生成所述应用程序的图形界面;
    所述第一处理模块,还用于根据所述解码器信息对所述图形界面进行编码,得到所述应用数据。
  21. 如权利要求17所述的数据传输装置,其特征在于,所述数据头还包括包编号字段和分片编号字段,所述第一构造模块具体用于:
    对所述应用数据进行分片,得到分片后的数据;
    对所述分片后的数据进行前向纠错编码,得到前向纠错码;
    对所述前向纠错码和所述分片后的数据进行封装,得到所述第一MAC帧。
  22. 一种数据传输装置,应用于第二数据传输设备,其特征在于,所述数据传输装置包括:
    第三接收模块,用于接收第一数据传输设备发送的第一媒体输入控制MAC帧,所述第一MAC帧包括帧头部分和数据部分,所述帧头部分包括协议类型字段,所述第一MAC帧的协议类型字段为第一指示值,所述第一指示值表示所述第一MAC帧的所述数据部分包括数据头和数据内容,所述数据头包括帧类型字段和数据长度字段,所述帧类型字段用于指示所述第一MAC帧的类型,所述数据长度字段用于指示所述数据内容的长度。
  23. 如权利要求22所述的数据传输装置,其特征在于,所述帧类型字段为第三帧类型,所述第三帧类型指示所述第一MAC帧用于传送应用数据,所述数据内容包括应用数据;
    所述数据传输装置还包括:
    第三解析模块,用于从所述第三帧类型的所述第一MAC帧解析出所述应用数据。
  24. 如权利要求23所述的数据传输装置,其特征在于,所述数据头还包括包编号字段和 分片编号字段,所述数据传输装置还包括:
    第二处理模块,用于对所述应用数据进行前向纠错译码,得到纠错译码后的数据;
    所述第二处理模块,还用于根据所述包编号字段和所述分片编号字段将所述纠错译码后的数据组合为数据包。
  25. 如权利要求22所述的数据传输装置,其特征在于,所述帧类型字段为第一帧类型,所述第一帧类型指示所述第一MAC帧用于查找其他数据传输设备的MAC地址,所述第一MAC帧是以MAC广播的方式发送给所述第二数据传输设备的,所述第一MAC帧的帧头部分包括所述第一数据传输设备的MAC地址;
    所述数据传输装置还包括:
    第四解析模块,用于从所述第一帧类型的所述第一MAC帧解析出所述第一数据传输设备的MAC地址;
    第二构造模块,用于构造第二MAC帧,所述第二MAC帧的结构与所述第一MAC帧相同,所述第二MAC帧的帧类型字段为第二帧类型,所述第二MAC帧的数据内容包括所述第二数据传输设备的设备信息,所述第二帧类型指示所述第二MAC帧用于通告自身的MAC地址,所述第二MAC帧的帧头包括所述第二数据传输设备的MAC地址;
    第二发送模块,用于将所述第二MAC帧通过MAC单播方式发送给所述第一数据传输设备。
  26. 如权利要求22所述的数据传输装置,其特征在于,所述帧类型字段为第二帧类型,所述第二帧类型指示所述第一MAC帧用于通告自身的MAC地址,所述第一MAC帧是以MAC单播的方式发送给所述第二数据传输设备的,所述第一MAC帧的帧头包括所述第一数据传输设备的MAC地址;
    所述数据传输装置还包括:
    第三构造模块,用于在接收所述第一MAC帧之前,构造第三MAC帧,所述第三MAC帧的结构与所述第一MAC帧相同,所述第三MAC帧的帧类型字段为第一帧类型,所述第三MAC帧的数据内容包括所述第二数据传输设备的设备信息,所述第一帧类型指示所述第三MAC帧用于查找其他数据传输设备的MAC地址,所述第三MAC帧的帧头包括所述第二数据传输设备的MAC地址;
    第三发送模块,用于将所述第三MAC帧以MAC广播的方式发送给所述第一数据传输设备;
    第五解析模块,用于从所述第二帧类型的所述第一MAC帧解析出所述第一数据传输设备的MAC地址。
  27. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在计算机或处理器上运行时,使得所述计算机或所述处理器执行如权利要求1至9或10至15中任一项所述的数据传输方法。
  28. 一种数据传输设备,其特征在于,所述数据传输设备包括接口电路和处理器,所述处理器通过所述接口电路接收或发送数据,所述处理器被配置为调用存储在存储器中的计算机指令,使得所述数据传输设备执行如权利要求1至9或10至15中任一项所述的数据传输方法。
  29. 一种计算机程序产品,当所述计算机程序产品在计算机或处理器上运行时,使得 所述计算机或处理器执行如权利要求1至9或10至15中任一项所述的数据传输方法。
PCT/CN2021/094988 2021-05-20 2021-05-20 数据传输方法及相关设备 WO2022241737A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN202180077582.1A CN116508275A (zh) 2021-05-20 2021-05-20 数据传输方法及相关设备
EP21940191.6A EP4336755A4 (en) 2021-05-20 2021-05-20 DATA TRANSMISSION METHOD AND ASSOCIATED DEVICE
PCT/CN2021/094988 WO2022241737A1 (zh) 2021-05-20 2021-05-20 数据传输方法及相关设备
US18/512,280 US20240089212A1 (en) 2021-05-20 2023-11-17 Data transmission method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/094988 WO2022241737A1 (zh) 2021-05-20 2021-05-20 数据传输方法及相关设备

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/512,280 Continuation US20240089212A1 (en) 2021-05-20 2023-11-17 Data transmission method and related device

Publications (1)

Publication Number Publication Date
WO2022241737A1 true WO2022241737A1 (zh) 2022-11-24

Family

ID=84140147

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/094988 WO2022241737A1 (zh) 2021-05-20 2021-05-20 数据传输方法及相关设备

Country Status (4)

Country Link
US (1) US20240089212A1 (zh)
EP (1) EP4336755A4 (zh)
CN (1) CN116508275A (zh)
WO (1) WO2022241737A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030067912A1 (en) * 1999-07-02 2003-04-10 Andrew Mead Directory services caching for network peer to peer service locator
CN109361490A (zh) * 2018-08-10 2019-02-19 锐捷网络股份有限公司 数据传输方法、计算机设备、数据转接板及sdr平台
CN109428798A (zh) * 2017-08-25 2019-03-05 上海微电子装备(集团)股份有限公司 一种工业以太网与DeviceNet间的转换装置
CN111371736A (zh) * 2018-12-26 2020-07-03 中兴通讯股份有限公司 iOAM信息处理方法、装置及计算机可读存储介质

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015026132A1 (en) * 2013-08-19 2015-02-26 Lg Electronics Inc. Apparatus for transmitting broadcast signals, apparatus for receiving broadcast signals, method for transmitting broadcast signals and method for receiving broadcast signals

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030067912A1 (en) * 1999-07-02 2003-04-10 Andrew Mead Directory services caching for network peer to peer service locator
CN109428798A (zh) * 2017-08-25 2019-03-05 上海微电子装备(集团)股份有限公司 一种工业以太网与DeviceNet间的转换装置
CN109361490A (zh) * 2018-08-10 2019-02-19 锐捷网络股份有限公司 数据传输方法、计算机设备、数据转接板及sdr平台
CN111371736A (zh) * 2018-12-26 2020-07-03 中兴通讯股份有限公司 iOAM信息处理方法、装置及计算机可读存储介质

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4336755A4 *

Also Published As

Publication number Publication date
CN116508275A (zh) 2023-07-28
EP4336755A4 (en) 2024-03-20
US20240089212A1 (en) 2024-03-14
EP4336755A1 (en) 2024-03-13

Similar Documents

Publication Publication Date Title
US10911498B2 (en) User input back channel for wireless displays
WO2019196690A1 (zh) 旁链路的传输方法和终端
JP5694568B2 (ja) ワイヤレスディスプレイのためのユーザ入力バックチャネル
JP6224133B2 (ja) ワイヤレスディスプレイデバイスのためのユーザ入力制御のためのコネクションレストランスポート
RU2567378C2 (ru) Обратный канал пользовательского ввода для беспроводных дисплеев
JP5826861B2 (ja) ワイヤレスディスプレイのためのユーザ入力バックチャネル
WO2021197153A1 (zh) 传输处理方法及设备
US10135900B2 (en) User input back channel for wireless displays
WO2021179931A1 (zh) Url投屏方法和装置
US20130009873A1 (en) User input back channel for wireless displays
US20130009996A1 (en) User input back channel for wireless displays
WO2016112728A1 (zh) 一种数据传输的方法、网络服务器、用户终端及系统
WO2018036026A1 (zh) 一种数据传输的方法、基站、目标终端、系统及存储介质
CN112291181B (zh) 一种基于多网卡的数据传输方法以及相关装置
CN109862377A (zh) 视频传输方法、装置、系统及计算机可读存储介质
CN109729384A (zh) 视频转码的选择方法和装置
WO2021018227A1 (zh) 上行控制信息的传输方法、终端设备及存储介质
RU2577184C2 (ru) Обратный канал ввода данных пользователем для беспроводных дисплеев
WO2018191962A1 (zh) 数据传输方法、网络侧设备及终端
WO2022241737A1 (zh) 数据传输方法及相关设备
US20230188270A1 (en) Data Transmission Method, Transmit Device, and Receive Device
JP5847846B2 (ja) ワイヤレスディスプレイのためのユーザ入力バックチャネル
CN113015215B (zh) 数据发送方法及用户设备
WO2021169369A1 (zh) 一种数据传输方法、装置及系统
WO2024031555A1 (zh) 控制方法、通信设备及存储介质

Legal Events

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

Ref document number: 21940191

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 202180077582.1

Country of ref document: CN

WWE Wipo information: entry into national phase

Ref document number: 2021940191

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2021940191

Country of ref document: EP

Effective date: 20231204

NENP Non-entry into the national phase

Ref country code: DE