1. Field of the Invention
The present invention relates to a communication method, and more particularly to a communication encryption method for supporting a remote monitoring and control system, in which a communication network is established between a server and a remote host, data to be transmitted/received is encrypted, and terminal equipment connected to the remote host is tested.
2. Related Art
With the rapid development of electronic products, in order to alleviate the manufacturing and testing burdens, most upstream manufacturers distribute their testing work to downstream manufacturers. Unfortunately, the manufacturers are not located quite close to each other, so that the manufacturers use the Internet to perform tests through remote control, so as to reduce the time required for forwarding the test data.
Besides preventing the test program from being monitored by a third party, the downstream manufacturer is further required to guarantee the confidentiality of the intellectual property rights of the upstream manufacturer. In other words, the data transmitted and the results received by the upstream manufacturer must be processed by a specific encryption manner, so as to prevent some important test data from being intercepted by others.
In view of the above problems, the present invention is mainly directed to a communication encryption method for supporting a remote monitoring and control system, which includes establishing a communication network between a server and a remote host, and transmitting a test data to the remote host to test the terminal equipment connected to the remote host.
In order to achieve the above objective, the present invention provides a communication encryption method for supporting a remote monitoring and control system, which includes the following steps: partitioning a test data by the server to produce a plurality of first partition data; performing a compression program on the first partitioned data sequentially, and combining the obtained results to produce a compressed data; partitioning the compressed data to produce a plurality of second partitioned data; performing an encryption program on the second partitioned data to produce a plurality of encrypted data; transmitting the encrypted data to the remote host; performing a decryption program by the remote host to restore the encrypted data into the second partitioned data; performing a decompression program on the second partitioned data to restore the data into the compressed data; performing the decompression program on the compressed data to restore the data into the first partitioned data; restoring the first partitioned data into the test data; and sending the test data to the terminal equipment for testing the terminal equipment.
Before the server provides the test data to the remote host, the server compresses and encrypts the test data. Then, the server transmits the encrypted data to the remote host through the communication network. Then, the remote host performs a restoring process on the received encrypted data to retrieve the test data. Finally, the remote host performs a test program on the terminal equipment based on the test data.
The present invention will become more fully understood from the detailed description given herein below for illustration only, and thus are not limitative of the present invention, and wherein:
The encrypted data is transmitted to the remote host (Step S360), and the encrypted data is stored in the decryption buffer 223. The remote host performs a decryption program to restore the encrypted data into the second partitioned data (Step S370). It should be noted that, each time when a data capacity of the encrypted data reaches a second fixed data capacity, the decryption program 222 is performed on the encrypted data to obtain the second partitioned data.
Then, a decompression program is performed on the second partitioned data to restore the data into the compressed data (Step S380). Then, the decompression program is performed on the compressed data to restore the data into the first partitioned data (Step S390). Particularly, when a capacity of the data output by the decompression program 212 reaches the first fixed data capacity, the data is stored as the first partitioned data. Then, the first partitioned data is recombined to be restored into the test data (Step S400). Based on the test data, the remote host performs a test program to test the terminal equipment (Step S410). The remote host further receives a test report from the terminal equipment and returns the test report to the server (Step S420).
In order to clearly describe the operation process of the present invention, it is further demonstrated below, in which the parameters are not limited herein.
The server 210 partitions the test data 211 with an equal capacity based on a length of the first fixed data capacity, so as to produce a plurality of first partitioned data. It is assumed that the first fixed data capacity is 1024 Kbytes, so that the server 210 partitions the test data 211 to produce a plurality of the first partitioned data with a capacity of 1024 Kbytes. Referring to
Once the capacity of the compressed data in the first compression buffer 214 reaches the first fixed data capacity, the server 210 partitions the compressed data into the second partitioned data segment by segment, and stores the second partitioned data in the encryption buffer 215. Referring to
Then, the server 210 transmits the encrypted data to the remote host 220. The remote host 220 stores the encrypted data to the decryption buffer 223. Each time when the capacity of the encrypted data reaches the second fixed data capacity, the remote host 220 performs the decryption program 222 on the encrypted data and restores the data into the second partitioned data. Since the encrypted data is added with the first information and the second information, the second fixed data capacity is set as 1032 Kbytes. Referring to
The remote host 220 combines the second partitioned data sequentially and restores them into the compressed data. Referring to
After the remote host 220 has finished the restoring process of the encrypted data, the remote host 220 performs the test program 225 based on the test data 211. The remote host 220 begins to test the terminal equipment 230 connected to the remote host 220. After the test program 225 is finished, the remote host 220 receives a test report from the terminal equipment 230, and returns the test report to the server 210.
Before providing the test data 211 to the remote host 220, the server 210 compresses and encrypts the test data 211. Then, the server 210 transmits the encrypted data to the remote host 220 through the communication network. Then, the remote host 220 performs the restoring process on the received encrypted data to retrieve the test data 211. Finally, the remote host 220 performs the test program 225 on the terminal equipment 230 based on the test data 211. Therefore, the test data 211 is prevented from being eavesdropped by a third party when the server 210 transmits the test data 211, thereby guarantee the confidentiality.