TWI783463B - Method for generating a human-machine interface, computer readable storage medium, computing device, and function operating device - Google Patents
Method for generating a human-machine interface, computer readable storage medium, computing device, and function operating device Download PDFInfo
- Publication number
- TWI783463B TWI783463B TW110115419A TW110115419A TWI783463B TW I783463 B TWI783463 B TW I783463B TW 110115419 A TW110115419 A TW 110115419A TW 110115419 A TW110115419 A TW 110115419A TW I783463 B TWI783463 B TW I783463B
- Authority
- TW
- Taiwan
- Prior art keywords
- function
- interface
- input
- parameter
- code
- Prior art date
Links
Images
Landscapes
- Selective Calling Equipment (AREA)
- User Interface Of Digital Computer (AREA)
- Electrotherapy Devices (AREA)
- Electrophonic Musical Instruments (AREA)
- Input From Keyboards Or The Like (AREA)
Abstract
Description
本發明涉及資訊技術領域,尤其涉及一種關於輸入/輸出(I/O)功能設定之人機介面。The present invention relates to the field of information technology, in particular to a man-machine interface related to input/output (I/O) function setting.
電腦裝置對外接收以及發送訊號都須經過主機板上之I/O接腳(pin),其中接收之訊號可由電腦裝置執行適當之處理,亦可在經轉換後透過接腳輸出。其中關於這些處理以及轉換等過程皆對應至該電腦裝置欲執行之I/O功能(例如通用型輸入輸出(GPIO)、類比數位轉換(ADC)、脈寬調變(PWM)以及通用異步收發器(UART)等)。傳統上,欲執行例如前述該些I/O功能時需撰寫對應該功能之程式碼。且欲變更對應該些功能之參數(例如對應UART功能之鮑率參數)時,亦需要重新更改程式碼之內容。因此,現有技術中,I/O功能的執行需要具有熟習某一種程式語言之人員,因而提升產業發展的技術門檻以及開發成本。The external receiving and sending signals of the computer device must go through the I/O pins (pins) on the motherboard. The received signals can be processed by the computer device or output through the pins after conversion. These processing and conversion processes are all corresponding to the I/O functions to be performed by the computer device (such as general-purpose input and output (GPIO), analog-to-digital conversion (ADC), pulse-width modulation (PWM) and universal asynchronous transceiver. (UART), etc.). Traditionally, to execute such I/O functions as mentioned above, it is necessary to write program codes corresponding to the functions. And when you want to change the parameters corresponding to these functions (such as the baud rate parameters corresponding to the UART function), you also need to change the content of the program code again. Therefore, in the prior art, the execution of the I/O function requires personnel familiar with a certain programming language, thus increasing the technical threshold and development cost of industrial development.
本發明之一目的在於提供一種關於I/O功能設定之人機介面產生方法、電腦可讀儲存媒體、計算裝置及功能執行裝置,可節省撰寫I/O功能程式碼以及修改功能相關參數之過程,降低執行I/O功能之技術門檻以及開發成本。One object of the present invention is to provide a method for generating a man-machine interface for I/O function setting, a computer-readable storage medium, a computing device, and a function execution device, which can save the process of writing I/O function codes and modifying function-related parameters , Lower the technical threshold and development cost of implementing I/O functions.
本發明之一實施方式之人機介面產生方法包括:在計算裝置上,基於功能選項之功能,產生對應該功能之功能參數介面,其中該功能參數介面包括至少一參數;在該計算裝置上,程式產生單元產生關聯於該功能及該參數之功能程式碼;以及將該功能程式碼輸出至功能執行裝置,其中該功能執行裝置執行該功能程式碼時,產生關聯於該功能之複數指令。A method for generating a man-machine interface according to an embodiment of the present invention includes: on the computing device, based on the function of the function option, generating a function parameter interface corresponding to the function, wherein the function parameter interface includes at least one parameter; on the computing device, The program generation unit generates the function code associated with the function and the parameter; and outputs the function code to the function execution device, wherein when the function execution device executes the function code, it generates a plurality of instructions associated with the function.
本發明之另一實施方式之載有程式之電腦可讀儲存媒體,該程式在被執行時產生以下操作:基於功能選項之功能,產生對應該功能之功能參數介面,其中該功能參數介面包括至少一參數;以及產生關聯於該功能及該參數之功能程式碼,其中該功能程式碼被執行時,產生關聯於該功能之複數指令。Another embodiment of the present invention is a computer-readable storage medium loaded with a program. When the program is executed, the following operations are generated: based on the function of the function option, a function parameter interface corresponding to the function is generated, wherein the function parameter interface includes at least a parameter; and generating a function code associated with the function and the parameter, wherein when the function code is executed, a plurality of instructions associated with the function is generated.
本發明之又一實施方式之計算裝置包括功能選項、功能參數介面,該功能參數介面被配置為對應該功能選項之功能,且該功能參數介面包括至少一參數、程式產生單元,該程式產生單元被配置為產生關聯於該功能及該參數之功能程式碼以及顯示元件,該顯示元件被配置為提供該功能選項及該功能參數介面。A computing device according to another embodiment of the present invention includes a function option and a function parameter interface, the function parameter interface is configured to correspond to the function of the function option, and the function parameter interface includes at least one parameter, a program generation unit, and the program generation unit It is configured to generate a function code associated with the function and the parameter, and a display element is configured to provide the function option and the function parameter interface.
本發明之再一實施方式之功能執行裝置被配置為執行對應功能之功能程式碼時,產生關聯於該功能之複數指令,且該功能執行裝置包括主機板,該主機板包括至少一輸入介面和(或)輸出介面。According to another embodiment of the present invention, the function execution device is configured to generate a plurality of instructions related to the function when executing the function code corresponding to the function, and the function execution device includes a motherboard, and the motherboard includes at least one input interface and (or) output interface.
以下透過描述具體之實施例以及參照圖式,說明本發明之人機介面產生方法、電腦可讀儲存媒體、計算裝置及功能執行裝置。本領域技術人員可藉由本公開內容,理解本發明技術概念與效果。惟在不悖離本發明之邏輯脈絡下,本領域技術人員可以基於本發明內容,設計替代之實施例,而不脫離所附專利申請之範圍。意即,本說明書並不旨在限制本發明之實施方式,以下所示出之各個面向皆為本發明之示例性配置。The following describes the man-machine interface generation method, computer-readable storage medium, computing device and function execution device of the present invention by describing specific embodiments and referring to the drawings. Those skilled in the art can understand the technical concepts and effects of the present invention through the disclosure. However, without departing from the logic of the present invention, those skilled in the art can design alternative embodiments based on the content of the present invention without departing from the scope of the attached patent application. That is to say, this description is not intended to limit the implementation of the present invention, and each aspect shown below is an exemplary configuration of the present invention.
以下參照圖1-3說明本發明實施例之人機介面產生方法。The method for generating a man-machine interface according to an embodiment of the present invention will be described below with reference to FIGS. 1-3 .
本發明實施例之人機介面產生方法至少包括產生程序600。其中步驟610包括:在計算裝置30上,基於一功能選項110之功能F,產生對應該功能F之功能參數介面200,其中該功能參數介面200包括至少一參數210。在本實施例中,功能F可以包括關於I/O設定之各種功能(例如通用型輸入輸出(GPIO)、類比數位轉換(ADC)、脈寬調變(PWM)以及通用異步收發器(UART)、輸入捕捉(input capture)、設定系統時間(real-time clock, RTC)以及設定顯示模組背光亮度等)。功能選項110為以例如為視覺化或文字化表示功能F之選項,例如參照圖1,功能選項110a表示GPIO功能、功能選項110b表示ADC功能。所謂「對應功能F」之意義可例如是,不同之I/O設定功能所需之參數210各不相同(例如GPIO須設定暫存器編號以及上拉電阻狀態,UART須設定鲍率(baud rate)等)。因此,對應功能F之功能參數介面200會包含設定功能F所需之參數210。意即,參數210之內容及數量皆會對應功能F而改變。因此,選擇功能選項110會作為計算裝置30的一個輸入,計算裝置30根據該輸入,判斷功能F以及對應之參數210。其後,在功能參數介面200上輸出該對應之參數210。The method for generating a man-machine interface in the embodiment of the present invention includes at least a generating
在步驟620處,包括:在該計算裝置30上,以程式產生單元(未示出)產生關聯於該功能F及該參數210之功能程式碼。在本實施例中,該功能程式碼係對應功能F欲產生之功效(例如將類比訊號轉為數位訊號)而產生。且該功能程式碼中,因應該功效所需之變數則是對應參數210而產生。
在步驟630處,包括:將該功能程式碼輸出至功能執行裝置40,其中功能執行裝置40執行功能程式碼時,產生關聯於功能F之複數指令。其中,該功能程式碼之輸出,可以透過任何有線或無線之連接方式。例如透過通用序列匯流排(USB)、有線乙太網路或是無線區域網路等方式傳輸該功能程式碼,皆包含於本公開內容中「輸出」之定義範圍內。惟前述列出之連接方式僅為示例,本發明並不限於此。
接續說明步驟630。該複數指令係指,為了使功能執行裝置40執行功能F,而針對功能執行裝置40內部之特定部件發送之控制訊號。意即,該些指令旨在控制功能執行裝置40內部之特定部件。例如,當功能F預期產生之功效為類比/數位轉換時,該些指令可以控制功能執行裝置40內部之類比數位轉換器,使其針對輸入之訊號進行轉換。The description continues with
本發明之實施例之人機介面產生方法之功能程式碼還可以進一步包括輸入/輸出控制程式碼以及輸入/輸出暫存程式碼。前述程式碼經功能執行裝置40執行後分別產生輸入/輸出控制指令及輸入/輸出暫存指令。該輸入/輸出控制指令旨在控制功能執行裝置40之主機板410,針對功能F對應之特定輸入介面和(或)輸出介面,執行輸入和(或)輸出。例如當功能F對應之功效為ADC時,該輸入/輸出控制指令則控制關聯於ADC之特定接腳執行類比訊號的輸入,並於訊號完成轉換後控制關聯於ADC之特定接腳執行數位訊號的輸出。The function codes of the man-machine interface generating method of the embodiment of the present invention may further include input/output control codes and input/output temporary storage codes. The aforementioned program codes are executed by the
承上,該輸入/輸出暫存指令則旨在控制功能執行裝置40之暫存器,使根據參數210之暫存器可以對應功能F進行寫入和(或)寫出。例如,參數210中可以包含指定之暫存器編號,該暫存器編號作為變數被包含在輸入/輸出暫存程式碼中,使得該輸入/輸出暫存指令能夠控制該編號之暫存器進行寫入和(或)寫出。Continuing from the above, the input/output temporary storage command is intended to control the temporary storage of the
透過前述程序600之配置,本發明一實施例之人機介面產生方法可以根據功能選項110之功能F以及功能參考介面200之參數210,自主產生對應之功能程式碼。藉此可以節省撰寫針對I/O功能設定之程式碼,達到快速進行I/O設定之目的,同時也降低了技術之門檻與成本。Through the configuration of the
此外,本發明之一實施例之人機介面產生方法之計算裝置30還可以進一步包括功能選擇介面100。該功能選擇介面100包含對應複數功能(例如GPIO、ADC、PWM、UART、input capture以及RTC等)之複數功能選項110。且該功能選擇介面100可以由計算裝置30之顯示元件310提供,以呈現給使用者。同時,該複數功能選項110可以由使用者選擇。具體言之,該使用者之選擇可以藉由任何輸入裝置320(例如鍵盤、滑鼠以及觸控螢幕等)輸入計算裝置30。計算裝置30在接收該些輸入裝置320觸發事件後,針對該些點選、觸控或鍵入之標的(即選擇之功能F)產生對應之功能參數介面200。同樣地,該功能參數介面200亦可由計算裝置30之顯示元件310提供,並呈現給使用者。同時,功能參數介面200之參數210亦可由使用者編輯,並藉由例如前述之任何輸入裝置320輸入計算裝置30。使用者編輯之方式可以包括直接鍵入數值、點擊下拉式選單215或者拉動參數滑桿(未示出)等。計算裝置30在接收該些輸入裝置320觸發事件後,針對該些點選、觸控或鍵入之標的(即編輯之參數210)產生對應功能F之功能程式碼。In addition, the
在此配置下,使用者可根據預期產生之I/O功效選擇功能選項110,並透過功能參數介面200修改功能F之參數210。藉此,使用者可以快速選擇功能F並且修改其參數210,而不須手動撰寫程式碼。Under this configuration, the user can select the
本發明之另一實施例為載有程式之電腦可讀儲存媒體,其可被用以實現前述人機介面之產生方法。計算裝置30讀取該所載之程式時,可至少執行圖2中之步驟610及步驟620。該電腦可讀儲存媒體可以包括任何攜帶或儲存程式碼並且可以被電腦存取之媒體,例如RAM、ROM、光碟、磁碟以及隨身碟等。前述之電腦可讀儲存媒體僅為示例,本發明不對此設限。Another embodiment of the present invention is a computer-readable storage medium carrying a program, which can be used to realize the aforementioned method for generating a human-machine interface. When the
參照圖1及圖3說明本發明之又一實施例之計算裝置30,計算裝置30包括功能選擇介面100、功能參數介面200以及顯示元件310。其中功能選擇介面100及功能參數介面200係藉由該顯示元件310呈現給使用者。類似於本發明之一實施例之人機介面產生方法,該功能選擇介面100具有複數功能選項110可供使用者選擇,且該功能參數介面200之參數210可由使用者編輯。其中,計算裝置30還包括程式產生單元(未示出),可根據使用者選擇之功能選項110以及參數210產生關連於功能F之功能程式碼。Referring to FIG. 1 and FIG. 3 , a
承上,類似於本發明之一實施例之人機介面產生方法,本實施例之功能程式碼可以進一步包括輸入/輸出控制程式碼以及輸入/輸出暫存程式碼。執行前述兩種程式碼時可以分別產生對應功能F以及參數210的兩種指令。該兩種指令可以分別控制輸入輸出介面執行輸入和(或)輸出動作,以及控制暫存器執行寫入和(或)寫出動作。As mentioned above, similar to the man-machine interface generation method of an embodiment of the present invention, the function code of this embodiment may further include an input/output control code and an input/output temporary storage code. When executing the aforementioned two kinds of program codes, two kinds of instructions corresponding to the function F and the
參照圖3及圖4說明本發明再一實施例之功能執行裝置40,其包括主機板410以及至少一個暫存器。該主機板410可以包括複數個不同作用之輸入介面和輸出介面。具體而言,該輸入介面和輸出介面之數量及作用係對應於複數功能選項110。例如在本實施例中,複數功能選項110之功能F包括ADC,則主機板410包含能夠接收類比訊號之接腳412。或者,在本實施例中,複數功能選項110之功能F包括設定顯示模組背光亮度,則主機板410包含能夠連接顯示模組之連接器415,使得主機板410能夠透過該連接器415傳輸訊號以控制該顯示模組之亮度。應當注意的是,主機板410可以包括任何能夠達成功能F之輸入介面和(或)輸出介面,以上僅為示例性說明。Referring to FIG. 3 and FIG. 4 , a
承上,功能執行裝置40可以任何方式接收如前述實施例中之功能程式碼。功能執行裝置40執行該功能程式碼時,產生對應功能F之複數指令。類似於本發明實施例之人機介面產生方法,該些指令旨在控制功能執行裝置40內部之特定部件,使功能執行裝置達成功能F。例如主機板410在接受到相關之指令時,可以依指令控制輸入和(或)輸出介面執行輸入和(或)輸出動作。相同地,暫存器在接受到相關之指令時,也可以控制暫存器執行寫入和(或)寫出動作。其中,主機板410與暫存器所執行之動作皆係達成功能F所需要之程序。As mentioned above, the
本文中所稱之「計算裝置」,可以是任何具有計算功能之電子設備,例如桌上型電腦、筆記型電腦、行動裝置等。類似地,「功能執行裝置」可以包括任何具有處理功能之電子設備,例如處理器、微控制器、特殊應用積體電路或者數位信號處理器等。應當理解的是,前述示出之電子設備皆為示例性說明,本發明並不限於此。The "computing device" referred to in this article can be any electronic device with computing functions, such as desktop computers, notebook computers, mobile devices, etc. Similarly, a "function implementing device" may include any electronic device with processing functions, such as a processor, a microcontroller, an application-specific integrated circuit, or a digital signal processor. It should be understood that the electronic devices shown above are all illustrative, and the present invention is not limited thereto.
在本發明中揭露之所有程式碼可以是任何程式語言(例如C語言、python、Java等)之語句,本發明並未設限。且本公開內容中所稱之「執行」程式碼,可以包括將程式碼編譯後產生執行檔之過程。All the program codes disclosed in the present invention may be statements of any programming language (such as C language, python, Java, etc.), and the present invention is not limited thereto. Moreover, the "execution" of the program code in this disclosure may include the process of compiling the program code to generate an executable file.
上述之實施方式僅係為了使本領域之技術人員能夠理解本發明之說明性示例,而不具有限制之目的。例如,本文中使用之單數用語「一」、「該」同時亦包含複數之情況。所附圖式中各個元素、部件以及單元等之形狀、位置以及大小等均旨在簡潔、明確示出本發明之技術內容,而非對本發明產生限制。同時,眾所周知之細節或構造亦將在圖式中被省略。The above-mentioned embodiments are only illustrative examples for those skilled in the art to understand the present invention, and are not intended to be limiting. For example, the singular terms "a" and "the" used herein also include plural cases. The shape, position, and size of each element, component, and unit in the accompanying drawings are intended to be concise and clearly illustrate the technical content of the present invention, rather than to limit the present invention. Also, well-known details or constructions may be omitted in the drawings.
30…計算裝置
40…功能執行裝置
100…功能選擇介面
110…功能選項
200…功能參數介面
210…參數
215…下拉式選單
310…顯示元件
320…輸入裝置
410…主機板
412…接腳
415…連接器
417…主晶片
600…程序
610…步驟
620…步驟
630…步驟
F…功能
30…
圖1為本發明一實施例之人機介面產生方法之實施示意圖。FIG. 1 is a schematic diagram of the implementation of a method for generating a human-machine interface according to an embodiment of the present invention.
圖2為本發明一實施例之人機介面產生方法之流程圖。FIG. 2 is a flowchart of a method for generating a man-machine interface according to an embodiment of the present invention.
圖3為本發明各單元間之關係示意方塊圖。Fig. 3 is a schematic block diagram of the relationship among the units of the present invention.
圖4為本發明另一實施例之功能執行裝置之示意圖。FIG. 4 is a schematic diagram of a function executing device according to another embodiment of the present invention.
600…程序
610…步驟
620…步驟
630…步驟
600...
Claims (23)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW110115419A TWI783463B (en) | 2021-04-28 | 2021-04-28 | Method for generating a human-machine interface, computer readable storage medium, computing device, and function operating device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW110115419A TWI783463B (en) | 2021-04-28 | 2021-04-28 | Method for generating a human-machine interface, computer readable storage medium, computing device, and function operating device |
Publications (2)
Publication Number | Publication Date |
---|---|
TW202242618A TW202242618A (en) | 2022-11-01 |
TWI783463B true TWI783463B (en) | 2022-11-11 |
Family
ID=85793273
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW110115419A TWI783463B (en) | 2021-04-28 | 2021-04-28 | Method for generating a human-machine interface, computer readable storage medium, computing device, and function operating device |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI783463B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101408843A (en) * | 2008-11-18 | 2009-04-15 | 广东威创视讯科技股份有限公司 | Method and apparatus for generating program menu |
CN102289375A (en) * | 2011-09-02 | 2011-12-21 | 中兴通讯股份有限公司 | Code generation method and system |
TW202115570A (en) * | 2019-10-03 | 2021-04-16 | 奧暢雲服務股份有限公司 | User interface generating method and a computer system implementing the same |
-
2021
- 2021-04-28 TW TW110115419A patent/TWI783463B/en active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101408843A (en) * | 2008-11-18 | 2009-04-15 | 广东威创视讯科技股份有限公司 | Method and apparatus for generating program menu |
CN102289375A (en) * | 2011-09-02 | 2011-12-21 | 中兴通讯股份有限公司 | Code generation method and system |
TW202115570A (en) * | 2019-10-03 | 2021-04-16 | 奧暢雲服務股份有限公司 | User interface generating method and a computer system implementing the same |
Also Published As
Publication number | Publication date |
---|---|
TW202242618A (en) | 2022-11-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Anderson et al. | Pro Arduino | |
WO2015039628A1 (en) | Visualization step programming method | |
US20050093817A1 (en) | Apparatus method and system for improved feedback of pointing device event processing | |
TWI427965B (en) | Remote management system, kvm switch, and remote managing method | |
US20180107286A1 (en) | Virtual input device system | |
TWI783463B (en) | Method for generating a human-machine interface, computer readable storage medium, computing device, and function operating device | |
EP2801012B1 (en) | Supporting different event models using a single input source | |
US20140351251A1 (en) | Text-based command generation | |
EP4130960A1 (en) | Ui control generation and trigger methods, and terminal | |
Khner | Expert. NET Micro Framework | |
CN106371818B (en) | Method for processing user-level events to program application program | |
KR20140116400A (en) | Enabling performant cascading operations | |
CN101650656B (en) | Control method for software logic input device, input control system and computer system | |
KR20200022254A (en) | Apparatus and method for configuration of os based on self-defined definition | |
JP5705383B1 (en) | Touch operation compatible program code conversion method and program | |
Reuben et al. | GUI Composer: A Lightweight GUI Software Development Framework for WSN, IoT and Control System Application | |
CN114328302B (en) | Multi-host input control method, system, equipment and storage medium | |
JP7241931B2 (en) | Method, device, electronic device, storage medium and computer program for debugging mini-programs | |
JP5161558B2 (en) | Keyboard hot key code transmission method | |
TWM462860U (en) | Debug system and apparatus for providing graphical pin interface | |
US8122359B2 (en) | Apparatus, system, and method for topological display of user interface elements | |
CN211125024U (en) | CDROM controller | |
Lei et al. | Design of the instrument soft panel using windows presentation foundation | |
JP2007156728A (en) | Logic verification method and logic verification system | |
JP2018049350A (en) | CAD command input device |