Terminal connection method, computer readable storage medium and electronic equipment

Through the protocol conversion technology of the public service platform, the problem of non-universal smart home device protocols is solved, and multiple devices are operated through one control terminal, simplifying the user experience.

CN119316491APending Publication Date: 2025-01-14GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411387233.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-30
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

The protocols between smart home devices are not universal, resulting in users needing to configure multiple different control terminals, which increases the complexity and inconvenience of operation.

Method used

The public service platform obtains the library files sent by the target device, extracts the manufacturer's logo and stores it, determines the interface conversion protocol between the interface information and the control terminal's public interface, realizes the protocol conversion of different devices, and makes it connect to the same control terminal and displays data .

Benefits of technology

It solves the problem that different devices need to configure different control terminals, realizes the effect of controlling multiple target devices through one control terminal, and simplifies user operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119316491A_ABST
    Figure CN119316491A_ABST
Patent Text Reader

Abstract

The invention provides a terminal connection method, a computer readable storage medium and electronic equipment. The method is applied to a public service platform, the public service platform is in communication connection with a control terminal and target equipment, and the method comprises the steps that the public service platform obtains a library file sent by the target equipment, extracts a manufacturer identifier corresponding to the library file and stores the library file according to the manufacturer identifier, and the library file at least comprises interface information of the target equipment; the manufacturer identifier is a unique identifier representing the target equipment; and the public service platform extracts the interface information in the library file, determines an interface conversion protocol of the interface information and a public interface of the control terminal, and performs protocol conversion, so that the target equipment is connected to the control terminal and sends the to-be-displayed data to the control terminal, and the control terminal displays the to-be-displayed data. According to the invention, a problem that different devices need to be configured with different control terminals and operation is inconvenient because protocols between smart home devices are not universal is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart home technology, and in particular to a terminal connection method, a computer-readable storage medium, and an electronic device. Background Art

[0002] The development of IoT technology enables various devices to connect and communicate with each other through the Internet. Smart home is an important field of IoT application. More and more manufacturers are beginning to design and develop IoT technology, and the smart devices that emerge are becoming more and more diverse. However, the protocols between devices from various manufacturers are not universal, which requires users to configure multiple different control terminals to connect different devices, greatly reducing the user's sense of operation. Summary of the invention

[0003] The main purpose of the present application is to provide a terminal connection method, a computer-readable storage medium and an electronic device, so as to at least solve the problem in the prior art that the protocols between smart home devices are not universal, resulting in different devices needing to be configured with different control terminals, which is inconvenient to operate.

[0004] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a terminal connection method is provided, which is applied to a public service platform, and the public service platform is respectively communicated with a control terminal and a target device, including: the public service platform obtains a library file sent by the target device, extracts the manufacturer identifier corresponding to the library file, and stores the library file according to the manufacturer identifier, wherein the library file at least includes interface information of the target device, and the manufacturer identifier is a unique identifier that characterizes the target device; the public service platform extracts the interface information in the library file, and determines the interface conversion protocol between the interface information and the public interface of the control terminal, and performs protocol conversion so that the target device is connected to the control terminal and sends the data to be displayed to the control terminal, so that the control terminal displays the data to be displayed.

[0005] Optionally, the terminal connection method also includes: the public service platform obtains the control instructions sent by the control terminal through the public interface, wherein the control instructions at least include the manufacturer identifier and the control instructions of the target device; the public service platform extracts the manufacturer identifier in the control instructions, determines the library file corresponding to the manufacturer identifier, and extracts the interface information in the library file, and sends the control instructions to the target device through the interface information.

[0006] Optionally, the library file is stored according to the manufacturer identifier, including: the public service platform obtains a one-to-one mapping relationship between the manufacturer identifier and a document file, wherein the document file is at least used to store the library file; the public service platform stores the library file in the document file corresponding to the manufacturer identifier according to the one-to-one mapping relationship.

[0007] Optionally, before the public service platform obtains the library file sent by the target device, the terminal connection method also includes: the public service platform obtains a connection request sent by the target device, wherein the connection request is information requesting to establish a communication connection with the public service platform and at least includes password information; the public service platform parses the connection request to obtain the password information, verifies the password information, and if the password information is verified, generates connection consent information and sends it to the target device to enable the target device to access, wherein the connection consent information is information agreeing to the target device access.

[0008] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a terminal connection method is provided, which is applied to a target device, wherein the target device is communicatively connected to a public service platform, and the public service platform is communicatively connected to a control terminal, comprising: the target device sends a library file to the public service platform, so that the public service platform connects the target device to the public interface of the control terminal according to the library file, wherein the library file at least includes the interface information of the target device; the target device sends data to be displayed to the control terminal, so that the control terminal displays the data to be displayed.

[0009] Optionally, the target device is connected to the public interface of the control terminal by the public service platform determining the interface conversion protocol between the interface information and the public interface according to the interface information in the library file, performing protocol conversion and realizing the connection.

[0010] Optionally, the terminal connection method also includes: the target device receives a control instruction sent by the public service platform, wherein the control instruction is generated by the control terminal and sent to the public service platform, and the public service platform extracts the manufacturer identifier in the control instruction, determines the library file corresponding to the manufacturer identifier, and extracts the interface information in the library file, and then sends the control instruction to the target device through the interface information, wherein the control instruction includes at least the manufacturer identifier and the control instruction of the target device, and the manufacturer identifier is a unique identifier that represents the target device.

[0011] Optionally, before the target device sends the library file to the public service platform, the method also includes: the target device sends a connection request to the public service platform, so that the public service platform parses the connection request to obtain password information, verifies the password information, and generates and sends connection consent information to the target device when the password information verification passes, wherein the connection request is information requesting to establish a communication connection with the public service platform and at least includes the password information; the target device receives the connection consent information and establishes a communication connection with the public service platform, wherein the connection consent information is information that the public service platform agrees to the target device's access.

[0012] According to another aspect of the present application, a computer-readable storage medium is provided, the computer-readable storage medium comprising a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute any one of the terminal connection methods.

[0013] According to another aspect of the present application, an electronic device is provided, comprising: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include a method for executing any one of the terminal connection methods.

[0014] By applying the technical solution of the present application, the public service platform obtains the library file sent by the target device, extracts the manufacturer identification corresponding to the library file, and stores the library file according to the manufacturer identification, wherein the library file at least includes the interface information of the target device, and the manufacturer identification is a unique identification that characterizes the target device; the public service platform extracts the interface information in the library file, and determines the interface conversion protocol between the interface information and the public interface of the control terminal, and performs protocol conversion so that the target device is connected to the control terminal and sends the data to be displayed to the control terminal, so that the control terminal displays the data to be displayed. Compared with the prior art, in which the protocols between smart home devices are not universal, resulting in different devices needing to be configured with different control terminals, which is inconvenient to operate, the present application connects smart home devices with different protocols to the same control terminal, thereby being able to solve the problem of the prior art that multiple control terminals are required and inconvenient to operate, and achieves the effect of controlling multiple target devices through one control terminal. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The drawings constituting part of the present application are used to provide a further understanding of the present application. The exemplary embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0016] Figure 1A schematic diagram of a process flow of a terminal connection method provided in an embodiment of the present application is shown;

[0017] Figure 2 A schematic diagram showing a flow chart of another terminal connection method provided in an embodiment of the present application is shown;

[0018] Figure 3 A schematic diagram of a terminal connection structure provided by an embodiment of the present application is shown;

[0019] Figure 4 A schematic flow chart of a specific terminal connection method provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0020] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0021] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0022] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0023] As introduced in the background technology, in the prior art, the protocols between smart home devices are not universal, which results in different devices needing to be configured with different control terminals and inconvenient to operate. In order to solve the problem that the protocols between smart home devices are not universal, which results in different devices needing to be configured with different control terminals and inconvenient to operate, the embodiments of the present application provide a terminal connection method, a computer-readable storage medium and an electronic device.

[0024] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0025] In this embodiment, a terminal connection method running on a mobile terminal, a computer terminal or a similar computing device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0026] Figure 1 1 is a flow chart of a terminal connection method according to an embodiment of the present application, which is applied to a public service platform, wherein the public service platform is respectively connected to a control terminal and a target device for communication. Figure 1 As shown, the method comprises the following steps:

[0027] Step S201, the public service platform obtains the library file sent by the target device, extracts the manufacturer identifier corresponding to the library file, and stores the library file according to the manufacturer identifier, wherein the library file at least includes the interface information of the target device, and the manufacturer identifier is a unique identifier that characterizes the target device;

[0028] Specifically, a public service platform for the home appliance industry is established, and each manufacturer can integrate and package the control instructions and related interface information corresponding to their target devices, make them into a library file and upload them to the service platform. If the manufacturer has not uploaded the corresponding information on the service platform before, it is necessary to first create a document file belonging to itself on the platform. The naming of this document file needs to be based on the manufacturer's name. The corresponding library file or other information can be placed in this document later. The public service platform will generate corresponding manufacturer identifications based on the document files of different manufacturers. Afterwards, after the public service platform obtains the library file sent by the target device, the library file is stored according to the correspondence between the manufacturer identification and the pre-stored document file.

[0029] Step S202, the public service platform extracts the interface information in the library file, determines the interface conversion protocol between the interface information and the public interface of the control terminal, and performs protocol conversion so that the target device is connected to the control terminal and sends the data to be displayed to the control terminal, so that the control terminal displays the data to be displayed.

[0030] Specifically, the control terminal is provided with a public interface, allowing multiple devices with different communication protocols to access. The library file is obtained after each manufacturer integrates the data of the target device that needs to be placed on the public service platform, such as each manufacturer's own protocol conversion, data storage method, etc., and integrates these instructions or related data into a document, namely a library file. The data corresponding to the target device can be directly called through the relevant interface information, which is equivalent to the target device of each manufacturer. The database is unique to the public service platform. Before uploading the relevant library file on the public service platform, each manufacturer needs to register a manufacturer identification on the public service platform, such as GR, JD, TM, etc. (cannot be repeated). When uploading the library file, it is necessary to select the corresponding manufacturer identification to facilitate the public service platform to extract the manufacturer identification, and then determine the corresponding interface information and the interface conversion protocol of the public interface. After the protocol conversion, the target device is connected to the control terminal and sends the data to be displayed to the control terminal, so that the control terminal displays the data to be displayed.

[0031] Through this embodiment, the public service platform obtains the library file sent by the target device, extracts the manufacturer identification corresponding to the library file, and stores the library file according to the manufacturer identification, wherein the library file at least includes the interface information of the target device, and the manufacturer identification is a unique identification that characterizes the target device; the public service platform extracts the interface information in the library file, and determines the interface conversion protocol between the interface information and the public interface of the control terminal, and performs protocol conversion, so that the target device is connected to the control terminal and sends the data to be displayed to the control terminal, so that the control terminal displays the data to be displayed. Compared with the prior art, in which the protocols between smart home devices are not universal, resulting in different devices needing to be configured with different control terminals, which is inconvenient to operate, the present application connects smart home devices of different protocols to the same control terminal, thereby being able to solve the problem of the prior art that multiple control terminals are required and inconvenient to operate, and achieves the effect of controlling multiple target devices through one control terminal.

[0032] In the specific implementation process, the terminal connection method further includes the following steps: step S203: the public service platform obtains the control instruction sent by the control terminal through the public interface, wherein the control instruction at least includes the manufacturer identification and the control instruction of the target device; step S204: the public service platform extracts the manufacturer identification in the control instruction, determines the library file corresponding to the manufacturer identification, and extracts the interface information in the library file, and sends the control instruction to the target device through the interface information. The method sends the control instruction of the control terminal to the target device through the above steps, realizing two-way information transmission between the control terminal and the target device.

[0033] Specifically, the target device of each manufacturer will contain the corresponding manufacturer identification in the control terminal, so as to distinguish the library files called by the service platform when controlling the devices of each manufacturer. When the control instruction is issued, the data is transmitted to the public service platform through the public interface. The public service platform identifies the library file of the corresponding manufacturer based on the manufacturer identification in the control instruction, calls the relevant interface to convert the control instruction, and sends the transferred data to the target device through the private interface in the file.

[0034] In some optional implementations, the above step S201 stores the library file according to the manufacturer identification, which can be implemented by the following steps: Step S2011: the public service platform obtains a one-to-one mapping relationship between the manufacturer identification and the document file, wherein the document file is at least used to store the library file; Step S2012: the public service platform stores the library file in the document file corresponding to the manufacturer identification according to the one-to-one mapping relationship. The method stores the library file through the above steps, so that the corresponding interface information can be stored, which facilitates the one-to-one transmission of data.

[0035] During the specific implementation process, a document file belonging to each target device is created on the public service platform in advance. The naming of this document file needs to be based on the manufacturer's name. After receiving the library file, the public service platform determines the one-to-one mapping relationship between the manufacturer's identification and the document file, and then places the corresponding library file or other information in this document file.

[0036] In some optional implementations, before the public service platform obtains the library file sent by the target device, the terminal connection method further includes the following steps: Step S205: the public service platform obtains the connection request sent by the target device, wherein the connection request is information requesting to establish a communication connection with the public service platform and at least includes password information; Step S206: the public service platform parses the connection request to obtain the password information, verifies the password information, and generates connection consent information and sends it to the target device when the password information verification passes, so that the target device can access, wherein the connection consent information is information consenting to the target device access. This method performs an encrypted connection during the connection process, which can ensure the security of the data transmission process.

[0037] In the specific implementation process, there is a public control terminal. Each manufacturer uses the library files uploaded by each manufacturer to call the public interface to connect to the control terminal, so as to realize the function of each manufacturer's equipment accessing the unified control terminal. During the process of connecting to the control terminal, each device can transmit the data of the corresponding device control interface to the control terminal, so as to achieve the function of the control terminal displaying the device function interface. The equipment of each manufacturer also needs to be connected to the public service platform through the public interface. After connecting to the platform, the equipment then uses relevant instructions to connect to the library files placed by the manufacturer on the service platform. Among them, the connection method and encryption and decryption method, the equipment can use the standards set by its own manufacturer, or the public standards provided by the service platform.

[0038] Figure 2 1 is a flow chart of a terminal connection method according to an embodiment of the present application, which is applied to a target device, wherein the target device is connected to a public service platform for communication, and the public service platform is connected to a control terminal for communication. Figure 2 As shown, the method comprises the following steps:

[0039] Step S301, the target device sends a library file to the public service platform, so that the public service platform connects the target device to the public interface of the control terminal according to the library file, wherein the library file at least includes the interface information of the target device;

[0040] Specifically, a public service platform for the home appliance industry is established, and each manufacturer can integrate and package the control instructions and related interface information corresponding to their target devices, make them into a library file and upload them to the service platform. If the manufacturer has not uploaded the corresponding information on the service platform before, it is necessary to first create a document file belonging to itself on the platform. The naming of this document file needs to be based on the manufacturer's name. The corresponding library file or other information can be placed in this document later. The public service platform will generate corresponding manufacturer identifications based on the document files of different manufacturers. Afterwards, after the public service platform obtains the library file sent by the target device, the library file is stored according to the correspondence between the manufacturer identification and the pre-stored document file.

[0041] Step S302: the target device sends the data to be displayed to the control terminal, so that the control terminal displays the data to be displayed.

[0042] Specifically, the target device is connected to the control terminal and sends the data to be displayed to the control terminal, so that the control terminal displays the data to be displayed.

[0043] In some optional implementations: the target device is connected to the public interface of the control terminal by the public service platform determining the interface conversion protocol between the interface information and the public interface according to the interface information in the library file, performing protocol conversion and realizing the connection.

[0044] Specifically, the control terminal is provided with a public interface, allowing multiple devices with different communication protocols to access. The library file is obtained after each manufacturer integrates the data of the target device that needs to be placed on the public service platform, such as each manufacturer's own protocol conversion, data storage method, etc. These instructions or related data are integrated into a document, namely a library file, and the data corresponding to the target device can be directly called through the relevant interface information, which is equivalent to the target device of each manufacturer. The database is unique to the public service platform. Before uploading the relevant library file on the public service platform, each manufacturer needs to register a manufacturer identification on the public service platform, such as GR, JD, TM, etc. (cannot be repeated). When uploading the library file, it is necessary to select the corresponding manufacturer identification to facilitate the public service platform to extract the manufacturer identification, and then determine the corresponding interface information and the interface conversion protocol of the public interface. After the protocol conversion, the target device is connected to the control terminal and sends the data to be displayed to the control terminal.

[0045] In some optional embodiments, the terminal connection method also includes the following steps: the target device receives a control instruction sent by the public service platform, wherein the control instruction is generated by the control terminal and sent to the public service platform, and the public service platform extracts the manufacturer identifier in the control instruction, determines the library file corresponding to the manufacturer identifier, and extracts the interface information in the library file, and then sends the control instruction to the target device through the interface information, wherein the control instruction includes at least the manufacturer identifier and the control instruction of the target device, and the manufacturer identifier is a unique identifier that represents the target device.

[0046] Specifically, the target device of each manufacturer will contain the corresponding manufacturer identification in the control terminal, so as to distinguish the library files called by the service platform when controlling the devices of each manufacturer. When the control instruction is issued, the data is transmitted to the public service platform through the public interface. The public service platform identifies the library file of the corresponding manufacturer based on the manufacturer identification in the control instruction, calls the relevant interface to convert the control instruction, and sends the transferred data to the target device through the private interface in the file.

[0047] In some optional embodiments, before the target device sends the library file to the public service platform, the method further includes: the target device sends a connection request to the public service platform, so that the public service platform parses the connection request to obtain password information, verifies the password information, and generates and sends connection consent information to the target device when the password information verification passes, wherein the connection request is information requesting to establish a communication connection with the public service platform and at least includes the password information; the target device receives the connection consent information and establishes a communication connection with the public service platform, wherein the connection consent information is information that the public service platform agrees to the target device's access.

[0048] Specifically, there is a public control terminal. Each manufacturer uses the library files uploaded by each manufacturer to call the public interface to connect to the control terminal, so as to realize the function of each manufacturer's equipment accessing the unified control terminal. During the process of connecting to the control terminal, each device can transmit the data of the corresponding device control interface to the control terminal, so as to achieve the function of the control terminal displaying the device function interface. The equipment of each manufacturer also needs to be connected to the public service platform through the public interface. After connecting to the platform, the equipment then uses relevant instructions to connect to the library files placed by the manufacturer on the service platform. Among them, the connection method and encryption and decryption method, the equipment can use the standards set by its own manufacturer, or the public standards provided by the service platform.

[0049] In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the implementation process of the terminal connection method of the present application will be described in detail below in conjunction with specific embodiments.

[0050] This embodiment relates to a schematic diagram of a terminal connection structure, such as Figure 3 As shown, the status of the manufacturer's device (target device) is reported to the public service platform. The public service platform converts data according to the library file corresponding to the device, determines the corresponding conversion protocol, and connects to and transmits data with the public interface of the control terminal. Conversely, the public interface of the control terminal issues control commands to the public service platform. The public service platform determines the corresponding target device according to the manufacturer's identifier in the control instruction, and further issues the control instruction to the target device.

[0051] This embodiment relates to a schematic diagram of a specific terminal connection method, such as Figure 4 As shown, the following steps are included:

[0052] Step S1: home appliance public service platform (including library files of equipment control instructions and related interface calling functions of various manufacturers, etc.);

[0053] Step S2: Public control terminal (equipment display terminal of each manufacturer, control instructions will be converted to the service platform);

[0054] Step S3: Each manufacturer's equipment is connected to the service platform through a public interface, and then connected to the library file of its own manufacturer according to relevant instructions (such as retrieving the manufacturer's file storage address, etc.);

[0055] Step S4: The control instructions of the device in the control terminal will have manufacturer identification according to the devices of different manufacturers. After arriving at the service platform, the library file of the corresponding manufacturer is found according to the manufacturer identification to convert the relevant protocols.

[0056] The present application also provides a terminal connection device. It should be noted that the terminal connection device of the present application embodiment can be used to execute the terminal connection method provided by the present application embodiment. The device is used to implement the above-mentioned embodiments and preferred embodiments, and the descriptions have been made and will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware is also possible and conceived.

[0057] An embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the terminal connection method.

[0058] Specifically, the terminal connection method includes:

[0059] Step S201, the public service platform obtains the library file sent by the target device, extracts the manufacturer identifier corresponding to the library file, and stores the library file according to the manufacturer identifier, wherein the library file at least includes the interface information of the target device, and the manufacturer identifier is a unique identifier that characterizes the target device;

[0060] Specifically, a public service platform for the home appliance industry is established, and each manufacturer can integrate and package the control instructions and related interface information corresponding to their target devices, make them into a library file and upload them to the service platform. If the manufacturer has not uploaded the corresponding information on the service platform before, it is necessary to first create a document file belonging to itself on the platform. The naming of this document file needs to be based on the manufacturer's name. The corresponding library file or other information can be placed in this document later. The public service platform will generate corresponding manufacturer identifications based on the document files of different manufacturers. Afterwards, after the public service platform obtains the library file sent by the target device, the library file is stored according to the correspondence between the manufacturer identification and the pre-stored document file.

[0061] Step S202, the public service platform extracts the interface information in the library file, determines the interface conversion protocol between the interface information and the public interface of the control terminal, and performs protocol conversion so that the target device is connected to the control terminal and sends the data to be displayed to the control terminal, so that the control terminal displays the data to be displayed.

[0062] Specifically, the control terminal is provided with a public interface, allowing multiple devices with different communication protocols to access. The library file is obtained after each manufacturer integrates the data of the target device that needs to be placed on the public service platform, such as each manufacturer's own protocol conversion, data storage method, etc., and integrates these instructions or related data into a document, namely a library file. The data corresponding to the target device can be directly called through the relevant interface information, which is equivalent to the target device of each manufacturer. The database is unique to the public service platform. Before uploading the relevant library file on the public service platform, each manufacturer needs to register a manufacturer identification on the public service platform, such as GR, JD, TM, etc. (cannot be repeated). When uploading the library file, it is necessary to select the corresponding manufacturer identification to facilitate the public service platform to extract the manufacturer identification, and then determine the corresponding interface information and the interface conversion protocol of the public interface. After the protocol conversion, the target device is connected to the control terminal and sends the data to be displayed to the control terminal, so that the control terminal displays the data to be displayed.

[0063] An embodiment of the present invention provides an electronic device, including a processor, a memory, and a program stored in the memory and executable on the processor, wherein when the processor executes the program, at least the following steps are implemented:

[0064] Step S201, the public service platform obtains the library file sent by the target device, extracts the manufacturer identifier corresponding to the library file, and stores the library file according to the manufacturer identifier, wherein the library file at least includes the interface information of the target device, and the manufacturer identifier is a unique identifier that characterizes the target device;

[0065] Specifically, a public service platform for the home appliance industry is established, and each manufacturer can integrate and package the control instructions and related interface information corresponding to their target devices, make them into a library file and upload them to the service platform. If the manufacturer has not uploaded the corresponding information on the service platform before, it is necessary to first create a document file belonging to itself on the platform. The naming of this document file needs to be based on the manufacturer's name. The corresponding library file or other information can be placed in this document later. The public service platform will generate corresponding manufacturer identifications based on the document files of different manufacturers. Afterwards, after the public service platform obtains the library file sent by the target device, the library file is stored according to the correspondence between the manufacturer identification and the pre-stored document file.

[0066] Step S202, the public service platform extracts the interface information in the library file, determines the interface conversion protocol between the interface information and the public interface of the control terminal, and performs protocol conversion so that the target device is connected to the control terminal and sends the data to be displayed to the control terminal, so that the control terminal displays the data to be displayed.

[0067] Specifically, the control terminal is provided with a public interface, allowing multiple devices with different communication protocols to access. The library file is obtained after each manufacturer integrates the data of the target device that needs to be placed on the public service platform, such as each manufacturer's own protocol conversion, data storage method, etc., and integrates these instructions or related data into a document, namely a library file. The data corresponding to the target device can be directly called through the relevant interface information, which is equivalent to the target device of each manufacturer. The database is unique to the public service platform. Before uploading the relevant library file on the public service platform, each manufacturer needs to register a manufacturer identification on the public service platform, such as GR, JD, TM, etc. (cannot be repeated). When uploading the library file, it is necessary to select the corresponding manufacturer identification to facilitate the public service platform to extract the manufacturer identification, and then determine the corresponding interface information and the interface conversion protocol of the public interface. After the protocol conversion, the target device is connected to the control terminal and sends the data to be displayed to the control terminal, so that the control terminal displays the data to be displayed.

[0068] The present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the method described in each embodiment of the present application:

[0069] Step S201, the public service platform obtains the library file sent by the target device, extracts the manufacturer identifier corresponding to the library file, and stores the library file according to the manufacturer identifier, wherein the library file at least includes the interface information of the target device, and the manufacturer identifier is a unique identifier that characterizes the target device;

[0070] Specifically, a public service platform for the home appliance industry is established, and each manufacturer can integrate and package the control instructions and related interface information corresponding to their target devices, make them into a library file and upload them to the service platform. If the manufacturer has not uploaded the corresponding information on the service platform before, it is necessary to first create a document file belonging to itself on the platform. The naming of this document file needs to be based on the manufacturer's name. The corresponding library file or other information can be placed in this document later. The public service platform will generate corresponding manufacturer identifications based on the document files of different manufacturers. Afterwards, after the public service platform obtains the library file sent by the target device, the library file is stored according to the correspondence between the manufacturer identification and the pre-stored document file.

[0071] Step S202, the public service platform extracts the interface information in the library file, determines the interface conversion protocol between the interface information and the public interface of the control terminal, and performs protocol conversion so that the target device is connected to the control terminal and sends the data to be displayed to the control terminal, so that the control terminal displays the data to be displayed.

[0072] Specifically, the control terminal is provided with a public interface, allowing multiple devices with different communication protocols to access. The library file is obtained after each manufacturer integrates the data of the target device that needs to be placed on the public service platform, such as each manufacturer's own protocol conversion, data storage method, etc., and integrates these instructions or related data into a document, namely a library file. The data corresponding to the target device can be directly called through the relevant interface information, which is equivalent to the target device of each manufacturer. The database is unique to the public service platform. Before uploading the relevant library file on the public service platform, each manufacturer needs to register a manufacturer identification on the public service platform, such as GR, JD, TM, etc. (cannot be repeated). When uploading the library file, it is necessary to select the corresponding manufacturer identification to facilitate the public service platform to extract the manufacturer identification, and then determine the corresponding interface information and the interface conversion protocol of the public interface. After the protocol conversion, the target device is connected to the control terminal and sends the data to be displayed to the control terminal, so that the control terminal displays the data to be displayed.

[0073] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0074] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0075] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0076] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0077] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0078] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0079] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0080] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0081] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0082] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:

[0083] 1) In the terminal connection method of the present application, the public service platform obtains the library file sent by the target device, extracts the manufacturer identification corresponding to the library file, and stores the library file according to the manufacturer identification, wherein the library file at least includes the interface information of the target device, and the manufacturer identification is a unique identification that characterizes the target device; the public service platform extracts the interface information in the library file, and determines the interface conversion protocol between the interface information and the public interface of the control terminal, and performs protocol conversion so that the target device is connected to the control terminal and sends the data to be displayed to the control terminal, so that the control terminal displays the data to be displayed. Compared with the prior art, in which the protocols between smart home devices are not universal, resulting in different devices needing to be configured with different control terminals, which is inconvenient to operate, the present application connects smart home devices of different protocols to the same control terminal, thereby being able to solve the problem of the prior art that multiple control terminals are required and inconvenient to operate, and achieves the effect of controlling multiple target devices through one control terminal.

[0084] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A terminal connection method, characterized in that: Applied to a public service platform, the public service platform is respectively connected to a control terminal and a target device for communication, including: The public service platform obtains the library file sent by the target device, extracts the manufacturer identifier corresponding to the library file, and stores the library file according to the manufacturer identifier, wherein the library file at least includes the interface information of the target device, and the manufacturer identifier is a unique identifier that characterizes the target device; The public service platform extracts the interface information in the library file, determines the interface conversion protocol between the interface information and the public interface of the control terminal, and performs protocol conversion so that the target device is connected to the control terminal and sends the data to be displayed to the control terminal, thereby enabling the control terminal to display the data to be displayed.

2. The terminal connection method according to claim 1, characterized in that: The terminal connection method further includes: The public service platform obtains a control instruction sent by the control terminal through the public interface, wherein the control instruction at least includes the manufacturer identification and the control instruction of the target device; The public service platform extracts the manufacturer identification in the control instruction, determines the library file corresponding to the manufacturer identification, extracts the interface information in the library file, and sends the control instruction to the target device through the interface information.

3. The terminal connection method according to claim 1, characterized in that: Storing the library file according to the manufacturer identifier includes: The public service platform obtains a one-to-one mapping relationship between the manufacturer identifier and the document file, wherein the document file is at least used to store the library file; The public service platform stores the library file in the document file corresponding to the manufacturer identifier according to the one-to-one mapping relationship.

4. The terminal connection method according to claim 1, characterized in that: Before the public service platform obtains the library file sent by the target device, the terminal connection method further includes: The public service platform obtains a connection request sent by the target device, wherein the connection request is information requesting to establish a communication connection with the public service platform and at least includes password information; The public service platform parses the connection request to obtain the password information, verifies the password information, and generates connection consent information and sends it to the target device when the password information verification passes, so that the target device can access, wherein the connection consent information is information that consents to the target device's access.

5. A terminal connection method, characterized in that: Applied to a target device, the target device is communicatively connected to a public service platform, and the public service platform is communicatively connected to a control terminal, comprising: The target device sends a library file to the public service platform, so that the public service platform connects the target device to the public interface of the control terminal according to the library file, wherein the library file at least includes the interface information of the target device; The target device sends the data to be displayed to the control terminal, so that the control terminal displays the data to be displayed.

6. The terminal connection method according to claim 5, characterized in that: The target device is connected to the public interface of the control terminal by the public service platform determining the interface information and the interface conversion protocol of the public interface according to the interface information in the library file, performing protocol conversion and realizing the connection.

7. The terminal connection method according to claim 5, characterized in that: The terminal connection method further includes: The target device receives a control instruction sent by the public service platform, wherein the control instruction is generated by the control terminal and sent to the public service platform. After the public service platform extracts the manufacturer identifier in the control instruction, determines the library file corresponding to the manufacturer identifier, and extracts the interface information in the library file, the control instruction is sent to the target device through the interface information. The control instruction includes at least the manufacturer identifier and the control instruction of the target device, and the manufacturer identifier is a unique identifier that represents the target device.

8. The terminal connection method according to claim 5, characterized in that: Before the target device sends the library file to the public service platform, the method further includes: The target device sends a connection request to the public service platform, so that the public service platform parses the connection request to obtain password information, verifies the password information, and generates connection consent information and sends it to the target device if the password information verification passes, wherein the connection request is information requesting to establish a communication connection with the public service platform and at least includes the password information; The target device receives the connection consent information and establishes a communication connection with the public service platform, wherein the connection consent information is information that the public service platform agrees to the target device's access.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the terminal connection method described in any one of claims 1 to 4 or the terminal connection method described in any one of claims 5 to 8.

10. An electronic device, characterized in that: include: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include instructions for executing the terminal connection method described in any one of claims 1 to 4 or the terminal connection method described in any one of claims 5 to 8.

Citation Information

Patent Citations

  • Method and system for getting access to an intelligent device

    CN106411979A

  • Intelligent equipment control method, device and system, cloud server and storage medium

    CN113848737A

  • Household appliance control method, device and system, storage medium and program product

    CN114189400A

  • Gateway instruction conversion method and apparatus, and electronic device

    CN116170254A

  • Equipment control method, intelligent gateway, electronic equipment and storage medium

    CN116192978A