1. Technical Field
Embodiments of the present disclosure relate to systems and methods to manage network devices, and more particularly to a server, a storage medium, and a method to connect a network device to the server.
2. Description of related art
Servers usually use multi-process technology to connect to a plurality of network devices to manage the network devices. The server can use a communication process to simulate hypertext preprocessor (PHP) multi-process to connect one or more network devices to the server. However, the communication process carries necessary PHP modules (The PHP modules refers to logics or collections of software instructions written in the programming language PHP) to build a communication connection between the server and the network devices, and also PHP modules that are not necessary to build the communication connection between the server and the network devices, such as PHP modules for implementing dynamic web pages, which may waste a memory of the server.
In general, the word “module”, as used herein, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language, such as, Java, C, or assembly. One or more software instructions in the modules may be embedded in firmware, such as in an EPROM. The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of non-transitory computer-readable storage medium or other storage device. Some non-limiting examples of non-transitory computer-readable media include CDs, DVDs, BLU-RAY, flash memory, and hard disk drives.
The computing device 1 may be a computer or a smart phone or a tablet. On the server 2, hypertext preprocessor (PHP) multi-process is simulated to build a communication connection between the server and the network device 3 based on a communication protocol adapted to the network device 3, and the network device 3 is managed through the communication connection.
The network device 3 may be an IP camera or an IP television or other kinds of devices that can be connected to the network 4. The network 4 may be a wired network or a wireless network, such as a GPRS network.
In one embodiment, the communication connecting system 10 includes a plurality of function modules (see
The storage device 12 may include any type(s) of non-transitory computer-readable storage medium, such as a hard disk drive, a compact disc, a digital video disc, or a tape drive. The storage device 12 stores the computerized code of the function modules of the communication connecting system 10. The at least one processor 14 may be a processor unit, a microprocessor, an application-specific integrated circuit (ASIC), or a field programmable gate array (FPGA).
In step S20, the trigger module 100 receives a request to connect the server 2 to the network device 3 through the network 4. In the embodiment, the computing device 1 may send the said request to the server using a browser of the computing device 1.
In step S21, the trigger module 100 generates a communication process to connect the server 2 to the network device 3 when the request is received from the computing device 1. In the embodiment, the communication process carries necessary PHP modules (The PHP modules refer to logics or collections of software instructions written in the programming language PHP) to connect the server 2 to the network device 3, and also PHP modules, which is not necessary to connect the server 2 to the network device 3, which wastes memory of the server 2.
In step S22, a separation module 102 separates an independent sub process from the communication process by calling instructions of an operating system of the server 2 through a command-line interface (CLI), which is accompanied by an automatic end of the communication process. Because the communication process is ended, a new communication process can be generated by another request to connect the server 2 to another network device. The independent sub process is a special handler that is used to connect the server 2 to the network device 3. The independent sub process only carries the PHP modules to connect the server 2 to the network device 3. In the embodiment, the independent sub process may be separated form the communication process by calling an instruction of “nohup” of LINUX operating system or by calling an instruction of “start” and a parameter of “/b” of WINDOWS operating system.
In step S23, the connecting module 104 creates a communication connection between the server 2 and the network device 3. In the embodiment, the network device may be an IP camera, because different kinds of IP cameras are adapted to different communication protocols, so the connecting module 104 creates a communication connection between the server 2 and the network device 3 by means of HTTP Multi-Part.
Although certain embodiments of the present disclosure have been specifically described, the present disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the present disclosure without departing from the scope and spirit of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
101127513 | Jul 2012 | TW | national |