CN108173912A - Apparatus control method and device, computer readable storage medium, terminal - Google Patents

Apparatus control method and device, computer readable storage medium, terminal Download PDF

Info

Publication number
CN108173912A
CN108173912A CN201711371913.4A CN201711371913A CN108173912A CN 108173912 A CN108173912 A CN 108173912A CN 201711371913 A CN201711371913 A CN 201711371913A CN 108173912 A CN108173912 A CN 108173912A
Authority
CN
China
Prior art keywords
equipment
controlled device
apparatus control
service layer
network transmission
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
Application number
CN201711371913.4A
Other languages
Chinese (zh)
Inventor
张家重
徐睿
付宪瑞
王玉奎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Financial Information Technology Co Ltd
Original Assignee
Inspur Financial Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Financial Information Technology Co Ltd filed Critical Inspur Financial Information Technology Co Ltd
Priority to CN201711371913.4A priority Critical patent/CN108173912A/en
Publication of CN108173912A publication Critical patent/CN108173912A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/561Adding application-functional data or data for application control, e.g. adding metadata
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Library & Information Science (AREA)
  • Communication Control (AREA)

Abstract

A kind of apparatus control method and device, computer readable storage medium, terminal, the method includes:When needing to carry out remote control to equipment, message is controlled using the equipment of corresponding key-course generation first network transport protocol and is sent to preset agency service layer;The equipment control message is received using the agency service layer, the equipment received control message is converted into the remote command of corresponding second network transmission protocol and is sent to corresponding controlled device, so that the controlled device performs corresponding operation.Above-mentioned scheme can improve the flexibility of equipment control, promote the usage experience of user.

Description

Apparatus control method and device, computer readable storage medium, terminal
Technical field
The present invention relates to debugging technique field, more particularly to a kind of apparatus control method and device, computer-readable deposit Storage media, terminal.
Background technology
With the development of network and economic society, household and office are increasingly intended to intelligence, to the equipment in region The approach and mode of control are more and more.
It is switched on, shut down using remote command in daily life or business application, restarted, volume is turned up, turns down volume, is quiet Sound, the equipment for cancelling the control whole region such as mute are also increasingly wider.Any organization or individual can pass through Pc, Pad, hand Machine carrys out the equipment state of one panel region of remote control, modifies in real time.
But existing apparatus control method there is flexibility it is poor the problem of, seriously affected the usage experience of user.
Invention content
The technical issues of embodiment of the present invention solves is how to improve the flexibility of equipment control, and promote user uses body It tests.
To solve the above problems, an embodiment of the present invention provides a kind of apparatus control method, the method includes:
When needing to carry out remote control to equipment, controlled using the equipment of corresponding key-course generation first network transport protocol Message is simultaneously sent to preset agency service layer;
The equipment control message is received using the agency service layer, the equipment received control message is converted to corresponding The remote command of second network transmission protocol is simultaneously sent to corresponding controlled device, so that the controlled device performs accordingly Operation.
Optionally, it is described that equipment control message is converted into corresponding Remote Device Control order and is sent to corresponding Equipment, including:
The information of corresponding controlled device and equipment control instruction is parsed from received equipment control message;
Information based on the obtained controlled device of parsing and equipment control instruction obtains corresponding the from preset configuration file The remote command of two network transmission protocols, and it is sent to the designated port of the controlled device.
Optionally, the first network transport protocol is http protocol.
Optionally, second network transmission protocol is Transmission Control Protocol.
The embodiment of the present invention additionally provides a kind of apparatus control system, and described device includes one-to-one with controlled device Multiple key-courses and agency service layer;
The key-course, suitable for when needing to carry out remote control to equipment, being passed using corresponding key-course generation first network The equipment control message of defeated agreement is simultaneously sent to preset agency service layer;
The equipment received control message suitable for receiving the equipment control message, is converted to correspondence by the agency service layer Second network transmission protocol remote command and be sent to corresponding controlled device so that the controlled device perform it is corresponding Operation.
Optionally, the agency service layer, it is corresponding controlled suitable for being parsed from received equipment control message The information of equipment and equipment control instruction;Information based on the obtained controlled device of parsing and equipment control instruction, from preset The remote command of corresponding second network transmission protocol is obtained in configuration file, and is sent to the designated ends of the controlled device Mouthful.
Optionally, the first network transport protocol is http protocol.
Optionally, second network transmission protocol is Transmission Control Protocol.
The embodiment of the present invention additionally provides a kind of computer readable storage medium, is stored thereon with computer instruction, described The step of computer instruction performs apparatus control method described in any one of the above embodiments when running.
The embodiment of the present invention additionally provides a kind of terminal, and including memory and processor, energy is stored on the memory Enough computer instructions run on the processor, the processor perform any of the above-described when running the computer instruction The step of described apparatus control method.
Compared with prior art, technical scheme of the present invention has the following advantages that:
Above-mentioned scheme, when needing to carry out remote control to equipment, using corresponding key-course generation first network transmission association The equipment control message of view is simultaneously sent to preset agency service layer, and the equipment control report is received using the agency service layer The equipment received control message is converted to the remote command of corresponding second network transmission protocol and is sent to corresponding by text Controlled device, so that the controlled device performs corresponding operation, because using Agent layer generation and different controlled device phases The network transmission protocol answered controls controlled device, can improve the flexibility of equipment control, and promote user uses body It tests.
Description of the drawings
Fig. 1 is a kind of structure diagram of apparatus control system in the embodiment of the present invention;
Fig. 2 is a kind of flow chart of apparatus control method in the embodiment of the present invention.
Specific embodiment
To solve the above-mentioned problems in the prior art, technical solution used in the embodiment of the present invention passes through corresponding control The equipment control message of preparative layer generation first network transport protocol is simultaneously sent to preset agency service layer, is taken using the agency The layer reception equipment of being engaged in controls message, and the equipment received control message is converted to corresponding second network transmission protocol Remote command is simultaneously sent to corresponding controlled device, so that the controlled device performs corresponding operation, because using Agent layer The generation network transmission protocol corresponding with different controlled devices controls controlled device, can improve the spirit of equipment control Activity promotes the usage experience of user.
It is understandable for the above objects, features and advantages of the present invention is enable to become apparent, below in conjunction with the accompanying drawings to the present invention Specific embodiment be described in detail.
In order to make it easy to understand, the apparatus control system in the embodiment of the present invention will be introduced first below.
Fig. 1 shows a kind of structure diagram of apparatus control system in the embodiment of the present invention.Equipment as shown in Figure 1 Control system can include multiple key-courses 1011、1012……101nWith agency service layer 102.Wherein, multiple key-courses 1011、1012……101nCorresponding control device, such as tablet computer, PC and mobile phone movement can be separately positioned on In terminal, and respectively with corresponding controlled device 1031、1032……103nBe arranged in a one-to-one correspondence, and with the agency service Layer 102 couple, the agency service layer 102 also with multiple controlled devices 1031、1032……103nIt is respectively coupled to.
The operation principle of the apparatus control system described in Fig. 1 is described in detail below in conjunction with Fig. 2.
Fig. 2 shows a kind of flow charts of apparatus control method in the embodiment of the present invention.Equipment control as shown in Figure 2 Method can specifically include following operation:
Step S201:When needing to carry out remote control to equipment, first network transport protocol is generated using corresponding key-course Equipment control message and be sent to preset agency service layer.
In specific implementation, when needing to control controlled device, the key-course that is correspondingly arranged with controlled device, i.e., Corresponding key-course may be used the equipment control message of preset first network transport protocol and be sent to agency service layer.
Wherein, the first network transport protocol, in order to control the general transmission protocol between layer and agency service layer namely The key-course of different controlled devices controls message using the identical network transmission protocol to agency service layer sending device.In this hair In a bright embodiment, the first network transport protocol is Hyper text transfer(HyperText Transfer Protocol, HTTP)Agreement.Certainly, the first network transport protocol is also using other network transmission protocols, those skilled in the art It can be configured, not be limited herein according to the actual needs.
Step S202:The equipment control message is received using the agency service layer, the equipment received is controlled and is reported Text is converted to the remote command of corresponding second network transmission protocol and is sent to corresponding controlled device, so that described controlled Equipment performs corresponding operation.
In specific implementation, the agency service layer is in the equipment control for receiving key-course transmission corresponding with controlled device During message processed, the mark of controlled device and the information of corresponding equipment control instruction can be therefrom parsed, and is based on parsing The mark of controlled device and the information of corresponding equipment control instruction inquire from preset configuration file and obtain corresponding second The remote command of the network transmission protocol.In other words, be provided with what is supported with each controlled device in the configuration file in advance The remote command of network transmission protocol form.When the mark and equipment control instruction for being resolved to corresponding controlled device, agency Service layer can be matched by being resolved to the mark of corresponding controlled device and equipment control instruction from the configuration file The remote command of corresponding second network transmission protocol.
Wherein, the network transmission protocol that second network transmission protocol is supported by corresponding controlled device, different is controlled Corresponding second network transmission protocol of equipment can be the same or different.In an embodiment of the present invention, second network Transport protocol is transmission control protocol(Transmission Control Protocol, TCP).
It adopts in manner just described, when needing to carry out remote control to equipment, the first net is generated using corresponding key-course The equipment control message of network transport protocol is simultaneously sent to preset agency service layer, is set using described in agency service layer reception The equipment received control message is converted to remote command and the transmission of corresponding second network transmission protocol by standby control message To corresponding controlled device, so that the controlled device performs corresponding operation, because using Agent layer generation and different quilts The control corresponding network transmission protocol of equipment controls controlled device, can improve the flexibility of equipment control, promotes user Usage experience.
The embodiment of the present invention additionally provides a kind of computer readable storage medium, is stored thereon with computer instruction, described The step of apparatus control method is performed when computer instruction is run.Wherein, the step of apparatus control method please Referring to the description of preceding sections, repeat no more.
The embodiment of the present invention additionally provides a kind of terminal, and including memory and processor, energy is stored on the memory Enough computer instructions run on the processor, the processor perform the equipment when running the computer instruction The step of control method.Wherein, the step of apparatus control method refers to the description of preceding sections, repeats no more.
Using the said program in the embodiment of the present invention, when needing to carry out remote control to equipment, using corresponding control The equipment control message of preparative layer generation first network transport protocol is simultaneously sent to preset agency service layer, is taken using the agency The layer reception equipment of being engaged in controls message, and the equipment received control message is converted to corresponding second network transmission protocol Remote command is simultaneously sent to corresponding controlled device, so that the controlled device performs corresponding operation, because using Agent layer The generation network transmission protocol corresponding with different controlled devices controls controlled device, can improve the spirit of equipment control Activity promotes the usage experience of user.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in computer readable storage medium, and storage is situated between Matter can include:ROM, RAM, disk or CD etc..
The method and system of the embodiment of the present invention are had been described in detail above, the present invention is not limited thereto.Any Field technology personnel without departing from the spirit and scope of the present invention, can make various changes or modifications, therefore the guarantor of the present invention Shield range should be subject to claim limited range.

Claims (10)

1. a kind of apparatus control method, which is characterized in that including:
When needing to carry out remote control to equipment, controlled using the equipment of corresponding key-course generation first network transport protocol Message is simultaneously sent to preset agency service layer;
The equipment control message is received using the agency service layer, the equipment received control message is converted to corresponding The remote command of second network transmission protocol is simultaneously sent to corresponding controlled device, so that the controlled device performs accordingly Operation.
2. apparatus control method according to claim 1, which is characterized in that described to be converted to equipment control message Corresponding Remote Device Control order is simultaneously sent to corresponding equipment, including:
The information of corresponding controlled device and equipment control instruction is parsed from received equipment control message;
Information based on the obtained controlled device of parsing and equipment control instruction obtains corresponding the from preset configuration file The remote command of two network transmission protocols, and it is sent to the designated port of the controlled device.
3. apparatus control method according to claim 1, which is characterized in that the first network transport protocol is assisted for HTTP View.
4. apparatus control method according to claim 3, which is characterized in that second network transmission protocol is assisted for TCP View.
5. a kind of apparatus control system, which is characterized in that including multiple key-courses and agency take correspondingly with controlled device Business layer;
The key-course, suitable for when needing to carry out remote control to equipment, being passed using corresponding key-course generation first network The equipment control message of defeated agreement is simultaneously sent to preset agency service layer;
The equipment received control message suitable for receiving the equipment control message, is converted to correspondence by the agency service layer Second network transmission protocol remote command and be sent to corresponding controlled device so that the controlled device perform it is corresponding Operation.
6. apparatus control system according to claim 5, which is characterized in that the agency service layer, suitable for from being received To equipment control message in parse the information of corresponding controlled device and equipment control instruction;It is obtained based on parsing controlled The information of equipment and equipment control instruction obtains the long-range life of corresponding second network transmission protocol from preset configuration file It enables, and is sent to the designated port of the controlled device.
7. apparatus control system according to claim 5, which is characterized in that the first network transport protocol is assisted for HTTP View.
8. apparatus control system according to claim 7, which is characterized in that second network transmission protocol is assisted for TCP View.
9. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the computer instruction fortune Perform claim requires the step of 1 to 4 any one of them apparatus control method during row.
10. a kind of terminal, which is characterized in that including memory and processor, being stored on the memory can be at the place The computer instruction run on reason device, any one of perform claim requirement 1 to 4 institute when the processor runs the computer instruction The step of apparatus control method stated.
CN201711371913.4A 2017-12-19 2017-12-19 Apparatus control method and device, computer readable storage medium, terminal Pending CN108173912A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711371913.4A CN108173912A (en) 2017-12-19 2017-12-19 Apparatus control method and device, computer readable storage medium, terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711371913.4A CN108173912A (en) 2017-12-19 2017-12-19 Apparatus control method and device, computer readable storage medium, terminal

Publications (1)

Publication Number Publication Date
CN108173912A true CN108173912A (en) 2018-06-15

Family

ID=62522756

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711371913.4A Pending CN108173912A (en) 2017-12-19 2017-12-19 Apparatus control method and device, computer readable storage medium, terminal

Country Status (1)

Country Link
CN (1) CN108173912A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127671A (en) * 2007-09-29 2008-02-20 北京邮电大学 A method and system for remote control of home electrical appliance devices
CN101667926A (en) * 2008-09-02 2010-03-10 中兴通讯股份有限公司 Remote management method and remote management system of terminal equipment and agent equipment
CN102064985A (en) * 2010-11-24 2011-05-18 深圳市同洲电子股份有限公司 Digital and intelligent remote control system and method for household electrical appliances on basis of interactive TV application
WO2013178099A1 (en) * 2012-08-29 2013-12-05 中兴通讯股份有限公司 System, method, client and service centre for realizing remote desktop
CN103795757A (en) * 2012-10-30 2014-05-14 三星电子(中国)研发中心 Method for remotely controlling local area network equipment, client and server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127671A (en) * 2007-09-29 2008-02-20 北京邮电大学 A method and system for remote control of home electrical appliance devices
CN101667926A (en) * 2008-09-02 2010-03-10 中兴通讯股份有限公司 Remote management method and remote management system of terminal equipment and agent equipment
CN102064985A (en) * 2010-11-24 2011-05-18 深圳市同洲电子股份有限公司 Digital and intelligent remote control system and method for household electrical appliances on basis of interactive TV application
WO2013178099A1 (en) * 2012-08-29 2013-12-05 中兴通讯股份有限公司 System, method, client and service centre for realizing remote desktop
CN103795757A (en) * 2012-10-30 2014-05-14 三星电子(中国)研发中心 Method for remotely controlling local area network equipment, client and server

Similar Documents

Publication Publication Date Title
CN106464535B (en) Method and system for the managerial ability in virtualization network
CN104394191A (en) Method, control terminal, and system for remotely controlling mobile terminal
CN104253856A (en) Scalable Web Real-Time Communications (WebRTC) media engines, and related method and system
CN106797325A (en) Generic service NFV layouts and management system and method for aggregated service
CN107608647A (en) One kind throws screen method, system, server and computer-readable recording medium
CN105122858A (en) Handling downlink semi-persistent scheduling retransmission in wireless networks
CN103079286A (en) Method and device for intelligently disconnecting wifi (wireless fidelity) hot points
CN105050202A (en) Method of establishing communication session using active connection of mobile terminal to relay server
CN104092760A (en) System and method for cloud terminal multicast redirection
CN107247629A (en) Cloud computing system and cloud computing method and device for controlling server
PH12019502748A1 (en) Wireless communication method, network device, and terminal device
CN102419900A (en) Remote control realizing method and device of electrical equipment
CN106161642A (en) Network equipment long-distance management method, platform and system
CN103049244B (en) Method and device for transmitting operating instructions
CN102118397B (en) Teleconference communication method and system based on mobile phones
JP2015529422A (en) Smart home system based on call center and method for realizing the same
JP6898035B2 (en) Cross-carrier scheduling method and equipment
US20150156055A1 (en) Method, web server and system for remote control
JP2015521824A5 (en)
CN105530232A (en) Account login method and device
SG11201909799TA (en) Communication method, access network device and terminal device
CN103942134B (en) Method and system for viewing embedded device log
CN108173912A (en) Apparatus control method and device, computer readable storage medium, terminal
WO2020211684A1 (en) Message transmission method and related device
WO2015039626A1 (en) Method, system and device for data transmission and reception

Legal Events

Date Code Title Description
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

Application publication date: 20180615

RJ01 Rejection of invention patent application after publication