Device control method and mobile communication terminal
A mobile communication terminal and equipment control technology, applied in the computer field, can solve the problems of not being able to use the controlled equipment to the greatest extent, unable to use other functions of the controlled equipment, limited control methods, etc., so as to make full use of equipment resources, easy operation, Achieving low-cost effects
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0021] Reference figure 1 , Shows a step flowchart of a device control method according to the first embodiment of the present invention.
[0022] The device control method of this embodiment includes the following steps:
[0023] Step S102: The mobile communication terminal sends an information acquisition command to the network control server, and the network control server forwards the information acquisition command to the designated device.
[0024] Among them, the information acquisition command is used to acquire the device information of the specified device.
[0025] The designated device may be a computer terminal device such as a PC, or a terminal device in the Internet of Things.
[0026] Step S104: The mobile communication terminal receives feedback from the network control server on the information acquisition command, acquires an HTML page for controlling the specified device, and performs control operation on the specified device through the HTML page.
[0027] Wherein, t...
Embodiment 2
[0031] Reference figure 2 , Shows a step flowchart of a device control method according to the second embodiment of the present invention.
[0032] In this embodiment, the mobile communication terminal interacts with the designated device via the network control server. Preferably, the communication between the mobile communication terminal and the network control server, and between the network control server and the designated device all follow the WebSocket protocol. But it is not limited to this, and other similar communication protocols can also be performed with reference to this embodiment.
[0033] WebSocket protocol is a new protocol of HTML5, which implements full-duplex communication between browser and server. The WebSocket protocol is relatively simple. The device performs a request handshake with the server through port 80 or 443 like a normal browser. The server recognizes whether it is a WebSocket request according to the HTTP HEADER. If it is, the request is upgra...
Embodiment 3
[0062] Reference image 3 , Shows a step flowchart of a device control method according to the third embodiment of the present invention.
[0063] In this embodiment, the mobile communication terminal is a mobile phone, the designated device is a PC, and the HTML page is generated according to the device information of the designated device as an example to illustrate the device control method of the present application.
[0064] The device control method of this embodiment includes the following steps:
[0065] Step S302: Set up a network control server.
[0066] In this embodiment, Node.js is used to build a network control server. Node.js is a set of JavaScript toolkits for writing high-performance web servers. It has many advantages such as single-threaded, non-blocking IO, event-driven and so on. Of course, it is not limited to this, the network control server can also be built in other appropriate ways, such as being built as an Apache server. The network control server establ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 