Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Fig. 3 is the flow chart of an embodiment of management method of proxied device of the present invention, and this embodiment specifically can be realized by agent equipment.As shown in Figure 3, the management method of the proxied device of this embodiment comprises:
Step 101 receives the management request that ACS sends, and this management request comprises first administration order and first administration order sign that is used to identify this first administration order.
Wherein, first administration order is designated first administration order title or the numbering of unique identification first administration order.
Step 102 to the response that ACS sends management request, is sent the response of first administration order to notify ACS to delay time.
Step 103 to ACS forward delay interval response command, comprises the response of first administration order sign and first administration order in this time-delay response command.
In the management method of the proxied device that this embodiment provides; Agent equipment is after the management request that receives the ACS transmission; Can return a manage request response to ACS; Notice ACS will delay time and send the response of first administration order, in time respond the management request that ACS sends, thereby avoid ACS when the management proxied device; Owing to waiting for that the response that proxied device returns causes the session timeout between ACS and the agent equipment, also avoided ACS in the process of wait timeout, can not carry out other orders and caused the wasting of resources of ACS.When ACS is given in the response of sending first administration order through the time-delay response command; Carry the sign of first administration order; So that ACS can carry out the response of first administration order that receives and first administration order is corresponding, effectively ensure the management of ACS to proxied device.
Fig. 4 is the flow chart of another embodiment of management method of proxied device of the present invention, and this embodiment specifically also can be realized by agent equipment.As shown in Figure 4, the management method of the proxied device of this embodiment comprises:
Step 201; Receive the management request that ACS sends, comprise the proxied device sign in this management request, proxied device identified proxied device first administration order of managing and first administration order sign that is used to identify this first administration order.
Wherein, The proxied device sign can be the proxied device title of this proxied device of unique identification; Perhaps the numbering of proxied device in network system perhaps identified by device fabrication identification of the manufacturer and Equipment Serial Number, the common proxied device of forming of device type.
Step 202; First administration order is converted into second administration order of proxied device supported protocol; And this second administration order sent to proxied device; And send the response of management request to ACS, the response of this management request is used for notifying ACS will send the response of first administration order at the time-delay response command.
Step 203 receives the response of second administration order of proxied device transmission.
Particularly; The response of second administration order is used to represent the reception result of proxied device to second administration order; That is: whether correctly receive second administration order, perhaps to the execution result of second administration order, that is: whether correct execution second administration order that finishes.
Step 204 converts the response of second administration order into the response of first administration order of ACS supported protocol.
Step 205 to ACS forward delay interval response command, comprises the response of first administration order sign and first administration order in this time-delay response command.
ACS just can be known the response of first administration order in the time-delay response command according to first administration order sign and send to the corresponding relation between first administration order of agent equipment before.In the management method of proxied device embodiment illustrated in fig. 4; Agent equipment is after second administration order that first administration order in the management request of ACS transmission is converted into the proxied device supported protocol is transmitted to proxied device; Can return the response of a management request to ACS; Notice ACS will send the response of first administration order in the time-delay response command; In time the management request of response ACS transmission avoids ACS when the management proxied device, and the response of returning second administration order owing to the wait proxied device causes the session timeout between ACS and the agent equipment; When receiving the response of second administration order that proxied device sends; Convert the response of second administration order response of first administration order of ACS supported protocol into, and send to ACS, ensure that effectively ACS manages proxied device through agent equipment through the time-delay response command.
As an application implementation example of the present invention; The form of TR-069 agreement regulation is adopted in administration order; This TR-069 agreement also is the agreement that ACS supports; The agreement that proxied device is supported is confirmed by concrete proxied device type, can be UPnP agreement, Zigbee agreement or Z-Wave agreement etc.Except above-mentioned agreement, the embodiment of the invention also can be applied to adopt the communication system of other agreement according to concrete application demand.
In the TR-069 agreement; ACS waits for that perhaps the stand-by period of the response of first administration order could be sent new administration order above after the certain hour, in embodiments of the present invention after the response that receives first administration order; Adopt the mode of sending management request; Can be after receiving management request, the response of this management request is in time sent in the response that does not also produce first administration order before to ACS, make ACS need not wait for the response of first administration order; Also, can send new management request without wait timeout.
Further,, can also comprise temporal information from the response needs of first administration order to ACS that return in the response of management request, so that ACS rationally arranges the management to proxied device according to this temporal information as specific embodiment of the present invention.As if ACS temporal information as required, in the corresponding time, do not receive the response of first administration order, can carry out other operation according to the actual requirements, for example: repeat to send management request to proxied device.
Fig. 5 is the flow chart of another embodiment of management method of proxied device of the present invention.As shown in Figure 5, the management method of the proxied device of this embodiment comprises:
Step 301, agent equipment receives the management request that ACS sends, and comprises proxied device sign, first administration order and first administration order sign in this management request.
Step 302, agent equipment are transmitted to corresponding proxied device with this second administration order, and pick up counting according to first Preset Time after converting first administration order second administration order of proxied device supported protocol into.
Step 303, agent equipment are judged the response of second administration order that in first Preset Time, whether receives the proxied device transmission.If in first Preset Time, receive the response of second administration order, execution in step 304; Otherwise, if in first Preset Time, do not receive the response of second administration order, execution in step 306.
Step 304, agent equipment convert the response of second administration order into the response of first administration order of ACS supported protocol.
Step 305 is sent the response of first administration order to ACS.Afterwards, no longer carry out the flow of present embodiment.
Step 306; Agent equipment returns the management request responding to ACS; The response of this management request is used for notifying ACS will send the response of first administration order at the time-delay response command; So that ACS can continue to send other administration order, need not wait for the response of first administration order of its transmission of managed devices always, and influence follow-up effective management managed devices.
When step 307, agent equipment receive the response of proxied device second administration order, the response of this second administration order is converted into the response of first administration order of ACS supported protocol.
Step 308 to ACS forward delay interval response command, comprises the response of first administration order sign and first administration order in this time-delay response command.ACS just can be known the response of first administration order in the time-delay response command according to first administration order sign and send to the corresponding relation between first administration order of agent equipment before.
In addition, as another embodiment of management method of proxied device of the present invention, receive after the management request of ACS transmission; Particularly; Agent equipment can be before being transmitted to corresponding proxied device with this second administration order, afterwards or simultaneously, send the response of management request to ACS, so that ACS can continue to send other administration order; Avoid ACS when the management proxied device; Owing to waiting for that the response that proxied device returns second administration order causes the session timeout between ACS and the agent equipment, need not be because of waiting for the response of managed devices always to first administration order of its transmission, and influence follow-up effective management to managed devices.
Fig. 6 is the flow chart of an application implementation example of management method of proxied device of the present invention.In this application implementation example, adopt asynchronous answer mode, avoid the session timeout between ACS and the agent equipment.Particularly; Agent equipment is after the management request that receives the ACS transmission; Reply the response of a management request earlier to ACS, inform that ACS has sent first administration order in the management request to proxied device, is waiting for the response of proxied device to first administration order; So that ACS can continue to send other administration order, and need not wait for always that proxied device returns the response to first administration order.After agent equipment receives the response of proxied device to second administration order, through remote procedure call (RemoteProcedure Call, hereinafter to be referred as: RPC) method is informed ACS, and proxied device is to the response of second administration order.As shown in Figure 6, this application implementation example may further comprise the steps:
Step 401 is set up session connection between agent equipment and the proxied device, and agent equipment passes through notice request (Inform Request) to ACS reported event message.
Step 402; ACS is with HTTP (Hyper Text Transport Protocol; Hereinafter to be referred as: HTTP) response (HTTP Response) mode; Send management request (Proxy Request) to agent equipment, comprise proxied device sign (ProxyDevice), first administration order (Set Parameter Values) and first administration order sign (Commandkey) in this management request proxied device.The form of TR-069 agreement regulation is adopted in first administration order wherein.
Step 403, agent equipment convert first administration order of TR-069 protocol format into second administration order of proxied device supported protocol form.Wherein, the protocol format of proxied device support for example: the form of agreement regulations such as the UPnP agreement of proxied device type correspondence, Zigbee agreement, Z-Wave.
Step 404, agent equipment sends the second reason order to proxied device, waits for reception or the execution result of proxied device to this second administration order.
Step 405; Agent equipment sends the response (Proxy Response) to management request with the mode of HTTP notice (HTTP POST) to ACS, informs that ACS sends second administration order to proxied device; Waiting for that proxied device returns the response of second administration order; To in the time-delay response command, send the response of first administration order, at this moment, ACS can normally send other administration orders.
ACS can return http response (HTTP Response) to agent equipment after receiving the response (Proxy Response) of agent equipment transmission management request.
Optional, the response of management request is comprised temporal information from the response needs of first administration order to ACS that return, inform that ACS obtains the time that proxied device need be waited for the reception or the executing result message of second administration order.
Through this step 405, after ACS receives the response of management request, can continue to send administration order to agent equipment, manage other proxied device or this agent equipment self, and need not continue to wait for the response of proxied device first administration order.
After step 406, agent equipment receive the response of second administration order that proxied device returns, be converted into the response of first administration order of the form of TR-069 agreement regulation.
Step 407; Agent equipment is with the mode of HTTP notice (HTTP POST); Report time-delay response command (Proxy Complete request) to ACS, comprising the response of first administration order sign (CommandKey) with first administration order of the reception of representing first administration order or execution result (Result).According to first administration order sign, the administration order before ACS just can correspond to the response of first administration order.
Step 408; After ACS receives the response of first administration order; With http response (HTTPResponse) mode, reply the agency to agent equipment and accomplish response message (Proxy CompleteResponse), inform that agent equipment ACS has received the response of first administration order of its transmission.
Through embodiment shown in Figure 6, can realize the management of ACS to proxied device, avoid ACS when the management proxied device, owing to waiting for that the response that proxied device returns second administration order causes the session timeout between ACS and the agent equipment; And, transmit results messages owing to adopted the mode of asynchronous notifications to send to ACS, make ACS in the reception or execution result of waiting for administration order, to continue to send administration order administration agent equipment or other proxied device.
In addition; Optional, before ACS sent the response of management request, agent equipment can be waited for first Preset Time in step 405; Perhaps, rule of thumb value judges whether in short time, to receive the response of second administration order that proxied device returns.If receive the response of second administration order in first Preset Time; Perhaps agent equipment is judged the response that can in short time, receive second administration order that proxied device returns; After then agent equipment waits for that proxied device returns the response of second administration order; Directly the response of this second administration order is converted into the response of first administration order of the form of TR-069 agreement regulation, send to ACS then; Otherwise, inform that to the response that ACS sends management request ACS just can obtain the reception or the execution result of first administration order after a while through step 405.
Fig. 7 is the structural representation of the embodiment of management devices of proxied device of the present invention, and the management devices of the proxied device of this embodiment can be used for realizing the flow process of the management method embodiment of above-mentioned each proxied device of the present invention.As shown in Figure 7, the management devices of the proxied device of this embodiment comprises receiver module 501 and sending module 502.Wherein, receiver module 501 is used to receive the management request that ACS sends, and comprises first administration order and first administration order sign that is used to identify this first administration order in this management request.Sending module 502 is used for sending to ACS the response of management request; Send the response of first administration order to notify ACS to delay time; And, comprise the response of first administration order sign and first administration order in this time-delay response command to ACS forward delay interval response command.
Fig. 8 is the structural representation of another embodiment of management devices of proxied device of the present invention, and the management devices of the proxied device of this embodiment can be used for the flow process that realizes that the present invention is embodiment illustrated in fig. 4.Compare with embodiment shown in Figure 7, among this embodiment, also comprise the proxied device sign in the management request, first administration order is used for the proxied device that this proxied device sign is identified is managed.Accordingly, among this embodiment, the management devices of proxied device also comprises modular converter 503 and forwarding module 504.Wherein, First administration order of the management request that modular converter 503 is used for receiver module 501 is received converts second administration order of proxied device supported protocol into, and the response of second administration order that proxied device is sent converts the response of first administration order of ACS supported protocol into.Forwarding module 504 is used for second administration order that modular converter 503 converts to is transmitted to the proxied device that the proxied device sign is identified, and the response that receives second administration order of proxied device transmission.Wherein, An implementation as the embodiment of the invention; Sending module 502 receiver module 501 again receives after the management request of ACS transmission; Specifically can be before forwarding module 504 be transmitted to proxied device with second administration order, afterwards or simultaneously, return response to ACS in real time, so that ACS can continue to send other administration order to management request; Need not be because of waiting for the response of managed devices always to first administration order of its transmission, and influence follow-up effective management to managed devices.
Fig. 9 is the structural representation of another embodiment of management devices of proxied device of the present invention, and the management devices of the proxied device of this embodiment can be used for realizing Fig. 5 of the present invention and flow process embodiment illustrated in fig. 6.Referring to Fig. 9, as the Another application implementation of the embodiment of the invention, sending module 502 can comprise first timing unit 601, first judging unit 602 and first transmitting element 603.Wherein, first timing unit 601 is used for after forwarding module 504 is transmitted to proxied device with second administration order of proxied device supported protocol, picking up counting according to first Preset Time.First judging unit 602 is used to judge whether forwarding module 504 receives the response of second administration order of proxied device transmission in first Preset Time, the response of this second administration order is used to represent reception result or the execution result of proxied device to second administration order.If forwarding module 504 receives the response of second administration order in first Preset Time; Indication modular converter 503 converts the response of second administration order response of first administration order of ACS supported protocol into, and indicates first transmitting element 603 to send the response of this first administration order to ACS; Otherwise, if forwarding module 504 does not receive the response of second administration order in first Preset Time, indicate first transmitting element 603 to return the management request responding to ACS, notice ACS will send the response of first administration order in the time-delay response command.First transmitting element 603 is used for to ACS forward delay interval response command; The response of first administration order of the ACS supported protocol that converts to comprising modular converter 503 and first administration order sign; And, return the response of first administration order that management request responding or modular converter 503 convert to ACS according to the indication of first judging unit 602.
A kind of communication system that the embodiment of the invention provides comprises ACS and agent equipment.Wherein, ACS is used for sending the management request to proxied device to agent equipment, comprises first administration order in this management request and identifies in first administration order that identifies first administration order, and receive the time-delay response command that agent equipment sends.Agent equipment is used to receive the management request that ACS sends; Return the management request responding to ACS; The response of this management request is used to notify ACS to delay time to send the response of first administration order; And, comprise the response of first administration order sign and first administration order in this time-delay response command to ACS forward delay interval response command.
In addition, the communication system of the embodiment of the invention can also comprise proxied device.Also comprise the proxied device sign in the management request that ACS sends, first administration order is used for the proxied device that this proxied device sign is identified is managed.Accordingly; Agent equipment also is used for first administration order is converted into second administration order of proxied device supported protocol; Identify according to proxied device; This second administration order is sent to proxied device, and the response that receives second administration order of proxied device transmission, the response of this second administration order is converted into the response of first administration order of said ACS supported protocol.Proxied device is used to receive and carry out second administration order that agent equipment sends, and returns the response of second administration order to agent equipment, and the response of this second administration order is used to represent reception or the execution result of proxied device to second administration order.Agent equipment among this embodiment can be realized to the management devices of the proxied device of arbitrary embodiment shown in Figure 9 through Fig. 7 of the present invention, and corresponding to the flow process of Fig. 4 to illustrated embodiment, realizes the management of ACS to proxied device.Figure 10 is the structural representation of the unified embodiment of communication system of the present invention, and among this embodiment, agent equipment is realized through the management devices of proxied device embodiment illustrated in fig. 9.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be accomplished through the relevant hardware of program command; Aforesaid program can be stored in the computer read/write memory medium; This program the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
In the embodiment of the invention; Agent equipment is after the management request that receives the ACS transmission; Can return the response of a management request to ACS; Notice ACS will delay time and send the response of first administration order, in time respond the management request that ACS sends, and avoid ACS when the management proxied device; Owing to waiting for that the executing result message that proxied device returns causes the session timeout between ACS and the agent equipment, also avoided ACS in the process of wait timeout, can not carry out other orders and caused the wasting of resources of ACS.When ACS is given in the response of sending first administration order through the time-delay response command; Carry the sign of first administration order; So that ACS can carry out the response of first administration order that receives and first administration order is corresponding, effectively ensure the management of ACS to proxied device.
It should be noted last that: above embodiment is only in order to explaining technical scheme of the present invention, but not the present invention is made restrictive sense.Although the present invention is specified with reference to above-mentioned preferred embodiment; Those of ordinary skill in the art is to be understood that: it still can make amendment or be equal to replacement technical scheme of the present invention, and this modification or be equal to spirit and the scope that replacement does not break away from technical scheme of the present invention.