Instant messaging control broadband user holds the method and apparatus of equipmentTechnical field
The present invention relates to Internet technical field, particularly relate to the method and apparatus that a kind of instant messaging control broadband user holds equipment.
Background technology
Along with the development of Internet technology, immediate communication tool (IM, Instant Messaging) program has obtained using widely.
Present instant messaging product have little letter, Fetion, the wing merely, QQ etc., major function has good friend's chat, group chat, transmission image or video information, transmission file etc., people's contact has been promoted in these application, has made things convenient for people's communication.More universal along with what use, instant messaging has developed into one of means of communication the most commonly used.
On the other hand, continuous development along with related industries such as Internet of Things, Smart Home is used also more and more universal, technology such as remote control home electrical appliance, remote control of domestic watch-dog are constantly developed and perfect, these controls all are based on the mutual of people and thing, people and equipment, generally all will open special-purpose webpage or application program in the use, though operate fairly simple and directly perceived, but need open, move and login special procedure, make troubles to use.If this function can be introduced immediate communication tool, become the function that instant messaging is used, will bring different experience and impression to the user.
Intelligent home device in the family generally is to insert the Internet from consumer wideband at present, but the broadband provides dynamic IP addressing, can't directly carry out Long-distance Control by the method for internet access, if the instant messaging application program is controlled the equipment in the broadband, just must solve the problem of obtaining in real time of broadband IP dynamic address.
Summary of the invention
Technical problem to be solved by this invention provides the method and apparatus that a kind of instant messaging control broadband user holds equipment, use the mode of anthropomorphic session, the client of realization instant messaging is carried out order control and state feedback to broadband user's end equipment, from client controlled device is registered and settings such as Wire Parameters, man-machine language customization, solve broadband dynamic IP addressing problem simultaneously, realize the real-time control that the broadband user is held equipment.
For achieving the above object, technical scheme of the present invention is as follows:
The method that a kind of instant messaging control broadband user holds equipment, this method comprises:
Facility registration: arranging in the interface of instant communication client, set up broadband user's facility registration entrance, enter this entrance, the user can search for by the input equipment recognition coding, instant communication server will be inquired about database, if the transducing signal transceiver module that this moment, corresponding broadband user's end equipment linked to each other is online, can finds recognition of devices codes match information in the database, and the result be returned and is presented at the Query Result interface of client;
Parameter arranges: after searching for successfully, enter the interface that arranges of bound device and Man Machine Language table customization.At the bound device interface, can bind display Name, the network port, described display Name refers to the device name that instant communication client is shown, the described network port refers to the serve port of binding when home router arranges virtual server; At Man Machine Language table customization interface, can edit and arrange the people to the man-machine language table of equipment session, also can edit and arrange equipment to the man-machine statement of conference, the difference of the two is determined by class formative, wherein the statement with conference is to like voluntarily according to user's oneself language to arrange, and the statement of talking about with chance is the machine language statement that provides by in the transducing signal transceiver module specification.After more than setting is finished, the result is stored in the database;
User login: through above facility registration and parameter setting, when the user when client is logined, return the broadband user by instant communication server and hold equipment display Name information, on the instant messaging interface after login successfully, list the display Name of equipment and tabulate;
The user sends session: the user clicks the equipment display Name on the client, open chat interface, can send the control command to ustomer premises access equipment with the form of dialogue, the statement of this dialogue is the statement of Man Machine Language table customization, instant communication server is translated as machine language with this dialogue, and to hold IP address and network terminal slogan according to the broadband user who obtains in the database be destination address, and machine language is sent to corresponding ustomer premises access equipment, finishes the control to equipment.In the above-mentioned database broadband user to hold the IP address be the consumer wideband dynamic IP addressing, the network terminal slogan is the network terminal slogan of binding when parameter arranges;
The user receives session: after ustomer premises access equipment is received control signal, carry out by the control signal requirement, and the state after carrying out fed back, this feedback signal is through forwarding and the transmission of transducing signal transceiver module, signal reception server, deposit in the database, and instant communication server is judged the information that deposits in, upgrade if be judged as, then take out this information, according to the Man Machine Language table information is translated, the session statement after the translation conversion is back to user client interface.
For instant communication server can be communicated with broadband user's end equipment, the transducing signal transceiver module need be set between ustomer premises access equipment and home router, this module receives and transmits the control signal that instant communication server is sent out, receive and transmit the feedback signal of ustomer premises access equipment, and can regularly send the IP datagram signal to the higher level by default, the signal reception server extracts information such as source IP address and recognition of devices coding after receiving signal, and this information is deposited in the database.Described recognition of devices coded message, be one group of coding that arranges in advance, in order to distinguishing different transducing signal transceiver modules, in the packing process of the IP datagram of transducing signal transceiver module, insert this coding, information needed when this coding also will offer the user as facility registration.When the transducing signal transceiver module is online, can receive and deposit the information such as source IP address, recognition of devices coding of this module timed sending in the database, so that the real time access demand of instant communication server to be provided.
In order to accomplish that instant communication server is to the control of transducing signal transceiver module, the user needs home router is arranged, need the virtual server function of open router, this machine IP address and the serve port of transducing signal transceiver module are bound in virtual server arranges, and when this port numbers offered the user and is used for the client parameter and arranges to the setting of network terminal slogan.
A kind of instant messaging control broadband user holds the device of equipment, and this device comprises:
Instant communication client carries out the registration that the broadband user holds equipment according to the recognition of devices coding; Hold equipment and the network port to bind the broadband user, the display Name of institute's device registration on the client is set; Control statement information according to the equipment of transducing signal receiver module provides arranges people-machine and machine-people's language table of comparisons respectively, and class formative is set as the difference of the two; Open the equipment session window, conversational language and the ustomer premises access equipment set with the MML man-machine language table of comparisons engage in the dialogue, thereby equipment is controlled; When ustomer premises access equipment has feedback information, show the feeding back conversation information after translating;
Instant communication server is used for accepting the registration that instant communication client is held equipment to the broadband user, search equipment recognition coding from database, and the user is stored in the database in information such as the set display Name of client, the network ports; Be used for accepting instant communication client the Man Machine Language table is arranged, and configuration information is stored in the database; Be used for accepting the session statement that instant communication client submits to controls with broadband user's end equipment, the language table of comparisons in this statement and the database is mated, and the machine statement after will translating send to the transducing signal transceiver module; When ustomer premises access equipment needs inverse signal, the transducing signal transceiver module sends to the signal reception server with the signal that feeds back, and be stored in the database, instant communication server is obtained up-to-date information from database, this information and the language table of comparisons are mated, and will translate the session interface that the back statement returns to instant communication client and show;
The transducing signal transceiver module, this module is made up of a single-chip microcomputer that the ether protocol stack is installed, mainly formed by Ethernet interface unit, datagram signal processing unit and user device interface unit: the Ethernet interface unit, link to each other with home router by the RJ45 interface, for the treatment of the agreement cooperating of network bottom layer.The datagram signal processing unit comprises three functions: (a) when instant communication server is sent control signal, this unit sends by the user device interface unit signal that receives to ustomer premises access equipment; (b) after ustomer premises access equipment is accepted control signal, state information after changing is fed back to this unit, in this unit, packets of information such as state information and source IP address, purpose IP address, recognition of devices coding are dressed up IP datagram, be sent to the signal reception server; (c) by default, this unit can be regularly sends the IP datagram signal that information such as ustomer premises access equipment state and source IP address, purpose IP address, recognition of devices coding are formed to the signal reception server, and purpose is to make database obtain the broadband dynamic IP addressing at any time.User device interface unit, effect are the signal transmission between datagram signal processing unit and the ustomer premises access equipment, transmit control command and state information between the two, and protocol interfaces such as RS-232, SPI, I2C are provided, to make things convenient for the access of ustomer premises access equipment.In the above, the recognition of devices coding is one group of coding that is used for the different transducing signal transceiver modules of difference of setting in advance, and each transducing signal transceiver module is endowed unique encoding; More than the control signal described in (a) and (b) described in the machine language formed of state information must illustrate at this module declaration book with reference format, to provide the user to register and to use when controlled device is set; Equally, the recognition of devices coded message of this module also must illustrate at specification;
Home router, in order to realize that instant communication server sends order to the transducing signal transceiver module, need the home router that inserts wide-band terminal is arranged, open the virtual server function, source IP address, port numbers with the transducing signal transceiver module arrange in virtual server and bind, and this port numbers will offer when the user is used for the instant communication client bound device and use in addition;
The signal reception server, be specifically designed to and receive the datagram message that the transducing signal transceiver module sends, extract relevant information and deposit in the database in the datagram message of receiving, wherein relevant information comprises information such as source IP address, recognition of devices coding, ustomer premises access equipment state;
Database is used for depositing various information that the signal reception server sends, device port binding information that instant communication server is sent out, Man Machine Language table information etc., and for the inquiry of instant communication server to information is provided;
Equipment search and apparatus bound interface are set up arranging of instant communication client program in the bound device interface in the interface, hold the binding of the registration of equipment and display Name, the network port for the broadband user;
Manmachine command customization interface is set up arranging of client-side program in Man Machine Language table customization interface in the interface, be used for the setting of man-machine language, and distinguishes the people and machine still is machine and people's language with class formative.
As seen from the above technical solutions, method and apparatus of the present invention, telecommunication customer end communicates, exchanges with broadband user's end equipment with the form of personification dialogue in the time of can making the user in sight, at instant communication client broadband user's end equipment is registered and bound, man-machine language is edited and arranged, solved the problem of obtaining in real time of broadband dynamic IP addressing simultaneously.
Description of drawings
The portable terminal control broadband user that Fig. 1 provides for the embodiment of the invention holds the network topological diagram of apparatus;
The transducing signal transceiver module structure chart that Fig. 2 provides for the embodiment of the invention;
The portable terminal control broadband user that Fig. 3 provides for the embodiment of the invention holds the signal circulation figure of equipment;
Bound device in the mobile terminal client terminal program that Fig. 4 provides for the embodiment of the invention arranges the interface;
Man Machine Language table customization in the mobile terminal client terminal program that Fig. 5 provides for the embodiment of the invention arranges the interface;
The facility registration flow chart of the mobile terminal client terminal that Fig. 6 provides for the embodiment of the invention;
User and the equipment session flow chart of the mobile terminal client terminal that Fig. 7 provides for the embodiment of the invention.
Embodiment
Below in conjunction with the drawings and specific embodiments technical scheme of the present invention is described in further detail so that those skilled in the art the present invention may be better understood and can be implemented, but that institute gives an actual example is not as a limitation of the invention.
The portable terminal control broadband user that Fig. 1 provides for the embodiment of the invention holds the network topological diagram of apparatus.Compriseinstant communication client 101, insert the Internet 105 by portable terminal, provide ustomer premises access equipment registration, device parameter binding, man-machine language that the interface is set, user and controlled device session interface are provided;Instant communication server 102 contacts by the Internet 105 andinstant communication client 101,database 103, transducingsignal transceiver module 108, provides and handle functions such as man-machine conversation, apparatus bound, man-machine language customization;Database 103 provides the operational access of instant communication server and signal reception server;Signal reception server 104 is used for receiving the IP datagram information that transducingsignal transceiver module 108 is sent out, and the relevant information of extracting is deposited in thedatabase 103; Wide-band terminal 106 is used for being connected of the Internet 105 and home router;Home router 107, be used for to be connected in the transducingsignal transceiver module 108 access the Internets of Intranet, forinstant communication server 102 can be conducted interviews to transducingsignal transceiver module 108, need in router, arrange the virtual server function, IP address and the port numbers of transducingsignal transceiver module 108 are bound in this arranges, and this port numbers is offered the setting to network terminal slogan of user when the instant communication client bound device; Transducingsignal transceiver module 108, be used for receiving the control signal thatinstant communication server 102 is sent out, and this signal is transmitted to 109 pairs of controlled devices of ustomer premises access equipment controls, after ustomerpremises access equipment 109 is accepted control, new status signal is fed back, this module is transmitted tosignal reception server 104 with the IP datagram signal after the signal packing, and the IP datagram signal that this module can timed sending be formed by packings such as recognition of devices coding, status information of equipment under the situation of acquiescence is to signalreception server 104 in addition; Ustomerpremises access equipment 109, the household electrical appliance that the user need control, family's watch-dog etc., this equipment has the interface of standard transmission protocol, in order to match with the user device interface unit of sensing signal transmitting and receivingmodule 108.
The transducing signal transceiver module structure chart that Fig. 2 provides for the embodiment of the invention, this figure is the refinement to transducingsignal transceiver module 108 internal structures.This module is made of the single-chip microcomputer that comprises the Ethernet protocol stack, adopts udp protocol, and purpose is to utilize its simply efficient, connectionless characteristic, makes the communication of module reliable more and stable.This module comprises: (1)Ethernet interface unit 201, this unit one end links to each other withhome router 107 by ether interface, is responsible for the bottom communication of network.(2) the datagramsignal processing unit 202, and source IP address and port numbers can be set, and this address is Intranet IP address; Purpose IP address and port numbers can be set, and this address is IP address and the port numbers ofsignal reception server 104; The recognition of devices coding is set, and this coding is unique, be used for the user and add and device registration, and for the identification to controlled device.This unit has three function: a,instant communication server 102 is signaled, and transmits to userdevice interface unit 203; B, pack backwardsignal reception server 104 of the signal that receives from userdevice interface unit 203 is sent, this signal comprises status information of equipment, source IP address and port numbers, purpose IP address and port numbers, recognition of devices coding etc.; C, timed sending IP datagram, this datagram equally also comprises status information of equipment, source IP address and port numbers, purpose IP address and port numbers, recognition of devices coding etc., the timed sending purpose is in order to make thedatabase 103 broadband dynamic IP addressing information that can upgrade in time, instant communication user to be controlled in real time to equipment.(3) the userdevice interface unit 203, have interfaces such as RS-232, SPI, I2C, are responsible for and the communicating by letter of ustomer premises access equipment.This module is insertinghome router 107 and when online, will constantly send IP datagram to signalreception server 104,signal reception server 104 goes out information extractions such as source IP address, recognition of devices coding and deposits indatabase 103, makes the user can register and visit equipment at any time.What must illustrate in addition is to need machine code information such as devices illustrated recognition coding, control and state encoding in the specification of this module, to offer the user to registration and the setting of equipment.
The portable terminal control broadband user that Fig. 3 provides for the embodiment of the invention holds the signal circulation figure of equipment, and this figure has made explanation to the network topological diagram signal circulation of Fig. 1, is convenient to industry stakeholder's understanding.Instant communication client 101 is communicated by letter withinstant communication server 102, and the operation interface of facility registration, user's login, man-machine conversation, port binding, man-machine language customization etc. mainly is provided;Instant communication server 102 is communicated by letter withinstant communication client 101,database 103, transducingsignal transceiver module 108;Database 103 for the information that storageinstant communication server 102,signal reception server 104 are sent out, is accepted the inquiry ofinstant communication server 102;Signal reception server 104 receives the IP datagram information that transducingsignal transceiver module 108 is sent out, and the extraction relevant information is stored in thedatabase 103; Transducingsignal transceiver module 108 regularly to signalreception server 104 information that sends datagram, is accepted the control information thatinstant communication server 102 is sent out, and the feedback information after the control information effect is transmitted tosignal reception server 104.
Bound device in the mobile terminal client terminal program that Fig. 4 provides for the embodiment of the invention arranges the interface.This interface is when the user registers controlled device, by the search to recognition of devices coding, finds shown interface behind this equipment, and this interface display has the recognition of devices coding and needs display Name, the network port of binding to fill in the hurdle.Described display Name is for the implementor name that shows behind the logging on client, is equivalent to good friend's title; The described network port is the service port number of binding when in family's router one 07 virtual server being set; Described recognition of devices coding can find in transducingsignal transceiver module 108 specifications.
Man Machine Language table customization in the mobile terminal client terminal program that Fig. 5 provides for the embodiment of the invention arranges the interface, and this interface is positioned over arranging in the option of client-side program, is used for arranging the conversational language of people and controlled device.Wherein the hurdle filled in the session statement, fills in the mutual session statement of corresponding with the machine statement and people, and described machine statement can find in transducingsignal transceiver module 108 specifications, and described session statement can be filled in voluntarily according to user preferences; Class formative is to be the session statement that the session statement that sends of user or user receive for distinguishing this manmachine command.
The facility registration flow chart of the mobile terminal client terminal that Fig. 6 provides for the embodiment of theinvention.In step 601, the user opens the client device search interface, and this interface can lump together with the new user search interface junction of the interpolation of instantcommunication client.In step 602, the user input device recognition coding is searched for.Instep 603, by QueryDatabase 103 whether match information is arranged byinstant communication server 102, if any going to step 604, then do not go tostep 607 as having.Instep 604, enter bound device interface shown in Figure 4.Instep 605, display Name and the network port are arranged.Instep 606, confirm that the back arranges successful information in the client endinterface demonstration.In step 607, can't find information at the client end interface display device.
User and the equipment session flow chart of the mobile terminal client terminal that Fig. 7 provides for the embodiment of the invention.In step 701, the user starts the session interface at the controlled device icon of client click display Name representative.In step 702, user's input characters statement also sends.In step 703,instant communication server 102 is received session information, anddatabase 103 is inquired about.In step 704, contrast manmachine command table if find match statement, changes step 705, if there is not match statement, changes step 712.In step 705, be machine language with the session content translation.In step 706, machine language is sent to transducing signal transceiver module 108.In step 707, transducingsignal transceiver module 108 transmits control signal to ustomer premises access equipment 109.In step 708, ustomerpremises access equipment 109 feeds back up-to-date state information after having carried out the desired instruction of control signal, by transducingsignal transceiver module 108 this signal is sent to signal reception server 104.In step 709,signal reception server 104 is stored indatabase 103 with relevant informations such as status information of equipment and recognition of devices coding, source IP addresss.In step 710,102 pairs ofdatabases 103 of instant communication server judge that whether this information is for upgrading.In step 711, if upgrade,instant communication server 102 takes out this information.In step 712, this machine language is translated as language with conference.In step 713, this language is returned subscription client session interface show.