CN117812135A - Electronic device, device list acquisition method, and storage medium - Google Patents

Electronic device, device list acquisition method, and storage medium Download PDF

Info

Publication number
CN117812135A
CN117812135A CN202211658353.1A CN202211658353A CN117812135A CN 117812135 A CN117812135 A CN 117812135A CN 202211658353 A CN202211658353 A CN 202211658353A CN 117812135 A CN117812135 A CN 117812135A
Authority
CN
China
Prior art keywords
information
homekit
target
equipment
client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211658353.1A
Other languages
Chinese (zh)
Inventor
陆世明
片兆峰
韩征
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Visual Technology Co Ltd
Original Assignee
Hisense Visual Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Visual Technology Co Ltd filed Critical Hisense Visual Technology Co Ltd
Priority to CN202211658353.1A priority Critical patent/CN117812135A/en
Priority to PCT/CN2023/108893 priority patent/WO2024109129A1/en
Publication of CN117812135A publication Critical patent/CN117812135A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The present disclosure relates to an electronic device, a device list obtaining method, and a storage medium, the electronic device including: the communicator is configured to receive a device list acquisition request sent by the Homekit client after establishing connection with the Homekit client based on the Homekit protocol; a controller configured to determine device information of the electronic device and device information of each target device based on the device list acquisition request; generating target information based on the device information of the electronic device, the device information of each target device and at least one device placeholder, wherein each device placeholder is used for indicating an unknown device to be accessed, and the device information corresponding to each device placeholder is null; and the communicator is further configured to send the target information to the HomeKit client so that the HomeKit client displays the device list based on the target information.

Description

Electronic device, device list acquisition method, and storage medium
Technical Field
The embodiment of the application relates to the technical field of terminals. And more particularly, to an electronic device, a device list acquisition method, and a storage medium.
Background
With the development of smart home technology, a user can control all devices supporting the HomeKit protocol in the home through a home application program (HomeKit app) on the devices, and the devices comprise lamps, locks, thermostats, smart plugs and the like.
The electronic device carrying the HomeKit protocol can be also discovered and controlled by the HomeKit app. Taking the electronic device a as the electronic device a discovered by the HomeKit app and establishing connection, the user can control the electronic device a through the HomeKit app, for example, the HomeKit app can control not only the electronic device a, but also the electronic device B connected with the electronic device, and even the electronic device C connected with the electronic device B. In this way, the user can control a plurality of electronic devices through the HomeKit app, which provides great convenience for the user to use.
According to the Homekit protocol, a Homekit app is used as a control terminal, and a device list of the controlled device displayed on the Homekit app is obtained when the Homekit app is initialized after being connected with the electronic device A. However, once the device list is initialized, other devices that later establish a connection with the electronic device a cannot be added to the device list. That is, after the HomeKit app is connected to the electronic device a and initialized, dynamic updating of the device list displayed on the HomeKit app cannot be achieved.
Disclosure of Invention
In order to solve the technical problems or at least partially solve the technical problems, the embodiments of the present application provide an electronic device, a device list obtaining method, and a storage medium, which can dynamically update a device list displayed on a HomeKit app.
In a first aspect, an embodiment of the present application provides an electronic device, including: a communicator configured to: after establishing connection with a Homekit client based on a Homekit protocol, receiving a device list acquisition request sent by the Homekit client, wherein the device list acquisition request is used for indicating to acquire device information of each target device connected with the electronic device, and the device information comprises the identification of the device; a controller configured to: determining device information of the electronic device and device information of each target device based on the device list acquisition request, wherein the device information comprises an identifier of a corresponding device; generating target information based on the device information of the electronic device, the device information of each target device and at least one device placeholder, wherein each device placeholder is used for indicating an unknown device to be accessed, and the device information corresponding to each device placeholder is null; the communicator is further configured to: and sending the target information to the HomeKit client so that the HomeKit client displays a device list based on the target information, wherein the device list comprises the identification of the electronic device and the identification of each target device.
In some embodiments of the present application, the controller is further configured to: after the target information is sent to the HomeKit client, detecting that the first equipment and the electronic equipment are connected; updating one of the device placeholders in the target information to the device information of the first device to update the target information; the communicator is further configured to: and sending the updated target information to the HomeKit client so that the HomeKit client updates the device list based on the updated target information, wherein the updated device list comprises the identification of the electronic device, the identification of each target device and the identification of the first device.
In some embodiments of the present application, the controller is further configured to: after the target information is sent to the HomeKit client, detecting that the second device is disconnected from the electronic device, wherein the second device is any one of the target devices; updating the device information of the second device in the target information to be the device placeholder so as to update the target information; the communicator is further configured to: and sending the updated target information to the HomeKit client so that the HomeKit client updates the device list based on the updated target information, wherein the updated device list comprises the identification of the electronic device and the identification of each device except the second device in each target device.
In some embodiments of the present application, the target devices include: at least one third device; alternatively, the respective target devices include: at least one third device and at least one fourth device; each third device is directly connected with the electronic device, and each fourth device is connected with the electronic device through the corresponding third device.
In some embodiments of the present application, the electronic device is connected to each third device through an HDMI interface; in the case where the respective target devices include the at least one fourth device, each of the third devices is connected with the corresponding third device through an HDMI interface.
In some embodiments of the present application, the device information further includes a type of the corresponding device; the device list also includes the type of the electronic device and the type of the respective target device.
In some embodiments of the present application, the number of each target device and the number of the at least one device placeholder are equal to a first preset value; alternatively, the number of the at least one device placeholders is equal to a second preset value.
In a second aspect, an embodiment of the present application provides a device list obtaining method, which is applied to an electronic device, and includes: after establishing connection with a Homekit client based on a Homekit protocol, receiving a device list acquisition request sent by the Homekit client, wherein the device list acquisition request is used for indicating to acquire device information of each target device connected with the electronic device, and the device information comprises the identification of the device; determining device information of the electronic device and device information of each target device based on the device list acquisition request, wherein the device information comprises an identifier of a corresponding device; generating target information based on the device information of the electronic device, the device information of each target device and at least one device placeholder, wherein each device placeholder is used for indicating an unknown device to be accessed, and the device information corresponding to each device placeholder is null; and sending the target information to the HomeKit client so that the HomeKit client displays a device list based on the target information, wherein the device list comprises the identification of the electronic device and the identification of each target device.
In some embodiments of the present application, after the target information is sent to the HomeKit client, the method further includes: detecting that the first device establishes connection with the electronic device; updating one of the device placeholders in the target information to the device information of the first device to update the target information; and sending the updated target information to the HomeKit client so that the HomeKit client updates the device list based on the updated target information, wherein the updated device list comprises the identification of the electronic device, the identification of each target device and the identification of the first device.
In some embodiments of the present application, after the target information is sent to the HomeKit client, the method further includes: detecting that a second device is disconnected from the electronic device, the second device being any one of the respective target devices; updating the device information of the second device in the target information to be the device placeholder so as to update the target information; and sending the updated target information to the HomeKit client so that the HomeKit client updates the device list based on the updated target information, wherein the updated device list comprises the identification of the electronic device and the identification of each device except the second device in each target device.
In some embodiments of the present application, the target devices include: at least one third device; alternatively, the respective target devices include: at least one third device and at least one fourth device; each third device is directly connected with the electronic device, and each fourth device is connected with the electronic device through the corresponding third device.
In some embodiments of the present application, the electronic device is connected to each third device through an HDMI interface; in the case where the respective target devices include the at least one fourth device, each of the third devices is connected with the corresponding third device through an HDMI interface.
In some embodiments of the present application, the device information further includes a type of the corresponding device; the device list also includes the type of the electronic device and the type of the respective target device.
In some embodiments of the present application, the number of each target device and the number of the at least one device placeholder are equal to a first preset value; alternatively, the number of the at least one device placeholders is equal to a second preset value.
In a third aspect, embodiments of the present application provide a computer-readable storage medium, comprising: the computer-readable storage medium stores thereon a computer program which, when executed by a processor, implements the device list acquisition method as shown in the second aspect.
In a fourth aspect, embodiments of the present application provide a computer program product comprising: the computer program product, when run on a computer, causes the computer to implement the device list retrieval method as shown in the second aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: in the embodiment of the present invention, by adding the device placeholders in the target information, since each device placeholder is used to indicate an unknown device to be accessed, and the device information corresponding to each device placeholder is empty, the device list generated by the HomeKit client based on the target information will not misguide the user because the device list includes some identifications of the unaccessed devices, and the device list reserves a location for the unknown device to be accessed, so when other devices establish a connection with the electronic device, one device placeholder in the target information can be updated by using the device information of the other devices, so as to update the target information, and then the HomeKit client updates the device list based on the updated target information, so as to dynamically update the device list displayed on the HomeKit client.
Drawings
In order to more clearly illustrate the embodiments of the present application or the implementation in the related art, a brief description will be given below of the drawings required for the embodiments or the related art descriptions, and it is apparent that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings for those of ordinary skill in the art.
FIG. 1 illustrates one of the operating scenarios between a control device and an electronic device, in accordance with some embodiments;
FIG. 2 illustrates a hardware configuration block diagram of an electronic device 200, according to some embodiments;
FIG. 3 illustrates a second operational scenario between a control device and an electronic device, according to some embodiments;
FIG. 4 illustrates a third operational scenario between a control device and an electronic device, according to some embodiments;
FIG. 5 illustrates one of the flow diagrams of a device list acquisition method according to some embodiments;
FIG. 6 illustrates a second flow diagram of a device list acquisition method in accordance with some embodiments;
FIG. 7 illustrates a third flow diagram of a device list acquisition method in accordance with some embodiments;
FIG. 8 illustrates a block diagram of a structure between a cell phone and a television in accordance with some embodiments;
FIG. 9 illustrates a fourth flow diagram of a device list acquisition method, according to some embodiments;
fig. 10 illustrates a fifth flow diagram of a device list acquisition method, according to some embodiments.
Detailed Description
For purposes of clarity and implementation of the present application, the following description will make clear and complete descriptions of exemplary implementations of the present application with reference to the accompanying drawings in which exemplary implementations of the present application are illustrated, it being apparent that the exemplary implementations described are only some, but not all, of the examples of the present application.
It should be noted that the brief description of the terms in the present application is only for convenience in understanding the embodiments described below, and is not intended to limit the embodiments of the present application. Unless otherwise indicated, these terms should be construed in their ordinary and customary meaning.
The terms "first," second, "" third and the like in the description and in the claims and in the above-described figures are used for distinguishing between similar or similar objects or entities and not necessarily for limiting a particular order or sequence, unless otherwise indicated. It is to be understood that the terms so used are interchangeable under appropriate circumstances.
The terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a product or apparatus that comprises a list of elements is not necessarily limited to all elements explicitly listed, but may include other elements not expressly listed or inherent to such product or apparatus.
The electronic device provided in this embodiment of the present application may have various implementation forms, for example, may be a television, an intelligent television, a laser projection device, a display (monitor), an electronic whiteboard (electronic bulletin board), an electronic desktop (electronic table), a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, and the like.
Fig. 1 is a schematic diagram of an operation scenario between a control device and an electronic device according to an embodiment, in which a HomeKit app is installed in the control device 100, and the electronic device 200 supports the HomeKit protocol, so that after the control device 100 establishes a connection with the electronic device 200 through the HomeKit app, a user can control the electronic device 200 supporting the HomeKit protocol, and other devices directly or indirectly connected with the electronic device 200 through the HomeKit app installed in the control device 100.
In some embodiments, the control device 100 may be an iOS device, such as an iPhone, iPad, or other handheld device, with an iOS operating system installed with a HomeKit app, or a device with another operating system installed with a HomeKit app. The control device 100 may establish a connection by means of device discovery after connecting the same wired or wireless network as the electronic device 200. The user may enter user instructions via voice input, control panel input, gesture input, etc., to control the device 100.
As shown in fig. 2, the electronic apparatus 200 includes at least one of a modem 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a user interface 280, an external memory, and a power supply.
In some embodiments the controller includes a processor, a video processor, an audio processor, a graphics processor, RAM, ROM, a first interface for input/output to an nth interface.
The display 260 includes a display screen component for presenting a picture, and a driving component for driving an image display, a component for receiving an image signal from the controller output, displaying video content, image content, and a menu manipulation interface, and a user manipulation UI interface.
The display 260 may be a liquid crystal display, an OLED display, a projection device, or a projection screen.
The communicator 220 is a component for communicating with external devices or servers according to various communication protocol types. For example: the communicator may include at least one of a Wifi module, a bluetooth module, a wired ethernet module, or other network communication protocol chip or a near field communication protocol chip, and an infrared receiver. The electronic apparatus 200 may establish transmission and reception of control signals and data signals with the external control apparatus 100 or the server 400 through the communicator 220.
The user interface 280 may be used to receive control signals for controlling the device 100 (e.g., an infrared remote control, etc.). Or may be used to directly receive user input operation instructions and convert the operation instructions into instructions recognizable and responsive by the electronic device 200, which may be referred to as a user input interface.
The detector 230 is used to collect signals of the external environment or interaction with the outside. For example, detector 230 includes a light receiver, a sensor for capturing the intensity of ambient light; alternatively, the detector 230 includes an image collector such as a camera, which may be used to collect external environmental scenes, user attributes, or user interaction gestures, or alternatively, the detector 230 includes a sound collector such as a microphone, or the like, which is used to receive external sounds.
The external device interface 240 may include, but is not limited to, the following: high Definition Multimedia Interface (HDMI), analog or data high definition component input interface (component), composite video input interface (CVBS), USB input interface (USB), RGB port, etc. The input/output interface may be a composite input/output interface formed by a plurality of interfaces.
The modem 210 receives broadcast television signals through a wired or wireless reception manner, and demodulates audio and video signals, such as EPG data signals, from a plurality of wireless or wired broadcast television signals.
In some embodiments, the controller 250 and the modem 210 may be located in separate devices, i.e., the modem 210 may also be located in an external device to the main device in which the controller 250 is located, such as an external set-top box or the like.
The controller 250 controls the operation of the electronic device and responds to the user's operations through various software control programs stored on a memory (internal memory or external memory). The controller 250 controls the overall operation of the electronic device 200. For example: in response to receiving a user command to select a UI object to be displayed on the display 260, the controller 250 may perform an operation related to the object selected by the user command.
In some embodiments, the controller includes at least one of a central processing unit (Central Processing Unit, CPU), a video processor, an audio processor, a graphics processor (Graphics Processing Unit, GPU), and a random access Memory (Random Access Memory, RAM), a Read-Only Memory (ROM), a first interface to an nth interface for input/output, a communication Bus (Bus), and the like.
The RAM is also called as a main memory and is an internal memory for directly exchanging data with the controller. It can be read and written at any time (except when refreshed) and is fast, often as a temporary data storage medium for an operating system or other program in operation. The biggest difference from ROM is the volatility of the data, i.e. the stored data will be lost upon power down. RAM is used in computer and digital systems to temporarily store programs, data, and intermediate results. ROM operates in a non-destructive read mode, and only information which cannot be written can be read. The information is fixed once written, and even if the power supply is turned off, the information is not lost, so the information is also called a fixed memory.
The user may input a user command through a Graphical User Interface (GUI) displayed on the display 260, and the user input interface receives the user input command through the Graphical User Interface (GUI). Alternatively, the user may input the user command by inputting a specific sound or gesture, and the user input interface recognizes the sound or gesture through the sensor to receive the user input command.
A "user interface" is a media interface for interaction and exchange of information between an application or operating system and a user, which enables conversion between an internal form of information and a user-acceptable form. A commonly used presentation form of the user interface is a graphical user interface (Graphic User Interface, GUI), which refers to a user interface related to computer operations that is displayed in a graphical manner. It may be an interface element such as an icon, a window, a control, etc. displayed in a display screen of the electronic device, where the control may include a visual interface element such as an icon, a button, a menu, a tab, a text box, a dialog box, a status bar, a navigation bar, a Widget, etc.
With the development of smart home technology, a user can control all devices supporting the HomeKit protocol in the home through a home application program (HomeKit app) on the iOS device, and the devices comprise a lamp, a lock, a thermostat, a smart plug and the like.
The electronic device carrying the HomeKit protocol can be also discovered and controlled by the HomeKit app of the iOS device side. Taking the electronic device a as a discovered and connected HomeKit app, a user can control the electronic device a through the HomeKit app at the iOS device end, for example, the HomeKit app can control not only the electronic device a, but also the electronic device B connected with the electronic device, and even the electronic device C connected with the electronic device B. In this way, the user can control a plurality of electronic devices through the HomeKit app on the iOS device, which provides great convenience for the user to use.
According to the HomeKit protocol, the iOS device end serves as a control end, and a device list of the controlled device displayed on the iOS device is obtained when the iOS device is initialized after being connected with the electronic device A. However, once the device list is initialized, other devices that are later connected directly or indirectly to the electronic device a cannot be added to the device list. That is, after the iOS device connects with the electronic device a and is initialized, dynamic updating of the device list displayed on the iOS device cannot be achieved.
In order to solve the technical problem, the embodiment of the application provides a device list acquisition method, specifically a method for dynamically updating a device list by presetting a device placeholder based on a HomeKit protocol, specifically a method for receiving a device list acquisition request sent by a HomeKit client after establishing connection with the HomeKit client based on the HomeKit protocol, wherein the device list acquisition request is used for indicating to acquire device information of each target device connected with the electronic device, and the device information comprises a device identifier; determining device information of the electronic device and device information of each target device based on the device list acquisition request, wherein the device information comprises an identifier of a corresponding device; generating target information based on the device information of the electronic device, the device information of each target device and at least one device placeholder, wherein each device placeholder is used for indicating an unknown device to be accessed, and the device information corresponding to each device placeholder is null; and sending the target information to the HomeKit client so that the HomeKit client displays a device list based on the target information, wherein the device list comprises the identification of the electronic device and the identification of each target device. In this way, by adding the device placeholders in the target information, since each device placeholder is used for indicating an unknown device to be accessed, and the device information corresponding to each device placeholder is empty, the user cannot be misled because the device list generated by the HomeKit client based on the target information includes some identifications of the unaccessed devices, and the position is reserved in the device list for the unknown device to be accessed, therefore, when other devices are connected with the electronic device, one device placeholder in the target information can be updated by using the device information of the other devices later, so that the target information can be updated, and then the device list is updated by the HomeKit client based on the updated target information, so that the device list displayed on the HomeKit client can be dynamically updated.
The embodiment of the application provides an electronic device and a device list obtaining method, wherein the electronic device can achieve the device list obtaining method provided by the embodiment of the application, or a functional module or a functional entity in the electronic device can achieve the device list obtaining method provided by the embodiment of the application. The electronic device includes: the communicator and the controller correspond to the communicator 220 and the controller 250 in fig. 2 described above, respectively. The HomeKit client may be the control device 100 in the figure, or may be a HomeKit app installed in the control device 100, which may specifically be determined according to actual situations, and is not limited herein.
In some embodiments of the present application, in order to enable a HomeKit client to dynamically update a device list of a device controlled by an electronic device, a communicator receives a device list acquisition request sent by the HomeKit client and used for indicating to acquire device information (device information includes an identifier of a device) of each target device connected to the electronic device after establishing a connection with the HomeKit client based on a HomeKit protocol; the controller determines equipment information of the electronic equipment and equipment information of each target equipment based on the equipment list acquisition request, wherein the equipment information comprises identification of corresponding equipment; then generating target information based on the device information of the electronic device, the device information of each target device and at least one device placeholder; the communicator sends the target information to the HomeKit client so that the HomeKit client displays a device list based on the target information, wherein the device list comprises the identification of the electronic device and the identification of each target device. In the embodiment of the present invention, by adding the device placeholders in the target information, since each device placeholder is used to indicate an unknown device to be accessed, and the device information corresponding to each device placeholder is empty, the device list generated by the HomeKit client based on the target information will not misguide the user because the device list includes some identifications of the unaccessed devices, and the device list reserves a location for the unknown device to be accessed, so when other devices establish a connection with the electronic device, one device placeholder in the target information can be updated by using the device information of the other devices, so as to update the target information, and then the HomeKit client updates the device list based on the updated target information, so as to dynamically update the device list displayed on the HomeKit client.
Each device placeholder is used for indicating an unknown device to be accessed, and can be understood as a position reserved for device information of one device to be accessed in the target information corresponding to each device placeholder, so that the position is reserved for the device to be accessed in a device list generated by the Homekit client based on the target information. The device to be accessed may be any device that is directly connected or indirectly connected to the electronic device, which is not limited herein.
The HomeKit client device is used for discovering the electronic device and controlling the electronic device and various other devices connected (directly connected or indirectly connected) with the electronic device. After the HomeKit client is connected with the electronic equipment through the same wired or wireless network, the HomeKit client performs equipment discovery, and when the HomeKit client discovers the electronic equipment, connection with the electronic equipment is established, and specific processes can refer to the prior related technology and are not repeated herein.
After the HomeKit client establishes connection with the electronic equipment, an equipment list acquisition request is sent to the electronic equipment, and then target information sent by the electronic equipment is received. The HomeKit client generates a device list based on the target information, specifically, generates a device list based on the identification of the electronic device and the identification of each target device in the target information, and the device list does not include the identification of the unknown device to be accessed indicated by each device placeholder because the device information corresponding to the device placeholder is empty. The HomeKit client may display the identifier of the device whose device information is not empty in the target information in the device list, and ignore the device placeholder whose device information is empty in the target information, and does not display the device placeholder in the device list.
The direct connection between the electronic device and the device a means that the electronic device and the device a are directly connected in a wired or wireless manner, and are not connected through other devices. The indirect connection between the electronic device and the device B means that the electronic device is connected to the device B through the device C, which may also be understood as a direct connection between the electronic device and the device C, and a direct connection between the device C and the device B. Wherein device a and device C may be referred to as an inherent connection of an electronic device and device B may be referred to as an extended connection of an electronic device.
In some embodiments of the present application, when the electronic device detects that a connection (direct connection or indirect connection) is established with another device, the identifier of the other device may be dynamically updated to the device list, so that the HomeKit client may control the newly accessed other device.
In some embodiments of the present application, after sending the target information to the HomeKit client, the controller detects that the first device establishes a connection with the electronic device; then updating one of the device placeholders in the target information into the device information of the first device so as to update the target information; the communicator sends the updated target information to the HomeKit client so that the HomeKit client updates the device list based on the updated target information, and the updated device list comprises the identification of the electronic device, the identification of each target device and the identification of the first device.
In the embodiment of the application, when the first device and the electronic device are connected, device information of the first device is used for replacing one device placeholder in the target information to obtain updated target information, then the updated target information is sent to the Homekit client, so that the Homekit client adds the identification of the first device to the device list based on the information of the first device in the updated target information, and therefore the device list displayed by the Homekit client is dynamically updated after the new device is accessed to the electronic device.
In this embodiment of the present application, when the electronic device detects that the electronic device is disconnected (directly connected or indirectly connected) from a target device, the identifier of the target device may be dynamically deleted from the device list, so as to avoid that the user controls the disconnected target device through the HomeKit client.
In some embodiments of the present application, after sending the target information to the HomeKit client, the controller detects that a second device is disconnected from the electronic device, where the second device is any one of the target devices; then updating the device information of the second device in the target information into a device placeholder so as to update the target information; and then the communicator sends the updated target information to the HomeKit client so that the HomeKit client updates the device list based on the updated target information, and the updated device list comprises the identification of the electronic device and the identification of each device except the second device in each target device.
In some embodiments of the present application, after sending the target information to the HomeKit client, the controller detects that a second device is disconnected from the electronic device, where the second device is any one of the target devices; then deleting the device information of the second device from the target information to update the target information; and then the communicator sends the updated target information to the HomeKit client so that the HomeKit client updates the device list based on the updated target information, and the updated device list comprises the identification of the electronic device and the identification of each device except the second device in each target device.
In the embodiment of the present invention, when the second device is disconnected from the electronic device, a device placeholder may be used to replace the device information of the second device in the target information, or the device information of the second device may be deleted from the target information to obtain updated target information, and then the updated target information is sent to the HomeKit client, so that the HomeKit client deletes the identifier of the second device from the device list based on the updated target information that does not include the device information of the second device, thereby implementing dynamic update of the device list displayed by the HomeKit client after the accessed device is connected to the electronic device, without disconnecting the electronic device from the HomeKit client in the process, and then reconnecting the electronic device, and implementing dynamic update of the device list displayed by the HomeKit client under the condition that the electronic device is kept connected to the HomeKit client.
In this embodiment of the present application, the number of devices directly connected to the electronic device in each target device is not limited, and the number of devices indirectly connected to the electronic device is not limited.
In some embodiments of the present application, the target devices include: at least one third device, each third device being directly connected to the electronic device. I.e. each target device is a third device and each target device is a device directly connected to the electronic device.
Illustratively, as shown in fig. 3, a HomeKit client is taken as a mobile phone 301 installed with a HomeKit app, an electronic device is a television 201 supporting the HomeKit protocol, at least one third device is 3 third devices, and each third device is an HDMI device 302 directly connected to the television through an HDMI interface.
In some embodiments of the present application, the target devices include: at least one third device and at least one fourth device; each third device is directly connected with the electronic device, and each fourth device is connected with the electronic device through the corresponding third device. I.e. one target device is one third device or one fourth device. The at least one fourth device may be connected to the electronic device through the same third device, or may be connected to the electronic device through a different third device, which may specifically be determined according to the actual situation, and is not limited herein.
As shown in fig. 4, an exemplary embodiment of the present invention uses a HomeKit client as a mobile phone 301 with a HomeKit app installed therein, an electronic device as a tv 302 supporting the HomeKit protocol, at least one third device as 2 third devices, at least one fourth device as 2 fourth devices, each third device as an HDMI device 303 directly connected to the tv through an HDMI interface, and each fourth device as an HDMI device 304 directly connected to one third device through an HDMI interface.
In this embodiment of the present application, the connection manner of the target device directly connected to the electronic device and the electronic device is not limited, and the connection manner of the target device indirectly connected to the electronic device and the electronic device is not limited, and may be a wired interface connection, such as a high-definition multimedia interface (High Definition Multimedia Interface, HDMI) connection, a USB interface connection, or the like, or a wireless connection, such as a bluetooth connection, a WiFi connection, or the like, which may be specifically determined according to an actual situation, and is not limited herein.
In some embodiments of the present application, the electronic device is connected to each third device through an HDMI interface; in the case where the respective target devices include the at least one fourth device, each of the third devices is connected with the corresponding third device through an HDMI interface.
The HDMI interface is a digital video/audio interface technology, is a special digital interface suitable for image transmission, can transmit audio and image signals at the same time, has a highest data transmission speed of 2.25GB/s, and does not need to perform digital/analog or analog/digital conversion before signal transmission. HDMI can be used in combination with High-bandwidth digital content protection (HDCP) technology to protect copyrighted video and audio content from unauthorized copying. The additional space provided by HDMI can be applied in audio and video formats that are upgraded later.
In the embodiment of the application, when the electronic device and each target device are devices with display screens, when the transmitted data are audio and video data, the data are connected through the HDMI interface, so that the data transmission efficiency can be improved, the safety of the data in the transmission process can be protected, and the audio and video format updated in the future can be supported.
In some embodiments of the present application, the device information further includes a type of the corresponding device; the device list also includes the type of the electronic device and the type of the respective target device.
Illustratively, when the electronic device is connected to the HomeKit client and initialized, the device list includes the identity and type of the electronic device, and the identity and type of each target device; when the connection between the electronic equipment and the first equipment is detected, updating the equipment list to comprise the identification and the type of the electronic equipment, the identification and the type of each target equipment and the identification and the type of the first equipment; upon detecting that the electronic device is disconnected from the second device, the device list is updated to include the identity and type of the electronic device, as well as the identity and type of other devices in the respective target devices than the second device.
In the embodiment of the invention, the equipment information comprises the types of the equipment, and the identification and the types of the equipment can be displayed in the equipment list, so that a user can better know the identification and the types of each equipment according to the equipment list displayed by the Homekit client, and the equipment can be better controlled according to the user requirement.
In some embodiments of the present application, the number of each target device and the number of the at least one device placeholder are equal to a first preset value; alternatively, the number of the at least one device placeholders is equal to a second preset value.
The first preset value and the second preset value may be determined according to actual situations, which is not limited herein.
In some embodiments of the present application, the first preset value is greater than the second preset value.
In this embodiment of the present application, the total number of devices controlled by the HomeKit client based on connection with the electronic device (i.e., the total number of electronic devices, each target device, and at least one device placeholder, i.e., the sum of the first preset value and 1) may be set according to the attribute of the electronic device, the total number of devices controlled by the HomeKit client and other information input by the user, and the number of at least one device placeholder (i.e., the second preset value) may also be set according to the attribute of the electronic device, the total number of devices controlled by the HomeKit client and other information input by the user, so the number of device placeholders to be added in the target information may be set according to actual requirements, and management efficiency of the device list may be improved.
In order to describe the present solution in more detail, the following description will be made with reference to fig. 5 to 10 by way of example, and it will be understood that the steps referred to in fig. 5 to 10 may include more steps or fewer steps when actually implemented, and the order between these steps may also be different, so as to enable the device list obtaining method provided in the embodiment of the present application. The execution body of the device list obtaining method may be an electronic device, or may be a functional module or a functional entity in the electronic device that can implement the device list obtaining method, which is not limited herein. In addition, the specific description of the method for obtaining the device list provided in the embodiment of the present application may refer to the related description of the electronic device, and may achieve the same or similar technical effects, which are not repeated herein.
Fig. 5 is a flowchart of steps for implementing a device list acquisition method according to one or more embodiments of the present application, where the device list acquisition method may include:
s501, after connection is established with a Homekit client based on a Homekit protocol, receiving a device list acquisition request sent by the Homekit client.
Wherein the device list acquisition request is used for indicating to acquire device information of each target device connected with the electronic device, and the device information comprises an identification of the device.
S502, determining device information of the electronic device and device information of each target device based on the device list acquisition request.
Wherein the device information includes an identification of the corresponding device.
S503, generating target information based on the device information of the electronic device, the device information of the respective target devices, and at least one device placeholder.
Each device placeholder is used for indicating an unknown device to be accessed, and the device information corresponding to each device placeholder is null.
S504, the target information is sent to the HomeKit client so that the HomeKit client displays a device list based on the target information.
Wherein the list of devices includes an identification of the electronic device and an identification of the respective target device.
In the embodiment of the present invention, by adding the device placeholders in the target information, since each device placeholder is used to indicate an unknown device to be accessed, and the device information corresponding to each device placeholder is empty, the device list generated by the HomeKit client based on the target information will not misguide the user because the device list includes some identifications of the unaccessed devices, and the device list reserves a location for the unknown device to be accessed, so when other devices establish a connection with the electronic device, one device placeholder in the target information can be updated by using the device information of the other devices, so as to update the target information, and then the HomeKit client updates the device list based on the updated target information, so as to dynamically update the device list displayed on the HomeKit client.
In some embodiments of the present application, as shown in fig. 6 in conjunction with fig. 5, after S504 described above, the device list obtaining method provided in the embodiments of the present application may further include S505 to S507 described below.
S505, detecting that the first device establishes connection with the electronic device.
S506, updating one device placeholder in the target information into the device information of the first device so as to update the target information.
S507, the updated target information is sent to the HomeKit client so that the HomeKit client updates the equipment list based on the updated target information.
The updated device list includes the identification of the electronic device, the identification of each target device, and the identification of the first device.
In some embodiments of the present application, as shown in fig. 7 in conjunction with fig. 5, after S504 described above, the device list obtaining method provided in the embodiments of the present application may further include S508 to S510 described below.
And S508, detecting that the second device is disconnected from the electronic device.
Wherein the second device is any one of the respective target devices.
S509, updating the device information of the second device in the target information to be the device placeholder, so as to update the target information.
S510, the updated target information is sent to the HomeKit client, so that the HomeKit client updates the device list based on the updated target information.
The updated device list includes the identification of the electronic device and the identification of each device except the second device in each target device.
In some embodiments of the present application, the target devices include: at least one third device; alternatively, the respective target devices include: at least one third device and at least one fourth device; each third device is directly connected with the electronic device, and each fourth device is connected with the electronic device through the corresponding third device.
In some embodiments of the present application, the electronic device is connected to each third device through an HDMI interface; in the case where the respective target devices include the at least one fourth device, each of the third devices is connected with the corresponding third device through an HDMI interface.
In some embodiments of the present application, the device information further includes a type of the corresponding device; the device list also includes the type of the electronic device and the type of the respective target device.
In some embodiments of the present application, the number of each target device and the number of the at least one device placeholder are equal to a first preset value; alternatively, the number of the at least one device placeholders is equal to a second preset value.
In an exemplary embodiment, taking the iOS device end as a mobile phone, the electronic device as a television, and the electronic device connected with other devices through HDMI interfaces, according to the HomeKit protocol, a device list displayed on the mobile phone end is initialized after the mobile phone is connected with the television. The list, once initialized, cannot add new devices. Although the number of HDMI interfaces of the television is fixed, the mobile phone can be solidified after being connected with the television. But the device connected to the HDMI interface of the external device can also be extended to connect to other HDMI devices, which are variable. On the premise that the mobile phone and the television are linked, the data cannot be dynamically added to the mobile phone terminal, so that the mobile phone terminal cannot dynamically display the equipment accessed after the mobile phone terminal is connected.
Illustratively, as shown in fig. 8, the mobile phone is used as a control terminal, a HomeKit app is installed on the mobile phone, and the television is used as a controlled terminal supporting the HomeKit protocol, and is composed of a HomeKit proxy (proxy) module 601, a data processing module 602 and a device management module 603. Wherein, homeKit Proxy module 601: is responsible for establishing network connection and data communication with the mobile phone. Receiving control instructions and data (including a device list acquisition request) sent by a mobile phone; the data processing module 602: the data processing module is further configured to add at least one device placeholder based on the device information of the television and the device information of each device, reorganize the data, generate target information, and return the target information to the HomeKit Proxy module 601, so that the HomeKit Proxy module 601 returns to the mobile phone; the device management module 603 is configured to obtain device information of the television, device information of each device connected to the television, determine the number of devices connected to the television, and the like, and report the obtained information to the data processing module 602.
In the following description, the inherent device list information includes device information of a television, device information of a device directly connected to the television; the extended device list information includes device information of devices indirectly connected to the television. When the television is directly connected with the target device through the HDMI interface or indirectly connected with the target device, the device management module 603 is used for identifying connection information corresponding to each HDMI interface of the television, determining third devices connected by the intrinsic HDMI interface of the television, acquiring device information of the corresponding third devices, and then determining intrinsic device list information based on the device information of the television and the device information of each third device; then, in the process of passing through the HDMI interface, fourth devices connected by the HDMI interface are acquired from third devices directly connected with the television, the device information of the fourth devices is acquired, and then an extended device list is obtained based on the device information of each fourth device.
In some embodiments of the present application, as shown in fig. 9, the device list obtaining method provided in the embodiment of the present application includes the following S701 to S710.
S701, after the mobile phone and the television are connected with the same network, equipment discovery is carried out through a HomeKit app, and connection is established with the television.
S702, after the mobile phone and the television link are established, the mobile phone sends a device list acquisition request to the television.
S703, after receiving the equipment list acquisition request, the HomeKit Proxy module of the television sends the equipment list acquisition request to the data processing module.
S704, the data processing module of the television sends a device list acquisition request to the device management module.
And after receiving the equipment list acquisition request, the HomeKit Proxy module of the television calls the data processing module of the television to request the equipment list from the equipment management module.
S705, the device management module acquires the inherent device list information and the extended device list information.
It can be understood that the device management module obtains the number of the local HDMI interfaces of the television, the device information of the television, and the device information of the devices connected to the HDMI interfaces, to obtain the inherent device list information, and at the same time, obtains whether the connected devices to the HDMI interfaces are connected to the expansion devices, and obtains the device information of the expansion devices connected to the connected devices to the HDMI interfaces, to obtain the expansion device list information.
S706, the device management module returns the inherent device list information and the extended device list information to the data processing module.
S707, the data processing module adds N device placeholders based on the inherent device list information and the extended device list information, sets the device name as null, and generates target information.
And S708, the data processing module returns the target information to the HomeKit Proxy module.
S709, the HomeKit Proxy module sends the target information to the mobile phone.
And S710, after receiving the target information, the mobile phone displays a device list based on the target information.
It can be understood that the mobile phone displays the identification of each inherent device or the identification and type of each inherent device based on the device information of each device in the inherent device list information according to the target information; and displaying the identification of each expansion device or the identification and type of each expansion device based on the device information of each device in the expansion device list information, and ignoring each device placeholder. It can also be understood that the mobile phone displays the device information of the device whose device information is not empty in the target information, and ignores the device placeholder whose device information is not empty. Thus, the initialization work of the device list is completed, and the initialized device list reserves a position for the device to be accessed.
In some embodiments of the present application, after the initialization of the device list is completed, if the user newly accesses the extension device during the use process of the television, the mobile phone end HomeKit app update list needs to be notified, as shown in fig. 10, and the specific process includes the following steps S801 to S808.
S801, a HomeKit Proxy module issues a monitoring instruction to a data processing module to monitor whether equipment is connected to a television or equipment connected with the television.
S802, the data processing module forwards the monitoring instruction to the device management module.
S803, the device management module responds to the monitoring instruction, and when the device connected with the television is monitored by the new extension device, the device information of the newly connected extension device is obtained.
S804, the device management module returns the device information of the newly accessed extension device to the data processing module.
The device management module may update the device information of the newly accessed extension device to the list information of the extension device, and then send the updated device information to the data processing module, or may independently send the device information of the newly accessed extension device to the data processing module.
S805, the data processing module receives the device information of the newly accessed extension device, and replaces one device placeholder in the target information with the newly accessed extension device information to update the target information.
S806, the data processing module sends the updated target information to the HomeKit Proxy module.
S807, the HomeKit Proxy module sends the updated target information to the mobile phone.
S808, after receiving the updated target information, the mobile phone displays the updated equipment list based on the updated target information.
It can be understood that after the device management module recognizes that a new expansion device is accessed, the device information of the new expansion device is returned to the data processing module, the data processing module updates the device information of the new expansion device to a device placeholder of the target information, and sets information such as name and type of the new expansion device, so that the device placeholder becomes a real device; the updated target information is sent to the mobile phone end through the HomeKit Proxy module, after the mobile phone receives the updated target information, the device placeholders in the list are refreshed, and the device list displayed on the mobile phone can be refreshed due to the fact that the placeholders have real information such as names, types and the like.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements each process executed by the above device list obtaining method, and can achieve the same technical effect, so that repetition is avoided, and no further description is provided herein.
The computer readable storage medium may be a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, an optical disk, or the like.
The present invention provides a computer program product comprising: the computer program product, when run on a computer, causes the computer to implement the device list retrieval method described above.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.
The foregoing description, for purposes of explanation, has been presented in conjunction with specific embodiments. However, the illustrative discussions above are not intended to be exhaustive or to limit the embodiments to the precise forms disclosed above. Many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles and the practical application, to thereby enable others skilled in the art to best utilize the embodiments and various embodiments with various modifications as are suited to the particular use contemplated.

Claims (10)

1. An electronic device, comprising:
a communicator configured to: after establishing connection with a Homekit client based on a Homekit protocol, receiving a device list acquisition request sent by the Homekit client, wherein the device list acquisition request is used for indicating to acquire device information of each target device connected with the electronic device, and the device information comprises a device identifier;
a controller configured to: determining equipment information of the electronic equipment and equipment information of each target equipment based on the equipment list acquisition request, wherein the equipment information comprises identification of corresponding equipment;
generating target information based on the device information of the electronic device, the device information of each target device and at least one device placeholder, wherein each device placeholder is used for indicating an unknown device to be accessed, and the device information corresponding to each device placeholder is empty;
the communicator is further configured to: and sending the target information to the HomeKit client so that the HomeKit client displays a device list based on the target information, wherein the device list comprises the identification of the electronic device and the identification of each target device.
2. The electronic device of claim 1, wherein the electronic device comprises a memory device,
the controller is further configured to: after the target information is sent to the HomeKit client, detecting that the first equipment and the electronic equipment are connected;
updating one of the device placeholders in the target information to the device information of the first device so as to update the target information;
the communicator is further configured to: and sending the updated target information to the HomeKit client so that the HomeKit client updates the equipment list based on the updated target information, wherein the updated equipment list comprises the identifications of the electronic equipment, the identifications of the target equipment and the identifications of the first equipment.
3. The electronic device of claim 1, wherein the electronic device comprises a memory device,
the controller is further configured to: after the target information is sent to the HomeKit client, detecting that a second device is disconnected from the electronic device, wherein the second device is any one of the target devices;
updating the device information of the second device in the target information to be one device placeholder so as to update the target information;
The communicator is further configured to: and sending the updated target information to the HomeKit client so that the HomeKit client updates the equipment list based on the updated target information, wherein the updated equipment list comprises the identification of the electronic equipment and the identification of each equipment except the second equipment in each target equipment.
4. The electronic device of claim 1, wherein each target device comprises: at least one third device;
or,
the respective target devices include: at least one third device and at least one fourth device;
each third device is directly connected with the electronic device, and each fourth device is connected with the electronic device through the corresponding third device.
5. The electronic device of claim 1, wherein the electronic device is connected to each of the third devices via an HDMI interface;
in the case that the respective target devices include the at least one fourth device, each third device is connected to the corresponding third device through an HDMI interface.
6. The electronic device of claim 1, wherein the device information further comprises a type of the corresponding device; the device list also includes the type of the electronic device and the type of the respective target device.
7. The electronic device of any one of claims 1-6, wherein the number of individual target devices and the number of the at least one device placeholders are equal to a first preset value;
or,
the number of the at least one device placeholders is equal to a second preset value.
8. The device list acquisition method is characterized by being applied to electronic devices and comprising the following steps of:
after establishing connection with a Homekit client based on a Homekit protocol, receiving a device list acquisition request sent by the Homekit client, wherein the device list acquisition request is used for indicating to acquire device information of each target device connected with the electronic device, and the device information comprises a device identifier;
determining equipment information of the electronic equipment and equipment information of each target equipment based on the equipment list acquisition request, wherein the equipment information comprises identification of corresponding equipment;
generating target information based on the device information of the electronic device, the device information of each target device and at least one device placeholder, wherein each device placeholder is used for indicating an unknown device to be accessed, and the device information corresponding to each device placeholder is empty;
And sending the target information to the HomeKit client so that the HomeKit client displays a device list based on the target information, wherein the device list comprises the identification of the electronic device and the identification of each target device.
9. The method of claim 8, wherein after the sending the target information to the HomeKit client, the method further comprises:
detecting that a first device establishes connection with the electronic device;
updating one of the device placeholders in the target information to the device information of the first device so as to update the target information;
and sending the updated target information to the HomeKit client so that the HomeKit client updates the equipment list based on the updated target information, wherein the updated equipment list comprises the identifications of the electronic equipment, the identifications of the target equipment and the identifications of the first equipment.
10. A computer-readable storage medium, comprising: computer program stored on a computer readable storage medium, which when executed by a processor implements a device list acquisition method according to claim 8 or 9.
CN202211658353.1A 2022-11-23 2022-12-22 Electronic device, device list acquisition method, and storage medium Pending CN117812135A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211658353.1A CN117812135A (en) 2022-12-22 2022-12-22 Electronic device, device list acquisition method, and storage medium
PCT/CN2023/108893 WO2024109129A1 (en) 2022-11-23 2023-07-24 Electronic device and data processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211658353.1A CN117812135A (en) 2022-12-22 2022-12-22 Electronic device, device list acquisition method, and storage medium

Publications (1)

Publication Number Publication Date
CN117812135A true CN117812135A (en) 2024-04-02

Family

ID=90433927

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211658353.1A Pending CN117812135A (en) 2022-11-23 2022-12-22 Electronic device, device list acquisition method, and storage medium

Country Status (1)

Country Link
CN (1) CN117812135A (en)

Similar Documents

Publication Publication Date Title
US10121449B2 (en) Method and apparatus for screen sharing
US8307059B2 (en) Network system, control apparatus, terminal apparatus, and connection state determining method
US20130050271A1 (en) Mobile terminal, image display device mounted on vehicle and data processing method using the same
CN114286165B (en) Display equipment, mobile terminal, and screen-throwing data transmission method and system
US9870754B2 (en) Computer program product, information processing method, and information processing apparatus
WO2021027610A1 (en) Communication protocol switching method, apparatus and system
JP2013541877A (en) Remote control device transcoder available cloud
US9865228B2 (en) Computer program product, information processing method, and information processing apparatus
CN102394866A (en) Methods for sharing data and applications in near-field communication network and near-field communication network
US20150161923A1 (en) Electronic device, display device, method, and computer program product
JP2008003839A (en) Communication device
CN117812135A (en) Electronic device, device list acquisition method, and storage medium
US11362854B2 (en) Information processing apparatus, information processing method, program, and information processing system
US20140375895A1 (en) Electronic device, television device, and gui information communication method
CN116801027A (en) Display device and screen projection method
CN115278822A (en) Display apparatus, control apparatus, and broadcast source scanning method
CN109116998B (en) Electronic system capable of sharing peripheral device
CN113596086A (en) Method and system for controlling GIS large-screen visualization application based on scene configuration
US20200186881A1 (en) Electronic apparatus and method for controlling electronic apparatus
CN111427501A (en) Touch control implementation method and interactive intelligent device
CN212009544U (en) Touch screen integrating functions of industrial router
CN117615091A (en) Display device and HDMI port identification method for accessing CEC device
US10291948B2 (en) Network device, information processing method, and HDMI device
CN117806687A (en) Terminal, server and data updating method
CN117979084A (en) Display device and HDMI device updating method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination