WO2019037660A1 - 设备控制方法、装置、终端设备和操作系统 - Google Patents
设备控制方法、装置、终端设备和操作系统 Download PDFInfo
- Publication number
- WO2019037660A1 WO2019037660A1 PCT/CN2018/101013 CN2018101013W WO2019037660A1 WO 2019037660 A1 WO2019037660 A1 WO 2019037660A1 CN 2018101013 W CN2018101013 W CN 2018101013W WO 2019037660 A1 WO2019037660 A1 WO 2019037660A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- interface
- control
- data
- internet
- interface data
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction 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
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/205—Parsing
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16Y—INFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
- G16Y40/00—IoT characterised by the purpose of the information processing
- G16Y40/30—Control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
- H04L67/125—Protocols 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/725—Cordless telephones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User 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/72415—User 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
Definitions
- the present application relates to the field of terminal technologies, and in particular, to a device association method, a device association device, a terminal device, and an Internet of Things operating system.
- IoT Internet of Things
- IoT devices are diverse, and the types and manufacturers of devices are different. Therefore, the methods for connecting and controlling each IoT device and control device are also different, and often need to be downloaded and installed.
- the App is implemented, resulting in the installation of many apps that are not frequently used on the user's mobile phone, which consumes large system resources.
- the technical problem to be solved by the embodiments of the present application is to provide a device association method, so that the terminal can control the Internet of Things device.
- the embodiment of the present application further provides a device association device, a terminal device, and an Internet of Things operating system to ensure implementation and application of the foregoing method.
- the embodiment of the present application discloses a device control method, including: receiving a signal of an Internet of Things device, acquiring a device identifier from the signal; determining, according to the device identifier, interface data corresponding to the Internet of Things device, The interface data is used to describe a control interface of the Internet of Things device; the interface data is parsed, and a corresponding control interface is displayed to control the Internet of Things device based on the control interface.
- the embodiment of the present application further discloses a device control apparatus, including: a receiving module, configured to receive a signal of an IoT device, and obtain a device identifier from the signal; and a query module, configured to determine, according to the device identifier, a corresponding Internet of Things
- the interface data of the device is used to describe the control interface of the IoT device; the parsing module is configured to parse the interface data, and display a corresponding control interface to control the IoT device based on the control interface.
- the embodiment of the present application further discloses a terminal device, including: one or more processors; and one or more machine-readable media having instructions stored thereon, when executed by the one or more processors, The terminal device is caused to perform the method as described in one or more of the embodiments of the present application.
- the embodiment of the present application further discloses one or more machine readable mediums having stored thereon instructions that, when executed by one or more processors, cause the terminal device to perform one or more of the embodiments as described in the embodiments of the present application. method.
- the embodiment of the present application further discloses an Internet of Things operating system, comprising: a receiving unit, receiving a signal of the Internet of Things device, acquiring a device identifier from the signal; and an inquiring unit, determining, according to the device identifier, an interface corresponding to the Internet of Things device Data, the interface data is used to describe a control interface of the Internet of Things device; the management unit analyzes the interface data and displays a corresponding control interface to control the Internet of Things device based on the control interface.
- the embodiments of the present application include the following advantages:
- the device identifier is obtained from the signal, and the interface data of the corresponding Internet of Things device is determined based on the device identifier, so that the corresponding interface can be found according to the signal of the device.
- FIG. 1 is a schematic diagram of connection and control of a device according to an embodiment of the present application.
- FIG. 2 is a schematic diagram of an example of connecting and controlling an air conditioner in a mobile phone according to an embodiment of the present application
- FIG. 3 is a flow chart of steps of an embodiment of a device control method of the present application.
- FIG. 4 is an exemplary architectural diagram of a processing system in an embodiment of the present application.
- FIG. 5 is a schematic diagram of management processing of an IoT device according to the present application.
- FIG. 6 is a schematic diagram of an analysis of an embodiment of a parsing engine according to the present application.
- FIG. 7 is a flow chart showing the steps of another embodiment of the device control method of the present application.
- FIG. 8A is a structural block diagram of an embodiment of a device control apparatus according to the present application.
- 8B is a structural block diagram of another embodiment of a device control apparatus according to the present application.
- FIG. 9 is a schematic structural diagram of hardware of a terminal device according to an embodiment of the present application.
- FIG. 10 is a schematic structural diagram of hardware of a terminal device according to another embodiment of the present disclosure.
- FIG. 11 is a schematic diagram of an operating system based on scene perception in the embodiment of the present application.
- a terminal device such as a mobile phone, a tablet computer, or a wearable device may be used as a control device of the IoT device, and the terminal device can support at least one function of audio, video, data, etc., and can have a screen to display the IoT.
- the interface of the device which can be a touch screen or a non-touch screen.
- the terminal device can adopt various operating systems such as iOS, Android, cloud OS, and the like.
- IoT devices are devices of the Internet of Things system, such as smart TVs, intelligent routers, access control systems, lighting systems, and other household appliances, such as smart refrigerators, smart ovens, smart rice cookers and other kitchen appliances, as well as in-vehicle equipment.
- the signal in the embodiment of the present application refers to a carrier of data in the device, and the signal may include device data and device receiving data, and the device data includes software and hardware data in the device, such as device software interaction instruction data, sensor signals, and various interfaces. Data, etc., the device receiving data includes various instruction data, hardware, interface data, and the like received by the device. For example, the device receives the interface data inserted into the headset, and can call the playback application to play audio data such as songs. Therefore, the signal is connected and interacted with the IoT device. If the device receives the external Bluetooth signal, it connects to the corresponding Bluetooth headset or other Bluetooth device, and if the device receives the temperature data of the weather application, it can notify the air conditioner to turn on.
- the signal includes a signal received by the terminal device from the IoT device, and the signal may include related information of the IoT device, data to be processed, and the like, and includes, for example, device identification ID, signal data such as a temperature signal, a motion signal, and the like, and the IoT device signal data. Includes data such as device type and device address.
- FIG. 1 a schematic diagram of device connection and control according to an embodiment of the present application is shown.
- the IoT device 10 and the control device 20 can be connected and interacted.
- the IoT device 10 can send a signal of a broadcast or the like through Bluetooth, WIFI, etc., and after receiving the signal, the control device 20 can obtain the device ID from the signal.
- the device ID can be used to represent a type of device.
- the type can be set according to actual needs, such as the type according to the type of device, and the type according to different brands in the same device, and the type according to the model of the corresponding device of each brand. Therefore, one type of device can be determined by the device ID, thereby obtaining the data required for the device.
- the interface data is used to describe the control interface of the Internet of Things device, and the corresponding control logic information may be described, that is, the interface corresponding to the Internet of Things device and the control logic, and the device data may be developed by the developer. It is released on the server so that it can be controlled based on the interface data when using the corresponding IoT device. Therefore, the interface data of the corresponding IoT device can be queried according to the device identifier, such as downloading the interface data from the server, and querying the interface data stored locally.
- the interface data can be parsed, each UI control is obtained according to the interface data, and then a corresponding control interface is formed and displayed, and can be connected with the Internet of Things device based on the control interface, so that the user can control the Internet of Things device through the control interface.
- FIG. 2 is a schematic diagram of an example of connecting and controlling an air conditioner in a mobile phone, that is, the Internet of Things device is an air conditioner, and the controlled terminal device is a mobile phone.
- the air conditioner passes the WIFI broadcast signal
- the mobile phone can receive the signal and obtain the device ID. And then acquiring the interface data corresponding to the air conditioner based on the device ID, parsing the interface data and displaying the corresponding control interface, and establishing a connection between the mobile phone and the air conditioner based on the control interface, where the state of the air conditioner can be displayed, such as the current
- the temperature is 17°
- the wind speed is a strong wind
- the user can adjust the temperature, wind speed, mode, and switch of the air conditioner based on the interface.
- the air conditioning control interface in FIG. 2 includes a control for adjusting the temperature and the wind speed.
- the embodiments of the present application provide the ability to instantly connect and control various IoT devices at the system level, and IoT developers can develop and release functions for controlling IoT devices based on this capability, which can be used to realize the experience and performance of the native app. And can realize the instant connection and control of the IoT device when needed without installing the application App at the application layer, thereby reducing the resource occupation caused by installing the application layer APP.
- the capability can be implemented in the system layer in various manners, for example, by the parsing engine, so that after the developer develops the interface data, the interface data can be parsed in the terminal device without performing an installation process. The engine parses to display the interface, and controls and interacts with the device through the interface and corresponding scripts.
- FIG. 3 a flow chart of steps of an apparatus control method embodiment of the present application is shown, which may specifically include the following steps:
- Step 302 Receive a signal of the Internet of Things device, and obtain a device identifier from the signal.
- Step 304 Determine interface data corresponding to the Internet of Things device according to the device identifier, where the interface data is used to describe a control interface of the Internet of Things device.
- Step 306 Parse the interface data, and display a corresponding control interface to control the Internet of Things device based on the control interface.
- the IoT device can broadcast a signal through a wireless network such as Bluetooth or WIFI, and the signal can carry a device ID for notifying the control device that the IoT device is to be connected.
- the control device may parse the signal acquisition device ID and determine that the IoT device is to be connected, and then query the interface data of the corresponding IoT device according to the device ID, wherein the interface data may be obtained from a local, a server, etc., and then parsed.
- the interface data is obtained by a control interface, and the control interface is displayed.
- a connection can also be established based on the control interface and the corresponding IoT device. Therefore, after receiving the signal of the IoT device, the device identifier is obtained from the signal, and the interface data of the corresponding IoT device is queried based on the device identifier, so that the corresponding interface data can be found according to the signal of the device, and the interface is parsed again. Data, displaying a corresponding control interface and connecting with the IoT device, to control the IoT device based on the control logic information in the control interface, so that the interface data can be received after receiving the signal without installing the application Control equipment to reduce the occupation of system resources.
- the processing system may include a control device (or platform), such as a mobile device, a tablet computer, a wearable device, and the like, and may also include an IoT device such as a smart refrigerator, smart Oven, smart air conditioning, lighting system and other equipment. Therefore, the IoT device can send a broadcast signal, so that the control device acquires corresponding interface data according to the device ID in the signal, and parses the interface data, and then displays the corresponding control interface and connects with the IoT device, thereby facilitating the user to control the device in the control.
- the control of the IoT device on the interface enables convenient use of each device.
- the server may be a platform for providing IoT device related services, and the service platform may be composed of one or more servers, which can maintain corresponding business logic of the IoT device and provide service data. Maintain and manage business.
- the third-party platform is the service platform of the third-party service provider, and the third-party service provider refers to the third-party providing the embedded interface, such as the Independent Software Vendors (ISV), which can provide the interface data of the IoT device. .
- ISV Independent Software Vendors
- the third-party platform can upload the interface data to the server.
- the IoT device can broadcast a signal carrying the device ID, and then the control device requests interface data from the server according to the device ID, wherein if the control device locally stores the interface that has been downloaded from the server before. Data, there is no need to repeat the request.
- the interface data can be parsed to display the control interface corresponding to the IoT device and establish a connection with the IoT device. After the connection, the control device can control the operation of the IoT device, so that the user can control various IoT devices.
- control device may search for interface data and the like of the required IoT device on the server. After the developer develops the interface data, the third-party platform can upload the interface data to the server, and the server publishes the interface data.
- An example of the interface data is shown in Table 1:
- the interface description language may adopt a markup language, for example, called markup
- markup is a language (User Interface) and an interactive language based on an XML (Extensible Markup Language) format. Therefore, the interface data is generated based on the markup language markup language, that is, based on the interface data generated by the markup language, a interface for connecting and controlling the IoT device, and related interaction behaviors on the interface can be completely described, and can be recognized and translated into generated by the system. Interface and behavioral instructions.
- the server can pre-publish the rules and definitions of the markup language, so that the third-party service provider can obtain the markup language from the server and define and write the interface data in the markup language.
- the interface data of the IoT device can be defined and written by the interface description language markup, wherein the interface data includes: interface description information ⁇ layout> and interaction behavior description information ⁇ script>.
- the interface description information ⁇ layout> is used to describe the displayed interface;
- the running state data ⁇ data> is used to describe the control logic of the IoT device, for example, the user clicks or other interaction behavior on the interface and its response logic can be described, for example, by ⁇ Controls such as CompositeView/>, ⁇ TextView/>, ⁇ Button/>, etc., can respond to user actions.
- ⁇ Controls such as CompositeView/>, ⁇ TextView/>, ⁇ Button/>, etc.
- the air conditioner can be connected, and the real-time temperature and wind speed can be obtained and displayed on the interface, and the air conditioner temperature and wind speed can be directly controlled through the controls on the interface.
- an analysis engine may be set in the terminal to parse the interface data, and a markup engine parses the interface data written by the interface description language markup, and the parsing engine is the parsing interface and invokes the operating system GUI framework to generate the UI interface. Engine. Therefore, after receiving the interface data, the parsing engine can be used to render the interface data into a UI interface.
- the parsing engine includes: a first parsing engine, a second parsing engine, and a third parsing engine, wherein the first parsing engine can parse the interface description information, and the second parsing engine can map the UI control and generate the control.
- the interface, the third parsing engine responds to the control logic and controls the IOT device.
- the first parsing engine also known as Markup Parser, parses interface data such as markup text (ie interface description information written in markup language), and can parse XML-based markup text into structured data for subsequent UI generation and interaction. Used by the script.
- Markup Parser parses interface data such as markup text (ie interface description information written in markup language), and can parse XML-based markup text into structured data for subsequent UI generation and interaction. Used by the script.
- the second parsing engine may also be referred to as a UI Render, which is used to convert the UI elements included in the ⁇ layout> of the markup into UI controls in the operating system of each smart terminal, and generate a corresponding UI interface.
- a Render engine is separately created for different operating systems of each mobile platform, and the Render engine can map each UI element in the markup to a UI control on the mobile platform, so that the UI interface based on the markup description is passed through the UI Render.
- the required UI interface can be generated in supporting various operating systems. Take the positioning navigation interface in the Android system as an example. As shown in Figure 6, the UI elements CompositeView, TextView, TextField, and Button in the markup are respectively mapped to the UI controls ViewGroup, TextView, ExitText, and Button of the Android system through UI Render.
- the third parsing engine also called Script Engine, is a running environment provided for the execution of javascript scripts contained in ⁇ script>. This running environment consists of V8 and node. Through this set of javascript running environment, the script defined in markup can be used. Executed when rendering the control interface to meet the needs of the business logic in the control interface.
- the third parsing engine implements parsing and response to the control logic information through javascript.
- FIG. 7 a flow chart of steps of another embodiment of a device control method of the present application is shown, which may specifically include the following steps:
- Step 702 Receive a device identifier from the signal by receiving a signal of the Internet of Things device by broadcasting.
- IoT devices are connected externally via a wireless network such as Bluetooth or WiFi, so they can be broadcast over wireless networks such as Bluetooth and WiFi.
- the IoT device may add a device ID to the external broadcast, where the device ID is the same as the device identifier uploaded to the server interface, so that the operating system of the control device automatically parses the Bluetooth or WiFi broadcast signal after automatically scanning the device.
- the broadcast signal acquires the device ID carried in the signal, so that the control device can perceive the IoT device through the broadcast signal and identify its specific device identification ID.
- the interface data of the IoT device can be obtained according to the device identifier.
- the interface data of the device identifier corresponding to the IoT device can be locally queried; and/or the device identifier corresponding to the device identifier is downloaded from the server.
- the device identifier can be used to query whether the interface data exists locally, or a request can be sent to the server to download interface data corresponding to the identifier.
- the interface data can be obtained in conjunction with the local and server, as follows:
- Step 704 Query whether there is local device data corresponding to the device identifier corresponding to the Internet of Things device.
- step 710 If the device identifier corresponds to the interface data of the IoT device, step 710 is performed; if the device identifier does not exist for the interface data of the IoT device, step 706 is performed.
- Step 706 Generate a data request according to the device identifier, and send the data request to the server.
- Step 708 Receive interface data returned by the server, and save the interface data.
- the data request may be generated according to the device identifier, where the data request is used to request the interface data, and then the data request is sent to the server.
- the server may select the device identifier from the data request, and then search the interface according to the device identifier. Data, obtain corresponding interface data, and then feed back the interface data to the requested terminal device.
- the terminal device may save the interface data.
- Step 710 Parse the interface data to obtain a corresponding UI element.
- Step 712 Generate a control interface by using the UI element, and display the control interface.
- Step 714 Determine control logic information according to the interface information, and connect to the Internet of Things device according to the control interface and the control logic information.
- the interface data can be parsed to obtain the UI elements needed in the interface, and the corresponding UI control generation control interface is determined according to the UI element, and then the control interface is displayed.
- the interface data may be parsed to determine a script corresponding to the control interface, and the connection step is performed according to the script to establish a connection with the corresponding IoT device, so as to facilitate subsequent control of the IoT device.
- the step of parsing the interface data generation control interface and displaying the method includes: invoking a parsing engine to parse the interface description information into structured data, determining a UI element according to the structured data; parsing the UI element into a corresponding UI control
- the UI control is used to generate a corresponding control interface.
- the first parsing engine may be invoked to parse the interface description information, parse the interface description information into structured data, so that the UI and the interaction script may be generated according to the structured data, and then the second parsing engine determines, according to the structured data.
- the UI element in the ⁇ layout> written by the markup language maps the UI element into the UI control required by the control interface, and generates a corresponding control interface.
- the control logic information may be determined based on the interface data, and then connected to the Internet of Things device based on the control interface and the interface logic information.
- the script corresponding to the control interface may be determined according to the control logic information, and the script is adopted. Query the corresponding IoT device and establish a connection with the IoT device.
- the third parsing engine may be used to execute a script defined in the interface data, and the script is used to query the corresponding IoT device, and then a request is made to the IoT device to establish a connection.
- the device is connected to the Internet of Things device according to the control interface and the control logic information, and the control interface invokes the interface to query the IoT device corresponding to the connection identifier according to the control logic information; and sends a connection request to the IoT device. That is, the script inquires the corresponding IoT device according to the connection identifier, and sends a connection request to the IoT device. Executing interface data corresponding to the script, and then obtaining a connection identifier from the script, the connection identifier is used to connect the IoT device, and then the corresponding interface can be invoked according to the connection identifier to query the IoT device, generate a corresponding connection request, and send a connection request. Give the IoT device a connection to the IoT device.
- the status data fed back by the IoT device is received, and the corresponding status is displayed in the control interface according to the status data.
- the state data of the IoT device can be obtained by executing a callback function, and then the state data can be parsed to obtain the real-time state of the IoT device, and the corresponding state is displayed on the control interface.
- the real-time status data of the air conditioner is obtained, and then the corresponding temperature and wind speed are displayed on the control interface; for example, the status data of the refrigerator is obtained, and the current storage temperature of the refrigerator, and the storage status are displayed.
- a set of connection and control APIs can be set in advance for the IoT device, thereby facilitating connection and control of the device based on the API.
- Step 716 The control interface receives the indication information, and performs a corresponding control operation according to the indication information.
- the script may be invoked according to the indication information, and then the corresponding control operation is performed by using the script. That is, after the control interface is displayed, the IoT device can be controlled according to the control interface, that is, the user can select a required operation in the control interface, for example, by triggering control to issue indication information, and then calling the corresponding control interface according to the indication information.
- the script then uses the script to determine the identifier, handle, etc. corresponding to the indication information, and invokes the corresponding API to perform the control operation to implement the control of the IoT device, for example, by controlling the handle of the temperature rise (fall) and controlling the wind speed drop (liter) High) handles the temperature and wind speed of the air conditioner.
- the embodiments of the present application provide the ability to instantly connect and control various IoT devices at the system level, and IoT developers can develop and release functions for controlling IoT devices based on this capability, which can be used to realize the experience and performance of the native app. And can realize the instant connection and control of the IoT device when needed without installing the application App at the application layer, thereby reducing the resource occupation caused by installing the application layer APP.
- the capability can be implemented in the system layer in various manners, for example, by the parsing engine, so that after the developer develops the interface data, the interface data can be parsed in the terminal device without performing an installation process. The engine parses to display the interface, and controls and interacts with the device through the interface and corresponding scripts.
- the embodiment of the present application further provides a device control apparatus, which is applied to a control device.
- FIG. 8A a structural block diagram of an embodiment of a device association apparatus of the present application is shown, which may specifically include the following modules:
- the receiving module 802 is configured to receive a signal of the Internet of Things device, and obtain a device identifier from the signal.
- the query module 804 is configured to determine interface data of the corresponding Internet of Things device according to the device identifier, where the interface data is used to describe a control interface of the Internet of Things device.
- the parsing module 806 is configured to parse the interface data, and display a corresponding control interface to control the IoT device based on the control interface.
- FIG. 8B a structural block diagram of another embodiment of a device association apparatus of the present application is shown. Specifically, the following modules may be included:
- the receiving module 802 is configured to receive a signal of the Internet of Things device by broadcasting, wherein the broadcast is distributed by at least one of the following wireless networks: Bluetooth, WiFi. A device identification is obtained from the signal.
- the querying module 804 is configured to query the device to identify interface data corresponding to the Internet of Things device from the device; and/or download the interface data of the device identifier corresponding to the Internet of Things device from the server.
- the parsing module 806 is configured to parse the interface data, and display a corresponding control interface to control the IoT device based on the control interface.
- the connection module 808 is configured to determine control logic information according to the interface data, and connect with the Internet of Things device according to the control interface and the control logic information.
- the control module 810 is configured to receive indication information by using the control interface, and perform a corresponding control operation according to the indication information.
- the query module 804 is configured to generate a data request according to the device identifier, send the data request to the server, receive interface data returned by the server, and save the interface data, where the interface data is a server basis.
- the device identifier is obtained by querying.
- the parsing module 806 includes: a data parsing submodule 8062 and an interface display submodule 8064.
- the data parsing sub-module 8062 is configured to parse the interface data to obtain a corresponding UI element, and generate a control interface by using the UI element.
- the interface display sub-module 8064 is configured to display the control interface.
- the data parsing sub-module 8062 is configured to invoke the parsing engine to parse the interface description information into structured data, determine a UI element according to the structured data, and parse the UI element into a corresponding UI control, The UI control generates a corresponding control interface.
- the connection module 808 is configured to query, according to the control logic information, the interface to query an IoT device corresponding to the connection identifier, and send a connection request to the IoT device.
- the parsing module 806 is further configured to receive status data fed back by the IoT device, and display a corresponding status in the control interface according to the status data.
- the embodiments of the present application provide the ability to instantly connect and control various IoT devices at the system level, and IoT developers can develop and release functions for controlling IoT devices based on this capability, which can be used to realize the experience and performance of the native app. And can realize the instant connection and control of the IoT device when needed without installing the application App at the application layer, thereby reducing the resource occupation caused by installing the application layer APP.
- the capability can be implemented in the system layer in various manners, for example, by the parsing engine, so that after the developer develops the interface data, the interface data can be parsed in the terminal device without performing an installation process. The engine parses to display the interface, and controls and interacts with the device through the interface and corresponding scripts.
- the embodiment of the present application further provides one or more machine readable mediums, on which instructions are stored, when executed by one or more processors, causing the terminal device to perform one or more device controls as described in the embodiments of the present application.
- An exemplary machine readable medium is a non-volatile readable storage medium having stored therein one or more programs that can be made when the one or more modules are applied to a terminal device The device executes the instructions of the method steps in the embodiment of the present application.
- FIG. 9 is a schematic structural diagram of hardware of a terminal device according to an embodiment of the present disclosure.
- the terminal device may include an input device 90, a processor 91, an output device 92, a memory 93, and at least one communication bus 94.
- Communication bus 94 is used to implement a communication connection between components.
- Memory 93 may include high speed RAM memory, and may also include non-volatile memory NVM, such as at least one disk memory, in which various programs may be stored for performing various processing functions and implementing the method steps of the present embodiments.
- the processor 91 may be, for example, a central processing unit (CPU), an application specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), and programmable logic.
- CPU central processing unit
- ASIC application specific integrated circuit
- DSP digital signal processor
- DSPD digital signal processing device
- programmable logic A device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic component is implemented that is coupled to the input device 90 and the output device 92 by a wired or wireless connection.
- PLD field programmable gate array
- controller microcontroller, microprocessor or other electronic component is implemented that is coupled to the input device 90 and the output device 92 by a wired or wireless connection.
- the input device 90 may include multiple input devices, for example, at least one of a user-oriented user interface, a device-oriented device interface, a software programmable interface, a camera, and a sensor.
- the device-oriented device interface may be a wired interface for data transmission between the device and the device, or may be a hardware insertion interface (for example, a USB interface, a serial port, etc.) for data transmission between the device and the device.
- the user-oriented user interface may be, for example, a user-oriented control button, a voice input device for receiving voice input, and a touch-sensing device for receiving a user's touch input (eg, a touch screen with touch sensing function, touch
- the programmable interface of the software may be, for example, an input for the user to edit or modify the program, such as an input pin interface or an input interface of the chip; optionally, the transceiver may have Radio frequency transceiver chip, baseband processing chip, and transceiver antenna for communication functions.
- An audio input device such as a microphone can receive voice data.
- Output device 92 can include output devices such as displays, stereos, and the like.
- the processor of the terminal device includes functions for executing the modules of the data processing device in each device.
- the specific functions and technical effects may be referred to the foregoing embodiments, and details are not described herein again.
- FIG. 9 is a schematic structural diagram of hardware of a terminal device according to another embodiment of the present disclosure.
- Figure 10 is a specific embodiment of the implementation of Figure 9. As shown in FIG. 10, the terminal device of this embodiment includes a processor 101 and a memory 102.
- the processor 101 executes the computer program code stored in the memory 102 to implement the device control method of FIGS. 1 to 7 in the above embodiment.
- the memory 102 is configured to store various types of data to support operation at the terminal device. Examples of such data include instructions for any application or method operating on the terminal device, such as messages, pictures, videos, and the like.
- the memory 102 may include a random access memory (RAM), and may also include a non-volatile memory such as at least one disk storage.
- the processor 101 is disposed in the processing component 100.
- the terminal device may also include a communication component 103, a power component 104, a multimedia component 105, an audio component 106, an input/output interface 107, and/or a sensor component 108.
- the components and the like included in the terminal device are set according to actual requirements, which is not limited in this embodiment.
- Processing component 100 typically controls the overall operation of the terminal device.
- Processing component 100 may include one or more processors 101 to execute instructions to perform all or part of the steps of the methods of Figures 1 through 7 above.
- processing component 100 can include one or more modules to facilitate interaction between component 100 and other components.
- processing component 100 can include a multimedia module to facilitate interaction between multimedia component 105 and processing component 100.
- Power component 104 provides power to various components of the terminal device.
- the power component 104 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the terminal devices.
- the multimedia component 105 includes a display screen between the terminal device and the user that provides an output interface.
- the display screen can include a liquid crystal display (LCD) and a touch panel (TP). If the display includes a touch panel, the display can be implemented as a touch screen to receive input signals from the user.
- the touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor may sense not only the boundary of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation.
- the audio component 106 is configured to output and/or input an audio signal.
- the audio component 106 includes a microphone (MIC) that is configured to receive an external audio signal when the terminal device is in an operational mode, such as a voice recognition mode.
- the received audio signal may be further stored in memory 102 or transmitted via communication component 103.
- the audio component 106 also includes a speaker for outputting an audio signal.
- the input/output interface 107 provides an interface between the processing component 100 and the peripheral interface module, which may be a click wheel, a button, or the like. These buttons may include, but are not limited to, a volume button, a start button, and a lock button.
- Sensor assembly 108 includes one or more sensors for providing status assessment of various aspects to the terminal device.
- sensor component 108 can detect the on/off state of the terminal device, the relative positioning of the components, and the presence or absence of contact of the user with the terminal device.
- the sensor assembly 108 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact, including detecting the distance between the user and the terminal device.
- the sensor assembly 108 can also include a camera or the like.
- the communication component 103 is configured to facilitate wired or wireless communication between the terminal device and other devices.
- the terminal device can access a wireless network based on a communication standard such as WiFi, 2G or 3G, or a combination thereof.
- the terminal device may include a SIM card slot for inserting the SIM card, so that the terminal device can log in to the GPRS network and establish communication with the server through the Internet.
- the communication component 103, the audio component 106, the input/output interface 107, and the sensor component 108 involved in the embodiment of FIG. 10 can be implemented as an input device in the embodiment of FIG.
- An embodiment of the present application provides a terminal device, including: one or more processors; and one or more machine-readable media having instructions stored thereon, when executed by the one or more processors, The terminal device performs the device control method as described in one or more of the embodiments of the present application.
- the embodiment of the present application further provides an Internet of Things operating system.
- the operating system of the terminal device includes: a receiving unit 1102, a query unit 1104, and a management unit 1106.
- the receiving unit 1102 receives a signal of the Internet of Things device, and acquires a device identifier from the signal.
- the query unit 1104 determines, according to the device identifier, interface data corresponding to the Internet of Things device, where the interface data is used to describe a control interface and control logic information of the Internet of Things device.
- the management unit 1106 analyzes the interface data and displays a corresponding control interface to control the Internet of Things device based on the control interface.
- the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
- embodiments of the embodiments of the present application can be provided as a method, apparatus, or computer program product. Therefore, the embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Moreover, embodiments of the present application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
- computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
- the computer device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
- the memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory.
- RAM random access memory
- ROM read only memory
- Memory is an example of a computer readable medium.
- Computer readable media includes both permanent and non-persistent, removable and non-removable media.
- Information storage can be implemented by any method or technology. The information can be computer readable instructions, data structures, modules of programs, or other data.
- Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device.
- computer readable media does not include non-persistent computer readable media, such as modulated data signals and carrier waves.
- Embodiments of the present application are described with reference to flowcharts and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the present application. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG.
- These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing terminal device to produce a machine such that instructions are executed by a processor of a computer or other programmable data processing terminal device
- Means are provided for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
- the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
- the instruction device implements the functions specified in one or more blocks of the flow or in a flow or block diagram of the flowchart.
- the foregoing relates to a device association method, a device association device, a terminal device, and an Internet of Things operating system provided by the present application, and a specific example is applied to the principle and implementation of the present application.
- the manners of the above embodiments are only used to help understand the method of the present application and its core ideas; at the same time, for those of ordinary skill in the art, according to the idea of the present application, in the specific embodiments and application scopes, In view of the above, the contents of this specification should not be construed as limiting the present application.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Medical Informatics (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- User Interface Of Digital Computer (AREA)
- Telephonic Communication Services (AREA)
- Selective Calling Equipment (AREA)
Abstract
本申请实施例提供了一种设备控制方法、装置、终端设备和操作系统以使终端能够控制物联网设备。所述的方法包括:接收物联网设备的信号,从所述信号中获取设备标识;依据所述设备标识确定对应物联网设备的界面数据,所述界面数据用于描述物联网设备的控制界面;解析所述界面数据,显示对应的控制界面,以基于所述控制界面对物联网设备进行控制。从而无需安装应用即可在接收到信号后依据界面数据控制设备,减少对系统资源的占用。
Description
本申请要求2017年08月24日递交的申请号为201710736674.1、发明名称为“设备控制方法、装置、终端设备和操作系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及终端技术领域,特别是涉及一种设备关联方法、一种设备关联装置、一种终端设备,以及一种物联网操作系统。
随着物联网技术的发展,物联网(Internet of Things,IoT)设备的普及,用户往往希望能够使用手机等移动终端来控制物联网设备,以更便捷的操作各种设备。
但是,目前物联网设备多种多样,设备的类型、厂商等各不相同,因此,每个物联网设备与控制设备的连接和控制的方法也各不相同,且往往都需要下载和安装相应的App来实现,导致用户手机上安装了很多使用频率不高的App,占用较大的系统资源。
发明内容
本申请实施例所要解决的技术问题是提供一种设备关联方法,以使终端能够控制物联网设备。
相应的,本申请实施例还提供了一种设备关联装置、一种终端设备,以及一种物联网操作系统,用以保证上述方法的实现及应用。
为了解决上述问题,本申请实施例公开了一种设备控制方法,包括:接收物联网设备的信号,从所述信号中获取设备标识;依据所述设备标识确定对应物联网设备的界面数据,所述界面数据用于描述物联网设备的控制界面;解析所述界面数据,显示对应的控制界面,以基于所述控制界面对物联网设备进行控制。
本申请实施例还公开了一种设备控制装置,包括:接收模块,用于接收物联网设备的信号,从所述信号中获取设备标识;查询模块,用于依据所述设备标识确定对应物联网设备的界面数据,所述界面数据用于描述物联网设备的控制界面;解析模块,用于解析所述界面数据,显示对应的控制界面,以基于所述控制界面对物联网设备进行控制。
本申请实施例还公开了一种终端设备,包括:一个或多个处理器;和其上存储有指 令的一个或多个机器可读介质,当由所述一个或多个处理器执行时,使得所述终端设备执行如本申请实施例中一个或多个所述的方法。
本申请实施例还公开了一个或多个机器可读介质,其上存储有指令,当由一个或多个处理器执行时,使得终端设备执行如本申请实施例中一个或多个所述的方法。
本申请实施例还公开了一种物联网操作系统,包括:接收单元,接收物联网设备的信号,从所述信号中获取设备标识;查询单元,依据所述设备标识确定对应物联网设备的界面数据,所述界面数据用于描述物联网设备的控制界面;管理单元,解析所述界面数据,显示对应的控制界面,以基于所述控制界面对物联网设备进行控制。
与现有技术相比,本申请实施例包括以下优点:
在本申请实施例中,可在接收到物联网设备的信号后,从所述信号中获取设备标识,基于该设备标识确定对应物联网设备的界面数据,从而可依据设备的信号找到对应的界面数据,再解析该界面数据,显示对应的控制界面,以基于所述控制界面对物联网设备进行控制,从而无需安装应用即可在接收到信号后依据界面数据控制设备,减少对系统资源的占用。
图1是本申请实施例的一种设备连接、控制示意图;
图2是本申请实施例的一种在手机连接并控制空调示例的示意图;
图3是本申请的一种设备控制方法实施例的步骤流程图;
图4是本申请实施例中一种处理系统的示例架构图;
图5是本申请的一种IoT设备的管理处理示意图;
图6是本申请一种解析引擎实施例的解析示意图;
图7是本申请的另一种设备控制方法实施例的步骤流程图;
图8A是本申请一种设备控制装置实施例的结构框图;
图8B是本申请另一种设备控制装置实施例的结构框图;
图9是本申请一实施例提供的终端设备的硬件结构示意图;
图10是本申请另一实施例提供的终端设备的硬件结构示意图;
图11是本申请实施例中一种基于场景感知的操作系统示意图。
为使本申请的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本申请作进一步详细的说明。
本申请实施例中,可以采用手机、平板电脑、可穿戴设备等终端设备作为IoT设备的控制设备,这些终端设备能够支持音频、视频、数据等至少一方面的功能,并且可具有屏幕从而显示IoT设备的界面,该屏幕可为触摸屏或非触摸屏。该终端设备可以采用各种操作系统,如iOS、Android、云OS等。IoT设备为物联网系统的设备,如包括智能电视、智能路由、门禁系统、灯光系统等家居设备,又如包括智能冰箱、智能烤箱、智能电饭煲等厨电设备,以及车载设备等。
本申请实施例中信号指的是设备中数据的载体,该信号可以包括设备数据和设备接收数据,设备数据包括设备内的软硬件数据,如设备软件交互的指令数据、传感器信号、各种接口数据等,设备接收数据包括设备接收的各种指令数据、硬件、接口数据等。例如设备接收到插入耳机的接口数据可以调用播放应用播放歌曲等音频数据。从而通过信号与IoT设备连接、交互,如设备接收到外部的蓝牙信号则连接对应的蓝牙耳机或其他蓝牙设备,又如设备接收到天气应用的温度数据,可以通知空调开启等。信号包括终端设备从IoT设备接收的信号,该信号可包括IoT设备的相关信息以及待处理的数据等,例如包括设备标识ID、信号数据如温度信号、运动信号等物联网设备信号数据,还可包括设备类型、设备地址等数据。
参照图1,示出了本申请实施例的一种设备连接、控制示意图。
IoT设备10和控制设备20可连接后进行交互,其中,IoT设备10可通过蓝牙、WIFI等发送广播等消息的信号,控制设备20在接收到信号后,可从该信号中获取设备ID,该设备ID可表征一类型的设备,该类型可依据实际需求设定,如依据设备种类划分类型,又如依据同一种设备中不同品牌划分类型,又如依据各品牌对应设备的型号划分类型等,从而通过设备ID可确定出一个类型的设备,从而获取该设备对应所需的数据。
本申请实施例中,界面数据用于描述物联网设备的控制界面,还可描述相应的控制逻辑信息,即描述物联网设备对应的界面以及控制逻辑,该设备数据可由开发者开发后,在对应的服务器上发布,从而使用对应物联网设备时可基于该界面数据进行控制。因此可依据该设备标识查询对应物联网设备的界面数据,如从服务器上下载该界面数据,又如查询在本地存储的界面数据等。然后可解析该界面数据,依据界面数据得到各UI控件,然后构成对应的控制界面并显示,并且可基于该控制界面与物联网设备连接,从而用户 可通过该控制界面来控制物联网设备。
如图2所示为一种在手机连接并控制空调示例的示意图,即物联网设备为空调,控制的终端设备为手机,则空调通过WIFI广播信号后,手机可接收该信号并获取到设备ID,然后基于该设备ID获取该空调对应的界面数据,解析界面数据并显示对应的控制界面,还可基于该控制界面将手机和空调建立连接,在该控制界面上可显示空调的状态,如当前温度17°、风速为强风等运行状态,并且用户可基于该界面调整空调的温度、风速、模式以及开关等,如图2中空调控制界面中包括调整温度、风速的控件。
本申请实施例,在系统层面提供即时连接和控制各种IoT设备的能力,IoT开发者可以基于此能力开发和发布控制IoT设备的功能,该功能可使用该能力从而实现native app的体验和性能,并且能达到在无需应用层安装应用App的前提下,能在需要的时候即时连接和控制IoT设备,从而减少了由于安装应用层APP而导致的资源占用。其中,对于该能力可通过各种方式在系统层实现,例如通过解析引擎承载该能力,从而在开发者开发出该界面数据后,在终端设备中该界面数据无需执行安装流程,即可通过解析引擎解析来显示界面,并通过界面和对应的脚本实现对设备的控制和交互。
参照图3,示出了本申请的一种设备控制方法实施例的步骤流程图,具体可以包括如下步骤:
步骤302,接收物联网设备的信号,从所述信号中获取设备标识。
步骤304,依据所述设备标识确定对应物联网设备的界面数据,所述界面数据用于描述物联网设备的控制界面。
步骤306,解析所述界面数据,显示对应的控制界面,以基于所述控制界面对物联网设备进行控制。
IoT设备在运行过程中,可通过蓝牙、WIFI等无线网络进行信号的广播,该信号可携带设备ID,用于通知控制设备该IoT设备待连接。控制设备在接收到该信号后,可解析信号获取设备ID并确定该IoT设备待连接,然后可依据该设备ID查询对应IoT设备的界面数据,其中界面数据可从本地、服务器等获取,然后解析该界面数据得到控制界面,显示该控制界面。
还可基于该控制界面和对应的IoT设备建立连接。从而可在接收到物联网设备的信号后,从所述信号中获取设备标识,基于该设备标识查询对应物联网设备的界面数据,从而可依据设备的信号找到对应的界面数据,再解析该界面数据,显示对应的控制界面并与所述物联网设备连接,以在所述控制界面中基于所述控制逻辑信息对物联网设备进 行控制,从而无需安装应用即可在接收到信号后依据界面数据控制设备,减少对系统资源的占用。
如图4所示的一种处理系统的示例架构图,该处理系统可包括控制设备(或平台),如手机、平板电脑、可穿戴设备等终端设备,还可以包括IoT设备如智能冰箱、智能烤箱、智能空调、灯光系统等设备。从而IoT设备可发出广播信号,使得控制设备依据该信号中的设备ID获取对应的界面数据,并解析界面数据,然后展示相应的控制界面并与IoT设备连接,从而便于用户通过控制设备在该控制界面上对IoT设备的控制,实现各设备的便捷使用。
本申请实施例中,如图5所示,服务端可为提供IoT设备相关服务的平台,该服务平台可以由一台或多台服务器构成,能够维护IoT设备相应的业务逻辑并提供业务数据,维护、管理业务。第三方平台是第三方服务提供方的业务平台,第三方服务提供方指的是提供嵌入式界面的第三方,如独立软件供应商(Independent Software Vendors,ISV)等,能够提供IoT设备的界面数据。
其中,开发者针对IOT设备开发出界面数据后,第三方平台可上传该界面数据到服务器端。用户具有IoT设备并安装运行后,该IoT设备可广播携带设备ID的信号,然后控制设备依据该设备ID向服务端请求界面数据,其中,若控制设备本地已存储之前从服务端下载过的界面数据,则无需重复请求。在下载并存储界面数据后,可解析该界面数据显示该IoT设备对应的控制界面并与IoT设备建立连接,在连接后,控制设备可控制IoT的设备的运行,便于用户控制各种IoT设备。
本申请实施例中,控制设备可以在服务端查找所需IoT设备的界面数据等。开发者在开发出界面数据后,第三方平台可上传该界面数据到服务器端,服务器发布该界面数据。一种示例的界面数据如表1所示:
表1
本申请实施例中,界面描述语言可采用标记语言,例如称为markup,markup是基于 XML(Extensible Markup Language,可扩展标记语言)格式描述UI(User Interface,用户界面)和交互的语言。因此,界面数据基于标记语言markup语言生成,即基于该markup语言生成的界面数据,可以完整描述一个连接和控制IoT设备的界面,以及界面上的相关交互行为,并能被系统识别并翻译为生成界面和行为的指令。
服务端可以预先对markup语言的编写规则、定义等进行发布,从而第三方服务提供方可以从服务端获取markup语言,采用markup语言定义并编写界面数据。通过界面描述语言markup可以定义并编写IoT设备的界面数据,其中,界面数据包括:界面描述信息<layout>和交互行为描述信息<script>。所述界面描述信息<layout>用于描述展示的界面;运行状态数据<data>用于描述IoT设备的控制逻辑,例如可描述界面上用户点击或其他交互行为及其响应逻辑,例如,通过<CompositeView/>、<TextView/>、<Button/>等控件,即可响应用户的操作。例如,通过在<script>中提供脚本语言和对应空调的API,即可连接空调,并获取实时温度和风速,并显示在界面上,并可通过界面上的控件直接控制空调温度和风速。
本申请实施例中,可在终端中设置解析引擎来解析界面数据,解析引擎(markup engine)解析通过界面描述语言markup编写的界面数据,则解析引擎是解析界面并调用操作系统GUI框架生成UI界面的引擎。因此在接收到界面数据后,可以采用解析引擎将界面数据渲染成UI界面。
本申请实施例中,该解析引擎包括:第一解析引擎、第二解析引擎和第三解析引擎,其中,第一解析引擎可解析界面描述信息,第二解析引擎可映射得到UI控件并生成控制界面,第三解析引擎响应控制逻辑,控制IOT设备。
第一解析引擎也可称为Markup Parser,用于解析界面数据如markup文本(即由markup语言编写的界面描述信息),可以将基于XML的markup文本解析成结构化数据,供后续生成UI和交互脚本所用。
第二解析引擎也可称为UI Render,用于将markup中<layout>包含的UI元素转化为各个智能终端对应操作系统中的UI控件,生成对应的UI界面。本申请实施例,针对各个移动平台的不同操作系统分别创建一套Render引擎,该Render引擎可以将markup里各个UI元素映射到移动平台上的UI控件,从而基于markup描述的UI界面通过UI Render就可以在支持各种操作系统中生成所需要的UI界面。以Android系统中定位导航界面为例,如图6所示,markup中的UI元素CompositeView、TextView、TextField、Button,通过UI Render分别映射为Android系统的UI控件ViewGroup、TextView、ExitText、 Button。
第三解析引擎也可称为Script Engine,是提供给<script>包含的javascript脚本执行的运行环境,此运行环境由V8和node组成,通过这套javascript运行环境,定义在markup里的脚本即可在渲染控制界面时执行,满足控制界面中业务逻辑的需求。第三解析引擎通过javascript实现对控制逻辑信息的解析以及响应。
参照图7,示出了本申请的另一种设备控制方法实施例的步骤流程图,具体可以包括如下步骤:
步骤702,通过广播接收物联网设备的信号,从所述信号中获取设备标识。
IoT设备通过蓝牙或WiFi等无线网络对外连接,因此可通过蓝牙、WiFi等无线网络进行广播。其中,IoT设备可在对外广播中添加设备ID,该设备ID为上传到服务器端中界面数据的设备标识相同,从而控制设备的操作系统在自动扫描到蓝牙或WiFi广播信号后,会自动解析该广播信号,获取信号中携带的设备ID,从而控制设备可通过广播信号感知到IoT设备,并识别其具体的设备标识ID。
然后可依据该设备标识获取对应物联网设备的界面数据,本申请实施例中,可从本地查询所述设备标识对应物联网设备的界面数据;和/或,从服务器下载所述设备标识对应物联网设备的界面数据。即可依据该设备标识查询本地是否存在该界面数据,也可向服务器发送请求,下载该标识对应的界面数据。在一个可选实施例中,可结合本地和服务器来获取界面数据,具体如下:
步骤704,查询本地是否存在设备标识对应物联网设备的界面数据。
若存在设备标识对应物联网设备的界面数据,执行步骤710;若不存在设备标识对应物联网设备的界面数据,执行步骤706。
步骤706,依据所述设备标识生成数据请求,发送所述数据请求给服务器。
步骤708,接收服务器返回的界面数据,并保存所述界面数据。
可以依据设备标识生成数据请求,该数据请求用于请求界面数据,然后发送所述数据请求给服务器,服务器在接收到数据请求后,可从数据请求选中获取设备标识,然后依据该设备标识查找界面数据,获取对应的界面数据,然后将界面数据反馈给请求的终端设备,终端设备在接收到界面数据后,可保存该界面数据。
步骤710,对所述界面数据进行解析,得到相应的UI元素。
步骤712,采用所述UI元素生成控制界面,并显示所述控制界面。
步骤714,依据所述界面信息确定控制逻辑信息,依据所述控制界面和控制逻辑信 息与物联网设备连接。
在获取到界面数据后,可对界面数据进行解析,得到界面中需要的UI元素,并依据UI元素确定对应的UI控件生成控制界面,然后显示该控制界面。其中在生成、显示控制界面的过程中,还可以解析界面数据确定控制界面对应的脚本,依据该脚本执行连接的步骤,与对应的物联网设备建立连接,以便于后续对IoT设备进行控制。
其中,解析界面数据生成控制界面并显示的步骤包括:调用解析引擎将所述界面描述信息解析成结构化数据,依据所述结构化数据确定UI元素;将所述UI元素解析成对应的UI控件,采用所述UI控件生成对应的控制界面。
可以调用第一解析引擎对界面描述信息进行解析,将所述界面描述信息解析成结构化数据,从而可依据该结构化数据生成UI和交互脚本,然后第二解析引擎,依据该结构化数据确定markup语言编写的<layout>中的UI元素,将UI元素映射成所述控制界面所需的UI控件,并生成相应的控制界面。
还可基于该界面数据确定控制逻辑信息,然后基于该控制界面和界面逻辑信息与物联网设备连接,一个示例中,可依据所述控制逻辑信息确定所述控制界面对应的脚本,采用所述脚本查询对应的物联网设备,并与所述物联网设备建立连接。在渲染渲染控制界面时,可采用第三解析引擎执行定义在界面数据中的脚本,采用所述脚本查询对应的IoT设备,然后向该IoT设备发出请求来建立连接。
其中,依据所述控制界面和控制逻辑信息与物联网设备连接,包括:依据控制逻辑信息,所述控制界面调用接口查询连接标识对应的物联网设备;发送连接请求给所述物联网设备。即脚本依据连接标识,调用接口查询对应的物联网设备;发送连接请求给所述物联网设备。可执行界面数据对应脚本,然后从脚本中获取连接标识,该连接标识用于连接IoT设备,然后可依据该连接标识调用对应的接口,来查询IoT设备,并生成相应的连接请求,发送连接请求给IoT设备,从而与IoT设备建立连接。
其中,接收所述物联网设备反馈的状态数据,依据所述状态数据在所述控制界面中显示对应的状态。当与IoT设备连接成功后,还可通过执行回调函数来获取IoT设备的状态数据,然后解析该状态数据即可获取到IoT设备的实时状态,并在控制界面上行显示相应的状态。例如,获取空调的实时状态数据,然后在控制界面上显示相应的温度和风速等;又如,获取冰箱的状态数据,可显示冰箱当前储藏温度,以及储藏状态等。其中,可预先为IoT设备设置一整套连接和控制API,从而便于基于该API进行设备的连接和控制。
步骤716,所述控制界面接收指示信息,依据所述指示信息执行对应的控制操作。
本申请实施例中,可依据所述指示信息调用脚本,然后采用所述脚本执行对应的控制操作。即在显示控制界面后,还可依据该控制界面对IoT设备进行控制,即用户可在控制界面中选择需要的操作,例如通过触发控制发出指示信息,然后依据该指示信息调用该控制界面对应的脚本,再采用该脚本确定指示信息对应的标识、句柄等,调用对应的API执行控制操作,实现对IoT设备的控制,例如,可通过控制温度升高(下降)的句柄、控制风速下降(升高)的句柄等空调的温度和风速。
本申请实施例,在系统层面提供即时连接和控制各种IoT设备的能力,IoT开发者可以基于此能力开发和发布控制IoT设备的功能,该功能可使用该能力从而实现native app的体验和性能,并且能达到在无需应用层安装应用App的前提下,能在需要的时候即时连接和控制IoT设备,从而减少了由于安装应用层APP而导致的资源占用。其中,对于该能力可通过各种方式在系统层实现,例如通过解析引擎承载该能力,从而在开发者开发出该界面数据后,在终端设备中该界面数据无需执行安装流程,即可通过解析引擎解析来显示界面,并通过界面和对应的脚本实现对设备的控制和交互。
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请实施例并不受所描述的动作顺序的限制,因为依据本申请实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本申请实施例所必须的。
本申请实施例还提供了一种设备控制装置,应用于控制设备。
参照图8A,示出了本申请一种设备关联装置实施例的结构框图,具体可以包括如下模块:
接收模块802,用于接收物联网设备的信号,从所述信号中获取设备标识。
查询模块804,用于依据所述设备标识确定对应物联网设备的界面数据,所述界面数据用于描述物联网设备的控制界面。
解析模块806,用于解析所述界面数据,显示对应的控制界面,以基于所述控制界面对物联网设备进行控制。
参照图8B,示出了本申请另一种设备关联装置实施例的结构框图,具体可以包括如下模块:
接收模块802,用于通过广播接收物联网设备的信号,其中,所述广播通过以下至 少一种无线网络发布:蓝牙、WiFi。从所述信号中获取设备标识。
查询模块804,用于从本地查询所述设备标识对应物联网设备的界面数据;和/或,从服务器下载所述设备标识对应物联网设备的界面数据。
解析模块806,用于解析所述界面数据,显示对应的控制界面,以基于所述控制界面对物联网设备进行控制。
连接模块808,用于依据所述界面数据确定控制逻辑信息,依据所述控制界面和控制逻辑信息与物联网设备连接
控制模块810,用于采用所述控制界面接收指示信息,依据所述指示信息执行对应的控制操作。
其中,所述查询模块804,用于依据所述设备标识生成数据请求,发送所述数据请求给服务器;接收服务器返回的界面数据,并保存所述界面数据,其中,所述界面数据为服务器依据所述设备标识查询得到的。
所述解析模块806,包括:数据解析子模块8062和界面显示子模块8064。
数据解析子模块8062,用于对所述界面数据进行解析,得到相应的UI元素;采用所述UI元素生成控制界面。
界面显示子模块8064,用于显示所述控制界面。
其中,所述数据解析子模块8062,用于调用解析引擎将界面描述信息解析成结构化数据,依据所述结构化数据确定UI元素;将所述UI元素解析成对应的UI控件,采用所述UI控件生成对应的控制界面。
所述连接模块808,用于依据控制逻辑信息,所述控制界面调用接口查询连接标识对应的物联网设备;发送连接请求给所述物联网设备。
所述解析模块806,还用于接收所述物联网设备反馈的状态数据,依据所述状态数据在所述控制界面中显示对应的状态。
本申请实施例,在系统层面提供即时连接和控制各种IoT设备的能力,IoT开发者可以基于此能力开发和发布控制IoT设备的功能,该功能可使用该能力从而实现native app的体验和性能,并且能达到在无需应用层安装应用App的前提下,能在需要的时候即时连接和控制IoT设备,从而减少了由于安装应用层APP而导致的资源占用。其中,对于该能力可通过各种方式在系统层实现,例如通过解析引擎承载该能力,从而在开发者开发出该界面数据后,在终端设备中该界面数据无需执行安装流程,即可通过解析引擎解析来显示界面,并通过界面和对应的脚本实现对设备的控制和交互。
本申请实施例还提供了一个或多个机器可读介质,其上存储有指令,当由一个或多个处理器执行时,使得终端设备执行本申请实施例所述的一个或多个设备控制方法。一种示例的机器可读介质为非易失性可读存储介质,该存储介质中存储有一个或多个模块(programs),该一个或多个模块被应用在终端设备时,可以使得该终端设备执行本申请实施例中各方法步骤的指令(instructions)。
图9为本申请一实施例提供的终端设备的硬件结构示意图。如图9所示,该终端设备可以包括输入设备90、处理器91、输出设备92、存储器93和至少一个通信总线94。通信总线94用于实现元件之间的通信连接。存储器93可能包含高速RAM存储器,也可能还包括非易失性存储NVM,例如至少一个磁盘存储器,存储器93中可以存储各种程序,用于完成各种处理功能以及实现本实施例的方法步骤。
可选的,上述处理器91例如可以为中央处理器(Central Processing Unit,简称CPU)、应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,该处理器91通过有线或无线连接耦合到上述输入设备90和输出设备92。
可选的,上述输入设备90可以包括多种输入设备,例如可以包括面向用户的用户接口、面向设备的设备接口、软件的可编程接口、摄像头、传感器中至少一种。可选的,该面向设备的设备接口可以是用于设备与设备之间进行数据传输的有线接口、还可以是用于设备与设备之间进行数据传输的硬件插入接口(例如USB接口、串口等);可选的,该面向用户的用户接口例如可以是面向用户的控制按键、用于接收语音输入的语音输入设备以及用户接收用户触摸输入的触摸感知设备(例如具有触摸感应功能的触摸屏、触控板等);可选的,上述软件的可编程接口例如可以是供用户编辑或者修改程序的入口,例如芯片的输入引脚接口或者输入接口等;可选的,上述收发信机可以是具有通信功能的射频收发芯片、基带处理芯片以及收发天线等。麦克风等音频输入设备可以接收语音数据。输出设备92可以包括显示器、音响等输出设备。
在本实施例中,该终端设备的处理器包括用于执行各设备中数据处理装置各模块的功能,具体功能和技术效果参照上述实施例即可,此处不再赘述。
图9为本申请另一实施例提供的终端设备的硬件结构示意图。图10是对图9在实现过程中的一个具体的实施例。如图10所示,本实施例的终端设备包括处理器101以及存储器102。
处理器101执行存储器102所存放的计算机程序代码,实现上述实施例中图1至图7的设备控制方法。
存储器102被配置为存储各种类型的数据以支持在终端设备的操作。这些数据的示例包括用于在终端设备上操作的任何应用程序或方法的指令,例如消息,图片,视频等。存储器102可能包含随机存取存储器(random access memory,简称RAM),也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。
可选地,处理器101设置在处理组件100中。该终端设备还可以包括:通信组件103,电源组件104,多媒体组件105,音频组件106,输入/输出接口107和/或传感器组件108。终端设备具体所包含的组件等依据实际需求设定,本实施例对此不作限定。
处理组件100通常控制终端设备的整体操作。处理组件100可以包括一个或多个处理器101来执行指令,以完成上述图1至图7方法的全部或部分步骤。此外,处理组件100可以包括一个或多个模块,便于处理组件100和其他组件之间的交互。例如,处理组件100可以包括多媒体模块,以方便多媒体组件105和处理组件100之间的交互。
电源组件104为终端设备的各种组件提供电力。电源组件104可以包括电源管理系统,一个或多个电源,及其他与为终端设备生成、管理和分配电力相关联的组件。
多媒体组件105包括在终端设备和用户之间的提供一个输出接口的显示屏。在一些实施例中,显示屏可以包括液晶显示器(LCD)和触摸面板(TP)。如果显示屏包括触摸面板,显示屏可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。
音频组件106被配置为输出和/或输入音频信号。例如,音频组件106包括一个麦克风(MIC),当终端设备处于操作模式,如语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器102或经由通信组件103发送。在一些实施例中,音频组件106还包括一个扬声器,用于输出音频信号。
输入/输出接口107为处理组件100和外围接口模块之间提供接口,上述外围接口模块可以是点击轮,按钮等。这些按钮可包括但不限于:音量按钮、启动按钮和锁定按钮。
传感器组件108包括一个或多个传感器,用于为终端设备提供各个方面的状态评估。例如,传感器组件108可以检测到终端设备的打开/关闭状态,组件的相对定位,用户与终端设备接触的存在或不存在。传感器组件108可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在,包括检测用户与终端设备间的距离。在一些 实施例中,该传感器组件108还可以包括摄像头等。
通信组件103被配置为便于终端设备和其他设备之间有线或无线方式的通信。终端设备可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个实施例中,该终端设备中可以包括SIM卡插槽,该SIM卡插槽用于插入SIM卡,使得终端设备可以登录GPRS网络,通过互联网与服务器建立通信。
由上可知,在图10实施例中所涉及的通信组件103、音频组件106以及输入/输出接口107、传感器组件108均可以作为图9实施例中的输入设备的实现方式。
本申请实施例提供了一种终端设备,包括:一个或多个处理器;和其上存储有指令的一个或多个机器可读介质,当由所述一个或多个处理器执行时,使得所述终端设备执行如本申请实施例中一个或多个所述的设备控制方法。
本申请实施例还提供一种物联网操作系统,如图11所示,该终端设备的操作系统包括:接收单元1102、查询单元1104和管理单元1106。
接收单元1102,接收物联网设备的信号,从所述信号中获取设备标识。
查询单元1104,依据所述设备标识确定对应物联网设备的界面数据,所述界面数据用于描述物联网设备的控制界面和控制逻辑信息。
管理单元1106,解析所述界面数据,显示对应的控制界面,以基于所述控制界面对物联网设备进行控制。
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。
本领域内的技术人员应明白,本申请实施例的实施例可提供为方法、装置、或计算机程序产品。因此,本申请实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
在一个典型的配置中,所述计算机设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存 是计算机可读介质的示例。计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括非持续性的电脑可读媒体(transitory media),如调制的数据信号和载波。
本申请实施例是参照根据本申请实施例的方法、终端设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
尽管已描述了本申请实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请实施例范围的所有变更和修改。
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何 其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。
以上对本申请所提供的一种设备关联方法、一种设备关联装置、一种终端设备,以及一种基于物联网操作系统,进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。
Claims (17)
- 一种设备控制方法,其特征在于,包括:接收物联网设备的信号,从所述信号中获取设备标识;依据所述设备标识确定对应物联网设备的界面数据,所述界面数据用于描述物联网设备的控制界面;解析所述界面数据,显示对应的控制界面,以基于所述控制界面对物联网设备进行控制。
- 根据权利要求1所述的方法,其特征在于,所述依据设备标识确定对应物联网设备的界面数据,包括:从本地查询所述设备标识对应物联网设备的界面数据;和/或从服务器下载所述设备标识对应物联网设备的界面数据。
- 根据权利要求1所述的方法,其特征在于,所述依据设备标识确定对应物联网设备的界面数据,包括:依据所述设备标识生成数据请求,发送所述数据请求给服务器;接收服务器返回的界面数据,并保存所述界面数据,其中,所述界面数据为服务器依据所述设备标识查询得到的。
- 根据权利要求1所述的方法,其特征在于,所述接收物联网设备的信号,包括:通过广播接收物联网设备的信号,其中,所述广播通过以下至少一种无线网络发布:蓝牙、WiFi。
- 根据权利要求1所述的方法,其特征在于,所述解析界面数据,显示对应的控制界面,包括:对所述界面数据进行解析,得到相应的UI元素;采用所述UI元素生成控制界面,并显示所述控制界面。
- 根据权利要求5所述的方法,其特征在于,对所述界面数据进行解析,得到相应的UI元素,包括:调用解析引擎将界面描述信息解析成结构化数据,依据所述结构化数据确定UI元素。
- 根据权利要求5所述的方法,其特征在于,采用所述UI元素生成控制界面,包括:将所述UI元素解析成对应的UI控件,采用所述UI控件生成对应的控制界面。
- 根据权利要求1所述的方法,其特征在于,还包括:依据所述界面数据确定控制逻辑信息,依据所述控制界面和控制逻辑信息与物联网设备连接。
- 根据权利要求8所述的方法,其特征在于,依据所述控制界面和控制逻辑信息与物联网设备连接,包括:依据控制逻辑信息,所述控制界面调用接口查询连接标识对应的物联网设备;发送连接请求给所述物联网设备。
- 根据权利要求1所述的方法,其特征在于,还包括:接收所述物联网设备反馈的状态数据,依据所述状态数据在所述控制界面中显示对应的状态。
- 根据权利要求1所述的方法,其特征在于,还包括:所述控制界面接收指示信息,依据所述指示信息执行对应的控制操作。
- 一种设备控制装置,其特征在于,包括:接收模块,用于接收物联网设备的信号,从所述信号中获取设备标识;查询模块,用于依据所述设备标识确定对应物联网设备的界面数据,所述界面数据用于描述物联网设备的控制界面;解析模块,用于解析所述界面数据,显示对应的控制界面,以基于所述控制界面对物联网设备进行控制。
- 根据权利要求12所述的装置,其特征在于,还包括:连接模块,用于依据所述控制界面和控制逻辑信息,与物联网设备连接。
- 根据权利要求12所述的装置,其特征在于,还包括:控制模块,用于采用所述控制界面接收指示信息,依据所述指示信息执行对应的控制操作。
- 一种终端设备,其特征在于,包括:一个或多个处理器;和其上存储有指令的一个或多个机器可读介质,当由所述一个或多个处理器执行时,使得所述终端设备执行如权利要求1-11中一个或多个所述的方法。
- 一个或多个机器可读介质,其上存储有指令,当由一个或多个处理器执行时,使得终端设备执行如权利要求1-11中一个或多个所述的方法。
- 一种物联网操作系统,其特征在于,包括:接收单元,接收物联网设备的信号,从所述信号中获取设备标识;查询单元,依据所述设备标识确定对应物联网设备的界面数据,所述界面数据用于描述物联网设备的控制界面;管理单元,解析所述界面数据,显示对应的控制界面,以基于所述控制界面对物联网设备进行控制。
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US16/796,234 US20200267221A1 (en) | 2017-08-24 | 2020-02-20 | Method, system, and device for controlling an internet of things device |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710736674.1 | 2017-08-24 | ||
| CN201710736674.1A CN109428911A (zh) | 2017-08-24 | 2017-08-24 | 设备控制方法、装置、终端设备和操作系统 |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US16/796,234 Continuation-In-Part US20200267221A1 (en) | 2017-08-24 | 2020-02-20 | Method, system, and device for controlling an internet of things device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2019037660A1 true WO2019037660A1 (zh) | 2019-02-28 |
Family
ID=65438391
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2018/101013 Ceased WO2019037660A1 (zh) | 2017-08-24 | 2018-08-17 | 设备控制方法、装置、终端设备和操作系统 |
Country Status (3)
| Country | Link |
|---|---|
| US (1) | US20200267221A1 (zh) |
| CN (1) | CN109428911A (zh) |
| WO (1) | WO2019037660A1 (zh) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113406891A (zh) * | 2021-06-18 | 2021-09-17 | 杭州深渡科技有限公司 | 物联网设备联动控制方法、系统、装置及存储介质 |
| CN113934146A (zh) * | 2020-06-29 | 2022-01-14 | 阿里巴巴集团控股有限公司 | 对物联网设备进行控制的方法、装置及电子设备 |
| CN114374602A (zh) * | 2021-12-30 | 2022-04-19 | 河南紫联物联网技术有限公司 | 主控设备配置方法、装置、云服务器及存储介质 |
Families Citing this family (19)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US11761701B2 (en) * | 2016-01-25 | 2023-09-19 | Sun Kyong Lee | Refrigerator inventory device |
| CN111913410A (zh) * | 2019-05-08 | 2020-11-10 | 北京火星人视野科技有限公司 | 基于stem教育的可扩展教具控制方法、装置、设备及教具 |
| CN111915970B (zh) * | 2019-05-08 | 2023-04-07 | 北京火星人视野科技有限公司 | 基于stem教育的物联网演示方法、装置、设备及存储介质 |
| US11089109B1 (en) | 2019-11-20 | 2021-08-10 | Sprint Communications Company L.P. | Smart device management via a mobile communication device based on privacy preferences |
| US11455225B2 (en) * | 2020-08-04 | 2022-09-27 | Western Digital Technologies, Inc. | Electronic device having infrared light-emitting diode for data transmission |
| CN112153123B (zh) * | 2020-09-11 | 2022-08-19 | 三星电子(中国)研发中心 | 控制物联网系统中的物联网装置的方法、装置及系统 |
| CN112964947A (zh) * | 2021-02-04 | 2021-06-15 | 苏州华兴源创科技股份有限公司 | 老化测试设备的控制方法和系统 |
| CN113038450B (zh) * | 2021-03-15 | 2023-08-18 | Oppo广东移动通信有限公司 | 终端控制方法、装置、控制模组以及移动终端 |
| CN115268999A (zh) * | 2021-04-14 | 2022-11-01 | 海信集团控股股份有限公司 | 用于控制健康设备的终端及健康设备控制方法 |
| CN115706734B (zh) * | 2021-08-11 | 2026-03-03 | 上海擎感智能科技有限公司 | 一种外部设备的控制方法、控制装置、控制系统及终端 |
| WO2023053242A1 (ja) * | 2021-09-29 | 2023-04-06 | 三菱電機株式会社 | 機器制御システム、表示器、機器制御方法及びプログラム |
| CN113985767A (zh) * | 2021-10-21 | 2022-01-28 | 广州鲁邦通智能科技有限公司 | 一种同步iot设备ui到云平台的方法、物联网系统 |
| CN116032994B (zh) * | 2021-10-25 | 2024-09-24 | 青岛海尔科技有限公司 | 物联网设备连接方法、装置、电子设备和存储介质 |
| CN114356179B (zh) * | 2021-12-22 | 2024-04-09 | 深圳泰德半导体装备有限公司 | 清洗界面的操作方法、设备及存储介质 |
| CN114301940B (zh) * | 2021-12-27 | 2024-06-07 | 锐迪科创微电子(北京)有限公司 | 物联网设备控制方法、装置及系统 |
| US12019838B2 (en) * | 2022-06-15 | 2024-06-25 | Snap Inc. | Standardized AR interfaces for IOT devices |
| CN115314535B (zh) * | 2022-07-30 | 2024-04-02 | 远光软件股份有限公司 | 物联网设备的控制方法、装置、存储介质及计算机设备 |
| CN115801578A (zh) * | 2022-10-27 | 2023-03-14 | 深圳康佳电子科技有限公司 | 一种基于设备信息执行设备功能的方法和装置 |
| CN116266845B (zh) * | 2022-11-29 | 2024-02-13 | 浙江绍兴苏泊尔生活电器有限公司 | 一种数据传输方法和装置 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2009246543A (ja) * | 2008-03-28 | 2009-10-22 | Mitsubishi Heavy Ind Ltd | リモコン操作情報提供システム及びその方法 |
| CN105093949A (zh) * | 2015-07-13 | 2015-11-25 | 小米科技有限责任公司 | 一种控制设备的方法及装置 |
| CN105391749A (zh) * | 2015-08-07 | 2016-03-09 | 彭彦棠 | 一种物联网中设备的联网系统和显示方法 |
| CN105629908A (zh) * | 2014-10-31 | 2016-06-01 | 腾讯科技(深圳)有限公司 | 物联网设备控制方法和装置 |
Family Cites Families (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4319089B2 (ja) * | 2004-05-24 | 2009-08-26 | アルプス電気株式会社 | 画像処理装置 |
| CN101162424B (zh) * | 2006-10-13 | 2010-09-29 | 北京书生国际信息技术有限公司 | 一种加载界面元素的系统及方法 |
| CN106406126A (zh) * | 2015-07-31 | 2017-02-15 | 腾讯科技(深圳)有限公司 | 物联网设备的控制界面的生成方法及生成装置 |
| CN106708483B (zh) * | 2015-07-31 | 2020-01-31 | 腾讯科技(深圳)有限公司 | 物联网设备的控制界面的生成方法及生成装置 |
| CN105160854B (zh) * | 2015-09-16 | 2019-01-11 | 小米科技有限责任公司 | 设备控制方法、装置和终端设备 |
| CN105700365B (zh) * | 2016-01-22 | 2018-12-07 | 深圳市飞比电子科技有限公司 | 移动终端的家电控制界面的生成方法和装置 |
| CN106155686B (zh) * | 2016-06-30 | 2020-11-17 | 华为技术有限公司 | 界面生成方法、装置和系统 |
-
2017
- 2017-08-24 CN CN201710736674.1A patent/CN109428911A/zh active Pending
-
2018
- 2018-08-17 WO PCT/CN2018/101013 patent/WO2019037660A1/zh not_active Ceased
-
2020
- 2020-02-20 US US16/796,234 patent/US20200267221A1/en not_active Abandoned
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2009246543A (ja) * | 2008-03-28 | 2009-10-22 | Mitsubishi Heavy Ind Ltd | リモコン操作情報提供システム及びその方法 |
| CN105629908A (zh) * | 2014-10-31 | 2016-06-01 | 腾讯科技(深圳)有限公司 | 物联网设备控制方法和装置 |
| CN105093949A (zh) * | 2015-07-13 | 2015-11-25 | 小米科技有限责任公司 | 一种控制设备的方法及装置 |
| CN105391749A (zh) * | 2015-08-07 | 2016-03-09 | 彭彦棠 | 一种物联网中设备的联网系统和显示方法 |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113934146A (zh) * | 2020-06-29 | 2022-01-14 | 阿里巴巴集团控股有限公司 | 对物联网设备进行控制的方法、装置及电子设备 |
| CN113406891A (zh) * | 2021-06-18 | 2021-09-17 | 杭州深渡科技有限公司 | 物联网设备联动控制方法、系统、装置及存储介质 |
| CN114374602A (zh) * | 2021-12-30 | 2022-04-19 | 河南紫联物联网技术有限公司 | 主控设备配置方法、装置、云服务器及存储介质 |
| CN114374602B (zh) * | 2021-12-30 | 2024-05-14 | 河南紫联物联网技术有限公司 | 主控设备配置方法、装置、云服务器及存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109428911A (zh) | 2019-03-05 |
| US20200267221A1 (en) | 2020-08-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2019037660A1 (zh) | 设备控制方法、装置、终端设备和操作系统 | |
| CN107943547B (zh) | 多服务集成方法、装置、智能终端、服务器和操作系统 | |
| US20200287853A1 (en) | Electronic apparatus and method for providing services thereof | |
| US20190303088A1 (en) | Transferring an application interface from one device to another device | |
| US11706331B2 (en) | Information processing method and apparatus, storage medium, and electronic device | |
| US20170235435A1 (en) | Electronic device and method of application data display therefor | |
| US20200167068A1 (en) | Data Processing Method and Electronic Device | |
| US12566533B2 (en) | Method, apparatus, and electronic device for generating a remote control application | |
| CN108289110A (zh) | 设备关联方法、装置、终端设备和操作系统 | |
| WO2020228033A1 (zh) | Sdk插件的加载方法、装置、移动终端以及存储介质 | |
| CN109857506B (zh) | 引导信息的实现方法、装置、电子设备和存储介质 | |
| WO2016041312A1 (zh) | 应用程序运行方法及装置 | |
| CN108614689A (zh) | 场景服务的生成方法、装置和终端设备 | |
| CN112217671B (zh) | 基于拆分部署的前端微服务进行界面显示的方法及设备 | |
| US20230216732A1 (en) | Network Configuration Method and Device | |
| CN109710259B (zh) | 一种数据处理方法、装置及存储介质 | |
| TWI738832B (zh) | 基於場景的應用操作方法、裝置、終端設備和操作系統 | |
| CN108289111A (zh) | 服务提供方法、装置、终端设备和操作系统 | |
| CN105335132A (zh) | 一种自定义应用程序功能的方法、装置以及系统 | |
| CN111240777A (zh) | 动态壁纸生成方法、装置、存储介质及电子设备 | |
| WO2022135553A1 (zh) | 连续播放视频的投屏方法、装置及系统 | |
| WO2015176352A1 (zh) | 一种基于安卓系统的应用间信息交互方法及装置 | |
| US9582584B2 (en) | Method, apparatus and system for filtering data of web page | |
| AU2014200056A1 (en) | Apparatus and method for providing a near field communication function in a portable terminal | |
| WO2017193926A1 (zh) | 数据传输方法及装置 |
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: 18848268 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 18848268 Country of ref document: EP Kind code of ref document: A1 |
