1. Field of the Invention
The invention relates to a method, a system and a receiving device for transmitting screen frames and, more particularly, to a method, a system and a receiving device for transmitting screen frames from one to many terminals.
2. Description of the Related Art
Computers have become part of people's daily lives due to the advancement of information technology, and the screen frame on a computer is required to be shared with other users in some occasions such as conferencing. However, there are several problems that need to be overcome due to the limitation of network bandwidth.
Take wireless local area network (WLAN) as an example; transmitting a full-color screen frame of 1024×768 pixels would take up most of the network bandwidth according to the transmission standard of IEEE 802.11a/g. Therefore, transmitting the unprocessed data would take a long time, and transmitting compressed data would result in lower picture quality with high compression rate or unsatisfactory effect with low compression rate. In addition, the problem with occupied network bandwidth becomes more severe during the transmission of screen frames from one to many terminals. And, if screen frames from one to many terminals were to be transmitted via broadcast packet, the error rate is quite high since one characteristic of the broadcast packet is that the receiving terminal does not send back an acknowledgement, therefore satisfactory transmission cannot be achieved. Though wired local area network has wider network bandwidth, enhancing the transmission efficiency of screen frames is a goal which the industry is pursuing.
Concluding from above, there is much room for improvement in terms of how to effectively reduce the data of screen frames for transmission and at the same time transmit the screen frames from one to many terminals.
In view of the above, an object of the invention is to provide a method, a system, and a receiving device for transmitting screen frames from one to many terminals, which effectively reduces the data quantity of screen frames for transmission and transmits the screen frames from one to many terminals.
A method for transmitting screen frames of the invention is applied to a network system consisting of a first electronic device, a second electronic device, and at least one third electronic device. The method includes steps of: transmitting a full screen frame from the first electronic device to the second electronic device via network packets; transmitting at least one rectangle data from the first electronic device to the second electronic device via network packets, wherein the rectangle data includes information of a combined region corresponding to the changed areas in the full screen frame; the second electronic device receiving the full screen frame and the rectangle data and, in accordance with each received network packet, sending an acknowledgement to the first electronic device; and the third electronic device intercepting the full screen frame and the rectangle data to reconstruct an updated screen frame and display the same.
The invention also discloses a system for transmitting screen frames from one to many terminals via network packets that is applied to a network system; the system for transmitting screen frames includes a first electronic device, a second electronic device, and a third electronic device. The first electronic device is used for transmitting a full screen frame and at least one rectangle data including information of a combined region corresponding to the changed areas in the full screen frame. The second electronic device is used for receiving the full screen frame and the rectangle data, and sending an acknowledgement to the first electronic device in accordance with each received network packet. The third electronic device is used for intercepting the full screen frame and the rectangle data to reconstruct an updated screen frame and display the same.
The invention also discloses a receiving device for transmitting screen frames from one to many terminals that can be applied to the aforementioned system. The receiving device receives the full screen frame and the rectangle data, and operates with an image output device for outputting the received screen frame. The receiving device includes a network interface, a computation unit, a first buffer, and a video interface. The network interface and the network are signal-connected for receiving the full screen frame and the rectangle data. The computation unit is used for decoding the full screen frame and the rectangle data to reconstruct an updated screen frame. The first buffer is used for storing the updated screen frame, and the video interface is signal-connected to the image output device for outputting the updated screen frame.
When using the method, system and receiving device for transmitting screen frames from one to many terminals according to the invention, the complete full screen frame needs to be transmitted only once, and only changed portions in the screen frame are transmitted thereafter; thus, the data quantity of screen frames for transmission is effectively reduced. Moreover, the data of screen frames is transmitted on a one-to-one basis, which solves the problem of high error rate in broadcast packet transmission, and since any receiving terminal can intercept network packets during transmission, the purpose of transmitting from one to many terminals is achieved.
The preferred embodiments of a method, a system, and a receiving device for transmitting screen frames from one to many terminals according to the invention will be described in detail, with reference to the drawings in which the like reference numerals refer to the like elements.
Referring to
WLAN in IEEE 802.11 series is used as an example for illustration purposes. A WLAN formed by the first electronic device 11, the second electronic device 12 and the third electronic device 13 has two transmission modes: ad-hoc mode or infrastructure mode. Under the infrastructure mode, the first electronic device 111 must transmit information to the second electronic device 12 and the third electronic device 13 through an access point. That negatively affects the transmission efficiency and therefore real-time transmission cannot be performed. In order to transmit data using the ad-hoc mode, the first electronic device 11, the second electronic device 12, and the third electronic device 13 must have the same setting. For that reason, the first electronic device 11 first sends a set-packet (SP) (S11) to the second electronic device 12, wherein the set-packet includes setting information including a service set identifier (SSID) and a channel number. Since the first electronic device 11 doesn't send the set-packet in the form of broadcast packet, the second electronic device 12 checks the set-packet after receiving it and sends an acknowledgement (ACK) (S12) to the first electronic device 11 if the set-packet is correct. All of the network packets transmitted to the second electronic device 12 from the first electronic device 11 are checked by the second electronic device 12 and ACKs are sent back according thereto; therefore, the process will not be stated repeatedly in the description below.
When the first electronic device 111 and the second electronic device 12 are in the same WLAN according to the setting information in the set-packet, the first electronic device 11 can begin transmitting a screen frame. First, the first electronic device 11 transmits a full screen frame (FSF) to the second electronic device 12 (S13), and the second electronic device 12 displays the FSF after receiving it (S14). Then, the first electronic device 11 transmits only the information of a combined region, which corresponds to the changed areas in the FSF, or portions of the FSF with overlapped areas having been removed. Different rectangle data (RD) are thus formed (S15) and transmitted to the second electronic device 12 (S16). The second electronic device 12 reconstructs an updated screen frame (USF) according to the RD for display (S17). Steps S15, S16, and S17 are repeated for effectively transmitting the screen frame of the first electronic device 11 to the second electronic device 12.
Though the aforementioned transmitting process is data transmission between the first electronic device 11 and the second electronic device 12, the third electronic device 13 is able to intercept the network packets that are transmitted between the first electronic device 11 and the second electronic device 12. The third electronic device 13 scans all usable transmitting channels in WLAN and intercepts the set-packet for setting up the network configuration of the third electronic device 13 according to the SSID and channel number in the set-packet, thereby effectively intercepting the FSF and RD to reconstruct and display updated screen frames. Therefore, the first electronic device 11 periodically transmits the set-packet so that the third electronic device 13 can intercept the set-packet at anytime to receive the screen frame.
The processing of rectangle data (RD) by the first electronic device 111 and the reconstruction of updated screen frame by the second electronic device 12 and the third electronic device 13 will be described in detail. Referring to FIGS. 2 to 4, a method for transmitting screen frames from one to many terminals according to an embodiment of the invention is disclosed.
Referring to
Moreover, since the third electronic device 13 can enter the network at anytime to receive the screen frame, the third electronic device 13 may not have received the FSF transmitted in step S21. In order to give the later entered third electronic device 13 a complete screen frame, the first electronic device 11 divides a current screen frame into a plurality of divided rectangles (DR) (S23), and sequentially attaches information of one of the divided rectangles in each CR transmission. Thus, after a cycle, the third electronic device 13 will receive a complete screen frame.
Next, the first electronic device 11 transmits each rectangle data (RD) (S25) after notifying the receiving terminal the number of RDs for transmission, and determines whether all of the RDs have been transmitted (S26). If the RDs have not all been transmitted, return to step S25 for sending the RDs one by one, and if all of the RDs have been transmitted, return to step S22 and obtain changed areas in the screen frame, which are represented in a form of changed rectangles.
Referring to
The receiving terminal can use two buffers to temporarily store the screen frame so that the receiving process and the reconstruction of screen frame run smoothly; the flowchart thereof is shown in
It is to be noted that the image data at a certain position stored in the first buffer can be duplicated to the corresponding position in the second buffer if the image data in the rectangle data received by the receiving terminal is incomplete, thereby improving the quality of the output screen frame.
The method for transmitting screen frames from one to many terminals in the aforementioned embodiment can be implemented by software, for example, a computer executing each processing step after loading the software therein. Alternatively, the method can be implemented by hardware. As shown in
The receiving device 5 includes a network interface 51, a computation unit 52, a first buffer 53, a second buffer 54, and a video interface 55. The network interface 51 is used for signal-connection with a network 71 to receive the data related to a screen frame that is transmitted from the first electronic device 11. The computation unit 52 is used for executing each step in the aforementioned method to reconstruct an updated screen frame, the details of which will not be further described hereinafter. The first buffer 53 is used for storing the updated screen frame that is for displaying, and the second buffer 54 is used for storing a screen frame that is not completely updated. The video interface 55 is used for connecting with the image output device 72 to output the screen frame stored in the first buffer 53.
The method, system and receiving device for transmitting screen frames from one to many terminals according to the invention only need to transmit the complete full screen frame once, and the remaining transmissions are for portions of the screen frame that have changed, thereby the data quantity of screen frame transmitted is effectively reduced. Moreover, the data quantity of transmission is further reduced by removing the image data of overlapped rectangles and encoding the image data by way of run length coding that is easy to compute and maintains quality. In addition, the data of screen frames is transmitted on one-to-one basis, which solves the problem of high error rate in broadcast packet transmission, and so the third electronic device can intercept a complete screen frame, whereby the purpose of transmitting screen frames from one to many terminals is achieved. At the same time, the first electronic device attaches divided rectangles in transmissions of changed rectangles so that the receiving terminal can enter at anytime to receive the screen frame and reconstruct a complete screen frame after a cycle.
While the invention has been described by way of example and in terms of the preferred embodiments, it is to be understood that the invention is not limited to the disclosed embodiments. To the contrary, it is intended to cover various modifications and similar arrangements as would be apparent to those skilled in the art. For example, the aforementioned embodiments are described in the context of wireless local area network, but a person skilled in the art can adapt it to wired local area network and omit the process of transmitting set-packets which are characteristic of wireless local area network. Therefore, the scope of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements.
Number | Date | Country | Kind |
---|---|---|---|
94115257 | May 2005 | TW | national |