A method for identifying the HDMI port of a display device and a device connected to CEC.

CN117615091BActive Publication Date: 2026-08-14HISENSE VISUAL TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-20
Publication Date
2026-08-14

AI Technical Summary

Technical Problem

这样无法明确确定CEC设备接入的是哪一路扩展HDMI端口,导致显示设备无法与CEC设备进行CEC交互

Benefits of technology

[0016]由以上技术方案可知,上述实施例提供的显示设备及接入CEC设备的HDMI端口识别方法,原生HDMI端口的第一端口号与HDMI控制器的第一标识之间存在第一映射关系,HDMI控制器用于在检测到CEC设备接入显示设备时生成HPD信号。扩展HDMI端口的第二端口号与接入信号检测接口的第二标识之间存在第二映射关系,接入信号检测接口用于在检测到CEC设备接入显示设备时生成接入信号。如果CEC设备通过原生HDMI端口接入显示设备,则可以根据生成HPD信号的HDMI控制器的第一标识,基于第一映射关系,识别CEC设备接入的原生HDMI端口的第一端口号。如果CEC设备通过扩展HDMI端口接入显示设备,则可以根据生成接入信号的接入信号检测接口的第二标识,基于第二映射关系,识别CEC设备接入的扩展HDMI端口的第二端口号。这样,即使CEC设备通过扩展HDMI端口接入显示设备,扩展HDMI端口与对应的原生HDMI端口共用HDMI控制器,无法根据HDMI控制器生成的HPD信号确定扩展HDMI端口的第二端口号,可以根据生成接入信号的接入信号检测接口第二标识,确定接入CEC设备的扩展HDMI端口的第二端口号,从而实现准确识别接入CEC设备的HDMI端口的效果。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117615091B_ABST
    Figure CN117615091B_ABST
Patent Text Reader

Abstract

This application provides a method for identifying HDMI ports of display devices and CEC devices. If the CEC device is connected to the display device via a native HDMI port, the native HDMI port is identified based on a first mapping relationship using a first identifier of the HDMI controller that generates the HPD signal. If the CEC device is connected to the display device via an extended HDMI port, the extended HDMI port is identified based on a second mapping relationship using a second identifier of the access signal detection interface that generates the access signal. Thus, even if the extended HDMI port and the native HDMI port share the same HDMI controller, and the extended HDMI port cannot be determined based on the HPD signal generated by the HDMI controller, the extended HDMI port connected to the CEC device can be determined based on the second identifier of the access signal detection interface that generates the access signal, thereby achieving accurate identification of the HDMI port connected to the CEC device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of display device technology, and in particular to a display device and a method for identifying the HDMI port of a CEC-connected device. Background Technology

[0002] High Definition Multimedia Interface (HDMI) is a dedicated digital interface suitable for image transmission, capable of simultaneously transmitting audio and video signals. HDMI is now standardized, and Consumer Electronics Control (CEC) is a complete single-bus protocol developed for HDMI standardization. Display devices can use CEC signals to control external devices connected to the HDMI port; these controlled external devices are called CEC devices.

[0003] If a CEC device connects to a display device using a native HDMI port, and the native HDMI port has a corresponding HDMI controller, then the HPD (Hot Plug Detection) signal can clearly determine which native HDMI port the CEC device is connected to. The display device can then use this specific native HDMI port to perform CEC interaction with the CEC device.

[0004] In practical applications, a multiplexer can be used to expand the native HDMI port into multiple ports, allowing CEC devices to connect to display devices via these expanded HDMI ports. In this case, multiple expanded HDMI ports share a single HDMI controller, meaning they share a single HPD event. This makes it impossible to definitively determine which expanded HDMI port the CEC device is connected to, preventing the display device from interacting with the CEC device via CEC. Summary of the Invention

[0005] This application provides a method for identifying the HDMI port of a display device and a device connected to a CEC, which can accurately identify the HDMI port of the device connected to the CEC regardless of whether the HDMI port is a native HDMI port or an extended HDMI port.

[0006] In a first aspect, some embodiments of this application provide a display device, including:

[0007] monitor;

[0008] At least one HDMI controller, wherein a first identifier of the HDMI controller has a first mapping relationship with a first port number of a native HDMI port, and the HDMI controller is configured to generate an HPD signal when a CEC device is detected to be connected to the display device;

[0009] At least one access signal detection interface, wherein a second identifier of the access signal detection interface has a second mapping relationship with a second port number of an extended HDMI port, the access signal detection interface is configured to generate an access signal when a CEC device is detected to be connected to the display device, wherein at least one extended HDMI port and one native HDMI port share one HDMI controller, and the access signal is a different signal from the HPD signal;

[0010] The processor is configured as follows:

[0011] If the CEC device is connected to the display device through the native HDMI port, the first port number of the native HDMI port to which the CEC device is connected is identified based on the first identifier of the HDMI controller that generates the HPD signal and the first mapping relationship.

[0012] If the CEC device is connected to the display device through the extended HDMI port, the second port number of the extended HDMI port to which the CEC device is connected is identified based on the second identifier of the access signal detection interface that generates the access signal and the second mapping relationship.

[0013] Secondly, some embodiments of this application provide a method for identifying an HDMI port accessing a CEC device. This method is applied to a display device, which includes at least one HDMI controller. A first identifier of the HDMI controller has a first mapping relationship with a first port number of a native HDMI port. The HDMI controller is configured to generate an HPD signal when it detects a CEC device accessing the display device. The display device also includes at least one access signal detection interface. A second identifier of the access signal detection interface has a second mapping relationship with a second port number of an extended HDMI port. The access signal detection interface is configured to generate an access signal when it detects a CEC device accessing the display device. At least one extended HDMI port shares an HDMI controller with one native HDMI port. The access signal and the HPD signal are different signals. The method includes:

[0014] If the CEC device is connected to the display device through the native HDMI port, the first port number of the native HDMI port to which the CEC device is connected is identified based on the first identifier of the HDMI controller that generates the HPD signal and the first mapping relationship.

[0015] If the CEC device is connected to the display device through the extended HDMI port, the second port number of the extended HDMI port to which the CEC device is connected is identified based on the second identifier of the access signal detection interface that generates the access signal and the second mapping relationship.

[0016] As can be seen from the above technical solutions, the HDMI port identification method for the display device and the CEC device provided in the above embodiments has a first mapping relationship between the first port number of the native HDMI port and the first identifier of the HDMI controller. The HDMI controller is used to generate an HPD signal when it detects that the CEC device is connected to the display device. A second mapping relationship exists between the second port number of the extended HDMI port and the second identifier of the access signal detection interface. The access signal detection interface is used to generate an access signal when it detects that the CEC device is connected to the display device. If the CEC device is connected to the display device through the native HDMI port, the first port number of the native HDMI port connected to the CEC device can be identified based on the first identifier of the HDMI controller that generates the HPD signal, according to the first mapping relationship. If the CEC device is connected to the display device through the extended HDMI port, the second port number of the extended HDMI port connected to the CEC device can be identified based on the second identifier of the access signal detection interface that generates the access signal, according to the second mapping relationship. In this way, even if the CEC device is connected to the display device through the extended HDMI port, and the extended HDMI port shares the same HDMI controller as the corresponding native HDMI port, the second port number of the extended HDMI port cannot be determined based on the HPD signal generated by the HDMI controller. Instead, the second port number of the extended HDMI port connected to the CEC device can be determined based on the second identifier of the access signal detection interface that generates the access signal, thereby achieving the effect of accurately identifying the HDMI port connected to the CEC device. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1This is a schematic diagram illustrating an operational scenario between a display device and a control device provided in some embodiments of this application;

[0019] Figure 2 Hardware configuration block diagrams of display devices provided in some embodiments of this application;

[0020] Figure 3 Hardware configuration block diagrams of control devices provided in some embodiments of this application;

[0021] Figure 4 This is a schematic diagram of the software configuration in a display device provided in some embodiments of this application;

[0022] Figure 5 Signaling diagrams illustrating the interaction between a display device 200 and a CEC device provided in some embodiments of this application;

[0023] Figure 6 A flowchart illustrating the logical address allocation process for a CEC device provided in some embodiments of this application;

[0024] Figure 7 Hardware circuit connection block diagrams including native HDMI ports provided for some embodiments of this application;

[0025] Figure 8 Hardware circuit connection block diagrams including native HDMI ports and extended HDMI ports provided for some embodiments of this application;

[0026] Figure 9 Hardware connection block diagrams of some functional modules of a display device 200 provided in some embodiments of this application;

[0027] Figure 10 This application provides a schematic flowchart of a method for identifying an HDMI port of a CEC access device in a display device 200 according to some embodiments of the present application.

[0028] Figure 11 Circuit connection block diagrams with extended HDMI interfaces provided for some embodiments of this application;

[0029] Figure 12 Another circuit connection block diagram with an extended HDMI interface is provided for some embodiments of this application;

[0030] Figure 13 Interactive signaling diagrams of the HDMI port identification process provided in some embodiments of this application;

[0031] Figure 14 An interactive signaling diagram of another HDMI port identification process provided for some embodiments of this application;

[0032] Figure 15A flowchart illustrating a method for obtaining the physical address of a CEC device provided in some embodiments of this application;

[0033] Figure 16 EDID file transfer schematic diagrams provided for some embodiments of this application;

[0034] Figure 17 A schematic diagram illustrating the EDID file transfer principle of a display device with multiple extended HDMI ports, provided for some embodiments of this application;

[0035] Figure 18 This is a schematic diagram of a method for establishing a CEC connection provided in some embodiments of this application. Detailed Implementation

[0036] To make the objectives, technical solutions, and advantages of this application clearer, exemplary embodiments of this application will be clearly and completely described below in conjunction with the exemplary embodiments and corresponding drawings. Obviously, the described exemplary embodiments are only a part of the embodiments of this application, and not all of them.

[0037] It should be noted that the brief descriptions of terms in this application are only for the convenience of understanding the embodiments described below, and are not intended to limit the implementation of some embodiments of this application. Unless otherwise stated, these terms should be understood in their ordinary and common meaning.

[0038] The terms "first," "second," "third," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar or related objects or entities, and do not necessarily imply a specific order or sequence, unless otherwise specified. It should be understood that such terms are interchangeable where appropriate.

[0039] The terms “comprising” and “having”, and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device that includes a range of components is not necessarily limited to all of the components that are clearly listed, but may include other components that are not clearly listed or that are inherent to such product or device.

[0040] The display device provided in this application can have various implementation forms, such as a television, a smart television, a laser projection device, a monitor, an electronic bulletin board, an electronic table, etc.

[0041] Figure 1 and Figure 2 This is one specific embodiment of the display device of this application.

[0042] Figure 1This is a schematic diagram illustrating an operational scenario between a display device and a control device in an exemplary embodiment of this application. Figure 1 As shown, the user can operate the display device 200 through the mobile terminal 300 and the control device 100.

[0043] In some embodiments, the control device 100 may be a remote control. Communication between the remote control and the display device includes infrared protocol communication, Bluetooth protocol communication, and other short-range communication methods, controlling the display device 200 wirelessly or via wired means. Users can control the display device 200 by inputting user commands through buttons on the remote control, voice input, control panel input, etc.

[0044] In some embodiments, a smart device 300 (such as a mobile terminal, tablet computer, computer, laptop computer, etc.) may also be used to control the display device 200. For example, an application running on the smart device may be used to control the display device 200.

[0045] In some embodiments, the display device may receive instructions not through the aforementioned smart devices or control devices, but through touch or gestures.

[0046] In some embodiments, the display device 200 can also be controlled in ways other than the control device 100 and the smart device 300. For example, it can be controlled by directly receiving the user's voice commands through a module configured inside the display device 200 for acquiring voice commands, or it can be controlled by receiving the user's voice commands through a voice control device set outside the display device 200.

[0047] In some embodiments, the display device 200 also communicates with the server 400. The display device 200 may communicate via a local area network (LAN), wireless local area network (WLAN), and other networks. The server 400 may provide various content and interactive features to the display device 200. The server 400 may be a cluster or multiple clusters, and may include one or more types of servers.

[0048] Figure 2 An exemplary block diagram of the hardware configuration of the control device 100 according to an exemplary embodiment is shown. Figure 2 As shown, the control device 100 includes a controller 110, a communication interface 130, a user input / output interface 140, a memory, and a power supply. The control device 100 can receive user input operation commands and convert them into commands that the display device 200 can recognize and respond to, thus acting as an intermediary for interaction between the user and the display device 200. Figure 3The display device 200 includes at least one of the following: a tuner 210, a communicator 220, a detector 230, an external device interface 240, a processor 250, a display 260, an audio output interface 270, a memory, a power supply, and a user interface.

[0049] In some embodiments, the processor includes a video processor, an audio processor, a graphics processor, RAM, ROM, and a first to an nth interface for input / output. The display 260 includes a display screen assembly for presenting images, a driving assembly for driving image display, components for receiving image signals output from the processor, displaying video content, image content, and a menu control interface, as well as a user interface. The display 260 may be a liquid crystal display, an OLED display, or a projection display, and may also be a projection device and a projection screen.

[0050] The communicator 220 is a component used to communicate with external devices or servers according to various communication protocol types. For example, the communicator may include at least one of the following: a Wi-Fi module, a Bluetooth module, a wired Ethernet module, other network communication protocol chips or near-field communication protocol chips, and an infrared receiver. The display device 200 can establish the transmission and reception of control signals and data signals with the external control device 100 or the server 400 through the communicator 220.

[0051] The user interface can be used to receive control signals from the control device 100 (such as an infrared remote control).

[0052] Detector 230 is used to collect signals from the external environment or to interact with the external environment. For example, detector 230 includes a light receiver, a sensor for collecting ambient light intensity; or, detector 230 includes an image acquisition device, such as a camera, which can be used to collect external environmental scenes, user attributes, or user interaction gestures; or, detector 230 includes a sound acquisition device, such as a microphone, for receiving external sounds.

[0053] The external device interface 240 may include, but is not limited to, one or more of the following: High Definition Multimedia Interface (HDMI), analog or high-definition component input interface (component), composite video input interface (CVBS), USB input interface (USB), RGB port, etc. It may also be a composite input / output interface formed by multiple interfaces mentioned above.

[0054] The tuner / demodulator 210 receives broadcast television signals via wired or wireless means, and demodulates audio and video signals, such as EPG data signals, from multiple wireless or wired broadcast television signals.

[0055] In some embodiments, the processor 250 and the tuner 210 may be located in different separate devices, that is, the tuner 210 may also be located in an external device of the main device where the processor 250 is located, such as an external set-top box.

[0056] Processor 250 controls the operation of the display device and responds to user operations through various software control programs stored in memory. Processor 250 controls the overall operation of display device 200. For example, in response to receiving a user command to select a UI object to display on display 260, processor 250 can execute operations related to the object selected by the user command.

[0057] In some embodiments, the processor includes at least one of a central processing unit (CPU), a video processor, an audio processor, a graphics processing unit (GPU), a RAM (Random Access Memory), a ROM (Read-Only Memory), a first to an nth interface for input / output, a communication bus, etc.

[0058] Users can input commands through a graphical user interface (GUI) displayed on the monitor 260, and the user input interface receives the user input commands through the GUI. Alternatively, users can input commands by entering specific sounds or gestures, and the user input interface receives the user input commands by recognizing the sounds or gestures through sensors.

[0059] A "user interface" is the medium through which an application or operating system interacts and exchanges information with the user. It converts information from its internal form to a form that the user can accept. A common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed graphically. It can be an icon, window, control, or other interface element displayed on the screen of an electronic device. Controls can include visual interface elements such as icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets.

[0060] like Figure 4 As shown, the display device system is divided into three layers, from top to bottom: the application layer, the middleware layer, and the hardware layer.

[0061] The application layer mainly includes commonly used applications on TVs, as well as the application framework. The commonly used applications are mainly browser-based applications, such as HTML5 apps, and native apps.

[0062] An application framework is a complete program model that has all the basic functions required by standard application software, such as file access, data exchange, etc., as well as the user interface for these functions (toolbar, status bar, menu, dialog box).

[0063] Native apps can support online or offline access, push notifications, or access to local resources.

[0064] The middleware layer includes various television protocols, multimedia protocols, and system components. Middleware can use the basic services (functions) provided by system software to connect different parts of application systems or different applications on the network, achieving resource sharing and function sharing.

[0065] The hardware layer mainly includes the HAL interface, hardware, and drivers. The HAL interface is a unified interface for all TV chips, with the specific logic implemented by each chip. The drivers mainly include: audio drivers, display drivers, Bluetooth drivers, camera drivers, Wi-Fi drivers, USB drivers, HDMI drivers, sensor drivers (such as fingerprint sensors, temperature sensors, pressure sensors, etc.), and power drivers.

[0066] To clearly illustrate the technical solution of this application, the terms used in this application will first be explained:

[0067] CEC (Consumer Electronics Control) allows end users to control multiple CEC-enabled HD devices with a single remote control, eliminating the need for multiple remote controls for electronic devices such as televisions (TVs), set-top boxes, and portable HD devices.

[0068] EDID (Extended Display Identification Data) is a data specification designed by the video standards organization VESA for optimized display formats used in PC monitors. EDID contains basic parameters of the display device, such as manufacturer, product name, maximum horizontal and vertical refresh rates, and supported resolutions, serving as the data behind plug-and-play functionality. EDID can be stored in two ways: internal and external. Internal EDID means the EDID data is written into the program. When the smart TV is powered on, the EDID data is written into an Electrically Erasable Programmable Read-Only Memory (EEPROM) chip. When needed, the EDID data is retrieved from the EEPROM chip. External EDID means the EDID data is directly written into an external EEPROM chip, allowing it to be read directly by external devices through the display data channel without requiring control from the smart TV's main program.

[0069] HDMI (High Definition Multimedia Interface) is a digital video / audio interface technology, a dedicated digital interface suitable for image transmission. It can transmit audio and video signals simultaneously, with a maximum data transfer speed of 48Gbps (version 2.1), and eliminates the need for digital-to-analog or analog-to-digital conversion before signal transmission. HDMI interfaces are hot-swappable.

[0070] HPD (Hot Plug Detection) is designed to enable hot-plugging of HDMI connections. Simply put, when the transmitter connects to the receiver, the receiver responds with an HPD signal to the transmitter. The transmitter then activates the DDC channel, reads the receiver's EDID information, and performs HDCP (High-bandwidth Digital Content Protection) interaction. If both parties successfully authenticate, the video and audio work normally; otherwise, the connection fails, and different systems will handle it differently.

[0071] A System on Chip (SOC) is a system or product consisting of multiple integrated circuits with specific functions combined on a single chip. It includes a complete hardware system and its embedded software. In this embodiment, the SOC detects whether a device is connected and reads EDID information.

[0072] ARC (Audio Return Channel) allows a TV to send audio signals upstream to connected soundbars, home theater systems, or AV receivers using a single HDMI cable. It creates a two-way communication channel by forming a "handshake" between the TV and the audio device, eliminating the need for fiber optic audio cables and reducing the clutter of home wiring.

[0073] GPIO (General-Purpose Input / Output Ports) are frequently used in embedded systems to control many simple external devices or circuits. Some of these devices require CPU control, while others require input signals from the CPU. Furthermore, many devices or circuits only need to have two states: on and off, such as turning an LED on and off. Controlling these devices using traditional serial or parallel ports is quite complex. Therefore, embedded microprocessors typically provide a "General-Purpose Programmable I / O Port," or GPIO. A GPIO port requires at least two registers: a "General-Purpose I / O Port Control Register" for control and a "General-Purpose I / O Port Data Register" for storing data. Each bit of the data register corresponds to a hardware pin of the GPIO, and the data transfer direction is set through the control register, which allows configuration of the data flow direction for each pin.

[0074] In some embodiments, the display device 200 can use CEC signals to control external devices connected to the HDMI port, and the controlled external devices are referred to as CEC devices. After a CEC device is connected to the display device 200 through the HDMI port, the display device 200 needs to use CEC commands to obtain the device information of the CEC device, and then the display device 200 uses the device information and the logical address of the CEC device to establish a connection with the CEC device.

[0075] For example, such as Figure 5 The diagram shows the signaling interaction between display device 200 and CEC devices. Because the HDMI port has hot-plug functionality, when a CEC device connects to display device 200 via the HDMI port, display device 200 detects the connection using this hot-plug function. The system hardware of display device 200 triggers an HPD (Hot Plug Detection) signal (hereinafter referred to as the HPD high signal). Through the HPD high signal, display device 200 becomes aware that a CEC device has connected. After receiving the HPD high signal, display device 200 broadcasts its physical address. All CEC devices on the same CEC line as display device 200 can obtain the broadcast physical address.

[0076] After receiving the physical address broadcast by the display device 200, the CEC device calculates its own logical address according to the HDMI standard protocol (usually the CEC line assigns an address to the CEC device), and then broadcasts the assigned logical address. CEC is a bus-based protocol that allocates physical addresses through the Physical Address Discovery Process (PIP). When a device with CEC functionality obtains a new physical address, it performs the following steps: It requests a logical address corresponding to its device type; and it reports the binding of its physical and logical addresses via broadcast (Report PhysicalAddress). The types of logical addresses are shown in Table 1.

[0077]

[0078]

[0079] Table 1 Logical Address Types

[0080] The logical address of CEC devices is also dynamically allocated, such as... Figure 6 As shown, the logical address allocation method for CEC devices can be followed as follows:

[0081] The root node (usually display device 200) is directly assigned logical address 0. When a CEC device is inserted into display device 200, a first preset logical address is assigned to the CEC device according to its device type. For example, if the CEC device is a DVD and its device type is Playback Device1, according to Table 1, a first preset logical address 4 needs to be assigned to the CEC device, and this first preset logical address is broadcast to other CEC devices. If the first preset logical address 4 is not occupied, the currently connected CEC device will not receive an acknowledgment message.

[0082] If the first preset logical address 4 is already occupied, the CEC device occupying the first preset logical address 4 will send a response confirmation message to the currently accessing CEC device. This response confirmation message is used to inform the currently accessing CEC device that the first preset logical address 4 has been occupied. After receiving the response confirmation message, the currently accessing CEC device continues to allocate logical addresses according to Table 1 until no response confirmation message is received from other CEC devices after allocating logical addresses.

[0083] For example, a second preset logical address 8 is assigned to the currently accessing CEC device. After broadcasting this logical address, if no response confirmation message is received from other CEC devices, it indicates that the second preset logical address 8 is not occupied. Therefore, the currently accessing CEC device can occupy the second preset logical address 8. After occupying the second preset logical address 8, the currently accessing CEC device sends a broadcast "Report Physical Address," which includes the physical address and logical address of the currently accessing CEC device. This broadcast is used to declare the occupation of the second preset logical address 8 to other CEC devices. If, after querying through Table 1, all logical addresses are occupied, then logical address 15 from Table 1 is assigned to the currently accessing CEC device.

[0084] After receiving the logical address of the CEC device, the display device 200 adds the logical address of the CEC device to the device list in its system. It then sends a first CEC command to the CEC device, requesting the CEC device's manufacturer information. Upon receiving the first CEC command, the CEC device replies with its manufacturer information to the display device 200. The display device 200 then sends a second CEC command to the CEC device, requesting its device name. Upon receiving the second CEC command, the CEC device replies with its device name to the display device 200. Having obtained the manufacturer information and device name of the CEC device, the display device 200 sends a connection request. When the CEC device responds with a connection success message, a connection is established between the display device 200 and the CEC device.

[0085] It's important to note that within the same CEC line, all CEC devices are essentially connected to the same line. Therefore, after the CEC of display device 200 issues a CEC command, all CEC devices on the line can receive it. Here, it's necessary to distinguish which CEC device the CEC command is addressed to based on its logical address. The logical address is contained in the header data of the CEC command. If the logical address in the CEC command header data matches the command's logical address, the corresponding CEC device will execute the opcode in the CEC command accordingly. If the logical address in the CEC command header data does not match the command's logical address, the corresponding CEC device will ignore the CEC command.

[0086] For example, the CEC command is a Standby command, which contains "start signal + 00FF + 0x36", where 00 represents the logical address of display device 200, FF represents the broadcast address (the set of logical addresses of all CEC devices), and 0x36 represents standby operation. This command is sent by display device 200 to all CEC devices, indicating that display device 200 is informing all CEC devices to enter standby mode. CEC devices on the same CEC line as display device 200 will enter standby mode upon receiving this command.

[0087] As an audio-visual display device, display device 200 requires a signal source to transmit audio-visual data. Display device 200 typically supports four HDMI input signal sources (CEC devices). If more than four CEC devices are needed, this can only be achieved by expanding the HDMI ports. For example, an HDMI switcher can be used to switch one HDMI channel to a different HDMI port on the display device 200's motherboard in real time. However, since CEC functionality relies on a CEC tree network to achieve bidirectional communication between all interconnected devices, display device 200 is usually the root device in the CEC network. Therefore, to achieve bidirectional communication between display device 200 and CEC devices, it is necessary to specify which HDMI port on display device 200 the CEC device is connected to.

[0088] Furthermore, when watching video resources using the HDMI channel, it is necessary to switch to the corresponding HDMI channel, at which point other HDMI channels are inactive. Based on this characteristic, a switch can be used to connect the active HDMI port on the circuit board to the HDMI controller on the SOC, thus enabling time-sharing operation of the HDMI ports. However, the CEC function attached to the HDMI port does not operate in a time-sharing manner. Even if the HDMI port is not on an HDMI channel, CEC messages need to be sent and received in real time, and the sending and receiving of CEC messages also needs to distinguish which HDMI port the message originates from or is sent to. Therefore, if the display device 200 and the CEC device need to establish CEC interaction, regardless of whether the CEC device is active, the display device 200 needs to know which HDMI port the CEC device is connected to.

[0089] If the display device 200 is only equipped with a native HDMI port, such as Figure 7 The diagram shows the hardware circuitry for the HDMI ports, including the native HDMI ports: HDMI_1, HDMI_2, and HDMI_3. Each native HDMI port uniquely corresponds to one HDMI controller. Figure 7As shown, HDMI_1 corresponds to the HDMI_A controller, HDMI_2 corresponds to the HDMI_B controller, and HDMI_3 corresponds to the HDMI_C controller. If the CEC device connects to the display device using a native HDMI port, since there is a correspondence between the native HDMI port and the HDMI controller, the HPD high signal generated by the HDMI controller clearly determines which native HDMI port the CEC device is currently connected to. After determining the connected native HDMI port, the display device can establish an HDMI channel using the determined native HDMI port, and then use the established HDMI to establish a CEC connection with the CEC device.

[0090] For example, such as Figure 7 As shown, if a CEC device connects to a display device using its native HDMI port HDMI_1, the HDMI_A controller connected to the native HDMI port HDMI_1 generates an HPD high signal upon detecting the CEC device's connection. Since HDMI_1 corresponds to the HDMI_A controller (i.e., they have a first mapping relationship), the first identifier of the HDMI_A controller that generated the HPD high signal can be used to determine that the HDMI port the CEC device is connected to is HDMI_1, based on the first mapping relationship. Therefore, an HDMI channel can be established between the CEC device and the display device based on the HDMI_1 port, and a CEC connection can be established between the CEC device and the display device.

[0091] It should be noted that the connection between display device 200 and CEC device can be a standard CEC connection or an ARC connection. If an ARC connection needs to be established between display device 200 and CEC device, the CEC device must be connected to an HDMI port that supports ARC, i.e., an HDMI ARC channel needs to be established. The SOC can output audio through the HDMI ARC channel. Audio and video data are input to the SOC via the original HDMI channel, and the SOC decodes and separates the video image and audio. The video image can be output through the display screen, while the audio is output to the amplifier via the HDMI ARC channel. The difference between HDMI ports with and without ARC functionality is that HDMI ports with ARC functionality have an ARC audio transmission connection to the main chip.

[0092] If the display device 200 has both a native HDMI port and an extended HDMI port, such as... Figure 8 The diagram shows the hardware circuitry for the HDMI ports, illustrating not only the native HDMI ports (HDMI_1, HDMI_2, and HDMI_3) but also the extended HDMI ports (HDMI_4 and HDMI_5). Figure 8In the circuit, the HDMI_A controller is directly connected to the HDMI_1 port of the circuit board, the HDMI_B controller is directly connected to the HDMI_2 port of the circuit board, and the HDMI_C controller can be switched to the native HDMI port HDMI_3, the extended HDMI port HDMI_4, and the extended HDMI port HDMI_5 of the circuit board in a time-sharing manner through the HDMI SWITCH.

[0093] If the CEC device is connected to the display device using an extended HDMI port, since the native HDMI port HDMI_3, extended HDMI port HDMI_4, and extended HDMI port HDMI_5 share the same HDMI_C controller, it cannot be determined which of the three ports (HDMI_3, HDMI_4, and HDMI_5) is connected to the CEC device to generate the HPD high signal. Therefore, a CEC connection between the display device 200 and the CEC device cannot be established.

[0094] In view of the above problems, some embodiments of this application provide a display device 200. To facilitate understanding of the technical solutions in some embodiments of this application, the steps are described in detail below with reference to some specific embodiments and accompanying drawings. Figure 9 This is a hardware connection block diagram of some functional modules of a display device 200 provided in some embodiments of this application. Figure 10 This is a schematic flowchart illustrating the HDMI port identification method for a display device 200 accessing a CEC device, provided in some embodiments of this application.

[0095] like Figure 9 As shown, the functional modules of the display device 200 involved in this application embodiment mainly include: a processor 250, a power supply, a display 260, an HDMI controller, an access signal detection interface (which may be a GPIO interface, and the following description uses a GPIO interface as an example), and a CEC module. The functional modules mentioned above are only for illustrating the solution description and are not intended to implement all the functional modules of this application.

[0096] The processor 250 is the core of control and signal processing for the entire display device 200. It is responsible for controlling the operation of the entire display device 200 system, including receiving external image signals, decoding image signals, processing image quality, outputting image signals, controlling the backlight assembly, and ensuring the normal operation of peripheral devices or components such as Wi-Fi and Bluetooth.

[0097] The power supply is the power output module of the entire display device 200, providing power to all modules of the display device 200. The display 260 is used to display video images. The CEC module is used to interact with the CEC device using HPD events, that is, to send and receive CEC messages with the CEC device. The CEC module may specifically include the CEC protocol stack in the embodiments of this application.

[0098] The HDMI controller generates an HPD pull-high signal when it detects a CEC device connected to the display device 200. For example, ... Figure 11 The diagram shows the circuit connection block diagram with an extended HDMI interface. Extended HDMI interface 1 and extended HDMI interface 2 share an HDMI controller. If CEC device 1 is connected to display device 200 through extended HDMI interface 1, the processor first pulls the 5V pin of extended HDMI interface 1 high (i.e., detects that the CEC device is connected to the display device 200), and then sends the 5V pin high signal to the HDMI controller. Upon receiving the 5V pin high signal, the HDMI controller generates an HPD high signal, that is, it pulls the HPD pin high. The HDMI controller sends the HPD high signal to the CEC protocol stack, so that the CEC protocol stack generates an HPD event based on the HPD high signal. Then, the CEC protocol stack can interact with the CEC device to exchange CEC messages based on the HPD event.

[0099] However, since extended HDMI interface 1 and extended HDMI interface 2 share the same HDMI controller at this time, the CEC protocol stack cannot know whether the HPD pull-up signal is generated because extended HDMI interface 1 or extended HDMI interface 2 is connected to the CEC device.

[0100] Therefore, this application is in Figure 11 Based on the circuit connection block diagram shown, two GPIO interfaces were added to obtain the following: Figure 12 The circuit connection block diagram is shown below. Figure 12 The improved circuit connection diagram shown depicts the GPIO interface connected to the 5V pin of the extended HDMI interface. Therefore, the GPIO interface can detect the state of the 5V pin and generate an access signal (hereinafter referred to as the GPIO pull-up signal) based on the 5V pin's state, reporting the GPIO pull-up signal to the CEC protocol stack. Furthermore, each extended HDMI interface corresponds to a separate GPIO interface.

[0101] based on Figure 9 The functional modules shown are Figure 12 The circuit connection block diagram shown is as follows: Figure 10As shown, the HDMI port identification method for accessing a CEC device performed by the display device 200 provided in this application embodiment includes the following steps:

[0102] Step S100: If the CEC device is connected to the display device through the native HDMI port, the first port number of the native HDMI port to which the CEC device is connected is identified based on the first identifier of the HDMI controller that generates the HPD pull-up signal and the first mapping relationship.

[0103] Step S200: If the CEC device is connected to the display device through the extended HDMI port, the second port number of the extended HDMI port to which the CEC device is connected is identified based on the second identifier of the GPIO interface that generates the GPIO pull-up signal and the second mapping relationship.

[0104] In this application embodiment, at least one extended HDMI port and one native HDMI port share an HDMI controller. This shared HDMI controller for HDMI ports presents two scenarios:

[0105] In the first scenario, a native HDMI port and at least one extended HDMI port share the same HDMI controller. If the CEC device is connected to the display device 200 via the native HDMI port, the HPD high signal generated by the HDMI controller still cannot determine which HDMI port the CEC device is connected to. The following judgment can be made: if the CEC protocol stack only receives the HPD high signal, it indicates that the CEC device is connected to the native HDMI port (since the native HDMI port is not connected to a GPIO interface); if the CEC protocol stack receives both the HPD high signal and a GPIO high signal, it indicates that the CEC device is connected to an extended HDMI port (since the extended HDMI port is connected to a GPIO interface, the CEC protocol stack can receive the GPIO high signal). Although it can be determined that the CEC device is connected to an extended HDMI port, since multiple extended HDMI ports share the same HDMI controller, it is still necessary to determine which extended HDMI port the CEC device is connected to using the method described in this application.

[0106] In the second scenario, a native HDMI port shares the same HDMI controller with at least two extended HDMI ports. If the CEC device is connected to the display device 200 via a native HDMI port, the following methods can still be used to determine whether the CEC device is connected to a native or extended HDMI port: If the CEC protocol stack receives an HPD high signal but not a GPIO high signal, it can be determined that the CEC device is connected to a native HDMI port. Then, based on the first identifier of the HDMI controller that generated the HPD signal and the first mapping relationship, the port number of the native HDMI port connected to the CEC device can be identified. If the CEC protocol stack receives both an HPD high signal and a GPIO high signal, it can be determined that the CEC device is connected to an extended HDMI port. In this case, the HPD high signal generated by the HDMI controller still cannot determine which HDMI port connected to the CEC device is responsible for it. Therefore, the GPIO interface that generated the GPIO high signal can be used to determine which HDMI port is connected to the CEC device.

[0107] Therefore, regardless of the first or second scenario, if the CEC device is connected to the display device 200 via a native HDMI port, the CEC protocol stack can only receive the HPD high signal sent by the HDMI controller. Then, based on the first identifier of the HDMI controller that generated the HPD high signal and the first mapping relationship, the first port number of the native HDMI port to which the CEC device is connected can be identified. If the CEC device is connected to the display device 200 via an extended HDMI port, the CEC protocol stack can receive both the HPD high signal sent by the HDMI controller and the GPIO high signal sent by the GPIO interface. Since the HPD high signal cannot distinguish which HDMI port is connected, the second port number of the extended HDMI port to which the CEC device is connected can be identified based on the second identifier of the GPIO interface that generated the GPIO high signal and the second mapping relationship.

[0108] For example, such as Figure 12 The circuit connection block diagram shown and Figure 13The signaling diagram illustrating the identification process shows that if CEC device 1 is connected to display device 200 via extended HDMI port 1, when CEC device 1 is connected to display device 200, extended HDMI port 1 first pulls its 5V pin high. The HDMI controller and GPIO interface 1 simultaneously detect the 5V pin high signal. The HDMI controller generates an HPD high signal based on the 5V pin high signal, and GPIO interface 1 generates a GPIO high signal based on the 5V pin high signal. Then, the HDMI controller sends the HPD high signal to the CEC protocol stack, and GPIO interface 1 sends its GPIO high signal to the CEC protocol stack. The HPD high signal carries the first identifier of the HDMI controller, and the GPIO high signal carries the second identifier of GPIO interface 1.

[0109] Since extended HDMI port 1 and extended HDMI port 2 share the same HDMI controller, it's impossible to determine which extended HDMI port is connected to the CEC device solely from the HPD high signal. However, because there's a second mapping relationship between the second identifier of GPIO interface 1 and the second port number of extended HDMI port 2, the second port number of extended HDMI port 2 currently connected to the CEC device can be determined based on the second identifier of GPIO interface 1. Therefore, it can be determined that the port currently connected to the CEC device is extended HDMI port 2.

[0110] In this embodiment, both the first and second mapping relationships can be stored in a configuration file. The configuration file can be stored in the SOC, in another memory of the display device 200, or in an external device, such as a server accessible to the display device 200. The configuration file may include the mapping relationship between the native HDMI port and the first identifier, and the mapping relationship between the extended HDMI port and the second identifier. It may also include specific port information, which may include port number and port capability information. Alternatively, the configuration file may only include the mapping relationship between the native HDMI port and the first identifier, and the mapping relationship between the extended HDMI port and the second identifier, without including specific port information. Specific port information can be stored in other memory. After finding the mapping relationship between the native HDMI port and the first identifier, and the mapping relationship between the extended HDMI port and the second identifier in the configuration file, the corresponding specific port information is retrieved from other memory or the server based on the found mapping relationship.

[0111] In some embodiments, multiple configuration files can be stored in the SOC. If no mapping relationship associated with the first identifier or the second identifier is found in one configuration file, the search can continue in other configuration files. Here, the mapping relationship associated with the first identifier or the mapping relationship associated with the second identifier can be an identification information obtained by marking the mapping relationship with the first identifier or the second identifier.

[0112] Alternatively, multiple configuration files can be prioritized. When searching for a mapping associated with either the first or second identifier, the search begins in the highest-priority configuration file. If no mapping is found in the highest-priority file, the search continues in the second-highest-priority file, and so on, until a mapping is found. In this case, the configuration file priority can be determined based on the usage frequency of the corresponding port. Typically, configuration files for ports with higher usage frequency are assigned higher priority.

[0113] For example, a SOC includes configuration file 1, configuration file 2, configuration file 3... configuration file N. Configuration file 1 stores the mapping relationship between the most frequently used port and the first identifier or the second identifier. Configuration file 2 stores the usage frequency of the ports stored in configuration file 1, configuration file 3 stores the usage frequency of the ports stored in configuration file 2, and so on. Therefore, the priority order for searching the configuration files is configuration file 1, configuration file 2, configuration file 3... configuration file N.

[0114] After the CEC device connects to the display device 200, it first searches for the mapping relationship associated with the first identifier or the second identifier in configuration file 1. Since the ports corresponding to the information stored in configuration file 1 are used most frequently, the device information can be quickly found in configuration file 1 for ports that users use frequently, thereby further improving connection efficiency. Furthermore, different mapping relationships are divided into different configuration files, which also improves the efficiency of finding device information during the mapping relationship search process. For example, if the user uses native HDMI port 1 most frequently, the mapping relationship related to native HDMI port 1 is stored in configuration file 1, which has the highest priority. Searching starts from configuration file 1, allowing for a faster retrieval of the port information for native HDMI port 1, thus improving port identification and connection efficiency.

[0115] Mapping relationships can be integrated into the SOC as plugins. This way, if new mapping relationships need to be added to the configuration file, they can be directly written into the SOC as plugins. Furthermore, the configuration file can be modified first, and then the modified configuration file can be written into the SOC as a plugin, making it convenient to add or modify configuration files.

[0116] Based on the above embodiments, a first mapping relationship exists between the first port number of the native HDMI port and the first identifier of the HDMI controller. The HDMI controller generates an HPD high signal when it detects a CEC device connected to the display device. A second mapping relationship exists between the second port number of the extended HDMI port and the second identifier of the GPIO interface. The GPIO interface generates a GPIO high signal when it detects a CEC device connected to the display device. If the CEC device is connected to the display device through the native HDMI port, the first port number of the native HDMI port connected to the CEC device can be identified based on the first identifier of the HDMI controller that generates the HPD high signal, according to the first mapping relationship. If the CEC device is connected to the display device through the extended HDMI port, the second port number of the extended HDMI port connected to the CEC device can be identified based on the second identifier of the GPIO interface that generates the GPIO high signal, according to the second mapping relationship.

[0117] In this way, even if the CEC device is connected to the display device through the extended HDMI port, and the extended HDMI port shares the same HDMI controller as the corresponding native HDMI port, the second port number of the extended HDMI port cannot be determined based on the HPD pull-up signal generated by the HDMI controller. Instead, the second port number of the extended HDMI port connected to the CEC device can be determined based on the second identifier of the GPIO interface that generates the GPIO pull-up signal, thereby achieving the effect of accurately identifying the HDMI port connected to the CEC device.

[0118] In some embodiments, if a single CEC device is connected to a display device via an extended HDMI port, only one GPIO interface generates a GPIO pull-high signal. The process of determining the extended HDMI port can be as follows:

[0119] Based on the second identifier of the GPIO interface that generates the GPIO pull-up signal, and based on the second mapping relationship, identify the second port number of the extended HDMI port connected to a single CEC device.

[0120] For example, such as Figure 12The port identification signaling diagram shown indicates that only a single CEC device 1 is connected to the display device 200 through the extended HDMI port 1. Therefore, only GPIO interface 2 detects the 5V pin level pull-up signal, and only GPIO interface 2 generates a GPIO pull-up signal. Based on the GPIO pull-up signal generated by GPIO interface 2, it can be determined that the port connected to the CEC device is the extended HDMI port 2. Similarly, if only a single CEC device 2 is connected to the display device through the extended HDMI port 2, only GPIO interface 1 detects the 5V pin level pull-up signal, and only GPIO interface 1 generates a GPIO pull-up signal. Based on the GPIO pull-up signal generated by GPIO interface 1, it can also be determined that the port connected to the CEC device is the extended HDMI port 2.

[0121] In some embodiments, if at least two CEC devices are connected to a display device through an extended HDMI port, then at least two GPIO interfaces generate GPIO pull-up signals. The process of determining the extended HDMI port may be: obtaining the time sequence in which at least two GPIO interfaces detect GPIO pull-up signals; based on the second identifier of the GPIO interface that generates the latest GPIO pull-up signal in the latest time sequence, identifying the latest second port number based on a second mapping relationship, wherein the latest second port number is the port number of the HDMI port of the most recently connected CEC device.

[0122] If at least two CEC devices are connected to display device 200 via extended HDMI ports, at least two GPIO interfaces will detect a 5V pin level pull-up signal and generate a GPIO pull-up signal. Since both GPIO interfaces generate pull-up signals simultaneously, it's impossible to determine which HDMI port connected to the CEC device caused the HPD pull-up signal (multiple extended HDMI ports share one HDMI controller, and the HDMI controller only generates one HPD pull-up signal; therefore, multiple extended HDMI ports share one HPD pull-up signal). Consequently, no HPD event corresponding to the HDMI port can be generated, and the CEC connection between display device 200 and the CEC devices cannot be established.

[0123] Since the GPIO high signal is a pulse event, the GPIO high signals generated by the corresponding GPIO interfaces when different CEC devices are connected to the display device 200 have a time sequence. Therefore, based on this principle, the order in which the CEC devices are connected to the display device 200 can be determined. Specifically, the device whose GPIO high signal is generated earlier corresponds to the one connected to the extended HDMI port of the CEC device first, and the device whose GPIO high signal is generated later corresponds to the one connected to the extended HDMI port of the CEC device later.

[0124] For example, such as Figure 14 The port identification signaling diagram shown illustrates that CEC device 1 connects to display device 200 via extended HDMI port 1, and CEC device 2 connects to display device 200 via extended HDMI port 2. Extended HDMI port 1 is connected to GPIO interface 2, and extended HDMI port 2 is connected to GPIO interface 1. If the connection order is CEC device 1 first, followed by CEC device 2, the order in which GPIO interface 1 and GPIO interface 2 generate GPIO pull-up signals is as follows: GPIO interface 2 generates a GPIO pull-up signal first (recorded as the first GPIO pull-up signal), and then generates a GPIO pull-up signal second (recorded as the second GPIO pull-up signal). Therefore, the CEC protocol stack can determine which extended HDMI ports CEC device 1 and CEC device 2 are connected to based on the time order of the received GPIO pull-up signals. At this point, the first GPIO high signal is pulled up earlier than the second GPIO high signal. The CEC device connection order is CEC device 1 connected first, followed by CEC device 2. Therefore, it can be determined that CEC device 1 corresponds to the first GPIO high signal, i.e., GPIO interface 2. Thus, it can be confirmed that CEC device 1 is connected to display device 200 via extended HDMI port 1. Similarly, it can be determined that CEC device 2 corresponds to the second GPIO high signal, i.e., GPIO interface 1. Therefore, it can be confirmed that CEC device 2 is connected to display device 200 via extended HDMI port 2.

[0125] In some embodiments, after determining the HDMI port to which the CEC device is connected, an HPD event corresponding to the HDMI port can also be generated. The generated HPD event is used to trigger the establishment of a CEC connection between the display device 200 and the CEC device connected to the corresponding HDMI port. The process of generating an HPD event when a single CEC device is connected to the display device 200 differs from the process of generating an HPD event when multiple CEC devices are connected to the display device 200.

[0126] If a single CEC device is connected to the display device 200 via an extended HDMI port, a GPIO interface detects a GPIO pull-up signal. The process of generating an HPD event can be as follows: based on the GPIO pull-up signal and the HPD pull-up signal, an HPD event corresponding to the extended HDMI port with the second port number is generated, and a CEC connection is established with the CEC device using the HPD event. The HPD pull-up signal is a signal generated by the HDMI controller corresponding to the extended HDMI port when it detects that a CEC device is connected to the display device 200.

[0127] Since only a single CEC device is connected to the display device 200 via the extended HDMI port at this time, the HPD signal is sufficient to determine that the CEC device is functioning normally. Therefore, if a single CEC device is connected to the display device 200 via the extended HDMI port, it is only necessary to generate an HPD event corresponding to the identified extended HDMI port based on the GPIO pull-up signal and the HPD pull-up signal. The display device 200 can then use the generated HPD event to establish a CEC connection with the CEC device.

[0128] For example, such as Figure 12 In the circuit connection diagram shown, when CEC device 1 is connected to display device 200 through extended HDMI port 1, the 5V pin level signal is pulled high. GPIO interface 2 is connected to extended HDMI port 1, so GPIO interface 2 can detect the 5V pin level pull-high signal and generate a GPIO pull-high signal based on it. This GPIO pull-high signal identifies the HDMI port connected to CEC device 1 as extended HDMI port 1. Upon receiving the 5V pin level pull-high signal, the HDMI controller also pulls the HPD pin level high, generating an HPD pull-high signal. Since only one device is connected to display device 200 at this time, the HPD pull-high signal alone is sufficient to determine if the CEC device is functioning correctly. Therefore, the GPIO pull-high signal and HPD signal can be used to directly generate an HPD event corresponding to extended HDMI port 1. Display device 200 can then use the generated HPD event to establish a CEC connection with CEC device 1 connected to extended HDMI port 1.

[0129] If at least two CEC devices are connected to the display device via an extended HDMI port, then at least two GPIO interfaces will generate GPIO pull-high signals. The process of generating HPD events can be as follows: traverse the physical addresses of the CEC devices connected to the display device 200, where the physical address and the second identifier of the GPIO interface have a third mapping relationship; determine the physical address of the latest connected CEC device based on the second identifier of the GPIO interface that detected the latest GPIO pull-high signal in the time sequence; generate an HPD event corresponding to the extended HDMI port with the latest second port number based on the GPIO pull-high signal and the physical address, and establish a CEC connection with the latest connected CEC device using the HPD event.

[0130] Since at least two CEC devices are connected to the display device via extended HDMI ports, the operating status of each CEC device cannot be determined through the HPD signal. Therefore, the operating status of the CEC devices can be determined using their physical addresses. Specifically, if a CEC device whose physical address can be obtained is operating normally, an HPD event can be generated accordingly; if a CEC device whose physical address cannot be obtained is operating abnormally, no HPD event can be generated. The physical addresses of the CEC devices connected to the display device 200 are iterated through. Furthermore, a third mapping relationship exists between the physical address and the second identifier of the GPIO interface. Then, based on the second identifier of the GPIO interface that generated the latest GPIO high signal, and according to the third mapping relationship, it is determined whether a physical address corresponding to the second identifier of the GPIO interface that generated the latest GPIO high signal exists among the traversed CEC device physical addresses. If a physical address corresponding to the second identifier of the GPIO interface that generated the latest GPIO high signal exists, an HPD event corresponding to the extended HDMI port with the latest second port number can be generated based on the GPIO high signal and the finally determined physical address.

[0131] For example, such as Figure 12 In the circuit connection diagram shown, CEC device 1 is connected to display device 200 through extended HDMI port 1, and CEC device 2 is connected to display device 200 through extended HDMI port 2. Both GPIO interfaces 1 and GPIO interface 2 can detect the 5V pin level pull-up signal and generate a first GPIO pull-up signal and a second GPIO pull-up signal, respectively. Since CEC device 1 is connected to display device 200 first, and CEC device 2 is connected later, the second GPIO pull-up signal occurs later than the first GPIO pull-up signal. Then, the physical addresses of the CEC devices are traversed, and based on the third mapping relationship, the physical addresses corresponding to GPIO interface 1 and GPIO interface 2 are found, which are physical address 1 and physical address 2, respectively. Therefore, the signal corresponding to CEC device 2 is the second GPIO pull-up signal, and the corresponding physical address is physical address 1. Based on the found physical address, it can be determined that CEC device 2 is working normally, and the HPD event corresponding to extended HDMI port 2 can be generated using the second GPIO pull-up signal and physical address 1. Then, the display device 200 can use the generated HPD event to establish a CEC connection with the CEC device 2 connected to the extended HDMI port 1.

[0132] Among them, such as Figure 15 As shown, the steps to obtain the physical address of the CEC device can be as follows:

[0133] Step S201: Send a ping message to the CEC device of the first type (device type number X). If the ping message is successful, it means that the information interaction channel between the CEC device and the display device 200 is successfully connected. Then proceed to step S202. If the ping message is unsuccessful, proceed to step S204.

[0134] Step S202: Send a device physical address request to the CEC device of device type 1. If a physical address is received from the CEC device of device type 1, proceed to step S204. If no physical address is received from the CEC device of device type 1, proceed to step S203.

[0135] Step S203: Determine whether the number of times the physical address request has been retried has reached a threshold. If the number of times has reached the threshold, proceed to step S204. If the number of times has not reached the threshold, proceed to step S202, that is, resend the device physical address request to the CEC device of device type 1.

[0136] Step S204: If the physical address requests for all types of CEC devices have been completed (i.e., there is no CEC device of type 2), proceed to step S205. If the physical address requests for all types of CEC devices have not been completed, return to step S201, i.e., send a ping message to the CEC device of type 2 (device type number X+1).

[0137] Step S205: Generate HPD events for the corresponding HDMI ports of all online devices in sequence.

[0138] In some embodiments, after generating the HPD pull-up signal, the HDMI controller also sends the HPD pull-up signal to the CEC device. After receiving the HPD pull-up signal, the CEC device starts the DDC (Display Data Channel) channel to read the EDID information of the display device 200, and then performs HDCP (High-bandwidth Digital Content Protection) interaction.

[0139] like Figure 16The diagram illustrates the interaction between the HDMI module of the display device 200 and the HDMI module of the CEC device. Solid lines represent data signal lines, and dashed lines represent control signal lines. The display device 200 may include an HDMI receiver / decoder chip and an EDID memory. The HDMI module of the CEC device may include an HDMI output chip and an EDID memory. The HDMI output chip outputs digital audio and video signals, which are transmitted to the HDMI decoder chip of the display device 200 via the HDMI port and HDMI line.

[0140] Digital audio and video signals input via the HDMI port can enter the HDMI receiver / decoder chip in the form of four pairs of Transmission Minimized Differential Signals (TMDS), while EDID information is retrieved through the EDID memory. The EDID information of the display device 200 can contain parameters related to the display and its performance, including vendor information, maximum image size, color settings, manufacturer presets, frequency range limitations, and strings for the display name and serial number. The video signal received by the HDMI decoder chip is sent to the video processor for output display; the audio signal is converted into stereo audio signal by the audio processor and sent to the speakers for sound playback.

[0141] In this embodiment, for different CEC devices connected via different HDMI ports, different EDID information needs to be transmitted to the CEC devices based on the different port capabilities of the HDMI ports. The specific implementation method is as follows: Figure 17 As shown, the SOC chip of display device 200 sends different EDID files to the SWITCH chip via IIC (Inter-Integrated Circuit) bus. The SWITCH chip then transmits the EDID files to different HDMI ports. Upon connection, the CEC device actively reads the corresponding EDID file. Before transmitting the EDID file to the SWITCH chip, the SOC chip needs to determine the port capabilities of the HDMI port, including supported playback formats, playback rates, and other capability parameters. After obtaining the port capabilities of the HDMI port, the corresponding EDID file is transmitted to the corresponding HDMI port. When the CEC device connects to display device 200 via the HDMI port, it can read the EDID file that matches the port capabilities of the corresponding HDMI port.

[0142] The HDMI port identification method for CEC devices described in the above embodiments, such as Figure 18 The flowchart shown below illustrates the specific application flow of the CEC connection establishment method based on the HDMI port identification method provided in this application embodiment. The flow specifically includes:

[0143] In step S3010, after the CEC device is connected to the display device 200, the CEC device detection and interaction thread is started, and it is determined whether the port currently connected to the CEC device is a native HDMI port or an extended HDMI port. The determination method can be: if a GPIO high signal is received, the CEC device is connected to an extended HDMI port; if no GPIO high signal is received, the CEC device is connected to a native HDMI port. If the port currently connected to the CEC device is a native HDMI port, proceed to step S3011; if the port currently connected to the CEC device is an extended HDMI port, proceed to step S3012.

[0144] Step S3011: After identifying the first port of the native HDMI port of the CEC device based on the HPD signal, proceed to step S3016.

[0145] Step S3012: Determine whether it is a single device access. If it is a single device access, proceed to step S3013. If it is multiple device access, proceed to step S3014.

[0146] Step S3013: Based on the GPIO high signal, identify the second port number of the extended HDMI port connected to the CEC device, and then proceed to step S3020.

[0147] Step S3014: Iterate through all CEC device types and send "Request Physical Address" CEC messages. If the physical address of the CEC device is obtained, proceed to step S3015.

[0148] Step S3015: Determine which extended HDMI port the CEC device is connected to based on the mapping table, i.e., identify the extended HDMI port to the first port number, and then proceed to step S3016. The mapping table contains the mapping relationship between GPIO interfaces and the physical addresses of HDMI ports (i.e., the physical address of the CEC device).

[0149] Step S3016: Simulate the generation of an HPD event for the extended HDMI port with port number 1, and then proceed to step S3017.

[0150] Step S3017: Establish a CEC connection between the display device 200 and the CEC device based on the HPD event. Establishing CEC interaction also requires assigning a logical address to the CEC device, obtaining the device information of the CEC device, and determining whether the CEC device is an ARC device.

[0151] The same or similar parts among the various embodiments in this specification can be referred to mutually, and will not be repeated here.

[0152] Those skilled in the art will clearly understand that the techniques in the embodiments of the present invention can be implemented using software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solutions in the embodiments of the present invention, or the parts that contribute to the prior art, can be embodied in the form of software products. These computer software products can be stored in storage media, such as ROM / RAM, magnetic disks, optical disks, etc., and include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods of various embodiments or certain parts of the embodiments of the present invention.

[0153] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

[0154] For ease of explanation, the above description has been provided in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or to limit the embodiments to the specific forms disclosed above. Various modifications and variations can be obtained based on the above teachings. The selection and description of the above embodiments are for the purpose of better explaining the principles and practical applications, thereby enabling those skilled in the art to better utilize the described embodiments and various different variations of embodiments suitable for specific use considerations.

Claims

1. A display device, characterized in that, include: monitor; At least one HDMI controller, wherein a first identifier of the HDMI controller has a first mapping relationship with a first port number of a native HDMI port, and the HDMI controller is configured to generate an HPD signal when a CEC device is detected to be connected to the display device; At least one access signal detection interface, wherein a second identifier of the access signal detection interface has a second mapping relationship with a second port number of an extended HDMI port, the access signal detection interface is configured to generate an access signal when a CEC device is detected to be connected to the display device, wherein at least one extended HDMI port and one native HDMI port share one HDMI controller, and the access signal is a different signal from the HPD signal; The processor is configured as follows: If the CEC device is connected to the display device through the native HDMI port, the first port number of the native HDMI port to which the CEC device is connected is identified based on the first identifier of the HDMI controller that generates the HPD signal and the first mapping relationship. If the CEC device is connected to the display device through the extended HDMI port, the second port number of the extended HDMI port to which the CEC device is connected is identified based on the second identifier of the access signal detection interface that generates the access signal and the second mapping relationship.

2. The display device according to claim 1, characterized in that, If a single CEC device is connected to the display device through the extended HDMI port, an access signal detection interface generates the access signal. The processor, upon executing the second identifier of the access signal detection interface that detects the access signal, and based on the second mapping relationship, identifies the second port number of the extended HDMI port to which the CEC device is connected, and is configured as follows: Based on the second identifier of the access signal detection interface that detects the access signal, and based on the second mapping relationship, the second port number of the extended HDMI port accessed by a single CEC device is identified.

3. The display device according to claim 1, characterized in that, If at least two of the CEC devices are connected to the display device through the extended HDMI port, then at least two of the access signal detection interfaces generate the access signal. The processor, upon executing the second identifier of the access signal detection interface that detected the access signal, and based on the second mapping relationship, identifies the second port number of the extended HDMI port to which the CEC device is connected, and is configured as follows: Obtain the time sequence in which at least two of the access signal detection interfaces detect the access signal; Based on the second identifier of the access signal detection interface that detected the latest access signal in the time sequence, and based on the second mapping relationship, the latest second port number is identified, wherein the latest second port number is the port number of the HDMI port that most recently accessed the CEC device.

4. The display device according to claim 3, characterized in that, If at least two of the CEC devices are connected to the display device via the extended HDMI port, the processor is further configured to: Traverse the physical addresses of the CEC devices connected to the display device, wherein the physical addresses have a third mapping relationship with the second identifier of the access signal detection interface; The physical address of the latest accessing CEC device is determined based on the second identifier of the access signal detection interface that detected the latest access signal in the time sequence; Based on the access signal and the physical address, an HPD event is generated corresponding to the extended HDMI port with the latest second port number, and a CEC connection is established with the newly accessed CEC device using the HPD event.

5. The display device according to claim 4, characterized in that, The processor, when executing the process of traversing the physical addresses of the CEC devices connected to the display device, is configured as follows: Send a physical address request to the CEC device of device type 1; If a physical address is received from the CEC device of device type 1, continue to send physical address requests to the CEC device of device type 2 until the physical addresses of all CEC devices of all device types have been traversed. If no physical address is received from the CEC device of type 1, and the number of times a physical address request has been sent to the current CEC device has not reached the threshold, a physical address request is sent to the CEC device of type 1 again. If no physical address is received from the current CEC device, and the number of times a physical address request has been sent to the CEC device of device type 1 has reached the threshold, continue sending physical address requests to the CEC device of device type 2 until the physical addresses of all CEC devices of all device types have been traversed.

6. The display device according to claim 1, characterized in that, If a single CEC device is connected to the display device via the extended HDMI port, and an access signal detection interface detects the access signal, the processor is further configured to: Based on the access signal and HPD signal, an HPD event corresponding to the extended HDMI port with the port number of the second port number is generated, and a CEC connection is established with the CEC device using the HPD event. The HPD signal is a signal generated by the HDMI controller corresponding to the extended HDMI port when it detects that the CEC device is connected to the display device.

7. The display device according to claim 1, characterized in that, The display device further includes: The converter is configured as follows: If the CEC device is connected to the display device through the extended HDMI port, the port capability of the extended HDMI port is determined according to the second port number of the extended HDMI port to which the CEC device is connected; Based on the port capabilities and a fourth mapping relationship, an EDID file to be transmitted to the extended HDMI port is determined, and the determined EDID file is transmitted to the CEC device. The fourth mapping relationship includes at least the correspondence between port capabilities and EDID files.

8. A method for identifying the HDMI port of a CEC device, characterized in that, The HDMI port identification method for accessing a CEC device is applied to a display device, the display device including at least one HDMI controller, a first mapping relationship existing between a first identifier of the HDMI controller and a first port number of a native HDMI port, the HDMI controller being configured to generate an HPD signal when a CEC device is detected accessing the display device; the display device further including at least one access signal detection interface, a second mapping relationship existing between a second identifier of the access signal detection interface and a second port number of an extended HDMI port, the access signal detection interface being configured to generate an access signal when a CEC device is detected accessing the display device, wherein at least one extended HDMI port and one native HDMI port share one HDMI controller, the access signal and the HPD signal are different signals, the method comprising: If the CEC device is connected to the display device through the native HDMI port, the first port number of the native HDMI port to which the CEC device is connected is identified based on the first identifier of the HDMI controller that generates the HPD signal and the first mapping relationship. If the CEC device is connected to the display device through the extended HDMI port, the second port number of the extended HDMI port to which the CEC device is connected is identified based on the second identifier of the access signal detection interface that generates the access signal and the second mapping relationship.

9. The HDMI port identification method for accessing a CEC device according to claim 8, characterized in that, If a single CEC device is connected to the display device through the extended HDMI port, an access signal detection interface generates the access signal. Based on the second identifier of the access signal detection interface that detects the access signal, and according to the second mapping relationship, the second port number of the extended HDMI port to which the CEC device is connected is identified, including: Based on the second identifier of the access signal detection interface that detects the access signal, and based on the second mapping relationship, the second port number of the extended HDMI port accessed by a single CEC device is identified.

10. The HDMI port identification method for accessing a CEC device according to claim 8, characterized in that, If at least two of the CEC devices are connected to the display device through the extended HDMI port, then at least two of the access signal detection interfaces generate the access signal. Based on the second identifier of the access signal detection interface that detects the access signal, and according to the second mapping relationship, the second port number of the extended HDMI port to which the CEC device is connected is identified, including: Obtain the time sequence in which at least two of the access signal detection interfaces detect the access signal; Based on the second identifier of the access signal detection interface that detected the latest access signal in the time sequence, and based on the second mapping relationship, the latest second port number is identified, wherein the latest second port number is the port number of the HDMI port that most recently accessed the CEC device.

Citation Information

Patent Citations

  • Interface device, and identification method, apparatus and system thereof

    CN106970888A

  • Method and system for uniformly identifying hot plug of multiple types of equipment

    CN110750306A