TWI762824B - Communication task analysis method, device and computer readable recording medium - Google Patents
Communication task analysis method, device and computer readable recording medium Download PDFInfo
- Publication number
- TWI762824B TWI762824B TW108137539A TW108137539A TWI762824B TW I762824 B TWI762824 B TW I762824B TW 108137539 A TW108137539 A TW 108137539A TW 108137539 A TW108137539 A TW 108137539A TW I762824 B TWI762824 B TW I762824B
- Authority
- TW
- Taiwan
- Prior art keywords
- communication
- information
- task
- equipment
- semantic information
- Prior art date
Links
Images
Landscapes
- Computer And Data Communications (AREA)
Abstract
Description
本揭露是有關於一種通訊技術,且特別是有關於一種通訊任務解析方法及其裝置。 The present disclosure relates to a communication technology, and more particularly, to a communication task analysis method and device thereof.
為了達到工業自動化,在建置產線時,工程人員會先規劃每一個產線設備相應的資訊交換表於上位控制軟體,舉例來說,設備A對應的資料交換區塊被設定在表單中位置2000~3000之處,設備B對應的資料交換區塊被設定在表單中位置3000~4000之處,且資料交換區塊中的每個欄位均有明確的含義說明與資料格式定義。藉此,當上位控制單元接收到設備A及/或設備B的封包時,會依據資料交換區塊內的訊息定義進行任務下達或資訊交換等工作。由於在上述的過程中需以人工的方式設定資訊交換表,不僅相當耗費人力,且缺乏修改的彈性。特別是,當產線上有設備異動時,工程人員必須重新對該些設備進行設定與核對, 相當不便。因此,建置各產業設備對應的數位資訊模型為現階段的趨勢。 In order to achieve industrial automation, when building a production line, engineers will first plan the corresponding information exchange table for each production line equipment in the upper control software. For example, the data exchange block corresponding to equipment A is set in the table. From 2000 to 3000, the data exchange block corresponding to device B is set at positions 3000 to 4000 in the form, and each field in the data exchange block has a clear meaning and data format definition. Thereby, when the upper control unit receives the packets from the device A and/or the device B, it will perform tasks such as task assignment or information exchange according to the message definition in the data exchange block. In the above process, the information exchange table needs to be set manually, which is not only labor-intensive, but also lacks flexibility for modification. In particular, when there are equipment changes on the production line, engineers must re-set and check these equipment. Quite inconvenient. Therefore, it is the current trend to build digital information models corresponding to various industrial equipment.
然而,即使建置了數位資訊模型,全球統一的設備資訊模型仍不存在。主要的原因在於,第一,設備之間存在高度特異性,難以套用統一的模型。第二,不同行業有不同的術語與使用習慣。第三,即便相同行業,然在不同地界區域下,所採用的行業規範也不一樣,故而難以找到全球共通的資訊模型作為所有設備的數位表達。因此,即使同產業的設備支援相同的設備模版(meta-model)時,資訊模型仍會有不同呈現。不僅如此,產線上不同的設備種類仍有其各自所支持的設備資訊模型,彼此間亦不相同,仍有資訊交換與設備彼此通訊任務解析與理解的問題。基於上述,如何在減少人力的介入下,支援不同類型的設備進行通訊為本領域技術人員所致力的課題。 However, even with the establishment of a digital information model, a globally unified device information model still does not exist. The main reason is that, first, there is a high degree of specificity between devices, and it is difficult to apply a unified model. Second, different industries have different terms and usage habits. Third, even in the same industry, the industry norms adopted are different in different regions, so it is difficult to find a globally common information model as the digital representation of all devices. Therefore, even when devices of the same industry support the same meta-model, the information model will still be presented differently. Not only that, different types of equipment on the production line still have their own supported equipment information models, which are also different from each other, and there are still problems of information exchange and equipment communication tasks analysis and understanding. Based on the above, how to support different types of devices to communicate with less human intervention is a subject of those skilled in the art.
本揭露提供一種通訊任務解析方法、裝置及電腦可讀取記錄媒體,以使裝置間能夠通過通訊任務解析達到自主溝通的情形。 The present disclosure provides a communication task analysis method, a device, and a computer-readable recording medium, so that the devices can achieve autonomous communication through communication task analysis.
本揭露的通訊任務解析方法具有下列步驟:獲取通訊語意資訊與設備語意資訊的對應關係;接收通訊封包,其中通訊封包包括目標任務資訊;依據通訊語意資訊解析通訊封包,以獲取目標任務資訊;依據通訊語意資訊與設備語意資訊的對應關係, 判斷設備語意資訊中是否存在對應目標任務資訊的一候選設備資訊;響應於設備語意資訊中存在候選設備資訊,判斷候選設備資訊是否相容於目標任務資訊;以及依據判斷的結果回覆通訊封包。 The communication task analysis method disclosed in the present disclosure has the following steps: obtaining a correspondence between communication semantic information and device semantic information; receiving a communication packet, wherein the communication packet includes target task information; analyzing the communication packet according to the communication semantic information to obtain the target task information; The correspondence between communication semantic information and device semantic information, Determine whether a candidate device information corresponding to the target task information exists in the device semantic information; in response to the device semantic information existing candidate device information, determine whether the candidate device information is compatible with the target task information; and reply a communication packet according to the judgment result.
本揭露亦提供用以進行通訊任務解析的裝置,且此裝置具有通訊裝置、儲存裝置以及處理器。通訊裝置用以傳送與接收封包。儲存裝置用以儲存資訊。處理器連接通訊裝置與儲存裝置。處理器用以執行下列步驟:獲取通訊語意資訊與設備語意資訊的對應關係,並儲存在儲存裝置中;通過通訊裝置接收通訊封包,其中通訊封包包括目標任務資訊;依據通訊語意資訊解析通訊封包,以獲取目標任務資訊;依據通訊語意資訊與設備語意資訊的對應關係,判斷設備語意資訊中是否存在對應目標任務資訊的候選設備資訊;響應於設備語意資訊中存在候選設備資訊,判斷候選設備資訊是否相容於目標任務資訊;以及通過通訊裝置依據判斷的結果回覆通訊封包。 The present disclosure also provides a device for performing communication task analysis, and the device has a communication device, a storage device and a processor. The communication device is used for transmitting and receiving packets. The storage device is used to store information. The processor is connected to the communication device and the storage device. The processor is used for executing the following steps: acquiring the correspondence between the communication semantic information and the device semantic information, and storing it in the storage device; receiving the communication packet through the communication device, wherein the communication packet includes the target task information; analyzing the communication packet according to the communication semantic information, to obtain Obtain target task information; according to the correspondence between the communication semantic information and the device semantic information, determine whether there is candidate device information corresponding to the target task information in the device semantic information; in response to the presence of candidate device information in the device semantic information, determine whether the candidate device information is related. containing the target task information; and replying to the communication packet through the communication device according to the judgment result.
本揭露還提供用於通訊任務解析的電腦可讀取記錄媒體,具有電腦程式,且在電腦載入此電腦程式執行後,可完成本揭露所提供的通訊任務解析方法。 The present disclosure also provides a computer-readable recording medium for communication task analysis, having a computer program, and after the computer is loaded and executed, the communication task analysis method provided by the present disclosure can be completed.
基於上述,本揭露的通訊任務解析方法、用以進行通訊任務解析的裝置以及用於進行通訊任務解析的電腦可讀取記錄媒體中,採用了通用統一的通訊協議的語法規範作為不同設備之間的媒介,弭平不同設備的語法差異造成的溝通問題。因此,在建立了通訊語意資訊與設備語意資訊的對應關係後,不論產線的設 備、位置進行新增、移除或變更,設備之間仍然可以採用共通的通訊語意資訊達到溝通的目的,建立設備之間自主通訊任務解析的能力,減少操作人員對產線上設備重新進行設定的人力成本。 Based on the above, in the communication task analysis method, the device for communication task analysis, and the computer-readable recording medium for communication task analysis of the present disclosure, the syntax specification of a general and unified communication protocol is used as the communication protocol between different devices. media to smooth out communication problems caused by grammatical differences between different devices. Therefore, after establishing the corresponding relationship between the communication semantic information and the equipment semantic information, regardless of the design of the production line If equipments and locations are added, removed or changed, common communication semantic information can still be used between equipments to achieve the purpose of communication, establish the ability of independent communication task analysis between equipments, and reduce the need for operators to reset the equipment on the production line. Labor costs.
100、400:裝置 100, 400: Device
110:通訊裝置 110: Communication device
111a、111b:通訊介面 111a, 111b: Communication interface
120:儲存裝置 120: Storage Device
130:處理器 130: Processor
410a~410c、610:裝置本體 410a~410c, 610: Device body
420、620:主控裝置 420, 620: main control device
630a~630c:設備 630a~630c: Equipment
S210~S260、S310~S330、S510~S560、S710~S760:步驟 S210~S260, S310~S330, S510~S560, S710~S760: Steps
圖1繪示本揭露一實施例用以進行通訊任務解析的裝置的示意圖。 FIG. 1 is a schematic diagram of an apparatus for performing communication task analysis according to an embodiment of the present disclosure.
圖2繪示本揭露一實施例通訊任務解析方法的流程示意圖。 FIG. 2 is a schematic flowchart of a communication task analysis method according to an embodiment of the present disclosure.
圖3繪示本揭露一實施例通訊任務解析方法的部分流程示意圖。 FIG. 3 is a schematic flowchart of a part of a communication task analysis method according to an embodiment of the present disclosure.
圖4繪示本揭露又一實施例的用以進行通訊任務解析的裝置的示意圖。 FIG. 4 is a schematic diagram of an apparatus for performing communication task analysis according to yet another embodiment of the present disclosure.
圖5繪示本揭露又一實施例通訊任務解析方法的流程示意圖。 FIG. 5 is a schematic flowchart of a communication task analysis method according to another embodiment of the present disclosure.
圖6繪示本揭露再一實施例的用以進行通訊任務解析的裝置的示意圖。 FIG. 6 is a schematic diagram of an apparatus for performing communication task analysis according to still another embodiment of the present disclosure.
圖7繪示本揭露再一實施例通訊任務解析方法的流程示意圖。 FIG. 7 is a schematic flowchart of a communication task analysis method according to still another embodiment of the present disclosure.
設備語意資訊是以國際慣用之物件類型、屬性以及關系 類型描述詞彙庫與語法規範(Ontology)來建立與設備相關的語意模型。舉例來說,在國際通用的語法規範中,電子商務報價領域是採用「GoodRelations」的語法規範,產品描述是採用「eCl@ss」的語法規範,製造業是採用「RAMI」的語法規範。因此,在下述的說明中,設備語意資訊將透過「GoodRelations」的語法規範、「eCl@ss」的語法規範以及「RAMI」的語法規範建置設備相關的語意模型,以做為設備語意資訊。惟須說明的是,在本實施例是採用「GoodRelations」的語法規範、「eCl@ss」的語法規範以及「RAMI」的語法規範,並且,採用資源描述架構(Resource Description Framework,RDF)的架構結合上述各類型語法規範進行表述。然在其他的實施例之中,設備語意資訊可以通過更多的語法規範進行建置,又或者是,設備語意資訊亦可以通過其他的語法規範或表述方式進行建置,本揭露不限於此。 Device semantic information is based on internationally used object types, attributes, and relationships Type description vocabularies and grammar specifications (Ontology) to build device-related semantic models. For example, among the international grammar standards, the e-commerce quotation field adopts the grammar standard of "GoodRelations", the product description adopts the grammar standard of "eCl@ss", and the manufacturing industry adopts the grammar standard of "RAMI". Therefore, in the following description, the device semantic information will use the syntax specification of "GoodRelations", the syntax specification of "eCl@ss" and the syntax specification of "RAMI" to build a device-related semantic model as the device semantic information. It should be noted that, in this embodiment, the syntax specification of "GoodRelations", the syntax specification of "eCl@ss" and the syntax specification of "RAMI" are adopted, and the architecture of Resource Description Framework (RDF) is adopted. It is expressed in combination with the above-mentioned types of grammar specifications. However, in other embodiments, the device semantic information can be constructed through more grammar specifications, or the device semantic information can also be constructed through other grammar specifications or expressions, and the present disclosure is not limited thereto.
舉例來說,設備語意資訊中具有鑽孔(drilling)的服務類別(Class),在此服務類別之下,具有以「RAMI」進行定義的製造功能標籤,例如<RAMI:TechnologyFunctionality>。此外,此服務類別並具有以「eCl@ss」進行定義的產品/工程特徵屬性,例如,<eCl@ss:P_BAF455001>。此服務類別還具有以「GoodRelations」定義的施工價格,例如<GoodRelations:UnitPriceSpecification>。此外,此服務類別還增添了設備控制的資訊,例如,採用<eCl@ss:P_BAG064001>的標籤,以表示若操作設備中特定記憶體區塊的位置,能夠啟動鑽孔的服 務。在本揭露的其他實施例中,會依據服務類別增加、減少、變更服務類別下的標籤,本揭露不限於此。 For example, the equipment semantic information has a drilling service class (Class), and under this service class, there is a manufacturing function tag defined by "RAMI", such as <RAMI: TechnologyFunctionality>. In addition, this service class also has a product/engineering feature attribute defined with "eCl@ss", for example, <eCl@ss:P_BAF455001>. This service class also has construction prices defined in "GoodRelations", eg <GoodRelations:UnitPriceSpecification>. In addition, this service category also adds information about device control, for example, the tag <eCl@ss:P_BAG064001> is used to indicate that if the location of a specific memory block in the device is manipulated, the drilling service can be activated. service. In other embodiments of the present disclosure, labels under the service category are added, decreased, and changed according to the service category, but the present disclosure is not limited thereto.
通訊語意資訊是在收到封包後,用以通過通訊語意資訊來解析封包。也就是說,通訊語意資訊相當於設備內部資源與外部通訊的內部中介層。因此,通訊語意資訊可以採用國際標準的方式來解讀封包的內容,例如VDI2193-1/2國際標準,或者是,通訊語意資訊亦可以採用設備自定義的內容對通訊語意進行定義,任何能夠使設備了解封包內容的語意資訊皆可被採用於通訊語意資訊之中。 The communication semantic information is used to parse the packet through the communication semantic information after receiving the packet. That is to say, the semantic information of communication is equivalent to the internal intermediary layer between the internal resources of the device and the external communication. Therefore, the communication semantic information can use an international standard way to interpret the content of the packet, such as the VDI2193-1/2 international standard, or, the communication semantic information can also use the content customized by the device to define the communication semantics. Any semantic information that understands the contents of the packet can be used in the communication semantic information.
在本揭露的一實施例中,通訊語意資訊亦是採用資源描述架構進行定義。並且,在封包結構中具備語意資訊者會建立成通訊本體之類別(class),例如,通訊目的(Purpose)/通訊對象(Object)/通訊收發方(Receiver/Sender)等資訊建立為通訊封包(Sentence)類之子類別,並將通訊規範中通訊目的使用的代碼或字串(例如:“請求/取消服務”、”取得/設定/刪除/查詢/訂閱”資料、”通知”等)指定為通訊目的類別資源項。舉例來說,在通訊語意資訊中的其中一個類別為「Purpose」,在其底下的註解(Annotation)例如為,「rdfs:Contains “Failure”^^xsd:string」、「rdfs:Contains “Propose”^^xsd:string」、「rdfs:Contains “Confirm”^^xsd:string」、「rdfs:Contains “RejectProposal”^^xsd:string」、「rdfs:Contains “NonUnderstand”^^xsd:string」、「rdfs:Contains <Query”^^xsd:string」、「rdfs:Contains “Inform”^^xsd:string」、 「rdfs:Contains “Cancel”^^xsd:string」、「rdfs:Contains “AcceptProposal”^^xsd:string」、「rdfs:Contains “CallForProposal”^^xsd:string」、「rdfs:Contains “Agree”^^xsd:string」、「rdfs:Contains “Refuse”^^xsd:string」、「rdfs:Contains “Agree”^^xsd:string」、「rdfs:Contains “Subscribe”^^xsd:string」...等,然本揭露不限於此。 In an embodiment of the present disclosure, the communication semantic information is also defined using a resource description framework. In addition, those with semantic information in the packet structure will be established as the class of the communication ontology. For example, information such as the communication purpose (Purpose)/communication object (Object)/communication sender/receiver (Receiver/Sender) is established as a communication packet ( Sentence), and designates the code or string used for the purpose of communication in the communication specification (for example: "request/cancel service", "get/set/delete/query/subscribe" data, "notify", etc.) as the communication The purpose category resource item. For example, one of the categories in the communication semantic information is "Purpose", and the annotations under it are, for example, "rdfs:Contains "Failure"^^xsd:string", "rdfs:Contains "Propose" ^^xsd:string", "rdfs:Contains "Confirm"^^xsd:string", "rdfs:Contains "RejectProposal"^^xsd:string", "rdfs:Contains "NonUnderstand"^^xsd:string", " rdfs:Contains <Query"^^xsd:string", "rdfs:Contains "Inform"^^xsd:string", "rdfs:Contains "Cancel"^^xsd:string", "rdfs:Contains "AcceptProposal"^^xsd:string", "rdfs:Contains "CallForProposal"^^xsd:string", "rdfs:Contains "Agree"^ ^xsd:string", "rdfs:Contains "Refuse"^^xsd:string", "rdfs:Contains "Agree"^^xsd:string", "rdfs:Contains "Subscribe"^^xsd:string"... etc., of course, the present disclosure is not limited to this.
圖1繪示本揭露一實施例用以進行通訊任務解析的裝置的示意圖。請參照圖1,裝置100具有進行通訊任務解析的功能,在本揭露的一實施例中,裝置100具有通訊裝置110、儲存裝置120以及處理器130。
FIG. 1 is a schematic diagram of an apparatus for performing communication task analysis according to an embodiment of the present disclosure. Referring to FIG. 1 , the
通訊裝置110用以傳送與接收封包,舉例來說,通訊裝置110是以通訊晶片進行實作,通訊晶片可為支援無線相容性認證(Wireless Fidelity,Wi-Fi)系統、乙太網路(Ethernet)、藍牙等各類型通訊信號傳輸的元件,本揭露不限於此。除此之外,通訊裝置110會搭配可支援的通訊介面111a及111b。舉例來說,若通訊裝置110是採用乙太網路的通訊晶片,通訊介面111a及111b例如是採用RJ45接頭,並支援乙太網路的介面。在此實施例中,通訊介面111a會與外部網路連接,以接收來自其他設備並夾帶目標任務封資訊的通訊封包。通訊介面111b則會與其他設備形成內部網路,以下達對其他設備的設備控制指令。詳細的細節將會於後方再進行說明。惟需先說明的是,通訊介面111a、111b可以為相同類型或不同類型的介面,本揭露不限於此。並且,在圖1所繪示,
連接外部網路的通訊介面111a以及連接內部網路的通訊介面111b的數量各為一個,然在其他實施例中,通訊介面111a、111b的數量也可以分別為多個,本揭露並不限於此。
The
儲存裝置120是用以儲存資訊,特別是,儲存裝置120儲存進行通訊任務解析時所需的軟體、資料及各類程式碼,例如,設備語意資訊及通訊語意資訊。儲存裝置120可以是任何型態的固定或可移動隨機存取記憶體(Random Access Memory,RAM)、唯讀記憶體(Read-Only Memory,ROM)、快閃記憶體(flash memory)、硬碟(Hard Disk Drive,HDD)、固態硬碟(Solid State Drive,SSD)或類似元件或上述元件的組合。
The
值得一提的是,在本實施例中,儲存裝置120是採用資料庫系統儲存設備語意資訊及通訊語意資訊,並支援在資源描述框架中進行查詢,例如,SPARQL的查詢語言,然本揭露不限於此。
It is worth mentioning that, in this embodiment, the
處理器130連接於通訊裝置110以及儲存裝置120,並用以執行通訊任務解析的必要運算。處理器130可以是中央處理單元(Central Processing Unit,CPU),或是其他可程式化之一般用途或特殊用途的微處理器(Microprocessor)、數位信號處理器(Digital Signal Processor,DSP)、可程式化控制器、特殊應用積體電路(Application Specific Integrated Circuit,ASIC)或其他類似元件或上述元件的組合,本揭露不限於此。
The
惟須說明的是,在本揭露的一實施例中,用以進行通訊
任務解析的裝置100會與多個設備進行連接,以作為設備之間協調、分配任務的橋梁。又或者是,在本揭露的又一實施例中,用以進行通訊任務解析的裝置100是一台獨立作業的機台,並協調自身的多個作業部位。本揭露並不以此為限。
It should be noted that, in an embodiment of the present disclosure, for communication
The
圖2繪示本揭露一實施例通訊任務解析方法的流程示意圖。在此實施例中,通訊任務解析方法至少適用於圖1所繪示的裝置100,然本發明不限於此。以下將同時搭配圖1與圖2說明裝置100完成通訊任務解析方法的細節。
FIG. 2 is a schematic flowchart of a communication task analysis method according to an embodiment of the present disclosure. In this embodiment, the communication task analysis method is at least applicable to the
在步驟S210,由處理器130獲取通訊語意資訊與設備語意資訊的對應關係。
In step S210, the
在本揭露的一實施例中,處理器130獲取通訊語意資訊與設備語意資訊的對應關係的細節是由圖3來進行說明。請參照圖3,圖3繪示本揭露一實施例通訊任務解析方法的部分流程示意圖。在步驟S310,由處理器130獲取設備語意資訊以及通訊語意資訊。詳細來說,處理器130可以通過在網路上自行下載各類語法規範,以將每一個語法規範儲存在儲存裝置120中。又或者是,在出廠時,或者是透過操作人員的操作,可以事先將各類型語法規範傳送並儲存在儲存裝置120之中。
In an embodiment of the present disclosure, the details of the correspondence between the communication semantic information and the device semantic information obtained by the
除此之外,處理器130還會獲取與設備相關的資訊,包括設備項目以及設備參數。設備項目是指特定的設備或者是裝置100的特定加工部件。承前所述,倘若裝置100是獨立作業的機台,設備項目對應至裝置100的特定加工部件,例如鑽孔部件、
打磨部件等。又或者是,倘若裝置100是在多個設備之間協調溝通的橋梁,設備項目的對應項目例如但不限於,鑽孔機、打磨機、壓合機等,本揭露並不以此為限。在此實施例中,設備項目例如可以採用設備的網際網路協定位址(Internet Protocol Address,IP address)、特定的通訊埠、在區域網路中的設備名稱等來進行定義。設備參數則是設備/加工部件的自身規格以及其所能提供的服務規格。詳細來說,在設備出廠時,操作人員會將機台的大小尺寸、電路設計圖、運轉規則、服務內容、單位成本等先建立在儲存裝置120中,以作為設備參數。或者是,在偵測到設備首次連接置處理器130時,處理器130可以通過通訊裝置110連接到指定的網站下載與設備相關的資訊,本揭露並不以此為限。舉例來說,設備相關的資訊例如「設備A提供鑽孔的服務,且鑽孔的口徑大小約在0.5-3公分之間」。藉由各類型語法規範,處理器130能夠將設備相關的資訊轉換成統一的方式進行表述,以形成設備語意資訊。承前述,設備語意資訊例如採用RAMI定義鑽孔(drilling)的服務類別,並採用eCl@ss來定義口徑大小為0.5-3公分,藉此,以將各類型語法規範所定義好的與設備相關的資訊儲存為設備語意資訊。
In addition, the
值得一提的是,在本揭露的一實施例之中,處理器130還通過內嵌或外接的顯示裝置顯示一用戶介面,以讓操作人員透過制式且對應語法規範的欄位輸入與設備相關的資訊。藉此,處理器130可以快速地依據各個欄位而將設備相關的資訊轉換成特
定的語法規範進行統一的表述,然本發明不限於此。
It is worth mentioning that, in an embodiment of the present disclosure, the
相似地,處理器130能夠從網路上下載,或者是通過操作人員而獲取通訊語意資訊,於此即不詳述細節。
Similarly, the
在步驟S320,處理器130獲取設備語意資訊中每一設備項目允許的通訊項目。舉例來說,設備能夠接受對鑽孔項目的通訊項目例如為「請求服務」,以及,設備不能夠接受對鑽孔項目的通訊項目例如為「修改允許最大鑽孔的數值」。處理器130能夠藉由儲存在儲存裝置120中的資訊,或者是,接收操作人員的輸入,以獲取設備語意資訊中每一設備項目允許的通訊項目,本發明不限於此。
In step S320, the
在步驟S330,處理器130將設備項目允許的通訊項目的標籤分別加入設備參數中,以建立設備語意資訊與通訊語意資訊的對應關係。承前所述,倘若設備能夠接受對鑽孔項目的通訊項目為「請求服務」,此時,處理器130會將鑽孔的類別下增添<COMM:CallForProposal>標籤陳述句,以表示允許目標為「請求服務」的通訊封包。藉由在設備項目中加入以通訊語意資訊所表示的允許的通訊服務的標籤,設備語意資訊與通訊語意資訊的對應關係能夠基此而被建立,並被儲存在儲存裝置120之中。
In step S330, the
在本揭露的另一實施例中,通訊語意資訊與設備語意資訊的對應關係能夠事先被建立並由操作人員加入在儲存裝置120之中。又或者是,在本揭露又一實施例中,通訊語意資訊與設備語意資訊的對應關係能夠通過機器學習的方式自動分析建立,本
發明不以上述的實施方式為限。
In another embodiment of the present disclosure, the correspondence between the communication semantic information and the device semantic information can be established in advance and added to the
請回到圖1與圖2,在步驟S220,處理器130通過通訊裝置110接收通訊封包。在此實施例中,通訊封包具有目標任務資訊。目標任務資訊表示了通訊封包的目的,例如為,請求鑽孔服務。在此所述的通訊封包是以封包結構進行表述的,例如,通訊封包的結構可以為被表示為表一:
在步驟S230,處理器130依據通訊語意資訊解析通訊封
包,以獲取目標任務資訊。具體而言,處理器130會拆解封包結構,將通訊封包以通訊語意資訊進行描述,並獲取對應的目標任務資訊。舉例來說,解析完的通訊封包例如包括下列目標任務資訊:“Purpose”:“CallForProposal”,“DataElement”:{“SubModell”:“drilling”},{“PropertyID”:“ID_Drilling”},{“PropertyID”:”0173-1#02-BAF455#004”,“Value”:2.5},{“PropertyID”:”0173-1#02-AJ214#002”,“Value”:1.75}。此目標任務資訊即表示,此通訊封包的目的是請求服務,服務項目為鑽孔,任務對象(即,被請求服務的設備)具有鑽孔的功能,且任務內容(即,被請求的服務)為鑽孔的直徑為2.5公分,厚度為1.75公分。
In step S230, the
在步驟S240,處理器130依據通訊語意資訊與設備語意資訊的對應關係,判斷設備語意資訊中是否存在對應目標任務資訊的候選設備資訊。詳細而言,承如前述,通訊封包已經通訊語意資訊進行解析,並獲取任務對象以及任務內容。而儲存裝置120中亦已儲存設備機台的設備語意資訊,且通訊語意資訊與設備語意資訊存在對應關係。因此,處理器130能夠自動地依據任務對象,尋找設備項目中是否存在對應該任務對象的候選設備項目。在本揭露的一實施例中,處理器130是採用SPARQL的查詢語言對通訊語意資訊與設備語意資訊進行交叉查詢,以找到任務對象。承前述例子,處理器130會搜尋提供鑽孔服務的對象,以將具備鑽孔服務的對象作為候選設備項目,且每一候選設備項目及
其對應的設備參數即為候選設備資訊。
In step S240, the
倘若判斷不存在對應目標任務資訊的候選設備資訊,或者是,處理器130並無法正確解析目標任務資訊,以至於處理器130無法判斷是否存在對應目標任務資訊的候選設備資訊時,處理器130將回傳任務拒絕封包,以回覆通訊封包。
If it is determined that there is no candidate device information corresponding to the target task information, or the
在步驟S250,響應於設備語意資訊中存在候選設備資訊,處理器130判斷候選設備資訊是否相容於目標任務資訊。例如,倘若候選設備項目有3個,處理器130會分別判斷候選設備裝置對應的設備參數是否相容於目標任務資訊中的任務內容,即是否能夠提供鑽孔直徑為2.5公分以及厚度為1.75公分的服務。
In step S250, in response to the presence of candidate device information in the device semantic information, the
在步驟S260,處理器130依據判斷的結果回覆通訊封包。也就是說,倘若候選設備項目對應的設備參數不包括任務內容時,處理器130會據此而回傳任務拒絕封包,以回覆通訊封包。然而,倘若候選設備項目對應的設備參數包括任務內容時,處理器130會回傳任務回覆封包。惟須說明的是,依據實務需求調整任務回覆封包的內容會被調整。舉例來說,在本揭露的一實施例中,處理器130在判斷候選設備項目對應的設備參數包括任務內容時,不會要求候選設備資訊執行任務。取而代之的是,處理器130會在任務回覆封包的內容加入候選設備資訊中的成本資訊、時間資訊等,以先提供通訊封包的來源裝置執行任務所需的成本和時間等資訊,藉此,以讓通訊封包的來源裝置決定是否採用其中之一候選設備項目執行任務。
In step S260, the
在本揭露的另一實施例中,處理器130在判斷候選設備項目對應的設備參數包括任務內容時,則會依據設備語意資訊將目標任務資訊轉換為設備控制指令,並將設備控制指令發送至此候選設備項目中,以讓此候選設備項目執行任務內容。在候選設備執行完任務內容時,處理器130會接收到來自此候選設備項目的任務回應訊息(例如,任務開始執行、任務已完成等)。此時,處理器130會通過通訊裝置110發送任務回覆封包,以回覆通訊封包的來源裝置任務已開始/完成,本揭露並不以前述實施例為限。值得一提的是,倘若存在多個候選設備項目時,處理器130會依據候選設備資訊中的成本資訊、時間資訊、排程資訊等選擇其中之一候選設備項目執行任務內容,然本揭露不限於此。
In another embodiment of the present disclosure, when determining that the device parameter corresponding to the candidate device item includes the task content, the
圖4繪示本揭露又一實施例的用以進行通訊任務解析的裝置的示意圖。請參照圖4,在此實施例用以進行通訊任務解析的裝置400具有裝置本體410a、裝置本體410b以及裝置本體410c以及主控裝置420。
FIG. 4 is a schematic diagram of an apparatus for performing communication task analysis according to yet another embodiment of the present disclosure. Referring to FIG. 4 , the device 400 for performing communication task analysis in this embodiment includes a
裝置本體410a~410c是用以接收來自主控裝置的通訊封包,並能夠提供特定的服務。舉例但不限於,裝置本體410a~410c分別為壓合機、鑽孔機及打磨機,且彼此獨立運作。在下述說明裝置本體410a~410c的硬體中會以裝置本體410a進行說明,然裝置本體410b~410c會具備相似的硬體,且裝置本體410a具備通訊裝置412、儲存裝置414以及處理器416。通訊裝置412、儲存裝置414及處理器416相似於圖1實施例的通訊裝置110、儲存裝置
120及處理器130,於此不再贅述。此外,裝置本體410a~410c至少能夠分別以圖1的裝置100進行實作,然本揭露不限於此。
The
主控裝置420是發出通訊封包的裝置,並通過與外部網路連接的通訊介面411a而與裝置本體410a通訊連接。以製造業為例,在每一個工件上都存在一個識別標籤,例如,一維條碼、二維條碼或者是以無線射頻辨識標籤(Radio Frequency Identification tag,RFID標籤)。主控裝置420存在對應識別標籤類型的標籤讀取裝置,藉由讀取識別標籤,主控裝置420能夠追蹤工件的加工進度及其加工流程,並判斷此工件的下一個加工站是什麼。主控裝置420會基於工件的下一個加工站而產生並發送通訊封包。舉例來說,倘若此工件剛接受壓合機的加工,下一個加工站為鑽孔,此時,主控裝置420為壓合機,並發送通訊封包至其他機台請求鑽孔的服務。
The
又或者是,在其他的情形之中,例如智慧家電,在掃地機器人完成掃地的流程時,會發送通訊封包至其他的裝置請求拖地。 Or, in other situations, such as smart home appliances, when the sweeping robot completes the sweeping process, it will send a communication packet to other devices to request mopping.
又或者是,主控裝置420也可以為一中控裝置,用以發送通訊封包並整合機台的回覆,以完成服務的流程,本揭露不限於此。
Alternatively, the
圖5繪示本揭露又一實施例通訊任務解析方法的流程示意圖。圖5的通訊任務解析方法至少適用於圖4的裝置400,然本揭露不限於此。以下將同時搭配圖4及圖5說明此實施例由裝置
400運行通訊任務解析方法的細節。需先說明的是,在下述的說明中,是以裝置本體410a~410c分別為壓合機、鑽孔機及打磨機來進行說明,並且,通訊封包是用以請求鑽孔的服務,且鑽孔的直徑為2.5公分,厚度為1.75公分。
FIG. 5 is a schematic flowchart of a communication task analysis method according to another embodiment of the present disclosure. The communication task analysis method in FIG. 5 is at least applicable to the apparatus 400 in FIG. 4 , but the present disclosure is not limited thereto. 4 and FIG. 5 will be used together to describe the device of this embodiment.
400 Runs the details of the communication task parsing method. It should be noted that in the following description, the
在步驟S510,裝置本體410a~410c分別獲取通訊語意資訊與設備語意資訊的對應關係,並儲存在各自的儲存裝置中。裝置本體410a~410c分別是不同的機台,其所採用的控制指令、適用的語法規範不一定會完全相同,因此,裝置本體410a~410c皆存在獨特的通訊語意資訊與設備語意資訊的對應關係。裝置本體410a~410獲取其自身的通訊語意資訊與設備語意資訊的對應關係的細節相同於圖2的步驟S210以及圖3的流程示意圖,於此不再贅述。
In step S510, the
在步驟S520由主控裝置420發送通訊封包至裝置本體410a~410c,以使裝置本體410a~410c各自的處理器通過各自的通訊裝置接收通訊封包。承前所述,主控裝置420會依據排程決定通訊封包中夾帶的目標任務資訊。並且,在此實施例中,主控裝置420會採用廣播的方式將通訊封包傳送到裝置本體410a~410c。通訊封包的結構已於圖2步驟S220詳述,於此不再贅述。
In step S520, the
在步驟S530,裝置本體410a~410c分別依據通訊語意資訊解析通訊封包,以獲取目標任務資訊,即,請求鑽孔的服務,且鑽孔的直徑為2.5公分,厚度為1.75公分。每一裝置本體410a~410c執行此步驟的細節相似於圖2步驟S230,於此不再贅
述。
In step S530, the
在步驟S540,裝置本體410a~410c分別依據通訊語意資訊與設備語意資訊的對應關係,判斷設備語意資訊中是否存在對應目標任務資訊的候選設備資訊。每一裝置本體410a~410c執行此步驟的細節相似於圖2步驟S240,於此不再贅述。
In step S540, the
在步驟S550,裝置本體410a~410c響應於設備語意資訊中存在候選設備資訊,判斷候選設備資訊是否相容於目標任務。裝置本體410b進一步判斷其設備參數是否相容於目標任務,即其鑽孔的能力是否滿足鑽孔的直徑為2.5公分,厚度為1.75公分。裝置本體410b執行此步驟的細節相似於圖2步驟S250,於此不再贅述。惟需注意說明的是,裝置本體410a為壓合機、裝置本體410c為打磨機,兩者的設備語意資訊皆不存在對應目標任務資訊的候選設備資訊。此時,裝置本體410a及裝置本體410c就不會進一步判斷候選設備資訊是否相容於目標任務。
In step S550, the
在步驟S560,裝置本體410a~410c會依據判斷的結果回覆通訊封包至主控裝置420。詳細來說,裝置本體410a、410c會依據判斷的結果,即,設備語意中不存在對應目標任務資訊的候選設備資訊而回傳任務拒絕封包至主控裝置420。對於裝置本體410b而言,倘若候選設備項目對應的設備參數包括任務內容時,裝置本體410b會回傳任務回覆封包。反之,倘若候選設備項目對應的設備參數不包括任務內容時,裝置本體410b會據此而回傳任務拒絕封包,以回覆通訊封包。步驟S560的細節相似於圖2步驟
S260,於此不再贅述。
In step S560, the
值得一提的是,在本發明的一實施例中,主控裝置420可能會同時收到多個任務回覆封包。舉例來說,倘若同時存在兩個裝置本體皆為鑽孔機,且皆滿足鑽孔的直徑為2.5公分,厚度為1.75公分,則主控裝置420會接收到兩個任務回覆封包。此時,主控裝置420會隨機選擇其中一個裝置本體執行任務。又或者是,若任務回覆封包中有夾帶時間資訊、成本資訊、排程資訊等,主控裝置420也可以據此決定其中一個裝置本體執行任務。又或者是,主控裝置420可以進一步要求裝置本體回傳時間資訊、成本資訊及/或排程資訊,以利其進行判斷。本揭露並不以此為限。
It is worth mentioning that, in an embodiment of the present invention, the
圖6繪示本揭露再一實施例的用以進行通訊任務解析的裝置的示意圖。請參照圖6,在此實施例用以進行通訊任務解析的裝置400具有裝置本體610、主控裝置620以及設備630a~630c。
FIG. 6 is a schematic diagram of an apparatus for performing communication task analysis according to still another embodiment of the present disclosure. Referring to FIG. 6 , the apparatus 400 for performing communication task analysis in this embodiment has an
裝置本體610是用以接收來自主控裝置的通訊封包,並能夠提供特定的服務。此外,裝置本體610並具有相應於圖1實施例的通訊裝置612、儲存裝置614及處理器616,於此不再贅述。在此實施例中,裝置本體610可以由圖1的裝置100來進行實作,然本揭露不限於此。主控裝置620是發出通訊封包的裝置,且其相似於圖4的主控裝置420,於此即不再贅述細節。設備630a~630c透過連接內部網路的通訊介面611b連接於裝置本體610,並由裝置本體610對設備630a~630c進行操控。以製造業為例,設備630a~630c可以為壓合部件、鑽孔部件以及打磨部件,或者三種不
同大小的鑽孔部件,並耦接於裝置本體610上。又以智慧家電為例,裝置本體610例如是中控裝置,設備630a~630c例如是接受裝置本體610的控制信號進行工作的掃地機器人、拖地機器人、空氣清淨機等智慧家電。又或者是,裝置本體610例如是電冰箱,設備630a~630c分別為製冰盒、冷凍庫馬達、冷藏室馬達等。特別是,裝置本體610會儲存設備630a~630c的設備語意資訊,以依據設備630a~630c的設備語意資訊尋找合適的候選設備資訊。
The
圖7繪示本揭露再一實施例通訊任務解析方法的流程示意圖。圖7的通訊任務解析方法至少適用於圖6的裝置600,然本揭露不限於此。以下將同時搭配圖6及圖7說明此實施例由裝置600運行通訊任務解析方法的細節。需先說明的是,在下述的說明中,是以設備630a~630c分別為壓合部件、鑽孔部件及打磨部件來進行說明,並且,通訊封包是用以請求鑽孔的服務,且鑽孔的直徑為2.5公分,厚度為1.75公分。
FIG. 7 is a schematic flowchart of a communication task analysis method according to still another embodiment of the present disclosure. The communication task analysis method of FIG. 7 is at least applicable to the apparatus 600 of FIG. 6 , but the present disclosure is not limited thereto. The details of the communication task analysis method executed by the device 600 in this embodiment will be described below with reference to FIG. 6 and FIG. 7 . It should be noted that in the following description, the
在步驟S710,裝置本體610獲取通訊語意資訊與設備語意資訊的對應關係,並儲存在自身的儲存裝置中。裝置本體610執行此步驟的細節相似於圖2的步驟S210以及圖3的流程示意圖,於此不再贅述。惟須說明的是,由於設備630a~630c所對應的設備參數不盡相同,因此,裝置本體610會分別儲存設備630a~630c的設備語意資訊,並建立屬於設備630a~630c中,通訊語意資訊與設備語意資訊的對應關係。
In step S710, the
在步驟S720由主控裝置620發送通訊封包至裝置本體
610,以使裝置本體的處理器通過其通訊裝置接收通訊封包。承前所述,主控裝置620會依據排程決定通訊封包中夾帶的目標任務資訊,且通訊封包的結構已於圖2步驟S220詳述,於此不再贅述。
In step S720, the
在步驟S730,裝置本體610分別依據通訊語意資訊解析通訊封包,以獲取目標任務資訊,即,請求鑽孔的服務,且鑽孔的直徑為2.5公分,厚度為1.75公分。裝置本體610執行此步驟的細節相似於圖2步驟S230,於此不再贅述。
In step S730 , the
在步驟S740,裝置本體610分別依據通訊語意資訊與設備語意資訊的對應關係,判斷設備語意資訊中是否存在對應目標任務資訊的候選設備資訊。裝置本體610執行此步驟的細節相似於圖2步驟S240,於此不再贅述。
In step S740, the
在步驟S750,裝置本體610響應於設備語意資訊中存在候選設備資訊,判斷候選設備資訊是否相容於目標任務。裝置本體610進一步判斷設備630a~630c的設備參數是否相容於目標任務,即其鑽孔的能力是否滿足鑽孔的直徑為2.5公分,厚度為1.75公分。裝置本體610執行此步驟的細節相似於圖2步驟S250,於此不再贅述。
In step S750, the
設備630a為壓合部件、設備630c為打磨部件,兩者的設備語意資訊皆不存在對應目標任務資訊的候選設備資訊。然而,設備630b為鑽孔部件。因此,裝置本體610會進一步判斷設備630b所對應的候選設備資訊是否相容於目標任務。
The
在此實施例中,倘若設備630b所對應的候選設備資訊中
的設備參數相容於目標任務,在步驟S752,裝置本體610會依據設備語意資訊將目標任務資訊轉換為設備控制指令,並將設備控制指令發送至候選設備,即設備630b之中,以使設備630b。
In this embodiment, if the candidate device information corresponding to the
在步驟S754時,設備630b會發送任務回應訊息至裝置本體610。任務回應訊息例如為,「接收任務」、「任務已完成」,然本揭露不限於此。
In step S754, the
在步驟S760,裝置本體610會依據判斷的結果以及任務回應訊息回傳回覆通訊封包至主控裝置620。步驟S760的細節相似於圖2步驟S260,於此不再贅述。
In step S760 , the
值得一提的是,在前述的實施例中,裝置本體610的數量可以為多個,並分別連接至一個或多個設備。倘若裝置本體610的數量為多個時,其實施的情形將會結合圖4至圖5的實施例以及圖6至圖7的實施例。舉例來說,每一個裝置本體會接收到通訊封包,並分別查詢是否存在對應目標任務資訊的候選設備資訊,此時,候選設備資訊會來自於裝置本體所連接的一個或多個設備。其餘的細節請參考上述的說明,於此不再贅述。
It is worth mentioning that, in the foregoing embodiments, the number of the
在本揭露的一實施例中,還提供了一種用於進行通訊任務解析的電腦可讀取記錄媒體。當電腦讀取用於進行通訊任務解析的電腦可讀取記錄媒體後,可完成如本揭露,例如但不限於,圖2、圖5以及圖7所繪示的通訊任務解析方法。 In an embodiment of the present disclosure, a computer-readable recording medium for performing communication task analysis is also provided. After the computer reads the computer-readable recording medium for performing communication task analysis, the communication task analysis method shown in FIG. 2 , FIG. 5 , and FIG.
綜上所述,本揭露的通訊任務解析方法、用以進行通訊任務解析的裝置以及用於進行通訊任務解析的電腦可讀取記錄媒 體中,採用了通用統一的通訊協議的語法規範作為不同設備之間的媒介,弭平不同設備的語法差異造成的溝通問題。因此,在建立了通訊語意資訊與設備語意資訊的對應關係後,不論產線的設備、位置進行新增、移除或變更,設備之間仍然可以採用共通的通訊語意資訊達到溝通的目的,建立設備之間自主通訊任務解析的能力,減少操作人員對產線上設備重新進行設定的人力成本。 To sum up, the present disclosure provides a communication task analysis method, an apparatus for communication task analysis, and a computer-readable recording medium for communication task analysis. In the body, the grammar specification of a general and unified communication protocol is used as the medium between different devices to smooth out the communication problems caused by the grammar differences of different devices. Therefore, after the correspondence between the communication semantic information and the device semantic information is established, no matter whether the equipment or location of the production line is added, removed or changed, the common communication semantic information can still be used between the devices to achieve the purpose of communication. The ability of autonomous communication task analysis between devices reduces the labor cost for operators to reset the equipment on the production line.
S210~S260:步驟S210~S260: Steps
Claims (15)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW108137539A TWI762824B (en) | 2019-10-17 | 2019-10-17 | Communication task analysis method, device and computer readable recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW108137539A TWI762824B (en) | 2019-10-17 | 2019-10-17 | Communication task analysis method, device and computer readable recording medium |
Publications (2)
Publication Number | Publication Date |
---|---|
TW202117579A TW202117579A (en) | 2021-05-01 |
TWI762824B true TWI762824B (en) | 2022-05-01 |
Family
ID=77020846
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW108137539A TWI762824B (en) | 2019-10-17 | 2019-10-17 | Communication task analysis method, device and computer readable recording medium |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI762824B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI446402B (en) * | 2005-12-21 | 2014-07-21 | Globalfoundries Us Inc | Enhanced state estimation based upon information credibility |
TWI649646B (en) * | 2013-10-14 | 2019-02-01 | 美商應用材料股份有限公司 | Matching process controller for improved matching of processes, computer implemented methods, systems, and non-transitory machine readable storage media |
-
2019
- 2019-10-17 TW TW108137539A patent/TWI762824B/en active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI446402B (en) * | 2005-12-21 | 2014-07-21 | Globalfoundries Us Inc | Enhanced state estimation based upon information credibility |
TWI649646B (en) * | 2013-10-14 | 2019-02-01 | 美商應用材料股份有限公司 | Matching process controller for improved matching of processes, computer implemented methods, systems, and non-transitory machine readable storage media |
Also Published As
Publication number | Publication date |
---|---|
TW202117579A (en) | 2021-05-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11159606B2 (en) | Lightweight IoT information model | |
JP7009563B2 (en) | Prioritize resources and establish communication channels | |
CN108667807B (en) | Protocol self-adaption method and system based on monitoring cloud platform and gateway | |
US8560713B2 (en) | Method and system for mediating enterprise service access for smart devices | |
JP5319631B2 (en) | Biological sample analysis system, method and computer program product | |
US20200351352A1 (en) | Semantic Ontology-Based Internet Scale Communication Method of Machine Tools for Providing Remote Operational Services | |
KR101894389B1 (en) | Method and apparatus for connecting between devices | |
US20170013064A1 (en) | Automated opc connectivity | |
CN110995639A (en) | Data transmission method | |
CN103488696A (en) | Business query method, device and system of CPE (customer premises equipment), ACS (auto-configuration server) and CPE | |
TWI762824B (en) | Communication task analysis method, device and computer readable recording medium | |
KR101258322B1 (en) | Mobile communication terminal and method for contents processing thereof | |
US20180285092A1 (en) | Software update intervention as a service for industrial control systems | |
JP4838096B2 (en) | Home appliance communication control system | |
TW202024825A (en) | Industrial internet of things system and data processing device thereof that comprises a communication module, a storage module that stores an identification data and a set of operation rules corresponding to the part, and a processing module | |
CN114900387A (en) | Cross-platform fusion access method, system, gateway and storage medium of equipment | |
KR102302302B1 (en) | Ultra-Small Disposable IoT Service Infrastructure | |
CN112445811A (en) | Data service method, device, storage medium and component based on SQL configuration | |
JP6786014B1 (en) | Communication systems, communication devices and programs | |
CN112567348B (en) | Data processing apparatus, data processing method, and computer-readable storage medium | |
TWI551995B (en) | Methods and systems for data transmission and acknowledgement between electronic devices, and related computer program products | |
JP2020149470A (en) | Data management system and data management method | |
TW201737123A (en) | Apparatus of using description file for actuation on internet of things | |
WO2020107328A1 (en) | Method and device for acquiring data of data source associated with production line | |
CN114356958A (en) | Equipment data query method and device, server and computer readable storage medium |