TWI773089B - Control system for remotely updating control script - Google Patents

Control system for remotely updating control script Download PDF

Info

Publication number
TWI773089B
TWI773089B TW110101524A TW110101524A TWI773089B TW I773089 B TWI773089 B TW I773089B TW 110101524 A TW110101524 A TW 110101524A TW 110101524 A TW110101524 A TW 110101524A TW I773089 B TWI773089 B TW I773089B
Authority
TW
Taiwan
Prior art keywords
control
script
communication interface
control script
initial setting
Prior art date
Application number
TW110101524A
Other languages
Chinese (zh)
Other versions
TW202230117A (en
Inventor
蔡宗光
鄭宏毅
Original Assignee
安瀚科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 安瀚科技股份有限公司 filed Critical 安瀚科技股份有限公司
Priority to TW110101524A priority Critical patent/TWI773089B/en
Application granted granted Critical
Publication of TW202230117A publication Critical patent/TW202230117A/en
Publication of TWI773089B publication Critical patent/TWI773089B/en

Links

Images

Abstract

A control system is configured for remotely updating a control script, and includes a remote management server and at least a terminal controller. The remote management server is configured to send out a set of initial setting parameters in a first operation time, and set out the control script in a second operation time later than the first operation time. The terminal controller is configured to receive the set of initial setting parameters to set a set of initial BIOS setting parameters according to the set of initial setting parameters, so as to finish an initial BIOS setting in the first operation time. The terminal controller is further configured to receive the control script to set a set of script BIOS setting parameters according to the control script, so as to update and finish a script BIOS setting in the second operation time.

Description

用於遠端更新控制腳本之控制系統Control system for remote update control scripts

本發明係有關於一種控制系統,尤其是指一種用於遠端更新控制腳本之控制系統。The present invention relates to a control system, in particular to a control system for remotely updating control scripts.

在現有的技術中,多半會針對特定的終端設備或裝置控制需求而設計專用的終端控制器。因此,在生產製造終端控制器時,通常會將輸入/輸出模組之控制程序固化性寫入終端控制器之非揮發性記憶體中,所以終端控制器之輸入/輸出模組也就被限制為只能執行固定的功能。In the prior art, a dedicated terminal controller is mostly designed for specific terminal equipment or device control requirements. Therefore, when the terminal controller is manufactured, the control program of the input/output module is usually written into the non-volatile memory of the terminal controller, so the input/output module of the terminal controller is limited. To perform only fixed functions.

此外,也正因為輸入/輸出模組之控制程序固化性寫入終端控制器之非揮發性記憶體的緣故,一旦終端控制器對特定被控制對象之控制邏輯改變(如變換單位或判斷邏輯),或遭遇到其他問題需要修改輸入/輸出模組的設定時,不利於從遠端進行控制程序的遠距離變更。In addition, because the control program of the input/output module is written into the non-volatile memory of the terminal controller, once the control logic of the terminal controller for a specific controlled object is changed (such as conversion unit or judgment logic) , or encounter other problems and need to modify the settings of the input/output module, it is not conducive to the remote change of the control program from the remote end.

針對控制程序方面,若該種終端控制器的數量龐大,而且目前已廣泛應用在設置在多個不同位置的終端設備或裝置時,更不容易針對多個設置在不同位置的終端設備或裝置內的控制器進行控制程序的更新。In terms of control procedures, if the number of such terminal controllers is huge, and it has been widely used in terminal equipment or devices installed in multiple different locations, it is even more difficult to target multiple terminal devices or devices installed in different locations. The controller updates the control program.

針對生產製造方面,為了因應多種終端設備或裝置之使用情境需求,即便控制程序中的初始基本輸入/輸出設定是相同的,甚至連部分的控制邏輯也是相同或相容的,還是得開發不同的控制程序來加以滿足不同使用情境的需求,導致必須進行客制化的設計與生產模式,因而大幅增加生產管理方面的複雜性與困難度。For manufacturing, in order to meet the needs of various terminal equipment or devices, even if the initial basic input/output settings in the control program are the same, and even part of the control logic is the same or compatible, it is necessary to develop different Control procedures to meet the needs of different usage scenarios lead to the need for customized design and production models, thus greatly increasing the complexity and difficulty of production management.

有鑒於在先前技術中多半是將控制程序固化性寫入終端控制器之非揮發性記憶體中,所以造成不利於遠端更新以及生產管理複雜性與困難度提高的問題。本發明之主要目的在於提供一種用於遠端更新控制腳本之控制系統,其係將具有通用性且不需要(或不常需要)修改的一組初始設定參數在第一時間由遠端管理伺服器傳送至終端控制器,並固化性地儲存於終端控制器之非揮發性記憶體(NVM)。並將需要(特別是經常需要)依據使用情境需求而變更或修改之控制腳本在一晚於第一時間之第二時間由遠端管理伺服器傳送至終端控制器,儲存於隨機存取記憶體(RAM),以便於依據使用情境之需求而即時性地修改更新。In view of the fact that in the prior art, the control program is mostly written into the non-volatile memory of the terminal controller, which is not conducive to remote update and increases the complexity and difficulty of production management. The main purpose of the present invention is to provide a control system for remotely updating a control script, which is a set of initial setting parameters that are universal and do not need (or rarely need to be modified) to be modified by the remote management server at the first time The device is sent to the terminal controller, and stored in the non-volatile memory (NVM) of the terminal controller. The control script that needs to be changed or modified according to the needs of the usage situation (especially the frequent need) is transmitted from the remote management server to the terminal controller at a second time later than the first time, and stored in the random access memory. (RAM), so that it can be modified and updated in real time according to the needs of the usage situation.

本發明為解決先前技術中之上述種種問題所採用之技術手段係提供一種用於遠端更新控制腳本之控制系統,其係包含一遠端管理伺服器與至少一終端控制器。遠端管理伺服器包含一集中式管理控制器,且集中式管理控制器係在一第一時間傳送出一組初始設定參數,並在一晚於第一時間之第二時間傳送出一控制腳本。The technical means adopted by the present invention to solve the above problems in the prior art are to provide a control system for remotely updating control scripts, which includes a remote management server and at least one terminal controller. The remote management server includes a centralized management controller, and the centralized management controller sends a set of initial setting parameters at a first time, and sends a control script at a second time later than the first time .

每一終端控制器包含一通信介面、一記憶模組、一處理單元與一基本輸入/輸出模組。通信介面係通信連結於遠端管理伺服器,藉以在第一時間接收該組初始設定參數,並在第二時間接收控制腳本。記憶模組係電性連結於通信介面,並用以接收並儲存該組初始設定參數與控制腳本。Each terminal controller includes a communication interface, a memory module, a processing unit and a basic input/output module. The communication interface is communicatively connected to the remote management server, so as to receive the set of initial setting parameters at the first time, and receive the control script at the second time. The memory module is electrically connected to the communication interface, and is used for receiving and storing the group of initial setting parameters and control scripts.

處理單元係電性連結於記憶模組,內建有一腳本執行程序,藉以在第一時間依據該組初始設定參數設定一組初始基本輸入/輸出狀態參數,在第二時間依據控制腳本而執行腳本執行程序而更新設定一組腳本基本輸入/輸出狀態參數。The processing unit is electrically connected to the memory module, and has a built-in script execution program, so as to set a set of initial basic input/output state parameters according to the set of initial setting parameters at the first time, and execute the script according to the control script at the second time Execute the program to update and set a set of script basic input/output state parameters.

基本輸入/輸出模組係電性連接於處理單元,藉以在該第一時間之後,執行一開機程序時,依據該組初始設定參數完成一初始基本輸入/輸出設定;並在第二時間之後,執行腳本執行程序時,依據該組腳本基本輸入/輸出狀態參數而更新完成一腳本基本輸入/輸出設定。The basic input/output module is electrically connected to the processing unit, so that an initial basic input/output setting is completed according to the set of initial setting parameters when a boot procedure is executed after the first time; and after the second time, When the script execution program is executed, a script basic input/output setting is updated and completed according to the set of script basic input/output state parameters.

在上述必要技術手段的基礎下,較佳者,該記憶模組包含一非揮發性記憶體(NVM)與一隨機存取記憶體(RAM),該非揮發性記憶體(NVM)係在該第一時間接收並儲存該組初始設定參數,該隨機存取記憶體係用以在該第二時間接收並儲存該組初始設定參數。On the basis of the above-mentioned necessary technical means, preferably, the memory module includes a non-volatile memory (NVM) and a random access memory (RAM), and the non-volatile memory (NVM) is in the first The set of initial setting parameters is received and stored at one time, and the random access memory system is used for receiving and storing the set of initial setting parameters at the second time.

較佳者依據控制腳本更新的需求,若是只需要臨時性單一次更新,由該處理單元係直接自該隨機存取記憶體中讀取該控制腳本,並依據該控制腳本執行該腳本執行程序;相反地,若是需要永久性更新,該處理單元自該隨機存取記憶體中讀取該控制腳本,並先將該控制腳本儲存於該非揮發性記憶體(NVM)以覆蓋取代該組初始設定參數後,再依據該控制腳本執行該腳本執行程序。在處理單元完成更新設定該組腳本基本輸入/輸出狀態參數後,可將該組腳本基本輸入/輸出狀態參數經由通信介面傳送回集中式管理控制器。Preferably, according to the requirement for updating the control script, if only a single update is required temporarily, the processing unit directly reads the control script from the random access memory, and executes the script execution program according to the control script; On the contrary, if a permanent update is required, the processing unit reads the control script from the random access memory, and first stores the control script in the non-volatile memory (NVM) to overwrite and replace the set of initial setting parameters Then, the script execution program is executed according to the control script. After the processing unit completes updating and setting the set of script basic input/output state parameters, the set of script basic input/output state parameters may be sent back to the centralized management controller via the communication interface.

更佳者,為了便於遠端管理伺服器對控制腳本的管理,可使每一終端控制器係具有一唯一識別碼,並使遠端管理伺服器係對應複數個識別碼而儲存有複數組初始設定參數與包含該控制腳本在內之複數個適用控制腳本。當遠端管理伺服器經由通信介面讀取唯一識別碼後,可判斷唯一識別碼所對應之識別碼,據以將所對應之初始設定參數與控制腳本傳送至具有唯一識別碼之終端控制器。More preferably, in order to facilitate the management of the control script by the remote management server, each terminal controller can have a unique identification code, and the remote management server can store a plurality of initial groups corresponding to the plurality of identification codes. Set parameters and a plurality of applicable control scripts including the control script. When the remote management server reads the unique identification code through the communication interface, it can determine the identification code corresponding to the unique identification code, and accordingly transmit the corresponding initial setting parameters and control script to the terminal controller with the unique identification code.

此外,非揮發性記憶體與隨機存取記憶體可整合性地設置於一積體電路模組中。本發明中之通信介面可為一無線通信介面或一有線通信介面。當通信介面為無線通信介面時,可為一短距離無線通信介面(如一藍芽通信介面或一WIFI通信介面)或一長距離無線通信介面(如一4G通信介面或一GSM通信介面)。當通信介面為一有線通信介面時,可為一乙太網路通信介面、一USB通信介面、一RS232通信介面或一RJ485通信介面。In addition, the non-volatile memory and the random access memory can be integrated in an integrated circuit module. The communication interface in the present invention can be a wireless communication interface or a wired communication interface. When the communication interface is a wireless communication interface, it can be a short-range wireless communication interface (such as a Bluetooth communication interface or a WIFI communication interface) or a long-range wireless communication interface (such as a 4G communication interface or a GSM communication interface). When the communication interface is a wired communication interface, it can be an Ethernet communication interface, a USB communication interface, an RS232 communication interface or an RJ485 communication interface.

基於通信方式的不同,較佳者,用於遠端更新控制腳本之控制系統更可包含至少一通信中介裝置,通信介面可經由通信中介裝置而通信連結於該遠端管理伺服器,且通信中介裝置可包含一數據機、一無線通信基地台、一路由器、一閘道器、一中繼器與一區域網路伺服器中之至少一者。Based on different communication methods, preferably, the control system for remotely updating the control script may further include at least one communication intermediary device, the communication interface may be communicatively connected to the remote management server via the communication intermediary device, and the communication intermediary device The device may include at least one of a modem, a wireless communication base station, a router, a gateway, a repeater, and a local area network server.

關於控制腳本部分,較佳者,控制腳本可包含複數組對應於複數個邏輯裝置之控制命令,控制命令係依據該組初始設定參數調整出複數組對應於該些邏輯裝置之實際輸入/輸出狀態參數,且每一該些組實際輸入/輸出狀態參數包含用以產生一波形之週期、振幅、脈波數與佔空比中之至少一者。此外,控制腳本之語法係與處理單元之至少一指令集相異。Regarding the control script part, preferably, the control script may include a plurality of groups of control commands corresponding to a plurality of logic devices, and the control commands adjust the actual input/output states of the plurality of groups corresponding to the logic devices according to the group of initial setting parameters. parameters, and each of the sets of actual input/output state parameters includes at least one of a period, an amplitude, a pulse number, and a duty cycle used to generate a waveform. Furthermore, the syntax of the control script differs from at least one instruction set of the processing unit.

承上所述,由於在本發明所提供之用於遠端更新控制腳本之控制系統,係在終端控制器設置非揮發性記憶體(NVM)與隨機存取記憶體(RAM),並依據修改的需要性(如需要修改與不需要修改)與頻繁度(如需要經常修改或不需要經常修改)而分階段性地寫入設定資料。Based on the above, in the control system for remote update control script provided by the present invention, non-volatile memory (NVM) and random access memory (RAM) are set in the terminal controller, and according to the modification According to the need (such as need to modify or not to modify) and frequency (such as need to modify frequently or do not need to modify frequently), the setting data is written in stages.

具體地說,可在生產終端控制器的第一時間(終端控制器剛出廠時)將不需要修改(或不常需要)之一組初始設定參數由遠端管理伺服器傳送至終端控制器,並固化性地儲存於終端控制器之非揮發性記憶體(NVM),藉以簡化終端控制器的生產管理流程。Specifically, a group of initial setting parameters that do not need to be modified (or rarely needed) can be transmitted from the remote management server to the terminal controller at the first time of production of the terminal controller (when the terminal controller is just leaving the factory). And solidified stored in the non-volatile memory (NVM) of the terminal controller, so as to simplify the production management process of the terminal controller.

此外,可在遇到特定使用情境的第二時間(晚於第一時間),將需要依據使用情境需求而變更或修改之控制腳本由遠端管理伺服器傳送至終端控制器,儲存於隨機存取記憶體(RAM)或者由處理單元讀取後再儲存於非揮發性記憶體,以便於依據使用情境之需求而即時性地修改更新,藉以滿足各種使用情境的控制需求。顯然,藉由本發明所提供之用於遠端更新控制腳本之控制系統,不僅可以達到簡化終端控制器的生產管理流程之功效,更可兼顧滿足多種不同使用情境需求之功效。In addition, at a second time (later than the first time) when a specific usage situation is encountered, the control script that needs to be changed or modified according to the requirements of the usage situation can be sent from the remote management server to the terminal controller, and stored in the random memory. The RAM can be read by the processing unit and then stored in the non-volatile memory, so that it can be modified and updated in real time according to the needs of the use situation, so as to meet the control requirements of various use situations. Obviously, the control system for remotely updating the control script provided by the present invention can not only achieve the effect of simplifying the production management process of the terminal controller, but also meet the needs of various usage scenarios.

由於本發明所提供之用於遠端更新控制腳本之控制系統,可廣泛應用於多種控制腳本的更新,藉以完成多種設備裝置因應不同使用情境的輸入/輸出設定,其組合實施方式更是不勝枚舉,故在此不再一一贅述,僅列舉其中較佳的二個實施例來加以具體說明。Because the control system for remotely updating control scripts provided by the present invention can be widely used in the updating of various control scripts, so as to complete the input/output settings of various equipment devices in response to different usage scenarios, and the combination implementations are numerous. Therefore, the details are not repeated here, and only two preferred embodiments are listed for specific description.

請參閱第一圖,其係顯示本發明第一實施例所提供之用於遠端更新控制腳本之控制系統。如第一圖所示,一種用於遠端更新控制腳本之控制系統(以下稱「控制系統」)100,包含一遠端管理伺服器1與至少一終端控制器,在本實施例中包含三個終端控制器2、2a與2b。每個終端控制器都可用於控制至少一邏輯裝置,在本實施例中,終端控制器2可用於控制5個邏輯裝置3a-3e。5個邏輯裝置3a-3e可設置於單一個設備或裝置內,且邏輯裝置3a-3e中之一者可為一通用型輸入/輸出(GPIO)邏輯裝置、一脈波寬度調變(PWM)邏輯裝置或一類比數位轉換器(ADC)邏輯裝置。Please refer to the first figure, which shows the control system for remotely updating the control script provided by the first embodiment of the present invention. As shown in the first figure, a control system (hereinafter referred to as “control system”) 100 for remotely updating control scripts includes a remote management server 1 and at least one terminal controller. In this embodiment, it includes three terminal controllers 2, 2a and 2b. Each terminal controller can be used to control at least one logic device. In this embodiment, the terminal controller 2 can be used to control five logic devices 3a-3e. Five logic devices 3a-3e can be provided in a single device or device, and one of the logic devices 3a-3e can be a general purpose input/output (GPIO) logic device, a pulse width modulation (PWM) A logic device or an analog-to-digital converter (ADC) logic device.

請繼續參閱第二圖,其係顯示本發明第一實施例中之遠端管理伺服器與終端控制器之內部功能方塊圖。由於終端控制器2、2a與2b之內部功能以及與遠端管理伺服器1之間的資料或信號流通方式係相似或相同,在第二圖中僅列舉遠端管理伺服器1與終端控制器2之內部功能方塊為例加以說明。Please continue to refer to the second figure, which shows the internal functional block diagram of the remote management server and the terminal controller in the first embodiment of the present invention. Since the internal functions of the terminal controllers 2, 2a and 2b and the data or signal flow mode between them and the remote management server 1 are similar or the same, only the remote management server 1 and the terminal controller are listed in the second figure. The internal function block of 2 is taken as an example to illustrate.

遠端管理伺服器1包含一集中式管理控制器11與一電性連接於集中式管理控制器11之儲存模組12,且儲存模組12內儲存有一控制腳本查察表121、兩組初始設定參數(如第01組初始設定參數與第02組初始設定參數)與複數個適用控制腳本(包含控制腳本A-D及下列表一中未呈現出之其他控制腳本)。舉例來說,控制腳本查察表121可如表一所示,其中,集中式管理控制器11可藉由控制腳本查察表而得知目前的控制腳本,也可依據使用情境的需求修改個識別碼所對應之控制腳本。 表一:控制腳本查察表 識別碼 初始設定參數 適用控制腳本 前次更新日期 0001 第01組初始設定參數 控制腳本A YYYY/MM/DD 0002 第01組初始設定參數 控制腳本B YYYY/MM/DD 0003 第01組初始設定參數 控制腳本B YYYY/MM/DD 0004 第02組初始設定參數 控制腳本C YYYY/MM/DD 0005 第02組初始設定參數 控制腳本D YYYY/MM/DD The remote management server 1 includes a centralized management controller 11 and a storage module 12 electrically connected to the centralized management controller 11 , and the storage module 12 stores a control script lookup table 121 and two sets of initial Setting parameters (such as Group 01 initial setting parameters and Group 02 initial setting parameters) and a plurality of applicable control scripts (including control scripts AD and other control scripts not shown in Table 1 below). For example, the control script look-up table 121 can be as shown in Table 1, wherein the centralized management controller 11 can know the current control script through the control script look-up table, and can also modify the control script according to the needs of the usage situation. The control script corresponding to the identifier. Table 1: Control Script Checklist Identifier Initial setting parameters Applicable control scripts Date of last update 0001 Group 01 initial setting parameters control script A YYYY/MM/DD 0002 Group 01 initial setting parameters control script B YYYY/MM/DD 0003 Group 01 initial setting parameters control script B YYYY/MM/DD 0004 Group 02 Initial Setting Parameters control script C YYYY/MM/DD 0005 Group 02 Initial Setting Parameters control script D YYYY/MM/DD

終端控制器2包含一通信介面21、一記憶模組22、一處理單元23與一基本輸入/輸出模組24。The terminal controller 2 includes a communication interface 21 , a memory module 22 , a processing unit 23 and a basic input/output module 24 .

通信介面21係用以通信連結於遠端管理伺服器1,並且可依據實際之通信條件,而為一無線通信介面或一有線通信介面。具體而言,當選擇採用一無線通信介面作為通信介面21時,通信介面21可為一短距離無線通信介面(如一藍芽通信介面或一WIFI通信介面)或為一長距離無線通信介面(如一4G通信介面或一GSM通信介面)。當選擇採用一有線通信介面作為通信介面21時,通信介面21可為一乙太網路通信介面、一USB通信介面、一RS232通信介面或一RJ485通信介面。The communication interface 21 is used to communicate with the remote management server 1, and can be a wireless communication interface or a wired communication interface according to actual communication conditions. Specifically, when choosing to use a wireless communication interface as the communication interface 21, the communication interface 21 can be a short-range wireless communication interface (such as a Bluetooth communication interface or a WIFI communication interface) or a long-range wireless communication interface (such as a 4G communication interface or a GSM communication interface). When choosing to use a wired communication interface as the communication interface 21, the communication interface 21 can be an Ethernet communication interface, a USB communication interface, an RS232 communication interface or an RJ485 communication interface.

記憶模組22包含一非揮發性記憶體(NVM)221、一隨機存取記憶體(RAM)222。非揮發性記憶體221與隨機存取記憶體222係電性連結於通信介面21,且非揮發性記憶體221內係儲存有一唯一識別碼2211,在本實施例中終端控制器2之唯一識別碼為0002。較佳者,非揮發性記憶體221與隨機存取記憶體222可整合性地設置於同一個積體電路模組(圖未標示)中。處理單元23係分別電性連結於非揮發性記憶體221、隨機存取記憶體222與基本輸入/輸出模組24,並且內建有一腳本執行程序。The memory module 22 includes a non-volatile memory (NVM) 221 and a random access memory (RAM) 222 . The non-volatile memory 221 and the random access memory 222 are electrically connected to the communication interface 21, and a unique identification code 2211 is stored in the non-volatile memory 221, which is the unique identification of the terminal controller 2 in this embodiment. The code is 0002. Preferably, the non-volatile memory 221 and the random access memory 222 can be integrally disposed in the same integrated circuit module (not shown). The processing unit 23 is electrically connected to the non-volatile memory 221 , the random access memory 222 and the basic input/output module 24 respectively, and has a built-in script execution program.

在第一時間,譬如在終端控制器2出廠後進行初始化設定時,可使遠端管理伺服器1在經由通信介面21讀取唯一識別碼2211後,可判斷出唯一識別碼2211所對應之識別碼為控制腳本查察表121中的識別碼0002。據此,遠端管理伺服器1之集中式管理控制器11可在第一時間,從儲存模組12擷取出第01組初始設定參數,並經由通信介面21將第01組初始設定參數固化性地寫入儲存於記憶模組22之非揮發性記憶體221。同時,處理單元23可依據第01組初始設定參數設定一組初始基本輸入/輸出狀態參數。接著,基本輸入/輸出模組24係在第一時間之後,執行一開機程序時,依據該組初始設定參數完成一初始基本輸入/輸出設定。For the first time, for example, when the terminal controller 2 is initialized after leaving the factory, the remote management server 1 can determine the identification corresponding to the unique identification code 2211 after reading the unique identification code 2211 through the communication interface 21 . The code is the identification code 0002 in the control script lookup table 121 . Accordingly, the centralized management controller 11 of the remote management server 1 can retrieve the 01st group of initial setting parameters from the storage module 12 at the first time, and can stabilize the 01st group of initial setting parameters through the communication interface 21 The ground is written to the non-volatile memory 221 stored in the memory module 22 . Meanwhile, the processing unit 23 may set a set of initial basic input/output state parameters according to the 01st set of initial setting parameters. Next, the basic input/output module 24 completes an initial basic input/output setting according to the set of initial setting parameters when executing a booting procedure after the first time.

在晚於第一時間之第二時間,如在出廠後遇到新的使用情境需求為需要控制腳本B進行設定時,可使遠端管理伺服器1在經由通信介面21讀取終端控制器2之唯一識別碼2211後,可判斷出唯一識別碼2211所對應之識別碼為控制腳本查察表121中的識別碼0002。據此,遠端管理伺服器1之集中式管理控制器11可在第二時間,從儲存模組12擷取出控制腳本B,並經由通信介面21將控制腳本B寫入儲存於記憶模組22之隨機存取記憶體222。At the second time later than the first time, if a new usage situation needs to be set by the control script B after leaving the factory, the remote management server 1 can be enabled to read the terminal controller 2 through the communication interface 21 After obtaining the unique identification code 2211 , it can be determined that the identification code corresponding to the unique identification code 2211 is the identification code 0002 in the control script look-up table 121 . Accordingly, the centralized management controller 11 of the remote management server 1 can retrieve the control script B from the storage module 12 at the second time, and write and store the control script B in the memory module 22 via the communication interface 21 . the random access memory 222.

然後,處理單元23可依據控制腳本B執行腳本執行程序231而更新設定一組腳本基本輸入/輸出狀態參數,並將組腳本基本輸入/輸出狀態參數經由通信介面傳送回遠端管理伺服器1之集中式管理控制器11,藉以將控制腳本查察表121中的控制腳本欄位紀錄為控制腳本B,並將完成更新的日期記錄於前次更新日期欄位。藉由此措施可使集中式管理控制器11便於掌握各終端控制器的控制腳本使用與(版本或類型)更新狀況。接著,基本輸入/輸出模組24可在第二時間,處理單元23執行腳本執行程序231時,依據該組腳本基本輸入/輸出狀態參數而更新完成一腳本基本輸入/輸出設定。Then, the processing unit 23 can execute the script execution program 231 according to the control script B to update and set a set of script basic input/output state parameters, and transmit the set of script basic input/output state parameters back to the remote management server 1 via the communication interface The centralized management controller 11 records the control script field in the control script lookup table 121 as the control script B, and records the date when the update is completed in the last update date field. With this measure, the centralized management controller 11 can easily grasp the use and (version or type) update status of the control scripts of each terminal controller. Then, the basic input/output module 24 can update and complete a script basic input/output setting according to the set of script basic input/output state parameters when the processing unit 23 executes the script execution program 231 at the second time.

較佳者,依據不同的腳本更新需求,處理單元23可針對控制腳本B依據以下兩種更新模式中的其中一種進行更新。若是只需要臨時性單一次更新,即為暫時性更新模式。在暫時性更新模式下,由處理單元23係直接自隨機存取記憶體222中讀取控制腳本B,並依據控制腳本B執行該腳本執行程序231,如此一來,更新的控制腳本B僅適用於本次(硬)開機後的運作。在下次切斷電源後重新開機時,基本輸入/輸出模組24又回復到依據該組初始設定參數(即第01組初始設定參數)完成初始基本輸入/輸出設定。Preferably, according to different script update requirements, the processing unit 23 can update the control script B according to one of the following two update modes. If only a single temporary update is required, it is a temporary update mode. In the temporary update mode, the processing unit 23 directly reads the control script B from the random access memory 222, and executes the script execution program 231 according to the control script B. In this way, the updated control script B is only applicable to Operation after this (hard) boot. When the power is turned off next time, the basic input/output module 24 returns to complete the initial basic input/output setting according to the group of initial setting parameters (ie, the 01st group of initial setting parameters).

相反地,若是需要永久性更新,則為永久性更新模式。在永久性更新模式下,處理單元23自隨機存取記憶體222中讀取控制腳本B,會先將控制腳本B儲存於非揮發性記憶體221以覆蓋取代該組初始設定參數後,再依據控制腳本B執行腳本執行程序。藉以在日後切斷電源後重新開機時,使終端控制器2仍能夠依據完成更新之腳本基本輸入/輸出設定而繼續運作。在建立控制系統100時,可在上述兩種更新模式當中預設其一種;也可同時建立兩種更新模式,以便在更新時透過適當的操作視窗供使用者選擇。Conversely, if a permanent update is required, it is a permanent update mode. In the permanent update mode, the processing unit 23 reads the control script B from the random access memory 222, and stores the control script B in the non-volatile memory 221 to overwrite and replace the set of initial setting parameters. Control script B executes the script execution program. Therefore, when the power is turned off in the future, the terminal controller 2 can still continue to operate according to the updated script basic input/output settings. When establishing the control system 100, one of the above two update modes can be preset; two update modes can also be established at the same time, so that the user can select through an appropriate operation window during the update.

較佳者,一旦終端控制器2又遇到新的使用情境需要配合使用情境的控制腳本時,可發出新的控制腳本變更請求,經過集中式管理控制器11藉由唯一識別碼的確認與審核後,可改寫控制腳本查察表121,並依據改寫後的控制腳本查察表121將符合使用情境需求的新的控制腳本經由通信介面21而傳送至隨機存取記憶體222加以儲存。Preferably, once the terminal controller 2 encounters a new usage situation that needs to be matched with the control script of the usage situation, it can issue a new control script change request, which is confirmed and reviewed by the centralized management controller 11 with the unique identification code. Afterwards, the control script look-up table 121 can be rewritten, and according to the rewritten control script look-up table 121 , a new control script that meets the requirements of the usage situation is transmitted to the random access memory 222 for storage through the communication interface 21 .

關於控制腳本部分,較佳者,控制腳本可包含複數組對應於複數個(本實施例為5個)邏輯裝置3a-3e之控制命令,控制命令係依據第01組初始設定參數調整出複數組對應於該些邏輯裝置之實際輸入/輸出狀態參數,且每一組實際輸入/輸出狀態參數包含用以產生一波形之週期、振幅、脈波數與佔空比中之至少一者。此外,控制腳本之語法係與處理單元23之至少一指令集相異。Regarding the control script part, preferably, the control script may include a complex group of control commands corresponding to a plurality of (5 in this embodiment) logic devices 3a-3e, and the control commands are adjusted according to the 01st group of initial setting parameters to obtain the complex group. Corresponding to the actual input/output state parameters of the logic devices, and each set of actual input/output state parameters includes at least one of a period, an amplitude, a pulse number and a duty cycle for generating a waveform. Furthermore, the syntax of the control script is different from at least one instruction set of the processing unit 23 .

請繼續參閱第三圖,其係顯示本發明第二實施所提供之另一用於遠端更新控制腳本之控制系統。基於通信方式的不同,較佳者,在另一控制系統100a中,相較於控制系統100,還額外包含了至少一通信中介裝置4。通信介面21可經由至少一通信中介裝置4而通信連結於遠端管理伺服器1,且通信中介裝置4包含一數據機、一無線通信基地台、一路由器、一閘道器、一中繼器與一區域網路伺服器中之至少一者。Please continue to refer to the third figure, which shows another control system for remotely updating the control script provided by the second implementation of the present invention. Based on different communication methods, preferably, in another control system 100a, compared with the control system 100, at least one communication intermediary device 4 is additionally included. The communication interface 21 can be communicatively connected to the remote management server 1 via at least one communication intermediary device 4, and the communication intermediary device 4 includes a modem, a wireless communication base station, a router, a gateway, and a repeater and at least one of a local area network server.

承上所述,由於在本發明所提供之用於遠端更新控制腳本之控制系統100,係在終端控制器2設置非揮發性記憶體221與隨機存取記憶體222,並依據修改的需要性(如需要修改與不需要修改)與頻繁度(如需要經常修改或不需要經常修改)而分階段性地寫入設定資料。As mentioned above, in the control system 100 for remote update control script provided by the present invention, the terminal controller 2 is provided with the non-volatile memory 221 and the random access memory 222, and according to the needs of modification The setting data is written in stages according to the nature (such as need to modify or not to modify) and frequency (such as need to modify frequently or do not need to modify frequently).

具體地說,可在生產終端控制器2的第一時間(終端控制器2剛出廠時)將不需要修改(或不常需要)之一組初始設定參數由遠端管理伺服器傳送至終端控制器,並固化性地儲存於終端控制器之非揮發性記憶體221,藉以簡化終端控制器2的生產管理流程。Specifically, a group of initial setting parameters that do not need to be modified (or rarely needed) can be transmitted from the remote management server to the terminal controller at the first time when the terminal controller 2 is produced (when the terminal controller 2 has just left the factory). The device is stored in the non-volatile memory 221 of the terminal controller, so as to simplify the production management process of the terminal controller 2 .

此外,可在遇到特定使用情境的第二時間(晚於第一時間),將需要依據使用情境需求而變更或修改之控制腳本時由遠端管理伺服器傳送至終端控制器,儲存於隨機存取記憶體222,或者由處理單元23讀取後再儲存於非揮發性記憶體221,以便於依據使用情境之需求而即時性地修改更新,藉以滿足各種使用情境的控制需求。顯然,藉由本發明所提供之用於遠端更新控制腳本之控制系統,不僅可以達到簡化終端控制器的生產管理流程之功效,更可兼顧滿足多種不同使用情境需求之功效。In addition, at a second time (later than the first time) when a specific usage situation is encountered, the remote management server can transmit the control script that needs to be changed or modified according to the requirements of the usage situation to the terminal controller, and store it in a random The memory 222 is accessed, or read by the processing unit 23 and then stored in the non-volatile memory 221, so as to be modified and updated in real time according to the needs of the usage scenarios, so as to meet the control requirements of various usage scenarios. Obviously, the control system for remotely updating the control script provided by the present invention can not only achieve the effect of simplifying the production management process of the terminal controller, but also meet the needs of various usage scenarios.

藉由以上較佳具體實施例之詳述,係希望能更加清楚描述本發明之特徵與精神,而並非以上述所揭露的較佳具體實施例來對本發明之範疇加以限制。相反地,其目的是希望能涵蓋各種改變及具相等性的安排於本發明所欲申請之專利範圍的範疇內。Through the detailed description of the preferred embodiments above, it is hoped that the features and spirit of the present invention can be described more clearly, but the scope of the present invention is not limited by the preferred embodiments disclosed above. On the contrary, the intention is to cover various modifications and equivalent arrangements within the scope of the claimed scope of the present invention.

100,100a:控制系統 1:遠端管理伺服器 11:集中式管理控制器 12:儲存模組 121:控制腳本查察表 2,2a,2b:終端控制器 21:通信介面 22:記憶模組 221:非揮發性記憶體 2211:唯一識別碼 222:隨機存取記憶體 23:處理單元 231:腳本執行程序 24:基本輸入/輸出模組 3a-3e:邏輯裝置 4:通信中介裝置 100,100a: Control System 1: Remote management server 11: Centralized management controller 12: Storage Module 121: Control Script Checklist 2,2a,2b: Terminal Controller 21: Communication interface 22: Memory Module 221: Non-volatile memory 2211: Unique ID 222: Random Access Memory 23: Processing unit 231: Script Executor 24: Basic input/output modules 3a-3e: Logic Devices 4: Communication intermediary device

第一圖係顯示本發明第一實施例所提供之用於遠端更新控制腳本之控制系統; 第二圖係顯示本發明第一實施例中之遠端管理伺服器與終端控制器之內部功能方塊圖;以及 第三圖係顯示本發明第二實施所提供之另一用於遠端更新控制腳本之控制系統。 The first figure shows the control system for remotely updating the control script provided by the first embodiment of the present invention; The second figure is a block diagram showing the internal functions of the remote management server and the terminal controller in the first embodiment of the present invention; and Figure 3 shows another control system for remotely updating control scripts provided by the second implementation of the present invention.

100:控制系統 1:遠端管理伺服器 11:集中式管理控制器 12:儲存模組 121:控制腳本查察表 2:終端控制器 21:通信介面 22:記憶模組 221:非揮發性記憶體 2211:唯一識別碼 222:隨機存取記憶體 23:處理單元 231:腳本執行程序 24:基本輸入/輸出模組 3a-3e:邏輯裝置 100: Control System 1: Remote management server 11: Centralized management controller 12: Storage Module 121: Control Script Checklist 2: Terminal Controller 21: Communication interface 22: Memory Module 221: Non-volatile memory 2211: Unique ID 222: Random Access Memory 23: Processing unit 231: Script Executor 24: Basic input/output modules 3a-3e: Logic Devices

Claims (10)

一種用於遠端更新控制腳本之控制系統,包含:一遠端管理伺服器,係包含一集中式管理控制器,且該集中式管理控制器係在一第一時間傳送出一組初始設定參數,並在一晚於該第一時間之第二時間傳送出一控制腳本;以及至少一終端控制器,每一終端控制器包含:一通信介面,係通信連結於該遠端管理伺服器,藉以在該第一時間接收該組初始設定參數,並在該第二時間接收該控制腳本;一記憶模組,係電性連接於該通信介面,藉以接收並儲存該組初始設定參數與該控制腳本,並包含:一非揮發性記憶體(NVM),係在該第一時間接收並儲存該組初始設定參數;以及一隨機存取記憶體(RAM),係用以在該第二時間接收並儲存該控制腳本;一處理單元,係電性連結於該記憶模組與該通信介面,內建有一腳本執行程序,藉以在該第一時間依據該組初始設定參數設定一組初始基本輸入/輸出狀態參數,在該第二時間直接自該隨機存取記憶體中讀取該控制腳本,並依據該控制腳本執行該腳本執行程序而更新設定一組腳本基本輸入/輸出狀態參數;以及一基本輸入/輸出模組,係電性連接於該處理單元, 藉以在該第一時間之後,執行一開機程序時,依據該組初始設定參數完成一初始基本輸入/輸出設定;並在該第二時間之後,執行該腳本執行程序時,依據該組腳本基本輸入/輸出狀態參數而更新完成一腳本基本輸入/輸出設定。 A control system for remotely updating a control script, comprising: a remote management server including a centralized management controller, and the centralized management controller transmits a set of initial setting parameters at a first time , and transmits a control script at a second time later than the first time; and at least one terminal controller, each terminal controller includes: a communication interface, which is communicatively connected to the remote management server, thereby Receive the set of initial setting parameters at the first time, and receive the control script at the second time; a memory module is electrically connected to the communication interface for receiving and storing the set of initial setting parameters and the control script , and includes: a non-volatile memory (NVM) for receiving and storing the set of initial setting parameters at the first time; and a random access memory (RAM) for receiving and storing at the second time storing the control script; a processing unit, which is electrically connected to the memory module and the communication interface, has a built-in script execution program, so as to set a set of initial basic input/output according to the set of initial setting parameters at the first time state parameters, directly reading the control script from the random access memory at the second time, and executing the script execution program according to the control script to update and set a set of script basic input/output state parameters; and a basic input /Output module, which is electrically connected to the processing unit, Therefore, after the first time, when a booting procedure is executed, an initial basic input/output setting is completed according to the set of initial setting parameters; and after the second time, when the script execution program is executed, the basic input according to the set of scripts is performed. /Output state parameters to update complete a script's basic input/output settings. 如請求項1所述之用於遠端更新控制腳本之控制系統,其中,該隨機存取記憶體係用以在該第二時間接收並儲存該控制腳本後,由該處理單元自該隨機存取記憶體中讀取該控制腳本,並先將該控制腳本儲存於該非揮發性記憶體(NVM)以覆蓋取代該組初始設定參數後,再依據該控制腳本執行該腳本執行程序。 The control system for remotely updating a control script as described in claim 1, wherein the random access memory system is used for receiving and storing the control script at the second time, and then the processing unit from the random access The control script is read in the memory, and the control script is first stored in the non-volatile memory (NVM) to overwrite and replace the set of initial setting parameters, and then the script execution program is executed according to the control script. 如請求項1所述之用於遠端更新控制腳本之控制系統,該處理單元更進一步用以在完成更新設定該組腳本基本輸入/輸出狀態參數後,將該組腳本基本輸入/輸出狀態參數經由該通信介面傳送回該集中式管理控制器。 According to the control system for remotely updating a control script as described in claim 1, the processing unit is further configured to, after updating and setting the basic input/output state parameters of the script, set the basic input/output state parameters of the script transmitted back to the centralized management controller via the communication interface. 如請求項1所述之用於遠端更新控制腳本之控制系統,其中,每一該至少一終端控制器係具有一唯一識別碼,該遠端管理伺服器係對應複數個識別碼而儲存有複數組初始設定參數與包含該控制腳本在內之複數個適用控制腳本,並經由該通信介面讀取該唯一識別碼後,判斷該唯一識別碼係對應於該些識別碼中之 何者,據以將所對應之該些組初始設定參數之一者與該些適用控制腳本中之該控制腳本傳送至具有該唯一識別碼之終端控制器。 The control system for remotely updating control scripts as described in claim 1, wherein each of the at least one terminal controller has a unique identification code, and the remote management server stores a plurality of identification codes corresponding to the plurality of identification codes. A plurality of groups of initial setting parameters and a plurality of applicable control scripts including the control script, and after reading the unique identification code through the communication interface, determine that the unique identification code corresponds to one of the identification codes Whichever, according to the corresponding one of the sets of initial setting parameters and the control script among the applicable control scripts are transmitted to the terminal controller having the unique identification code. 如請求項1所述之用於遠端更新控制腳本之控制系統,其中,該非揮發性記憶體與該隨機存取記憶體係設置於一積體電路模組中。 The control system for remotely updating a control script as claimed in claim 1, wherein the non-volatile memory and the random access memory system are arranged in an integrated circuit module. 如請求項1所述之用於遠端更新控制腳本之控制系統,其中,該通信介面係為一無線通信介面,且該無線通信介面係為一藍芽通信介面、一WIFI通信介面、一4G通信介面與一GSM通信介面中之一者。 The control system for remotely updating a control script according to claim 1, wherein the communication interface is a wireless communication interface, and the wireless communication interface is a Bluetooth communication interface, a WIFI communication interface, a 4G communication interface One of the communication interface and a GSM communication interface. 如請求項1所述之用於遠端更新控制腳本之控制系統,其中,該通信介面係為一有線通信介面,且該有線通信介面係為一乙太網路通信介面、一USB通信介面、一RS232通信介面與一RJ485通信介面中之一者。 The control system for remotely updating control scripts according to claim 1, wherein the communication interface is a wired communication interface, and the wired communication interface is an Ethernet communication interface, a USB communication interface, One of an RS232 communication interface and an RJ485 communication interface. 如請求項1所述之用於遠端更新控制腳本之控制系統,更包含至少一通信中介裝置,該通信介面係經由至少一通信中介裝置而通信連結於該遠端管理伺服器,且該至少一通信中介裝置包含一數據機、一無線通信基地台、一路由器、一閘道器、一中繼器與一 區域網路伺服器中之至少一者。 The control system for remotely updating a control script as described in claim 1, further comprising at least one communication intermediary device, the communication interface is communicatively connected to the remote management server via the at least one communication intermediary device, and the at least one communication intermediary device is communicatively connected to the remote management server. A communication intermediary device includes a modem, a wireless communication base station, a router, a gateway, a repeater and a At least one of the local area network servers. 如請求項1所述之用於遠端更新控制腳本之控制系統,其中,該控制腳本包含複數組對應於複數個邏輯裝置之控制命令,該些控制命令係依據該組初始設定參數調整出複數組對應於該些邏輯裝置之實際輸入/輸出狀態參數,且該些組實際輸入/輸出狀態參數中之每一組包含用以產生一波形之週期、振幅、脈波數與佔空比中之至少一者。 The control system for remotely updating a control script as claimed in claim 1, wherein the control script includes a plurality of groups of control commands corresponding to a plurality of logic devices, and the control commands are adjusted according to the group of initial setting parameters to obtain a plurality of control commands. The sets correspond to the actual input/output state parameters of the logic devices, and each of the sets of actual input/output state parameters includes one of period, amplitude, number of pulses, and duty cycle used to generate a waveform at least one. 如請求項1所述之用於遠端更新控制腳本之控制系統,其中,該控制腳本之語法係與該處理單元之至少一指令集相異。 The control system for remotely updating a control script as described in claim 1, wherein the syntax of the control script is different from at least one instruction set of the processing unit.
TW110101524A 2021-01-15 2021-01-15 Control system for remotely updating control script TWI773089B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW110101524A TWI773089B (en) 2021-01-15 2021-01-15 Control system for remotely updating control script

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW110101524A TWI773089B (en) 2021-01-15 2021-01-15 Control system for remotely updating control script

Publications (2)

Publication Number Publication Date
TW202230117A TW202230117A (en) 2022-08-01
TWI773089B true TWI773089B (en) 2022-08-01

Family

ID=83782609

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110101524A TWI773089B (en) 2021-01-15 2021-01-15 Control system for remotely updating control script

Country Status (1)

Country Link
TW (1) TWI773089B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984215A (en) * 2011-11-09 2013-03-20 微软公司 Technique to apply and share remote policies on mobile devices
TW201705015A (en) * 2015-07-29 2017-02-01 廣達電腦股份有限公司 Method and system for remote system configuration management and non-transitory computer-readable storage medium
TWI624762B (en) * 2017-02-24 2018-05-21 廣達電腦股份有限公司 System and method for automatically updating bios setup options
CN110457053A (en) * 2019-07-02 2019-11-15 苏州大学 A kind of terminal remote automatic update system based on NB-IoT
US20190387033A1 (en) * 2018-06-19 2019-12-19 Ricoh Company, Ltd. Information processing apparatus, information processing system, and method of remote information sharing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984215A (en) * 2011-11-09 2013-03-20 微软公司 Technique to apply and share remote policies on mobile devices
TW201705015A (en) * 2015-07-29 2017-02-01 廣達電腦股份有限公司 Method and system for remote system configuration management and non-transitory computer-readable storage medium
TWI624762B (en) * 2017-02-24 2018-05-21 廣達電腦股份有限公司 System and method for automatically updating bios setup options
US20190387033A1 (en) * 2018-06-19 2019-12-19 Ricoh Company, Ltd. Information processing apparatus, information processing system, and method of remote information sharing
CN110457053A (en) * 2019-07-02 2019-11-15 苏州大学 A kind of terminal remote automatic update system based on NB-IoT

Also Published As

Publication number Publication date
TW202230117A (en) 2022-08-01

Similar Documents

Publication Publication Date Title
CN105704234B (en) The control method and device of smart machine
US20160205066A1 (en) Unique device address assignment technique for bidirectional daisy chain system
SA519401047B1 (en) Systems and Methods for Configuring Field Devices Using A Configuration Device
EP3394743B1 (en) Method and apparatus for creating and managing controller based remote solutions
CN102445928A (en) Field device with self description
US10365624B2 (en) Slave device, method for controlling slave device, and non-transitory computer-readable recording medium
CN106571989A (en) Method and device for controlling intelligent household device by intelligent mobile terminal
WO2017202999A1 (en) Tire pressure monitoring sensor enabling fast configuration and software updates
MX2014010391A (en) Scheduling actions in a field device.
TWI773089B (en) Control system for remotely updating control script
CN110750402A (en) Debugging device and remote debugging system
KR100442281B1 (en) Method for controlling of Home Network System
CN104506448B (en) A kind of intelligent router that Internet of Things is adaptive
US20170075343A1 (en) Field device, method for operating a field device and cloud service
CN105898961B (en) Wireless lighting matches control system
TWI520638B (en) Connection method of wireless control system
KR20180054157A (en) New IOT(Internet Of Things) device management apparatus and method
US11601494B2 (en) Method for transferring data from a device to a data management means, switching unit, device and system
CN108663959B (en) A kind of PTC controller showing software online updating by PWM cause for gossip
JP2001033091A (en) Method for data transporting of hot water supply apparatus control substrate and control substrate of hot water supply apparatus
CN108386963A (en) A kind of remote terminal and controlled terminal control method, device and terminal
US20180196615A1 (en) Efficient backup and restore of controller code in industrial control network
KR102434129B1 (en) Motion control system and control method thereof
CN113132528A (en) Air conditioner parameter processing method and device, mobile terminal and storage medium
KR101231816B1 (en) Remote programming method for configuration of sensor networks