CN109120716A - Apparatus control method, device, storage medium and equipment unit - Google Patents
Apparatus control method, device, storage medium and equipment unit Download PDFInfo
- Publication number
- CN109120716A CN109120716A CN201811112122.4A CN201811112122A CN109120716A CN 109120716 A CN109120716 A CN 109120716A CN 201811112122 A CN201811112122 A CN 201811112122A CN 109120716 A CN109120716 A CN 109120716A
- Authority
- CN
- China
- Prior art keywords
- control
- terminal
- data
- page
- controlled
- 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.)
- Pending
Links
Classifications
-
- 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/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/161—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
- H04L69/162—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Selective Calling Equipment (AREA)
Abstract
The present invention provides a kind of apparatus control method, device, storage medium and equipment units, are related to technical field of electric device control, and wherein method includes: the page request sent in response to the terminal received, obtain display Page Template corresponding with terminal;Page file is generated according to display Page Template, and page file is returned into terminal;The operational order that terminal is sent by control interface is received, corresponding operation is carried out based on operational order.Apparatus control method, device, storage medium and equipment unit of the invention, is capable of providing the control interface based on the page, and display can be adapted to multiple terminal;It can be realized by control interface and remotely the functions such as monitor and control, can provide a variety of data such as logout, function curve;Data occupied bandwidth is small, can provide simultaneously for multiple terminals and remotely monitor and control etc. functions;It can be realized automation O&M, the efficiency monitored and controlled can be improved, improve the use feeling degree of client.
Description
Technical field
The present invention relates to technical field of electric device control more particularly to a kind of apparatus control method, device, storage medium and
Equipment unit.
Background technique
Currently, the controller or other control system for equipment unit, which carry out remote access operation, generallys use VNC etc.
Technology.For example, the remote access operation of controller or other systems may be implemented in VNC technology, as controlling at the scene.But
It is that it is by VNC technology transfer is realtime image data, occupancy Netowrk tape is roomy, and the same time can only have a remote equipment
It is remotely operated, cannot achieve multiple equipment long-range control simultaneously.Also, since VNC transmits realtime graphic, for different rulers
Very little terminal device can not achieve good display and support, so operation while traditional VNC technology cannot achieve multiple terminals.
Currently, the control system of commercial heating and ventilating equipment is unable to the data such as remote transmission logout, curve record, unit time set,
Controller can only be carried out at the scene the operation such as checking, be unfavorable for the real time monitoring and malfunction elimination of unit operation.
Summary of the invention
In view of this, the invention solves a technical problem be to provide a kind of apparatus control method, device, storage are situated between
Matter and equipment unit can generate page file according to display Page Template corresponding with terminal and return to terminal, use
To generate control interface.
According to an aspect of the present invention, a kind of apparatus control method is provided, comprising: send in response to the terminal received
Page request, obtain corresponding with terminal display Page Template;Page text is generated according to the display Page Template
Part, and the page file is returned into the terminal, so that the terminal is based on the page file and generates control interface;It connects
The operational order that the terminal is sent by the control interface is received, corresponding operation is carried out based on the operational order.
Optionally, it in response to the page request, is obtained by the communication connection established with control equipment to be controlled described to be controlled
First device data of control equipment;The page file is generated according to the display Page Template and first device data.
Optionally, the communication connection is at least one of wire communication connection, wireless communication connection.
Optionally, described to be based on the operational order to carry out corresponding operation including: to be generated to control according to the operational order
System order;The control command is sent to the control equipment to be controlled by the communication connection;Receive the control equipment to be controlled
By the execution result information corresponding with the control command for communicating to connect return and perform corresponding processing.
Optionally, the operational order includes: data read command;It is described that control life is generated according to the operational order
Enabling, the control command is sent to the control equipment to be controlled by the communication connection includes: to be referred to according to the reading data
It enables and generates reading data control command;The reading data control command is sent to by the communication connection described to be controlled
Equipment;The reception control equipment to be controlled executes knot by the corresponding with the control command of communication connection return
Fruit information and to perform corresponding processing include: to receive the control equipment to be controlled to pass through the communication connection return and the data
It reads corresponding second device data of control command and is sent to the terminal, so that the terminal is in the control interface
Show second device data.
Optionally, the operational order includes: data setting instruction, described to generate control life according to the operational order
Enabling, the control command is sent to the control equipment to be controlled by the communication connection includes: to be referred to according to data setting
It enables and generates data setting control command;By it is described communication connection by the data setting control command be sent to it is described to be controlled
Equipment;The reception control equipment to be controlled executes knot by the corresponding with the control command of communication connection return
Fruit information and to perform corresponding processing include: to receive the control equipment to be controlled to pass through the communication connection return and the data
Setting control command corresponding run succeeded information or execution failure information, and it is sent to the terminal, so that the terminal
The information that runs succeeded described in display in the control interface executes failure information;Wherein, the information that runs succeeded includes:
The equipment more new data;The execution failure information includes: failure cause information.
Optionally, the quantity of the terminal is multiple, the method also includes: if running succeeded information described in receiving,
Equipment update data-pushing is not sent to then other terminals of the data setting instruction into multiple terminals, with
Other described terminals are made to update display information corresponding with the equipment more new data in the control interface.
Optionally, service is handled by independently operated control and establishes the communication connection;Pass through independently operated data
Monitoring service is communicated with control processing service, obtains first device data;Alternatively, passing through the data monitoring
Service is communicated with control processing service, the control command is sent to the control equipment to be controlled and receives institute
State the execution result information that control equipment to be controlled returns;The processing is carried out by the data monitoring service.
Optionally, the communication mode between the data monitoring service and the control processing service includes: SOCKET logical
Letter mode.
Optionally, service is handled by the independently operated page and obtains the display Page Template;At the page
Page file described in reason service creation simultaneously returns to the terminal.
Optionally, service is handled by the page and sends request of data to the data monitoring service, to obtain
State the first device data.
Optionally, the communication mode between the page processing service and the data monitoring service includes: SOCKET logical
Letter mode.
Optionally, acquisition display Page Template corresponding with the terminal includes: true according to the page request
The terminal type of the fixed terminal;It is obtained and the terminal from the multiple display Page Templates prestored based on the terminal type
Corresponding display Page Template;Wherein, the terminal includes: mobile terminal, PC, tablet computer.
Optionally, the display Page Template includes: html template;The page file includes: html file.
According to another aspect of the present invention, a kind of plant control unit is provided, comprising: page processing module, for responding
In the page request that the terminal received is sent, display Page Template corresponding with the terminal is obtained;According to the display
Page Template generates page file, and the page file is returned to the terminal, so that the terminal is based on the page
File generated control interface;Message processing module, the operational order sent for receiving the terminal by the control interface,
Corresponding operation is carried out based on the operational order.
Optionally, the message processing module, for passing through what is established with control equipment to be controlled in response to the page request
Communication connection obtains the first device data of the control equipment to be controlled;The page processing module, for according to the display page
Face die plate and first device data generate the page file.
Optionally, the communication connection is at least one of wire communication connection, wireless communication connection.
Optionally, the message processing module, comprising: operation command processor, for raw according to the operational order
At control command;The control command is sent to the control equipment to be controlled by the communication connection;Implementing result processing is single
Member, the implementing result corresponding with the control command returned for receiving the control equipment to be controlled by the communication connection
Information simultaneously performs corresponding processing.
Optionally, the operational order includes: data read command;The operation command processor, for according to institute
It states data read command and generates reading data control command;The reading data control command is sent by the communication connection
To the control equipment to be controlled;The implementing result processing unit passes through the communication connection for receiving the control equipment to be controlled
The second device data corresponding with the reading data control command of return is simultaneously sent to the terminal, so that the terminal
Second device data is shown in the control interface.
Optionally, the operational order includes: data setting instruction;The operation command processor, for according to institute
It states data setting instruction and generates data setting control command;Control command is arranged in the data by the communication connection to send
To the control equipment to be controlled;The implementing result processing unit passes through the communication connection for receiving the control equipment to be controlled
Corresponding with data setting control command run succeeded information or the execution failure information returned, and it is sent to the end
End so that the terminal show in the control interface described in run succeeded information or execution failure information;Wherein, described to hold
Row successful information includes: the equipment more new data;The execution failure information includes: failure cause information.
Optionally, the quantity of the terminal is multiple;The implementing result processing unit, if for receiving the execution
Equipment update data-pushing is not then sent the data into multiple terminals and its instructed is arranged by successful information
His terminal, so that other described terminals update display letter corresponding with the equipment more new data in the control interface
Breath.
Optionally, processing module is controlled, establishes the communication connection for handling service by independently operated control;Institute
Message processing module is stated, is communicated, is obtained for handling service with the control by independently operated data monitoring service
First device data;It is communicated alternatively, handling service by the data monitoring service and the control, to by institute
Control command is stated to be sent to the control equipment to be controlled and receive the execution result information that the control equipment to be controlled returns;By described
Data monitoring service carries out the processing.
Optionally, the communication mode between the data monitoring service and the control processing service includes: SOCKET logical
Letter mode.
Optionally, the page processing module obtains the display page for handling service by the independently operated page
Face die plate;Page file described in service creation is handled by the page and returns to the terminal.
Optionally, the page processing module is sent out for handling service by the page to the data monitoring service
Request of data is sent, to obtain first device data.
Optionally, the communication mode between the page processing service and the data monitoring service includes: SOCKET logical
Letter mode.
Optionally, the page processing module, for determining the terminal type of the terminal according to the page request;Base
Display Page Template corresponding with the terminal is obtained from the multiple display Page Templates prestored in the terminal type;Its
In, the terminal includes: mobile terminal, PC, tablet computer.
Optionally, the display Page Template includes: html template;The page file includes: html file.
According to another aspect of the invention, a kind of plant control unit is provided, comprising: memory;And it is coupled to described
The processor of memory, the processor is configured to square as described above based on the instruction execution for being stored in the memory
Method.
According to another aspect of the invention, a kind of equipment unit is provided, comprising: plant control unit as described above.
In accordance with a further aspect of the present invention, a kind of computer readable storage medium is provided, computer program is stored thereon with
The step of instruction, which realizes method as described above when being executed by processor.
Apparatus control method, device, storage medium and equipment unit of the invention, according to display corresponding with terminal
Page Template generates page file and returns to terminal, and terminal is sent by the control interface generated based on page file
Operational order carries out corresponding operation;It is capable of providing the control interface based on the page, display can be adapted to multiple terminal;Pass through
Control interface, which can be realized, remotely monitors and controls etc. functions, can provide a variety of data such as logout, function curve;Data
Occupied bandwidth is small, can provide simultaneously for multiple terminals and remotely monitor and control etc. functions;It can be realized automation O&M, it can be with
The efficiency monitored and controlled is improved, the use feeling degree of client is improved.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only
Some embodiments of the present invention, for those of ordinary skill in the art, without any creative labor, also
Other drawings may be obtained according to these drawings without any creative labor.
Fig. 1 is the flow diagram of one embodiment of apparatus control method according to the present invention;
Fig. 2 is the message processing flow schematic diagram in one embodiment of apparatus control method according to the present invention;
Fig. 3 is the reading information flow schematic diagram in one embodiment of apparatus control method according to the present invention;
Fig. 4 is the setting information flow diagram in one embodiment of apparatus control method according to the present invention;
Fig. 5 is the service arrangement schematic diagram in one embodiment of apparatus control method according to the present invention;
Fig. 6 is the module diagram of one embodiment of plant control unit according to the present invention;
Fig. 7 is the module signal of the message processing module in one embodiment of plant control unit according to the present invention
Figure;
Fig. 8 is the module diagram of another embodiment of plant control unit according to the present invention.
Specific embodiment
With reference to the accompanying drawings to invention is more fully described, wherein illustrating exemplary embodiment of the present invention.Under
Face will combine the attached drawing in the embodiment of the present invention, and technical scheme in the embodiment of the invention is clearly and completely described, show
So, described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Based on the reality in the present invention
Example is applied, every other embodiment obtained by those of ordinary skill in the art without making creative efforts all belongs to
In the scope of protection of the invention.Various descriptions are carried out to technical solution of the present invention below with reference to each figure and embodiment.
" first " hereinafter, " second " etc. are only to distinguish in description, and there is no other special meanings.
Fig. 1 is the flow diagram of one embodiment of apparatus control method according to the present invention, as shown in Figure 1:
Step 101, the page request sent in response to the terminal received, obtains display page mould corresponding with terminal
Plate.
Terminal can be mobile phone, PC, tablet computer etc., can have multiple terminals while send page request.What is prestored
It shows and obtains display Page Template corresponding with mobile phone, PC, tablet computer etc. in Page Template.Terminal can pass through offer
The information such as the address ip generate page request, send page request by browser.Terminal can wirelessly or wired side
Formula initiates page request, for example, terminal can initiate page request by wireless networks such as wifi, 4G, or passes through industrial ether
The cable networks such as network initiate page request.
Step 102, page file is generated according to display Page Template, and page file is returned into terminal, so that terminal
Control interface is generated based on page file.
Show that Page Template can be html template etc., page file can be html file etc..HTML(Hyper Text
Mark-up Language, hypertext markup language) descriptive text that is made of HTML command of text, HTML command can be with
Comment, figure, animation, sound, table, link etc..The structure of HTML includes head (Head), the big portion of main body (Body) two
Point, information needed for head describes browser, main body includes the particular content to be illustrated.HTML is used for display interface, can be with
Include multiple element, such as logout, curve.
Page file can be generated for multiple terminals.Show that in the page file of Page Template generation may include a variety of numbers
According to, such as a variety of operational parameter values of control equipment to be controlled, unit time set, curve record data, event log data etc..Eventually
End can loading page file, i.e. html file in a browser, generate control interface, be web interface, user can be as clear
Webpage of looking at equally is monitored, operates.
Step 103, the operational order that terminal is sent by control interface is received, is grasped accordingly based on operational order
Make.
It can receive multiple terminals while the operation requests sent, carry out corresponding operation based on multiple operation requests.When
When user's operation control interface or refresh control interface, the data in control interface will refresh display.Based on operational order
Carry out corresponding operation can there are many, such as read data manipulation, setting (writing) data manipulation etc., the result of operation can be returned
It is back to terminal.Terminal carries out control interface using html file and shows that the refreshing of control interface, which is shown, only to be needed by control
The read-write of data can be realized, and reduce the bandwidth occupancy of network, access while can be realized multiple terminals.
It in one embodiment, can be by the current of control equipment to be controlled in the page request that the terminal received is sent
Data return to terminal.Control equipment to be controlled is the equipment in equipment unit, and equipment unit can be air-conditioner set etc., to be controlled to set up
Standby can be air-conditioning, compressor etc..The information of control equipment to be controlled can be carried in the page request that terminal is sent, it is for example, to be controlled
The number etc. of control equipment.It may include the whole control equipment to be controlled in equipment unit in the page file of generation, also may include
Specific control equipment to be controlled.
In response to page request, by the first equipment for obtaining control equipment to be controlled with the communication connection that control equipment to be controlled is established
Data, the first device data may include operational parameter value, unit time set, curve record data, event log data etc..
According to the format of display Page Template and create-rule and page file is generated based on the first device data.
It can be connect with the communication connection that control equipment to be controlled is established for wire communication, wirelessly communicate connection.For example, passing through
485, the industrial field bus such as can are attached with control equipment to be controlled, establish wire communication connection;The master control borad of control equipment to be controlled
It supports wifi, bluetooth etc., wireless communication connection is established by the master control borad of the modules such as wifi, bluetooth and control equipment to be controlled.Pass through
It communicates to connect and reading data, modification etc. is carried out to the master control borad of equipment to be controlled, to realize the operation to equipment to be controlled
Control, monitors its operating status.
Fig. 2 is the message processing flow schematic diagram in one embodiment of apparatus control method according to the present invention, such as Fig. 2
It is shown:
Step 201, control command is generated by the operational order that control interface is sent according to terminal.
Operational order include data read command, data setting instruction etc., control command include reading data control command,
Control command etc. is arranged in data.
Step 203, control command is sent to control equipment to be controlled by communicating to connect.
Step 204, implementing result corresponding with the control command letter that control equipment to be controlled is returned by communication connection is received
It ceases and performs corresponding processing.
Execution result information includes reading data result information, data setting result information etc., and the processing of progress can have
It is a variety of, such as reading data result information, data setting result information are returned into terminal etc..
In one embodiment, controller control program can be run in systems, and starting control processing services, at control
Reason service can be used as an independent process isolated operation.Control processing service is established with control equipment to be controlled to be communicated to connect, and is led to
It crosses communication connection and reading data, modification etc. is carried out to equipment to be controlled, carry out operation control and monitor its operating status.At control
Reason service also can receive local control command, responds local control instruction and executes corresponding reading data, modification etc. and operates.
For example, user sends reading data, the local control command such as modification by touch screen, control processing service by communicate to connect to
Control equipment to be controlled sends local control command, so as to execute the local control command such as reading data, modification to equipment to be controlled.
It can star data monitoring service, data monitoring service can be used as an independent process isolated operation, pass through
The communication modes such as SOCKET and control processing service carry out data communication.Data monitoring service passes through control for response external terminal
The operational order for the related reading and writing data that interface processed is sent, the corresponding data of these operational orders are to run phase with control equipment to be controlled
The specific data of pass.For example, unit switching on and shutting down, time set, water temperature control etc..Data monitoring service and control processing service
Function can also be configured according to specific requirement.
Fig. 3 is the reading information flow schematic diagram in one embodiment of apparatus control method according to the present invention, such as Fig. 3
It is shown:
Step 301, reading data control command is generated according to data read command.
Step 302, reading data control command is sent to control equipment to be controlled by communicating to connect.
Step 303, control equipment to be controlled is returned by communication connection corresponding with reading data control command the is received
Two device datas are simultaneously sent to terminal, so that terminal shows the second device data in control interface.Second device data can be with
For the corresponding device data of the data read command that is sent with terminal by control interface, for example, unit switching on and shutting down, timing
Setting, water temperature control etc..
In one embodiment, the reading data control command of generation is sent to control processing clothes by data monitoring service
Reading data control command is sent to control equipment to be controlled by communicating to connect by business, control processing service.Data monitoring service connects
The second device data that control processing service returns is received, the second device data is transmitted to end by communication modes such as SOCKET
End, terminal update control interface, realize the teledata operation of terminal.
Fig. 4 is the setting information flow diagram in one embodiment of apparatus control method according to the present invention, such as Fig. 4
It is shown:
Step 401, instruction is set according to data and generates data setting control command.
Step 402, data setting control command is sent to by control equipment to be controlled by communication connection.
Step 403, receive that control equipment to be controlled returned by communication connection control command is corresponding holds with data setting
Row successful information executes failure information, and is sent to terminal so that terminal shown in control interface run succeeded information or
Execute failure information.The information that runs succeeded includes: equipment more new data etc., and executing failure information includes failure cause information etc..
In one embodiment, the data setting control command of generation is sent to control processing clothes by data monitoring service
Data setting control command is sent to control equipment to be controlled by communication connection by business, control processing service.If control equipment to be controlled
It runs succeeded, then returns and run succeeded information, the equipment of the corresponding device data of the data setting instruction including being sent with terminal
More new data returns to execution failure information, including failure cause information if control equipment to be controlled executes failure.
Data monitoring service receives run succeeded information or the execution failure information that control processing service returns, and will acquire
To run succeeded and information or execute failure information and by communication modes such as SOCKET be transmitted to terminal, terminal is in control interface
Relevant display information or display failure cause information etc. are updated, realizes the teledata operation of terminal.
For example, data monitoring service receives the operational order that terminal is sent by control interface, operational order is modification
One water temperature setting value, data monitoring service will be sent to control about the data setting control command for modifying this water temperature setting value
Data setting control command is sent to control equipment to be controlled by communication connection by processing service, control processing service.
Control equipment to be controlled, which executes, modifies the success of this water temperature setting value, returns to the information that runs succeeded, sets including new water temperature
Value.Data monitoring service receives the information that runs succeeded that control processing service returns, and the information that runs succeeded that will acquire is logical
It crosses SOCKET communication mode and is transmitted to terminal.Terminal updates the display information of this water temperature setting value in control interface.
The quantity of terminal is multiple, if receiving the information that runs succeeded, equipment is updated data-pushing to multiple terminals
In do not have send data setting instruction other terminals so that other terminals update and equipment more new data phase in control interface
Corresponding display information.Multiple terminals can carry out remote access simultaneously, and modify to data, any one terminal pair
The data modification of control equipment to be controlled can synchronize on Real-time Feedback to the terminal of other connections, realize the data sharing of multiple terminals.
For example, data monitoring service receives the operational order phase sent for a terminal there are three the quantity of terminal
The corresponding information that runs succeeded, the information that runs succeeded include new water temperature setting value.Data monitoring service sets new water temperature
Value is transmitted to other two terminals by SOCKET communication mode, other two terminals show that new water temperature is set in control interface
Definite value.
In one embodiment, while control processing service 51, data monitoring service 52, page processing service 53 being run.
Communications service can be a part of director demon, can also start communication clothes simultaneously when starting controls processing service 51
Business can also only starting control processing service 51 for being communicated with data monitoring service 53.Control processing service 51 is used for
The communication connection between control equipment to be controlled 50 is established, connect and leads to data monitoring service 52 using SOCKET communication mode
News.
Data monitoring service 52 be used as an independent program isolated operation, by SOCKET and control processing service 51 into
Row data communication.The terminal 54, terminal 55, terminal 56 of data monitoring service 52 for response external etc. is sent by control interface
Data read-write operation instruction.The page of the transmissions such as terminal 54, terminal 55, terminal 56 of the page processing service 53 for response external
It requests in person and asks, SOCKET communication mode also can be used and connect and communicate with data monitoring service 52.
In one embodiment, it is established and is communicated to connect by independently operated control processing service 51.Pass through independent operating
Data monitoring service 52 51 communicated with control processing service, obtain the first device data;Alternatively, being taken by data monitoring
Business 52 is communicated with control processing service 51, control command is sent to control equipment 50 to be controlled and receives control equipment to be controlled
50 execution result informations returned, and performed corresponding processing by data monitoring service 52.
Service 53 is handled by the independently operated page and obtains display Page Template, and service 53 is handled by the page and generates page
Face file simultaneously returns to terminal 54, terminal 55, terminal 56.Service 53, which is handled, by the page sends data to data monitoring service 52
Request, to obtain the first device data.It can be communicated, be obtained with control processing service 51 by data monitoring service 52
First device data, data monitoring service 52 return to the first device data to page processing service 53.At can also be by the page
Reason service 53 sends request of data to control processing service 51, to obtain the first device data.Page processing service 53 and number
It include SOCKET communication mode etc. according to the communication mode between monitoring service 52.
In one embodiment, determine the terminal type of terminal according to page request, for example, terminal type be mobile terminal,
PC, tablet computer etc..Display page corresponding with terminal is obtained from the multiple display Page Templates prestored based on terminal type
Face die plate.The type of terminal can be determined there are many method, for example, the page request that terminal is sent is HTTP message, according to
The UA information field that HTTP message head carries analyzes the terminal type of terminal, alternatively, other words of terminal in page request
It joined in section about terminal type information etc..
Multiple display Page Templates (html file) are prestored, these display Page Templates being capable of accurate description director demon
Interface display, and adapt to different types of terminal, such as PC, mobile terminal, can provide and targetedly service.Example
Such as, when terminal is mobile terminal, provide mobile terminal dedicated display Page Template, so that control circle generated in the terminal
The display in face can meet mobile terminal.
In one embodiment, as shown in fig. 6, the present invention provides a kind of plant control unit 60, comprising: the page handles mould
Block 61, message processing module 62 and control processing module 63.Page of the page processing module 61 in response to the terminal transmission received
It requests in person and asks, obtain display Page Template corresponding with terminal, page file is generated according to display Page Template, and the page is literary
Part returns to terminal, so that terminal is based on page file and generates control interface.Message processing module 62 receives terminal and passes through control
The operational order that interface is sent carries out corresponding operation based on operational order.
In one embodiment, message processing module 62 is logical by establishing with control equipment to be controlled in response to page request
Letter connection obtains the first device data of control equipment to be controlled;Page processing module, for being set according to display Page Template and first
Standby data generate page file.Communication connection is wire communication connection, wireless communication connection etc..
As shown in fig. 7, message processing module 62 includes: operation command processor 621 and implementing result processing unit
622.Operation command processor 621 generates control command according to operational order, is sent to control command by communicating to connect
Control equipment to be controlled.Implementing result processing unit 622 receives control equipment to be controlled and passes through the opposite with control command of communication connection return
The execution result information answered simultaneously performs corresponding processing.
In one embodiment, operational order includes data read command.Operation command processor 621 is read according to data
Instruction fetch generates reading data control command, and reading data control command is sent to control equipment to be controlled by communicating to connect.It holds
Row result treatment unit 622 receives corresponding with reading data control command that control equipment to be controlled is returned by communication connection
Two device datas are simultaneously sent to terminal, so that terminal shows the second device data in control interface.
Operational order includes data setting instruction.Operation command processor 621 is arranged instruction according to data and generates data
Control command is set, data setting control command is sent to by control equipment to be controlled by communication connection.Implementing result processing unit
621 receive that control equipments to be controlled are returned by communication connection corresponding run succeeded of control command be set with data information or hold
Row failure information, and it is sent to terminal, so that terminal shows run succeeded information or execution failure information in control interface.It holds
Row successful information includes equipment more new data etc.;Executing failure information includes failure cause information etc..
The quantity of terminal be it is multiple, if the reception of implementing result processing unit 622 runs succeeded information, equipment is updated
Data-pushing do not have into multiple terminals send data setting instruction other terminals so that other terminals in control interface more
Newly display information corresponding with equipment more new data.
In one embodiment, control processing module 63 establishes communication connection by independently operated control processing service.
Message processing module 62 is communicated by independently operated data monitoring service with control processing service, and the first number of devices is obtained
According to;Alternatively, message processing module 62 is communicated by data monitoring service with control processing service, to send out control command
It gives control equipment to be controlled and receives the execution result information that control equipment to be controlled returns.Message processing module 62 is taken by data monitoring
Business is handled.
Page processing module 61 obtains display Page Template by the processing service of the independently operated page, is handled by the page
Service creation page file simultaneously returns to terminal.Page processing module 61 handles service by the page and sends to data monitoring service
Request of data, to obtain the first device data.Page processing module 61 determines the terminal type of terminal, base according to page request
Display Page Template corresponding with terminal is obtained from the multiple display Page Templates prestored in terminal type, terminal includes:
Mobile terminal, PC, tablet computer etc..
Fig. 8 is the module diagram of another embodiment of plant control unit according to the present invention.As shown in figure 8, should
Device may include memory 81, processor 82, communication interface 83 and bus 84.Memory 81 for storing instruction, processor
82 are coupled to memory 81, and processor 82 is configured as realizing above-mentioned equipment control based on the instruction execution that memory 81 stores
Method.
Memory 81 can be high speed RAM memory, nonvolatile memory (non-volatile memory) etc., deposit
Reservoir 81 is also possible to memory array.Memory 81 is also possible to by piecemeal, and block can be combined into virtually by certain rule
Volume.Processor 82 can be central processor CPU or application-specific integrated circuit ASIC (Application Specific
Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the apparatus control method of the disclosure
Road.
In one embodiment, the present invention provides a kind of equipment unit, including the equipment control in any embodiment as above
Device.Equipment unit can be air-conditioner set, Compressor Group etc..
In one embodiment, the disclosure provides a kind of computer readable storage medium, and computer readable storage medium is deposited
Computer instruction is contained, the apparatus control method in as above any one embodiment is realized when instruction is executed by processor.
Apparatus control method, device, storage medium and equipment unit in above-described embodiment, according to corresponding with terminal
Display Page Template generate page file and return to terminal, the control interface that is generated based on page file is passed through for terminal
The operational order of transmission carries out corresponding operation;It is capable of providing the control interface based on the page, can be adapted to multiple terminal aobvious
Show;It can be realized by control interface and remotely the functions such as monitor and control, can provide a variety of numbers such as logout, function curve
According to;Data occupied bandwidth is small, can provide simultaneously for multiple terminals and remotely monitor and control etc. functions;It can be realized automation fortune
Dimension, can be improved the efficiency monitored and controlled, improves the use feeling degree of client.
Apparatus control method, device, storage medium and equipment unit in above-described embodiment, the energy based on block chain
It interconnects information subnet and the energy source interconnection information major network based on block chain is accessed by cross-domain node device, cross-domain node device carries out
The transmitted in both directions of information;Local energy internet system can be made to realize acentric point of domain autonomy, can make business information into
The controllable flow in transparent point of domain of row is cooperateed with using multiple block chains and carries out reliable information interaction, guarantees can not usurping for interactive information
It is modified, it increases business information and deposits the security reliability of card, and can be realized automation O&M and transaction.
Method and system of the invention may be achieved in many ways.For example, can by software, hardware, firmware or
Software, hardware, firmware any combination realize method and system of the invention.The said sequence of the step of for method is only
In order to be illustrated, the step of method of the invention, is not limited to sequence described in detail above, especially says unless otherwise
It is bright.In addition, in some embodiments, also the present invention can be embodied as to record program in the recording medium, these programs include
For realizing machine readable instructions according to the method for the present invention.Thus, the present invention also covers storage for executing according to this hair
The recording medium of the program of bright method.
Description of the invention is given for the purpose of illustration and description, and is not exhaustively or will be of the invention
It is limited to invented form.Many modifications and variations are obvious for the ordinary skill in the art.It selects and retouches
It states embodiment and is to more preferably illustrate the principle of the present invention and practical application, and those skilled in the art is enable to manage
The solution present invention is to design various embodiments suitable for specific applications with various modifications.
Claims (31)
1. a kind of apparatus control method characterized by comprising
In response to the page request that the terminal received is sent, display Page Template corresponding with the terminal is obtained;
Page file is generated according to the display Page Template, and the page file is returned into the terminal, so that described
Terminal is based on the page file and generates control interface;
The operational order that the terminal is sent by the control interface is received, is grasped accordingly based on the operational order
Make.
2. the method as described in claim 1, which is characterized in that further include:
In response to the page request, by obtaining the first of the control equipment to be controlled with the communication connection that control equipment to be controlled is established
Device data;
The page file is generated according to the display Page Template and first device data.
3. method according to claim 2, which is characterized in that
The communication connection is at least one of wire communication connection, wireless communication connection.
4. method according to claim 2, which is characterized in that described to carry out corresponding operation packet based on the operational order
It includes:
Control command is generated according to the operational order;
The control command is sent to the control equipment to be controlled by the communication connection;
The control equipment to be controlled is received to believe by the implementing result corresponding with the control command that the communication connection returns
It ceases and performs corresponding processing.
5. method as claimed in claim 4, which is characterized in that the operational order includes: data read command;The basis
The operational order generates control command, the control command is sent to the control equipment packet to be controlled by the communication connection
It includes:
Reading data control command is generated according to the data read command;
The reading data control command is sent to the control equipment to be controlled by the communication connection;
The reception control equipment to be controlled executes knot by the corresponding with the control command of communication connection return
Fruit information simultaneously performs corresponding processing and includes:
Receive the control equipment to be controlled is returned by the communication connection corresponding with the reading data control command the
Two device datas are simultaneously sent to the terminal, so that the terminal shows second device data in the control interface.
6. method as claimed in claim 4, which is characterized in that the operational order includes: data setting instruction, the basis
The operational order generates control command, the control command is sent to the control equipment packet to be controlled by the communication connection
It includes:
Instruction is set according to the data and generates data setting control command;
Data setting control command is sent to the control equipment to be controlled by the communication connection;
The reception control equipment to be controlled executes knot by the corresponding with the control command of communication connection return
Fruit information simultaneously performs corresponding processing and includes:
Receive that the control equipment to be controlled returned by the communication connection control command is corresponding holds with data setting
Row successful information executes failure information, and is sent to the terminal, so that the terminal shows institute in the control interface
State run succeeded information or execution failure information;
Wherein, the information that runs succeeded includes: the equipment more new data;The execution failure information includes: failure cause
Information.
7. method as claimed in claim 6, which is characterized in that the quantity of the terminal be it is multiple, the method also includes:
If running succeeded information described in receiving, equipment update data-pushing is not sent into multiple terminals
Other terminals of the data setting instruction, update so that other described terminals update in the control interface with the equipment
The corresponding display information of data.
8. method as claimed in claim 4, which is characterized in that
Service, which is handled, by independently operated control establishes the communication connection;
Service is handled with the control by independently operated data monitoring service to be communicated, and first number of devices is obtained
According to;Alternatively,
It handles service with the control by the data monitoring service to be communicated, the control command is sent to institute
It states control equipment to be controlled and receives the execution result information that the control equipment to be controlled returns;Institute is carried out by the data monitoring service
State processing.
9. method according to claim 8, which is characterized in that
Communication mode between the data monitoring service and the control processing service includes: SOCKET communication mode.
10. method according to claim 8, which is characterized in that
Service, which is handled, by the independently operated page obtains the display Page Template;
Page file described in service creation is handled by the page and returns to the terminal.
11. method as claimed in claim 10, which is characterized in that
Service is handled by the page and sends request of data to the data monitoring service, to obtain first number of devices
According to.
12. method as claimed in claim 11, which is characterized in that
Communication mode between the page processing service and the data monitoring service includes: SOCKET communication mode.
13. the method as described in claim 1, which is characterized in that described to obtain display page mould corresponding with the terminal
Plate includes:
The terminal type of the terminal is determined according to the page request;
The display page corresponding with the terminal is obtained from the multiple display Page Templates prestored based on the terminal type
Template;
Wherein, the terminal includes: mobile terminal, PC, tablet computer.
14. the method as described in claim 1, which is characterized in that
The display Page Template includes: html template;The page file includes: html file.
15. a kind of plant control unit characterized by comprising
Page processing module, the page request for sending in response to the terminal received, obtains corresponding with the terminal
Show Page Template;Page file is generated according to the display Page Template, and the page file is returned into the terminal,
So that the terminal is based on the page file and generates control interface;
Message processing module, the operational order sent for receiving the terminal by the control interface are based on the operation
Instruction carries out corresponding operation.
16. device as claimed in claim 15, which is characterized in that
The message processing module, for being obtained by the communication link established with control equipment to be controlled in response to the page request
Obtain the first device data of the control equipment to be controlled;
The page processing module, for generating the page text according to the display Page Template and first device data
Part.
17. device as claimed in claim 16, which is characterized in that
The communication connection is at least one of wire communication connection, wireless communication connection.
18. device as claimed in claim 16, which is characterized in that
The message processing module, comprising:
Operation command processor, for generating control command according to the operational order;It will be described by the communication connection
Control command is sent to the control equipment to be controlled;
Implementing result processing unit, for receiving the control equipment to be controlled ordering with the control by the communication connection return
It enables corresponding execution result information and performs corresponding processing.
19. device as claimed in claim 18, which is characterized in that the operational order includes: data read command;
The operation command processor, for generating reading data control command according to the data read command;Pass through institute
It states communication connection and the reading data control command is sent to the control equipment to be controlled;
The implementing result processing unit, for receive the control equipment to be controlled by it is described communication connection return with the number
According to reading corresponding second device data of control command and being sent to the terminal, so that the terminal is in the control interface
Upper display second device data.
20. device as claimed in claim 18, which is characterized in that the operational order includes: data setting instruction;
The operation command processor generates data setting control command for instruction to be arranged according to the data;Pass through institute
It states communication connection and data setting control command is sent to the control equipment to be controlled;
The implementing result processing unit, for receive the control equipment to be controlled by it is described communication connection return with the number
According to setting control command corresponding run succeeded information or execution failure information, and it is sent to the terminal, so that the end
Hold run succeeded described in display in the control interface information or execution failure information;
Wherein, the information that runs succeeded includes: the equipment more new data;The execution failure information includes: failure cause
Information.
21. device as claimed in claim 20, which is characterized in that the quantity of the terminal is multiple;
The implementing result processing unit, if pushed away the equipment more new data for the information that runs succeeded described in reception
Other terminals that the data setting instruction is not sent in multiple terminals are sent to, so that other described terminals are in the control
Display information corresponding with the equipment more new data is updated on interface processed.
22. device as claimed in claim 18, which is characterized in that further include:
Processing module is controlled, establishes the communication connection for handling service by independently operated control;
The message processing module is led to for handling service with the control by independently operated data monitoring service
Letter obtains first device data;It is communicated alternatively, handling service with the control by the data monitoring service,
The control command is sent to the control equipment to be controlled and receives the execution result information of the control equipment return to be controlled;
The processing is carried out by the data monitoring service.
23. device as claimed in claim 22, which is characterized in that
Communication mode between the data monitoring service and the control processing service includes: SOCKET communication mode.
24. device as claimed in claim 22, which is characterized in that
The page processing module obtains the display Page Template for handling service by the independently operated page;Pass through
Page file described in the page processing service creation simultaneously returns to the terminal.
25. device as claimed in claim 24, which is characterized in that
The page processing module sends request of data to the data monitoring service for handling service by the page,
To obtain first device data.
26. device as claimed in claim 25, which is characterized in that
Communication mode between the page processing service and the data monitoring service includes: SOCKET communication mode.
27. device as claimed in claim 15, which is characterized in that
The page processing module, for determining the terminal type of the terminal according to the page request;Based on the terminal
Type obtains display Page Template corresponding with the terminal from the multiple display Page Templates prestored;Wherein, the end
End includes: mobile terminal, PC, tablet computer.
28. device as claimed in claim 15 characterized by comprising
The display Page Template includes: html template;The page file includes: html file.
29. a kind of plant control unit characterized by comprising
Memory;And it is coupled to the processor of the memory, the processor is configured to based on the storage is stored in
The described in any item methods of the instruction execution of device such as claim 1 to 14.
30. a kind of equipment unit characterized by comprising
Such as the described in any item plant control units of claim 15 to 28.
31. a kind of computer readable storage medium, is stored thereon with computer program instructions, real when which is executed by processor
The step of existing claim 1 to 14 described in any item methods.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811112122.4A CN109120716A (en) | 2018-09-25 | 2018-09-25 | Apparatus control method, device, storage medium and equipment unit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811112122.4A CN109120716A (en) | 2018-09-25 | 2018-09-25 | Apparatus control method, device, storage medium and equipment unit |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109120716A true CN109120716A (en) | 2019-01-01 |
Family
ID=64856492
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811112122.4A Pending CN109120716A (en) | 2018-09-25 | 2018-09-25 | Apparatus control method, device, storage medium and equipment unit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109120716A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110672801A (en) * | 2019-09-29 | 2020-01-10 | 智锐达仪器科技南通有限公司 | Food safety quick detection terminal, execution terminal, main control terminal and method |
CN112099770A (en) * | 2020-09-16 | 2020-12-18 | 携程旅游网络技术(上海)有限公司 | Template-based webpage generation method, system, equipment and storage medium |
CN112882393A (en) * | 2021-01-12 | 2021-06-01 | 广州三星通信技术研究有限公司 | Electrical device, method of controlling electrical device, and controller |
CN113300886A (en) * | 2021-05-21 | 2021-08-24 | 北京创源微致软件有限公司 | Distributed digital control system and communication processing method and device thereof |
CN114153539A (en) * | 2020-12-31 | 2022-03-08 | 万翼科技有限公司 | Front-end application interface generation method and device, electronic equipment and storage medium |
CN114153539B (en) * | 2020-12-31 | 2024-06-25 | 深圳市万翼数字技术有限公司 | Front-end application interface generation method and device, electronic equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100312856A1 (en) * | 1997-03-27 | 2010-12-09 | Jlb Ventures Llc | Simulcast web page delivery |
CN103067448A (en) * | 2012-12-12 | 2013-04-24 | 北京奇虎科技有限公司 | Device control method and mobile communication terminal |
CN103116336A (en) * | 2013-01-14 | 2013-05-22 | 广州从兴电子开发有限公司 | Method and device for automatic management of controlled device through intelligent home control terminal |
CN103914293A (en) * | 2013-01-06 | 2014-07-09 | 腾讯科技(北京)有限公司 | Page generation method and server |
CN104468779A (en) * | 2014-12-08 | 2015-03-25 | 乐视致新电子科技(天津)有限公司 | Monitoring method and device for intelligent equipment and router |
CN106445545A (en) * | 2016-10-11 | 2017-02-22 | 深圳Tcl智能家庭科技有限公司 | System and method for generating intelligent control interface |
CN108173724A (en) * | 2017-12-26 | 2018-06-15 | 陈占辉 | A kind of sharing method of the smart home device based on mobile terminal |
-
2018
- 2018-09-25 CN CN201811112122.4A patent/CN109120716A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100312856A1 (en) * | 1997-03-27 | 2010-12-09 | Jlb Ventures Llc | Simulcast web page delivery |
CN103067448A (en) * | 2012-12-12 | 2013-04-24 | 北京奇虎科技有限公司 | Device control method and mobile communication terminal |
CN103914293A (en) * | 2013-01-06 | 2014-07-09 | 腾讯科技(北京)有限公司 | Page generation method and server |
CN103116336A (en) * | 2013-01-14 | 2013-05-22 | 广州从兴电子开发有限公司 | Method and device for automatic management of controlled device through intelligent home control terminal |
CN104468779A (en) * | 2014-12-08 | 2015-03-25 | 乐视致新电子科技(天津)有限公司 | Monitoring method and device for intelligent equipment and router |
CN106445545A (en) * | 2016-10-11 | 2017-02-22 | 深圳Tcl智能家庭科技有限公司 | System and method for generating intelligent control interface |
CN108173724A (en) * | 2017-12-26 | 2018-06-15 | 陈占辉 | A kind of sharing method of the smart home device based on mobile terminal |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110672801A (en) * | 2019-09-29 | 2020-01-10 | 智锐达仪器科技南通有限公司 | Food safety quick detection terminal, execution terminal, main control terminal and method |
CN112099770A (en) * | 2020-09-16 | 2020-12-18 | 携程旅游网络技术(上海)有限公司 | Template-based webpage generation method, system, equipment and storage medium |
CN114153539A (en) * | 2020-12-31 | 2022-03-08 | 万翼科技有限公司 | Front-end application interface generation method and device, electronic equipment and storage medium |
CN114153539B (en) * | 2020-12-31 | 2024-06-25 | 深圳市万翼数字技术有限公司 | Front-end application interface generation method and device, electronic equipment and storage medium |
CN112882393A (en) * | 2021-01-12 | 2021-06-01 | 广州三星通信技术研究有限公司 | Electrical device, method of controlling electrical device, and controller |
CN113300886A (en) * | 2021-05-21 | 2021-08-24 | 北京创源微致软件有限公司 | Distributed digital control system and communication processing method and device thereof |
CN113300886B (en) * | 2021-05-21 | 2022-11-22 | 北京创源微致软件有限公司 | Distributed digital control system and communication processing method and device thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109120716A (en) | Apparatus control method, device, storage medium and equipment unit | |
US10805380B2 (en) | Data transmission method and device | |
CN104270468B (en) | A kind of system of wechat control internet of things equipment | |
CN109510723B (en) | Gateway equipment, and transaction management and control system and method of Internet of things | |
CN103067448B (en) | device control method and mobile communication terminal | |
CN105812406B (en) | Information transferring method and device based on WEB emulation terminal system | |
CN103747074B (en) | mobile monitoring system based on Web server | |
CN105050202A (en) | Method of establishing communication session using active connection of mobile terminal to relay server | |
CN110995859A (en) | Intelligent transformer substation supporting platform system based on ubiquitous Internet of things | |
CN106164917A (en) | User's application-specific for remote session activates | |
CN101707627B (en) | Method and device for presenting page information | |
CN103139271A (en) | System and method of controlling communication between terminals | |
CN111629016A (en) | Control method, device and system | |
CN109740096A (en) | A kind of implementation method of live preview, device, system and storage medium | |
US20200150613A1 (en) | Method and device for operating and controlling a machine installation by means of a graphical development interface and generation of a field bus configuration | |
CN107995293A (en) | Big data all-in-one machine and application system based on Internet of Things information | |
CN108449246A (en) | A kind of intelligent domestic system based on instant message applications Yu Internet of Things Network Communication | |
CN110069351A (en) | Dual system communication means, device and the touch control device of touch control device | |
US20190349420A1 (en) | Electronic communication device | |
CN110493120A (en) | A kind of method and apparatus for sending device operational order | |
CN110515662A (en) | Long-range control method, system, equipment and the readable storage medium storing program for executing of dual-system device | |
CN108459902A (en) | Method, apparatus and electronic equipment for order-processing business | |
CN110058833A (en) | External control device, sound conversational control system, control method and recording medium | |
CN105916184B (en) | A kind of industrial wireless sensing network termination implementation method meeting ISA100.11a standard | |
CN107343038A (en) | A kind of remote real-time monitoring device and method based on IPMI |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190101 |