Patent ID: 8150982

Claim:
A method for accessing a home network, comprising: finding, by a home network access device, a home network device, and obtaining information of the home network device through a home network protocol; establishing, by the home network access device, a data model of the home network device in the home network access device according to the information of the home network device, so that a remote service device accesses the data model of the home network device through a remote management protocol, and constructing, by the home network access device, a home network protocol packet according to management information set by the remote service device in the established data model of the home network device through the remote management protocol, and sending the home network protocol packet to the home network device; wherein the established data model of the home network device further comprises device information objects, service information objects which are a next level of the device information objects, and action information objects which are a next level of the service information objects; and the device information objects further comprise device information parameters, the service information objects comprise service information parameters, and the action information objects comprise action information parameters; the action information parameters further comprise an in parameter and an operation execution parameter invoke, and the action information parameters comprise an out parameter, and the constructing, by the home network access device, the home network protocol packet according to management information set by the remote service device in the established data model of the home network device through the remote management protocol comprises: accepting, by the home network access device, the remote service device setting the in parameter corresponding to the management information through a remote procedure call (RPC) method, and accepting the remote service device setting an invoke parameter value corresponding to the management information through the RPC method to be true; constructing, by the home network access device, the home network protocol packet comprising corresponding operation information according to the setting of the in parameter corresponding to the management information by the remote service device; and setting, by the home network access device, the value of the invoke parameter corresponding to the management information to be false, after setting a value of an out parameter corresponding to the management information, so that the remote service device obtains the value of the out parameter corresponding to the management information through the RPC method.