WO2017076091A1 - Data transmission method and apparatus, and communication system - Google Patents

Data transmission method and apparatus, and communication system Download PDF

Info

Publication number
WO2017076091A1
WO2017076091A1 PCT/CN2016/093653 CN2016093653W WO2017076091A1 WO 2017076091 A1 WO2017076091 A1 WO 2017076091A1 CN 2016093653 W CN2016093653 W CN 2016093653W WO 2017076091 A1 WO2017076091 A1 WO 2017076091A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
packet
operation instruction
data content
receiving
Prior art date
Application number
PCT/CN2016/093653
Other languages
French (fr)
Chinese (zh)
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 广州视睿电子科技有限公司
Publication of WO2017076091A1 publication Critical patent/WO2017076091A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/52Queue scheduling by attributing bandwidth to queues
    • H04L47/527Quantum based scheduling, e.g. credit or deficit based scheduling or token bank
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/321Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving a third party or a trusted authority
    • H04L9/3213Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving a third party or a trusted authority using tickets or tokens, e.g. Kerberos

Definitions

  • the present invention relates to the field of multimedia communication technologies, and in particular, to a data transmission method, apparatus, and communication system.
  • VGA Video Graphics Array
  • DVI Digital Visual Interface
  • HDMI High Definition Multimedia Interface
  • DP DisplayPort, display interface
  • any host and slave can be connected via USB cable for data interaction.
  • the token packet, the data packet, and the handshake packet need to be transmitted in sequence; wherein the token packet includes information for indicating that the receiving end receives the data and an address of the receiving end, and the data packet includes the data content to be transmitted.
  • the handshake packet is used to indicate the reception result of the feedback data at the receiving end. For example, when the host needs to transmit video data to the slave, it needs to transmit the first token packet, the first data packet, and the first handshake packet in sequence; after receiving the three packets, the slave device needs to sequentially transmit the second token packet and the first packet.
  • Two data packets thereby returning the reception result of the video data to the host (included in the second data packet); in addition, when the slave device processes the video data, it is necessary to return the operation instruction to the host, so that the host also works on the video data.
  • the slave device needs to additionally transmit the third token packet, the third data packet, and the third handshake packet, thereby returning an operation instruction for the video data to the host (included in the third data packet), and the host receives After the slave returns these packets, it is also necessary to transmit the fourth token packet and the fourth data packet to the slave to the slave. Feedback of the reception result of the operation instruction.
  • the inventor has found that the existing method for transmitting data through the USB interface has the following disadvantages: for each data interaction process, a token packet, a data packet, and a handshake packet need to be transmitted between the host and the slave. In order to realize the transmission of the data content, the receiver also needs to transmit the token packet and the data packet again to feed back the reception result of the data content. When multiple data interactions need to be performed between the master and the slave, multiple transmissions of the "received result of the data content" packets without actual data content may cause waste of the transmission resources, thereby reducing the transmission of the data content. effectiveness.
  • an object of the present invention is to provide a data transmission method, apparatus, and communication system capable of improving data transmission efficiency between two devices.
  • An embodiment of the present invention provides a data transmission method, including the following steps:
  • the first data includes a first token packet, a first data packet, and a first handshake packet
  • the first token packet includes First information of the displayed data content, second information indicating that the first device returns a first operation instruction, and an address of the first device
  • the first data packet includes the data content
  • the first handshake packet is used to instruct the first device to feed back a result of receiving the data content
  • the second data after the second device receives the second data, the data content displayed on the second device according to the first operation instruction Performing a synchronization process; wherein the second data includes a second token packet and a second data packet; the second token packet includes a receiving result of the data content, and is used to indicate that the second device receives the
  • the third information of the first operation instruction and the address of the second device, the second data packet includes the first operation instruction.
  • the second data further includes a second handshake packet, and the second handshake packet And configured to instruct the second device to feed back a receiving result of the first operation instruction;
  • the method further includes:
  • the third data includes a third token packet
  • the third token packet includes a receiving result of the first operation instruction, and the first device the address of.
  • the second data further includes a second handshake packet, where the second handshake packet is used to instruct the second device to feed back a reception result of the first operation instruction; and the second command
  • the card package further includes fourth information for instructing the second device to return a second operation instruction;
  • the method further includes:
  • the third data includes a third token packet and a third data packet;
  • the third token packet includes a receiving result of the first operation instruction, And fifth information indicating that the first device receives the second operation instruction and an address of the first device;
  • the third data packet includes the second operation instruction, and the second operation instruction is The touch frame of the second device receives an instruction that the second user processes the data content;
  • the first data packet further includes a check code for verifying the authenticity of the data content
  • the reception result of the data content is the reception success, and the data content is displayed on the first device.
  • the data content includes at least one of audio data, video data, a picture, and a text
  • the operation instruction includes any one of modifying the data content, opening a next-level menu, and playing an operation.
  • the embodiment of the invention further provides a data transmission device, including:
  • a first receiving unit configured to receive first data sent by the second device, where the first data includes a first token packet, a first data packet, and a first handshake packet; and the first token packet includes And the first information indicating that the first device receives the data content to be displayed, the second information used to instruct the first device to return the first operation instruction, and the address of the first device, where the first data packet includes The data content, the first handshake packet is used to instruct the first device to feed back a result of receiving the data content;
  • a display unit configured to display data content in the first data
  • An instruction unit configured to receive, by using a touch frame of the local device, a first operation instruction that the first user processes the data content
  • a sending unit configured to return the second data to the second device, so that after the second device receives the second data, the second device can display the second device according to the first operation instruction.
  • synchronizing the data content wherein the second data includes a second token packet and a second data packet; the second token packet includes a receiving result of the data content, and is used to indicate the The second device receives the third information of the first operation instruction and the address of the second device, and the second data packet includes the first operation instruction.
  • the second data further includes a second handshake packet, where the second handshake packet is used to instruct the second device to feed back a reception result of the first operation instruction;
  • the data transmission device further includes:
  • a second receiving unit configured to receive third data sent by the second device, where the third data includes a third token packet, where the third token packet includes receiving the first operation instruction The result and the address of the first device.
  • the second data further includes a second handshake packet, where the second handshake packet is used to instruct the second device to feed back a reception result of the first operation instruction; and the second command
  • the card package further includes fourth information for instructing the second device to return a second operation instruction;
  • the data transmission device further includes:
  • a second receiving unit configured to receive third data sent by the second device, where the third data includes a third token packet and a third data packet, where the third token packet includes An operation instruction a receiving result, a fifth information indicating that the first device receives the second operation instruction, and an address of the first device, the third data packet includes the second operation instruction;
  • the second The operation instruction is to receive, by using a touch frame of the second device, an instruction that the second user processes the data content;
  • a processing unit configured to perform synchronization processing on the data content displayed by the local device according to the second operation instruction in the third data.
  • the first data packet further includes a check code for verifying the authenticity of the data content
  • the display unit specifically includes:
  • a parsing subunit configured to parse the data content from the first data packet of the first data
  • a verification subunit configured to verify the data content according to the check code in the first data packet
  • the executing subunit is configured to determine, after the verification is passed, that the receiving result of the data content is successful, and display the data content.
  • the present invention also provides a communication system comprising a first device and a second device; the first device comprising a data transmission device as described above.
  • An embodiment of the present invention further provides another data transmission method, including the following steps:
  • the first device After the first device receives the first data, displaying the data content;
  • the first device returns second data to the second device; wherein the second data includes a second token packet and a second data packet; the second token packet includes receiving the data content a third information indicating that the second device receives the first operation instruction and a ground of the second device Address, the second data packet includes the first operation instruction;
  • the second device After receiving the second data, the second device performs synchronization processing on the data content displayed on the second device according to the first operation instruction.
  • the second data further includes a second handshake packet, where the second handshake packet is used to instruct the second device to feed back a reception result of the first operation instruction;
  • the method further includes:
  • third data to the first device, where the third data includes a third token packet, where the third token packet includes a receiving result and a location of the first operation instruction The first device address.
  • the second data further includes a second handshake packet, where the second handshake packet is used to instruct the second device to feed back a reception result of the first operation instruction; and the second command
  • the card package further includes fourth information for instructing the second device to return a second operation instruction;
  • the method further includes:
  • the second device receives, by the touch frame of the local device, a second operation instruction that the second user processes the data content
  • third data to the first device, where the third data includes a third token packet and a third data packet; and the third token packet includes the first operation instruction a receiving result, a fifth information indicating that the first device receives the second operation instruction, and an address of the first device, where the third data packet includes the second operation instruction;
  • the first device After receiving the third data, the first device performs synchronization processing on the data content displayed on the first device according to the second operation instruction.
  • the first data packet further includes a check code for verifying the authenticity of the data content
  • the first device After the first device receives the first data, displaying the data content, specifically:
  • the first device After receiving the first data, the first device parses the data content from the first data packet of the first data;
  • the first device performs verification on the data content according to the check code in the first data packet
  • the first device determines that the reception result of the data content is successful, and displays the data content.
  • the data transmission method, device, and communication system provided by the embodiments of the present invention have the following beneficial effects: when the second device sends the first data to the first device, the instruction packet is added to the token packet of the first data.
  • a device returns information of the operation instruction; wherein the data packet of the first data includes data content.
  • the first device processes the data content, and returns the second data to the second device, where the token packet of the second data includes a receiving result of the data content, and the The data packet of the second data includes an operation instruction of the first device to the data content.
  • the data content is synchronously processed, and the third data is returned to the first device; wherein the token packet of the third data includes a receiving result of the operation instruction, and
  • the data packet of the third data includes an operation instruction of the second device to the data content. That is to say, when the data interaction is performed between the second device and the first device, after receiving the data content, the receiving party does not need to separately return the “received result of the data content” packets that have no actual data content, and When the receiver returns other data content, it also carries the information of the last "received result of the data content", and returns it together, so that the packets without the actual data content do not occupy the transmission resources separately, which is improved.
  • the efficiency of transmission of data content between the second device and the first device In particular, in the case that data needs to be transmitted multiple times between the first device and the second device, the embodiment of the present invention can greatly improve the transmission efficiency.
  • FIG. 1 is a schematic flow chart of an embodiment of a data transmission method provided by the present invention.
  • FIG. 2 is a schematic structural diagram of an embodiment of a data transmission device provided by the present invention.
  • FIG. 3 is a schematic structural diagram of an embodiment of a display unit of a data transmission device provided by the present invention.
  • FIG. 4 is a schematic structural diagram of an embodiment of a data transmission system according to an embodiment of the present invention.
  • FIG. 5 is a schematic flow chart of another embodiment of a data transmission method provided by the present invention.
  • FIG. 6 is a schematic flow chart of still another embodiment of a data transmission method provided by the present invention.
  • FIG. 7 is a schematic flow chart of still another embodiment of a data transmission method provided by the present invention.
  • FIG. 1 is a schematic flowchart diagram of an embodiment of a data transmission method provided by the present invention.
  • the present invention provides a data transmission method, including steps S11 to S14, as follows:
  • the first data includes a first token packet, a first data packet, and a first handshake packet.
  • the first token packet includes first information for instructing the first device to receive data content to be displayed. Instructing the first device to return the second information of the first operation instruction and the address of the first device, the first data packet includes the data content, and the first handshake packet is used to indicate the first A device feeds back the result of receiving the data content.
  • the data content includes at least one of audio data, video data, a picture, and a text.
  • the data content may also be other types of data, such as a table or the like.
  • the first data packet may further include a check code for verifying the authenticity of the data content, where the data content in the first data is displayed on the first device, Specifically include:
  • the data content is parsed from the first data packet of the first data.
  • the data content is verified according to the check code in the first data packet.
  • the read data of the first device is transmitted to the Flash for decoding by the display main chip of the first device; and the decoded data is read by the display main chip, and then transmitted to the device.
  • the display of the first device is displayed.
  • the response packet is returned to the second device, where the response packet includes information that the reception result of the data content is reception failure and is used to indicate the location.
  • the second device resends the information of the data content; and then, the data content resent by the second device is verified. If the verification fails, the above steps are repeated until the verification result of the received data content is passed.
  • the first operation instruction includes any one of modifying the data content, opening a next-level menu, and playing an operation.
  • the first operation instruction may also be other types of instructions, for example, when the data content is a teaching courseware, the first operation instruction may be an instruction to annotate the teaching courseware.
  • the second data includes a second token packet and a second data packet, where the second token packet includes a result of receiving the data content, and is used to instruct the second device to receive the first operation. a third information of the instruction and an address of the second device, the second data packet including the first operation instruction.
  • the second data further includes a second handshake packet, where the second handshake packet is used to instruct the second device to feed back a reception result of the first operation instruction;
  • the method further includes:
  • the third data includes a third token packet, where the third token packet includes a receiving result of the first operation instruction and an address of the first device.
  • the second data further includes a second handshake packet, where the second handshake packet is used to instruct the second device to feed back a reception result of the first operation instruction;
  • the second token packet further includes fourth information for instructing the second device to return a second operation instruction;
  • the method further includes:
  • the third data includes a third token packet and a third data packet.
  • the third token packet includes a receiving result of the first operation instruction, and is used to instruct the first device to receive the first a fifth information of the second operation instruction and an address of the first device;
  • the third data package includes the second operation instruction, and the second operation instruction is to receive the second user by using a touch frame of the second device An instruction to process the data content.
  • the data transmission method provided by the foregoing embodiment may be performed by the first device or by a device configured on the first device side.
  • the present invention further provides a data transmission apparatus, which can perform all the processes of the data transmission method provided by the foregoing embodiments.
  • FIG. 2 is a schematic structural diagram of an embodiment of a data transmission apparatus provided by the present invention.
  • the present invention provides a data transmission apparatus, including a first receiving unit 21, a display unit 22, an instruction unit 23, a transmitting unit 24, and a transmitting unit 25, as follows:
  • the first receiving unit 21 is configured to receive the first data sent by the second device.
  • the first data includes a first token packet, a first data packet, and a first handshake packet.
  • the first token packet includes first information for instructing the first device to receive data content to be displayed. Instructing the first device to return the second information of the first operation instruction and the address of the first device, the first data packet includes the data content, and the first handshake packet is used to indicate the first a device feedback to the The result of receiving the data content.
  • the data content includes at least one of audio data, video data, a picture, and a text.
  • the data content may also be other types of data, such as a table or the like.
  • the display unit 22 is configured to display data content in the first data.
  • the first data packet further includes a check code for verifying the authenticity of the data content
  • FIG. 3 is a schematic structural diagram of an embodiment of a display unit of a data transmission device provided by the present invention.
  • the display unit 22 includes a parsing subunit 221, a parsing subunit 222, and an executing subunit 223, as follows:
  • the parsing subunit 221 is configured to parse the data content from the first data packet of the first data.
  • the verification subunit 222 is configured to verify the data content according to the check code in the first data packet.
  • the executing sub-unit 223 is configured to determine, after the verification is passed, that the receiving result of the data content is successful, and display the data content.
  • the execution sub-unit 223 transmits the read data content to the Flash through the display main chip, and then decodes through the display main chip. The decoded data is taken and transmitted to the display for display.
  • the data transmission device 20 returns a response packet to the second device, where the response packet includes receiving the data content as a failure to receive.
  • the verification sub-unit 222 checks the data content resent by the second device. If the verification fails, the above steps are repeated until the verification result of the received data content is passed.
  • the instruction unit 23 is configured to receive, by the touch frame of the local device, a first operation instruction that the first user processes the data content.
  • the first operation instruction comprises revising the data content and opening the next dish. Any of the single and playback operations.
  • the first operation instruction may also be other types of instructions, for example, when the data content is a teaching courseware, the first operation instruction may be an instruction to annotate the teaching courseware.
  • the sending unit 24 is configured to return the second data to the second device, so that after the second device receives the second data, the second device can be configured according to the first operation instruction.
  • the displayed data content is synchronized.
  • the second data includes a second token packet and a second data packet, where the second token packet includes a result of receiving the data content, and is used to instruct the second device to receive the first operation. a third information of the instruction and an address of the second device, the second data packet including the first operation instruction.
  • the second data further includes a second handshake packet, where the second handshake packet is used to instruct the second device to feed back a reception result of the first operation instruction;
  • the data transmission device 20 further includes: a second receiving unit 25, configured to receive third data sent by the second device.
  • the third data includes a third token packet, where the third token packet includes a receiving result of the first operation instruction and an address of the first device.
  • the second data further includes a second handshake packet, where the second handshake packet is used to instruct the second device to feed back a reception result of the first operation instruction;
  • the second token packet further includes fourth information for instructing the second device to return a second operation instruction;
  • the data transmission device 20 further includes a second receiving unit 25 and a processing unit 26, as follows:
  • the second receiving unit 25 is configured to receive third data sent by the second device.
  • the third data includes a third token packet and a third data packet.
  • the third token packet includes a receiving result of the first operation instruction, and is used to instruct the first device to receive the first a fifth information of the second operation instruction and an address of the first device;
  • the third data package includes the second operation instruction, and the second operation instruction is to receive the second user by using a touch frame of the second device An instruction to process the data content.
  • the processing unit 26 is configured to perform synchronization processing on the data content displayed by the local device according to the second operation instruction in the third data.
  • the present invention also provides a communication system.
  • FIG. 4 is a schematic structural diagram of an embodiment of a communication system according to an embodiment of the present invention.
  • the communication system includes a first device 100 and a second device 200.
  • the first device 100 includes the data transmission device 20 as described above.
  • the second device 200 may be a device having the same structural function as the first device 100, for example, a mobile phone, a tablet computer, a PC, or a projector. These may be set according to actual needs, and the present invention is not specifically limited. .
  • the first device 100 and the second device 200 are connected by a USB transmission line, and data transmitted between the first device 100 and the second device 200 is encapsulated into data in a USB format, and then transmitted.
  • FIG. 5 is a schematic flowchart of another embodiment of a data transmission method provided by the present invention, including steps S51 to S55, as follows:
  • the second device sends the first data to the first device, where the first data includes a first token packet, a first data packet, and a first handshake packet, where the first token packet includes
  • the first device receives the first information of the data content to be displayed, the second information used to instruct the first device to return the first operation instruction, and the address of the first device, where the first data packet includes The data content, the first handshake packet is used to instruct the first device to feed back a result of receiving the data content.
  • the data content includes at least one of audio data, video data, a picture, and a text.
  • the data content may also be other types of data, such as a table or the like.
  • the second device and the first device perform data transmission through a USB interface
  • the data transmission of the USB interface can be implemented by hardware, firmware and software; wherein the software part of the application is working on the device, to windows or other operating system For the upper layer of the operating platform, it reads from or writes to the device real-time data that is transmitted synchronously.
  • the original data of the data content is stored in a hard disk of the second device, and when the second device needs to transmit the data content to the first device, a CPU processor of the second device invokes a hard disk.
  • Raw data of the data content then, the CPU processor will original the data content Transmitting data to the graphics card of the second device for decoding; then, the application reads the decoded data from the graphics card, re-encodes the data into H.264 format to conform to the USB transmission protocol, and encodes the encoded
  • the data content and the time synchronization signal are encapsulated into the first data packet; wherein the time synchronization signal is used to indicate that the receiving end identifies the start and end of the corresponding signal of each data frame to ensure the integrity of the transmitted signal, and is also used for The clock synchronization of the receiving end is controlled such that the clock maintains the same frequency as the transmitting end to ensure the accuracy of the transmitted signal.
  • the application transmits the first data packet to the USB interface of the second device.
  • the first device After receiving the first data, the first device displays the data content.
  • the first data packet further includes a check code for verifying the authenticity of the data content, and after the first device receives the first data, displaying the data content.
  • a check code for verifying the authenticity of the data content
  • the data content is parsed from the first data packet of the first data.
  • the first device checks the data content according to the check code in the first data packet.
  • the first device determines that the reception result of the data content is successful, and displays the data content.
  • the display main chip of the first device transmits the read data content to the Flash for decoding, and then the display main chip reads the decoded data, that is, It can be transmitted to the display screen of the first device for display.
  • the first device if the verification of the data content does not pass, the first device returns a response packet to the second device, where the response packet includes information that the reception result of the data content is reception failure. And the information used to instruct the second device to resend the data content, and then the first device performs verification on the data content that is resent by the second device, and if the multiple verification fails, The above steps are repeated until the verification result of the received data content by the first device is passed, and the design solutions are all within the protection scope of the present invention, and details are not described herein again.
  • the first device receives, by using a touch frame of the local device, the first user, where the data content is performed.
  • the first operational instruction is included in the first operational instruction.
  • the first operation instruction includes any one of modifying the data content, opening a next-level menu, and playing an operation.
  • the first operation instruction may also be other types of instructions, for example, when the data content is a teaching courseware, the first operation instruction may be an instruction to annotate the teaching courseware.
  • the first device returns second data to the second device.
  • the second data includes a second token packet and a second data packet, where the second token packet includes a result of receiving the data content, and is used to instruct the second device to receive the first operation. a third information of the instruction and an address of the second device, the second data packet including the first operation instruction.
  • the second device After receiving the second data, the second device performs synchronization processing on the data content displayed on the second device according to the first operation instruction.
  • the second data further includes a second handshake packet, where the second handshake packet is used to indicate that the second device feeds back the first operation.
  • the result of receiving the instruction is a second handshake packet, where the second handshake packet is used to indicate that the second device feeds back the first operation.
  • step S66 After synchronizing the data content displayed on the second device, the method further includes step S66:
  • the second device returns third data to the first device, where the third data includes a third token packet, where the third token packet includes a receiving result of the first operation instruction. And the first device address.
  • the second data further includes a second handshake packet, where the second handshake packet is used to indicate that the second device feeds back to the first The receiving result of the operation instruction; and the second token packet further includes fourth information for instructing the second device to return the second operation instruction;
  • the second device receives, by using a touch frame of the local device, a second operation instruction that the second user processes the data content;
  • the second device returns third data to the first device, where the third data includes a third token packet and a third data packet; and the third token packet includes the first a receiving result of the operation instruction, a fifth information indicating that the first device receives the second operation instruction, and an address of the first device, where the third data packet includes the second operation instruction;
  • the first device After receiving the third data, the first device performs synchronization processing on the data content displayed on the first device according to the second operation instruction.
  • the data transmission method, device, and communication system provided by the embodiments of the present invention have the following beneficial effects: when the second device sends the first data to the first device, the instruction packet is added to the token packet of the first data.
  • a device returns information of the operation instruction; wherein the data packet of the first data includes data content.
  • the first device processes the data content, and returns the second data to the second device, where the token packet of the second data includes a receiving result of the data content, and the The data packet of the second data includes an operation instruction of the first device to the data content.
  • the data content is synchronously processed, and the third data is returned to the first device; wherein the token packet of the third data includes a receiving result of the operation instruction, and
  • the data packet of the third data includes an operation instruction of the second device to the data content. That is to say, when the data interaction is performed between the second device and the first device, after receiving the data content, the receiving party does not need to separately return the “received result of the data content” packets that do not contain the actual data content. Rather, when the receiver returns other data content, it also carries the last "received result of the data content” information, and returns it together, so that the packets without the actual data content will not occupy the transmission resources separately.
  • the transmission efficiency of the data content between the second device and the first device is improved. In particular, in the case that data needs to be transmitted multiple times between the second device and the first device, the embodiment of the present invention can greatly improve the transmission efficiency.
  • a user sends a video data to a display terminal (ie, a first device) through a mobile terminal, such as a mobile phone, a PC, or a tablet computer, for display.
  • a display terminal ie, a first device
  • a mobile terminal such as a mobile phone, a PC, or a tablet computer
  • the information and the address of the display end the first data packet includes video data
  • the first handshake packet is used to instruct the display end to feed back the reception result of the video data
  • the display end parses the video data from the first data packet to the video.
  • the data is displayed, and the operation instruction of the user playing the video or opening the next menu is received through the local touch frame; then, the display end returns to the mobile terminal the second data including the receiving result and the operation instruction for the video data, wherein
  • the second token packet of the second data includes a reception result of the video data, a third information for instructing the mobile terminal to receive the operation instruction, and an address of the mobile terminal, the second data packet includes an operation instruction, and the mobile terminal receives the second instruction
  • the video displayed locally is synchronized according to the operation instruction.
  • the application is in a multimedia teaching system, and the teacher end (ie, the second device) sends the teaching courseware to the student end (ie, the first device), and sequentially transmits the first token packet, the first data packet, and the first handshake packet.
  • the first token package includes first information for instructing the student end to receive the teaching courseware, second information for instructing the student terminal to return the operation instruction, and an address of the student end, the first data package including the teaching courseware, the The first handshake packet is used to instruct the student end to feedback the receiving result of the teaching courseware; the student side displays the teaching courseware after parsing the teaching courseware from the first data packet, and receives the student's problem with the teaching courseware through the local touch frame.
  • the first operation instruction of the annotation then, the student returns to the teacher end second data including the reception result of the teaching courseware and the first operation instruction, wherein the second token package of the second data includes the reception result of the teaching courseware
  • the second data packet includes a first operation instruction; after receiving the second data, the teacher end synchronizes the teaching courseware displayed locally according to the first operation instruction, and receives the teacher's instructional commentary for the courseware through the local touch frame.
  • the teacher Performing a second operation instruction for revising or replying to the annotation; then, the teacher returns to the student end third data including the acceptance result of the first operation instruction and the second operation instruction; after receiving the third data, the student terminal according to the second Operation instructions to synchronize the teaching courseware displayed locally.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Abstract

Disclosed in the present invention is a data transmission method. The method comprises the following steps: receiving first data sent by a second device, the first data comprising a first token packet, a first data packet and a first handshake packet, the first data packet comprising to-be-displayed data content; displaying the data content of the first data on a first device; receiving, by means of a touch frame of the first device, a first operation instruction of a first user for processing the data content; and returning second data to the second device, so that the second device can synchronously process the data content displayed on the second device according to the first operation instruction after the second device receives the second data. Embodiments of the present invention further provide a data transmission apparatus and a communication system. By means of the embodiments of the present invention, the efficiency of data transmission between two devices can be improved.

Description

一种数据传输方法、装置及通信系统Data transmission method, device and communication system 技术领域Technical field
本发明涉及多媒体通信技术领域,尤其涉及一种数据传输方法、装置及通信系统。The present invention relates to the field of multimedia communication technologies, and in particular, to a data transmission method, apparatus, and communication system.
背景技术Background technique
在多媒体设备中,通常需要通过显卡的输入输出接口来实现主机与从机之间的连接和通讯。对于显卡接口类型,主要包括VGA(Video Graphics Array,视频图像阵列)、DVI(Digital Visual Interface,数字视频接口)、HDMI(High Definition Multimedia Interface,高清晰度多媒体接口)、DP(DisplayPort,显示接口)这四种比较常见的接口。然而,并不是所有的设备都配置有VGA或DVI或HDMI或DP接口,且具有这些接口的设备之间也并不是都能互相兼容,比如苹果电脑,其VGA输出还需要一个转接头将mini VGA接口转换成常规VGA接口,因此,在实际应用中比较不方便。In multimedia devices, it is usually necessary to implement connection and communication between the master and the slave through the input/output interface of the graphics card. For the graphics card interface type, mainly including VGA (Video Graphics Array), DVI (Digital Visual Interface), HDMI (High Definition Multimedia Interface), DP (DisplayPort, display interface) These four more common interfaces. However, not all devices are equipped with VGA or DVI or HDMI or DP interfaces, and devices with these interfaces are not compatible with each other. For example, Apple computers require a VGA output to be a mini VGA. The interface is converted to a conventional VGA interface, so it is inconvenient in practical applications.
由于USB接口具有通用性,可以通过USB线连接任何主机和从机进行数据交互。当通过USB接口传输数据时,需要依次传送令牌包、数据包和握手包;其中,令牌包包括用于指示接收端接收数据的信息和接收端的地址,数据包包括待传输的数据内容,握手包用于指示接收端反馈数据的接收结果。例如,主机需要传输视频数据到从机时,需要依次传送第一令牌包、第一数据包和第一握手包;从机接收到三个包后,需要依次传送第二令牌包和第二数据包,从而向主机返回对视频数据的接收结果(包含在第二数据包中);此外,当从机对视频数据进行处理,需要将操作指令返回给主机,以使主机也对视频数据进行同步处理时,则从机需要另外再传送第三令牌包、第三数据包和第三握手包,从而向主机返回对视频数据的操作指令(包含在第三数据包中),主机接收从机返回的这些包后,同样也需要向从机传送第四令牌包和第四数据包,以此向从机 反馈对操作指令的接收结果。Due to the versatility of the USB interface, any host and slave can be connected via USB cable for data interaction. When transmitting data through the USB interface, the token packet, the data packet, and the handshake packet need to be transmitted in sequence; wherein the token packet includes information for indicating that the receiving end receives the data and an address of the receiving end, and the data packet includes the data content to be transmitted. The handshake packet is used to indicate the reception result of the feedback data at the receiving end. For example, when the host needs to transmit video data to the slave, it needs to transmit the first token packet, the first data packet, and the first handshake packet in sequence; after receiving the three packets, the slave device needs to sequentially transmit the second token packet and the first packet. Two data packets, thereby returning the reception result of the video data to the host (included in the second data packet); in addition, when the slave device processes the video data, it is necessary to return the operation instruction to the host, so that the host also works on the video data. When the synchronization process is performed, the slave device needs to additionally transmit the third token packet, the third data packet, and the third handshake packet, thereby returning an operation instruction for the video data to the host (included in the third data packet), and the host receives After the slave returns these packets, it is also necessary to transmit the fourth token packet and the fourth data packet to the slave to the slave. Feedback of the reception result of the operation instruction.
发明人在实施本发明的过程中,发现现有的通过USB接口传输数据的方法存在以下缺点:针对每一次数据交互过程,主机和从机之间都需要传送令牌包、数据包和握手包,以实现对数据内容的传输,之后接收方还需要再次传送令牌包和数据包,以反馈对数据内容的接收结果。当主机和从机之间需要进行多次数据交互时,多次传输“对数据内容的接收结果”这些没有实际数据内容的包会造成对传输资源的浪费,从而也降低了对数据内容的传输效率。In the process of implementing the present invention, the inventor has found that the existing method for transmitting data through the USB interface has the following disadvantages: for each data interaction process, a token packet, a data packet, and a handshake packet need to be transmitted between the host and the slave. In order to realize the transmission of the data content, the receiver also needs to transmit the token packet and the data packet again to feed back the reception result of the data content. When multiple data interactions need to be performed between the master and the slave, multiple transmissions of the "received result of the data content" packets without actual data content may cause waste of the transmission resources, thereby reducing the transmission of the data content. effectiveness.
发明内容Summary of the invention
针对上述现有技术存在的问题,本发明的目的在于提供一种数据传输方法、装置及通信系统,能够提高两个设备之间的数据传输效率。In view of the above problems in the prior art, an object of the present invention is to provide a data transmission method, apparatus, and communication system capable of improving data transmission efficiency between two devices.
本发明实施例提供一种数据传输方法,包括如下步骤:An embodiment of the present invention provides a data transmission method, including the following steps:
接收第二设备发送的第一数据;其中,所述第一数据包含第一令牌包、第一数据包和第一握手包;所述第一令牌包包含用于指示第一设备接收待显示的数据内容的第一信息、用于指示所述第一设备回传第一操作指令的第二信息和所述第一设备的地址,所述第一数据包包含所述数据内容,所述第一握手包用于指示所述第一设备反馈对所述数据内容的接收结果;Receiving, by the second device, the first data, where the first data includes a first token packet, a first data packet, and a first handshake packet, where the first token packet includes First information of the displayed data content, second information indicating that the first device returns a first operation instruction, and an address of the first device, the first data packet includes the data content, The first handshake packet is used to instruct the first device to feed back a result of receiving the data content;
在所述第一设备上对所述第一数据中的数据内容进行显示;Displaying data content in the first data on the first device;
通过所述第一设备的触摸框接收第一用户对所述数据内容进行处理的第一操作指令;Receiving, by the touch frame of the first device, a first operation instruction that the first user processes the data content;
向所述第二设备返回第二数据,以使所述第二设备接收到所述第二数据之后,能够根据所述第一操作指令,对所述第二设备上所显示的所述数据内容进行同步处理;其中,所述第二数据包含第二令牌包和第二数据包;所述第二令牌包包含对所述数据内容的接收结果、用于指示所述第二设备接收所述第一操作指令的第三信息和所述第二设备的地址,所述第二数据包包含所述第一操作指令。Returning, to the second device, the second data, after the second device receives the second data, the data content displayed on the second device according to the first operation instruction Performing a synchronization process; wherein the second data includes a second token packet and a second data packet; the second token packet includes a receiving result of the data content, and is used to indicate that the second device receives the The third information of the first operation instruction and the address of the second device, the second data packet includes the first operation instruction.
作为上述方案的改进,所述第二数据还包括第二握手包,所述第二握手包 用于指示所述第二设备反馈对所述第一操作指令的接收结果;As a modification of the foregoing solution, the second data further includes a second handshake packet, and the second handshake packet And configured to instruct the second device to feed back a receiving result of the first operation instruction;
则在向所述第二设备返回第二数据之后,还包括:After returning the second data to the second device, the method further includes:
接收所述第二设备发送的第三数据;其中,所述第三数据包含第三令牌包,所述第三令牌包包含对所述第一操作指令的接收结果和所述第一设备的地址。Receiving third data sent by the second device; wherein the third data includes a third token packet, the third token packet includes a receiving result of the first operation instruction, and the first device the address of.
作为上述方案的改进,所述第二数据还包含第二握手包,所述第二握手包用于指示所述第二设备反馈对所述第一操作指令的接收结果;且所述第二令牌包还包含用于指示所述第二设备回传第二操作指令的第四信息;As a modification of the foregoing solution, the second data further includes a second handshake packet, where the second handshake packet is used to instruct the second device to feed back a reception result of the first operation instruction; and the second command The card package further includes fourth information for instructing the second device to return a second operation instruction;
则在向所述第二设备返回第二数据之后,还包括:After returning the second data to the second device, the method further includes:
接收所述第二设备发送的第三数据;其中,所述第三数据包含第三令牌包和第三数据包;所述第三令牌包包含对所述第一操作指令的接收结果、用于指示所述第一设备接收所述第二操作指令的第五信息和所述第一设备的地址;所述第三数据包包含所述第二操作指令,所述第二操作指令是通过所述第二设备的触摸框接收第二用户对所述数据内容进行处理的指令;Receiving third data sent by the second device; wherein the third data includes a third token packet and a third data packet; the third token packet includes a receiving result of the first operation instruction, And fifth information indicating that the first device receives the second operation instruction and an address of the first device; the third data packet includes the second operation instruction, and the second operation instruction is The touch frame of the second device receives an instruction that the second user processes the data content;
根据所述第三数据中的第二操作指令,对所述第一设备上所显示的所述数据内容进行同步处理。And synchronizing the data content displayed on the first device according to a second operation instruction in the third data.
作为上述方案的改进,所述第一数据包还包括用于校验所述数据内容的真伪的校验码;As an improvement of the above solution, the first data packet further includes a check code for verifying the authenticity of the data content;
则在所述第一设备上对所述第一数据中的数据内容进行显示,具体包括:And displaying the data content in the first data on the first device, specifically:
从所述第一数据的第一数据包中解析出所述数据内容;Parsing the data content from the first data packet of the first data;
根据所述第一数据包中的校验码对所述数据内容进行校验;Performing verification on the data content according to the check code in the first data packet;
在校验通过后,确定对所述数据内容的接收结果为接收成功,并在所述第一设备上对所述数据内容进行显示。After the verification is passed, it is determined that the reception result of the data content is the reception success, and the data content is displayed on the first device.
作为上述方案的改进,所述数据内容包括音频数据、视频数据、图片和文字中的至少一项;As an improvement of the above solution, the data content includes at least one of audio data, video data, a picture, and a text;
所述操作指令包括对所述数据内容进行修订、打开下一级菜单、播放操作中的任一项。 The operation instruction includes any one of modifying the data content, opening a next-level menu, and playing an operation.
本发明实施例还提供一种数据传输装置,包括:The embodiment of the invention further provides a data transmission device, including:
第一接收单元,用于接收第二设备发送的第一数据;其中,所述第一数据包含第一令牌包、第一数据包和第一握手包;所述第一令牌包包含用于指示第一设备接收待显示的数据内容的第一信息、用于指示所述第一设备回传第一操作指令的第二信息和所述第一设备的地址,所述第一数据包包含所述数据内容,所述第一握手包用于指示所述第一设备反馈对所述数据内容的接收结果;a first receiving unit, configured to receive first data sent by the second device, where the first data includes a first token packet, a first data packet, and a first handshake packet; and the first token packet includes And the first information indicating that the first device receives the data content to be displayed, the second information used to instruct the first device to return the first operation instruction, and the address of the first device, where the first data packet includes The data content, the first handshake packet is used to instruct the first device to feed back a result of receiving the data content;
显示单元,用于对所述第一数据中的数据内容进行显示;a display unit, configured to display data content in the first data;
指令单元,用于通过本机的触摸框接收第一用户对所述数据内容进行处理的第一操作指令;An instruction unit, configured to receive, by using a touch frame of the local device, a first operation instruction that the first user processes the data content;
发送单元,用于向所述第二设备返回第二数据,以使所述第二设备接收到所述第二数据之后,能够根据所述第一操作指令,对所述第二设备上所显示的所述数据内容进行同步处理;其中,所述第二数据包含第二令牌包和第二数据包;所述第二令牌包包含对所述数据内容的接收结果、用于指示所述第二设备接收所述第一操作指令的第三信息和所述第二设备的地址,所述第二数据包包含所述第一操作指令。a sending unit, configured to return the second data to the second device, so that after the second device receives the second data, the second device can display the second device according to the first operation instruction. And synchronizing the data content; wherein the second data includes a second token packet and a second data packet; the second token packet includes a receiving result of the data content, and is used to indicate the The second device receives the third information of the first operation instruction and the address of the second device, and the second data packet includes the first operation instruction.
作为上述方案的改进,所述第二数据还包括第二握手包,所述第二握手包用于指示所述第二设备反馈对所述第一操作指令的接收结果;As a modification of the foregoing solution, the second data further includes a second handshake packet, where the second handshake packet is used to instruct the second device to feed back a reception result of the first operation instruction;
所述数据传输装置还包括:The data transmission device further includes:
第二接收单元,用于接收所述第二设备发送的第三数据;其中,所述第三数据包含第三令牌包,所述第三令牌包包含对所述第一操作指令的接收结果和所述第一设备的地址。a second receiving unit, configured to receive third data sent by the second device, where the third data includes a third token packet, where the third token packet includes receiving the first operation instruction The result and the address of the first device.
作为上述方案的改进,所述第二数据还包含第二握手包,所述第二握手包用于指示所述第二设备反馈对所述第一操作指令的接收结果;且所述第二令牌包还包含用于指示所述第二设备回传第二操作指令的第四信息;As a modification of the foregoing solution, the second data further includes a second handshake packet, where the second handshake packet is used to instruct the second device to feed back a reception result of the first operation instruction; and the second command The card package further includes fourth information for instructing the second device to return a second operation instruction;
所述数据传输装置还包括:The data transmission device further includes:
第二接收单元,用于接收所述第二设备发送的第三数据;其中,所述第三数据包含第三令牌包和第三数据包;所述第三令牌包包含对所述第一操作指令 的接收结果、用于指示所述第一设备接收所述第二操作指令的第五信息和所述第一设备的地址,所述第三数据包包含所述第二操作指令;所述第二操作指令是通过所述第二设备的触摸框接收第二用户对所述数据内容进行处理的指令;a second receiving unit, configured to receive third data sent by the second device, where the third data includes a third token packet and a third data packet, where the third token packet includes An operation instruction a receiving result, a fifth information indicating that the first device receives the second operation instruction, and an address of the first device, the third data packet includes the second operation instruction; the second The operation instruction is to receive, by using a touch frame of the second device, an instruction that the second user processes the data content;
处理单元,用于根据所述第三数据中的第二操作指令,对本机所显示的所述数据内容进行同步处理。And a processing unit, configured to perform synchronization processing on the data content displayed by the local device according to the second operation instruction in the third data.
作为上述方案的改进,所述第一数据包还包括用于校验所述数据内容的真伪的校验码;As an improvement of the above solution, the first data packet further includes a check code for verifying the authenticity of the data content;
所述显示单元具体包括:The display unit specifically includes:
解析子单元,用于从所述第一数据的第一数据包中解析出所述数据内容;a parsing subunit, configured to parse the data content from the first data packet of the first data;
校验子单元,用于根据所述第一数据包中的校验码对所述数据内容进行校验;a verification subunit, configured to verify the data content according to the check code in the first data packet;
执行子单元,用于在校验通过后,确定对所述数据内容的接收结果为接收成功,并对所述数据内容进行显示。The executing subunit is configured to determine, after the verification is passed, that the receiving result of the data content is successful, and display the data content.
本发明还提供一种通信系统,包括第一设备和第二设备;所述第一设备包括如上述的数据传输装置。The present invention also provides a communication system comprising a first device and a second device; the first device comprising a data transmission device as described above.
本发明实施例还提供另一种数据传输方法,包括如下步骤:An embodiment of the present invention further provides another data transmission method, including the following steps:
第二设备向第一设备发送第一数据;其中,所述第一数据包含第一令牌包、第一数据包和第一握手包;所述第一令牌包包含用于指示所述第一设备接收待显示的数据内容的第一信息、用于指示所述第一设备回传第一操作指令的第二信息和所述第一设备的地址,所述第一数据包包含所述数据内容,所述第一握手包用于指示所述第一设备反馈对所述数据内容的接收结果;Transmitting, by the second device, first data to the first device, where the first data includes a first token packet, a first data packet, and a first handshake packet, where the first token packet includes Receiving, by the device, first information of the data content to be displayed, second information for instructing the first device to return the first operation instruction, and an address of the first device, where the first data packet includes the data Content, the first handshake packet is used to instruct the first device to feed back a result of receiving the data content;
所述第一设备接收到所述第一数据之后,对所述数据内容进行显示;After the first device receives the first data, displaying the data content;
所述第一设备通过本机的触摸框接收第一用户对所述数据内容进行处理的第一操作指令;Receiving, by the first device, a first operation instruction that the first user processes the data content by using a touch frame of the local device;
所述第一设备向所述第二设备返回第二数据;其中,所述第二数据包含第二令牌包和第二数据包;所述第二令牌包包含对所述数据内容的接收结果、用于指示所述第二设备接收所述第一操作指令的第三信息和所述第二设备的地 址,所述第二数据包包含所述第一操作指令;The first device returns second data to the second device; wherein the second data includes a second token packet and a second data packet; the second token packet includes receiving the data content a third information indicating that the second device receives the first operation instruction and a ground of the second device Address, the second data packet includes the first operation instruction;
所述第二设备接收到所述第二数据之后,根据所述第一操作指令,对所述第二设备上所显示的所述数据内容进行同步处理。After receiving the second data, the second device performs synchronization processing on the data content displayed on the second device according to the first operation instruction.
作为上述方案的改进,所述第二数据还包含第二握手包,所述第二握手包用于指示所述第二设备反馈对所述第一操作指令的接收结果;As a modification of the foregoing solution, the second data further includes a second handshake packet, where the second handshake packet is used to instruct the second device to feed back a reception result of the first operation instruction;
则在对所述第二设备上所显示的所述数据内容进行同步处理之后,还包括:After the synchronization of the data content displayed on the second device, the method further includes:
所述第二设备向所述第一设备返回第三数据;其中,所述第三数据包含第三令牌包,所述第三令牌包包含对所述第一操作指令的接收结果和所述第一设备地址。Returning, by the second device, third data to the first device, where the third data includes a third token packet, where the third token packet includes a receiving result and a location of the first operation instruction The first device address.
作为上述方案的改进,所述第二数据还包含第二握手包,所述第二握手包用于指示所述第二设备反馈对所述第一操作指令的接收结果;且所述第二令牌包还包含用于指示所述第二设备回传第二操作指令的第四信息;As a modification of the foregoing solution, the second data further includes a second handshake packet, where the second handshake packet is used to instruct the second device to feed back a reception result of the first operation instruction; and the second command The card package further includes fourth information for instructing the second device to return a second operation instruction;
则在对所述第二设备上所显示的所述数据内容进行同步处理之后,还包括:After the synchronization of the data content displayed on the second device, the method further includes:
所述第二设备通过本机的触摸框接收第二用户对所述数据内容进行处理的第二操作指令;The second device receives, by the touch frame of the local device, a second operation instruction that the second user processes the data content;
所述第二设备向所述第一设备返回第三数据;其中,所述第三数据包含第三令牌包和第三数据包;所述第三令牌包包含对所述第一操作指令的接收结果、用于指示所述第一设备接收所述第二操作指令的第五信息和所述第一设备的地址,所述第三数据包包含所述第二操作指令;Returning, by the second device, third data to the first device, where the third data includes a third token packet and a third data packet; and the third token packet includes the first operation instruction a receiving result, a fifth information indicating that the first device receives the second operation instruction, and an address of the first device, where the third data packet includes the second operation instruction;
所述第一设备接收到所述第三数据之后,根据所述第二操作指令,对所述第一设备上所显示的所述数据内容进行同步处理。After receiving the third data, the first device performs synchronization processing on the data content displayed on the first device according to the second operation instruction.
作为上述方案的改进,所述第一数据包还包括用于校验所述数据内容的真伪的校验码;As an improvement of the above solution, the first data packet further includes a check code for verifying the authenticity of the data content;
则所述第一设备接收到所述第一数据之后,对所述数据内容进行显示,具体包括:After the first device receives the first data, displaying the data content, specifically:
所述第一设备接收到所述第一数据之后,从所述第一数据的第一数据包中解析出所述数据内容; After receiving the first data, the first device parses the data content from the first data packet of the first data;
所述第一设备根据所述第一数据包中的校验码对所述数据内容进行校验;The first device performs verification on the data content according to the check code in the first data packet;
所述第一设备在校验通过后,确定对所述数据内容的接收结果为接收成功,并对所述数据内容进行显示。After the verification is passed, the first device determines that the reception result of the data content is successful, and displays the data content.
本发明实施例提供的数据传输方法、装置及通信系统,具有如下有益效果:当第二设备向第一设备发送第一数据时,在所述第一数据的令牌包中添加用于指示第一设备回传操作指令的信息;其中,所述第一数据的数据包中包含有数据内容。当第一设备接收到第一数据之后,对数据内容进行处理,并向第二设备返回第二数据;其中,所述第二数据的令牌包中包含有对数据内容的接收结果,且所述第二数据的数据包中包含有第一设备对所述数据内容的操作指令。当第二设备接收到第二数据之后,对数据内容进行同步处理,并向第一设备返回第三数据;其中,所述第三数据的令牌包中包含有对操作指令的接收结果,且所述第三数据的数据包中包含有第二设备对所述数据内容的操作指令。也就是说,当第二设备和第一设备之间进行一次数据交互时,接收方接收到数据内容之后,不需要单独地返回“对数据内容的接收结果”这些没有实际数据内容的包,而是在接收方回传其他数据内容时,同时附带上一次的“对数据内容的接收结果”的信息,一起回传,从而使得这些没有实际数据内容的包不会单独地占用传输资源,提高了第二设备和第一设备之间的对数据内容的传输效率。尤其是对于第一设备和第二设备之间需要多次传输数据的情况,采用本发明实施例,可以大大提高传输效率。The data transmission method, device, and communication system provided by the embodiments of the present invention have the following beneficial effects: when the second device sends the first data to the first device, the instruction packet is added to the token packet of the first data. A device returns information of the operation instruction; wherein the data packet of the first data includes data content. After receiving the first data, the first device processes the data content, and returns the second data to the second device, where the token packet of the second data includes a receiving result of the data content, and the The data packet of the second data includes an operation instruction of the first device to the data content. After the second device receives the second data, the data content is synchronously processed, and the third data is returned to the first device; wherein the token packet of the third data includes a receiving result of the operation instruction, and The data packet of the third data includes an operation instruction of the second device to the data content. That is to say, when the data interaction is performed between the second device and the first device, after receiving the data content, the receiving party does not need to separately return the “received result of the data content” packets that have no actual data content, and When the receiver returns other data content, it also carries the information of the last "received result of the data content", and returns it together, so that the packets without the actual data content do not occupy the transmission resources separately, which is improved. The efficiency of transmission of data content between the second device and the first device. In particular, in the case that data needs to be transmitted multiple times between the first device and the second device, the embodiment of the present invention can greatly improve the transmission efficiency.
附图说明DRAWINGS
为了更清楚地说明本发明的技术方案,下面将对实施方式中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the present invention, the drawings used in the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention, which are common in the art. For the skilled person, other drawings can be obtained from these drawings without any creative work.
图1是本发明提供的数据传输方法的一个实施例的流程示意图。FIG. 1 is a schematic flow chart of an embodiment of a data transmission method provided by the present invention.
图2是本发明提供的数据传输装置的一个实施例的结构示意图。 2 is a schematic structural diagram of an embodiment of a data transmission device provided by the present invention.
图3是本发明提供的数据传输装置的显示单元的一个实施例的结构示意图。3 is a schematic structural diagram of an embodiment of a display unit of a data transmission device provided by the present invention.
图4是本发明实施例提供的数据传输系统的一个实施例的结构示意图。FIG. 4 is a schematic structural diagram of an embodiment of a data transmission system according to an embodiment of the present invention.
图5是本发明提供的数据传输方法的另一个实施例的流程示意图。FIG. 5 is a schematic flow chart of another embodiment of a data transmission method provided by the present invention.
图6是本发明提供的数据传输方法的又一个实施例的流程示意图。FIG. 6 is a schematic flow chart of still another embodiment of a data transmission method provided by the present invention.
图7是本发明提供的数据传输方法的又另一个实施例的流程示意图。FIG. 7 is a schematic flow chart of still another embodiment of a data transmission method provided by the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
请参阅图1,是本发明提供的数据传输方法的一个实施例的流程示意图。Please refer to FIG. 1 , which is a schematic flowchart diagram of an embodiment of a data transmission method provided by the present invention.
本发明提供一种数据传输方法,包括步骤S11至S14,具体如下:The present invention provides a data transmission method, including steps S11 to S14, as follows:
S11,接收第二设备发送的第一数据。S11. Receive first data sent by the second device.
其中,所述第一数据包含第一令牌包、第一数据包和第一握手包;所述第一令牌包包含用于指示第一设备接收待显示的数据内容的第一信息、用于指示所述第一设备回传第一操作指令的第二信息和所述第一设备的地址,所述第一数据包包含所述数据内容,所述第一握手包用于指示所述第一设备反馈对所述数据内容的接收结果。The first data includes a first token packet, a first data packet, and a first handshake packet. The first token packet includes first information for instructing the first device to receive data content to be displayed. Instructing the first device to return the second information of the first operation instruction and the address of the first device, the first data packet includes the data content, and the first handshake packet is used to indicate the first A device feeds back the result of receiving the data content.
优选的,所述数据内容包括音频数据、视频数据、图片和文字中的至少一项。此外,所述数据内容还可以是其他类型的数据,例如表格等。Preferably, the data content includes at least one of audio data, video data, a picture, and a text. In addition, the data content may also be other types of data, such as a table or the like.
S12,在第一设备上对所述第一数据中的数据内容进行显示。S12. Display data content in the first data on the first device.
具体实施时,所述第一数据包还可以包括用于校验所述数据内容的真伪的校验码,则所述在第一设备上对所述第一数据中的数据内容进行显示,具体包括:In a specific implementation, the first data packet may further include a check code for verifying the authenticity of the data content, where the data content in the first data is displayed on the first device, Specifically include:
首先,从所述第一数据的第一数据包中解析出所述数据内容。First, the data content is parsed from the first data packet of the first data.
然后,根据所述第一数据包中的校验码对所述数据内容进行校验。 Then, the data content is verified according to the check code in the first data packet.
最后,在校验通过后,确定对所述数据内容的接收结果为接收成功,并对所述数据内容进行显示。Finally, after the verification is passed, it is determined that the reception result of the data content is the reception success, and the data content is displayed.
在校验通过后,通过所述第一设备的显示器主芯片将读取到的所述数据内容传输到Flash中解码;再通过所述显示器主芯片读取解码后的数据,即可传送到所述第一设备的显示屏进行显示。After the verification is passed, the read data of the first device is transmitted to the Flash for decoding by the display main chip of the first device; and the decoded data is read by the display main chip, and then transmitted to the device. The display of the first device is displayed.
需要说明的是,如果所述数据内容的校验不通过,则向所述第二设备返回应答包,所述应答包包含对所述数据内容的接收结果为接收失败的信息和用于指示所述第二设备重新发送所述数据内容的信息;然后,对所述第二设备再发送的所述数据内容进行校验。如果多次校验不通过,重复上述步骤,直至对接收到的所述数据内容的校验结果为通过,这些设计方案均在本发明的保护范围之内,在此不再赘述。It should be noted that, if the verification of the data content does not pass, the response packet is returned to the second device, where the response packet includes information that the reception result of the data content is reception failure and is used to indicate the location. The second device resends the information of the data content; and then, the data content resent by the second device is verified. If the verification fails, the above steps are repeated until the verification result of the received data content is passed. These designs are all within the protection scope of the present invention and will not be further described herein.
S13,通过所述第一设备的触摸框接收第一用户对所述数据内容进行处理的第一操作指令。S13. Receive, by the touch frame of the first device, a first operation instruction that the first user processes the data content.
优选的,所述第一操作指令包括对所述数据内容进行修订、打开下一级菜单、播放操作中的任一项。此外,所述第一操作指令还可以是其他类型的指令,例如当所述数据内容为教学课件时,所述第一操作指令可以为对教学课件进行批注的指令。Preferably, the first operation instruction includes any one of modifying the data content, opening a next-level menu, and playing an operation. In addition, the first operation instruction may also be other types of instructions, for example, when the data content is a teaching courseware, the first operation instruction may be an instruction to annotate the teaching courseware.
S14,向所述第二设备返回第二数据,以使所述第二设备接收到所述第二数据之后,能够根据所述第一操作指令,对所述第二设备上所显示的所述数据内容进行同步处理。S14. Returning, to the second device, the second data, after the second device receives the second data, according to the first operation instruction, displaying the The data content is synchronized.
其中,所述第二数据包含第二令牌包和第二数据包;所述第二令牌包包含对所述数据内容的接收结果、用于指示所述第二设备接收所述第一操作指令的第三信息和所述第二设备的地址,所述第二数据包包含所述第一操作指令。The second data includes a second token packet and a second data packet, where the second token packet includes a result of receiving the data content, and is used to instruct the second device to receive the first operation. a third information of the instruction and an address of the second device, the second data packet including the first operation instruction.
在本发明的一个实施方式中,所述第二数据还包含第二握手包,所述第二握手包用于指示所述第二设备反馈对所述第一操作指令的接收结果;In an embodiment of the present invention, the second data further includes a second handshake packet, where the second handshake packet is used to instruct the second device to feed back a reception result of the first operation instruction;
则在向所述第二设备返回第二数据之后,还包括:After returning the second data to the second device, the method further includes:
接收所述第二设备发送的第三数据。 Receiving third data sent by the second device.
其中,所述第三数据包含第三令牌包,所述第三令牌包包含对所述第一操作指令的接收结果和所述第一设备的地址。The third data includes a third token packet, where the third token packet includes a receiving result of the first operation instruction and an address of the first device.
在本发明的另一个实施方式中,所述第二数据还包含第二握手包,所述第二握手包用于指示所述第二设备反馈对所述第一操作指令的接收结果;且所述第二令牌包还包含用于指示所述第二设备回传第二操作指令的第四信息;In another embodiment of the present invention, the second data further includes a second handshake packet, where the second handshake packet is used to instruct the second device to feed back a reception result of the first operation instruction; The second token packet further includes fourth information for instructing the second device to return a second operation instruction;
则在向所述第二设备返回第二数据之后,还包括:After returning the second data to the second device, the method further includes:
接收所述第二设备发送的第三数据。Receiving third data sent by the second device.
其中,所述第三数据包含第三令牌包和第三数据包;所述第三令牌包包含对所述第一操作指令的接收结果、用于指示所述第一设备接收所述第二操作指令的第五信息和所述第一设备的地址;所述第三数据包包含所述第二操作指令,所述第二操作指令是通过所述第二设备的触摸框接收第二用户对所述数据内容进行处理的指令。The third data includes a third token packet and a third data packet. The third token packet includes a receiving result of the first operation instruction, and is used to instruct the first device to receive the first a fifth information of the second operation instruction and an address of the first device; the third data package includes the second operation instruction, and the second operation instruction is to receive the second user by using a touch frame of the second device An instruction to process the data content.
根据所述第三数据中的第二操作指令,对所述第一设备上所显示的所述数据内容进行同步处理。And synchronizing the data content displayed on the first device according to a second operation instruction in the third data.
需要说明的是,上述实施例提供的数据传输方法,可由第一设备来执行,或者由配置在第一设备侧的一个装置来执行。It should be noted that the data transmission method provided by the foregoing embodiment may be performed by the first device or by a device configured on the first device side.
进一步的,本发明还提供一种数据传输装置,可执行上述实施例提供的数据传输方法的所有流程。Further, the present invention further provides a data transmission apparatus, which can perform all the processes of the data transmission method provided by the foregoing embodiments.
请参阅图2,是本发明提供的数据传输装置的一个实施例的结构示意图。Please refer to FIG. 2, which is a schematic structural diagram of an embodiment of a data transmission apparatus provided by the present invention.
本发明提供一种数据传输装置,包括第一接收单元21、显示单元22、指令单元23、发送单元24和发送单元25,具体如下:The present invention provides a data transmission apparatus, including a first receiving unit 21, a display unit 22, an instruction unit 23, a transmitting unit 24, and a transmitting unit 25, as follows:
第一接收单元21,用于接收第二设备发送的第一数据。The first receiving unit 21 is configured to receive the first data sent by the second device.
其中,所述第一数据包含第一令牌包、第一数据包和第一握手包;所述第一令牌包包含用于指示第一设备接收待显示的数据内容的第一信息、用于指示所述第一设备回传第一操作指令的第二信息和所述第一设备的地址,所述第一数据包包含所述数据内容,所述第一握手包用于指示所述第一设备反馈对所述 数据内容的接收结果。The first data includes a first token packet, a first data packet, and a first handshake packet. The first token packet includes first information for instructing the first device to receive data content to be displayed. Instructing the first device to return the second information of the first operation instruction and the address of the first device, the first data packet includes the data content, and the first handshake packet is used to indicate the first a device feedback to the The result of receiving the data content.
优选的,所述数据内容包括音频数据、视频数据、图片和文字中的至少一项。此外,所述数据内容还可以是其他类型的数据,例如表格等。Preferably, the data content includes at least one of audio data, video data, a picture, and a text. In addition, the data content may also be other types of data, such as a table or the like.
显示单元22,用于对所述第一数据中的数据内容进行显示。The display unit 22 is configured to display data content in the first data.
在本发明一个实施例中,所述第一数据包还包括用于校验所述数据内容的真伪的校验码;In an embodiment of the present invention, the first data packet further includes a check code for verifying the authenticity of the data content;
请一并参阅图3,是本发明提供的数据传输装置的显示单元的一个实施例的结构示意图。所述显示单元22包括解析子单元221、校验子单元222和执行子单元223,具体如下:Please refer to FIG. 3, which is a schematic structural diagram of an embodiment of a display unit of a data transmission device provided by the present invention. The display unit 22 includes a parsing subunit 221, a parsing subunit 222, and an executing subunit 223, as follows:
解析子单元221,用于从所述第一数据的第一数据包中解析出所述数据内容。The parsing subunit 221 is configured to parse the data content from the first data packet of the first data.
校验子单元222,用于根据所述第一数据包中的校验码对所述数据内容进行校验。The verification subunit 222 is configured to verify the data content according to the check code in the first data packet.
执行子单元223,用于在校验通过后,确定对所述数据内容的接收结果为接收成功,并对所述数据内容进行显示。The executing sub-unit 223 is configured to determine, after the verification is passed, that the receiving result of the data content is successful, and display the data content.
在本发明一个实施例中,具体为:在校验通过后,所述执行子单元223通过显示器主芯片将读取到的所述数据内容传输到Flash中解码;再通过所述显示器主芯片读取解码后的数据,传送到显示屏进行显示。In an embodiment of the present invention, specifically, after the verification is passed, the execution sub-unit 223 transmits the read data content to the Flash through the display main chip, and then decodes through the display main chip. The decoded data is taken and transmitted to the display for display.
需要说明的是,如果所述数据内容的校验不通过,则所述数据传输装置20向所述第二设备返回应答包,所述应答包包含对所述数据内容的接收结果为接收失败的信息和用于指示所述第二设备重新发送所述数据内容的信息;然后,所述校验子单元222对所述第二设备再发送的所述数据内容进行校验。如果多次校验不通过,重复上述步骤,直至对接收到的所述数据内容的校验结果为通过,这些设计方案均在本发明的保护范围之内,在此不再赘述。It should be noted that, if the verification of the data content does not pass, the data transmission device 20 returns a response packet to the second device, where the response packet includes receiving the data content as a failure to receive. Information and information for instructing the second device to resend the data content; then, the verification sub-unit 222 checks the data content resent by the second device. If the verification fails, the above steps are repeated until the verification result of the received data content is passed. These designs are all within the protection scope of the present invention and will not be further described herein.
指令单元23,用于通过本机的触摸框接收第一用户对所述数据内容进行处理的第一操作指令。The instruction unit 23 is configured to receive, by the touch frame of the local device, a first operation instruction that the first user processes the data content.
优选的,所述第一操作指令包括对所述数据内容进行修订、打开下一级菜 单、播放操作中的任一项。此外,所述第一操作指令还可以是其他类型的指令,例如当所述数据内容为教学课件时,所述第一操作指令可以为对教学课件进行批注的指令。Preferably, the first operation instruction comprises revising the data content and opening the next dish. Any of the single and playback operations. In addition, the first operation instruction may also be other types of instructions, for example, when the data content is a teaching courseware, the first operation instruction may be an instruction to annotate the teaching courseware.
发送单元24,用于向所述第二设备返回第二数据,以使所述第二设备接收到所述第二数据之后,能够根据所述第一操作指令,对所述第二设备上所显示的所述数据内容进行同步处理。The sending unit 24 is configured to return the second data to the second device, so that after the second device receives the second data, the second device can be configured according to the first operation instruction. The displayed data content is synchronized.
其中,所述第二数据包含第二令牌包和第二数据包;所述第二令牌包包含对所述数据内容的接收结果、用于指示所述第二设备接收所述第一操作指令的第三信息和所述第二设备的地址,所述第二数据包包含所述第一操作指令。The second data includes a second token packet and a second data packet, where the second token packet includes a result of receiving the data content, and is used to instruct the second device to receive the first operation. a third information of the instruction and an address of the second device, the second data packet including the first operation instruction.
在发明的一个实施方式中,所述第二数据还包含第二握手包,所述第二握手包用于指示所述第二设备反馈对所述第一操作指令的接收结果;In an embodiment of the invention, the second data further includes a second handshake packet, where the second handshake packet is used to instruct the second device to feed back a reception result of the first operation instruction;
则所述数据传输装置20还包括:第二接收单元25,用于接收所述第二设备发送的第三数据。The data transmission device 20 further includes: a second receiving unit 25, configured to receive third data sent by the second device.
其中,所述第三数据包含第三令牌包,所述第三令牌包包含对所述第一操作指令的接收结果和所述第一设备的地址。The third data includes a third token packet, where the third token packet includes a receiving result of the first operation instruction and an address of the first device.
在本发明的另一个实施方式中,所述第二数据还包含第二握手包,所述第二握手包用于指示所述第二设备反馈对所述第一操作指令的接收结果;且所述第二令牌包还包含用于指示所述第二设备回传第二操作指令的第四信息;In another embodiment of the present invention, the second data further includes a second handshake packet, where the second handshake packet is used to instruct the second device to feed back a reception result of the first operation instruction; The second token packet further includes fourth information for instructing the second device to return a second operation instruction;
则所述数据传输装置20还包括第二接收单元25和处理单元26,具体如下:The data transmission device 20 further includes a second receiving unit 25 and a processing unit 26, as follows:
第二接收单元25,用于接收所述第二设备发送的第三数据。The second receiving unit 25 is configured to receive third data sent by the second device.
其中,所述第三数据包含第三令牌包和第三数据包;所述第三令牌包包含对所述第一操作指令的接收结果、用于指示所述第一设备接收所述第二操作指令的第五信息和所述第一设备的地址;所述第三数据包包含所述第二操作指令,所述第二操作指令是通过所述第二设备的触摸框接收第二用户对所述数据内容进行处理的指令。The third data includes a third token packet and a third data packet. The third token packet includes a receiving result of the first operation instruction, and is used to instruct the first device to receive the first a fifth information of the second operation instruction and an address of the first device; the third data package includes the second operation instruction, and the second operation instruction is to receive the second user by using a touch frame of the second device An instruction to process the data content.
处理单元26,用于根据所述第三数据中的第二操作指令,对本机所显示的所述数据内容进行同步处理。 The processing unit 26 is configured to perform synchronization processing on the data content displayed by the local device according to the second operation instruction in the third data.
此外,本发明还提供一种通信系统。Furthermore, the present invention also provides a communication system.
请参阅图4,是本发明实施例提供的通信系统的一个实施例结构示意图,所述通信系统包括第一设备100和第二设备200。其中,所述第一设备100包括如上述的数据传输装置20。FIG. 4 is a schematic structural diagram of an embodiment of a communication system according to an embodiment of the present invention. The communication system includes a first device 100 and a second device 200. The first device 100 includes the data transmission device 20 as described above.
所述第二设备200可以为具有与所述第一设备100相同结构功能的设备,例如,手机、平板电脑、PC、投影仪,这些可根据实际的需要进行设置,本发明不做具体的限定。优选的,第一设备100和第二设备200之间通过USB传输线连接,且第一设备100和第二设备200之间传输的数据被封装成USB格式的数据之后,再进行传输。The second device 200 may be a device having the same structural function as the first device 100, for example, a mobile phone, a tablet computer, a PC, or a projector. These may be set according to actual needs, and the present invention is not specifically limited. . Preferably, the first device 100 and the second device 200 are connected by a USB transmission line, and data transmitted between the first device 100 and the second device 200 is encapsulated into data in a USB format, and then transmitted.
相应地,本发明还提供另一实施例的数据传输方法,能够应用于上述的通信系统中。请参阅图5,是本发明提供的数据传输方法的另一个实施例的流程示意图,包括步骤S51至S55,具体如下:Accordingly, the present invention also provides a data transmission method of another embodiment, which can be applied to the above communication system. FIG. 5 is a schematic flowchart of another embodiment of a data transmission method provided by the present invention, including steps S51 to S55, as follows:
S51,第二设备向第一设备发送第一数据;其中,所述第一数据包含第一令牌包、第一数据包和第一握手包;所述第一令牌包包含用于指示所述第一设备接收待显示的数据内容的第一信息、用于指示所述第一设备回传第一操作指令的第二信息和所述第一设备的地址,所述第一数据包包含所述数据内容,所述第一握手包用于指示所述第一设备反馈对所述数据内容的接收结果。S51. The second device sends the first data to the first device, where the first data includes a first token packet, a first data packet, and a first handshake packet, where the first token packet includes The first device receives the first information of the data content to be displayed, the second information used to instruct the first device to return the first operation instruction, and the address of the first device, where the first data packet includes The data content, the first handshake packet is used to instruct the first device to feed back a result of receiving the data content.
优选的,所述数据内容包括音频数据、视频数据、图片和文字中的至少一项。此外,所述数据内容还可以是其他类型的数据,例如表格等。Preferably, the data content includes at least one of audio data, video data, a picture, and a text. In addition, the data content may also be other types of data, such as a table or the like.
优选的,第二设备和第一设备通过USB接口进行数据传输,USB接口的数据传输可由硬件、固件和软件综合实现;其中,软件部分的应用程序是工作在设备上,以windows或其他操作系统为操作平台的上层程序,它从设备中读出或向其写入同步传输的实时数据。Preferably, the second device and the first device perform data transmission through a USB interface, and the data transmission of the USB interface can be implemented by hardware, firmware and software; wherein the software part of the application is working on the device, to windows or other operating system For the upper layer of the operating platform, it reads from or writes to the device real-time data that is transmitted synchronously.
所述数据内容的原始数据存储在所述第二设备的硬盘中,当所述第二设备需要传输所述数据内容到所述第一设备时,所述第二设备的CPU处理器调用硬盘中的所述数据内容的原始数据;然后,所述CPU处理器将所述数据内容的原 始数据传输到所述第二设备的显卡中解码;接着,所述应用程序从显卡中读取解码后的数据,重新编码成H.264格式数据以符合USB传输协议,并将编码后的所述数据内容和时间同步信号一起封装成所述第一数据包;其中,所述时间同步信号用于指示接收端识别每个数据帧对应信号的起止,以保证传输信号的完整性,还用于控制接收端的时钟同步,使其时钟与发送端的保持相同的频率,以保证传输信号的准确性;最后,所述应用程序将所述第一数据包传输给所述第二设备的USB接口。The original data of the data content is stored in a hard disk of the second device, and when the second device needs to transmit the data content to the first device, a CPU processor of the second device invokes a hard disk. Raw data of the data content; then, the CPU processor will original the data content Transmitting data to the graphics card of the second device for decoding; then, the application reads the decoded data from the graphics card, re-encodes the data into H.264 format to conform to the USB transmission protocol, and encodes the encoded The data content and the time synchronization signal are encapsulated into the first data packet; wherein the time synchronization signal is used to indicate that the receiving end identifies the start and end of the corresponding signal of each data frame to ensure the integrity of the transmitted signal, and is also used for The clock synchronization of the receiving end is controlled such that the clock maintains the same frequency as the transmitting end to ensure the accuracy of the transmitted signal. Finally, the application transmits the first data packet to the USB interface of the second device.
S52,所述第一设备接收到所述第一数据之后,对数据内容进行显示。S52. After receiving the first data, the first device displays the data content.
具体实施时,所述第一数据包还包括用于校验所述数据内容的真伪的校验码,则所述第一设备接收到所述第一数据之后,对所述数据内容进行显示,具体包括:In a specific implementation, the first data packet further includes a check code for verifying the authenticity of the data content, and after the first device receives the first data, displaying the data content. Specifically, including:
首先,所述第一设备接收到所述第一数据之后,从所述第一数据的第一数据包中解析出所述数据内容。First, after the first device receives the first data, the data content is parsed from the first data packet of the first data.
然后,所述第一设备根据所述第一数据包中的校验码对所述数据内容进行校验。Then, the first device checks the data content according to the check code in the first data packet.
最后,所述第一设备在校验通过后,确定对所述数据内容的接收结果为接收成功,并对所述数据内容进行显示。Finally, after the verification is passed, the first device determines that the reception result of the data content is successful, and displays the data content.
所述第一设备在校验通过后,所述第一设备的显示器主芯片将读取到的所述数据内容传输到Flash中解码,然后,所述显示器主芯片读取解码后的数据,即可传送到所述第一设备的显示屏进行显示。After the first device passes the verification, the display main chip of the first device transmits the read data content to the Flash for decoding, and then the display main chip reads the decoded data, that is, It can be transmitted to the display screen of the first device for display.
需要说明的是,如果所述数据内容的校验不通过,则所述第一设备向所述第二设备返回应答包,所述应答包包含对所述数据内容的接收结果为接收失败的信息和用于指示所述第二设备重新发送所述数据内容的信息,然后,所述第一设备对所述第二设备再发送的所述数据内容进行校验,如果多次校验不通过,重复上述步骤,直至所述第一设备对接收到的所述数据内容的校验结果为通过,这些设计方案均在本发明的保护范围之内,在此不再赘述。It should be noted that, if the verification of the data content does not pass, the first device returns a response packet to the second device, where the response packet includes information that the reception result of the data content is reception failure. And the information used to instruct the second device to resend the data content, and then the first device performs verification on the data content that is resent by the second device, and if the multiple verification fails, The above steps are repeated until the verification result of the received data content by the first device is passed, and the design solutions are all within the protection scope of the present invention, and details are not described herein again.
S53,所述第一设备通过本机的触摸框接收第一用户对所述数据内容进行处 理的第一操作指令。S53. The first device receives, by using a touch frame of the local device, the first user, where the data content is performed. The first operational instruction.
优选的,所述第一操作指令包括对所述数据内容进行修订、打开下一级菜单、播放操作中的任一项。此外,所述第一操作指令还可以是其他类型的指令,例如当所述数据内容为教学课件时,所述第一操作指令可以为对教学课件进行批注的指令。Preferably, the first operation instruction includes any one of modifying the data content, opening a next-level menu, and playing an operation. In addition, the first operation instruction may also be other types of instructions, for example, when the data content is a teaching courseware, the first operation instruction may be an instruction to annotate the teaching courseware.
S54,所述第一设备向所述第二设备返回第二数据.S54. The first device returns second data to the second device.
其中,所述第二数据包含第二令牌包和第二数据包;所述第二令牌包包含对所述数据内容的接收结果、用于指示所述第二设备接收所述第一操作指令的第三信息和所述第二设备的地址,所述第二数据包包含所述第一操作指令。The second data includes a second token packet and a second data packet, where the second token packet includes a result of receiving the data content, and is used to instruct the second device to receive the first operation. a third information of the instruction and an address of the second device, the second data packet including the first operation instruction.
S55,所述第二设备接收到所述第二数据之后,根据所述第一操作指令,对所述第二设备上所显示的所述数据内容进行同步处理。S55. After receiving the second data, the second device performs synchronization processing on the data content displayed on the second device according to the first operation instruction.
请一并参阅图6,在本发明的又一个实施例中,所述第二数据还包含第二握手包,所述第二握手包用于指示所述第二设备反馈对所述第一操作指令的接收结果;Referring to FIG. 6 , in another embodiment of the present invention, the second data further includes a second handshake packet, where the second handshake packet is used to indicate that the second device feeds back the first operation. The result of receiving the instruction;
则在对所述第二设备上所显示的所述数据内容进行同步处理之后,还包括步骤S66:After synchronizing the data content displayed on the second device, the method further includes step S66:
S66,所述第二设备向所述第一设备返回第三数据;其中,所述第三数据包含第三令牌包,所述第三令牌包包含对所述第一操作指令的接收结果和所述第一设备地址。S66. The second device returns third data to the first device, where the third data includes a third token packet, where the third token packet includes a receiving result of the first operation instruction. And the first device address.
请一并参阅图7,在本发明的又另一个实施例中,所述第二数据还包含第二握手包,所述第二握手包用于指示所述第二设备反馈对所述第一操作指令的接收结果;且所述第二令牌包还包含用于指示所述第二设备回传第二操作指令的第四信息;Referring to FIG. 7, in another embodiment of the present invention, the second data further includes a second handshake packet, where the second handshake packet is used to indicate that the second device feeds back to the first The receiving result of the operation instruction; and the second token packet further includes fourth information for instructing the second device to return the second operation instruction;
则在对所述第二设备上所显示的所述数据内容进行同步处理之后,还包括步骤S76、S77和S78:And after synchronizing the data content displayed on the second device, further comprising steps S76, S77, and S78:
S76,所述第二设备通过本机的触摸框接收第二用户对所述数据内容进行处理的第二操作指令; S76, the second device receives, by using a touch frame of the local device, a second operation instruction that the second user processes the data content;
S77,所述第二设备向所述第一设备返回第三数据;其中,所述第三数据包含第三令牌包和第三数据包;所述第三令牌包包含对所述第一操作指令的接收结果、用于指示所述第一设备接收所述第二操作指令的第五信息和所述第一设备的地址,所述第三数据包包含所述第二操作指令;S77. The second device returns third data to the first device, where the third data includes a third token packet and a third data packet; and the third token packet includes the first a receiving result of the operation instruction, a fifth information indicating that the first device receives the second operation instruction, and an address of the first device, where the third data packet includes the second operation instruction;
S78,所述第一设备接收到所述第三数据之后,根据所述第二操作指令,对所述第一设备上所显示的所述数据内容进行同步处理。S78. After receiving the third data, the first device performs synchronization processing on the data content displayed on the first device according to the second operation instruction.
本发明实施例提供的数据传输方法、装置及通信系统,具有如下有益效果:当第二设备向第一设备发送第一数据时,在所述第一数据的令牌包中添加用于指示第一设备回传操作指令的信息;其中,所述第一数据的数据包中包含有数据内容。当第一设备接收到第一数据之后,对数据内容进行处理,并向第二设备返回第二数据;其中,所述第二数据的令牌包中包含有对数据内容的接收结果,且所述第二数据的数据包中包含有第一设备对所述数据内容的操作指令。当第二设备接收到第二数据之后,对数据内容进行同步处理,并向第一设备返回第三数据;其中,所述第三数据的令牌包中包含有对操作指令的接收结果,且所述第三数据的数据包中包含有第二设备对所述数据内容的操作指令。也就是说,当第二设备和第一设备之间进行一次数据交互时,接收方接收到数据内容之后,不需要单独地返回“对数据内容的接收结果”这些不含实际数据内容的包,而是在接收方回传其他数据内容时,同时附带上一次的“对数据内容的接收结果”的信息,一起回传,从而使得这些不含实际数据内容的包不会单独地占用传输资源,提高了第二设备和第一设备之间的对数据内容的传输效率。尤其是对于第二设备和第一设备之间需要多次传输数据的情况,采用本发明实施例,可以大大提高传输效率。The data transmission method, device, and communication system provided by the embodiments of the present invention have the following beneficial effects: when the second device sends the first data to the first device, the instruction packet is added to the token packet of the first data. A device returns information of the operation instruction; wherein the data packet of the first data includes data content. After receiving the first data, the first device processes the data content, and returns the second data to the second device, where the token packet of the second data includes a receiving result of the data content, and the The data packet of the second data includes an operation instruction of the first device to the data content. After the second device receives the second data, the data content is synchronously processed, and the third data is returned to the first device; wherein the token packet of the third data includes a receiving result of the operation instruction, and The data packet of the third data includes an operation instruction of the second device to the data content. That is to say, when the data interaction is performed between the second device and the first device, after receiving the data content, the receiving party does not need to separately return the “received result of the data content” packets that do not contain the actual data content. Rather, when the receiver returns other data content, it also carries the last "received result of the data content" information, and returns it together, so that the packets without the actual data content will not occupy the transmission resources separately. The transmission efficiency of the data content between the second device and the first device is improved. In particular, in the case that data needs to be transmitted multiple times between the second device and the first device, the embodiment of the present invention can greatly improve the transmission efficiency.
下面以将本发明应用于电子会议系统和多媒体教学系统中为例,对本发明的两个应用场景进行举例说明。The following two application scenarios of the present invention are exemplified by taking the present invention into an electronic conference system and a multimedia teaching system as an example.
例如,在电子会议系统中,用户通过手机、PC、平板电脑等移动终端(即第二设备)向显示器端(即第一设备)发送一视频数据进行显示,需要依次传 输第一令牌包、第一数据包和第一握手包,其中,第一令牌包包含用于指示显示器端接收视频数据的第一信息、用于指示显示器端回传操作指令的第二信息和显示器端的地址,所述第一数据包包含视频数据,所述第一握手包用于指示显示器端反馈对视频数据的接收结果;显示器端从第一数据包中解析出视频数据后对视频数据进行显示,并通过本地的触摸框接收用户对视频进行播放或打开下一级菜单的操作指令;然后,显示器端向移动终端返回包含对视频数据的接收结果和操作指令的第二数据,其中,第二数据的第二令牌包包含对视频数据的接收结果、用于指示移动终端接收操作指令的第三信息和移动终端的地址,第二数据包包含操作指令;移动终端接收到第二数据后,根据操作指令,对本地所显示的视频进行同步处理。采用本发明实施例,可以大大提高移动终端和显示器端之间的数据传输效率For example, in an electronic conference system, a user sends a video data to a display terminal (ie, a first device) through a mobile terminal, such as a mobile phone, a PC, or a tablet computer, for display. Transducing the first token packet, the first data packet, and the first handshake packet, where the first token packet includes first information for instructing the display end to receive the video data, and second information for indicating the display end return operation instruction The information and the address of the display end, the first data packet includes video data, the first handshake packet is used to instruct the display end to feed back the reception result of the video data, and the display end parses the video data from the first data packet to the video. The data is displayed, and the operation instruction of the user playing the video or opening the next menu is received through the local touch frame; then, the display end returns to the mobile terminal the second data including the receiving result and the operation instruction for the video data, wherein The second token packet of the second data includes a reception result of the video data, a third information for instructing the mobile terminal to receive the operation instruction, and an address of the mobile terminal, the second data packet includes an operation instruction, and the mobile terminal receives the second instruction After the data, the video displayed locally is synchronized according to the operation instruction. By adopting the embodiment of the invention, the data transmission efficiency between the mobile terminal and the display end can be greatly improved
又例如,应用在多媒体教学系统中,教师端(即第二设备)向学生端(即第一设备)发送教学课件,通过依次传输第一令牌包、第一数据包和第一握手包,其中,第一令牌包包含用于指示学生端接收教学课件的第一信息、用于指示学生端回传操作指令的第二信息和学生端的地址,所述第一数据包包含教学课件,所述第一握手包用于指示学生端反馈对教学课件的接收结果;学生端从第一数据包中解析出教学课件后对教学课件进行显示,并通过本地的触摸框接收学生对教学课件进行问题批注的第一操作指令;然后,学生端向教师端返回包含对教学课件的接收结果和第一操作指令的第二数据,其中,第二数据的第二令牌包包含对教学课件的接收结果、用于指示教师端接收第一操作指令的第三信息、用于指示教师端回传第二操作指令的第四信息和教师端的地址,第二数据包包含第一操作指令;教师端接收到第二数据后,根据第一操作指令,对本地所显示的教学课件进行同步处理,并通过本地的触摸框接收教师针对问题批注对教学课件进行修订或回复批注的第二操作指令;接着,教师端向学生端返回包含对第一操作指令的接受结果和第二操作指令的第三数据;学生端接收到第三数据后,根据第二操作指令,对本地所显示的教学课件进行同步处理。采用本发明实施例,可以大大提高教师端和学生端之间的数据传输效率。 For another example, the application is in a multimedia teaching system, and the teacher end (ie, the second device) sends the teaching courseware to the student end (ie, the first device), and sequentially transmits the first token packet, the first data packet, and the first handshake packet. The first token package includes first information for instructing the student end to receive the teaching courseware, second information for instructing the student terminal to return the operation instruction, and an address of the student end, the first data package including the teaching courseware, the The first handshake packet is used to instruct the student end to feedback the receiving result of the teaching courseware; the student side displays the teaching courseware after parsing the teaching courseware from the first data packet, and receives the student's problem with the teaching courseware through the local touch frame. The first operation instruction of the annotation; then, the student returns to the teacher end second data including the reception result of the teaching courseware and the first operation instruction, wherein the second token package of the second data includes the reception result of the teaching courseware And the third information for instructing the teacher to receive the first operation instruction, the fourth information for instructing the teacher to return the second operation instruction, and the address of the teacher, The second data packet includes a first operation instruction; after receiving the second data, the teacher end synchronizes the teaching courseware displayed locally according to the first operation instruction, and receives the teacher's instructional commentary for the courseware through the local touch frame. Performing a second operation instruction for revising or replying to the annotation; then, the teacher returns to the student end third data including the acceptance result of the first operation instruction and the second operation instruction; after receiving the third data, the student terminal according to the second Operation instructions to synchronize the teaching courseware displayed locally. By adopting the embodiment of the invention, the data transmission efficiency between the teacher end and the student end can be greatly improved.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the foregoing embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本发明的保护范围。 The above is a preferred embodiment of the present invention, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. It is the scope of protection of the present invention.

Claims (14)

  1. 一种数据传输方法,其特征在于,包括如下步骤:A data transmission method, comprising the steps of:
    接收第二设备发送的第一数据;其中,所述第一数据包含第一令牌包、第一数据包和第一握手包;所述第一令牌包包含用于指示第一设备接收待显示的数据内容的第一信息、用于指示所述第一设备回传第一操作指令的第二信息和所述第一设备的地址,所述第一数据包包含所述数据内容,所述第一握手包用于指示所述第一设备反馈对所述数据内容的接收结果;Receiving, by the second device, the first data, where the first data includes a first token packet, a first data packet, and a first handshake packet, where the first token packet includes First information of the displayed data content, second information indicating that the first device returns a first operation instruction, and an address of the first device, the first data packet includes the data content, The first handshake packet is used to instruct the first device to feed back a result of receiving the data content;
    在所述第一设备上对所述第一数据中的数据内容进行显示;Displaying data content in the first data on the first device;
    通过所述第一设备的触摸框接收第一用户对所述数据内容进行处理的第一操作指令;Receiving, by the touch frame of the first device, a first operation instruction that the first user processes the data content;
    向所述第二设备返回第二数据,以使所述第二设备接收到所述第二数据之后,能够根据所述第一操作指令,对所述第二设备上所显示的所述数据内容进行同步处理;其中,所述第二数据包含第二令牌包和第二数据包;所述第二令牌包包含对所述数据内容的接收结果、用于指示所述第二设备接收所述第一操作指令的第三信息和所述第二设备的地址,所述第二数据包包含所述第一操作指令。Returning, to the second device, the second data, after the second device receives the second data, the data content displayed on the second device according to the first operation instruction Performing a synchronization process; wherein the second data includes a second token packet and a second data packet; the second token packet includes a receiving result of the data content, and is used to indicate that the second device receives the The third information of the first operation instruction and the address of the second device, the second data packet includes the first operation instruction.
  2. 如权利要求1所述的一种数据传输方法,其特征在于,所述第二数据还包括第二握手包,所述第二握手包用于指示所述第二设备反馈对所述第一操作指令的接收结果;The data transmission method according to claim 1, wherein the second data further comprises a second handshake packet, and the second handshake packet is used to indicate that the second device feeds back the first operation. The result of receiving the instruction;
    则在向所述第二设备返回第二数据之后,还包括:After returning the second data to the second device, the method further includes:
    接收所述第二设备发送的第三数据;其中,所述第三数据包含第三令牌包,所述第三令牌包包含对所述第一操作指令的接收结果和所述第一设备的地址。Receiving third data sent by the second device; wherein the third data includes a third token packet, the third token packet includes a receiving result of the first operation instruction, and the first device the address of.
  3. 如权利要求1所述的一种数据传输方法,其特征在于,所述第二数据还包含第二握手包,所述第二握手包用于指示所述第二设备反馈对所述第一操作指令的接收结果;且所述第二令牌包还包含用于指示所述第二设备回传第二操 作指令的第四信息;The data transmission method according to claim 1, wherein the second data further comprises a second handshake packet, and the second handshake packet is used to indicate that the second device feeds back the first operation. The receiving result of the instruction; and the second token packet further includes means for instructing the second device to return the second operation The fourth information of the instruction;
    则在向所述第二设备返回第二数据之后,还包括:After returning the second data to the second device, the method further includes:
    接收所述第二设备发送的第三数据;其中,所述第三数据包含第三令牌包和第三数据包;所述第三令牌包包含对所述第一操作指令的接收结果、用于指示所述第一设备接收所述第二操作指令的第五信息和所述第一设备的地址;所述第三数据包包含所述第二操作指令,所述第二操作指令是通过所述第二设备的触摸框接收第二用户对所述数据内容进行处理的指令;Receiving third data sent by the second device; wherein the third data includes a third token packet and a third data packet; the third token packet includes a receiving result of the first operation instruction, And fifth information indicating that the first device receives the second operation instruction and an address of the first device; the third data packet includes the second operation instruction, and the second operation instruction is The touch frame of the second device receives an instruction that the second user processes the data content;
    根据所述第三数据中的第二操作指令,对所述第一设备上所显示的所述数据内容进行同步处理。And synchronizing the data content displayed on the first device according to a second operation instruction in the third data.
  4. 如权利要求1至3任一项所述的一种数据传输方法,其特征在于,所述第一数据包还包括用于校验所述数据内容的真伪的校验码;The data transmission method according to any one of claims 1 to 3, wherein the first data packet further comprises a check code for verifying the authenticity of the data content;
    则在所述第一设备上对所述第一数据中的数据内容进行显示,具体包括:And displaying the data content in the first data on the first device, specifically:
    从所述第一数据的第一数据包中解析出所述数据内容;Parsing the data content from the first data packet of the first data;
    根据所述第一数据包中的校验码对所述数据内容进行校验;Performing verification on the data content according to the check code in the first data packet;
    在校验通过后,确定对所述数据内容的接收结果为接收成功,并在所述第一设备上对所述数据内容进行显示。After the verification is passed, it is determined that the reception result of the data content is the reception success, and the data content is displayed on the first device.
  5. 如权利要求4所述的一种数据传输方法,其特征在于,所述数据内容包括音频数据、视频数据、图片和文字中的至少一项;A data transmission method according to claim 4, wherein said data content comprises at least one of audio data, video data, pictures and text;
    所述操作指令包括对所述数据内容进行修订、打开下一级菜单、播放操作中的任一项。The operation instruction includes any one of modifying the data content, opening a next-level menu, and playing an operation.
  6. 一种数据传输装置,其特征在于,包括:A data transmission device, comprising:
    第一接收单元,用于接收第二设备发送的第一数据;其中,所述第一数据包含第一令牌包、第一数据包和第一握手包;所述第一令牌包包含用于指示第一设备接收待显示的数据内容的第一信息、用于指示所述第一设备回传第一操 作指令的第二信息和所述第一设备的地址,所述第一数据包包含所述数据内容,所述第一握手包用于指示所述第一设备反馈对所述数据内容的接收结果;a first receiving unit, configured to receive first data sent by the second device, where the first data includes a first token packet, a first data packet, and a first handshake packet; and the first token packet includes The first information indicating that the first device receives the data content to be displayed, and is used to instruct the first device to return the first operation The second information of the instruction and the address of the first device, the first data packet includes the data content, and the first handshake packet is used to instruct the first device to feed back a reception result of the data content ;
    显示单元,用于对所述第一数据中的数据内容进行显示;a display unit, configured to display data content in the first data;
    指令单元,用于通过本机的触摸框接收第一用户对所述数据内容进行处理的第一操作指令;An instruction unit, configured to receive, by using a touch frame of the local device, a first operation instruction that the first user processes the data content;
    发送单元,用于向所述第二设备返回第二数据,以使所述第二设备接收到所述第二数据之后,能够根据所述第一操作指令,对所述第二设备上所显示的所述数据内容进行同步处理;其中,所述第二数据包含第二令牌包和第二数据包;所述第二令牌包包含对所述数据内容的接收结果、用于指示所述第二设备接收所述第一操作指令的第三信息和所述第二设备的地址,所述第二数据包包含所述第一操作指令。a sending unit, configured to return the second data to the second device, so that after the second device receives the second data, the second device can display the second device according to the first operation instruction. And synchronizing the data content; wherein the second data includes a second token packet and a second data packet; the second token packet includes a receiving result of the data content, and is used to indicate the The second device receives the third information of the first operation instruction and the address of the second device, and the second data packet includes the first operation instruction.
  7. 如权利要求6所述的一种数据传输装置,其特征在于,所述第二数据还包括第二握手包,所述第二握手包用于指示所述第二设备反馈对所述第一操作指令的接收结果;The data transmission device of claim 6, wherein the second data further comprises a second handshake packet, the second handshake packet is used to indicate that the second device feeds back the first operation The result of receiving the instruction;
    所述数据传输装置还包括:The data transmission device further includes:
    第二接收单元,用于接收所述第二设备发送的第三数据;其中,所述第三数据包含第三令牌包,所述第三令牌包包含对所述第一操作指令的接收结果和所述第一设备的地址。a second receiving unit, configured to receive third data sent by the second device, where the third data includes a third token packet, where the third token packet includes receiving the first operation instruction The result and the address of the first device.
  8. 如权利要求6所述的一种数据传输装置,其特征在于,所述第二数据还包含第二握手包,所述第二握手包用于指示所述第二设备反馈对所述第一操作指令的接收结果;且所述第二令牌包还包含用于指示所述第二设备回传第二操作指令的第四信息;The data transmission device of claim 6, wherein the second data further comprises a second handshake packet, the second handshake packet is used to indicate that the second device feeds back the first operation The receiving result of the instruction; and the second token packet further includes fourth information for instructing the second device to return the second operation instruction;
    所述数据传输装置还包括:The data transmission device further includes:
    第二接收单元,用于接收所述第二设备发送的第三数据;其中,所述第三数据包含第三令牌包和第三数据包;所述第三令牌包包含对所述第一操作指令 的接收结果、用于指示所述第一设备接收所述第二操作指令的第五信息和所述第一设备的地址,所述第三数据包包含所述第二操作指令;所述第二操作指令是通过所述第二设备的触摸框接收第二用户对所述数据内容进行处理的指令;a second receiving unit, configured to receive third data sent by the second device, where the third data includes a third token packet and a third data packet, where the third token packet includes An operation instruction a receiving result, a fifth information indicating that the first device receives the second operation instruction, and an address of the first device, the third data packet includes the second operation instruction; the second The operation instruction is to receive, by using a touch frame of the second device, an instruction that the second user processes the data content;
    处理单元,用于根据所述第三数据中的第二操作指令,对本机所显示的所述数据内容进行同步处理。And a processing unit, configured to perform synchronization processing on the data content displayed by the local device according to the second operation instruction in the third data.
  9. 如权利要求6至8任一项所述的一种数据传输装置,其特征在于,所述第一数据包还包括用于校验所述数据内容的真伪的校验码;A data transmission apparatus according to any one of claims 6 to 8, wherein said first data packet further comprises a check code for verifying the authenticity of said data content;
    所述显示单元具体包括:The display unit specifically includes:
    解析子单元,用于从所述第一数据的第一数据包中解析出所述数据内容;a parsing subunit, configured to parse the data content from the first data packet of the first data;
    校验子单元,用于根据所述第一数据包中的校验码对所述数据内容进行校验;a verification subunit, configured to verify the data content according to the check code in the first data packet;
    执行子单元,用于在校验通过后,确定对所述数据内容的接收结果为接收成功,并对所述数据内容进行显示。The executing subunit is configured to determine, after the verification is passed, that the receiving result of the data content is successful, and display the data content.
  10. 一种数据传输方法,其特征在于,包括如下步骤:A data transmission method, comprising the steps of:
    第二设备向第一设备发送第一数据;其中,所述第一数据包含第一令牌包、第一数据包和第一握手包;所述第一令牌包包含用于指示所述第一设备接收待显示的数据内容的第一信息、用于指示所述第一设备回传第一操作指令的第二信息和所述第一设备的地址,所述第一数据包包含所述数据内容,所述第一握手包用于指示所述第一设备反馈对所述数据内容的接收结果;Transmitting, by the second device, first data to the first device, where the first data includes a first token packet, a first data packet, and a first handshake packet, where the first token packet includes Receiving, by the device, first information of the data content to be displayed, second information for instructing the first device to return the first operation instruction, and an address of the first device, where the first data packet includes the data Content, the first handshake packet is used to instruct the first device to feed back a result of receiving the data content;
    所述第一设备接收到所述第一数据之后,对所述数据内容进行显示;After the first device receives the first data, displaying the data content;
    所述第一设备通过本机的触摸框接收第一用户对所述数据内容进行处理的第一操作指令;Receiving, by the first device, a first operation instruction that the first user processes the data content by using a touch frame of the local device;
    所述第一设备向所述第二设备返回第二数据;其中,所述第二数据包含第二令牌包和第二数据包;所述第二令牌包包含对所述数据内容的接收结果、用于指示所述第二设备接收所述第一操作指令的第三信息和所述第二设备的地 址,所述第二数据包包含所述第一操作指令;The first device returns second data to the second device; wherein the second data includes a second token packet and a second data packet; the second token packet includes receiving the data content a third information indicating that the second device receives the first operation instruction and a ground of the second device Address, the second data packet includes the first operation instruction;
    所述第二设备接收到所述第二数据之后,根据所述第一操作指令,对所述第二设备上所显示的所述数据内容进行同步处理。After receiving the second data, the second device performs synchronization processing on the data content displayed on the second device according to the first operation instruction.
  11. 如权利要求10所述的一种数据传输方法,其特征在于,所述第二数据还包含第二握手包,所述第二握手包用于指示所述第二设备反馈对所述第一操作指令的接收结果;The data transmission method of claim 10, wherein the second data further comprises a second handshake packet, the second handshake packet is used to indicate that the second device feeds back the first operation The result of receiving the instruction;
    则在对所述第二设备上所显示的所述数据内容进行同步处理之后,还包括:After the synchronization of the data content displayed on the second device, the method further includes:
    所述第二设备向所述第一设备返回第三数据;其中,所述第三数据包含第三令牌包,所述第三令牌包包含对所述第一操作指令的接收结果和所述第一设备地址。Returning, by the second device, third data to the first device, where the third data includes a third token packet, where the third token packet includes a receiving result and a location of the first operation instruction The first device address.
  12. 如权利要求10所述的一种数据传输方法,其特征在于,所述第二数据还包含第二握手包,所述第二握手包用于指示所述第二设备反馈对所述第一操作指令的接收结果;且所述第二令牌包还包含用于指示所述第二设备回传第二操作指令的第四信息;The data transmission method of claim 10, wherein the second data further comprises a second handshake packet, the second handshake packet is used to indicate that the second device feeds back the first operation The receiving result of the instruction; and the second token packet further includes fourth information for instructing the second device to return the second operation instruction;
    则在对所述第二设备上所显示的所述数据内容进行同步处理之后,还包括:After the synchronization of the data content displayed on the second device, the method further includes:
    所述第二设备通过本机的触摸框接收第二用户对所述数据内容进行处理的第二操作指令;The second device receives, by the touch frame of the local device, a second operation instruction that the second user processes the data content;
    所述第二设备向所述第一设备返回第三数据;其中,所述第三数据包含第三令牌包和第三数据包;所述第三令牌包包含对所述第一操作指令的接收结果、用于指示所述第一设备接收所述第二操作指令的第五信息和所述第一设备的地址,所述第三数据包包含所述第二操作指令;Returning, by the second device, third data to the first device, where the third data includes a third token packet and a third data packet; and the third token packet includes the first operation instruction a receiving result, a fifth information indicating that the first device receives the second operation instruction, and an address of the first device, where the third data packet includes the second operation instruction;
    所述第一设备接收到所述第三数据之后,根据所述第二操作指令,对所述第一设备上所显示的所述数据内容进行同步处理。After receiving the third data, the first device performs synchronization processing on the data content displayed on the first device according to the second operation instruction.
  13. 如权利要求10至12任一项所述的一种数据传输方法,其特征在于, 所述第一数据包还包括用于校验所述数据内容的真伪的校验码;A data transmission method according to any one of claims 10 to 12, characterized in that The first data packet further includes a check code for verifying the authenticity of the data content;
    则所述第一设备接收到所述第一数据之后,对所述数据内容进行显示,具体包括:After the first device receives the first data, displaying the data content, specifically:
    所述第一设备接收到所述第一数据之后,从所述第一数据的第一数据包中解析出所述数据内容;After receiving the first data, the first device parses the data content from the first data packet of the first data;
    所述第一设备根据所述第一数据包中的校验码对所述数据内容进行校验;The first device performs verification on the data content according to the check code in the first data packet;
    所述第一设备在校验通过后,确定对所述数据内容的接收结果为接收成功,并对所述数据内容进行显示。After the verification is passed, the first device determines that the reception result of the data content is successful, and displays the data content.
  14. 一种通信系统,其特征在于,包括第一设备和第二设备;所述第一设备包括如权利要求6至9任一项所述的数据传输装置。 A communication system, comprising: a first device and a second device; the first device comprising the data transmission device according to any one of claims 6 to 9.
PCT/CN2016/093653 2015-11-03 2016-08-05 Data transmission method and apparatus, and communication system WO2017076091A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510744786.2 2015-11-03
CN201510744786.2A CN105376063B (en) 2015-11-03 2015-11-03 A kind of data transmission method, device and communication system

Publications (1)

Publication Number Publication Date
WO2017076091A1 true WO2017076091A1 (en) 2017-05-11

Family

ID=55377894

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/093653 WO2017076091A1 (en) 2015-11-03 2016-08-05 Data transmission method and apparatus, and communication system

Country Status (2)

Country Link
CN (1) CN105376063B (en)
WO (1) WO2017076091A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105376063B (en) * 2015-11-03 2018-09-18 广州视睿电子科技有限公司 A kind of data transmission method, device and communication system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090172224A1 (en) * 2007-12-28 2009-07-02 Suh Bum-Soo Data transmitter and data receiver
CN101968932A (en) * 2010-09-19 2011-02-09 深圳市摩拓触摸科技有限公司 Intelligent interactive multimedia teaching system and implementation method thereof
CN102209080A (en) * 2010-03-30 2011-10-05 刘盛举 Terminal system for synchronous teaching or conferences and control method thereof
CN104200710A (en) * 2014-05-30 2014-12-10 杭州华银教育多媒体科技股份有限公司 Novel wireless multimedia interactive teaching system and fault treatment method
CN105376063A (en) * 2015-11-03 2016-03-02 广州视睿电子科技有限公司 Data transmission method, data transmission device and communication system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104580977B (en) * 2015-02-05 2017-10-17 京东方科技集团股份有限公司 A kind of data mapped mode transmission and recognition methods and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090172224A1 (en) * 2007-12-28 2009-07-02 Suh Bum-Soo Data transmitter and data receiver
CN102209080A (en) * 2010-03-30 2011-10-05 刘盛举 Terminal system for synchronous teaching or conferences and control method thereof
CN101968932A (en) * 2010-09-19 2011-02-09 深圳市摩拓触摸科技有限公司 Intelligent interactive multimedia teaching system and implementation method thereof
CN104200710A (en) * 2014-05-30 2014-12-10 杭州华银教育多媒体科技股份有限公司 Novel wireless multimedia interactive teaching system and fault treatment method
CN105376063A (en) * 2015-11-03 2016-03-02 广州视睿电子科技有限公司 Data transmission method, data transmission device and communication system

Also Published As

Publication number Publication date
CN105376063A (en) 2016-03-02
CN105376063B (en) 2018-09-18

Similar Documents

Publication Publication Date Title
KR102362054B1 (en) Display apparatus consisting a multi display system and control method thereof
US20110013772A1 (en) Method and Apparatus for Fast Switching Between Source Multimedia Devices
CN103339595A (en) Data exchange between wireless source of graphical object and sink device
US9996893B2 (en) Display apparatus constituting multi display system and control method thereof
KR102251701B1 (en) Display apparatus consisting a multi display system and control method thereof
WO2017143663A1 (en) Electronic exchange system and configuration method therefor
JP7303812B2 (en) Method and system for making functional devices available to meeting participants
TW201441931A (en) Method and apparatus for sending multiple images in instant communication application
WO2018000637A1 (en) Information transmission method, video playing device and video display device
US20180027308A1 (en) Method and device for combining videos
WO2016202239A1 (en) Display method and device for computer desktop
CN109525559B (en) Picture sharing method and system
US9558718B2 (en) Streaming video data in the graphics domain
TW202002664A (en) Video processing method and device thereof
JPWO2015133249A1 (en) Transmitting apparatus, transmitting method, receiving apparatus, and receiving method
US9872062B1 (en) Enforcing synchronization by embedding audio within video frame data
CN103606367A (en) Signal cascade transmission method and signal cascade device
WO2017076091A1 (en) Data transmission method and apparatus, and communication system
EP4202912A1 (en) Image processing method and apparatus for virtual reality device, and virtual reality device
CN113132671A (en) Video conference system
US11281422B2 (en) Video data display method and device
US20190028522A1 (en) Transmission of subtitle data for wireless display
WO2023116090A1 (en) Method and apparatus for synchronously playing video, and storage medium and electronic device
US20240040373A1 (en) Data transmission method, device, conference system, wireless screen transmitter and storage medium
TWI825918B (en) Display control method and related display control apparatus and display device

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16861360

Country of ref document: EP

Kind code of ref document: A1