[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN116009958B - Unified control method and system for intelligent hardware - Google Patents

Unified control method and system for intelligent hardware Download PDF

Info

Publication number
CN116009958B
CN116009958B CN202310035227.9A CN202310035227A CN116009958B CN 116009958 B CN116009958 B CN 116009958B CN 202310035227 A CN202310035227 A CN 202310035227A CN 116009958 B CN116009958 B CN 116009958B
Authority
CN
China
Prior art keywords
control
layer
intelligent hardware
user
button
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.)
Active
Application number
CN202310035227.9A
Other languages
Chinese (zh)
Other versions
CN116009958A (en
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.)
Shenzhen Bachao Technology Co ltd
Original Assignee
Shenzhen Bachao 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 Shenzhen Bachao Technology Co ltd filed Critical Shenzhen Bachao Technology Co ltd
Priority to CN202310035227.9A priority Critical patent/CN116009958B/en
Publication of CN116009958A publication Critical patent/CN116009958A/en
Application granted granted Critical
Publication of CN116009958B publication Critical patent/CN116009958B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Communication Control (AREA)

Abstract

The invention provides an intelligent hardware unified control method and system, wherein the method mainly comprises the following steps of; (1) active compatibility: realizing the login function of a connection mode needing login authentication; data interception and extraction under the condition of actively adapting different protocols; defining the concept of TouchTab and TouchButton; regardless of the type of device, the device is transceived only according to the instructions set. (2) user customization: creating a configuration item, defining and editing control behaviors of a target control software interface element and a target intelligent hardware group, generating a configuration file, and importing the configuration file into control equipment to realize intelligent hardware management and control of corresponding scenes; when editing the configuration items, the user is free to define what the target control software is to present. The invention has the advantages of universality, multi-platform support, customizable performance, flexibility, portability and the like.

Description

Unified control method and system for intelligent hardware
Technical Field
The invention relates to the technical field of computer software design, in particular to an intelligent hardware unified control method and system.
Background
At present, many intelligent hardware on the market has corresponding control software, for example, a millet camera (intelligent hardware) has corresponding Mijia APP (control software), the control software is generally connected with the intelligent hardware through a data line (such as a USB line or a serial port line) or a network, and then an AP I instruction defined in advance is accessed, so that the control and the state acquisition of the intelligent hardware are realized. The reason why these existing control software is basically only able to control the intelligent hardware collocated with it, or other intelligent hardware in the same family as produced by the manufacturer, but not able to control more intelligent hardware of other manufacturers such as open source hardware or open/authorized APIs is two:
(1) Some vendors 'intelligent hardware does not open APIs and do not authorize the API's intent for third parties;
(2) In order to enable the intelligent hardware of the user to occupy the market better, manufacturers developing control software often only consider the requirement of adapting the intelligent hardware of the user, and exclude the compatibility with the intelligent hardware of other manufacturers;
(3) For other intelligent hardware of the opened/authorized API, the protocols used are different from each other due to the fact that the styles of the APIs are different, and a unified standard is not formed, so that the intelligent hardware is difficult to be unified and compatible.
In view of this, in chinese patent CN201710098460.6, an intelligent hardware control system and a control method are disclosed, where the intelligent hardware control system includes the management background, and is configured to determine a usage scenario of intelligent hardware, and issue a webapp display list of the usage scenario Jing Duiying to the intelligent hardware; the intelligent hardware is used for acquiring a webapp display list, and displaying the entrance of each webapp on a display screen according to the webapp display list. The invention has the beneficial effects that the following aspects are detailed as follows: 1) Large-scale intelligent hardware can be managed in batches, and display contents can be rapidly configured for the intelligent hardware; 2) Different webapp can be configured for each intelligent hardware according to the use scene, so that the scene applicability is strong; 3) The display and the functions of webapp are changed only in the background, the intelligent hardware is not required to be upgraded, a change mechanism is flexible, and the efficiency of intelligent hardware deployment is improved. The intelligent hardware control system is aimed at special intelligent hardware, has no generality, and cannot be compatible or suitable for intelligent hardware of various different protocol types.
Another chinese patent No. cn201911080758.X discloses an intelligent hardware control method, apparatus and control device, which relate to the technical field of intelligent home. Wherein the method comprises the following steps: the control device receives a first confirmation instruction input by a user based on the first environment information, wherein the first confirmation instruction characterizes that the intelligent hardware is allowed to execute a first action; controlling the intelligent hardware to execute a first action based on the first confirmation instruction; outputting inquiry information, and if a second confirmation instruction input by a user based on the inquiry information is received, recording the corresponding relation between the first environment information and the first confirmation instruction; and receiving the second environmental information, and controlling the intelligent hardware to execute the first action based on the corresponding relation between the first environmental information and the first confirmation instruction if the second environmental information is consistent with the first environmental information. The patent mainly creates a general instruction, when the intelligent hardware adopts the same instruction, repeated setting can be avoided, but the intelligent hardware cannot be compatible with the scenes that different instructions and various instructions are sent simultaneously.
In chinese patent CN201810461668.4, a method for controlling intelligent hardware and an intelligent control device are disclosed, where the method includes: s100, acquiring movement track information of a mobile terminal; and S200, matching the movement track information with a preset control instruction list, searching a corresponding control instruction, and sending the control instruction to corresponding intelligent hardware, so that the intelligent hardware switches working states according to the acquired control instruction. The patent corresponds the equipment moving track with preset control information, so that the intelligent equipment can be controlled based on the moving track, but the intelligent equipment is pointed to and has no universality.
In view of the foregoing, there is a need for further innovations in the art.
Disclosure of Invention
Aiming at the technical problems in the background technology, the invention provides the intelligent hardware unified control method and the system which are reasonable in conception, have the advantages of universality, multi-platform support, customizable performance, flexibility, portability and the like, can be used for controlling intelligent hardware products and can also be used for controlling other intelligent hardware products of the opened/authorized API.
In order to solve the technical problems, the invention provides an intelligent hardware unified control method, which comprises the following steps:
(1) Active compatibility
(1.1) for a connection mode requiring login authentication, realizing a login function;
(1.2) data truncation and extraction under the condition of actively adapting different protocols;
(1.3) defining the concept of the page touch tab and the control button element touch button in the page to be finally displayed on the target control software;
(1.4) regardless of the type of the device, not identifying any one of the type and name of the specific device, transceiving the device only according to the set instruction; the page is irrelevant to the equipment, one and more than one equipment can be supported by the same page TouchTab, and one and more than one equipment can be supported by the same control button element TouchButton;
(2) User customization
(2.1) a user creates a configuration item according to actual scene requirements, then defines and edits interface elements of target control software and control behaviors of a target intelligent hardware group, finally generates a configuration file, and introduces the configuration file into control equipment to realize intelligent hardware management and control of corresponding scenes;
(2.2) the user is free to define what the target control software interface is to present when editing the configuration item.
The intelligent hardware unified control method comprises the following specific steps of: for Te l net/SSH protocol, a mode of logging in a matching table is used, namely, the field responded by the active detection equipment is matched with the keyword of the logging in the matching table, and the logging in the matching table is a mapping table of the keyword and the input content, and is recorded by a user according to the actual situation.
The intelligent hardware unified control method comprises the following steps: when the user performs logging in according to the actual situation in the step (1.1), for logging in realized by using OAuth standard, logging in authentication is performed according to protocol specification, and for logging in interface defined by API, an API request for logging in once can be initiated to the target device.
The intelligent hardware unified control method comprises the following specific steps of: intercepting data through a command prompt for Te l net/SSH protocol, and avoiding pollution of the back display data to response data by sending an option negotiation instruction for disabling the back display; the HTTP protocol is carried out according to the standard request mode of HTTP; protocols without explicit separation identification are split by CRLF by default.
The intelligent hardware unified control method comprises the following steps: the protocol without explicit separation identification can also be performed in any of three ways, namely, by the user defining the separator by himself, intercepting and giving a time range according to the length of the expected response content, and then retrieving all the response data in that time range.
The unified control method for intelligent hardware, wherein, the Touch Button in the step (1.3) is further divided into different types according to related functions of different intelligent hardware groups, and specifically includes a Set On ly Touch Button Button, a Get On ly Touch Button Button, a Set & Get Touch Button, a Source Touch Button Button and a Si nk Touch Button Button;
the Set On ly Touch Button button is used for executing one or more actions on any one of the target device and the target device group, and when being pressed down, one or more instructions are sent to any one of the target device and the target device group without concern about the instruction execution result;
the Get On ly Touch Button button is used for acquiring equipment information, presenting the equipment information in a prompt mode, sending one or more instructions to target equipment when being pressed, replacing a response result of each instruction into a placeholder of preset display content, and finally displaying the display content containing actual data on a user interface;
the Set & Get Touch Button is used for realizing any one of setting and displaying certain state information of the intelligent hardware, and can be configured with more than one sending instruction and one obtaining instruction and present a state value; when the Set & Get Touch Button is pressed, a sending instruction corresponding to the next state value is sent to target equipment, then an acquisition instruction is sent once again to match the state value again, and state switching is realized by sending the instructions sequentially and circularly; the Set & Get Touch Button also enables the target device to switch in more than one mode;
the Source Touch Button buttons are used in combination with the S i nk Touch Button, so that input and output matching of a matrix type of the target device can be realized; the Source Touch Button button records a variable value that the program will flag when pressed and then wait for the Si nk Touch Button button to be pressed;
the Si nk Touch Button buttons are used for state matching with mapping relation; when the Si nk Touch Button button is pressed, the variable value of the Source Touch Button button marked by the program is replaced by a placeholder in an instruction defined by the program, then the instruction with the replaced variable value is sent to the target device, and then an acquisition instruction is sent to confirm whether the state is updated or not.
The intelligent hardware unified control method comprises the following steps: in the step (2.2), the user can freely create a touch tab and a touch button, wherein the touch tab is used for grouping different application scenes, and the touch button is used for managing and controlling any one of specific functions and information of the target intelligent hardware group; in the step (2.2), the user can select a proper touch button type according to the AP I document of the reference target intelligent hardware and fill in proper field contents.
An intelligent hardware unified control system comprises a view interaction layer, a control layer, a transmission interface layer and a transmission layer; the view interaction layer is used for interacting with a user and visually representing the user; the control layer is used for processing control actions of a user and managing configuration items; the transmission interface layer is used for providing a set of unified interfaces for the control layer to adapt to various different transmission protocols; the transmission layer is used for realizing data interaction with target hardware aiming at a specific transmission protocol.
The intelligent hardware unified control system, wherein: user interaction with the control system occurs at the view interaction layer; the control system can be switched between an editing mode and a control mode when running on the desktop end platform and is only in the control mode when running on the mobile end platform; the editing mode is used for creating configuration items, editing configuration files and the like, and a user can freely customize the interface and the behavior of target control software in the process, and finally generates a configuration file; the control mode is used for reading in the configuration file, presenting U I interface according to the description of the configuration file, and deciding how to manage and control the intelligent hardware group according to the description of the configuration file.
The intelligent hardware unified control system, wherein: when the control system operates in an editing mode, a user can create, edit and delete TouchTab, touchButton elements at the view interaction layer to complete customization of the control system; and these custom operations of the user will be passed to the control layer, which is responsible for updating and storing the data fields of the configuration items; the user can also operate the import and export of the configuration items at the view interaction layer, and finally, the specific import and export actions are processed and completed at the control layer;
when the control system operates in a control mode, the control layer reads and analyzes configuration items, then the configuration items are submitted to the view interaction layer to render and display a user interface, after a user clicks interface elements in the interface, the configuration items are submitted to the control layer for distribution processing, and the control layer can perform corresponding processing according to different types of interface elements; when interaction with the target hardware device is involved, the control layer sends information to the transmission interface layer, the transmission interface layer provides a set of unified calling interfaces upwards, so that the control layer does not need to distinguish specific communication protocols, and the transmission interface calls the transmission layer downwards according to different protocols and sends interaction instructions to the transmission layer; the transmission layer is used for realizing the transmission of a specific communication protocol, the transmission layer is directly interacted with target hardware equipment, an instruction is sent to the target equipment, then the response is waited for, response data is returned to the transmission interface layer, the transmission interface layer processes the data and returns the processed data to the control layer, the control layer updates any one of corresponding information fields and state values according to the response result, and finally the view interaction layer is informed of updating the display of a user interface.
By adopting the technical scheme, the invention has the following beneficial effects:
the unified control method and the system for the intelligent hardware can be compatible with more intelligent hardware, and the active compatibility and the user customization are combined, so that the active compatibility ensures that effective connection can be established with the intelligent hardware using various different transmission protocols (such as USB data line communication, serial port line communication, network protocol communication and the like), and the user customization ensures that the intelligent hardware can be correctly controlled to the target intelligent hardware by enabling the user to manually customize.
The intelligent hardware unified control method and system of the invention have reasonable conception, not only can be used for controlling all intelligent hardware products of our company, but also can control other intelligent hardware products of the opened/authorized AP I, and the main advantages are as follows:
(1) Versatility of
Not only can all intelligent hardware (such as a matrix, a switching demonstrator and the like) of our company be controlled, but also intelligent hardware equipment of any other manufacturer which has opened or authorized the AP I can be controlled;
(2) Multi-platform support
Supporting desktop ends (Wi windows and macOS) and mobile ends (android and iOS), wherein control software can run on various different platforms such as a computer, a mobile phone and a tablet;
(3) Customizable, flexible
The interface presentation and control behavior of the system is completely customized by the user, and is not limited to a specific appearance or a specific control function, and theoretically, by reasonable configuration, the control and management requirements meeting any scene can be created;
(4) Portability (Portability)
A configuration file can be created and generated only in a certain desktop APP and then imported into control equipment in a plurality of different scenes, so that complicated steps of repeated configuration for a plurality of times are reduced; and, if there is additional fine tuning for a certain scenario, it is also convenient to re-import the configuration file, make modifications, and then re-export the new configuration file.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings which are required in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are some embodiments of the invention and that other drawings may be obtained from these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of the operation of the intelligent hardware unified control system of the present invention;
FIG. 2 is a schematic diagram of the structure of the intelligent hardware unified control system of the present invention;
FIG. 3 is a diagram of the configuration of information described in a configuration file in the intelligent hardware unified control system of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made apparent and fully in view of the accompanying drawings, in which some, but not all embodiments of the invention are shown. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The invention is further illustrated with reference to specific embodiments.
The intelligent hardware unified control method of the embodiment 1 of the invention mainly comprises the following steps:
(1) Active compatibility
The control software realizes as many communication protocol interfaces as possible, such as common USB transmission protocol, serial port protocol, TCP/UDP protocol, te l net protocol, SSH protocol, HTTP protocol and the like, and the module expansion can be easily carried out if a new protocol needs to be supported in the later stage.
(1.1) implementing the login function for the connection mode requiring login authentication
For the protocol Te l net/SSH, a mode of logging in a matching table is used, namely, an active detection device responds to a field and matches with a keyword of the logging in the matching table, for example, a user name is sent to target equipment when a l ogi n or username field is detected, a password is sent when a password field is detected, and the like; the login matching table is a mapping table of keywords-input contents, and the user performs input according to actual conditions; for login realized by using the OAuth standard, login authentication is carried out according to the protocol specification; for a login interface customized by an API, an API request for a login may be initiated to the target device.
(1.2) data truncation and extraction with proactive adaptation to different protocols
The protocol like Te l net/SSH can intercept data through a command prompt, and avoid pollution of the back display data to response data by sending an option negotiation instruction for disabling the back display; such as HTTP, according to the standard request mode of HTTP (GET/POST, etc.); such as serial, TCP, UDP, without explicit separation identification, may be split by CRLF by default, or by user-defined separators, or by length of expected response content, or given a time frame and then retrieving all response data within that time.
(1.3) definition of TouchTab and TouchButton concepts
TouchTab is the page to be displayed finally on the target control software, and TouchButton is the control button element in the page; the touch button is divided into different types according to the related functions of different intelligent hardware groups, and the touch button is specifically defined as follows:
set On ly Touch Button: when the button is pressed, an instruction is sent to the target equipment, and the execution result of the instruction is not concerned; the button is typically used to perform one or more actions, such as powering on and powering off, on the target device or group of target devices.
Get On ly Touch Button: when the button is pressed, one or more instructions are sent to the target equipment, then the response result of each instruction is replaced into a placeholder of the preset display content, and finally the display content containing the actual data is displayed on the user interface. The button is typically used to obtain device information and then presented in a prompt, such as to obtain the name of the device and a WiFi password to guide the user in making a WiFi connection.
The Set & Get Touch Button may be configured with multiple send instructions and an acquire instruction, and presents a status value, each time the Button is pressed, the send instruction corresponding to the next status value is sent to the target device, and then the acquire instruction is sent again to match the status value again, in order to implement status switching, this is implemented by sending the instructions sequentially and circularly (for example, switching on and off the lamp, two instructions 1 are preset, turning on the lamp instruction, acquiring the lamp status instruction, and expecting that the result is on, 2. Turning off the lamp instruction, acquiring the lamp status instruction, expecting that the result is off, if the current status is on, the next instruction is automatically executed, that is, turned off, if the current status is off, the next instruction is automatically executed, but if the current status is already the last instruction, the 1 st instruction is returned, that is turned on, and more than 2 instructions are logic, that is, when in state 1, the state 2 is executed, 3 is executed, and if the state 3 is executed 4, … … is executed, and the loop is executed until the state 1 is executed. The button is typically used to set or display certain status information of the intelligent hardware, such as setting or displaying a mute state; the button can also realize that the target device can be switched in a plurality of modes, for example, for a television, HDM I, VGA and Type-C can be switched circularly to serve as input sources.
Source Touch Button the button records a variable value that the program will flag when pressed and then wait for Si nk Touch Button to be pressed. The button is used in combination with Si nk Touch Button to enable input-output matching of the target device matrix type, etc.
Si nk Touch Button: when the button is pressed, the variable value of the program mark Source Touch Button is replaced by a placeholder in an instruction defined by the button, then the instruction with the replaced variable value is sent to the target device, and then a get instruction is sent to confirm whether the state is updated. The button is generally used for mapping state matching, for example, in matrix equipment, an input source is mapped to a corresponding output port after a Si nk Touch Button recorded with an input source number is pressed first and then a S i nk Touch Button button is pressed;
(1.4) regardless of the type of the device, transmitting or receiving the device according to the set instruction only, not identifying the specific device type or name, transmitting or receiving the instruction according to the protocol, I P address, etc., transmitting or receiving the instruction according to the set instruction; the page is also device independent, and the same page TouchTab can support one or more devices, and the same TouchButton can also support one or more devices.
(2) User customization
And (2.1) a user can create a configuration item according to actual scene requirements (for example, the intelligent hardware group of a conference room is to be managed and controlled), then define and edit interface elements of target control software and control behaviors of the target intelligent hardware group, finally generate a configuration file, and import the configuration file into control equipment, so that intelligent hardware management and control of a corresponding scene can be realized.
(2.2) when editing the configuration item, the user is free to define what style, what layout, which interface elements the target control software interface will present, and so on. The user can freely create a plurality of TouchTabs and TouchButton, wherein the TouchTabs are used for grouping different application scenes, and the TouchButton is used for realizing the management and control of specific functions or information of a target intelligent hardware group. The user may select the appropriate TouchButton category based on the AP I document of the reference target intelligent hardware and fill in the appropriate field contents.
The intelligent hardware unified control system is arranged in the control equipment, and the control equipment is connected with the intelligent hardware group in a wired or wireless way.
As shown in fig. 1 and 2, the intelligent hardware unified control system of the present invention includes a view interaction layer, a control layer, a transmission interface layer, and a transmission layer.
The view interaction layer is mainly responsible for interactions with the user and visual manifestations.
The control layer is responsible for handling control actions of the user and management of configuration items.
The transport interface layer is used to provide a unified set of interfaces to the control layer to adapt to various transport protocols.
The transport layer is used for realizing data interaction with target hardware aiming at a specific transport protocol.
The intelligent hardware unified control system has an editing mode and a control mode when running on a desktop end; only control mode is operated at the mobile end.
The editing mode is used for creating configuration items, editing configuration files and the like, and a user can freely customize the interface and the behavior of target control software in the process, and finally generates one configuration file.
The control mode is to read in the configuration file, then present U I interface according to the description of the configuration file, and decide how to manage and control the intelligent hardware group according to the description of the configuration file.
As shown in fig. 3, the information described in the configuration file includes:
1) Static I P address and subnet mask of the control device (i.e., the control device can modify its own network properties based on the configuration file);
2) Address, communication protocol, connection and login mode of each target intelligent hardware, etc. (determining how to interact with the target intelligent hardware group);
3) The style of interface, interface elements, interface layout, etc. to be presented by the target control software, such as title, background map, theme colors, and which pages are composed, which control buttons are on each page, how the control buttons are arranged, what the text, color, and icon presented by each TouchTab and TouchButton, etc.
The type of TouchButton is also described in each TouchButton, as well as which intelligent hardware to interact with when this button is pressed, how to interact, how to present or update its button status, etc.
The interaction between the user and the intelligent hardware unified control system provided by the invention occurs in a view interaction layer, the intelligent hardware unified control system provided by the invention is only in a control mode under a mobile terminal platform (namely a mobile terminal APP), and can be switched between an editing mode and a control mode under a desktop terminal platform (namely a desktop terminal APP).
Wherein in edit mode, the user may create, edit and delete TouchTab, touchButton elements at the view interaction layer to complete customization of control software (including interface customization and behavior customization). These custom operations by the user will be passed to the control layer, which is responsible for updating and storing the data fields of the configuration items; the user can also operate the import and export of configuration items at the view interaction layer, and the specific import and export actions are finally finished at the control layer.
In the control mode, the control layer reads and analyzes the configuration items, then the configuration items are sent to the view interaction layer to render and display a user interface, after the user clicks interface elements such as TouchTab, touchButton in the interface, the configuration items are sent to the control layer for distribution, and the control layer can correspondingly process the configuration items according to different types of interface elements. When interaction with the target hardware equipment is involved, the control layer transmits information such as an interaction instruction, a connection parameter and the like to the transmission interface layer; the transmission interface layer provides a set of unified calling interfaces upwards, so that the control layer does not need to distinguish specific communication protocols, and can call a specific transmission layer module downwards according to different protocols and send interaction instructions to the transmission layer; the transmission layer is used for realizing the transmission of a specific communication protocol, and is used for directly interacting with the target hardware equipment, sending an instruction to the target equipment, waiting for the response, and then returning response data to the transmission interface layer.
The intelligent hardware unified control system can work on one computer or a plurality of computers in stages. If only one computer works, the computer must be a desktop computer, and the creation and editing of configuration items are performed in the editing mode of the system, and after the editing is completed, the system is switched to a control mode, and then the interactive control of the intelligent hardware group is realized. If the configuration items are operated in stages on a plurality of devices, the configuration items are generally created and edited by switching to an editing mode on a certain desktop computer, configuration item files are exported, the files are imported into another computer (the desktop computer or the mobile device), and the intelligent hardware groups are interactively controlled by switching to a control mode. Whether operating on a single computer or on multiple computers in stages, the principle and flow of operation conform to the control scheme shown in fig. 2.
The invention has reasonable conception, has the advantages of universality, multi-platform support, customizable performance, flexibility, portability and the like, and can be used for controlling all intelligent hardware products and controlling other intelligent hardware products of the opened/authorized AP I.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will 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 invention.

Claims (7)

1. The intelligent hardware unified control method is characterized by comprising the following steps of:
(1) Active compatibility
(1.1) for a connection mode requiring login authentication, realizing a login function;
(1.2) data truncation and extraction under the condition of actively adapting different protocols;
(1.3) defining the concept of the page touch tab and the control button element touch button in the page to be finally displayed on the target control software;
(1.4) regardless of the type of the device, not identifying any one of the type and name of the specific device, transceiving the device only according to the set instruction; the page is irrelevant to the device, the same page TouchTab supports one or more devices, and the same control button element TouchButton also supports one or more devices;
(2) User customization
(2.1) a user creates a configuration item according to actual scene requirements, then defines and edits interface elements of target control software and control behaviors of a target intelligent hardware group, finally generates a configuration file, and introduces the configuration file into control equipment to realize intelligent hardware management and control of corresponding scenes;
(2.2) when editing the configuration item, the user freely defines what the target control software interface is to present;
the Touch Button in the step (1.3) is further classified into different types according to related functions of different intelligent hardware groups, and specifically includes a Set Only Touch Button Button, a Get Only Touch Button Button, a Set & Get Touch Button, a Source Touch Button Button and a Sink Touch Button Button;
the Set Only Touch Button button is used for executing one or more actions on any one of the target device and the target device group, and when being pressed down, one or more instructions are sent to any one of the target device and the target device group without concern about the instruction execution result;
the Get Only Touch Button button is used for acquiring equipment information, presenting the equipment information in a prompt mode, sending one or more instructions to target equipment when being pressed, replacing a response result of each instruction into a placeholder of preset display content, and finally displaying the display content containing actual data on a user interface;
the Set & Get Touch Button is used for realizing any one of setting and displaying certain state information of the intelligent hardware, configuring more than one sending instruction and one obtaining instruction, and presenting a state value; when the Set & Get Touch Button is pressed, a sending instruction corresponding to the next state value is sent to target equipment, then an acquisition instruction is sent once again to match the state value again, and state switching is realized by sending the instructions sequentially and circularly; the Set & Get Touch Button also enables the target device to switch in more than one mode;
the Source Touch Button button is used in combination with the Sink Touch Button to realize input and output matching of a matrix type of the target device; the Source Touch Button button records a variable value that the program will flag when pressed and then wait for the Sink Touch Button button to be pressed;
the Sink Touch Button buttons are used for state matching with mapping relation; when the sink touch Button is pressed, the variable value of the Source Touch Button Button marked by the program is replaced by a placeholder in an instruction defined by the Button, then the instruction with the replaced variable value is sent to the target device, and then an acquisition instruction is sent to confirm whether the state is updated or not.
2. The intelligent hardware unified control method according to claim 1, wherein the specific method of step (1.1) is as follows: for the Telnet/SSH protocol, a mode of logging in a matching table is used, namely, a field responded by the active detection equipment is matched with a keyword of the logging in the matching table, the logging in matching table is a mapping table of the keyword and input content, and a user inputs according to actual conditions.
3. The intelligent hardware unified control method of claim 1, wherein: when the user performs logging in according to the actual situation in the step (1.1), for logging in realized by using OAuth standard, logging in authentication is performed according to protocol specification, and for logging in interface defined by API, an API request for logging in once is initiated to the target device.
4. The intelligent hardware unified control method according to claim 1, wherein the specific method of step (1.2) is as follows: intercepting data by a command prompt for a Telnet/SSH protocol, and avoiding pollution of the echo data to response data by sending an option negotiation instruction for disabling echo; the HTTP protocol is carried out according to the standard request mode of HTTP; protocols without explicit separation identification are split by CRLF by default.
5. The intelligent hardware unified control method of claim 4, wherein: the protocol without explicit separation identification is also performed in any of three ways, namely, the user defines the separator by himself, intercepts and gives a time range according to the length of the expected response content, and then fetches all the response data in the time range.
6. The intelligent hardware unified control method of claim 1, wherein: in the step (2.2), the user freely creates a touch tab and a touch button, wherein the touch tab is used for grouping different application scenes, and the touch button is used for managing and controlling any one of specific functions and information of the target intelligent hardware group;
in the step (2.2), the user selects a proper TouchButton type according to the API document of the reference target intelligent hardware and fills in proper field content.
7. An intelligent hardware unified control system, which is characterized in that: the control system comprises a view interaction layer, a control layer, a transmission interface layer and a transmission layer;
the view interaction layer is used for interacting with a user and visually representing the user;
the control layer is used for processing control actions of a user and managing configuration items;
the transmission interface layer is used for providing a set of unified interfaces for the control layer to adapt to various different transmission protocols;
the transmission layer is used for realizing data interaction with target hardware aiming at a specific transmission protocol;
user interaction with the control system occurs at the view interaction layer; the control system can be switched between an editing mode and a control mode when running on the desktop end platform, and is only in the control mode when running on the mobile end platform;
the editing mode is used for creating configuration items and editing configuration files, and a user freely customizes the interface and the behavior of target control software in the process, and finally generates one configuration file;
the control mode is used for reading in the configuration file, then presenting the UI interface according to the description of the configuration file, and deciding how to manage and control the intelligent hardware group according to the description of the configuration file;
when the control system operates in an editing mode, a user can create, edit and delete TouchTab, touchButton elements at the view interaction layer to complete customization of the control system; and these custom operations of the user will be passed to the control layer, which is responsible for updating and storing the data fields of the configuration items; the user can also operate the import and export of the configuration items at the view interaction layer, and finally, the specific import and export actions are processed and completed at the control layer;
when the control system operates in a control mode, the control layer reads and analyzes configuration items, then the configuration items are submitted to the view interaction layer to render and display a user interface, after a user clicks interface elements in the interface, the configuration items are submitted to the control layer for distribution processing, and the control layer can perform corresponding processing according to different types of interface elements; when interaction with the target hardware device is involved, the control layer sends information to the transmission interface layer, the transmission interface layer provides a set of unified calling interfaces upwards, so that the control layer does not need to distinguish specific communication protocols, and the transmission interface calls the transmission layer downwards according to different protocols and sends interaction instructions to the transmission layer; the transmission layer is used for realizing the transmission of a specific communication protocol, the transmission layer is directly interacted with target hardware equipment, an instruction is sent to the target equipment, then the response is waited for, response data is returned to the transmission interface layer, the transmission interface layer processes the data and returns the processed data to the control layer, the control layer updates any one of corresponding information fields and state values according to the response result, and finally the view interaction layer is informed of updating the display of a user interface.
CN202310035227.9A 2023-01-10 2023-01-10 Unified control method and system for intelligent hardware Active CN116009958B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310035227.9A CN116009958B (en) 2023-01-10 2023-01-10 Unified control method and system for intelligent hardware

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310035227.9A CN116009958B (en) 2023-01-10 2023-01-10 Unified control method and system for intelligent hardware

Publications (2)

Publication Number Publication Date
CN116009958A CN116009958A (en) 2023-04-25
CN116009958B true CN116009958B (en) 2023-10-20

Family

ID=86037218

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310035227.9A Active CN116009958B (en) 2023-01-10 2023-01-10 Unified control method and system for intelligent hardware

Country Status (1)

Country Link
CN (1) CN116009958B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105093945A (en) * 2015-06-09 2015-11-25 北京京东尚科信息技术有限公司 System and method for safely controlling smart household apparatuses based on smart cloud
CN106933624A (en) * 2017-02-22 2017-07-07 深圳充电网科技有限公司 A kind of Intelligent hardware control system and control method
CN107135112A (en) * 2017-06-20 2017-09-05 福建省光速达物联网科技股份有限公司 A kind of privately owned cloud service visual control system of digital home and method
CN107239416A (en) * 2016-06-27 2017-10-10 陈淼波 The computer system and implementation method of unified abstract representation are provided for smart machine
CN107995263A (en) * 2017-11-20 2018-05-04 河海大学 A kind of multiple terminals Intelligent housing platform based on cloud computing and Raspberry Pi
CN108563393A (en) * 2018-04-27 2018-09-21 Oppo广东移动通信有限公司 device parameter adjusting method, device, storage medium and electronic equipment
CN112087441A (en) * 2020-09-03 2020-12-15 郑州信大先进技术研究院 Multi-protocol communication method, intelligent home gateway and multi-protocol communication system
CN212623675U (en) * 2020-07-22 2021-02-26 深圳市九扬智能科技有限公司 Intelligent household wireless control switch

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111786733B (en) * 2020-05-14 2021-08-31 上海易托邦建筑科技有限公司 Optical interaction system and optical interaction control method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105093945A (en) * 2015-06-09 2015-11-25 北京京东尚科信息技术有限公司 System and method for safely controlling smart household apparatuses based on smart cloud
CN107239416A (en) * 2016-06-27 2017-10-10 陈淼波 The computer system and implementation method of unified abstract representation are provided for smart machine
CN106933624A (en) * 2017-02-22 2017-07-07 深圳充电网科技有限公司 A kind of Intelligent hardware control system and control method
CN107135112A (en) * 2017-06-20 2017-09-05 福建省光速达物联网科技股份有限公司 A kind of privately owned cloud service visual control system of digital home and method
CN107995263A (en) * 2017-11-20 2018-05-04 河海大学 A kind of multiple terminals Intelligent housing platform based on cloud computing and Raspberry Pi
CN108563393A (en) * 2018-04-27 2018-09-21 Oppo广东移动通信有限公司 device parameter adjusting method, device, storage medium and electronic equipment
CN212623675U (en) * 2020-07-22 2021-02-26 深圳市九扬智能科技有限公司 Intelligent household wireless control switch
CN112087441A (en) * 2020-09-03 2020-12-15 郑州信大先进技术研究院 Multi-protocol communication method, intelligent home gateway and multi-protocol communication system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
A Real-Time Smart Home System using Android Bluetooth Control Device Module;Made Santo Gitakarma 等;《2019 International Symposium on Electronics and Smart Devices》;1-6 *
基于ZigBee协议的智能家居控制系统设计;王倩 等;《电子科技》;第30卷(第10期);43-45 *
基于物联网的智能家居控制系统的设计与实现;姜儒桥;《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》(第4期);C038-946 *

Also Published As

Publication number Publication date
CN116009958A (en) 2023-04-25

Similar Documents

Publication Publication Date Title
EP1304616B1 (en) Method for processing a data file using a plug-in
US9158535B2 (en) Smart endpoint architecture
EP1044400B1 (en) Internet-based service for updating a programmable control device
KR101017099B1 (en) User interface for transferring data with a communications terminal
US20170063611A1 (en) User Configuration Mechanism for Internet-of-Things (IOT)
WO2017193612A1 (en) Apparatus employing mobile terminal to operate electronic apparatus, system, and method
WO2012000233A1 (en) User customization method and system
US20070234223A1 (en) User definable interface system, method, support tools, and computer program product
JP5904704B2 (en) Control widget providing method and device using the same
EP2930898B1 (en) Method for sharing file and handheld device
KR20010032202A (en) Internet-based service for updating a programmable control device
CN103294335A (en) Apparatus and method for creating a shortcut menu
WO2013182089A1 (en) Object suspension realizing method and device
US10795633B2 (en) Desktop sharing method and mobile terminal
CN106230977B (en) A kind of client functionality loading method, system, client and server-side
CN113965829A (en) Internet of things equipment control method, device, equipment and medium based on 5G message
TW201627849A (en) Processing application interface
CN109271157A (en) Software development methodology, equipment and computer readable storage medium
US8166167B2 (en) System and method for providing customized rendering of content
WO2023098345A1 (en) Subscription system and method, electronic device, server, storage medium, and product
CN112274910A (en) Virtual key configuration method, virtual key method and related device
JP2003208302A (en) User interface method and apparatus for appliance connected with host system
CN116009958B (en) Unified control method and system for intelligent hardware
CN110347454A (en) Application program theme setting method, terminal equipment control method and device, terminal device and computer readable storage medium
KR20140102339A (en) Method and terminal of calling application using mapping information of preferred function

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
GR01 Patent grant
GR01 Patent grant