Terminal control method based on instant messaging mode and system
Technical field
The present invention relates to computer and Internet technology, relate in particular to internet instant communication association area.
Background technology
Instant messaging (Instant Messaging is called for short IM) is a real-time communication system, and transmission Word message, file, voice while allowing two people or many people to use network implementation exchange with video.Instant messaging is that a terminal connects the service toward instant messaging network.It is real-time that instant messaging is different from the talk that Email is it.
Common IM software comprises at present: micro-letter (WeChat),, simultaneously a lot of other internet platforms with social attribute have also been released App or the other forms of application software much with IM function, for example microblogging desktop client end or mobile phone/dull and stereotyped client can be carried out real-time communication with address list good friend, and we also all sum up in the point that the category of instant messaging these software.
Extensive use along with instant messaging, even if many new application based on communication platform are arisen at the historic moment, for example: publication number is " CN103297533A ", name is called the Chinese patent application of " a kind of method of utilizing micro-letter remote control domestic electrical equipment ", in this patent application, by following steps, realize the control of terminal to TV, the mobile client sending controling instruction of micro-letter client is installed; The long-range reception control command of control appliance of micro-letter client or micro-letter protocol component module is installed, and resolves control command by control command parsing module; Through the control command of resolving, be transferred to control command Executive Module, control command Executive Module is transmitted control signal and is controlled household electrical appliances operating state by wireless; The control signal information of while control command Executive Module is the long-range mobile device that micro-letter client is installed that feeds back to also.
But said method still exists many defects, for example said method depends on micro-telecommunications services device and resolves control command, and forwards control command, therefore needs micro-letter client open portion port, to realize control appliance, docks with the instruction of household electrical appliances.This scheme has all been given micro-telecommunications services device all work, has both depended on the opening status of micro-telecommunications services device, again micro-telecommunications services device has been formed to larger load; And different household appliances manufacturers is different to the control of different instructions, this controls with regard to having caused micro-telecommunications services device to carry out personalized parsing for different household appliances manufacturers, is unfavorable for the popularization of little businessman.In the nonopen situation of current micro-telecommunications services device, cause the problems such as household appliances manufacturer cannot effectively promote.Meanwhile, this scheme does not possess interaction function deep between household electrical appliances end and mobile client.
Summary of the invention
The object of the invention is to, provide a kind of less to Platform Server degree of dependence, do not need the extra open interface of platform, be convenient to go deep into the terminal control method based on instant messaging mode of interaction function between configurating terminal, control information transmission method based on instant messaging mode, with and corresponding system.
For achieving the above object, the invention provides a kind of terminal control method based on instant messaging mode, comprise the following steps:
Control terminal sends the first control information by instant messaging mode to instant communication server, and described the first control information comprises command information, address of service server information and controlled terminal address information;
Instant communication server receives the first control information, and according to address of service server information wherein, by instant messaging mode, to service server, sends the second control information, and described the second control information comprises command information and controlled terminal address information;
Service server receives the second control information, resolves command information wherein, and according to controlled terminal address information wherein, controlled terminal is carried out to command adapted thereto.
Wherein, described command information comprises: to controlled terminal, forward the action command comprising in command information;
Service server receives the second control information, resolves command information wherein, and according to controlled terminal address information wherein, forwards the action command comprising in command information to controlled terminal;
Controlled terminal receives action command, and the instruction that performs an action.
Wherein, described action command is for asking playing stream media, opening webpage or play local multimedia file;
Controlled terminal receives action command, plays corresponding Streaming Media, opens corresponding webpage or plays corresponding local multimedia file.
Wherein, described controlled terminal is intelligent terminal.
Wherein, described controlled terminal is TV set-top box or TV, and described action command is start, shutdown, switching channels or adjusts terminal setting;
Controlled terminal receives action command, and the instruction that performs an action.
Wherein, described command information is to push Streaming Media or operational order to controlled terminal;
Service server receives the second control information, resolves command information wherein, and according to controlled terminal address information wherein, to controlled terminal, pushes corresponding Streaming Media or operational order;
Controlled terminal is play the Streaming Media pushing or is carried out corresponding operating instruction.
Wherein, described method is further comprising the steps of:
Described service server is resolved the command information in the second control information, the Streaming Media comprising in recording instruction information or the relevant information of webpage;
Service server carries out statistical analysis to the Streaming Media of record or the relevant information of webpage, and in service server database, screen relevant Streaming Media or the webpage of historical record of the Streaming Media of playing to controlled terminal or the webpage of opening, and it is pushed to control terminal by instant messaging mode.
Wherein, described controlled terminal is home appliance control terminal, described home appliance control terminal and at least one household electrical appliance control connection, and described command information comprises: to controlled terminal, forward the household appliance control instruction comprising in command information;
Service server receives the second control information, resolves command information wherein, and according to controlled terminal address information wherein, forwards the household appliance control instruction comprising in command information to controlled terminal;
Controlled terminal receives household appliance control instruction, and carries out corresponding household appliance control instruction, and the household electrical appliance that are attached thereto are controlled.
The present invention also provides a kind of control information transmission method based on instant messaging mode, comprises the following steps:
Service server is by instant messaging mode receiving control information, and described control information comprises command information and terminal address information;
Service server is resolved command information wherein, and according to controlled terminal address information wherein, controlled terminal is carried out to command adapted thereto.
Wherein, described command information comprises: to controlled terminal, forward the action command comprising in command information;
Service server receiving control information;
Resolve command information wherein, and according to controlled terminal address information wherein, to controlled terminal, forward the action command comprising in command information.
Wherein, described action command is for asking playing stream media, opening webpage or play local multimedia file.
Wherein, described action command is start, shutdown, switching channels or adjusts controlled terminal setting.
Wherein, described command information is to push Streaming Media or operational order to controlled terminal;
Service server receiving control information, resolves command information wherein, and according to controlled terminal address information wherein, to controlled terminal, pushes corresponding Streaming Media or operational order.
Wherein, described method is further comprising the steps of:
Described service server is resolved the command information in control information, the Streaming Media comprising in recording instruction information or the relevant information of webpage;
Service server carries out statistical analysis to the Streaming Media of record or the relevant information of webpage, and in service server database, screen relevant Streaming Media or the webpage of historical record of the Streaming Media of playing to controlled terminal or the webpage of opening, and it is pushed to the control terminal sending control information by instant messaging mode.
Wherein, described controlled terminal is home appliance control terminal, described home appliance control terminal and at least one household electrical appliance control connection, and described command information comprises: to controlled terminal, forward the household appliance control instruction comprising in command information;
Service server receiving control information, resolves command information wherein, and according to controlled terminal address information wherein, forwards the household appliance control instruction comprising in command information to controlled terminal.
Wherein, described method is in step: control terminal sends to instant communication server before the first control information by instant messaging mode, also comprises step
By the induction installation on control terminal, the address information carrier of induction controlled terminal, address information the storage of obtaining controlled terminal.
Wherein, induction installation on described control terminal is optical image sensor, radio frequency sensor, infrared sensor, wifi transducer or 2.4G receiver, and the address information carrier of described controlled terminal is bar code, Quick Response Code, radiofrequency signal, infrared signal, wifi signal or 2.4G signal.
Corresponding, the invention provides a kind of instant messaging mode control system, comprise control terminal, controlled terminal, instant communication server, service server;
Described control terminal is connected with instant communication server communication, and described instant communication server is connected with service server communication, and described service server is connected with controlled terminal communication;
Described control terminal is for sending the first control information by instant messaging mode to instant communication server, and described the first control information comprises command information, address of service server information and controlled terminal address information;
Instant communication server is used for receiving the first control information, and according to address of service server information wherein, by instant messaging mode, to service server, sends the second control information, and described the second control information comprises command information and controlled terminal address information;
Service server is used for receiving the second control information, resolves command information wherein, and according to controlled terminal address information wherein, controlled terminal is carried out to command adapted thereto.
Wherein, described command information comprises: to controlled terminal, forward the action command comprising in command information;
Service server is used for receiving the second control information, resolves command information wherein, and according to controlled terminal address information wherein, forwards the action command comprising in command information to controlled terminal;
Controlled terminal is used for receiving action command, and the instruction that performs an action.
Wherein, described action command is for asking playing stream media, opening webpage or play local multimedia file;
Controlled terminal is used for receiving action command, plays corresponding Streaming Media, opens corresponding webpage or plays corresponding local multimedia file.
Wherein, described controlled terminal is TV set-top box or TV, and described action command is start, shutdown, switching channels or adjusts terminal setting;
Controlled terminal is used for receiving action command, and the instruction that performs an action.
Wherein, described command information is to push Streaming Media or operational order to controlled terminal;
Service server is used for receiving the second control information, resolves command information wherein, and according to controlled terminal address information wherein, to controlled terminal, pushes corresponding Streaming Media or operational order;
Controlled terminal is for playing pushed Streaming Media or carrying out corresponding operating instruction.
Wherein, described method is further comprising the steps of:
Described service server is resolved the command information in the second control information, the Streaming Media comprising in recording instruction information or the relevant information of webpage;
Service server is for carrying out statistical analysis to the Streaming Media of record or the relevant information of webpage, and in service server database, screen relevant Streaming Media or the webpage of historical record of the Streaming Media of playing to controlled terminal or the webpage of opening, and it is pushed to control terminal by instant messaging mode.
Wherein, described instant messaging mode control system also comprises the household electrical appliance of at least one, and described controlled terminal is home appliance control terminal, and described household electrical appliance are connected with controlled terminal communication;
Described command information comprises: to controlled terminal, forward the household appliance control instruction comprising in command information;
Service server is used for receiving the second control information, resolves command information wherein, and according to controlled terminal address information wherein, forwards the household appliance control instruction comprising in command information to controlled terminal;
Controlled terminal is used for receiving household appliance control instruction, and carries out corresponding household appliance control instruction, and the household electrical appliance that are attached thereto are controlled.
Wherein, described control terminal comprises induction installation and storage device, and described induction installation is for responding to the address information carrier of controlled terminal, the address information of described memory device stores controlled terminal.
Wherein, described induction installation is optical image sensor, radio frequency sensor, infrared sensor, wifi transducer or 2.4G receiver.
With respect to prior art, control end of the present invention---connection and the information interaction mode of instant communication server---service server---controlled end, take full advantage of the huge user group of existing instant messaging mode platform, avoided the repeated construction of the Internet, by existing platform, access service server, then be connected to each terminal, realize the control interactive function between terminal, and in the solution of the present invention, mutual between instant communication server not responsible concrete and controlled end, therefore alleviated the load of instant communication server, under the appointed condition of existing the Internet, realized control between terminal and terminal and instant communicating system has not been caused to excessive load and pressure mutual time.And instant communication server only plays the effect (instruction is packed, sends, received in the mode of instant communication information) that forwards instant communication information in this programme, therefore without relying on the open the corresponding interface of communicator.
Accompanying drawing explanation
Fig. 1 is instant messaging mode control system structural representation described in the specific embodiment of the invention;
Fig. 2 is the module architectures schematic diagram of control terminal in instant messaging mode control system structure described in the specific embodiment of the invention;
Fig. 3 is the terminal control method schematic flow sheet one based on instant messaging mode shown in the specific embodiment of the invention;
Fig. 4 is the terminal control method schematic flow sheet two based on instant messaging mode shown in the specific embodiment of the invention.
Embodiment
By describing technology contents of the present invention, structural feature in detail, being realized object and effect, below in conjunction with execution mode and coordinate accompanying drawing to be explained in detail.
Refer to Fig. 1 and Fig. 2, the present embodiment provides a kind of instant messaging mode control system, comprises control terminal, controlled terminal, instant communication server, service server.
The present embodiment is usingd micro-letter as instant messaging mode, and certainly, the various instant messaging modes such as QQ, Windows Live Messenger, Skype, ICQ, Ali Wang Wang can be applied to the present invention.
System as shown in Figure 1, control terminal comprises the first control terminal panel computer 11, the second control terminal smart mobile phone 12, the 3rd control terminal PC13, the 4th control terminal notebook computer 14.In the present embodiment, control terminal includes but not limited to: smart mobile phone, panel computer, Desktop PC, notebook computer, PDA, intelligent watch, Google Glass ... etc. there is instant communication function or MSN be installed or the smart machine of app.
Described control terminal is connected with instant communication server communication, and described instant communication server is connected with service server communication, and described service server is connected with controlled terminal communication.As shown in the figure in embodiment, for example service server 31, service server 32, service server 33 are connected by internet with instant communication server respectively can many service servers, service server 31 is connected with TV 31, TV 32, service server 33 is connected with home appliance control terminal 43, and home appliance control terminal 43 is connected with the household electrical appliance such as refrigerator 51, TV 52, phone 53.
In the present embodiment, communication connection means the both sides of connection or in many ways can send-receive the mode of information, connects.The mode that communication connects can be passed through the modes such as cable network, optical fiber, GPRS, CDMA, 3G wireless telecommunications (TDCDMA, WCDMA, CDMA2000 etc.), 4G wireless telecommunications.
As shown in Figure 2, on described control terminal, there is induction installation, such as photographing module 1101 optical image sensors such as grade, or radio frequency sensor, infrared sensor, wifi transducer or 2.4G receiver, be used for receiving corresponding information, control terminal also has processor 1103, can process the information that induction installation receives, and resolve, control terminal also has memory 1102 simultaneously, can store corresponding information, the address information of the controlled terminal obtaining such as parsing etc., memory can be that RAM can be also ROM, or HDD, or the memory that the multiple storage medium with buffer memory or longer-term storage function such as SSD forms.Control terminal has instant messaging module 1104, for carrying out information interaction with instant communication server 20 by instant messaging mode.
On described controlled terminal, there is or sends the information carrier of controlled address relevant information, for example at controlled terminal shell, be pasted with bar code or Quick Response Code, or at controlled terminal, show the corresponding bar code of screen display or Quick Response Code, radio circuit that also can be by controlled terminal, wifi module, infrared module, 2.4G module etc. send out these information carriers with controlled module address information such as corresponding radiofrequency signal, wifi signal, infrared signal, 2.4G signal.The address information system of described controlled terminal is for determining the identity information of controlled terminal, the identity ID of controlled terminal for example, the software registration information of moving on the random number that controlled terminal generates according to this control connection, the IP address of controlled terminal, controlled terminal or software registrant ID, account information etc.
Described control terminal is for sending the first control information by instant messaging mode to instant communication server, and described the first control information comprises command information, address of service server information and controlled terminal address information;
Instant communication server is used for receiving the first control information, and according to address of service server information wherein, by instant messaging mode, to service server, sends the second control information, and described the second control information comprises command information and controlled terminal address information;
Service server is used for receiving the second control information, resolves command information wherein, and according to controlled terminal address information wherein, controlled terminal is carried out to command adapted thereto.
Described controlled terminal can be household electrical appliance or household digital product, such as TV, Set Top Box, home appliance control terminal, refrigerator, air-conditioning, washing machine, lighting, electric cooker, household cooker, dishwasher, disinfection cabinet, microwave oven, water heater etc.In certain embodiments, controlled terminal is home appliance control terminal 43, and household electrical appliance terminal is connected with one or more household electrical appliance communication, example refrigerator 51 as shown in Figure 1, TV 52, phone 53 etc.
Just the terminal control method based on instant messaging mode carries out embodiment explanation below, to allow reader better understand the present invention.
In the present embodiment, we control a TV that is connected into the Internet by micro-letter with control terminal, we use the panel computer shown in Fig. 1 as the first control terminal 11, micro-letter client is installed on panel computer, TV is as the first controlled terminal 41, described service server provides Online Video streaming media playing, and the corresponding service provider of service server has public account in micro-letter platform registration.
Next, we show to reader, and how user uses panel computer, by public's account of micro-letter platform, and the video frequency program on program request the Internet on TV.
As shown in Figure 3, control procedure comprises the steps:
S301 control terminal, it is the Quick Response Code on photographing module 1101 televising 41 shells on panel computer 11, the ID that this Quick Response Code has comprised this TV, can be used as the address information of TV, control terminal is resolved this Quick Response Code, and record corresponding controlled terminal, it is the address information of TV 41, in the present embodiment, this address information can be the id information of TV, and user on the interactive interface of the micro-letter client of panel computer 11 with public's account dialog interface on, click the streaming media video of wishing broadcasting, it is selected that control terminal detects in program request interface a streaming media video file like this, 41 pairs of these videos of request TV are play.
S302 control terminal is that panel computer 11 sends the first control information by micro-letter platform to micro-telecommunications services device 20, the first control information comprises command information, address of service server information and controlled terminal address information, address of service server information can be associated with public's account, controlled terminal address information is used the TV ID relevant information that scans Quick Response Code solution new record in step S301, command information comprises: to controlled terminal, forward the action command comprising in command information, action command is the Streaming Media of request broadcasting respective links, in certain embodiments, also can be to open webpage or play local multimedia file.
S303 instant communication server receives the first control information, and according to address of service server information wherein, in concrete the present embodiment, according to public's account, be sent to public's account place service server 31, by micro-letter, to service server 31, send the second control information, described the second control information comprises command information and controlled terminal address information.
In certain embodiments, the form of the command information in the second control information and the address information of controlled terminal can with the first control information in command information and the address information form of controlled terminal identical, also can be different, for example instant communication server can in the first control information relevant information carry out after secret, form the second control information, certainly, encryption direct does not switch through and sends out yet.
S304 service server 31 receives the second control informations, resolves command information wherein, and according to controlled terminal address information wherein, to controlled terminal, is that TV 41 forwards the Streaming Media that action command comprising in command informations plays respective links.
S305 TV 41 receives action command, according to the link in action command or relevant information, asks video corresponding to corresponding video server transmission action command, and plays on TV 41.In different embodiment, video server and service server can be same servers, can be also different servers.If different servers, can effectively reduce the load of service server, make full use of third party's resource.
As shown in Figure 4, in another embodiment, command information is to TV pushing video signal stream, specifically comprises the steps:
S401 control terminal, it is the Quick Response Code on photographing module televising 41 shells on panel computer 11, the ID that this Quick Response Code has comprised this TV, can be used as the address information of TV, control terminal is resolved this Quick Response Code, and record corresponding controlled terminal, it is the address information of TV 41, and user on the interactive interface of the micro-letter client of panel computer 11 with public's account dialog interface on, click the streaming media video of wishing broadcasting, it is selected that control terminal detects in program request interface a streaming media video file like this, requested service server 31 pushes and plays this video to TV 41.
S402 control terminal is that panel computer 11 sends the first control information by micro-letter platform to micro-telecommunications services device 20, the first control information comprises command information, address of service server information and controlled terminal address information, address of service server information can be associated with public's account, controlled terminal address information is used the TV ID relevant information that scans Quick Response Code solution new record in step S401, command information comprises: service server 31 pushes corresponding video stream media signal to TV 41, in certain embodiments, also can be to push other data, for example push web data, voice data, file data etc.
S403 instant communication server receives the first control information, and according to address of service server information wherein, in concrete the present embodiment, according to public's account, be sent to public's account place service server 31, by micro-letter, to service server 31, send the second control information, described the second control information comprises command information and controlled terminal address information.
S404 service server 31 receives the second control informations, resolves command information wherein, and according to controlled terminal address information wherein, to controlled terminal, is TV 41 pushing video information flows, is about to video information and is directly delivered to TV 41.
S405 TV 41 is play corresponding video.
The present embodiment and attached difference embodiment illustrated in fig. 3 are, attached action command embodiment illustrated in fig. 3 is to allow TV request server playing stream media, video server response, and send stream medium data to TV and play, and the action command of the present embodiment is directly please send corresponding stream medium data to TV by video server, namely do not need through TV request, server response, and then send stream medium data to TV.
In certain embodiments, flow process described in Fig. 4 is changed, command information is to the instruction of controlled terminal push operation, like this, service server is sent to controlled terminal by operational order, such as 31 pairs of controlled terminal TVs of service server 41, send the operational orders such as start, shutdown, channel switching, signal switching, volume adjusting, brightness regulation, TV 41 is carried out command adapted thereto.
In further embodiments, for more convenient user same controlled terminal of remote control on different control terminals, service server is resolved the command information in the second control information, the Streaming Media comprising in recording instruction information or the relevant information of webpage;
Then service server carries out statistical analysis to the Streaming Media of record or the relevant information of webpage, and in service server database, screen relevant Streaming Media or the webpage of historical record of the Streaming Media of playing to controlled terminal or the webpage of opening, and it is pushed to control terminal by instant messaging mode.This has implemented the processing through excessive data, by instant messaging, control terminal is carried out to personalized Push Service.
For example, in system shown in Figure 1, household A watches TV programme in parlor together with household B, household A is by dull and stereotyped RTV remote television 41, two people have watched series video program X1, X2, X3, X4 together, service server is resolved command information, the Streaming Media relevant information comprising in recording instruction information;
Subsequently, household A is absent from the scene, household B is by same TV 41 of its smart mobile phone 12 remote controls, now service server carries out statistical analysis to the Streaming Media of record or the relevant information of webpage, and the relevant Streaming Media of the historical record of the Streaming Media that screening is play to TV 41 in service server database.The sequel X5 of video frequency program X4 for example, pushes to the smart mobile phone 12 of household B.
Therefore this embodiment has realized, the program push based on controlled terminal play history record, and go for different control terminals.
In other embodiment, described service server is resolved the command information in the second control information, the Streaming Media comprising in recording instruction information or the relevant information of webpage;
Service server carries out statistical analysis to the Streaming Media of record or the relevant information of webpage, and relevant Streaming Media or the webpage of the historical record of the webpage that screening is opened to Streaming Media or the request of control terminal request broadcasting in service server database, and it is pushed to control terminal by instant messaging mode.
This embodiment is different from above-described embodiment, and it has solved same control terminal when controlling different controlled terminal, propelling movement and the continuity of its play history record.Corresponding to the embodiment shown in accompanying drawing 1, for example household A has appreciated after video frequency program X4 in parlor, get back to bedroom, by its dull and stereotyped RTV remote television 42, now, service server can push X5 to its panel computer 11, and then household A pushes to the icon of the video frequency program X5 on its panel computer 11 interactive interfaces by click, can realize displaying video programs X5 on TV 42.
In certain embodiments, described controlled terminal is home appliance control terminal, described home appliance control terminal and at least one household electrical appliance control connection, described command information comprises: to controlled terminal, forward the household appliance control instruction comprising in command information, household appliance control instruction for example, open, close certain household electrical appliance, regulate refrigerator, air conditioner temperature, domestic cookers timing etc. is set;
Service server receives the second control information, resolves command information wherein, and according to controlled terminal address information wherein, forwards the household appliance control instruction comprising in command information to controlled terminal;
Controlled terminal receives household appliance control instruction, and carries out corresponding household appliance control instruction, and the household electrical appliance that are attached thereto are controlled.
Like this, embodiment, by instant messaging mode, has realized Smart Home, and a cover system and network need not be installed separately, by existing communication platform, can realize.
The foregoing is only embodiments of the invention; not thereby limit the scope of the claims of the present invention; every equivalent structure or conversion of equivalent flow process that utilizes specification of the present invention and accompanying drawing content to do; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.