Disclosure of Invention
The invention mainly aims to provide a method, a device and a system for determining a data transmission format, and aims to solve the technical problem of how to determine the data transmission format commonly supported by a sending end device, a receiving end device and an HDMI in the prior art.
In order to achieve the above object, the present invention provides a method for determining a data transmission format, which is applied to a sending end device, and the method for determining a data transmission format includes the following steps:
acquiring a local format form, and receiving an initial format form sent by receiving end equipment;
determining a target format form according to the local format form and the initial format form;
determining a target test data set according to the target format form;
sending the test data in the target test data set to the receiving end equipment through the HDMI in sequence;
and receiving a judgment result fed back by the receiving end, and determining a target data transmission format between the receiving end equipment and the receiving end equipment according to the judgment result.
Preferably, the determining a target test data set according to the target format form includes:
extracting a data transmission format in the target format form;
and searching test data corresponding to the data transmission format in a preset mapping table, and adding the searched test data to a target test data set, wherein the preset mapping table comprises the corresponding relation between the data transmission format and the test data.
Preferably, before the test data in the target test data set is sequentially sent to the sink device through the HDMI, the data transmission format determining method further includes:
acquiring a resolution value of the test data in the target test data set;
sequencing the test data according to the resolution value, and obtaining a sequencing result;
correspondingly, the step of sending the test data in the target test data set to the receiving end device sequentially through the HDMI specifically includes:
and sending the test data in the target test data set to the receiving end equipment through the HDMI in sequence according to the sequencing result.
Preferably, the sending the test data in the target test data set to the receiving end device sequentially through the HDMI according to the sorting result includes:
extracting the test data in the target test data set according to the sorting result to obtain current test data extracted each time;
and sending the current test data to the receiving end equipment through the HDMI.
Preferably, the receiving the judgment result fed back by the receiving end and determining the target data transmission format between the receiving end device and the target data transmission device according to the judgment result includes:
receiving a judgment result fed back by the receiving end, and searching a data transmission format corresponding to the current test data in the preset mapping relation table when the judgment result is that loss does not occur;
and taking the data transmission format corresponding to the current test data as a target data transmission format.
In addition, in order to achieve the above object, the present invention further provides a data transmission format determining method, which is applied to a receiving end device, and the data transmission format determining method includes the following steps:
acquiring an initial format form and sending the initial format form to the sending end equipment;
receiving test data sent by the sending end equipment through the HDMI, and judging the loss of the test data to obtain a judgment result;
and sending the judgment result to the sending terminal equipment.
Preferably, the obtaining the initial format form and sending the initial format form to the sending end device includes:
acquiring extended display identification EDID data, and determining an initial format form according to the EDID data;
and sending the initial format form to the sending terminal equipment.
In order to achieve the above object, the present invention also provides a transmission apparatus including: the system comprises an information acquisition module, a target format form determination module, a target test data set determination module, a sending module and a data transmission format determination module;
the information acquisition module is used for acquiring a local format form and receiving an initial format form sent by receiving end equipment;
the target format form determining module is used for determining a target format form according to the local format form and the initial format form;
the target test data set determining module is used for determining a target test data set according to the target format form;
the sending module is used for sending the test data in the target test data set to the receiving end equipment through the HDMI in sequence;
and the data transmission format determining module is used for receiving the judgment result fed back by the receiving end, receiving the judgment result fed back by the receiving end and determining the target data transmission format between the data transmission format determining module and the receiving end equipment according to the judgment result.
In addition, to achieve the above object, the present invention further provides a receiving apparatus, including: the device comprises a starting format form acquisition module, a loss judgment module and a judgment result sending module;
the initial format form obtaining module is used for obtaining an initial format form and sending the initial format form to the sending end equipment;
the loss judgment module is used for receiving the test data sent by the sending end equipment through the HDMI, and judging the loss of the test data to obtain a judgment result;
and the judging result sending module is used for sending the judging result to the sending end equipment.
In addition, to achieve the above object, the present invention further provides a data transmission format determining system, including: a sending end device and a receiving end device;
the receiving end equipment is used for acquiring an initial format form and sending the initial format form to the sending end equipment;
the sending end equipment is used for acquiring a local format form and receiving an initial format form sent by the receiving end equipment; determining a target format form according to the local format form and the initial format form; determining a target test data set according to the target format form; and sending the test data in the target test data set to the receiving end equipment through the HDMI in sequence.
The receiving end equipment is used for receiving the test data sent by the sending end equipment through the HDMI, performing loss judgment on the test data to obtain a judgment result, and sending the judgment result to the sending end equipment;
the sending end equipment is used for receiving the test data sent by the sending end equipment through the HDMI, and performing loss judgment on the test data to obtain a judgment result; and sending the judgment result to the sending terminal equipment.
In the invention, a local format form is obtained, an initial format form sent by receiving end equipment is received, a target format form is determined according to the local format form and the initial format form, a target test data set is determined according to the target format form, the test data in the target test data set is sent to the receiving end equipment through HDMI in sequence, a judgment result fed back by the receiving end is received, and a target data transmission format between the receiving end equipment and the receiving end equipment is determined according to the judgment result. Ensuring that the user views the best results and improving the user experience.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating a data transmission format determining method according to a first embodiment of the present invention.
In a first embodiment, the data transmission format determining method is applied to a sending end device, and the data transmission format determining method includes the following steps:
step S10: and acquiring the local format form, and receiving the initial format form sent by the receiving end equipment.
It should be understood that the execution subject of the present embodiment is a sending-end device, wherein the sending-end device may be a sending-end device having a communication function and a display function, and specifically may be an electronic device such as a personal computer, a home DVD, or a home game machine.
It should be noted that the data transmission format determining device may directly read the local format form from the storage area, and receive the initial format form sent by the receiving end device, where the local format form may be a data transmission format set supported by the data transmission format determining device, and the initial format form may be a data transmission format set supported by the receiving end device.
Step S20: and determining a target format form according to the local format form and the initial format form.
It can be understood that the data transmission format determining device may compare the data transmission format in the local format form with the data transmission format in the initial format form to obtain the data transmission format common to both, and use the data transmission format common to both as the target format form.
Step S30: and determining a target test data set according to the target format form.
It should be noted that a plurality of data transmission formats are stored in the target format form, the test data corresponding to each data transmission format can be searched in the preset mapping relationship table, and the searched test data is added to the target test data set, and the preset mapping relationship table can be a corresponding relationship between the data transmission format and the test data obtained by a manufacturer according to an experimental test.
Step S40: and sending the test data in the target test data set to the receiving end equipment through the HDMI in sequence.
It should be understood that the data transmission format determining device may sequence the test data in the target test data set from large to small according to the resolution value or the data transmission rate, and sequentially transmit the sequence to the receiving end device according to the sequence result, the receiving end device compares the received test data with the original test data stored in the receiving end device, if the sequence is the same, it indicates that the test data is not lost in the transmission process, and sets the register value of the receiving end device to 1, and if the sequence is not the same, it indicates that the test data is lost in the transmission process, and sets the register value of the receiving end device to 0, and transmits the register value to the data transmission format determining device.
Step S50: and receiving a judgment result fed back by the receiving end, and determining a target data transmission format between the receiving end equipment and the receiving end equipment according to the judgment result.
It should be noted that the data transmission format determining device may obtain the register value of the receiving end device through the bus, and if the register value is 1, the data transmission format corresponding to the current test data in the preset mapping relationship table is used as the target data transmission format.
In the first embodiment, a local format form is obtained, an initial format form sent by a receiving end device is received, a target format form is determined according to the local format form and the initial format form, a target test data set is determined according to the target format form, test data in the target test data set is sent to the receiving end device sequentially through an HDMI, a judgment result fed back by the receiving end is received, and a target data transmission format between the receiving end device and the receiving end device is determined according to the judgment result, in the embodiment, the format form supported by the sending end device and the receiving end device together is obtained, and then the HDMI transmission test is carried out on the data transmission format in the format form, so that a user can save a complex setting link when using the HDMI device, automatically and quickly realize connection and display, and ensure that the user can watch the best effect, and improves the user experience.
Referring to fig. 2, fig. 2 is a flowchart illustrating a data transmission format determining method according to a second embodiment of the present invention, and the data transmission format determining method according to the second embodiment of the present invention is proposed based on the first embodiment shown in fig. 1.
In the second embodiment, the step S30 includes:
step S301: and extracting the data transmission format in the target format form.
It can be understood that the target format form stores data transmission formats commonly supported by the sending end device and the receiving end device, the number of the commonly supported data transmission formats may be several, and at this time, the data transmission formats need to be extracted.
Step S302: and searching test data corresponding to the data transmission format in a preset mapping table, and adding the searched test data to a target test data set, wherein the preset mapping table comprises the corresponding relation between the data transmission format and the test data.
It should be noted that, before searching, a corresponding relationship between the data transmission format and the test data may be established, and a preset mapping table may be established according to the corresponding relationship.
In the second embodiment, before the step S40, the method further includes:
step S401: and acquiring the resolution value of the test data in the target test data set.
It should be noted that a corresponding relationship between the test data in the target test data set and the resolution value may be established, and the resolution value of the test data in the target test data set may be obtained according to the corresponding relationship.
Step S402: and sequencing the test data according to the resolution value, and obtaining a sequencing result.
It should be appreciated that test data may be sorted from large to small according to resolution values, and that a large to small sort may be obtained.
Accordingly, the step S40 may be refined to a step S40':
step S40': and sending the test data in the target test data set to the receiving end equipment through the HDMI in sequence according to the sequencing result.
It should be noted that the data transmission format determining device may sequence the test data in the target test data set from large to small according to the resolution value or the data transmission rate, and sequentially transmit the sequence to the receiving end device according to the sequencing result, the receiving end device compares the received test data with the original test data stored in the receiving end device, if the sequence is the same, it indicates that the test data is not lost in the transmission process, and sets the register value of the receiving end device to 1, and if the sequence is not the same, it indicates that the test data is lost in the transmission process, and sets the register value of the receiving end device to 0, and transmits the register value to the data transmission format determining device.
Further, the step S40 includes:
extracting the test data in the target test data set according to the sorting result to obtain current test data obtained by each extraction;
and sending the current test data to the receiving end equipment through the HDMI.
It should be noted that the test data in the target test data set is extracted according to the sorting result with the largest resolution value.
In the second embodiment, the step S50 includes:
step S501: and receiving a judgment result fed back by the receiving end, and searching a data transmission format corresponding to the current test data in the preset mapping relation table when the judgment result is that the loss does not occur.
It should be noted that, if the register value is 1, the data transmission format corresponding to the current test data in the preset mapping relation table is taken as the target data transmission format, and if the register value is 0, the next test data is tested according to the resolution value.
Step S502: and taking the data transmission format corresponding to the current test data as a target data transmission format.
In the second embodiment, a local format form is obtained, an initial format form sent by a receiving end device is received, a target format form is determined according to the local format form and the initial format form, a data transmission format in the target format form is extracted, test data corresponding to the data transmission format is searched in a preset mapping table, the searched test data is added to a target test data set, the preset mapping relation table comprises a corresponding relation between the data transmission format and the test data, a resolution value of the test data in the target test data set is obtained, the test data is sequenced according to the resolution value, a sequencing result is obtained, the test data in the target test data set is sent to the receiving end device according to the sequencing result in sequence through an HDMI, and a judgment result fed back by the receiving end device is received, when the judgment result shows that the loss does not occur, searching a data transmission format corresponding to the current test data in the preset mapping relation table, taking the data transmission format corresponding to the current test data as a target data transmission format, and sending the current test data to the receiving end equipment through the HDMI; in this embodiment, the test data are sorted according to the resolution value of the test data, and the test data are sequentially tested according to the sorting result, so that the highest HDMI format that can be supported by the sending end device, the receiving end device, and the HDMI can be quickly and effectively determined.
Referring to fig. 3, fig. 3 is a flowchart illustrating a data transmission format determining method according to a third embodiment of the present invention.
In a third embodiment, the data transmission format determining method is applied to a receiving end device, and includes the following steps:
step S10': and acquiring an initial format form and sending the initial format form to the sending terminal equipment.
It can be understood that the execution subject of the embodiment is a receiving device, wherein the receiving device may be a receiving device having a communication function and a display function, and specifically may be an electronic device such as a personal computer, a home DVD, or a home game console.
It should be understood that the sink device may read an initial format form of the sink device by reading Extended Display Identification Data (EDID) of the sink device, where the initial format form may be a set of Data transmission formats supported by the sink device.
Step S20': and receiving test data sent by the sending end equipment through the HDMI, and judging the loss of the test data to obtain a judgment result.
It should be understood that the receiving end device may compare the received test data with the original test data stored in the receiving end device, if the received test data is the same as the original test data, it indicates that the test data is not lost in the transmission process, and set the register value of the receiving end device to 1, and if the received test data is not the same as the original test data, it indicates that the test data is lost in the transmission process, and set the register value of the receiving end device to 0, and send the register value to the sending end device.
Step S30': and sending the judgment result to the sending terminal equipment.
It is to be understood that the receiving device may send the register values to the sending device.
Further, the step S10' includes:
acquiring extended display identification EDID data, and determining an initial format form according to the EDID data;
and sending the initial format form to the sending terminal equipment.
Note that the EDID data may include: vendor information, maximum image size, color settings, vendor presets, limits on frequency range, display name, string of serial numbers, and initial format forms, etc.
It should be understood that the initial format form may be extracted directly from the EDID data.
In a third embodiment, an initial format form is obtained, the initial format form is sent to the sending end device, test data sent by the sending end device through the HDMI is received, loss judgment is performed on the test data, a judgment result is obtained, and the judgment result is sent to the sending end device; in this embodiment, whether the test data is lost is determined by the receiving end device, so that the highest HDMI format that can be supported by the sending end device, the receiving end device, and the HDMI can be quickly and effectively determined.
In addition, referring to fig. 4, an embodiment of the present invention further provides a transmitting apparatus, where the transmitting apparatus includes: the system comprises an information acquisition module 10, a target format form determination module 20, a target test data set determination module 30, a sending module 40 and a data transmission format determination module 50;
the information obtaining module 10 is configured to obtain a local format form, and receive an initial format form sent by a receiving end device.
It should be noted that the Data transport format determining device may directly read the local format form from the storage area, and may read an initial format form of the receiving end device by reading Extended Display Identification Data (EDID) of the receiving end device, where the local format form may be a Data transport format set supported by the Data transport format determining device, and the initial format form may be a Data transport format set supported by the receiving end device.
The target format form determination module 20 is configured to determine a target format form according to the local format form and the initial format form.
It can be understood that the data transmission format determining device may compare the data transmission format in the local format form with the data transmission format in the initial format form to obtain the data transmission format common to both, and use the data transmission format common to both as the target format form.
The target test data set determining module 30 is configured to determine a target test data set according to the target format form.
It should be noted that a plurality of data transmission formats are stored in the target format form, the test data corresponding to each data transmission format can be searched in the preset mapping relationship table, and the searched test data is added to the target test data set, and the preset mapping relationship table can be a corresponding relationship between the data transmission format and the test data obtained by a manufacturer according to an experimental test.
The sending module 40 is configured to send the test data in the target test data set to the receiving end device sequentially through the HDMI.
It should be understood that the data transmission format determining device may sequence the test data in the target test data set from large to small according to the resolution value or the data transmission rate, and sequentially transmit the sequence to the receiving end device according to the sequence result, the receiving end device compares the received test data with the original test data stored in the receiving end device, if the sequence is the same, it indicates that the test data is not lost in the transmission process, and sets the register value of the receiving end device to 1, and if the sequence is not the same, it indicates that the test data is lost in the transmission process, and sets the register value of the receiving end device to 0, and transmits the register value to the data transmission format determining device.
The data transmission format determining module 50 is configured to receive a judgment result fed back by a receiving end, receive a judgment result fed back by the receiving end, and determine a target data transmission format between the receiving end and the receiving end device according to the judgment result.
It should be noted that the data transmission format determining device may obtain the register value of the receiving end device through the bus, and if the register value is 1, the data transmission format corresponding to the current test data in the preset mapping relationship table is used as the target data transmission format.
In this embodiment, a local format form is obtained, an initial format form sent by a receiving end device is received, a target format form is determined according to the local format form and the initial format form, a target test data set is determined according to the target format form, test data in the target test data set is sent to the receiving end device sequentially through HDMI, a judgment result fed back by the receiving end is received, and a target data transmission format between the receiving end device and the receiving end device is determined according to the judgment result, in this embodiment, the format form is supported by the sending end device and the receiving end device together, and then HDMI transmission test is performed on the data transmission format in the format form, so that a user can omit a complicated setting link when using the HDMI device, and connection and display can be automatically and rapidly realized, ensuring that the user views the best results and improving the user experience.
In an embodiment, the target test data set determining module is further configured to extract a data transmission format in the target format form, search a preset mapping table for test data corresponding to the data transmission format, and add the searched test data to the target test data set, where the preset mapping table includes a corresponding relationship between the data transmission format and the test data;
in an embodiment, the data transmission format determining apparatus further includes: a sorting module;
the sorting module is used for acquiring a resolution value of the test data in the target test data set, sorting the test data according to the resolution value and acquiring a sorting result;
in an embodiment, the sending module is further configured to extract the test data in the target test data set according to the sorting result, obtain current test data obtained by each extraction, and send the current test data to the receiving end device through an HDMI;
in an embodiment, the data transmission format determining module is further configured to, when the determination result indicates that the loss does not occur, look up a data transmission format corresponding to the current test data in the preset mapping relationship table, and use the data transmission format corresponding to the current test data as a target data transmission format.
Other embodiments or specific implementation manners of the sending device apparatus according to the present invention may refer to the above method embodiments, and are not described herein again.
In addition, referring to fig. 5, an embodiment of the present invention further provides a receiving apparatus, where the receiving apparatus includes: an initial format form obtaining module 10', a loss judging module 20' and a judging result sending module 30 ';
the initial format form obtaining module 10' is configured to obtain an initial format form, and send the initial format form to the sending end device.
It can be understood that the execution subject of the embodiment is a receiving device, wherein the receiving device may be a receiving device having a communication function and a display function, and specifically may be an electronic device such as a personal computer, a home DVD, or a home game console.
It should be understood that the sink device may read an initial format form of the sink device by reading Extended Display Identification Data (EDID) of the sink device, where the initial format form may be a set of Data transmission formats supported by the sink device.
The loss judgment module 20' is configured to receive test data sent by the sending-end device through the HDMI, and perform loss judgment on the test data to obtain a judgment result.
It should be understood that the receiving end device may compare the received test data with the original test data stored in the receiving end device, if the received test data is the same as the original test data, it indicates that the test data is not lost in the transmission process, and set the register value of the receiving end device to 1, and if the received test data is not the same as the original test data, it indicates that the test data is lost in the transmission process, and set the register value of the receiving end device to 0, and send the register value to the sending end device.
The judgment result sending module 30' is configured to send the judgment result to the sending end device.
It is to be understood that the receiving device may send the register values to the sending device.
In this embodiment, an initial format form is obtained, the initial format form is sent to the sending end device, test data sent by the sending end device through the HDMI is received, loss judgment is performed on the test data, a judgment result is obtained, and the judgment result is sent to the sending end device; in this embodiment, whether the test data is lost is determined by the receiving end device, so that the highest HDMI format that can be supported by the sending end device, the receiving end device, and the HDMI can be quickly and effectively determined.
In an embodiment, the initial format form obtaining module is further configured to obtain extended display identification EDID data, determine an initial format form according to the EDID data, and send the initial format form to the sending end device.
Other embodiments or specific implementation manners of the receiving apparatus according to the present invention may refer to the above method embodiments, and are not described herein again.
Referring to fig. 6, an embodiment of the present invention further provides a data transmission format determining system, where the system includes: a sender device 10 "and a receiver device 20"; wherein,
the receiving end device 20 ″ is configured to obtain an initial format form, and send the initial format form to the sending end device;
the sending end device 10 ″ is configured to obtain a local format form, and receive an initial format form sent by a receiving end device; determining a target format form according to the local format form and the initial format form; determining a target test data set according to the target format form; sending the test data in the target test data set to the receiving end equipment through the HDMI in sequence;
the receiving end device 20 ″ is configured to receive test data sent by the sending end device through the HDMI, perform loss judgment on the test data, obtain a judgment result, and send the judgment result to the sending end device;
the sending end device 10 ″ is configured to receive test data sent by the sending end device through the HDMI, and perform loss judgment on the test data to obtain a judgment result; and sending the judgment result to the sending terminal equipment.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order, but rather the words first, second, third, etc. are to be interpreted as names.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be substantially implemented or a part contributing to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g., a Read Only Memory (ROM)/Random Access Memory (RAM), a magnetic disk, an optical disk), and includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.