TWI447593B - System and method for communicating between user interfaces - Google Patents
System and method for communicating between user interfaces Download PDFInfo
- Publication number
- TWI447593B TWI447593B TW097115435A TW97115435A TWI447593B TW I447593 B TWI447593 B TW I447593B TW 097115435 A TW097115435 A TW 097115435A TW 97115435 A TW97115435 A TW 97115435A TW I447593 B TWI447593 B TW I447593B
- Authority
- TW
- Taiwan
- Prior art keywords
- user interface
- communication file
- communication
- control command
- execution result
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims description 11
- 238000004891 communication Methods 0.000 claims description 81
- 230000005540 biological transmission Effects 0.000 claims description 9
- 238000010586 diagram Methods 0.000 description 2
Landscapes
- Computer And Data Communications (AREA)
Description
本發明涉及一種用戶介面通訊系統及方法。The invention relates to a user interface communication system and method.
應用軟體是用戶可以使用各種程式設計語言編制的應用程式的集合。應用軟體是為滿足用戶不同領域、不同問題的應用需求而提供的軟體。它可以拓寬電腦系統的應用領域,放大硬體的功能。Application software is a collection of applications that users can build in a variety of programming languages. Application software is a software provided to meet the application needs of users in different fields and different problems. It can broaden the application area of computer systems and amplify the functions of hardware.
幾乎每個應用軟體都有其相應的用戶介面,其可在電腦系統中實現用戶與電腦資訊交換,讓用戶順利的操作電腦系統。然而,由於各個應用軟體的編程語言、編程環境的不同,許多應用程式的用戶介面之間並不能互相進行資料通訊,這給用戶的使用帶來了很大的麻煩。Almost every application software has its own user interface, which enables user and computer information exchange in the computer system, allowing users to operate the computer system smoothly. However, due to the different programming languages and programming environments of various application softwares, the user interfaces of many applications cannot communicate with each other, which brings great trouble to the user.
鑒於以上內容,有必要提供一種用戶介面通訊系統及方法,其可讓複數個用戶介面進行互相通訊,提高了用戶使用效率。In view of the above, it is necessary to provide a user interface communication system and method, which allows a plurality of user interfaces to communicate with each other, thereby improving user efficiency.
一種用戶介面通訊系統,運行於電腦上,所述之電腦包括有第一用戶介面及第二用戶介面,所述之用戶介面通訊系統包括:創建模組,用於創建並初始化通訊檔案;接收模組,用於藉由通訊檔案接收第一用戶介面所下達的控制命令;傳送模組,用於藉由通訊檔案將該控制命令傳送給第二用戶介面;第二用戶介面接收到傳送模組傳送過來的控制命令後,根據該控制命令執行相應的任務,並得到一個執行結果;所 述之接收模組,還用於藉由通訊檔案接收第二用戶介面的任務執行結果;及所述之傳送模組,還用於藉由通訊檔案將所接收的任務執行結果傳送給第一用戶介面。A user interface communication system running on a computer, the computer comprising a first user interface and a second user interface, the user interface communication system comprising: a creation module for creating and initializing a communication file; a group, configured to receive a control command issued by the first user interface by using the communication file; the transmission module is configured to transmit the control command to the second user interface by using the communication file; and the second user interface receives the transmission module transmission After the control command comes over, the corresponding task is executed according to the control command, and an execution result is obtained; The receiving module is further configured to receive a task execution result of the second user interface by using the communication file; and the transmitting module is further configured to transmit the received task execution result to the first user by using the communication file interface.
一種用戶介面通訊方法,該方法包括如下步驟:提供一個電腦,該電腦包括有第一用戶介面及第二用戶介面;創建並初始化通訊檔案;藉由通訊檔案接收第一用戶介面所下達的控制命令;藉由通訊檔案將該控制命令傳送給第二用戶介面;第二用戶介面接收到傳送過來的控制命令後,根據該控制命令執行相應的任務,並得到一個執行結果;藉由通訊檔案接收第二用戶介面的任務執行結果;及藉由通訊檔案將所接收的任務執行結果傳送給第一用戶介面。A user interface communication method, the method comprising the steps of: providing a computer, the computer comprising a first user interface and a second user interface; creating and initializing a communication file; receiving a control command issued by the first user interface by using the communication file Transmitting the control command to the second user interface by using the communication file; after receiving the transmitted control command, the second user interface performs the corresponding task according to the control command, and obtains an execution result; The task execution result of the two user interfaces; and transmitting the received task execution result to the first user interface by using the communication file.
相較於習知技術,所述之用戶介面通訊系統及方法利用一個通訊檔案讓複數個用戶介面進行互相通訊,提高了用戶使用效率。Compared with the prior art, the user interface communication system and method utilize a communication file to allow a plurality of user interfaces to communicate with each other, thereby improving user efficiency.
如圖1所示,係本發明用戶介面通訊系統的較佳實施方式的應用環境架構圖。所述之用戶介面通訊系統11安裝並運行於所述之電腦1內。所述之電腦1還包括有第一用戶介面12及第二用戶介面13。As shown in FIG. 1, it is an application environment architecture diagram of a preferred embodiment of the user interface communication system of the present invention. The user interface communication system 11 is installed and operates in the computer 1 described above. The computer 1 further includes a first user interface 12 and a second user interface 13.
本發明的思想是:創建一個通訊檔案,讓所述之第一用戶介面12及第二用戶介面13都可以訪問,利用所述之通訊檔案的資料傳遞功能來讓第一用戶介面12及第二用戶介面13進行間接的資料通訊。在其他較佳實施方式中,本發明並不限於只利用通訊檔案讓第一用戶介面12及第二用戶介面13 進行資料通訊,本發明還可利用該通訊檔案進行複數個用戶介面之間的資料通訊。The idea of the present invention is to create a communication file, so that the first user interface 12 and the second user interface 13 can be accessed, and the first user interface 12 and the second user interface are utilized by using the data transfer function of the communication file. User interface 13 performs indirect data communication. In other preferred embodiments, the present invention is not limited to using only the communication file to allow the first user interface 12 and the second user interface 13 For data communication, the present invention can also utilize the communication file to perform data communication between a plurality of user interfaces.
所述之用戶介面通訊系統11包括創建模組111、接收模組112及傳送模組113。The user interface communication system 11 includes a creation module 111, a receiving module 112, and a transmission module 113.
所述之創建模組111,用於創建通訊檔案,並初始化設置該通訊檔案。在本較佳實施方式中,創建模組111初始化設置通訊檔案是通過設置複數個不同的控制鍵值來實現的,第一用戶介面12只需改變該所設置的控制鍵值來下達控制命令。當然,在其他實施方式中,創建模組111也可通過設置其他類型的控制命令,例如資料讀取命令、資料傳輸命令,來初始化設置通訊檔案。The creating module 111 is configured to create a communication file and initialize the communication file. In the preferred embodiment, the creation of the module 111 to initialize the communication file is implemented by setting a plurality of different control key values. The first user interface 12 only needs to change the set control key value to issue the control command. Of course, in other embodiments, the creation module 111 can also initialize the communication file by setting other types of control commands, such as a data read command and a data transfer command.
例如,可創建並初始化一個用於測試控制的通訊檔案為: Test Start=0 Test Finish=0 A Function Test Result=0 B Function Test Result=0 C Function Test Result=0For example, you can create and initialize a communication file for test control: Test Start=0 Test Finish=0 A Function Test Result=0 B Function Test Result=0 C Function Test Result=0
在上述創建的通訊檔案中,各控制鍵值Test Start、Test Finish、A FunctionTest Result、B Function Test Result、C Function Test Result都初始化設置為0。控制鍵值Test Start用於設置是否開始測試的命令,當Test Start變成1時,表示命令第二用戶介面13開始執行測試任務;控制鍵值Test Finish用於設置是否測試完畢的命令,當Test Finish變成1時,表示第 二用戶介面13的測試任務執行完畢;控制鍵值A Function Test Result,B Function Test Result,C Function Test Result分別表示各個測試任務的執行情況,其中,值為1表示通過測試,值為0表示未通過測試。In the communication file created above, each control key value Test Start, Test Finish, A Function Test Result, B Function Test Result, and C Function Test Result are all initialized to 0. The control key value Test Start is used to set whether to start the test command. When Test Start becomes 1, it indicates that the command second user interface 13 starts to execute the test task; the control key value Test Finish is used to set whether the test is completed, when Test Finish When it becomes 1, it means the first The test task of the second user interface 13 is completed; the control key value A Function Test Result, B Function Test Result, and C Function Test Result respectively indicate the execution status of each test task, wherein a value of 1 indicates that the test passes, and a value of 0 indicates that the test task is not Passed the test.
當第一用戶介面12需要與第二用戶介面13進行資料通訊時,第一用戶介面12首先下達控制命令給所創建的通訊檔案。例如,在本實施方式中,下達的控制命令為設置Test Start=1。When the first user interface 12 needs to communicate with the second user interface 13, the first user interface 12 first issues a control command to the created communication file. For example, in the present embodiment, the release control command is to set Test Start=1.
所述之接收模組112,用於藉由通訊檔案接收第一用戶介面12所下達的控制命令。The receiving module 112 is configured to receive a control command issued by the first user interface 12 by using a communication file.
所述之傳送模組113,用於藉由通訊檔案將該所下達的控制命令傳送給第二用戶介面13。The transmitting module 113 is configured to transmit the issued control command to the second user interface 13 by using the communication file.
所述之第二用戶介面13接收到傳送模組113傳送過來的控制命令後,根據該控制命令執行相應的任務,任務執行完畢後得到一個執行結果,並將該執行結果發送給所述之通訊檔案。在本較佳實施方式中,第二用戶介面13所發送的執行結果可以是各控制鍵值,也可以是其他類型的資料,比如執行結果資料的路徑。例如,在本較佳實施方式中,第二用戶介面13執行A、B、C測試任務,得出A、C通過測試,B未通過測試,則將發出測試結果為設置A Function Test Result=l,B Function Test Result=0,C Function Test Result=1,當A、B、C均測試完畢後,並設置Test Finish=1。After receiving the control command transmitted by the transmission module 113, the second user interface 13 executes a corresponding task according to the control command, and after the task is executed, an execution result is obtained, and the execution result is sent to the communication. file. In the preferred embodiment, the execution result sent by the second user interface 13 may be each control key value, or may be other types of data, such as a path for executing the result data. For example, in the preferred embodiment, the second user interface 13 performs the A, B, and C test tasks, and the A and C pass the test, and if the B fails the test, the test result is issued to set the A Function Test Result=l. , B Function Test Result=0, C Function Test Result=1, when A, B, C are all tested, and set Test Finish=1.
所述之接收模組112,還用於藉由通訊檔案接收第二用戶介面13的任務執行結果。The receiving module 112 is further configured to receive a task execution result of the second user interface 13 by using the communication file.
所述之傳送模組113,還用於藉由通訊檔案將所接收的任務執行結果傳送給第一用戶介面12。The transmitting module 113 is further configured to transmit the received task execution result to the first user interface 12 by using the communication file.
第一用戶介面12接收到任務執行結果,可根據該任務執行結果繼續執行其他任務。The first user interface 12 receives the task execution result, and can continue to perform other tasks according to the task execution result.
如圖2所示,係本發明用戶介面通訊方法較佳實施方式的流程圖。首先,步驟S11,創建模組111創建通訊檔案,並初始化該通訊檔案。在本較佳實施方式中,創建模組111初始化設置通訊檔案是通過設置複數個不同的控制鍵值來實現的,第一用戶介面12只需改變該所設置的控制鍵值來下達控制命令。當然,在其他實施方式中,也可通過設置其他類型的控制命令,例如資料讀取命令、資料傳輸命令,來初始化設置通訊檔案。2 is a flow chart of a preferred embodiment of the user interface communication method of the present invention. First, in step S11, the creation module 111 creates a communication file and initializes the communication file. In the preferred embodiment, the creation of the module 111 to initialize the communication file is implemented by setting a plurality of different control key values. The first user interface 12 only needs to change the set control key value to issue the control command. Of course, in other embodiments, the setting communication file can also be initialized by setting other types of control commands, such as a data read command and a data transfer command.
步驟S12,第一用戶介面12下達控制命令給所創建的通訊檔案。In step S12, the first user interface 12 issues a control command to the created communication file.
步驟S13,接收模組112藉由通訊檔案接收第一用戶介面12所下達的控制命令,並且傳送模組113藉由通訊檔案將所下達的控制命令傳送給第二用戶介面13。In step S13, the receiving module 112 receives the control command issued by the first user interface 12 through the communication file, and the transmitting module 113 transmits the released control command to the second user interface 13 by using the communication file.
步驟S14,第二用戶介面13接收到傳送模組113傳送過來的控制命令後,根據該控制命令執行相應的任務,任務執行完畢後得到一個執行結果。In step S14, after receiving the control command transmitted by the transmission module 113, the second user interface 13 executes the corresponding task according to the control command, and obtains an execution result after the task is executed.
步驟S15,第二用戶介面13將該執行結果發送給所述之通訊檔案。In step S15, the second user interface 13 sends the execution result to the communication file.
步驟S16,接收模組112藉由通訊檔案接收第二用戶介面13的任務執行結果,並且傳送模組113藉由通訊檔案將所接 收的任務執行結果傳送給第一用戶介面12。第一用戶介面12接收到任務執行結果,可根據該任務執行結果繼續執行其他任務。In step S16, the receiving module 112 receives the task execution result of the second user interface 13 by using the communication file, and the transmitting module 113 is connected by the communication file. The received task execution result is transmitted to the first user interface 12. The first user interface 12 receives the task execution result, and can continue to perform other tasks according to the task execution result.
以上實施方式僅用以說明本發明的技術方案而非限制,儘管參照以上較佳實施方式對本發明進行了詳細說明,本領域的普通技術人員應當理解,可以對本發明的技術方案進行修改或等同替換都不應脫離本發明技術方案的精神和範圍。The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to be limiting, and the present invention will be described in detail with reference to the preferred embodiments of the present invention. Neither should the spirit and scope of the technical solutions of the present invention be deviated.
電腦‧‧‧1Computer ‧‧1
用戶介面通訊系統‧‧‧11User interface communication system ‧‧11
第一用戶介面‧‧‧12First user interface ‧‧12
第二用戶介面‧‧‧13Second user interface ‧‧13
創建模組‧‧‧111Create a module ‧‧‧111
接收模組‧‧‧112Receiving module ‧‧‧112
傳送模組‧‧‧113Transmission module ‧‧‧113
創建通訊檔案,並初始化該通訊檔案‧‧‧S11Create a communication file and initialize the communication file ‧‧‧S11
第一用戶介面下達控制命令給該通訊檔案‧‧‧S12The first user interface issues a control command to the communication file ‧‧‧S12
藉由通訊檔案接收該控制命令,並將該控制命令傳送給第二用戶介面‧‧‧S13Receiving the control command via the communication file and transmitting the control command to the second user interface ‧‧‧S13
第二用戶介面接收到所下達的控制命令後,根據該控制命令執行相應的任務,並得到執行結果‧‧‧S14After receiving the released control command, the second user interface performs the corresponding task according to the control command, and obtains the execution result ‧‧‧S14
第二用戶介面將該執行結果發送給所述之通訊檔案‧‧‧S15The second user interface sends the execution result to the communication file ‧‧‧S15
藉由通訊檔案接收到任務執行結果後,將該執行結果傳送給第一用戶介面‧‧‧S16After receiving the task execution result through the communication file, the execution result is transmitted to the first user interface ‧‧S16
圖1係本發明用戶介面通訊系統的較佳實施方式的應用環境架構圖。1 is a diagram of an application environment architecture of a preferred embodiment of a user interface communication system of the present invention.
圖2係本發明用戶介面通訊方法較佳實施方式的流程圖。2 is a flow chart of a preferred embodiment of a user interface communication method of the present invention.
創建通訊檔案,並初始化該通訊檔案‧‧‧S11Create a communication file and initialize the communication file ‧‧‧S11
第一用戶介面下達控制命令給該通訊檔案‧‧‧S12The first user interface issues a control command to the communication file ‧‧‧S12
藉由通訊檔案接收該控制命令,並將該控制命令傳送給第二用戶介面‧‧‧S13Receiving the control command via the communication file and transmitting the control command to the second user interface ‧‧‧S13
第二用戶介面接收到所下達的控制命令後,根據該控制命令執行相應的任務,並得到執行結果‧‧‧S14After receiving the released control command, the second user interface performs the corresponding task according to the control command, and obtains the execution result ‧‧‧S14
第二用戶介面將該執行結果發送給所述之通訊檔案‧‧‧S15The second user interface sends the execution result to the communication file ‧‧‧S15
藉由通訊檔案接收到任務執行結果後,將該執行結果傳送給第一用戶介面‧‧‧S16After receiving the task execution result through the communication file, the execution result is transmitted to the first user interface ‧‧S16
Claims (4)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW097115435A TWI447593B (en) | 2008-04-25 | 2008-04-25 | System and method for communicating between user interfaces |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW097115435A TWI447593B (en) | 2008-04-25 | 2008-04-25 | System and method for communicating between user interfaces |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TW200945059A TW200945059A (en) | 2009-11-01 |
| TWI447593B true TWI447593B (en) | 2014-08-01 |
Family
ID=44869601
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW097115435A TWI447593B (en) | 2008-04-25 | 2008-04-25 | System and method for communicating between user interfaces |
Country Status (1)
| Country | Link |
|---|---|
| TW (1) | TWI447593B (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050028036A1 (en) * | 2003-07-30 | 2005-02-03 | Kohsaku Shibata | Program debug apparatus, program debug method and program |
| TWI269983B (en) * | 2004-12-21 | 2007-01-01 | Unisvr Global Information Tech | Development method for sharing and transforming user interface (UI) in various integrated development environments (IDE) |
| TWI273791B (en) * | 2002-09-30 | 2007-02-11 | Microsoft Corp | System having event mechanism for keeping a client notified of changes in the user interface, and method for notifying a client of interesting user interface events |
| US20070061722A1 (en) * | 2005-09-13 | 2007-03-15 | International Business Machines Corporation | Transparency learning aide skin for GUI-based applications |
| US20070250819A1 (en) * | 2006-04-04 | 2007-10-25 | Brian Fjeldstad | Method and system for providing a visual debugger for an interpreted statistical language |
-
2008
- 2008-04-25 TW TW097115435A patent/TWI447593B/en not_active IP Right Cessation
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TWI273791B (en) * | 2002-09-30 | 2007-02-11 | Microsoft Corp | System having event mechanism for keeping a client notified of changes in the user interface, and method for notifying a client of interesting user interface events |
| US20050028036A1 (en) * | 2003-07-30 | 2005-02-03 | Kohsaku Shibata | Program debug apparatus, program debug method and program |
| TWI269983B (en) * | 2004-12-21 | 2007-01-01 | Unisvr Global Information Tech | Development method for sharing and transforming user interface (UI) in various integrated development environments (IDE) |
| US20070061722A1 (en) * | 2005-09-13 | 2007-03-15 | International Business Machines Corporation | Transparency learning aide skin for GUI-based applications |
| US20070250819A1 (en) * | 2006-04-04 | 2007-10-25 | Brian Fjeldstad | Method and system for providing a visual debugger for an interpreted statistical language |
Also Published As
| Publication number | Publication date |
|---|---|
| TW200945059A (en) | 2009-11-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP2862065B1 (en) | Intermediary virtual machine task management | |
| TWI239160B (en) | Remote booting method and apparatus applied in WAN based on IP technique | |
| US20200379930A1 (en) | System and method for transforming legacy sr-iov devices to appear as siov queue pairs using a management controller | |
| JP2008210115A (en) | System for operating usb device of local terminal on remote computer, method therefor and program therefor | |
| CN102937932A (en) | Automated testing device and method of integrated heterogeneous testing tool | |
| Palekar et al. | Design and Implementation of a Linux {SCSI} Target for Storage Area Networks | |
| CN104375855A (en) | Device and method for upgrading firmware through storage devices on basis of multiple vehicle-mounted MCUs | |
| JP6642944B2 (en) | Integration of class device interface and single host interface using embedded controller | |
| US20170255458A1 (en) | Module system, module based robot system, and update method for module system | |
| CN101373448B (en) | Computer system with remote management | |
| US20180095918A1 (en) | Universal serial bus emulation layer | |
| WO2011103729A1 (en) | Method for registering, canceling self-defined shell program and corresponding system | |
| US8127127B2 (en) | System and method for transferring configuration information to an embedded device using a command line interface | |
| CN102725735B (en) | Method and system for multithreading collaborative simulations | |
| WO2015131553A1 (en) | Data transmission method and system | |
| US20060206666A1 (en) | System and method for remotely accessible local virtual storage | |
| TWI447593B (en) | System and method for communicating between user interfaces | |
| CN103049401A (en) | Method, system and control device for controlling peripheral serial device | |
| CN114328349B (en) | Virtual serial port terminal system and its implementation method, device and computer storage medium | |
| CN112052132B (en) | Method, device, equipment and medium for debugging plug-in chip through SDIO interface | |
| CN111708568B (en) | Modularized development decoupling method and terminal | |
| Chtourou et al. | Proof of concept of a PIC wireless programmer interface for prototyping | |
| US7434014B2 (en) | System and method for the self-mirroring storage drives | |
| CN107220190A (en) | It is a kind of to realize the self-defined USB mouse of two-way information interaction and the system and method for keyboard with host driven | |
| Nehrbass et al. | Interfacing PC-based MATLAB directly to HPC resources |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| MM4A | Annulment or lapse of patent due to non-payment of fees |