Disclosure of Invention
In order to solve the technical problems, the invention provides a method for simultaneously accessing a plurality of IPTV network management server platforms, which solves the problem that a terminal cannot automatically adapt to the access and identification of the plurality of IPTV network management server platforms, realizes the invariance of terminal software, can control the terminal according to the requirement by a plurality of platforms, is convenient for terminal production and can improve the management efficiency.
The invention is realized by adopting the following technical scheme:
a method for accessing a plurality of IPTV network management server platforms simultaneously is characterized in that: the method comprises the following steps:
a. establishing a plurality of data models in a terminal network manager, wherein the data models comprise a plurality of pieces of functional node information;
b. the terminal network management is started, a plurality of data models are initialized after being instantiated, and the initialized data models correspond to the network management server platforms one to one;
c. establishing a plurality of sockets on the terminal, wherein the sockets correspond to the initialized data models one by one and address information of the sockets is generated;
d. the terminal network management generates a plurality of Inform messages, sends the Inform messages to corresponding network management server platforms and waits for reconnection; the Inform message comprises a terminal model, an MAC address, STBID information and address information of a socket;
e. the network management server platform receives the Inform message and completes information interaction;
f. the network management server platform sends a connection request to the terminal network management, the terminal obtains the information sent by the network management server platform from the socket, verifies whether the information is correct, if so, the terminal initiates active connection to the network management server platform, the network management server platform modifies the value of the functional node information in the corresponding data model in the terminal network management, and sends corresponding control information through the corresponding socket.
The initialization in the step b specifically means: and giving a plurality of initial values to the instantiated data model.
And the terminal network manager simultaneously sends a plurality of Inform messages to the corresponding network management server platform.
And the terminal network manager sequentially sends the plurality of Inform messages to the corresponding network management server platforms.
And the socket forms a corresponding http Server end by socket, and the port keeps an open state in the running process.
And the terminal network manager is correspondingly connected with one terminal.
The terminal network manager is connected with a plurality of terminals.
Compared with the prior art, the invention has the beneficial effects that:
1. establishing a plurality of data models in a terminal network manager, wherein the data models correspond to network management server platforms one to one, so that the data models of individual network management server platforms are prevented from being inconsistent, and establishing a plurality of sockets on the terminal, wherein the sockets correspond to the data models one to one; the situation that the terminal can not be connected with a single network management server platform is avoided, a plurality of network management server platforms can control the terminal at the time required by the network management server platforms, the terminal software is not changed, and the plurality of network management server platforms can control the terminal according to the requirement.
Before the terminal is connected with the network management server platform, information exchange is completed in advance, and when the terminal needs to be connected, a corresponding instruction is sent, so that the efficiency is improved, and long-time connection maintenance is not needed.
The data model is instantiated, code programming is facilitated, the modified object can be directly read, file operation is not performed, and operation is more convenient.
2. The socket is created, the terminal keeps the open state of the socket port for a long time in the operation process, the connection of the network management server platform is convenient to wait, the terminal can be connected at any time when the network management server platform is needed, the terminal is informed that the network management has a connection request, the terminal and the network management server platform do not need to keep long connection, the network management server platform can be connected with the terminal according to the need, and the terminal resource is convenient to save.
3. And the terminal webmaster simultaneously sends the terminal Inform message to the corresponding webmaster server platform, so that the efficiency is improved, and the time of information interaction is saved.
4. The terminal network manager sequentially sends the Inform messages to the corresponding network management server platforms, so that correct information can be conveniently sent to the corresponding network management server platforms, and the connection accuracy is improved.
5. One terminal network management is correspondingly connected with one terminal, so that the terminal network management is convenient to arrange on the terminal, no additional equipment is needed, and the space is saved.
6. One terminal network manager is connected with a plurality of terminals, and the terminal network manager and the terminals can be independent parts respectively, so that the terminal network manager can conveniently manage and control a plurality of different terminals simultaneously.
Detailed Description
Example 1
As a basic implementation mode of the invention, the invention comprises a method for simultaneously accessing a plurality of IPTV network management server platforms, which comprises the following steps:
a. establishing a plurality of data models in a terminal network manager, wherein the data models comprise a plurality of pieces of functional node information;
b. the terminal network management is started, a plurality of data models are initialized after being instantiated, and the initialized data models correspond to the network management server platforms one to one;
c. establishing a plurality of sockets on the terminal, wherein the sockets correspond to the initialized data models one by one and address information of the sockets is generated;
d. the terminal network management generates a plurality of Inform messages, sends the Inform messages to corresponding network management server platforms and waits for reconnection; the Inform message comprises a terminal model, an MAC address, STBID information and address information of a socket;
e. the network management server platform receives the Inform message and completes information interaction;
f. the network management server platform sends a connection request to the terminal network management, the terminal obtains the information sent by the network management server platform from the socket, verifies whether the information is correct, if so, the terminal initiates active connection to the network management server platform, the network management server platform modifies the value of the functional node information in the corresponding data model in the terminal network management, and sends corresponding control information through the corresponding socket.
Example 2
As a preferred embodiment of the present invention, referring to fig. 1 of the specification, the present invention includes a method for accessing multiple IPTV network management server platforms simultaneously, which includes the following steps:
a. establishing a plurality of TR069 data models in a terminal network manager, and corresponding node information required in the data models to system functions, such as a certain model node: < oBject nAme = "device.managnemengetserver.url" vlaue = "" "rw =" 1 "AttriBute =" 1 "type =" String (256) "setp =" run _ AcschAnge "/> realizes the configuration of one network management server address.
b. One terminal network management is correspondingly connected with one terminal, the terminal network management is positioned on the terminal, and 2 network management server platforms A and B are arranged. Starting a terminal network manager, instantiating 2 data models, endowing the instantiated data models with a plurality of initial values, and enabling the initialized data models to correspond to the network management server platform one by one;
c. 2 sockets are established on the terminal, the sockets correspond to the initialized data models one by one, and address information of the sockets is generated; the socket uses a basic system method such as socket to realize a simple http Server end which comprises ports A 'and B', and the terminal can keep the opening state of the ports A 'and B' for a long time in the operation process.
d. The method comprises the steps that a terminal network manager sends an Inform message to an A network management server platform through HTTP POST, wherein the Inform message comprises a terminal model, an MAC address, STBID information and an A' port address, and after reporting information interaction is finished according to a standard flow, the network management server platform is waited to be connected back; then, the terminal network manager also sends an Inform message to the B network management server platform through HTTP POST, wherein the Inform message comprises a terminal model, an MAC address, STBID information and a B' port address, and after reporting information interaction is finished according to a standard flow, the network management server platform is waited to be connected back.
e. And the network management server platform A and the network management server platform B sequentially receive the corresponding Inform messages to complete information interaction.
f. And information communication connection is established among the network management server platform, the terminal network management and the terminal. When the network management server platform A or B is in any need, the terminal can obtain the information sent by the network management server platform from the socket by sending an HTTP GET request, and verify whether the information is correct, if so, the terminal initiates active connection to the network management server platform, the network management server platform modifies the value of the functional node information in the corresponding data model in the network management of the terminal, and sends corresponding control information through the corresponding socket, so as to achieve the purpose of sending remote call.
Example 3
As another preferred embodiment of the present invention, the present invention includes a method for accessing multiple IPTV network management server platforms simultaneously, comprising the following steps:
a. establishing a plurality of TR069 data models in a terminal network manager, and corresponding node information required in the data models to system functions;
b. one terminal network manager is correspondingly connected with two terminals i and ii, and 3 network management server platforms A, B and C are arranged. Starting a terminal network manager, instantiating and initializing 3 data models, wherein the initialized 3 data models correspond to the network management server platform one by one;
c. 3 sockets are established on the terminal i; the socket corresponds to the initialized data model and generates address information of the socket; the socket and other basic system methods are used for realizing a simple http Server end which comprises ports A ', B' and C ', and the terminal can keep the opening states of the ports A', B 'and C' for a long time in the operation process;
3 sockets are established on terminal ii; the socket corresponds to the initialized data model and generates address information of the socket; socket and other basic system methods are used for realizing a simple http Server end, which comprises ports A ', B' and C ', and the terminal can keep the opening states of the ports A', B 'and C' for a long time in the operation process;
d. the terminal network manager sends two Inform messages to the A network management server platform through HTTP POST, wherein one Inform message comprises the i type of the terminal, the MAC address, STBID information and the A' port address; another Inform message comprises a terminal ii type, a MAC address, STBID information and an A '' port address;
meanwhile, the terminal network manager sends two Inform messages to the B network management server platform through HTTP POST, wherein one Inform message comprises the i type of the terminal, the MAC address, the STBID information and the B' port address; another Inform message includes terminal ii type, MAC address, STBID information and B '' port address;
meanwhile, the terminal network manager sends two Inform messages to the C network management server platform through HTTP POST, wherein one Inform message comprises the i type of the terminal, the MAC address, the STBID information and the C' port address; another Inform message includes terminal ii model, MAC address, STBID information, and C '' port address.
After the information interaction is finished according to the standard flow, the A ' port and the A ' ' port wait for the connection of the A network management server platform, the B ' port and the B ' ' port wait for the connection of the B network management server platform, and the C ' port and the C ' ' port wait for the connection of the C network management server platform.
d. The network management server platform A, B and C receive the corresponding Inform message at the same time to complete information interaction;
e. and information communication connection is established among the network management server platform, the terminal network management and the terminal. When the network management server platform A, B or C is in any need, the HTTP GET request is sent, the information sent by the network management server platform is obtained from the socket by the terminal i or the terminal ii, whether the information is correct is verified, if the information is correct, the terminal i or the terminal ii initiates active connection to the network management server platform, the network management server platform modifies the value of the functional node information in the corresponding data model in the network management of the terminal, and corresponding control information is issued through the corresponding socket, so that the purpose of issuing remote call is achieved.
In summary, after reading the present disclosure, those skilled in the art should make various other modifications without creative efforts according to the technical solutions and concepts of the present disclosure, which are within the protection scope of the present disclosure.