WO2017133447A1 - 一种智能设备的控制方法及装置、计算机存储介质 - Google Patents

一种智能设备的控制方法及装置、计算机存储介质 Download PDF

Info

Publication number
WO2017133447A1
WO2017133447A1 PCT/CN2017/071456 CN2017071456W WO2017133447A1 WO 2017133447 A1 WO2017133447 A1 WO 2017133447A1 CN 2017071456 W CN2017071456 W CN 2017071456W WO 2017133447 A1 WO2017133447 A1 WO 2017133447A1
Authority
WO
WIPO (PCT)
Prior art keywords
function
smart device
type
control
determining
Prior art date
Application number
PCT/CN2017/071456
Other languages
English (en)
French (fr)
Inventor
郑恬
唐胜
叶灏
苏旎
吴茜
陈迪菲
王志平
张锬锬
罗超
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Priority to KR1020187009789A priority Critical patent/KR102131159B1/ko
Priority to JP2018537710A priority patent/JP6671483B2/ja
Publication of WO2017133447A1 publication Critical patent/WO2017133447A1/zh
Priority to US15/934,630 priority patent/US10284705B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72415User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories for remote control of appliances
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1684Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675
    • G06F1/1698Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675 the I/O peripheral being a sending/receiving arrangement to establish a cordless communication link, e.g. radio or infrared link, integrated cellular phone
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • H04L12/2818Controlling appliance services of a home automation network by calling their functionalities from a device located outside both the home and the home network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4604LAN interconnection over a backbone network, e.g. Internet, Frame Relay
    • H04L12/462LAN interconnection over a bridge based backbone
    • H04L12/4625Single bridge functionality, e.g. connection of two networks over a single bridge
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network

Definitions

  • the invention belongs to the technical field of the Internet of Things, and in particular relates to a control method and device for a smart device and a computer storage medium.
  • Intelligent hardware transforms traditional devices through software and hardware, so that it has intelligent functions.
  • Intelligent hardware can also be called smart devices.
  • smart devices Currently, it extends from wearable devices to smart TVs, smart homes, smart cars, and medical devices. Health and other fields.
  • the device After the intelligentization, the device has the ability to connect, realize the loading of Internet services, and remote control becomes possible, forming a typical architecture of “cloud+end”, with added value such as big data.
  • the smart device itself meets the needs of users.
  • To achieve the Internet of Things (IOT) solution that connects people and people, it must rely on the assistance of smart phones and cloud data storage. To complete the whole solution, it takes a lot of manpower to complete the design and control binding of the device controller (also called mobile controller), the docking binding and cloud deployment of massive user data.
  • IOT Internet of Things
  • the inventors of the present invention found that since the existing mobile terminal controller is independently developed by the manufacturer, it will result in a lack of a unified test system, and the compatibility of multiple device manipulations is relatively poor. Low problem.
  • the object of the present invention is to provide a control method and device for a smart device, and a computer storage medium, which are intended to ensure the uniformity of the test system of the mobile terminal controller and improve the compatibility of multi-device control.
  • the embodiment of the present invention provides the following technical solutions:
  • a method for controlling a smart device comprising:
  • a controller template is generated, and the smart device is controlled by the controller template.
  • the embodiment of the present invention further provides the following technical solutions:
  • a control device for a smart device comprising:
  • a first acquiring unit configured to acquire basic information of the smart device
  • a connecting unit configured to control the smart device to connect to the Internet of Things according to the basic information
  • a second acquiring unit configured to acquire corresponding preset function configuration information when the smart device is connected to the Internet of Things
  • a first determining unit configured to determine a corresponding controller control according to the function configuration information
  • Generating unit configured to generate a controller template based on the controller control
  • control unit configured to control the smart device by using the controller template.
  • the embodiment of the present invention further provides the following technical solutions:
  • a computer storage medium storing a computer program, the meter The computer program is used to execute the control method of the above smart device.
  • the embodiment of the present invention firstly controls the smart device to connect to the Internet of Things according to the basic information of the smart device; and obtains the preset function configuration information corresponding to the smart device when the smart device is connected to the Internet of Things. And determining a corresponding controller control, and then generating a corresponding controller template of the smart device based on the determined controller control, and finally controlling the smart device by using the controller template; that is, the embodiment of the present invention is based only on the corresponding function configuration of the smart device.
  • the information automatically generates a controller template to complete the data intercommunication between the smart device and the controller template, which ensures the uniformity of the controller and the test system, and improves the compatibility of multi-device control.
  • FIG. 1 is a schematic diagram of a scenario of a control system of a smart device according to an embodiment of the present invention
  • FIG. 1b is a schematic flowchart of a method for controlling a smart device according to a first embodiment of the present invention
  • FIG. 2a is a schematic flowchart of a method for controlling a smart device according to a second embodiment of the present invention
  • FIGS. 2b to 2e are schematic diagrams showing steps or interfaces in a method for controlling a smart device according to a second embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a control apparatus of a smart device according to a third embodiment of the present invention.
  • module as used herein may be taken to mean a software object that is executed on the computing system.
  • the different components, modules, engines, and services described herein can be considered as implementation objects on the computing system.
  • the apparatus and method described herein are preferably implemented in software, and may of course be implemented in hardware, all of which are within the scope of the present invention.
  • Embodiments of the present invention provide a method and an apparatus for controlling a smart device.
  • FIG. 1 is a schematic diagram of a scenario of a control system of a smart device according to an embodiment of the present invention.
  • the resource scheduling system may include an intelligent device, a cloud server, and a mobile controller, a smart device, a mobile controller, and a cloud server.
  • the three nodes are connected to each other, wherein the control device of the smart device can be integrated in the mobile controller, and is mainly used for acquiring basic information of the smart device, such as a name, a type, a model, a device icon, etc.; Control the smart device to connect to the Internet of Things; obtain the corresponding preset function configuration information, such as the data type transmitted by the device, in the state where the smart device is connected to the Internet of Things; and then, according to the function configuration information, determine the corresponding controller Controls, such as data display controls and control controls; finally, based on the controller controls, generate controller templates and control the smart devices through the controller templates.
  • basic information of the smart device such as a name, a type, a model, a device icon, etc.
  • control device of the smart device may be integrated into a network device such as a server or a gateway.
  • a method for controlling a smart device includes: acquiring basic information of the smart device, and controlling the smart device to connect to the Internet of Things according to the basic information; and acquiring a corresponding preset function configuration when the smart device is connected to the Internet of Things Information; according to the function configuration information, determine the corresponding controller control; based on the controller control, generate a controller template, and control the smart device through the controller template.
  • FIG. 1b is a schematic flowchart diagram of a method for controlling a smart device according to a first embodiment of the present invention.
  • the method includes:
  • step S101 basic information of the smart device is acquired, and according to the basic information, the smart device is controlled to connect to the Internet of Things.
  • the basic information of the smart device may specifically include a name, a type, a model, a device icon, a device description, and device debugging information, such as an operating system, an integration scheme, a public key information, a link mode, a distribution network manner, and the like.
  • smart devices can also be called smart hardware, and currently extend from wearable devices to smart TVs, smart homes, smart cars, medical health and other fields. Further, according to the basic information, the docking of the smart device and the Internet of Things can be automatically completed through the set of the object terminal application.
  • step S102 in a state where the smart device is connected to the Internet of Things, the corresponding preset function configuration information is acquired.
  • step S103 a corresponding controller control is determined according to the function configuration information.
  • the step S102 and the step S103 may be specifically:
  • the acquiring the preset preset function configuration information in the state that the smart device is connected to the Internet of things may include:
  • Step 1 Determine a corresponding function configuration list of the smart device
  • Step 2 traversing the function configuration list
  • Step 3 Determine the corresponding data type based on the traversal result.
  • a function configuration list is configured correspondingly, which function
  • the configuration list contains the functions of the smart device. It can be understood that the function can be determined according to the user's check.
  • the preset function configuration information may specifically refer to the data type determined according to the function configuration list, that is, traversing the function configuration list, and determining a corresponding data type; based on this, determining corresponding control according to the function configuration information.
  • the controller control may include: determining a corresponding controller control according to the data type.
  • determining a corresponding function configuration list (step 1) of the smart device may be specifically as follows:
  • Step 11 Obtain a corresponding public function configuration and a specific function configuration of the smart device in a preset function database.
  • Step 12 Combine the public function configuration with the specific function configuration, and generate a corresponding function configuration list.
  • a public function and a specific function can be set correspondingly, wherein the public function is some basic functions prepared by the system in advance, such as “sending device information through the mobile phone Q application”, “standby/opening” Device, etc., and specific functions require the vendor to fill in the data interface information, which can include: function name, data type, user visible (yes, no), function type (display, control), historical data chart (display, not displayed) and function Description and more.
  • a preset function database For example, first pull a preset function database, pull a public function list corresponding to the device type in the preset function database (ie, a public function configuration), and pull a specific function list (specific function configuration) corresponding to the device type, Then, the public function configuration and the specific function configuration are merged, a corresponding function configuration list is generated, and finally, the function configuration list is traversed to determine the data type of the function data.
  • determining the corresponding data type based on the traversal result (step 3) has many, for example, may specifically include:
  • Step 31 Determine that the function type of the function indicated by the function configuration list is control type or data display Indication.
  • the functions indicated by the function configuration list (including public functions and specific functions) are traversed, so that the function type can be determined to be control type or data display type.
  • the type of the corresponding display control may be determined according to the function type, wherein the control type control may specifically include a switch button, a selector, a slider, and the like, and the data display type control includes a chart display, a text display, and the like.
  • Step 32 If it is determined that the function type of the function indicated by the function configuration list is a control type, determine the data type of the function.
  • the data type can then be parsed to determine the corresponding controller control.
  • Step 33 If it is determined that the function type of the function indicated by the function configuration list is a data display type, the historical data of the smart device is acquired, and the data type of the historical data is determined.
  • determining the data type of the historical data may specifically include:
  • the data type of the historical data is determined in a preset data type set, wherein the data type set includes a Boolean Bool, an integer type Int, a floating point type Float, a string type String, an enumerated type Enum, a link type URL, and a Time time.
  • the data type set includes a Boolean Bool, an integer type Int, a floating point type Float, a string type String, an enumerated type Enum, a link type URL, and a Time time.
  • the data type set includes a Boolean Bool, an integer type Int, a floating point type Float, a string type String, an enumerated type Enum, a link type URL, and a Time time.
  • determining the corresponding controller control may be specifically: parsing the data type according to a preset rule, and determining a corresponding controller control.
  • the method may further include:
  • Step a Determine whether the function indicated in the function configuration list is visible to the user.
  • Step b If it is determined that the function indicated in the function configuration list is visible to the user, triggering a step of determining that the function type indicated by the function configuration list is a control type or a data display type (ie, step 31).
  • Step c If it is determined that the function indicated in the function configuration list is invisible to the user, then Hide this feature.
  • the function indicated by the function configuration list (including the public function and the specific function) is visible to the user according to the default setting or according to the manufacturer setting or the like, that is, determining whether the function is required, if the user is Visible, it is determined that the function type is control type or data display type, and if it is invisible to the user, the function is hidden.
  • step S104 based on the controller control, a controller template is generated, and the smart device is controlled by the controller template.
  • the controller control determined according to each data type transmitted by the smart device may constitute a controller template responded by the smart device, so that the smart device may be controlled by the controller template to complete data communication between the smart device and the controller template.
  • the method may further include:
  • the user can also personally modify the style, sorting, color change and other attributes of the control, and at the same time, can also add or configure new attributes, and so on.
  • the platform can be configured as a controller template to generate a relay station, and only the data types transmitted by the smart device are determined, and the system automatically generates a controller template, where the smart device and the controller template are generated.
  • the three nodes of the cloud server are connected to each other.
  • the control method of the smart device provided by the embodiment firstly controls the smart device to connect to the Internet of Things according to the basic information of the smart device; and obtains the pre-corresponding to the smart device when the smart device is connected to the Internet of Things.
  • the function configuration information is set to determine the corresponding controller control, and then the corresponding controller template is generated based on the determined controller control, and finally the smart device is controlled by the controller template; that is, the embodiment of the invention is based only on the smart device
  • the corresponding function configuration information automatically generates a controller template to complete the data intercommunication between the smart device and the controller template, that is, the controller and the test system are unified, and the multi-device is also improved. Ready for compatibility.
  • FIG. 2a is a schematic flowchart of a method for controlling a smart device according to a second embodiment of the present invention.
  • the control method of the smart device provided by the embodiment of the present invention can be configured as a controller template to generate a relay station. Only need to determine the data types transmitted by the smart device, the system will automatically generate a controller template, wherein the smart device, the controller template, the cloud server three nodes are connected to each other; the controller template supports the control style selection, sorting, color change Personalized modification can not only ensure the uniformity of the brand style, but also ensure the compatibility of multi-device control.
  • the process of the control method of the smart device may include:
  • the system needs to control the smart device to connect to the Internet of Things according to the basic information of the smart device.
  • a corresponding public function list and a specific function list of a plurality of device types are set in the system to form a function database, and the corresponding public function list and the specific function list are pulled according to the basic information of the connected smart device. .
  • the public function list includes public functions such as “send device information through mobile phone Q application” and “standby/open device”; specific functions require vendors to fill in data interface information, which may include: function name, data type, user visible (yes, no ), function type (display, control), historical data chart (display, not displayed) and function description, etc., can refer to Figure 2b together, fill in the editing interface of the specific function for the data interface.
  • the system merges the public function list with the specific function list to generate the corresponding smart terminal.
  • S28 If it is a control type, S29 is directly executed, and if it is a data display type, historical data is pulled.
  • the public function and the specific function in the function configuration list are visible to the user, that is, whether the function is required, and if it is visible to the user, the function is determined.
  • the type is control type or data display type. If it is not visible to the user, the function is hidden.
  • the type of the display control may be determined according to the function type, wherein the control type control may specifically include a switch button, a selector, a slider, etc., and the data display type control may include a chart display, a text display, and the like.
  • the corresponding data type can be determined in a preset data type set, wherein the data type set includes a Boolean Bool, an integer Int, a floating point type Float, a string type String, an enumeration type Enum, One or more combinations of link type URLs and Time time types, each type of data corresponding to one data type.
  • the data type set includes a Boolean Bool, an integer Int, a floating point type Float, a string type String, an enumeration type Enum, One or more combinations of link type URLs and Time time types, each type of data corresponding to one data type.
  • each data type may be parsed according to a preset rule to determine a corresponding controller control.
  • a schematic flowchart of the corresponding controller control is determined, wherein when the data type is Boolean Bool, For integer Int and floating point Float, determine the type of display control you need:
  • control type it is judged whether the user replaces the control, and if the user needs to replace the control, the user selects the control; if the user does not need to replace the control, the system outputs the default control.
  • FIG. 2d it is a schematic diagram of the correspondence between the data type and the control, wherein the Boolean Bool data sets a default output switch button, or an operation button, or a stepper, etc., and the integer type Int data sets a default output.
  • the slider, range selector, etc., floating point type Float data sets the default output input box, or text display.
  • the display form can be modified according to the number of currently read values. For example, if only one value of today's temperature is required to be displayed, the corresponding display form is displayed. If you need to display multiple values such as temperature, humidity, pollution index, etc., it will also be displayed in the corresponding display form, and so on.
  • the data type is a string type String, an enumeration type Enum, a link type URL, and a time type Time
  • it is determined whether the user replaces the control and if the user needs to replace the control, the user selects the control; if the user does not need When the control is replaced, the system outputs the default control.
  • the string type String data sets a default output input box, or a text display, etc.
  • the enumerated type Enum data sets a default output selector
  • the link type URL data sets a default output link entry, time.
  • Type Time data sets the default output time range selector.
  • controller template is generated and displayed based on the default output controls, and/or user-selected controls, and/or digital charts, etc. Further, the vendor can perform the necessary attribute configuration as needed (eg, minimum/large volume, etc.) ).
  • the manufacturer can perform page layout adjustment, skinning, and the like as needed. That is, the control style selection, sorting, color change and other personalized modifications can be performed, as shown in FIG. 2e, which is a schematic diagram of the adjustment layout and style interface of the controller template, wherein the left side is the setting interface of each control, and the right side is the user.
  • FIG. 2e is a schematic diagram of the adjustment layout and style interface of the controller template, wherein the left side is the setting interface of each control, and the right side is the user.
  • the display interface of the terminal is a schematic diagram of the adjustment layout and style interface of the controller template, wherein the left side is the setting interface of each control, and the right side is the user.
  • the control method of the smart device provided by the embodiment firstly controls the smart device to connect to the Internet of Things according to the basic information of the smart device; and obtains the pre-corresponding to the smart device when the smart device is connected to the Internet of Things.
  • the function configuration information is set to determine the corresponding controller control, and then the corresponding controller template is generated based on the determined controller control, and finally the smart device is controlled by the controller template; that is, the embodiment of the invention is based only on the smart device
  • Corresponding function configuration information automatically generates a controller template to complete the data intercommunication between the smart device and the controller template, which ensures the uniformity of the controller and the test system, and improves the compatibility of multi-device control.
  • the embodiment of the present invention further provides an apparatus based on the control method of the smart device.
  • the meaning of the noun is the same as that of the above-mentioned method for controlling the smart device.
  • FIG. 3 is a schematic structural diagram of a control device of a smart device according to an embodiment of the present invention.
  • the control device of the smart device may include a first acquiring unit 301, a connecting unit 302, a second acquiring unit 303, and a first determining.
  • the first obtaining unit 301 is configured to acquire basic information of the smart device.
  • the basic information of the smart device may specifically include a name, a type, a model, a device icon, a device description, and device debugging information, such as an operating system, an integration scheme, a public key information, a link mode, a distribution network manner, and the like.
  • smart devices can also be called smart hardware, and currently extend from wearable devices to smart TVs, smart homes, smart cars, medical health and other fields. Further, based on these basic letters Interest, through the set of IoT terminal applications, can automatically complete the docking of smart devices and the Internet of Things.
  • the connection unit 302 is configured to control the smart device to connect to the Internet of Things according to the basic information, and the second obtaining unit 303 is configured to acquire corresponding preset function configuration information when the smart device is connected to the Internet of Things;
  • the first determining unit 304 is configured to determine a corresponding controller control according to the function configuration information.
  • the second obtaining unit 303 may include:
  • the first determining subunit is configured to determine a corresponding function configuration list of the smart device
  • the second determining subunit is configured to determine a corresponding data type based on the traversal result.
  • a function configuration list is configured correspondingly, and the function configuration list includes functions of the smart device. It can be understood that the function can be determined according to the user's check.
  • the preset function configuration information may specifically refer to the data type determined according to the function configuration list, that is, traversing the function configuration list, and determining a corresponding data type; based on this, the first determining unit 304 is further configured to : Determine the corresponding controller control based on the data type.
  • the first determining subunit is further configured to: obtain, in a preset function database, a corresponding public function configuration and a specific function configuration of the smart device, merge the public function configuration and the specific function configuration, and generate A list of corresponding feature configurations.
  • a public function and a specific function can be set correspondingly, wherein the public function is some basic functions prepared by the system in advance, such as “sending device information through the mobile phone Q application”, “standby/opening” Device, etc., and specific functions require the vendor to fill in the data interface information, which can include: function name, data type, user visible (yes, no), function type (display, control), historical data chart (display, not displayed) and function Description and more.
  • the preset function database For example, first pull the preset function database, and pull the device class in the preset function database.
  • the corresponding public function list that is, the public function configuration
  • the corresponding specific function list that is, the specific function configuration
  • iterate through the function configuration list to determine the data type of the function data.
  • the second determining subunit is further configured as:
  • the function type of the function indicated by the function configuration list is a control type or a data display type.
  • the function type of the function indicated by the function configuration list is a control type, determining a data type of the function
  • the function type of the function indicated by the function configuration list is a data display type
  • the historical data of the smart device is acquired, and the data type of the historical data is determined.
  • the functions indicated by the function configuration list (including public functions and specific functions) are traversed, so that the function type can be determined to be control type or data display type.
  • the type of the corresponding display control may be determined according to the function type, wherein the control type control may specifically include a switch button, a selector, a slider, and the like, and the data display type control includes a chart display, a text display, and the like.
  • the data type can then be parsed to determine the corresponding controller control.
  • the second determining subunit determines the data type of the historical data, and is further configured to:
  • each historical data corresponds to one data type;
  • the first determining unit 304 is configured to parse the data type according to a preset rule to determine a corresponding controller control.
  • control device of the smart device may further include:
  • a third determining unit configured to determine whether the function indicated in the function configuration list is visible to the user
  • the first triggering unit is configured to: if it is determined that the function indicated in the function configuration list is visible to the user, trigger the second determining subunit to perform a function to determine that the function type indicated by the function configuration list is control type or data Display type step;
  • the hiding unit is configured to hide the function if it is determined that the function indicated in the function configuration list is invisible to the user.
  • the function indicated by the function configuration list (including the public function and the specific function) is visible to the user according to the default setting or according to the manufacturer setting or the like, that is, determining whether the function is required, if the user is Visible, it is determined that the function type is control type or data display type, and if it is invisible to the user, the function is hidden.
  • the generating unit 305 is configured to generate a controller template based on the controller control
  • the control unit 306 is configured to control the smart device by using the controller template.
  • the controller control determined according to each data type transmitted by the smart device may constitute a controller template responded by the smart device, so that the smart device may be controlled by the controller template to complete data communication between the smart device and the controller template.
  • the device may further include:
  • the third obtaining unit is configured to acquire an adjustment instruction, and the configuration unit is configured to perform attribute adjustment on the controller template according to the adjustment instruction.
  • the user can also personally modify the style, sorting, color change and other attributes of the control, and at the same time, can also add or configure new attributes, and so on.
  • the platform can be configured as a controller template to generate a relay station, and only the data types transmitted by the smart device are determined, and the system automatically generates a controller template, where the smart device and the controller template are generated.
  • the three nodes of the cloud server are connected to each other.
  • the foregoing units may be implemented as a separate entity, or may be implemented in any combination, and may be implemented as the same or a plurality of entities.
  • the foregoing method embodiments and details are not described herein.
  • the control device of the smart device may be specifically integrated in a network device such as a server or a gateway.
  • the control device of the smart device provided by the embodiment first controls the smart device to connect to the Internet of Things according to the basic information of the smart device; and obtains the pre-correspondence corresponding to the smart device when the smart device is connected to the Internet of Things.
  • the function configuration information is set to determine the corresponding controller control, and then the corresponding controller template is generated based on the determined controller control, and finally the smart device is controlled by the controller template; that is, the embodiment of the invention is based only on the smart device
  • Corresponding function configuration information automatically generates a controller template to complete the data intercommunication between the smart device and the controller template, which ensures the uniformity of the controller and the test system, and improves the compatibility of multi-device control.
  • the control device of the smart device provided by the embodiment of the present invention is, for example, a computer, a tablet computer, a mobile phone with a touch function, etc., and the control device of the smart device is the same as the control method of the smart device in the above embodiment. It is conceivable that any method provided in the embodiment of the control method of the smart device can be run on the control device of the smart device, and the specific implementation process is described in the embodiment of the control method of the smart device, and details are not described herein again. .
  • control method of the smart device of the present invention a common tester in the art can understand all or part of the process of implementing the control method of the smart device according to the embodiment of the present invention, and the related program can be controlled by a computer program.
  • the computer program can be stored in a computer readable storage medium, such as in a memory of the terminal, and executed by at least one processor in the terminal, and can include, as described, Smart device The flow of an embodiment of the control method.
  • the storage medium may be a magnetic disk, an optical disk, a read only memory (ROM), a random access memory (RAM), or the like.
  • each functional module may be integrated into one processing chip, or each module may exist physically separately, or two or more modules may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated module if implemented in the form of a software functional module and sold or used as a standalone product, may also be stored in a computer readable storage medium, such as a read only memory, a magnetic disk or an optical disk, etc. .
  • an embodiment of the present invention further provides a computer storage medium, wherein a computer program is stored, and the computer program is used to execute the control method of the smart device according to the embodiment of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Automation & Control Theory (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Selective Calling Equipment (AREA)
  • Computer And Data Communications (AREA)
  • Testing And Monitoring For Control Systems (AREA)
  • Telephone Function (AREA)

Abstract

一种智能设备的控制方法及装置、计算机存储介质,该方法包括:获取智能设备的基础信息,并根据智能设备的基础信息,控制智能设备连接至物联网(S101);在智能设备连接至物联网的状态下,获取与该智能设备相应的预设功能配置信息(S102);根据该功能配置信息,确定相应的控制器控件(S103);基于控制器控件,生成控制器模板,并通过控制器模板对智能设备进行控制(S104);所述方法仅基于智能设备相应的功能配置信息,自动统一生成控制器模板,从而完成智能设备与控制器模板的数据互通,保证了控制器及测试体系的统一,提高了多设备操控的兼容性。

Description

一种智能设备的控制方法及装置、计算机存储介质 技术领域
本发明属于物联网技术领域,尤其涉及一种智能设备的控制方法及装置、计算机存储介质。
背景技术
智能硬件通过软硬件结合的方式,对传统设备进行改造,进而让其拥有智能化的功能,智能硬件也可称为智能设备,目前从可穿戴设备延伸到智能电视、智能家居、智能汽车、医疗健康等领域。智能化之后,设备具备连接的能力,实现互联网服务的加载,远程操控成为可能,形成“云+端”的典型架构,具备了大数据等附加价值。智能设备本身满足用户的需求有限,要实现连接人与人,物与物的整体物联网(IOT,Internet Of Things)解决方案,必然要依赖智能手机和云端数据存储的协助。而完成整套解决方案,需要投入大量人力完成设备控制器(也称移动端控制器)的设计制作和操控绑定,海量用户数据的对接绑定和云端部署。
目前,大部分硬件厂商都是自行制作移动端控制器,独立开发完成设备数据和控制器的绑定,实现控制器对智能设备的操控;再按照维基(Wiki)指引单线尝试设备和控制器的对接,数据和云端服务器对接,通过物联网提供一对一的对接联调保证对接成功。
在对现有技术的研究和实践过程中,本发明的发明人发现,由于现有移动端控制器是由厂商自行独立开发完成,因此会导致缺乏统一的测试体系,多设备操控时兼容性较低的问题。
发明内容
本发明的目的在于提供一种智能设备的控制方法及装置、计算机存储介质,旨在保证移动端控制器测试体系的统一、以及提高多设备操控的兼容性。
为解决上述技术问题,本发明实施例提供以下技术方案:
一种智能设备的控制方法,包括:
获取智能设备的基础信息,并根据所述基础信息,控制智能设备连接至物联网;
在所述智能设备连接至物联网的状态下,获取相应的预设功能配置信息;
根据所述功能配置信息,确定相应的控制器控件;
基于所述控制器控件,生成控制器模板,并通过所述控制器模板对所述智能设备进行控制。
为解决上述技术问题,本发明实施例还提供以下技术方案:
一种智能设备的控制装置,包括:
第一获取单元,配置为获取智能设备的基础信息;
连接单元,配置为根据所述基础信息,控制智能设备连接至物联网;
第二获取单元,配置为在所述智能设备连接至物联网的状态下,获取相应的预设功能配置信息;
第一确定单元,配置为根据所述功能配置信息,确定相应的控制器控件;
生成单元,配置为基于所述控制器控件,生成控制器模板;
控制单元,配置为通过所述控制器模板对所述智能设备进行控制。
为解决上述技术问题,本发明实施例还提供以下技术方案:
一种计算机存储介质,所述计算机存储介质存储有计算机程序,该计 算机程序用于执行上述智能设备的控制方法。
相对于现有技术,本发明实施例,首先根据智能设备的基础信息,控制智能设备连接至物联网;在智能设备连接至物联网的状态下,获取与该智能设备相应的预设功能配置信息,从而确定相应的控制器控件,然后,基于确定的控制器控件生成智能设备相应的控制器模板,最后通过控制器模板对智能设备进行控制;即本发明实施例仅基于智能设备相应的功能配置信息,自动统一生成控制器模板,从而完成智能设备与控制器模板的数据互通,即保证了控制器及测试体系的统一,还提高多设备操控的兼容性。
附图说明
下面结合附图,通过对本发明的具体实施方式详细描述,将使本发明的技术方案及其它有益效果显而易见。
图1a是本发明实施例提供的智能设备的控制系统的场景示意图;
图1b是本发明第一实施例提供的智能设备的控制方法的流程示意图;
图2a为本发明第二实施例提供的智能设备的控制方法的流程示意图;
图2b至图2e为本发明第二实施例提供的智能设备的控制方法中步骤或界面解析示意图;
图3为本发明第三实施例提供的智能设备的控制装置的结构示意图。
具体实施方式
请参照图式,其中相同的组件符号代表相同的组件,本发明的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本发明具体实施例,其不应被视为限制本发明未在此详述的其它具体实施例。
在以下的说明中,本发明的具体实施例将参考由一部或多部计算机所执行的步骤及符号来说明,除非另有述明。因此,这些步骤及操作将有数次提到由计算机执行,本文所指的计算机执行包括了由代表了以一结构化 型式中的数据的电子信号的计算机处理单元的操作。此操作转换该数据或将其维持在该计算机的内存系统中的位置处,其可重新配置或另外以本领域测试人员所熟知的方式来改变该计算机的运作。该数据所维持的数据结构为该内存的实体位置,其具有由该数据格式所定义的特定特性。但是,本发明原理以上述文字来说明,其并不代表为一种限制,本领域测试人员将可了解到以下所述的多种步骤及操作亦可实施在硬件当中。
本文所使用的术语「模块」可看做为在该运算系统上执行的软件对象。本文所述的不同组件、模块、引擎及服务可看做为在该运算系统上的实施对象。而本文所述的装置及方法优选的以软件的方式进行实施,当然也可在硬件上进行实施,均在本发明保护范围之内。
本发明实施例提供一种智能设备的控制方法及装置。
参见图1a,该图为本发明实施例所提供的智能设备的控制系统的场景示意图,该资源调度系统可以包括智能设备、云端服务器以及移动端控制器,智能设备、移动端控制器、云端服务器三节点相互连接,其中,智能设备的控制装置可以集成在所述移动端控制器中,主要用于获取智能设备的基础信息,如,名称、类型、型号、设备图标等等;并根据基础信息,控制智能设备连接至物联网;在智能设备连接至物联网的状态下,获取相应的预设功能配置信息,如设备传输的数据类型等等;然后,根据功能配置信息,确定相应的控制器控件,如包括数据显示型控件以及控制型控件;最后,基于控制器控件,生成控制器模板,并通过控制器模板对智能设备进行控制。
以下将分别进行详细说明。
第一实施例
在本实施例中,将从智能设备的控制装置的角度进行描述,该智能设备的控制装置具体可以集成在服务器或网关等网络设备中。
一种智能设备的控制方法,包括:获取智能设备的基础信息,并根据所述基础信息,控制智能设备连接至物联网;在智能设备连接至物联网的状态下,获取相应的预设功能配置信息;根据功能配置信息,确定相应的控制器控件;基于控制器控件,生成控制器模板,并通过控制器模板对智能设备进行控制。
请参阅图1b,图1b是本发明第一实施例提供的智能设备的控制方法的流程示意图。所述方法包括:
在步骤S101中,获取智能设备的基础信息,并根据基础信息,控制智能设备连接至物联网。
可以理解的是,智能设备的基础信息可以具体包括名称、类型、型号、设备图标、设备描述和设备调试信息,如操作系统、集成方案、公钥信息、链接方式、配网方式,等等。
其中,智能设备也可称为智能硬件,目前从可穿戴设备延伸到智能电视、智能家居、智能汽车、医疗健康等领域。进一步的,根据这些基础信息,通过设定的物联终端应用,可以自动完成智能设备和物联网的对接。
在步骤S102中,在智能设备连接至物联网的状态下,获取相应的预设功能配置信息。
在步骤S103中,根据该功能配置信息,确定相应的控制器控件。
其中,所述步骤S102与步骤S103可具体为:
优选的,在智能设备连接至物联网的状态下,获取相应的预设功能配置信息,可以包括:
步骤1、确定该智能设备的相应的功能配置列表;
步骤2、遍历功能配置列表;
步骤3、基于遍历结果确定相应的数据类型。
也就是说,对于每一智能设备,都相应配置有功能配置列表,该功能 配置列表中包含该智能设备具备的功能,可以理解的是,可以根据用户的勾选确定是否需要该功能。
进一步的,比如,预设功能配置信息可以具体指根据功能配置列表确定的数据类型,即遍历该功能配置列表,确定出相应的数据类型;基于此,根据所述功能配置信息,确定相应的控制器控件(步骤S103),可以包括:根据该数据类型,确定相应的控制器控件。
更进一步的,确定所述智能设备的相应的功能配置列表(步骤1),可以具体如下:
步骤11、在预设功能数据库中,获取所述智能设备相应的公有功能配置与特定功能配置;
步骤12、合并所述公有功能配置与所述特定功能配置,生成相应的功能配置列表。
也就是说,对于每一智能设备,可以相应的设置有公有功能与特定功能,其中,公有功能是系统预先准备好的一些基础功能,例如“通过手机Q应用发送设备信息”,“待机/开启设备”等,而特定功能需要厂商填写数据接口信息,可以包括:功能名称,数据类型,用户可见(是,否),功能类型(显示,控制),历史数据图表(显示,不显示)和功能描述等等。
比如,首先拉取预设功能数据库,在该预设功能数据库拉取与设备类型对应的公有功能列表(即公有功能配置),以及拉取与设备类型对应的特定功能列表(特定功能配置),然后,合并该公有功能配置与该特定功能配置,生成相应的功能配置列表,最后,遍历功能配置列表,确定功能数据的数据类型。
可以理解的是,基于遍历结果确定相应的数据类型(步骤3)有很多,比如,可具体包括:
步骤31、确定功能配置列表所指示功能的功能类型为控制型或数据显 示型。
即遍历该功能配置列表所指示的功能(包括公有功能与特定功能),从而可以确定其功能类型为控制型或数据显示型。
进一步的,比如,根据功能类型可以确定对应的展示控件的类型,其中,控制型控件可以具体包括开关按钮、选择器、滑块等,数据显示型控件包括图表显示、文字显示等等。
步骤32、若确定功能配置列表所指示功能的功能类型为控制型,则确定该功能的数据类型。
然后,可以对该数据类型进行解析,确定出相应的控制器控件。
步骤33、若确定功能配置列表所指示功能的功能类型为数据显示型,则获取智能设备的历史数据,并确定历史数据的数据类型。
在本发明实施例中,确定历史数据的数据类型,可以具体包括:
在预设的数据类型集合中确定历史数据的数据类型,其中,数据类型集合包括布尔型Bool、整数型Int、浮点数型Float、字符串型String、枚举型Enum、链接型URL、Time时间型中的一种或两种以上组合,每一历史数据对应一种数据类型。
基于此,所述根据所述数据类型,确定相应的控制器控件,可以具体为:按照预设规则对所述数据类型进行解析,确定相应的控制器控件。
可选的,在确定所述功能配置列表所指示功能的功能类型为控制型或数据显示型(步骤31)之前,还可以包括:
步骤a、确定功能配置列表中所指示的功能是否对用户可见。
步骤b、若确定所述功能配置列表中所指示的功能对用户可见,则触发执行确定所述功能配置列表所指示功能的功能类型为控制型或数据显示型的步骤(即步骤31)。
步骤c、若确定所述功能配置列表中所指示的功能对用户不可见,则隐 藏该功能。
即,可以根据默认设定、或者根据厂商设置等等,确定该功能配置列表所指示的功能(包括公有功能与特定功能)是否对用户可见,也就是说,确定该功能是否需要,若对用户可见,则确定功能类型为控制型或数据显示型,若对用户不可见,则进行功能隐藏。
在步骤S104中,基于控制器控件,生成控制器模板,并通过该控制器模板对智能设备进行控制。
比如,根据智能设备传输的各数据类型确定的控制器控件,可以组成该智能设备响应的控制器模板,从而可以通过该控制器模板对智能设备进行控制,完成智能设备与控制器模板的数据互通。
可以理解的是,基于控制器控件,生成控制器模板之后,还可以包括:
(1)获取调整指令;
(2)根据该调整指令对所述控制器模板进行属性调整。
也就是说,在生成控制器模板后,用户还可以对控件的样式、排序、换色等属性进行个性化的修改,同时,也可以增加或配置新的属性,等等。
本发明实施例中,比如,可以通过配置平台系统作为控制器模板的生成中转站,只需确定出智能设备传输的各数据类型,系统将自动生成控制器模板,其中,智能设备、控制器模板、云端服务器三节点相互连接。
由上述可知,本实施例提供的智能设备的控制方法,首先根据智能设备的基础信息,控制智能设备连接至物联网;在智能设备连接至物联网的状态下,获取与该智能设备相应的预设功能配置信息,从而确定相应的控制器控件,然后,基于确定的控制器控件生成智能设备相应的控制器模板,最后通过控制器模板对智能设备进行控制;即本发明实施例仅基于智能设备相应的功能配置信息,自动统一生成控制器模板,从而完成智能设备与控制器模板的数据互通,即保证了控制器及测试体系的统一,还提高多设 备操控的兼容性。
第二实施例
根据第一实施例所描述的方法,以下将举例作进一步详细说明。
请参阅图2a,图2a为本发明第二实施例提供的智能设备的控制方法的流程示意图,本发明实施例提供的智能设备的控制方法,可以通过配置平台系统作为控制器模板的生成中转站,只需确定出智能设备传输的各数据类型,系统将自动生成控制器模板,其中,智能设备、控制器模板、云端服务器三节点相互连接;控制器模板同时支持控件样式挑选,排序,换色等个性化修改,既可以保证了品牌风格统一,还保证了多设备操控兼容完善。
其中,如图2a所示,该智能设备的控制方法的流程可以包括:
S21、拉取与智能设备类型对应的公有功能列表。
S22、拉取与智能设备类型对应的特定功能列表。
S23、合并公有功能列表与特定功能列表,生成相应的功能配置列表。
可以理解的是,在拉取与智能设备类型对应的公有功能列表之前,系统需要根据智能设备的基础信息,控制智能设备连接至物联网。
可具体的,比如,系统中设置有多种设备类型的相应的公有功能列表及特定功能列表,构成功能数据库,根据连接的智能设备的基础信息,拉取相对应的公有功能列表以及特定功能列表。
其中,公有功能列表包括“通过手机Q应用发送设备信息”,“待机/开启设备”等公有功能;特定功能需要厂商填写数据接口信息,可以包括:功能名称,数据类型,用户可见(是,否),功能类型(显示,控制),历史数据图表(显示,不显示)和功能描述等等,可一并参考图2b所示,为数据接口填写特定功能的编辑界面。
其后,系统合并公有功能列表与特定功能列表,生成智能终端相应的 功能配置列表。
S24、遍历功能配置列表。
S25、确定是否对用户可见。
S26、若不可见,则隐藏该功能。
S27、若可见,则确定功能类型为控制型或数据显示型。
S28、若为控制型,则直接执行S29,若为数据显示型,则拉取历史数据。
比如,可以根据默认设定、或者根据厂商设置等等,确定该功能配置列表中的公有功能与特定功能是否对用户可见,也就是说,确定该功能是否需要,若对用户可见,则确定功能类型为控制型或数据显示型,若对用户不可见,则进行功能隐藏。
其中,根据功能类型可以确定对应的展示控件的类型,其中,控制型控件可以具体包括开关按钮、选择器、滑块等,数据显示型控件可以包括图表显示、文字显示等等。
S29、确定数据类型。
S30、根据数据类型确定相应的控制器控件并输出。
S31、生成控制器模板并展示。
可以理解的是,可以在预设的数据类型集合中确定出相应的数据类型,其中,数据类型集合包括布尔型Bool、整数型Int、浮点数型Float、字符串型String、枚举型Enum、链接型URL、Time时间型中的一种或两种以上组合,每一种数据对应一种数据类型。
进一步的,在遍历功能配置列表确定出相应的数据类型之后,可以按照预设规则对各数据类型进行解析,确定相应的控制器控件。
可具体的,比如,如图2c所示,为按照预设规则对各数据类型进行解析,确定相应的控制器控件的流程示意图,其中,当数据类型为布尔型Bool、 整数型Int、浮点数型Float时,判断需要的展示控件的类型:
在一方面,如果是控制型,则判断用户是否更换该控件,若用户需要更换该控件,则获取用户选择的控件;若用户不需要更换该控件,则系统输出默认的控件。
比如,可如图2d所示,为数据类型与控件的对应关系示意图,其中,布尔型Bool数据设定默认输出开关按钮、或操作按钮、或步进器等,整数型Int数据设定默认输出滑块、或范围选取器等,浮点数型Float数据设定默认输出输入框、或文本显示等。
在另一方面,如果是数据显示型,则判断是否读取历史数据,若是要读取历史数据,则判断显示区域为大区域或者为小区域,若为大区域,则采用数字和高图表的显示方式,若为小区域,则采用数字和矮图表的显示方式,如图2d所示。若不读取历史数据,则直接展示当前的数值,其中,可以根据当前读取的数值的数目修改展示形式,比如,如果只需要展示今天的气温一个数值,则以对应的展示形式进行展示,如果需要展示气温、湿度、污染指数等多个数值,则也会以对应的展示形式进行展示,等等。
另外,当数据类型为字符串型String、枚举型Enum、链接型URL、时间型Time时,判断用户是否更换该控件,若用户需要更换该控件,则获取用户选择的控件;若用户不需要更换该控件,则系统输出默认的控件。
比如,可如图2d所示,字符串型String数据设定默认输出输入框、或文本显示等,枚举型Enum数据设定默认输出选择器,链接型URL数据设定默认输出链接入口,时间型Time数据设定默认输出时间范围选择器。
最后,根据默认输出的控件、和/或用户选择的控件、和/或数字图表等,生成控制器模板并展示,进一步的,厂商可以按需进行必要的属性配置(例如,最小/大音量等)。
在某些实施方式中,厂商可以按需进行页面排版调整,换肤等功能, 即可以进行控件样式挑选,排序,换色等个性化修改,可一并参考图2e所示,为控制器模板的调整布局及样式界面示意图,其中,左边为各控件的设置界面,右边为用户终端的展示界面。
由上述可知,本实施例提供的智能设备的控制方法,首先根据智能设备的基础信息,控制智能设备连接至物联网;在智能设备连接至物联网的状态下,获取与该智能设备相应的预设功能配置信息,从而确定相应的控制器控件,然后,基于确定的控制器控件生成智能设备相应的控制器模板,最后通过控制器模板对智能设备进行控制;即本发明实施例仅基于智能设备相应的功能配置信息,自动统一生成控制器模板,从而完成智能设备与控制器模板的数据互通,即保证了控制器及测试体系的统一,还提高多设备操控的兼容性。
第三实施例
为便于更好的实施本发明实施例提供的智能设备的控制方法,本发明实施例还提供一种基于上述智能设备的控制方法的装置。其中名词的含义与上述智能设备的控制的方法中相同,具体实现细节可以参考方法实施例中的说明。
请参阅图3,图3为本发明实施例提供的智能设备的控制装置的结构示意图,该智能设备的控制装置可以包括第一获取单元301、连接单元302、第二获取单元303、第一确定单元304、生成单元305以及控制单元306。
其中,所述第一获取单元301,配置为获取智能设备的基础信息。
可以理解的是,智能设备的基础信息可以具体包括名称、类型、型号、设备图标、设备描述和设备调试信息,如操作系统、集成方案、公钥信息、链接方式、配网方式,等等。
其中,智能设备也可称为智能硬件,目前从可穿戴设备延伸到智能电视、智能家居、智能汽车、医疗健康等领域。进一步的,根据这些基础信 息,通过设定的物联终端应用,可以自动完成智能设备和物联网的对接。
连接单元302,配置为根据所述基础信息,控制智能设备连接至物联网;第二获取单元303,配置为在所述智能设备连接至物联网的状态下,获取相应的预设功能配置信息;第一确定单元304,配置为根据所述功能配置信息,确定相应的控制器控件。
优选的,第二获取单元303,可以包括:
1、第一确定子单元,配置为确定所述智能设备的相应的功能配置列表;
2、遍历子单元,配置为遍历所述功能配置列表;
3、第二确定子单元,配置为基于遍历结果确定相应的数据类型。
也就是说,对于每一智能设备,都相应配置有功能配置列表,该功能配置列表中包含该智能设备具备的功能,可以理解的是,可以根据用户的勾选确定是否需要该功能。
进一步的,比如,预设功能配置信息可以具体指根据功能配置列表确定的数据类型,即遍历该功能配置列表,确定出相应的数据类型;基于此,所述第一确定单元304,还配置为:根据所述数据类型,确定相应的控制器控件。
更进一步的,第一确定子单元,还配置为:在预设功能数据库中,获取所述智能设备相应的公有功能配置与特定功能配置,合并所述公有功能配置与所述特定功能配置,生成相应的功能配置列表。
也就是说,对于每一智能设备,可以相应的设置有公有功能与特定功能,其中,公有功能是系统预先准备好的一些基础功能,例如“通过手机Q应用发送设备信息”,“待机/开启设备”等,而特定功能需要厂商填写数据接口信息,可以包括:功能名称,数据类型,用户可见(是,否),功能类型(显示,控制),历史数据图表(显示,不显示)和功能描述等等。
比如,首先拉取预设功能数据库,在该预设功能数据库拉取与设备类 型对应的公有功能列表(即公有功能配置),以及拉取与设备类型对应的特定功能列表(特定功能配置),然后,合并该公有功能配置与该特定功能配置,生成相应的功能配置列表,最后,遍历功能配置列表,确定功能数据的数据类型。
可以理解的是,基于遍历结果确定相应的数据类型有很多,比如,所述第二确定子单元,还配置为:
确定所述功能配置列表所指示功能的功能类型为控制型或数据显示型。
若确定所述功能配置列表所指示功能的功能类型为控制型,则确定该功能的数据类型;
若确定所述功能配置列表所指示功能的功能类型为数据显示型,则获取所述智能设备的历史数据,并确定所述历史数据的数据类型。
即遍历该功能配置列表所指示的功能(包括公有功能与特定功能),从而可以确定其功能类型为控制型或数据显示型。
进一步的,比如,根据功能类型可以确定对应的展示控件的类型,其中,控制型控件可以具体包括开关按钮、选择器、滑块等,数据显示型控件包括图表显示、文字显示等等。
然后,可以对该数据类型进行解析,确定出相应的控制器控件。
在本发明实施例中,所述第二确定子单元确定历史数据的数据类型,还配置为:
在预设的数据类型集合中确定所述历史数据的数据类型,所述数据类型集合包括布尔型、整数型、浮点数型、字符串型、枚举型、链接型、时间型中的一种或两种以上组合,每一历史数据对应一种数据类型;
基于此,所述第一确定单元304配置为:按照预设规则对所述数据类型进行解析,确定相应的控制器控件。
可选的,所述智能设备的控制装置,还可以包括:
第三确定单元,配置为确定所述功能配置列表中所指示的功能是否对用户可见;
第一触发单元,配置为若确定所述功能配置列表中所指示的功能对用户可见,则触发所述第二确定子单元执行确定所述功能配置列表所指示功能的功能类型为控制型或数据显示型的步骤;
隐藏单元,配置为若确定所述功能配置列表中所指示的功能对用户不可见,则隐藏所述功能。
即,可以根据默认设定、或者根据厂商设置等等,确定该功能配置列表所指示的功能(包括公有功能与特定功能)是否对用户可见,也就是说,确定该功能是否需要,若对用户可见,则确定功能类型为控制型或数据显示型,若对用户不可见,则进行功能隐藏。
基于此,生成单元305,配置为基于所述控制器控件,生成控制器模板,控制单元306,配置为通过所述控制器模板对所述智能设备进行控制。
比如,根据智能设备传输的各数据类型确定的控制器控件,可以组成该智能设备响应的控制器模板,从而可以通过该控制器模板对智能设备进行控制,完成智能设备与控制器模板的数据互通。
可以理解的是,所述装置还可以包括:
第三获取单元,配置为获取调整指令;配置单元,配置为根据所述调整指令对所述控制器模板进行属性调整。
也就是说,在生成控制器模板后,用户还可以对控件的样式、排序、换色等属性进行个性化的修改,同时,也可以增加或配置新的属性,等等。
本发明实施例中,比如,可以通过配置平台系统作为控制器模板的生成中转站,只需确定出智能设备传输的各数据类型,系统将自动生成控制器模板,其中,智能设备、控制器模板、云端服务器三节点相互连接。
具体实施时,以上各个单元可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个单元的具体实施可参见前面的方法实施例,在此不再赘述。
该智能设备的控制装置具体可以集成在服务器或网关等网络设备中。
由上述可知,本实施例提供的智能设备的控制装置,首先根据智能设备的基础信息,控制智能设备连接至物联网;在智能设备连接至物联网的状态下,获取与该智能设备相应的预设功能配置信息,从而确定相应的控制器控件,然后,基于确定的控制器控件生成智能设备相应的控制器模板,最后通过控制器模板对智能设备进行控制;即本发明实施例仅基于智能设备相应的功能配置信息,自动统一生成控制器模板,从而完成智能设备与控制器模板的数据互通,即保证了控制器及测试体系的统一,还提高多设备操控的兼容性。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见上文针对智能设备的控制方法的详细描述,此处不再赘述。
本发明实施例提供的所述智能设备的控制装置,譬如为计算机、平板电脑、具有触摸功能的手机等等,所述智能设备的控制装置与上文实施例中的智能设备的控制方法属于同一构思,在所述智能设备的控制装置上可以运行所述智能设备的控制方法实施例中提供的任一方法,其具体实现过程详见所述智能设备的控制方法实施例,此处不再赘述。
需要说明的是,对本发明所述智能设备的控制方法而言,本领域普通测试人员可以理解实现本发明实施例所述智能设备的控制方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读取存储介质中,如存储在终端的存储器中,并被该终端内的至少一个处理器执行,在执行过程中可包括如所述智能设备的 控制方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)等。
对本发明实施例的所述智能设备的控制装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,所述存储介质譬如为只读存储器,磁盘或光盘等。
相应地,本发明实施例还提供一种计算机存储介质,其中存储有计算机程序,该计算机程序用于执行本发明实施例的智能设备的控制方法。
以上对本发明实施例所提供的一种智能设备的控制方法及装置、计算机存储介质进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。

Claims (15)

  1. 一种智能设备的控制方法,包括:
    获取智能设备的基础信息,并根据所述基础信息,控制智能设备连接至物联网;
    在所述智能设备连接至物联网的状态下,获取相应的预设功能配置信息;
    根据所述功能配置信息,确定相应的控制器控件;
    基于所述控制器控件,生成控制器模板,并通过所述控制器模板对所述智能设备进行控制。
  2. 根据权利要求1所述的智能设备的控制方法,其中,所述获取相应的预设功能配置信息,包括:
    确定所述智能设备的相应的功能配置列表;
    遍历所述功能配置列表,并基于遍历结果确定相应的数据类型;
    所述根据所述功能配置信息,确定相应的控制器控件,包括:根据所述数据类型,确定相应的控制器控件。
  3. 根据权利要求2所述的智能设备的控制方法,其中,所述确定所述智能设备的相应的功能配置列表,包括:
    在预设功能数据库中,获取所述智能设备相应的公有功能配置与特定功能配置;
    合并所述公有功能配置与所述特定功能配置,生成相应的功能配置列表。
  4. 根据权利要求2所述的智能设备的控制方法,其中,所述基于遍历结果确定相应的数据类型,包括:
    确定所述功能配置列表所指示功能的功能类型为控制型或数据显示型;
    若确定所述功能配置列表所指示功能的功能类型为控制型,则确定该功能的数据类型;
    若确定所述功能配置列表所指示功能的功能类型为数据显示型,则获取所述智能设备的历史数据,并确定所述历史数据的数据类型。
  5. 根据权利要求4所述的智能设备的控制方法,其中,所述确定所述功能配置列表所指示功能的功能类型为控制型或数据显示型之前,还包括:
    确定所述功能配置列表中所指示的功能是否对用户可见;
    若确定所述功能配置列表中所指示的功能对用户可见,则触发执行确定所述功能配置列表所指示功能的功能类型为控制型或数据显示型的步骤;
    若确定所述功能配置列表中所指示的功能对用户不可见,则隐藏所述功能。
  6. 根据权利要求4所述的智能设备的控制方法,其中,所述确定所述历史数据的数据类型,包括:
    在预设的数据类型集合中确定所述历史数据的数据类型,所述数据类型集合包括布尔型、整数型、浮点数型、字符串型、枚举型、链接型、时间型中的一种或两种以上组合;
    所述根据所述数据类型,确定相应的控制器控件,包括:按照预设规则对所述数据类型进行解析,确定相应的控制器控件。
  7. 根据权利要求1至6任一项所述的智能设备的控制方法,其中,所述基于所述控制器控件,生成控制器模板之后,还包括:
    获取调整指令;
    根据所述调整指令对所述控制器模板进行属性调整。
  8. 一种智能设备的控制装置,包括:
    第一获取单元,配置为获取智能设备的基础信息;
    连接单元,配置为根据所述基础信息,控制智能设备连接至物联网;
    第二获取单元,配置为在所述智能设备连接至物联网的状态下,获取相应的预设功能配置信息;
    第一确定单元,配置为根据所述功能配置信息,确定相应的控制器控件;
    生成单元,配置为基于所述控制器控件,生成控制器模板;
    控制单元,配置为通过所述控制器模板对所述智能设备进行控制。
  9. 根据权利要求8所述的智能设备的控制装置,其中,所述第二获取单元,包括:
    第一确定子单元,配置为确定所述智能设备的相应的功能配置列表;
    遍历子单元,配置为遍历所述功能配置列表;
    第二确定子单元,配置为基于遍历结果确定相应的数据类型;
    所述第一确定单元,还配置为:根据所述数据类型,确定相应的控制器控件。
  10. 根据权利要求9所述的智能设备的控制装置,其中,所述第一确定子单元,还配置为:在预设功能数据库中,获取所述智能设备相应的公有功能配置与特定功能配置,合并所述公有功能配置与所述特定功能配置,生成相应的功能配置列表。
  11. 根据权利要求9所述的智能设备的控制装置,其中,所述第二确定子单元,还配置为:
    确定所述功能配置列表所指示功能的功能类型为控制型或数据显示型;
    若确定所述功能配置列表所指示功能的功能类型为控制型,则确定该功能的数据类型;
    若确定所述功能配置列表所指示功能的功能类型为数据显示型,则获 取所述智能设备的历史数据,并确定所述历史数据的数据类型。
  12. 根据权利要求11所述的智能设备的控制装置,其中,所述装置还包括:
    第三确定单元,配置为确定所述功能配置列表中所指示的功能是否对用户可见;
    第一触发单元,配置为若确定所述功能配置列表中所指示的功能对用户可见,则触发所述第二确定子单元执行确定所述功能配置列表所指示功能的功能类型为控制型或数据显示型的步骤;
    隐藏单元,配置为若确定所述功能配置列表中所指示的功能对用户不可见,则隐藏所述功能。
  13. 根据权利要求11所述的智能设备的控制装置,其中,所述第二确定子单元,还配置为:
    在预设的数据类型集合中确定所述历史数据的数据类型,所述数据类型集合包括布尔型、整数型、浮点数型、字符串型、枚举型、链接型、时间型中的一种或两种以上组合;
    所述第一确定单元,还配置为:按照预设规则对所述数据类型进行解析,确定相应的控制器控件。
  14. 根据权利要求8至13任一项所述的智能设备的控制装置,其中,所述装置还包括:
    第三获取单元,配置为获取调整指令;
    配置单元,配置为根据所述调整指令对所述控制器模板进行属性调整。
  15. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令配置为执行权利要求1-7任一项所述的智能设备的控制方法。
PCT/CN2017/071456 2016-02-02 2017-01-17 一种智能设备的控制方法及装置、计算机存储介质 WO2017133447A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
KR1020187009789A KR102131159B1 (ko) 2016-02-02 2017-01-17 스마트 기기를 제어하는 방법 및 장치 및 컴퓨터 저장 매체
JP2018537710A JP6671483B2 (ja) 2016-02-02 2017-01-17 スマートデバイスを制御するための方法および装置、ならびにコンピュータ記憶媒体
US15/934,630 US10284705B2 (en) 2016-02-02 2018-03-23 Method and apparatus for controlling smart device, and computer storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610072698.7 2016-02-02
CN201610072698.7A CN107025037B (zh) 2016-02-02 2016-02-02 一种智能设备的控制方法及装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/934,630 Continuation US10284705B2 (en) 2016-02-02 2018-03-23 Method and apparatus for controlling smart device, and computer storage medium

Publications (1)

Publication Number Publication Date
WO2017133447A1 true WO2017133447A1 (zh) 2017-08-10

Family

ID=59499303

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/071456 WO2017133447A1 (zh) 2016-02-02 2017-01-17 一种智能设备的控制方法及装置、计算机存储介质

Country Status (5)

Country Link
US (1) US10284705B2 (zh)
JP (1) JP6671483B2 (zh)
KR (1) KR102131159B1 (zh)
CN (1) CN107025037B (zh)
WO (1) WO2017133447A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108769071A (zh) * 2018-07-02 2018-11-06 腾讯科技(深圳)有限公司 攻击信息处理方法、装置和物联网蜜罐系统

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10686865B2 (en) * 2017-04-10 2020-06-16 Ayla Networks, Inc. Third-party application control of devices in an IoT platform
US11316709B2 (en) 2018-10-08 2022-04-26 Google Llc Multi-source smart-home device control
US10985936B2 (en) * 2018-10-08 2021-04-20 Google Llc Customized interface based on vocal input
US11282612B2 (en) 2019-01-11 2022-03-22 Metafyre Inc. Systems, devices, and methods for internet of things integrated automation and control architectures
CN110071921B (zh) * 2019-04-19 2022-01-18 广东中安金狮科创有限公司 物联网平台接入方法、装置、计算机可读存储介质及系统
CN110673494A (zh) * 2019-09-19 2020-01-10 北京金茂绿建科技有限公司 一种控制页面生成方法、装置、终端和存储介质
CN111367523A (zh) * 2020-03-16 2020-07-03 杭州涂鸦信息技术有限公司 一种小程序动态ui匹配方法及系统
US11567467B2 (en) * 2020-05-29 2023-01-31 Honeywell International Inc. Method and systems for configuring a modular building control system
CN113032083A (zh) * 2021-04-21 2021-06-25 深圳市元征科技股份有限公司 数据显示方法、装置、电子设备及介质
CN114398041A (zh) * 2021-12-30 2022-04-26 杭州灵伴科技有限公司 控制器安装包发布方法、装置、设备和计算机可读介质
CN115150265B (zh) * 2022-06-28 2023-10-20 青岛海信移动通信技术有限公司 一种双系统数据的处理方法、设备及装置
CN115314535B (zh) * 2022-07-30 2024-04-02 远光软件股份有限公司 物联网设备的控制方法、装置、存储介质及计算机设备
CN117768511B (zh) * 2024-01-09 2024-10-11 中科物栖(南京)科技有限公司 物联网设备的数据传输方法、装置、设备和存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103713812A (zh) * 2013-12-31 2014-04-09 中国科学院深圳先进技术研究院 网络化的智能交互系统
CN104267701A (zh) * 2014-10-08 2015-01-07 杭州古北电子科技有限公司 智能家居新增设备的控制方法及装置
CN104536654A (zh) * 2014-12-25 2015-04-22 小米科技有限责任公司 智能穿戴设备上的菜单选取方法、装置及智能穿戴设备
CN105137858A (zh) * 2015-07-30 2015-12-09 青岛海尔智能家电科技有限公司 一种集中式控制家电的方法及装置

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005321926A (ja) * 2004-05-07 2005-11-17 Mitsubishi Electric Corp ホームネットワークシステム
US20140244001A1 (en) * 2013-02-25 2014-08-28 Qualcomm Incorporated Controlling many different devices from a smart controller
US20150205567A1 (en) * 2014-01-17 2015-07-23 Samsung Electronics Co., Ltd. Method and apparatus for controlling user interface
KR102248474B1 (ko) * 2014-04-30 2021-05-07 삼성전자 주식회사 음성 명령 제공 방법 및 장치
CN105094769B (zh) * 2014-05-06 2018-07-13 北大方正集团有限公司 用户界面的处理方法和装置
KR102330255B1 (ko) * 2014-05-28 2021-11-23 삼성전자주식회사 사물 인터넷 기기들을 제어하기 위한 제어 장치 및 방법
WO2015183014A1 (en) * 2014-05-28 2015-12-03 Samsung Electronics Co., Ltd. Apparatus and method for controlling internet of things devices
US10149335B2 (en) * 2014-11-10 2018-12-04 Qualcomm Incorporated Connectivity module for internet of things (IOT) devices
CN104503688B (zh) * 2014-12-31 2018-03-02 小米科技有限责任公司 智能硬件设备的控制实现方法及装置
JP2016220174A (ja) * 2015-05-26 2016-12-22 株式会社東芝 家電制御方法及び家電制御装置
US9911417B2 (en) * 2016-04-01 2018-03-06 Tai-An Lu Internet of things system with voice-controlled functions and method for processing information of the same
KR101939756B1 (ko) * 2016-07-05 2019-01-18 현대자동차주식회사 사물인터넷 시스템 및 그 제어 방법

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103713812A (zh) * 2013-12-31 2014-04-09 中国科学院深圳先进技术研究院 网络化的智能交互系统
CN104267701A (zh) * 2014-10-08 2015-01-07 杭州古北电子科技有限公司 智能家居新增设备的控制方法及装置
CN104536654A (zh) * 2014-12-25 2015-04-22 小米科技有限责任公司 智能穿戴设备上的菜单选取方法、装置及智能穿戴设备
CN105137858A (zh) * 2015-07-30 2015-12-09 青岛海尔智能家电科技有限公司 一种集中式控制家电的方法及装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108769071A (zh) * 2018-07-02 2018-11-06 腾讯科技(深圳)有限公司 攻击信息处理方法、装置和物联网蜜罐系统
CN108769071B (zh) * 2018-07-02 2021-02-09 腾讯科技(深圳)有限公司 攻击信息处理方法、装置和物联网蜜罐系统

Also Published As

Publication number Publication date
US20180213077A1 (en) 2018-07-26
JP6671483B2 (ja) 2020-03-25
US10284705B2 (en) 2019-05-07
KR102131159B1 (ko) 2020-07-07
CN107025037A (zh) 2017-08-08
JP2018536952A (ja) 2018-12-13
KR20180050721A (ko) 2018-05-15
CN107025037B (zh) 2020-06-02

Similar Documents

Publication Publication Date Title
WO2017133447A1 (zh) 一种智能设备的控制方法及装置、计算机存储介质
US10833928B1 (en) Exchanging information among system middleware and models
CN103430123B (zh) 用于经由html来进行远程桌面会话的方法和系统
KR20190048364A (ko) Netconf 기반의 네트워크 시스템 명령어를 yang 언어로 모델링하는 방법 및 장치
CN106293743A (zh) 一种移动建模系统及构建移动应用并实现跨平台发布的方法
US11645438B2 (en) Generating a template-driven schematic from a netlist of electronic circuits
KR20190077106A (ko) 웹 애플리케이션을 위한 경량 프레임워크
CN108023918A (zh) 一种服务信息获取方法、装置及系统
WO2023029881A1 (zh) 设备控制方法及装置
CN110020261A (zh) 文档转换分享方法、装置、设备及可读存储介质
WO2017143498A1 (zh) 双渲染引擎浏览器、pc端网页应用页面转化方法和装置
CN113268232B (zh) 一种页面皮肤生成方法、装置和计算机可读存储介质
CN108446117A (zh) 在语音对话平台的产品中配置ui的方法及系统
WO2016201813A1 (zh) 一种基于Android的动态布局方法及系统
WO2013181892A1 (zh) 一种支持在线设计移动应用的web服务器和方法
US9552404B2 (en) Data model definition display and modification
CN106998350B (zh) 基于跨用户消息的功能项使用框架的方法及系统
WO2013017054A1 (zh) 自动生成用例脚本的方法和装置
US10180822B2 (en) Development environment for real-time application development
KR102555258B1 (ko) 사용자 인식방법, 장치, 저장매체 및 전자기기
US20190213003A1 (en) Method, system and software application for developing mobile applications
CN103488477A (zh) Java接口的可视化编辑系统和可视化编辑方法
CN114900384B (zh) 一种跨平台的物联网与智能设备的通信系统及其通信方法
Nylund Implementation of a Data Acquisition Tool for Sensor Measurements
KR101754003B1 (ko) 프로세스의 이동을 시각적으로 표현 가능한 정형명세장치

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17746767

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 20187009789

Country of ref document: KR

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 2018537710

Country of ref document: JP

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17746767

Country of ref document: EP

Kind code of ref document: A1