A method for realizing CEC signal transmission and interface converter

By detecting the HDMI signal and converting it into an event signal, encoded and parallel-serial conversion, the problem of CEC signal transmission complexity is solved, the simplicity, effective transmission of the CEC signal and network integrity are achieved, and the Hardware complexity and cost.

CN117596368BActive Publication Date: 2024-11-15GOWIN SEMICON CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311356927.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-18
Publication Date
2024-11-15
Estimated Expiration
2043-10-18

AI Technical Summary

Technical Problem

The prior art is difficult to directly transmit low-speed consumer electronic control (CEC) signals through photoelectric conversion combined with optical fiber, and the introduction of active cables increases complexity and cost, and the logical address is not uniform, resulting in complex interaction processes.

Method used

By detecting the HDMI signal, converting the CEC signal into an event signal, encode and parallel conversion, transmitting through an active cable, and decoding and serial conversion at the receiving end, ensuring the integrity and unified address of the CEC signal, realizing direct transmission .

Benefits of technology

The transmission process of CEC signals is simplified, the hardware complexity and cost are reduced, the integrity of the CEC network and the unity of logical addresses are ensured, and the interaction process is simple and effective.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117596368B_ABST
    Figure CN117596368B_ABST
Patent Text Reader

Abstract

The present application discloses a method and an interface converter for realizing CEC signal transmission. The CEC device is connected to the interface converter via an HDMI interface. After the interface converter collects the CEC signal and converts the CEC signal into an event signal according to the CEC timing, the integrity of the CEC network is ensured to be undivided, so that the logical address is unified, and the address information and data information do not need to be operated separately. The CEC signal is directly transmitted through an active cable, and the interaction process becomes simple, thus realizing the transmission of the CEC signal in a truly simple and effective way. Moreover, if the interface converter is realized by, for example, an FPGA, the hardware complexity is reduced and the cost is saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to but is not limited to signal transmission technology, and in particular to a method and an interface converter for implementing CEC signal transmission. Background Art

[0002] In order to support the long-distance transmission of High Definition Multimedia Interface (HDMI) signals, photoelectric conversion combined with optical fiber is usually used to transmit HDMI high-speed signals. However, the Consumer Electronics Control (CEC) signal transmitted through the HDMI connection is a low-speed signal, that is, the CEC signal cannot be directly transmitted through the photoelectric conversion combined with optical fiber. The CEC signal is transmitted using an HDMI cable. The CEC protocol is a single copper wire broadcast transmission protocol, which allows multiple CEC devices to be connected based on a single copper wire to form a CEC network. In the same CEC network, each CEC device has its own unique address and adopts the strategy of whoever initiates first occupies the bus. Other CEC devices that have not seized the bus can monitor the data on the bus and perform corresponding processing when the target address in the monitored data matches its own address or is a broadcast address, otherwise the monitored data is discarded.

[0003] If an active cable such as optical fiber is introduced between CEC devices in a CEC network, the CEC signal cannot be transmitted directly because it is a low-speed signal. If a relay is added at both ends of the active cable, on the one hand, the cost will increase, and on the other hand, the CEC devices at both ends will be divided into different CEC networks, the logical addresses will not be unified, and the address information and data information will need to be operated separately, and they cannot communicate directly. The interaction process becomes complicated, which increases the complexity. Therefore, how to simply and effectively transmit CEC signals has become a technical problem that needs to be solved urgently. Summary of the invention

[0004] The present application provides a method for implementing CEC signal transmission and an interface converter, which can simply and effectively transmit CEC signals.

[0005] The embodiment of the present invention provides a method for implementing CEC signal transmission, wherein a consumer electronics control CEC device serves as a CEC signal sending end; the method comprises:

[0006] Detecting that the CEC device starts to send information according to a high-definition multimedia interface HDMI signal, converting the CEC signal into a first event signal;

[0007] encoding the obtained first event signal;

[0008] Performing parallel-to-serial conversion on the encoded first event signal and transmitting the signal through an active cable;

[0009] The feedback signal received through the active cable is serial-to-parallel converted and decoded to obtain a second event signal, and the second event signal is converted into a CEC signal and fed back to the CEC device.

[0010] In an exemplary embodiment, the detecting that the CEC device starts to send information includes:

[0011] According to the timing of the Start signal in the CEC signal, it is determined that the CEC signal line is pulled low, and it is detected that the CEC device starts to send information.

[0012] In an exemplary embodiment, converting the CEC signal into the first event signal includes:

[0013] The rising edge and falling edge change information of the CEC signal line is collected, and the collected information is converted into the first event signal.

[0014] In an exemplary embodiment, the obtained first event signal is encoded according to a preset encoding rule.

[0015] In an exemplary embodiment, the active cable is an active cable, and the serial signal obtained after the parallel-to-serial conversion is transmitted through the active cable;

[0016] Alternatively, the active cable is an active optical cable, and the serial signal obtained after the parallel-to-serial conversion is converted into an optical signal and then transmitted through the active optical cable.

[0017] The embodiment of the present application also provides a method for implementing CEC signal transmission, where a CEC device serves as a CEC signal receiving end; the method comprises:

[0018] Receiving a signal through an active cable, performing serial-to-parallel conversion and decoding on the received signal to obtain a first event signal;

[0019] Converting the decoded first event signal into a CEC signal and outputting the signal to the CEC device;

[0020] Collecting CEC signals and converting the collected CEC signals into second event signals;

[0021] The obtained second event signal is encoded, and the encoded second event signal is converted from parallel to serial and then transmitted through the active cable.

[0022] In an exemplary embodiment, the step of performing serial-to-parallel conversion and decoding on the received signal to obtain the first event signal includes:

[0023] The active cable is an active electrical cable, which performs serial-to-parallel conversion on the received signal; or, the active cable is an active optical cable, which converts the received optical signal into an electrical signal and performs serial-to-parallel conversion on the converted electrical signal;

[0024] The parallel signal obtained after the serial-to-parallel conversion is decoded according to a preset decoding rule to restore the first event signal.

[0025] In an exemplary embodiment, converting the decoded first event signal into a CEC signal and outputting the signal to the CEC device includes:

[0026] The decoded first event signal is restored to the rising edge and falling edge changes of the CEC signal line, and output to the CEC device.

[0027] An embodiment of the present application further provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute any of the above methods for implementing CEC signal transmission.

[0028] An embodiment of the present application further provides a device for implementing CEC signal transmission, including a memory and a processor, wherein the memory stores the following instructions executable by the processor: used to execute the steps of any of the above-mentioned methods for implementing CEC signal transmission.

[0029] The embodiment of the present application further provides an interface converter, comprising: a bidirectional controller, a CEC signal acquisition module, a CEC signal restoration module, a master control state machine, an encoding module, a decoding module, a parallel-to-serial conversion module and a serial-to-parallel conversion module; wherein,

[0030] A bidirectional controller is used to connect to a CEC device through an HDMI interface to control the input / output direction of a CEC signal, receive an IO control signal from a master state machine, and control the current CEC signal to be a CEC input signal or a CEC output signal according to the received IO control signal;

[0031] A CEC signal acquisition module, used to sample the CEC input signal, convert the collected information into a first event signal and transmit it to the main control state machine;

[0032] A CEC signal restoration module is used to restore the second event signal from the master control state machine to a CEC signal and then output it to the CEC device via the bidirectional controller;

[0033] The master control state machine is used to respond to the interface converter of the master control state machine itself as a receiving end or a sending end according to the state of the CEC signal line and the received decoding information, and send an IO control signal to the bidirectional controller to control the current CEC signal to be a CEC input signal or a CEC output signal; output the first event signal from the CEC signal acquisition module to the encoding module, and feed back the second event signal from the decoding module to the CEC signal restoration module;

[0034] An encoding module, used for encoding the received first event signal, and outputting the encoded first event signal to the parallel-to-serial conversion module;

[0035] A decoding module, used for decoding the data from the serial-to-parallel conversion module to obtain a second event signal; and transmitting the decoded second event signal to the main control state machine;

[0036] A parallel-to-serial conversion module, used to convert the encoded parallel data into serial data and then output it through an active cable;

[0037] The serial-to-parallel conversion module is used to receive serial data from the active cable, convert it into parallel data, and then output it to the decoding module.

[0038] In an exemplary embodiment, the CEC signal acquisition module is used to:

[0039] The CEC input signal is sampled to obtain rising edge and falling edge change information on the signal line, and according to the CEC signal timing, the collected information is converted into the first event signal and transmitted to the main control state machine.

[0040] In an exemplary embodiment, the CEC signal restoration module is used to:

[0041] According to the CEC signal timing, the second event signal from the master control state machine is restored to the rising edge and falling edge change information on the CEC signal line, and then output to the CEC device through the bidirectional controller.

[0042] In one exemplary embodiment, the active cable is an active electrical cable.

[0043] In an exemplary embodiment, the active cable is an active optical cable; the interface converter further includes an optoelectronic converter, which is used to:

[0044] The serial signal from the parallel-to-serial conversion module is converted into an optical signal and then outputted through the active optical cable; and the optical signal from the active optical cable is converted into a serial signal and then transmitted to the serial-to-parallel conversion module.

[0045] In an exemplary embodiment, the interface converter is implemented based on a field programmable gate array (FPGA).

[0046] Through the method for realizing CEC signal transmission provided by the embodiment of the present application, the CEC device is connected to the interface converter through the HDMI interface. After the interface converter collects the CEC signal and converts the CEC signal into an event signal according to the CEC timing, the integrity of the CEC network is ensured to be undivided, so that the logical address is unified, the address information and the data information do not need to be operated separately, the CEC signal is directly transmitted through the active cable, the interaction process becomes simple, and the transmission of the CEC signal is truly simple and effective. Moreover, if the interface converter is implemented by, for example, FPGA, the hardware complexity is reduced and the cost is saved.

[0047] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] The accompanying drawings are used to provide further understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.

[0049] Figure 1 This is a schematic diagram of the timing of the start bit of the CEC protocol;

[0050] Figure 2 This is a schematic diagram of the first timing sequence of the CEC protocol data bit;

[0051] Figure 3 This is a schematic diagram of the second timing sequence of CEC protocol data bits;

[0052] Figure 4 This is a schematic diagram of the third timing sequence of CEC protocol data bits;

[0053] Figure 5 A flowchart of a method for implementing CEC signal transmission in an embodiment of the present application;

[0054] Figure 6 A flowchart of another method for implementing CEC signal transmission in an embodiment of the present application;

[0055] Figure 7 It is a schematic diagram of the structure of the interface converter in the embodiment of the present application;

[0056] Figure 8 A schematic diagram of the structure of the architecture for implementing CEC signal transmission between two CEC devices in an embodiment of the present application;

[0057] Fig. 9 Schematic diagram of the state control flow of the interface converter in the embodiment of the present application. DETAILED DESCRIPTION

[0058] In order to make the purpose, technical solution and advantages of the present application more clear, the embodiments of the present application will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other arbitrarily without conflict.

[0059] In order to facilitate understanding of the present application, the present application will be described more fully below with reference to the relevant drawings. Embodiments of the present application are provided in the drawings. However, the present application can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present application more thorough and comprehensive.

[0060] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.

[0061] It is understood that the terms "first" and "second" used in this application are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0062] It can be understood that the “connection” in the following embodiments should be understood as “electrical connection”, “communication connection”, etc. if the connected circuits, modules, units, etc. have electrical signals or data transmission between each other.

[0063] When used herein, the singular forms "a", "an", and "said / the" may also include plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "include / comprise" or "have" and the like specify the presence of stated features, wholes, steps, operations, components, parts, or combinations thereof, but do not exclude the possibility of the presence or addition of one or more other features, wholes, steps, operations, components, parts, or combinations thereof. At the same time, the term "and / or" used in this specification includes any and all combinations of the relevant listed items.

[0064] The CEC signal uses different durations of high and low levels to represent data 0 or data 1, as well as the start mark. The CEC protocol timing is as follows: Figure 1 , Figure 2 , Figure 3 and Figure 4 As shown, each bit starts with the line being pulled low (falling edge), held for a time representing the bit value, and then pulled high until the start of the subsequent bit.

[0065] like Figure 2 , Figure 3 and Figure 4 As shown in Figure 1, the normal data bit length is 2.4±0.35ms. Figure 2 As shown, maintaining a low level for 1.5±0.2ms indicates logic 0. Figure 3 As shown, maintaining the low level for 0.6±0.2ms is logic 1. Figure 4 As shown, the receiver can convert the transmitted 1 bit into 0 by pulling the bus low 0.35s after the falling edge and keeping it low until the level indicating logic 0. Figure 1 As shown, each frame has a start bit that is initiated by pulling the bus low for 3.7 ± 0.2 ms and then allowed to rise, with a total duration of 4.5 ± 0.2 ms.

[0066] CEC information consists of multiple or single blocks. The format of a block is shown in Table 1, which consists of an 8-bit header / data and a 1-bit EOM bit and ACK bit.

[0067]

[0068] Table 1

[0069] In Table 1, the EOM bit indicates whether there is any subsequent data. For example, when the EOM bit is 1, it indicates that the CEC message has ended and there is no subsequent data; when the EOM bit is 0, it indicates that the CEC message has not ended and there is subsequent data. The ACK bit indicates the response bit. The sender sets it to 1. If the receiver successfully receives the message, it sets it to 0, indicating that the data has been received. The header block indicates the first block of the CEC message. The upper 4 bits of the information bits are the logical address of the sender, and the lower 4 bits are the logical address of the receiver. The information bits of the data block indicate the operation code or parameters.

[0070] Figure 5 FIG. 1 is a flow chart of a method for implementing CEC signal transmission in an embodiment of the present application. In this embodiment, the CEC device serves as a CEC signal sending end, and the execution subject is an interface converter connected to the CEC device serving as a CEC signal sending end, such as Figure 5 As shown, it may include:

[0071] Step 500: Detecting that a CEC device starts to send information according to an HDMI signal, and converting the CEC signal into a first event signal.

[0072] In an exemplary embodiment, the CEC device is connected to the interface converter via an HDMI interface. In an embodiment, the interface converter can be regarded as an HDMI-CEC adapter.

[0073] When the CEC device as the CEC signal sending end wants to send information to other CEC devices, the CEC device as the CEC signal sending end will send a Start signal to the CEC signal line through the CEC pin. According to the timing of the Start signal, the interface converter collects the CEC signal and detects that the CEC signal line is pulled low, and then the interface converter enters the receiving state.

[0074] The interface converter controls the CEC pin of the CEC device to be an input pin. At this time, the interface converter acts as the receiving end of the CEC signal transmitter, collects the rising and falling edge change information of the CEC signal line, and converts the collected information into a first event signal. In one embodiment, a listener or polling interface converter can be set by software to detect the incoming CEC signal; according to the CEC signal timing, when a CEC event is detected, it can be converted into a specific first event signal. In one embodiment, the interface converter can be implemented by, for example, a field programmable gate array (FPGA). The specific implementation is not used to limit the scope of protection of this application. It is emphasized here that when it is detected that the CEC device starts to send information, the rising and falling edge changes of the collected CEC signal are analyzed to obtain an event signal corresponding to the current CEC signal timing.

[0075] Step 501: Encode the obtained first event signal.

[0076] In an exemplary embodiment, the obtained first event signal can be encoded according to a preset encoding rule. For example, a falling edge can be represented by 1, a rising edge can be represented by 2, a hold state can be represented by 0, a line error can be represented by 3, etc. Here, a series of pre-defined numbers are actually used to represent the rising and falling edge changes of the CEC signal, so that the encoded event signal representing the CEC signal can be directly transmitted through the active cable.

[0077] Step 502: Perform parallel-to-serial conversion on the encoded first event signal and transmit the signal through an active cable.

[0078] In an embodiment of the present application, different interface converters can be connected via active cables, and the active cables can be active cables or active optical cables, etc. In the case where the interface converters are connected via active cables, the serial signal obtained after the parallel-to-serial conversion is transmitted via the active cable; in the case where the interface converters are connected via active optical cables, the serial signal obtained after the parallel-to-serial conversion is converted into an optical signal by an optoelectronic conversion device and then transmitted via the active optical cable.

[0079] Step 503: Perform serial-to-parallel conversion and decoding on the feedback signal received through the active cable to obtain a second event signal, convert the second event signal into a CEC signal and feed it back to the CEC device.

[0080] In an exemplary embodiment, decoding can be regarded as the inverse process of encoding, and encoding and decoding follow the same rules. For example, 1 after decoding indicates a falling edge, 2 after decoding indicates a rising edge, 0 after decoding indicates a hold state, 3 after decoding indicates a line error, etc.

[0081] The interface converter controls the CEC pin of the CEC device to be an output pin. At this time, the interface converter acts as the sending end of the CEC device as the sending end of the CEC signal. It restores the second event signal to the rising and falling edge changes of the CEC signal line and then feeds it back to the CEC device as the sending end of the CEC signal through the HDMI interface. In this way, the CEC device directly receives feedback information from other CEC devices through the active cable.

[0082] Figure 6 FIG. 1 is a flow chart of another method for implementing CEC signal transmission in an embodiment of the present application. In this embodiment, the CEC device serves as a CEC signal receiving end, and the execution subject is an interface converter connected to the CEC device serving as a CEC signal receiving end, such as Figure 6 As shown, it may include:

[0083] Step 600: Receive a signal through an active cable, perform serial-to-parallel conversion and decoding on the received signal to obtain a first event signal.

[0084] According to the CEC protocol, after receiving the information sent by the CEC device, it is required to feedback information to the CEC device as the information sending end. Therefore, after the CEC device as the CEC signal receiving end receives the signal from the CEC device, such as 8-bit data, it will send 1-bit feedback information to the CEC device as the information sending end. In an exemplary embodiment, the interface converter receives the signal through an active cable. In the case where the active cable is an active cable, the received signal is directly converted into a serial-to-parallel conversion. In the case where the active cable is an active optical cable, the received optical signal is first converted into an electrical signal and then the converted electrical signal is converted into a serial-to-parallel conversion; then, the parallel signal obtained after the serial-to-parallel conversion is decoded and restored to the first event signal according to the preset decoding rules. At this time, the interface converter enters the sending state and controls the CEC pin of the CEC device as the CEC signal receiving end to be an output pin. Decoding can be regarded as the inverse process of encoding, and the decoding rules correspond to the encoding rules.

[0085] Step 601: Convert the decoded first event signal into a CEC signal and output it to a CEC device.

[0086] In this step, the interface converter restores the decoded first event signal to the rising and falling edge changes of the CEC signal line, and outputs it to the CEC device as the CEC signal receiving end, so that the CEC device directly receives the information sent by other CEC devices through the active cable.

[0087] Step 602: Collect CEC signals and convert the collected CEC signals into second event signals.

[0088] The interface converter controls the CEC pin of the CEC device to be an input pin. At this time, the interface converter acts as a receiving end of the CEC signal sending end, collects the rising and falling edge changes of the CEC signal line, and converts the collected information into a second event signal.

[0089] Step 603: Encode the obtained second event signal, perform parallel-to-serial conversion on the encoded second event signal, and transmit the signal through an active cable.

[0090] In an exemplary embodiment, the second event signal is encoded and converted to parallel-to-serial, and then the converted serial signal is transmitted through an active cable. Here, the encoding rules are consistent with those in step 501. In one embodiment, different interface converters can be connected through active cables, and the active cable can be an active cable or an active optical cable, etc. For the case where the interface converters are connected through active cables, the serial signal obtained after the parallel-to-serial conversion is transmitted through the active cable; for the case where the interface converters are connected through active optical cables, the serial signal obtained after the parallel-to-serial conversion is converted into an optical signal by an optoelectronic conversion device and then transmitted through an active optical cable.

[0091] The method for realizing CEC signal transmission provided by the embodiment of the present application is that the CEC device is connected to the interface converter through the HDMI interface. After the interface converter collects the CEC signal and converts the CEC signal into an event signal according to the CEC timing, the integrity of the CEC network is ensured not to be divided, so that the logical address is unified, the address information and the data information do not need to be operated separately, the CEC signal is directly transmitted through the active cable, the interaction process becomes simple, and the transmission of the CEC signal is truly simple and effective. Moreover, if the interface converter is implemented by, for example, FPGA, the hardware complexity is reduced and the cost is saved.

[0092] The present application also provides a computer-readable storage medium storing computer-executable instructions for executing the above-mentioned Figure 5 or Figure 6 A method for implementing CEC signal transmission as described in any one of the items.

[0093] The present application further provides a device for implementing CEC signal transmission, including a memory and a processor, wherein the memory stores the following instructions that can be executed by the processor: Figure 5 and / or Figure 6 The steps of any one of the methods for implementing CEC signal transmission.

[0094] Figure 7 FIG. 1 is a schematic diagram of the structure of the interface converter in the embodiment of the present application. Figure 7 As shown, the interface converter at least includes: a bidirectional controller 71, a CEC signal acquisition module 72, a CEC signal restoration module 73, a main control state machine 74, an encoding module 75, a decoding module 76, a parallel-to-serial conversion module 77 and a serial-to-parallel conversion module 78; wherein,

[0095] The bidirectional controller 71 is used to connect with the CEC device through the HDMI interface to realize the control of the input / output direction of the CEC signal, receive the IO control signal from the main control state machine 74, and control the current CEC signal to be a CEC input signal (CEC in) or a CEC output signal (CEC out) according to the received IO control signal; wherein the CEC input signal is a CEC signal received from the CEC device through the HDMI interface and output to the CEC signal acquisition module 72, and the CEC output signal is a CEC signal from the CEC signal restoration module 73, and is output to the CEC device through the HDMI interface;

[0096] A CEC signal acquisition module 72, for sampling the CEC input signal, converting the collected information into a first event signal and transmitting it to the main control state machine 74;

[0097] A CEC signal restoration module 73, used for restoring the second event signal from the master state machine 74 to a CEC signal and outputting it to the CEC device via the bidirectional controller 71;

[0098] The master control state machine 74 is used to respond to the interface converter to which the master control state machine 74 belongs as a receiving end or a transmitting end according to the state of the CEC signal line and the received decoding information, and to send an IO control signal to the bidirectional controller 71 to control the current CEC signal to be a CEC input signal or a CEC output signal; output the first event signal from the CEC signal acquisition module to the encoding module 75, and feed back the second event signal from the decoding module 76 to the CEC signal restoration module 73; in one embodiment, the state of the CEC signal line (i.e., the CEC bus state) is that the CEC signal line is 0 or 1, and is a rising edge or a falling edge.

[0099] The encoding module 75 is used to encode the received first event signal and output the encoded first event signal to the parallel-to-serial conversion module 77;

[0100] The decoding module 76 is used to decode the data from the serial-to-parallel conversion module to obtain a second event signal; and transmit the decoded second event signal to the main control state machine 74;

[0101] A parallel-to-serial conversion module 77, used to convert the encoded parallel data into serial data and output it through an active cable;

[0102] The serial-to-parallel conversion module 78 is used to receive serial data from the active cable, convert the serial data into parallel data, and then output it to the decoding module 76 .

[0103] In an exemplary embodiment, the interface converter in this embodiment can be implemented based on a field programmable gate array (FPGA, Field-Programmable Gate Array).

[0104] In an exemplary embodiment, the CEC signal acquisition module 72 may be used to:

[0105] The CEC input signal is sampled to obtain the rising edge and falling edge change information on the signal line, and the collected information is converted into a first event signal according to the CEC signal timing and transmitted to the main control state machine 74.

[0106] In an exemplary embodiment, the CEC signal restoration module 73 may be used to:

[0107] According to the CEC signal timing, the second event signal from the master state machine 74 is restored to the rising edge and falling edge change information on the CEC signal line and then output to the CEC device via the bidirectional controller 71 .

[0108] In an exemplary embodiment, the decoding method corresponds to the encoding method. In one embodiment, for example, in encoding, a falling edge can be represented by 1, a rising edge can be represented by 2, a hold state can be represented by 0, a line error can be represented by 3, etc.; then, in decoding, a decoded value of 1 represents a falling edge, a decoded value of 2 represents a rising edge, a decoded value of 0 represents a hold state, a decoded value of 3 represents a line error, etc.

[0109] In one illustrative example, the active cable is an active electrical cable.

[0110] In an exemplary embodiment, the active cable is an active optical cable, and also includes an optoelectronic converter for converting the serial signal from the parallel-to-serial conversion module 77 into an optical signal and then outputting it through the active optical cable; and converting the optical signal from the active optical cable into a serial signal and then transmitting it to the serial-to-parallel conversion module 78.

[0111] The interface converter provided in the embodiment of the present application is connected to the CEC device through the HDMI interface. After the interface converter collects the CEC signal and converts the CEC signal into an event signal according to the CEC timing, it ensures that the integrity of the CEC network is not divided, so that the logical address is unified, and the address information and data information do not need to be operated separately. The CEC signal is directly transmitted through the active cable, the interaction process becomes simple, and the transmission of the CEC signal is truly simple and effective. Moreover, if the interface converter is implemented by, for example, FPGA, it also reduces the hardware complexity and saves costs.

[0112] Figure 8FIG. 1 is a schematic diagram of a structure for implementing CEC signal transmission between two CEC devices in an embodiment of the present application. Figure 8 As shown, in this embodiment, the active cable is an optical fiber, and the first CEC device is used as a CEC signal sending end, and the second CEC device is used as a CEC signal receiving end. The process of implementing CEC signal transmission between the first CEC device and the second CEC device may include:

[0113] The first interface converter detects that the first CEC device starts to send information according to the HDMI signal, converts the CEC signal into a first event signal, encodes the obtained first event signal, performs parallel-to-serial conversion on the encoded first event signal, and then converts it into an optical signal through the first photoelectric converter and transmits it through the optical fiber; the second photoelectric converter converts the optical signal from the optical fiber into an electrical signal and outputs it to the second interface converter, the second interface converter performs serial-to-parallel conversion and decoding on the received signal to obtain the first event signal, converts the decoded first event signal into a CEC signal and outputs it to the second CEC device through the HDMI interface; the second interface converter collects the CEC signal of the second CEC device and converts the collected CEC signal into a second event signal, encodes the obtained second event signal, performs parallel-to-serial conversion on the encoded second event signal, converts it into an optical signal through the photoelectric converter and transmits it through the optical fiber; the first photoelectric converter converts the optical signal from the optical fiber into an electrical signal and outputs it to the first interface converter, the first interface converter performs serial-to-parallel conversion and decoding on the received signal to obtain the second event signal, converts the second event signal into a CEC signal and feeds it back to the first CEC device.

[0114] Fig. 9 This is a schematic diagram of the state control flow of the interface converter in the embodiment of the present application, combined with Figure 1-Figure 4 , Figure 7 , Fig. 9 As shown, it may include:

[0115] In step S400, the initial state of the master state machine 74 of the interface converter is the idle state. If the master state machine 74 receives the CEC bus pull-down signal sent by the CEC signal acquisition module 72, the master state machine 74 enters the receiving waiting state of step S401. At this time, the interface converter acts as the receiving end and the CEC device is the sending end. If the master state machine 74 receives a sending request signal from the decoding module 76, then the master state machine 74 enters the sending waiting state of step S409. At this time, the interface converter acts as the sending end and the CEC device is the receiving end;

[0116] After the master control state machine 74 enters the receiving waiting state of step S401, it will continue to receive the CEC bus signal. After waiting for 4.5ms, it enters step S402 to detect whether the current CEC signal is a Start signal. If the current CEC signal is not a Start signal, the master control state machine 74 enters the receiving end state of step S408; if the current CEC signal is a Start signal, the master control state machine 74 enters the receiving Header state of step S403;

[0117] When the master control state machine 74 enters the receiving Header state of step S403, if the line error event information is received from the decoding module 76, the master control state machine 74 enters the Line Error sending long 0 state of step S406; if the 9-bit data is received from the decoding module 76, the master control state machine 74 enters the feedback Header ACK state of step S404;

[0118] When the master control state machine 74 enters the feedback Header ACK state of S404, the address stored in the interface converter is compared with the address in the received Header to see if they are consistent. If the addresses are inconsistent or the addresses are consistent but eom is 1, the master control state machine 74 enters the receiving end state of step S408; if the addresses are consistent and eom is 0, the master control state machine 74 enters the receiving data state of step S405. Here, the address stored in the interface converter is the logical address of the opposite CEC device connected via the active cable.

[0119] When the master control state machine 74 enters the receiving data state of step S405, if the line error event information is received from the decoding module 76, then the master control state machine 74 enters the Line Error sending long 0 state of step S406; if the 9-bit data is received from the decoding module 76, then the master control state machine 74 enters the feedback Data ACK state of step S407;

[0120] When the master control state machine 74 enters the Line Error sending long 0 state in step S406, if it is detected that the low level is output on the CEC bus for 3.6ms, the master control state machine 74 enters the receiving end state in step S408 after the sending is completed;

[0121] When the master control state machine 74 enters the feedback Data ACK state of step S407, if eom is 0, the master control state machine 74 enters the receiving data state of step S405; if eom is 1, the master control state machine 74 enters the receiving end state of step S408; wherein eom represents the end mark of a message or data frame, for example: when eom is 1, it indicates that the message is finished, and when eom is 0, it indicates that the data is still continuing;

[0122] After the master control state machine 74 enters the receiving end state at step S408, the master control state machine 74 returns to the initial idle state at step S400.

[0123] When the master control state machine 74 enters the sending waiting state of step S409, if the waiting time is satisfied, the master control state machine 74 enters step S410 to determine whether the CEC bus is idle; in one embodiment, the waiting time means: the sending frame of the same device needs to wait for more than or equal to 7 normal data time lengths, the sending frame of a new device needs to wait for more than or equal to 5 normal data time lengths, and the retransmission frame after the sending failure needs to wait for more than or equal to 3 normal data time lengths;

[0124] When the master control state machine 74 enters the step S410 to determine whether the CEC bus is idle, if the CEC bus is not idle, the master control state machine 74 enters the sending end state of step S418; if the CEC bus is idle, the master control state machine 74 enters the sending start state of step S411;

[0125] When the master control state machine 74 enters the Send Start state of step S411, if the Start signal is sent, the master control state machine 74 enters the Send Header state of step S412;

[0126] When the master control state machine 74 enters the Send Header state of step S412, arbitration judgment will be performed according to the address of the CEC sender. If the CEC sender does not obtain the right to occupy the CEC bus, then the master control state machine 74 enters the Send End state of step S418; if a long 0 signal on the CEC bus is received, that is, a low level lasting 3.6ms, then the master control state machine 74 enters the Request Resend state of step S415; if the CEC sender obtains the right to occupy the CEC bus and sends 9 bits of data, then the master control state machine 74 enters the ACK judgment state of step S413;

[0127] The master control state machine 74 enters the ACK judgment state of step S413. If the ACK is correct, the master control state machine 74 enters the step S414 to judge whether eom is 1; if the ACK is wrong or a long 0 signal is received on the CEC bus, the master control state machine 74 enters the retransmission request state of step S415;

[0128] When the master control state machine 74 enters the step S414 to determine whether eom is 1, if eom is determined to be 1, the master control state machine 74 enters the sending end state of step S418; if eom is determined to be 0, the master control state machine 74 enters the sending Data state of step S417;

[0129] After the master control state machine 74 enters the retransmission request state of step S415 and records the number of retransmissions, the master control state machine 74 enters step S416 to determine whether to retransmit a preset number of times, such as 5 times;

[0130] When the master control state machine 74 enters step S416 to determine whether to resend a preset number of times, such as 5 times, if the number of resends is less than the preset number of times, such as 5 times, then the master control state machine 74 enters the sending waiting state of step S409; if the number of resends reaches the preset number of times, such as 5 times, then the master control state machine 74 enters the sending end state of step S418;

[0131] When the master control state machine 74 enters the Data sending state of step S417, if a long 0 signal on the CEC bus is received, the master control state machine 74 enters the Resend Request state of step S415; if the 9-bit data is sent, the master control state machine 74 enters the ACK determination state of step S413;

[0132] After the master control state machine 74 enters the sending end state of step S418, the master control state machine 74 returns to the initial idle state of step S400.

[0133] Although the embodiments disclosed in this application are as above, the contents described are only embodiments adopted to facilitate understanding of this application and are not intended to limit this application. Any technician in the field to which this application belongs can make any modifications and changes in the form and details of implementation without departing from the spirit and scope disclosed in this application, but the scope of patent protection of this application shall still be based on the scope defined in the attached claims.

Claims

1. A method for implementing CEC signal transmission, It is characterized in that Consumer Electronics Control (CEC) devices act as CEC signal transmitters; including: Detecting that the CEC device starts to send information according to a high-definition multimedia interface HDMI signal, collecting rising edge and falling edge change information of the CEC signal line, and converting the collected information into a first event signal according to the CEC signal timing; Encoding the obtained first event signal includes: using a predetermined number to represent the rising edge and falling edge changes of the CEC signal; Performing parallel-to-serial conversion on the encoded first event signal and transmitting the signal through an active cable; The feedback signal received through the active cable is serial-to-parallel converted and decoded to obtain a second event signal, and the second event signal is converted into a CEC signal and fed back to the CEC device.

2. The method according to claim 1, in, The detecting that the CEC device starts to send information includes: According to the timing of the Start signal in the CEC signal, it is determined that the CEC signal line is pulled low, and it is detected that the CEC device starts to send information.

3. The method according to claim 1, in, The obtained first event signal is encoded according to a preset encoding rule.

4. The method according to claim 1, in, The active cable is an active cable, and the serial signal obtained after the parallel-to-serial conversion is transmitted through the active cable; Alternatively, the active cable is an active optical cable, and the serial signal obtained after the parallel-to-serial conversion is converted into an optical signal and then transmitted through the active optical cable.

5. A method for implementing CEC signal transmission, It is characterized in that CEC devices serve as CEC signal receivers; including: Receiving a signal through an active cable, performing serial-to-parallel conversion and decoding on the received signal to obtain a first event signal; Restoring the decoded first event signal to the rising edge and falling edge changes of the CEC signal line, and outputting it to the CEC device; Collecting a CEC signal and converting the collected CEC signal into a second event signal according to a timing sequence of the collected CEC signal; The obtained second event signal is encoded, and the encoded second event signal is converted from parallel to serial and then transmitted through an active cable; wherein the encoding of the obtained second event signal includes: using predetermined numbers to represent the rising edge and falling edge changes of the CEC signal.

6. The method according to claim 5, in, The step of converting the received signal into a first event signal by serial-to-parallel conversion and decoding the received signal includes: The active cable is an active electrical cable, which performs serial-to-parallel conversion on the received signal; or, the active cable is an active optical cable, which converts the received optical signal into an electrical signal and performs serial-to-parallel conversion on the converted electrical signal; The parallel signal obtained after the serial-to-parallel conversion is decoded according to a preset decoding rule to restore the first event signal.

7. A computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the method for implementing CEC signal transmission as described in any one of claims 1 to 4, or any one of claims 5 to 6.

8. A device for implementing CEC signal transmission, comprising a memory and a processor, in, The memory stores the following instructions executable by the processor: used to execute the steps of the method for implementing CEC signal transmission described in any one of claims 1-4, and / or any one of claims 5-6.

9. An interface converter, It is characterized in that include: Bidirectional controller, CEC signal acquisition module, CEC signal restoration module, main control state machine, encoding module, decoding module, parallel-to-serial conversion module and serial-to-parallel conversion module; wherein, A bidirectional controller is used to connect to a CEC device through an HDMI interface to control the input / output direction of a CEC signal, receive an IO control signal from a master state machine, and control the current CEC signal to be a CEC input signal or a CEC output signal according to the received IO control signal; A CEC signal acquisition module is used to sample the CEC input signal, obtain the rising edge and falling edge change information on the signal line, convert the collected information into a first event signal according to the CEC signal timing, and transmit it to the main control state machine; A CEC signal restoration module, configured to restore the second event signal from the master control state machine to rising edge and falling edge change information on the CEC signal line according to the CEC signal timing, and then output the information to the CEC device via the bidirectional controller; The master control state machine is used to respond to the interface converter of the master control state machine itself as a receiving end or a sending end according to the state of the CEC signal line and the received decoding information, and send an IO control signal to the bidirectional controller to control the current CEC signal to be a CEC input signal or a CEC output signal; output the first event signal from the CEC signal acquisition module to the encoding module, and feed back the second event signal from the decoding module to the CEC signal restoration module; The encoding module is used to encode the received first event signal and output the encoded first event signal to the parallel-serial conversion module; wherein the encoding of the received first event signal includes: using a predetermined number to represent the rising edge and falling edge changes of the CEC signal; A decoding module, used for decoding the data from the serial-to-parallel conversion module to obtain a second event signal; and transmitting the decoded second event signal to the main control state machine; A parallel-to-serial conversion module, used to convert the encoded parallel data into serial data and then output it through an active cable; The serial-to-parallel conversion module is used to receive serial data from the active cable, convert it into parallel data, and then output it to the decoding module.

10. The interface converter according to claim 9, in, The active cable is an active electrical cable.

11. The interface converter according to claim 9, in, The active cable is an active optical cable; the interface converter further comprises an optoelectronic converter, which is used for: The serial signal from the parallel-to-serial conversion module is converted into an optical signal and then outputted through the active optical cable; and the optical signal from the active optical cable is converted into a serial signal and then transmitted to the serial-to-parallel conversion module.

12. The interface converter according to claim 9, in, The interface converter is implemented based on a field programmable gate array (FPGA).