TWI731592B - Cross-protocols control apparatus with apparatus-restoring function and method of restoring apparatus for cross-protocols thereof - Google Patents
Cross-protocols control apparatus with apparatus-restoring function and method of restoring apparatus for cross-protocols thereof Download PDFInfo
- Publication number
- TWI731592B TWI731592B TW109105255A TW109105255A TWI731592B TW I731592 B TWI731592 B TW I731592B TW 109105255 A TW109105255 A TW 109105255A TW 109105255 A TW109105255 A TW 109105255A TW I731592 B TWI731592 B TW I731592B
- Authority
- TW
- Taiwan
- Prior art keywords
- data
- electronic device
- restoration
- backup
- cross
- Prior art date
Links
Images
Landscapes
- Computer And Data Communications (AREA)
Abstract
Description
本發明涉及設備還原,特別涉及具有設備還原功能的跨協定控制設備及其跨協定的設備還原方法。 The present invention relates to equipment restoration, in particular to a cross-contract control device with equipment restoration function and a cross-contract equipment restoration method.
目前已有許多通訊協定被提出,不同用途的電子設備通常會依據不同需求搭配不同的通訊協定,這使得當用戶要對同一環境下的多個電子設備進行管理時,必須要準備支援所有通訊協定的管理設備(如個人電腦、平板電腦、筆記型電腦或伺服器等等)。 At present, many communication protocols have been proposed. Electronic devices with different purposes usually use different communication protocols according to different needs. This makes it necessary for users to be prepared to support all communication protocols when they want to manage multiple electronic devices in the same environment. Management equipment (such as personal computers, tablets, notebooks or servers, etc.).
上述情況會大幅增加管理設備的成本,並大幅限制可做為管理設備的電腦類型。 The above situation will greatly increase the cost of management equipment and greatly limit the types of computers that can be used as management equipment.
此外,當電子設備發生問題或設定被變更時,管理員僅能手動修改電子設備的設定來嘗試解決問題或還原變更。 In addition, when a problem occurs in the electronic device or the setting is changed, the administrator can only manually modify the setting of the electronic device to try to solve the problem or restore the change.
上述情況對管理員造成麻煩,且造成人力與時間的浪費。 The above situation causes troubles for administrators and wastes manpower and time.
有鑑於此,目前亟待一種可解決上述問題的方案被提出。 In view of this, there is an urgent need for a solution to solve the above-mentioned problems to be proposed.
本發明提供一種具有設備還原功能的跨協定的設備還原方法與具有設備還原功能的跨協定控制設備,可供管理設備使用同一通訊協定來連接不同通訊介面的多個電子設備,並可自動還原電子設備的設定。 The present invention provides a cross-protocol device restoration method with device restoration function and a cross-protocol control device with device restoration function, which can be used for management equipment to connect multiple electronic devices with different communication interfaces using the same communication protocol, and can automatically restore electronic devices. Device settings.
於一實施例中,一種跨協定的設備還原方法,用於跨協定控制設備,跨協定的設備還原方法包括以下步驟:跨協定控制設備的控制器經由跨協定控制設備的多個通訊介面分別連接管理設備及多個電子設備,其中多個通訊介面分別使用不同通訊協定;於從管理設備收到針對多個電子設備的至少其中之一的還原命令時,執行還原處理;於還原處理中,識別連接電子設備的通訊介面,並取得電子設備的備份資料;於還原處理中,對備份資料執行轉送格式轉換處理以轉換備份資料為符合所識別的通訊介面所使用的通訊協定的一還原資料;及,於還原處理中,傳送還原資料至電子設備以使電子設備依據還原資料進行還原設定。 In one embodiment, a cross-protocol device restoration method is used for cross-protocol control devices. The cross-protocol device restoration method includes the following steps: the controllers of the cross-protocol control devices are respectively connected via multiple communication interfaces of the cross-protocol control devices The management device and multiple electronic devices, wherein multiple communication interfaces respectively use different communication protocols; when a restoration command for at least one of the multiple electronic devices is received from the management device, the restoration process is executed; in the restoration process, identification Connect to the communication interface of the electronic device and obtain the backup data of the electronic device; in the restoration process, perform a transfer format conversion process on the backup data to convert the backup data into a restoration data that conforms to the communication protocol used by the identified communication interface; and In the restoration process, the restoration data is sent to the electronic device so that the electronic device performs restoration settings based on the restoration data.
於一實施例中,一種具有設備還原功能的跨協定控制設備,包括多個通訊介面、儲存器及控制器。多個通訊介面用以分別連接管理設備及多個電子設備,並分別使用不同通訊協定。儲存器用以儲存各電子設備的備份資料。控制器電性連接多個通訊介面及儲存器,被設定來於自管理設備收到針對多個電子設備的至少其中之一的還原命令時,執行還原處理。於還原處理中,識別連接電子設備的該通訊介面,讀取電子設備的該備份資料,對備份資料執行轉送格式轉換處理以轉換備份資料為符合所識別的通訊介面所使用的通訊協定的一還原資料,及傳送還原資料至電子設備以使電子設備依據還原資料進行還原設定。 In one embodiment, a cross-protocol control device with a device restoration function includes multiple communication interfaces, storage, and controllers. The multiple communication interfaces are used to respectively connect the management device and multiple electronic devices, and respectively use different communication protocols. The storage is used to store the backup data of each electronic device. The controller is electrically connected to a plurality of communication interfaces and storages, and is set to execute a restoration process when a restoration command for at least one of the plurality of electronic devices is received from the management device. In the restoration process, the communication interface connected to the electronic device is identified, the backup data of the electronic device is read, and the transfer format conversion process is performed on the backup data to convert the backup data into a restoration that conforms to the communication protocol used by the identified communication interface Data, and send the restored data to the electronic device so that the electronic device performs restoration settings based on the restored data.
本發明可供管理設備以現有通訊協定來對不同通訊協定的電子設備進行還原。 The present invention can be used for management equipment to restore electronic equipment with different communication protocols by using existing communication protocols.
1-3:環境 1-3: Environment
100、210、40:管理設備 100, 210, 40: management equipment
110-112、211-212、41-44:電子設備 110-112, 211-212, 41-44: electronic equipment
20:跨協定控制設備 20: Cross-protocol control equipment
200、300:控制器 200, 300: Controller
201:第一通訊介面 201: The first communication interface
202:第二通訊介面 202: The second communication interface
203:第三通訊介面 203: Third Communication Interface
204、305:儲存器 204, 305: Storage
301-304:通訊介面 301-304: Communication interface
306:人機介面 306: Human-Machine Interface
307:驗證模組 307: Verification Module
5:轉送格式 5: Transfer format
50-53:欄位 50-53: field
S10-S15:還原步驟 S10-S15: Restoration steps
S20-24:備份步驟 S20-24: Backup procedure
S30-S34:轉送步驟 S30-S34: Transfer steps
S400-S414:備份與還原步驟 S400-S414: Backup and restore steps
S50-S52:格式轉換步驟 S50-S52: Format conversion steps
圖1為現有的管理設備與電子設備的連接架構圖;圖2為本發明一實施態樣的跨協定控制設備的架構圖;圖3為本發明另一實施態樣的跨協定控制設備的架構圖;圖4為本發明一實施態樣的轉送格式的示意圖;圖5為本發明第一實施例的跨協定的設備還原方法的流程圖;圖6為本發明第二實施例的跨協定的設備還原方法的備份處理的流程圖;圖7為本發明第三實施例的跨協定的設備還原方法的轉送處理的流程圖;圖8為本發明第四實施例的跨協定的設備還原方法的流程圖;及圖9為本發明第一實施例的跨協定的設備還原方法的格式轉換處理的流程圖。 FIG. 1 is a diagram of the connection architecture between the existing management device and the electronic device; FIG. 2 is a diagram of the architecture of a cross-protocol control device according to an embodiment of the present invention; FIG. 3 is a diagram of the architecture of a cross-protocol control device according to another embodiment of the present invention Figure; Figure 4 is a schematic diagram of the transfer format of an embodiment of the present invention; Figure 5 is a flow chart of the cross-agreement device restoration method of the first embodiment of the present invention; Figure 6 is the cross-agreement of the second embodiment of the present invention The flow chart of the backup processing of the device restoration method; FIG. 7 is a flow chart of the transfer processing of the cross-contract device restoration method of the third embodiment of the present invention; FIG. 8 is the flow chart of the cross-contract device restoration method of the fourth embodiment of the present invention Flow chart; and Figure 9 is a flow chart of the format conversion process of the cross-protocol device restoration method of the first embodiment of the present invention.
下面結合圖式和具體實施例對本發明技術方案進行詳細的描述,以更進一步瞭解本發明的目的、方案及功效,但並非作為本發明所附申請專利範圍的限制。 The technical solutions of the present invention will be described in detail below in conjunction with the drawings and specific embodiments to further understand the purpose, solutions and effects of the present invention, but not as a limitation of the scope of the attached patent application of the present invention.
請參閱圖1,為現有的管理設備與電子設備的連接架構圖。於本例子中,設置於同一環境1(如同一工廠或樓層)中的多個電子設備110-112是分別使用不同的通訊協定(如分別為MODBUS、CANopen與EtherCAT)。 Please refer to Figure 1, which is a diagram of the connection architecture between the existing management device and the electronic device. In this example, the multiple electronic devices 110-112 installed in the same environment 1 (such as the same factory or floor) use different communication protocols (such as MODBUS, CANopen, and EtherCAT respectively).
當管理員欲對電子設備110-112進行設定時,必須提供可支援所有電子設備110-112所使用的通訊協定的管理設備100,才能夠使用管理設備100控制所有電子設備110-112。然而,所能支援的通訊協定越多,管理設備100的成本越高。
When the administrator wants to set the electronic devices 110-112, the
此外,為了能夠同時連接多個電子設備110-112,管理設備100還必須配置有多個通訊介面(如多張具有RJ-45插孔的網路卡),上述情況進一步提增加管理設備100的成本,並增加管理設備100的體積。
In addition, in order to be able to connect multiple electronic devices 110-112 at the same time, the
此外,由於環境1可能是由多位管理員共同管理,這使得電子設備110-112的設定被其中一位管理員變更時,由於不確定變更後的設定是否會造成錯誤或異常,其他管理員通常是先手動將所有電子設備110-112的設定逐一還原為預設值,再對電子設備110-112進行管理控制,上述還原操作會須浪費大量人力與時間。
In addition, since the
為解決上述問題,本發明主要是提供一種具有設備還原功能的跨協定控制設備與其跨協定的設備還原方法,可供管理設備使用單一通訊介面與單一通訊協定來對不同通訊協定的多個電子設備進行管理與控制。並且,跨協定控制設備可自動對多個電子設備的設定進行還原,來省卻用戶的還原操作。 In order to solve the above-mentioned problems, the present invention mainly provides a cross-protocol control device with a device restoration function and a cross-protocol device restoration method, which can be used for management devices to use a single communication interface and a single communication protocol for multiple electronic devices with different communication protocols. Manage and control. In addition, the cross-protocol control device can automatically restore the settings of multiple electronic devices, so as to save the user's restoration operation.
請參閱圖2,為本發明一實施態樣的跨協定控制設備的架構圖。本實施態樣的跨協定控制設備20是設置於環境2之中,並作為管理設備210及多個電子設備211-212之間的中繼轉送設備。
Please refer to FIG. 2, which is a structural diagram of a cross-protocol control device according to an embodiment of the present invention. The
具體而言,跨協定控制設備20主要包括多個通訊介面(圖2以三個通訊介面為例,分別為第一通訊介面201、第二通訊介面202及第三通訊介面203)、儲存器204及電性連接上述裝置的控制器200。
Specifically, the
多個通訊介面用來基於多個不同的通訊協定(Communication Protocol)連接多個外部設備(如管理設備210、電子設備211-212)。
The multiple communication interfaces are used to connect multiple external devices (such as the
於一實施例中,上述多個通訊介面可為相同的通訊介面,但使用不同的通訊協定。舉例來說,多個通訊介面可為串列通訊介面、CAN(控制器區域網路)或有線乙太網介面,並分別支援MODBUS、MODBUS TCP、CANopen、EthernetCAT、EtherNet/IP或其他工業網路協定。 In one embodiment, the above-mentioned multiple communication interfaces may be the same communication interface but use different communication protocols. For example, multiple communication interfaces can be serial communication interfaces, CAN (controller area network) or wired Ethernet interfaces, and support MODBUS, MODBUS TCP, CANopen, EthernetCAT, EtherNet/IP or other industrial networks respectively agreement.
於一實施例中,上述多個通訊介面可為不同的通訊介面,而分別使用不同的通訊協定。舉例來說,多個通訊介面可包括串列通訊介面(使用於MODBUS協定)、CAN(使用於CANopen)、有線乙太網介面(使用任何乙太網協定)、Wi-Fi介面(使用Wi-Fi協定)、藍芽介面(使用藍芽協定)、Zigbee介面(使用Zigbee協定)或其他有線/無線通訊介面。 In one embodiment, the above-mentioned multiple communication interfaces may be different communication interfaces, and use different communication protocols respectively. For example, multiple communication interfaces can include serial communication interface (used in MODBUS protocol), CAN (used in CANopen), wired Ethernet interface (using any Ethernet protocol), Wi-Fi interface (using Wi-Fi Fi protocol), Bluetooth interface (using Bluetooth protocol), Zigbee interface (using Zigbee protocol) or other wired/wireless communication interfaces.
於一實施例中,上述多個通訊介面可為部分相同,部分不同,並可為部分通訊介面使用相同的通訊協定,部分通訊介面使用不同的通訊協定,不加以限定。 In one embodiment, the above-mentioned multiple communication interfaces may be partly the same and partly different, and may use the same communication protocol for some communication interfaces, and some communication interfaces may use different communication protocols, without limitation.
儲存器204用以儲存資料。儲存器204可為內建儲存裝置(如硬碟、快閃記憶體)或外接儲存介面(如記憶卡介面或USB介面)儲存器204為外接儲存介面時,是用來連接外部儲存裝置(如記憶卡、隨身碟或外接硬碟)以提供外部儲存功能。
The
控制器200用以控制跨協定控制設備20,並負責處理欲轉送的資料與不同通訊協定之間的格式轉換(容後詳述)。
The
於圖2的例子中,第一通訊介面201是用來連接管理設備210,第二通訊介面202及第三通訊介面203則是分別用來連接電子設備211-212。第一通訊介面201與管理設備使用相同的第一通訊協定,第二通訊介面202與電子設備211使用相同的第二通訊協定,第三通訊介面203與電子設備212使用相同的第三通訊協定。上述第二通訊協定與第三通訊協定至少其中之一與第一通訊協定不同。藉此,經由設置本發明的跨協定控制設備20,管理設備210僅須配置單一通訊介面與單一通訊協定,即可與多個不同通訊協定的電子設備211-212進行通訊,而可有效減少管理設備210的成本與體積。
In the example of FIG. 2, the
續請參閱圖3,為本發明另一實施態樣的跨協定控制設備的架構圖。於本實施態樣中,環境3中設置有多個電子設備41-44,跨協定控制設備30用以連接這些電子設備41-44與管理設備40,以供管理設備40對這些電子設備41-44進行管理控制。
Please refer to FIG. 3, which is a structural diagram of a cross-protocol control device according to another embodiment of the present invention. In this embodiment, multiple electronic devices 41-44 are provided in the
本實施態樣的跨協定控制設備30包括多個通訊介面301-304、儲存器305、人機介面306、驗證模組307及電性連接上述裝置的控制器300。
The
多個通訊介面301-304是分別用來連接管理設備40與電子設備41-44。通訊介面301-304、儲存器305及控制器300是與圖2所示的三個通訊介面、儲存器204及控制器200相同或相似,於此不再贅述。
The multiple communication interfaces 301-304 are respectively used to connect the
於一實施例中,通訊介面302可同時連接多個電子設備41-42,如通訊介面302上有兩個連接埠。藉此,可將使用相同連接埠的通訊介面整合於同一通訊介面302,而可方便管理並縮小跨協定控制設備30的體積。
In one embodiment, the
於一實施例中,同一電子設備43可同時連接多個通訊介面303-304,如通訊介面303為有線乙太網介面,通訊介面304為Wi-Fi介面,電子設備43可經由乙太網電纜連接通訊介面303,並經由Wi-Fi網路連接通訊介面304。
藉此,電子設備43可經由多個連接與跨協定控制設備30進行通訊,而可提升通訊品質(如其中一個連接作為備援,或者同時使用兩個連接來分擔傳輸負載)。
In one embodiment, the same
人機介面306用以接受用戶輸入,並輸出資訊。人機介面306可包括各式輸入裝置與輸出裝置的任意組合,如觸控螢幕、按鍵組、滑鼠、顯示器、指示燈、揚聲器等等,不加以限定。
The man-
驗證模組307用以進行驗證,如驗證用戶身分、驗證管理設備40的權限或驗證電子設備41-44的權限。
The
於一實施例中,驗證模組307可為驗證軟體,並儲存於儲存器305中,而於被控制器300執行後實現驗證功能。
In one embodiment, the
於一實施例中,驗證模組307可為獨立於控制器300之外的驗證晶片(如Google Titan M晶片或生物驗證晶片)或驗證裝置(如安全令牌(Token)、指紋辨識裝置、RFID驗證裝置等等)。
In one embodiment, the
於一實施例中,圖2的儲存器204與圖3的儲存器305可儲存有電腦程式,上述電腦程式記錄有電腦可執行的程式碼。以圖3為例,當控制器300執行上述電腦程式時,可使跨協定控制設備30作為管理設備40與電子設備41-44之間的中繼轉送設備來與管理設備40及電子設備41-44進行互動而實現本發明各實施例的方法。
In one embodiment, the
續請一併參閱,圖5為本發明第一實施例的跨協定的設備還原方法的流程圖。本發明提供一種跨協定的設備還原方法,可基於不同的通訊協定來自動還原電子設備41-44的設定。本發明各實施例的方法可應用於圖2的跨協定控制設備20或者圖3的跨協定控制設備30,不加以限定(後續以圖3的跨協定控制設備30為例進行說明)。本實施的跨協定的設備還原方法包括以下步驟。
Please also refer to FIG. 5 as a flowchart of a cross-protocol device restoration method according to the first embodiment of the present invention. The present invention provides a cross-protocol device restoration method, which can automatically restore the settings of electronic devices 41-44 based on different communication protocols. The method of each embodiment of the present invention can be applied to the
步驟S10:用戶可先將跨協定控制設備30的多個通訊介面分別連接管理設備及多個電子設備。接著,控制器300經由多個通訊介面301-304分別與
管理設備40及多個電子設備41-44建立連線。更進一步地,控制器300是使用不同通訊協定(即各通訊介面301-304所使用的通訊協定)來與管理設備40及多個電子設備41-44進行通訊。
Step S10: The user can first connect the multiple communication interfaces of the
步驟S11:控制器300進入還原模式。於還原模式下,控制器300可判斷是否自管理設備40收到還原命令。上述還原命令是請求還原多個電子設備41-44的至少其中之一(如電子設備41)的設定。
Step S11: The
若控制器300收到還原命令,則執行步驟S12-S15以對電子設備41執行還原處理。否則,控制器300再次執行步驟S11以持續監聽。
If the
步驟S12:於還原處理中,控制器300識別連接電子設備41的通訊介面302,並取得電子設備41的備份資料。
Step S12: In the restoration process, the
於一實施例中,儲存器305預先儲存有各電子設備41-44的備份資料,控制器300是自儲存器305讀取電子設備41(即還原命令指定還原的電子設備)的備份資料。
In one embodiment, the
於一實施例中,各電子設備41-44的備份資料式儲存於外部(如管理設備40或雲端儲存空間),控制器300是依據還原命令向外部請求電子設備41的備份資料。
In one embodiment, the backup data of each electronic device 41-44 is stored externally (such as the
更進一步地,管理設備40可將還原命令與對應的備份資料一併傳送給跨協定控制設備30,不加以限定。
Furthermore, the
於一實施例中,還原指令包括電子設備41的識別資料(如硬體位址、網路位址或設備名稱等等),控制器300可依據識別資料識別連接電子設備41的通訊介面302。
In one embodiment, the restoration command includes identification data of the electronic device 41 (such as hardware address, network address, or device name, etc.), and the
步驟S13:於還原處理中,控制器300對備份資料執行轉送格式轉換處理以轉換所取得的備份資料為還原資料。上述還原資料的格式是符合所識別的通訊介面302所使用的通訊協定的轉送格式。
Step S13: In the restoration process, the
步驟S14:於還原處理中,控制器300經由通訊介面302使用對應的通訊協定來傳送還原資料至電子設備41。
Step S14: In the restoration process, the
步驟S15:電子設備41於收到還原資料後,依據還原資料進行還原設定。
Step S15: After receiving the restoration data, the
於一實施例中,還原資料包括多個運轉參數(設備資料)的預設值。電子設備41是受控制來以這些預設值覆蓋多個運轉參數的當前的設定值,藉以完成還原處理。
In one embodiment, the restoration data includes preset values of a plurality of operating parameters (equipment data). The
藉此,本發明可供管理設備以現有通訊協定來對不同通訊協定的電子設備進行還原。 In this way, the present invention can be used for the management device to restore electronic devices with different communication protocols using the existing communication protocol.
續請一併參閱圖5及圖6,圖6為本發明第二實施例的跨協定的設備還原方法的備份處理的流程圖。相較於圖5的跨協定的設備還原方法,圖6的跨協定的設備還原方法更提供一種備份功能,可自動備份運轉正常的電子設備41-44的設備資料,以供日後進行設備還原處理作業。具體而言,本實施例的跨協定的設備還原方法於執行還原處理前,可包括以下步驟。 Please refer to FIG. 5 and FIG. 6 together. FIG. 6 is a flowchart of the backup process of the cross-protocol device restoration method according to the second embodiment of the present invention. Compared with the cross-protocol device restoration method of FIG. 5, the cross-protocol device restoration method of FIG. 6 further provides a backup function that can automatically back up the device data of electronic devices 41-44 that are functioning normally for future device restoration processing. operation. Specifically, the cross-protocol device restoration method of this embodiment may include the following steps before performing the restoration process.
步驟S20:跨協定控制設備30的控制器300進入備份模式。於備份模式下,控制器300可判斷是否收到備份命令。上述備份命令是請求對多個電子設備41-44的至少其中之一(如電子設備41)的設定進行備份。
Step S20: The
於一實施例中,上述備份命令是由管理設備40所發出。
In one embodiment, the aforementioned backup command is issued by the
於一實施例中,上述備份命令是用戶操作跨協定控制設備30的人機介面306所發出,不加以限定。
In one embodiment, the aforementioned backup command is issued by the user operating the human-
若控制器300收到備份命令,則執行步驟S21-S24以對電子設備41執行備份處理。否則,控制器300再次執行步驟S20以持續監聽。
If the
步驟S21:於備份處理中,控制器300識別連接電子設備41(即還原命令指定還原的電子設備)的通訊介面302,產生備份請求,並經由通訊介面302使用對應的通訊協定發出備份請求至指定的電子設備41。
Step S21: In the backup process, the
於一實施例中,上述備份請求使請求電子設備41提供多個運轉參數的當前的設定值。
In one embodiment, the aforementioned backup request causes the
步驟S22:控制器300經由通訊介面302自電子設備41接收回傳的設備資料。
Step S22: The
具體而言,電子設備41於收到備份請求後,依據備份請求蒐集指定的電子設備41的運轉參數設定值(即設備資料),依據這些設定值產生當前設備資料,並回傳設備資料至跨協定控制設備30。
Specifically, after receiving the backup request, the
步驟S23:控制器300對所收到的設備資料執行保存格式轉換處理以轉換設備資料為符合保存格式的備份資料。前述保存格式為本發明所提出的一種特殊設計格式,保存格式可分別與不同通訊協定的不同格式進行無損相互轉換,藉以達成跨協定備份。
Step S23: The
步驟S24:控制器300儲存備份資料。控制器300可將備份資料儲存於儲存器305,或者將備份資料儲存於外部(如管理設備40或雲端儲存空間),不加以限定。
Step S24: The
續請一併參閱圖3及圖7,圖7為本發明第三實施例的跨協定的設備還原方法的轉送處理的流程圖。相較於圖5的跨協定的設備還原方法,圖7的跨協定的設備還原方法更提供一種轉送功能,可自動將管理設備40發出的資料(為通訊介面301所使用的通訊協定的格式)轉換為電子設備41-44可理解的資料(為通訊介面302-304所使用的通訊協定的格式),以實現跨協定通訊。具體而言,本實施例的跨協定的設備還原方法還可包括以下步驟。 Please refer to FIG. 3 and FIG. 7 together. FIG. 7 is a flow chart of the transfer processing of the cross-protocol device restoration method according to the third embodiment of the present invention. Compared with the cross-protocol device restoration method of FIG. 5, the cross-protocol device restoration method of FIG. 7 further provides a forwarding function, which can automatically transfer the data sent by the management device 40 (in the format of the communication protocol used by the communication interface 301) It is converted into data that can be understood by the electronic devices 41-44 (in the format of the communication protocol used by the communication interfaces 302-304) to realize cross-protocol communication. Specifically, the cross-agreement device restoration method of this embodiment may further include the following steps.
步驟S30:控制器300進入轉送模式,於轉送模式下,控制器300可監聽是否經由任一通訊介面301-304自管理設備40及多個電子設備41-44中的其中之一收到原始資料(如還原資料、備份資料及設備資料傳輸資料,或者還原命令及備份命令等控制命令)。前述原始資料是符合接收資料時所使用的通訊介面301-304的格式(下稱原始格式)。
Step S30: The
若控制器300收到原始資料(如管理設備40指定發給電子設備43的原始資料,即電子設備43為目的地),則執行步驟S31-S34以執行轉送處理。否則,控制器300再次執行步驟S30以持續監聽。
If the
步驟S31:於轉送處理中,控制器300將符合原始格式的原始資料轉換為符合保存格式的保存資料。
Step S31: During the transfer process, the
步驟S32:控制器300識別用以連接保存資料所指定的電子設備43(即原始資料的目的地)的通訊介面303、304。
Step S32: The
值得一提的是,當有多個通訊介面303、304同時連接指定的電子設備43時,控制器300可選擇較佳的通訊介面(如選擇通訊介面303)來進行轉送,或者,原始資料中可指定要使用的通訊介面(如記錄有通訊介面303的硬體位址或網路位址),不加以限定。
It is worth mentioning that when there are
步驟S33:控制器300對保存資料執行轉送格式轉換處理將保存格式的保存資料轉換為通訊介面303所使用的通訊協定的轉送格式的轉送資料。
Step S33: The
步驟S34:控制器300經由所識別的通訊介面303使用對應的通訊協定傳送轉換格式後的轉送資料至電子設備43。
Step S34: The
藉此,本發明的跨協定控制設備30可有效提供跨協定通訊。
In this way, the
值得一提的是,於另一例子中,電子設備41-44亦可透過上述方式來發送資料至其他電子設備41-44或管理設備40,不加以限定。
It is worth mentioning that, in another example, the electronic devices 41-44 can also send data to other electronic devices 41-44 or the
續請參閱圖8,為本發明第四實施例的跨協定的設備還原方法的流程圖。本實施例的跨協定的設備還原方法包括以下步驟。 Please continue to refer to FIG. 8, which is a flowchart of a cross-protocol device restoration method according to a fourth embodiment of the present invention. The cross-contract device restoration method of this embodiment includes the following steps.
步驟S400:控制器300判斷預設的備份觸發條件是否滿足。
Step S400: The
於一實施例中,備份觸發條件可為指定時刻到來(如每天12點)、每次連接電子設備、自管理設備40收到備份命令及/或經由人機介面306接收還原操作,不加以限定。
In one embodiment, the backup trigger condition may be the arrival of a specified time (such as 12 o'clock every day), every time the electronic device is connected, the self-
若控制器300判斷備份觸發條件滿足,則執行步驟S401以開始執行備份處理。否則,控制器300再次執行步驟S400以持續監測。
If the
步驟S401:於備份處理中,控制器300依據備份觸發條件發出備份請求。
Step S401: During the backup process, the
於一實施例中,備份觸發條件有指定的電子設備41-44與備份範圍(如全部或部分運轉參數)。後續說明以備份電子設備42、43的所有運轉參數為例。
In one embodiment, the backup trigger condition includes the designated electronic device 41-44 and the backup range (such as all or part of the operating parameters). The following description takes the backup of all the operating parameters of the
控制器300依據備份觸發條件識別對應的通訊介面302-303,併發出請求所有運轉參數的備份請求至電子裝置42、43。
The
本發明更提出一種驗證功能,可於執行備份前對請求設備與目標設備進行驗證,以提升安全性。 The present invention further provides a verification function, which can verify the requesting device and the target device before performing the backup, so as to improve the security.
具體而言,步驟S402:於備份處理中,驗證模組307取得驗證資訊,並以此驗證資訊判斷是否通過驗證。
Specifically, step S402: in the backup process, the
於一實施例中,驗證模組307是對欲備份的電子設備42、43進行驗證,以避免對錯誤的設備進行備份。舉例來說,驗證模組307可經由通訊介面302、303傳送驗證資訊(如備份請求中的電子設備的識別資訊及/或密碼)至電子設備42、43,以使電子設備42、43對驗證資訊進行驗證(如判斷識別資訊及/或密碼是否正確)。
In one embodiment, the
於另一例子中,驗證模組307可經由通訊介面302、303接收該電子設備42、43於判斷通過驗證後所發出的該設備資料,電子設備42、43接收識別資訊及/或密碼,並與驗證資訊進行比對以判斷電子設備42、43是否為適格的備份目標。
In another example, the
於一實施例中,驗證模組307是對請求備份的管理設備40或管理員進行驗證,如驗證管理設備40或管理員是否具有備份權限,或驗證管理設備40或管理員所提供密碼或憑證是否正確。
In one embodiment, the
若驗證模組307判斷通過驗證,則執行步驟403。若驗證模組307判斷未通過驗證則可發出警示並結束備份處理。
If the
本發明更提出一種狀態確認功能,可確認是否可進行備份,以避免無效備份或備份失敗。 The present invention further provides a status confirmation function, which can confirm whether the backup can be performed, so as to avoid invalid backup or backup failure.
步驟S403:控制器300確認欲備份的電子設備42、43的狀態。
Step S403: The
於一實施例中,控制器300經由通訊介面302、303確認電子設備42、43是否處於可備份狀態,如閒置中,或者設備資料是否處於編輯中狀態(此狀態下可能會備份到舊版的設備資料)。
In one embodiment, the
於一實施例中,控制器300判斷電子設備42、43的設備資料是否發生變更,如比較當前設備資料與先前儲存的備份資料所對應的備份設備資料,以判斷電子設備42、43的設定於這段期間內是否發生變更。
In one embodiment, the
若控制器300判斷電子設備42、43需要進行備份(如處於可備份狀態或設定已變更),則執行步驟S404。否則,結束本次備份處理。
If the
步驟S404:於備份處理中,控制器300取得電子設備42、43的最新(當前)設備資料,如發出請求來使電子設備42、43回傳設備資料。
Step S404: During the backup process, the
步驟S405:於備份處理中,控制器300對所收到的設備資料執行保存格式轉換處理以轉換設備資料為符合保存格式的備份資料。
Step S405: During the backup process, the
步驟S406:於備份處理中,控制器300儲存備份資料完成本次備份,並發出通知。
Step S406: During the backup process, the
步驟S407:控制器300判斷預設的還原觸發條件是否滿足。
Step S407: The
於一實施例中,還原觸發條件可為指定時刻到來、每次連接電子設備、自管理設備40收到還原命令及/或經由人機介面306接收還原操作,不加以限定。
In one embodiment, the restoration trigger condition may be the arrival of a specified time, every time the electronic device is connected, the restoration command is received from the
於一實施例中,還原觸發條件有指定的電子設備41-44與備份範圍(如全部或部分運轉參數)。後續說明以還原電子設備42、43的所有運轉參數為例。
In one embodiment, the restoration trigger condition includes the designated electronic device 41-44 and the backup range (such as all or part of the operating parameters). The following description takes the restoration of all the operating parameters of the
若控制器300判斷還原觸發條件滿足,則執行步驟S408以開始執行還原處理。否則,控制器300再次執行步驟S407以持續監測。
If the
本發明的驗證功能,還可於執行還原前對請求設備與目標設備進行驗證,以提升安全性。 The verification function of the present invention can also verify the requesting device and the target device before performing restoration, so as to improve security.
步驟S408:於還原處理中,驗證模組307取得驗證資訊,並以此驗證資訊判斷是否通過驗證。
Step S408: In the restoration process, the
上述驗證判斷方式是與步驟S402的驗證方式相同或相似,於此不再贅述。 The above verification judgment method is the same as or similar to the verification method in step S402, and will not be repeated here.
若驗證模組307判斷通過驗證(如自電子設備42、43收到通過驗證通知),則執行步驟409。若驗證模組307判斷未通過驗證則可發出警示並結束還原處理。
If the
值得一提的是,步驟S402及步驟S408的驗證處理並不是本發明的必要步驟,於安全無虞的情況下,本領域的技術人員可依需求省略這些步驟。 It is worth mentioning that the verification processing of step S402 and step S408 is not a necessary step of the present invention, and those skilled in the art can omit these steps as required if it is safe.
本發明更提出一種狀態確認功能,可確認是否可進行還原,以避免無效還原(如於設定沒有變更的狀態下而執行無用的還原)或還原失敗(如設備處於不可還原狀態)。 The present invention further provides a status confirmation function, which can confirm whether the restoration is possible, so as to avoid invalid restoration (such as performing useless restoration when the settings are not changed) or restoration failure (such as the device in an unrecoverable state).
步驟S409:控制器300確認欲還原的電子設備42、43的狀態,如經由通訊介面302、303分別確認電子設備42、43是否處於可還原狀態。
Step S409: The
若控制器300判斷電子設備42、43處於可還原狀態,則執行步驟S410。否則,結束本次還原處理。
If the
步驟S410:控制器300取得電子設備42、43的當前設備資料,比較當前設備資料與備份資料所對應的備份設備資料以判斷電子設備42、43的設定是否發生變更。
Step S410: The
若控制器300判斷電子設備42、43的設定(即設備資料)已變更,則執行步驟S411。否則,結束本次還原處理。
If the
步驟S411:於還原處理中,控制器300取得電子設備42、43的備份資料
Step S411: During the restoration process, the
步驟S412:於還原處理中,控制器300對備份資料執行轉送格式轉換處理以轉換所取得的備份資料為符合通訊介面302、303所使用的通訊協定的轉送格式的還原資料。
Step S412: In the restoration process, the
步驟S413:於還原處理中,控制器300經由通訊介面302使用對應的通訊協定來傳送對應的還原資料至電子設備42、43。
Step S413: During the restoration process, the
步驟S414:於還原處理中,電子設備42、43分別依據所收到的還原資料執行還原設定。
Step S414: In the restoration process, the
藉此,本發明可有效實現跨協定的設備備份與設備還原。 In this way, the present invention can effectively implement device backup and device restoration across protocols.
續請一併參閱圖4及圖9,圖4為本發明一實施態樣的轉送格式的示意圖,圖9為本發明第一實施例的跨協定的設備還原方法的格式轉換處理的流程圖。 Please refer to FIGS. 4 and 9 together. FIG. 4 is a schematic diagram of a transfer format of an embodiment of the present invention. FIG. 9 is a flowchart of the format conversion process of the cross-protocol device restoration method of the first embodiment of the present invention.
本發明提供一種保存格式,可相容於多種通訊協定的格式。如圖4所示,保存格式5主要可包括四個欄位:轉送逾時時間50、轉送位址型別51、轉送位址52及轉送內容53。
The present invention provides a storage format that is compatible with formats of multiple communication protocols. As shown in FIG. 4, the saving
轉送位址型別用以描述連接轉送目的地的通訊介面所使用的通訊協定。轉送逾時時間用以設定執行轉送時允許的等待時間上限。轉送位址用以描述轉送目的地於通訊介面上的位址。轉送內容用以記載欲轉送的資料內容。 The forwarding address type is used to describe the communication protocol used by the communication interface connected to the forwarding destination. The transfer timeout time is used to set the upper limit of the waiting time allowed when the transfer is performed. The forwarding address is used to describe the address of the forwarding destination on the communication interface. The transfer content is used to record the content of the data to be transferred.
本實施例的跨協定的設備還原方法的格式轉換處理包括以下步驟。 The format conversion processing of the cross-contract device restoration method of this embodiment includes the following steps.
步驟S50:控制器300將所收到的原始資料(如自管理設備40或電子設備41-44收到的資料)的格式轉換為保存格式,如將原始格式的原始資料轉換為保存格式的保存資料。
Step S50: The
步驟S51:控制器300依據原始資料的轉送位址型別決定轉送逾時時間。
Step S51: The
具體而言,不同的通訊協定(轉送位址型別)所能允許的轉送逾時時間也不同,本發明於轉換格式時,一併設定適合的轉送逾時時間,可有效降低傳輸失敗的機率。 Specifically, different communication protocols (transfer address types) allow different transfer timeout times. The present invention also sets a suitable transfer timeout time when converting the format, which can effectively reduce the probability of transmission failure. .
步驟S52:控制器300將保存資料自保存格式轉換為轉送位址型別所對應的轉送格式,即將保存格式的保存資料轉換為轉送格式的轉送資料。
Step S52: The
藉此,本發明可實現不同通訊協定之間的格式轉換。 In this way, the present invention can realize format conversion between different communication protocols.
接著示例性說明本發明的格式轉換。表1與表2是以將保存格式轉換為MODBUS格式為例。表1為保存格式的請求資料,表2為MODBUS格式的回應資料。 Next, the format conversion of the present invention will be exemplified. Table 1 and Table 2 are examples of converting the save format to MODBUS format. Table 1 is the request data in the save format, and Table 2 is the response data in the MODBUS format.
由表1、表2可看出,由於保存格式包含了MODBUS格式的所有欄位,而可以將保存格式轉換為MODBUS格式。並且,MODBUS格式也可轉換為保存格式(僅須設定對應的逾時時間)。具體而言,表1的轉送內容0至5的組合是對應表2的回傳內容0至3的組合,各筆轉送內容0至4的欄位長度可與各筆回傳內容0至7的欄位長度相同或不同。 It can be seen from Table 1 and Table 2 that since the save format includes all the fields of the MODBUS format, the save format can be converted to the MODBUS format. In addition, the MODBUS format can also be converted to a save format (only the corresponding timeout time needs to be set). Specifically, the combination of transfer content 0 to 5 in Table 1 corresponds to the combination of return content 0 to 3 in Table 2. The field length of each transfer content 0 to 4 can be the same as that of each return content 0 to 7. The field lengths are the same or different.
於上述範例中,是使用站號(為1)進行定址。並且,由於序列通訊較慢,故採用較大的逾時時間(3000毫秒)。 In the above example, the station number (1) is used for addressing. Also, because serial communication is slow, a larger timeout time (3000 milliseconds) is used.
表3與表4是以將保存格式轉換為MODBUS TCP格式為例。表3為保存格式的請求資料,表4為MODBUS TCP格式的回應資料。 Table 3 and Table 4 are examples of converting the save format to MODBUS TCP format. Table 3 shows the request data in the save format, and Table 4 shows the response data in the MODBUS TCP format.
由表3、表4可看出,由於保存格式包含了MODBUS TCP格式的所有欄位,而可以將保存格式轉換為MODBUS TCP格式。並且,MODBUS TCP格式也可轉換為保存格式(僅須設定對應的逾時時間)。具體而言,表3的轉送內容0至4的組合是對應表4的回傳內容0至3的組合,各筆轉送內容0至4的欄位長度可與各筆回傳內容0至7的欄位長度相同或不同。 It can be seen from Table 3 and Table 4 that since the save format includes all the fields of the MODBUS TCP format, the save format can be converted to the MODBUS TCP format. In addition, the MODBUS TCP format can also be converted to a save format (only the corresponding timeout time needs to be set). Specifically, the combination of forwarded content 0 to 4 in Table 3 corresponds to the combination of returned content 0 to 3 in Table 4. The field length of each forwarded content 0 to 4 can be the same as that of each returned content 0 to 7. The field lengths are the same or different.
於上述範例中,是使用網路位址(IP,為192.168.1.5)與站號(為1)進行定址。並且,由於乙太網速度較快,故採用較小的逾時時間(500毫秒)。 In the above example, the network address (IP, 192.168.1.5) and station number (1) are used for addressing. In addition, due to the faster Ethernet speed, a smaller timeout time (500 milliseconds) is used.
表5與表6是以將保存格式轉換為CANopen格式為例。表5為保存格式的請求資料,表6為CANopen格式的回應資料。 Table 5 and Table 6 are examples of converting the save format to CANopen format. Table 5 shows the request data in the save format, and Table 6 shows the response data in the CANopen format.
由表5、表6可看出,由於保存格式包含了CANopen格式的所有欄位,而可以將保存格式轉換為CANopen格式。並且,CANopen格式也可轉換為保存格式(僅須設定對應的逾時時間)。具體而言,表5的轉送內容0至4的組合是對應表6的回傳內容0至7的組合,各筆轉送內容0至4的欄位長度可與各筆回傳內容0至7的欄位長度相同或不同。 It can be seen from Table 5 and Table 6 that since the save format includes all the fields of the CANopen format, the save format can be converted to the CANopen format. And, CANopen format can also be converted to save format (only need to set the corresponding timeout time). Specifically, the combination of forwarded content 0 to 4 in Table 5 corresponds to the combination of returned content 0 to 7 in Table 6, and the field length of each forwarded content 0 to 4 can be the same as that of each returned content 0 to 7. The field lengths are the same or different.
於上述範例中,是使用節點ID(為1)進行定址。並且,由於CANopen通訊速度較快,故採用較小的逾時時間(500毫秒)。 In the above example, the node ID (1) is used for addressing. In addition, due to the faster CANopen communication speed, a smaller timeout time (500 milliseconds) is adopted.
藉此,本發明經由格式轉換處理,可實現跨協定通訊與備份。 In this way, the present invention can realize cross-protocol communication and backup through format conversion processing.
當然,本發明還可有其它多種實施例,在不背離本發明精神及其實質的情況下,本發明所屬技術領域中具有通常知識者當可根據本發明作出各 種相應的改變和變形,但這些相應的改變和變形都應屬於本發明所附的申請專利範圍。 Of course, the present invention can also have various other embodiments. Without departing from the spirit and essence of the present invention, a person with ordinary knowledge in the technical field to which the present invention belongs can make various modifications according to the invention. There are corresponding changes and deformations, but these corresponding changes and deformations should belong to the scope of the patent application attached to the present invention.
S10-S15:還原步驟 S10-S15: Restoration steps
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW109105255A TWI731592B (en) | 2020-02-19 | 2020-02-19 | Cross-protocols control apparatus with apparatus-restoring function and method of restoring apparatus for cross-protocols thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW109105255A TWI731592B (en) | 2020-02-19 | 2020-02-19 | Cross-protocols control apparatus with apparatus-restoring function and method of restoring apparatus for cross-protocols thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
TWI731592B true TWI731592B (en) | 2021-06-21 |
TW202133000A TW202133000A (en) | 2021-09-01 |
Family
ID=77517358
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW109105255A TWI731592B (en) | 2020-02-19 | 2020-02-19 | Cross-protocols control apparatus with apparatus-restoring function and method of restoring apparatus for cross-protocols thereof |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI731592B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI252645B (en) * | 2004-12-30 | 2006-04-01 | Inventec Appliances Corp | Method for automatically restoring the communication settings for mobile device |
US20060184703A1 (en) * | 2003-09-11 | 2006-08-17 | Sharp Kabushiki Kaisha | Information communication device and condition setting method |
TW200826547A (en) * | 2006-12-01 | 2008-06-16 | Cameo Communications Inc | An intelligent automatic setting restoration method and device |
TW201232263A (en) * | 2011-01-28 | 2012-08-01 | Chunghwa Telecom Co Ltd | System for multi-system remote backup management unification and method thereof |
CN102780705A (en) * | 2012-08-10 | 2012-11-14 | 浙江工业大学 | Ethernet-(controller area network) CAN protocol converter |
CN103106123A (en) * | 2012-12-27 | 2013-05-15 | 苏州佳世达电通有限公司 | Backup recovery device and wireless parameter backup recovery method |
CN103248503A (en) * | 2012-02-03 | 2013-08-14 | 中兴通讯股份有限公司 | Method and device for configuration data backup and restore function in network management |
US20160274978A1 (en) * | 2015-03-16 | 2016-09-22 | Rockwell Automation Technologies, Inc. | Backup of an industrial automation plant in the cloud |
-
2020
- 2020-02-19 TW TW109105255A patent/TWI731592B/en active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060184703A1 (en) * | 2003-09-11 | 2006-08-17 | Sharp Kabushiki Kaisha | Information communication device and condition setting method |
TWI252645B (en) * | 2004-12-30 | 2006-04-01 | Inventec Appliances Corp | Method for automatically restoring the communication settings for mobile device |
TW200826547A (en) * | 2006-12-01 | 2008-06-16 | Cameo Communications Inc | An intelligent automatic setting restoration method and device |
TW201232263A (en) * | 2011-01-28 | 2012-08-01 | Chunghwa Telecom Co Ltd | System for multi-system remote backup management unification and method thereof |
CN103248503A (en) * | 2012-02-03 | 2013-08-14 | 中兴通讯股份有限公司 | Method and device for configuration data backup and restore function in network management |
CN102780705A (en) * | 2012-08-10 | 2012-11-14 | 浙江工业大学 | Ethernet-(controller area network) CAN protocol converter |
CN103106123A (en) * | 2012-12-27 | 2013-05-15 | 苏州佳世达电通有限公司 | Backup recovery device and wireless parameter backup recovery method |
US20160274978A1 (en) * | 2015-03-16 | 2016-09-22 | Rockwell Automation Technologies, Inc. | Backup of an industrial automation plant in the cloud |
Also Published As
Publication number | Publication date |
---|---|
TW202133000A (en) | 2021-09-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8433772B2 (en) | Automated tape drive sharing in a heterogeneous server and application environment | |
CN104081331A (en) | Bridging non-network interfaces and network interfaces | |
JP2011170839A (en) | Processing system and method for connecting to remote usb device automatically | |
CN106464521B (en) | Method and system for deterministically automatically configuring devices | |
JP5792866B2 (en) | Profibus DP master device | |
CN110161896B (en) | Control system for a power supply assembly and associated method for starting, controlling and monitoring a power supply assembly | |
JP2013196347A (en) | Information processing device and information processing program | |
TWI731592B (en) | Cross-protocols control apparatus with apparatus-restoring function and method of restoring apparatus for cross-protocols thereof | |
WO2006054401A1 (en) | Field apparatus and system employing the same | |
US8819481B2 (en) | Managing storage providers in a clustered appliance environment | |
US20210263812A1 (en) | Cross-protocol control apparatus with apparatus-restoring function and cross-protocol method for restoring apparatuses | |
CN105281944B (en) | Method for setting network protocol address and service management system | |
JP5705699B2 (en) | Connection control system and connection control method | |
EP3028430B1 (en) | System allowing access to defined addresse after check with access-list | |
JP2005208967A (en) | Management computer and method for managing storage device | |
CN110955537B (en) | Method and device for containing pipes by physical machine | |
CN103136129A (en) | Apparatus and method of a portable terminal for performing communication with a device supporting media transfer protocol | |
CN110808943B (en) | Client connection emergency management method, client and computer readable storage medium | |
TW201433122A (en) | System and method for managing remote control | |
CN105872096B (en) | A kind of distal end shared system of external equipment | |
US11516079B1 (en) | Network initialization communication storage system | |
US11656879B2 (en) | Automated OS networking configuration system | |
CN115086579B (en) | Video matrix redundancy backup method and device, terminal equipment and storage medium | |
WO2020103102A1 (en) | Data processing device | |
KR20070088889A (en) | Data backup method for network |