1. Field of the Invention
The instant disclosure relates to a control device, a system and a method thereof; in particular, to a network control device, the network control system and the method of the remote device.
2. Description of Related Art
With the rapid development of Internet, many electronic devices are equipped with remote control functions. For example, an audio and video player could be remote controlled via a network. The unreliable characteristic of the network could be endurable for image transmission or audio transmission, because a small segment loss of the audio and video data is acceptable for the user. However, not all electronic devices are adapted to remote control due to the uncertainty factor existing in the protocol of the network transmission and the environment. In other words, the network packages may be lost during the transmission process. Thus, the remote electronic device may receive incomplete operation command.
In the event of loss packages, the remote electronic device may perform wrong operation or continuous waiting. When the electronic device performs wrong operation, it would cause problem as minor as damaging the machine; or as major as public security accident. Especially for the serial port and the parallel port, these interfaces need complete control command for operation, thus an incomplete control command would make a wrong control to the electronic device having the aforementioned interface, or the electronic device may be damaged.
Further, there exists an issue about “how the main computer be corresponding to the electronic device” for controlling the electronic device via the network. In the prior art, the electronic device is directly connected to the main computer. But, for the network architecture, each host can see the electronic device. Therefore, any host may occupy the use right of the electronic device, such that other hosts may not control the electronic device successfully. Thus, the purpose of hot plugging between the host and the electronic device could not be achieved in the existing network architecture.
The object of the instant disclosure is to provide a network control device for providing the main computer to achieve the hot plugging function of one to one correspondence in the network environment.
In order to achieve the aforementioned objects, according to an embodiment of the instant disclosure, a network control device is offered. The network control device comprises a first network port, a second network port a third network port and a processing unit. The first network port is connected to a main computer. The second network port is connected to an electronic device via a network. The third network port is electrically connected to a target device. The processing unit is electrically connected to the first network port, the second network port and the third network port. The processing unit controls the bidirectional transmission between the first network port and the third network port. The processing unit controls the bidirectional transmission between the second network port and the third network port. The processing unit controls the unidirectional transmission from the first network port to the third network port.
In order to achieve the aforementioned objects, according to an embodiment of the instant disclosure, a network control system for a network control device is offered. The network control system comprises an electronic device, a main computer, a target device, a heterogeneous conversion unit and a bridge device. The main computer is for transmitting a first network package having an operation command. The target device is for receiving the operation command or transmitting a response information. The heterogeneous conversion unit is connected to the target device. The heterogeneous conversion unit converts the first network package to the operation command and transmits the operation command to the target device, or the heterogeneous conversion unit converts the response information from the target device to a second network package. The bridge device has a processing unit, a first network port, a second network port and a third network port. The processing unit is connected to the first network port, the second network port and the third network port. The first network port is connected to the main computer. The second network port is connected to the electronic device. The third network port is connected to the heterogeneous conversion unit. The processing unit controls the bidirectional transmission between the first network port and the third network port, and the processing unit controls the unidirectional transmission between the first network port and the third network port.
In order to achieve the aforementioned objects, according to an embodiment of the instant disclosure, a network control method of a remote device is offered. The network control method comprises judging the destination of a network package received by the first network port or the second network port of a bridge device; the bridge device dropping the network packages when the destination of the network packages received by the second network port is a third network port; and the bridge device recombining an operate command according to the network packages when the destination of the network packages received by the first network port is a third network port.
In summary, the provided network control device, the network control system and the method of the remote device could increase the reliability of controlling the serial port device or the parallel port device, thus the remote target device could accurately read the operation command and output the response information. Additionally, the bridge device could achieve the purpose of hot plugging without adding extra hardware cost in the network architecture.
In order to further the understanding regarding the instant disclosure, the following embodiments are provided along with illustrations to facilitate the disclosure of the instant disclosure.
The aforementioned illustrations and following detailed descriptions are exemplary for the purpose of further explaining the scope of the instant disclosure. Other objectives and advantages related to the instant disclosure will be illustrated in the subsequent descriptions and appended drawings.
Please refer to
The main computer 110 has a first processing unit 111, a storage unit 112 and a main network port 113. The first processing unit 111 is electrically connected to the storage unit 112 and the main network port 113. The main computer 110 of the present invention makes a general reference to a calculator having network connectivity. The main network port 113 could be embodied by wire-connection manner or wireless-connection manner. The mentioned calculator may be but not restricted to a personal computer (PC), a notebook or a tablet PC . . . etc.
The main computer 110 transmits the operation command to the bridge device 120 or receives output information from the bridge 120 via the main network port 113. The type of the main network 113 may be but not restricted to a wired Ethernet, or a wireless network. The storage unit 112 stores an agent program 114. The first processing unit 111 executes the agent program 114. The agent program not only is for searching the bridge device 120, transmitting the operation command or receiving the response information, but also is for the process of dividing the aforementioned operation command in the a plurality of network packages. The agent program 114 may be an independent application, or built in the operation system. The first processing unit 111 deploys the agent program 114 according to the identification information transmitted from the bridge device 120 for setting up an address space and a plurality of connection channels.
Referring to
The classification information records the model of the bridge device 120. The third network port 124 is connected to the heterogeneous conversion unit 150. The heterogeneous conversion unit 150 can be externally connected to the bridge device 120 via the network port. Alternatively, both of the heterogeneous conversion unit 150 and the bridge device 120 can be integrated into a chipset. The heterogeneous conversion unit 150 is for recombining the network packages to output the operation command or dividing the response information to corresponding network packages. The target device 130 is electrically connected to the heterogeneous conversion unit 150. The type of the target device 130 may be an electronic device having the parallel port, the serial port, the digital I/O or the Universal Asynchronous Receiver/Transmitter. The target device 130 may be a RS-232 mouse, a digital I/O bar coder reader . . . etc.
In the present invention, the network packages transmitted from the main computer 110 to the bridge device 120 are defined as the first network packages. The network packages transmitted from the bridge device 120 to the main computer 110 are defined as the second network packages. The network packages transmitted between the bridge device 120 and the target device 140 are defined as the third network packages.
Please refer to
S210: the main computer executes the agent program, and the agent program searches the bridge device in the network;
S220: the bridge device returns the classification information after receiving the device search command;
S230: the main computer receives the classification information of the bridge device and sets up an address space and a plurality of connection channels according to the classification information;
S240: the main computer makes a dividing process for the operation command according to the address space and the plurality of connection channels, and packaging each divided segment of the operation command to be a first network package;
S250: the main computer transmits the first network packages to the bridge device via the network;
S260: the bridge device transfers the first network package to the heterogeneous conversion unit;
S270: the heterogeneous conversion unit recombines the first network packages to obtain the operation command according to the sequence of the connection channels of the first network packages, and transmits the operation command to the target device;
S280: the target device executes the operation command and outputs the response information to the bridge device;
S290: the bridge device divides the response information according to the amount of the connection channels, and packages each divided segment, in order to output the plurality of second network packages; and
S300: the bridge device transmits the plurality of second network packages to the main computer.
In order to explain the whole operation, please refer to
When the main computer 110 receives the classification information, the main computer could generate the address space and the plurality of connection channels according to the classification information. The size of the address space is determined by the type of the target device 130. The amount of the connection channels may be determined according to the target device 130 or be default as a constant amount. Because the target device 130 is connected to the main computer 110 via the network, the main computer 110 needs to generate the corresponding address space for the purpose of address access of the main computer 110.
When the main computer 110 transmits the operation command (or related processing data) to the target device 130, the agent program 114 would make a dividing process for the operation command. In this present invention, the agent program 114 divides the operation command into a plurality segments according to the amount of the connection channels. Thus, the agent program 114 would output the divided segments with the amount the same as to the amount of the connection channels. The agent program 114 obtains an offset corresponding to each divided segment of the operation command.
For ease of explanation for the divided operation command (or operation data), each divided part of the operation command is defined as a divided segment. The agent program 114 converts the divided segments and the corresponding offsets to the first network packages in sequence according to the connection channels, and transmits the first network packages to the bridge devices 120.
After the bridge device 120 receiving the first network packages, the bridge device 120 transfers the first network packages to the heterogeneous conversion unit 150. The heterogeneous conversion unit 150 determines whether the sequence of the received first network packages is correct according to the sequence of the offset recorded by the connection channels. Please refer to
The heterogeneous conversion unit 150 determines whether the amount of the continuously received first network packages is larger than a preset amount. If the amount of the continuously received first network packages is larger than the present amount, the heterogeneous conversion unit 150 would return an acknowledgment (ACK) to the main computer 110. When the main computer 110 receives the acknowledgment, the main computer 110 would transmit the rest first network packages to the heterogeneous conversion unit 150. For example, the main computer 110 serially transmits the first network packages 001, 002, 003 and 004 to the heterogeneous conversion unit 150. If the heterogeneous conversion unit 150 serially receives the first network packages 001, 002, 003 and 004, the heterogeneous conversion unit 150 will transmit the acknowledge to the main computer 110 and request the main computer 110 to further transmit subsequent first network packages 005, 006. Then, the heterogeneous conversion unit 150 would counts from the first network package 005 to determine whether the amount of the continuously received first network packages is larger than the preset amount.
When the sequence of the first network packages received by the heterogeneous conversion unit 150 is not continuous, the bridge device 120 would request the main computer 110 to re-transmit the lost first network package(s). As shown in
When the main computer 110 receives the negative-acknowledgment, the main computer 110 would stop transmitting the current transmitting first network packages, and re-transmit the first network package 003 which was not received by the heterogeneous conversion unit 150. As shown in
Then, the heterogeneous conversion unit 150 recombines the received first network packages, in order to obtain the operation command for the target device 130. The bridge device 120 transmits the operation command to the target device 130 via the third network port 124. The target device 130 executes corresponding operation according to the operation command. After the target device 130 completes the operation, the target device 130 may output the corresponding result. Meanwhile, the target device 130 would output the operation result to the heterogeneous conversion unit 150.
The heterogeneous conversion unit 150 executes the dividing process for the operation result according to the amount of the connection channels in the same way. The heterogeneous conversion unit 150 transforms each divided segment to the second network package, and transmits the second network packages to the main computer 110. The transmission and processing manners for the second network packages are the same as that for the first network packages, thus the redundant information is not repeated. When the main computer 110 receives the second network packages, the main computer 110 recombines the second network packages to obtain the operation result of the target device 130.
Besides the aforementioned processing of controlling the remote target device 130, this invention also provides following routing processing method for giving a solution to one to one correspondence controlling process of the main computer 110 and the target device 130. Please refer to
S410: judging the destination of the network package received by the first network port or the second network port;
S420: the bridge device recombines the network packages to obtain the operation command when the destination of the first network package received by the first network port is the third network port;
S421: the bridge device transmits the operation command to the target device via the third network port;
S430: the bridge device transfers the network packages to the second network port when the destination of the first network package received by the first network port is the electronic device;
S440: the bridge device drops the network packages when the destination of the third network package received by the second network port is the third network port; and
S450: the bridge device transfers the network packages to the first network port when the destination of the third network package received by the second network port is the main computer.
The bridge device 120 judges the destination of the received network package. The mentioned destination of the present invention is the receiving object of the network package. For example, the electronic device 140 is the destination of the network package when the main computer 110 transmits the network package to the electronic device 140.
Firstly, the main computer 110 is taken as the source end for explanation, and the following description taking another bridge device as the electronic device for explaining clearly. The main computer 110 is connected to the bridge device A via the main network port, the bridge device A is connected to the bridge device B and the target device α, and the bridge device B is connected to the target device β.
Please refer to
When the destination of the first network package is the bridge device B, the bridge device A transmits the first network package to the bridge device B. And, the bridge device A does not make any other process about the first network package, as shown in
When the main computer 110 intends to control the target device β of the bridge device B, the bridge device A would transfer the first network packages to the bridge device B after receiving the network package from the main computer 110. Then, the bridge device B would start to combine the network packages after receiving the network packages, in order to obtain the corresponding operation command.
Then, when the bridge device A receives the third network packages from the second network port, the bridge device A would judge whether the destination of the third network package is the main computer 110. Please refer to
When the second network port of the bridge device B is connected to another computer (which is defined as an exterior computer), as shown in
According to above descriptions, the network control system, the bridge device and the method of the remote device could increase the reliability of controlling the serial port device or the parallel port device, thus the remote target device 130 could accurately read the operation command and output the response information. Additionally, the bridge device could achieve the purpose of hot plugging without adding extra hardware cost in the network architecture.
The descriptions illustrated supra set forth simply the preferred embodiments of the instant disclosure; however, the characteristics of the instant disclosure are by no means restricted thereto. All changes, alternations, or modifications conveniently considered by those skilled in the art are deemed to be encompassed within the scope of the instant disclosure delineated by the following claims.
Number | Date | Country | Kind |
---|---|---|---|
103103384 | Jan 2014 | TW | national |