Nothing Special   »   [go: up one dir, main page]

TWI465952B - Macro file execution platform applied for smart phone - Google Patents

Macro file execution platform applied for smart phone Download PDF

Info

Publication number
TWI465952B
TWI465952B TW100115828A TW100115828A TWI465952B TW I465952 B TWI465952 B TW I465952B TW 100115828 A TW100115828 A TW 100115828A TW 100115828 A TW100115828 A TW 100115828A TW I465952 B TWI465952 B TW I465952B
Authority
TW
Taiwan
Prior art keywords
macro instruction
smart phone
information
resource identifier
module
Prior art date
Application number
TW100115828A
Other languages
Chinese (zh)
Other versions
TW201245991A (en
Inventor
Ingyi Chen
Original Assignee
Univ Nat Taipei Technology
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 Univ Nat Taipei Technology filed Critical Univ Nat Taipei Technology
Priority to TW100115828A priority Critical patent/TWI465952B/en
Publication of TW201245991A publication Critical patent/TW201245991A/en
Application granted granted Critical
Publication of TWI465952B publication Critical patent/TWI465952B/en

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Description

智慧型手機應用巨集指令執行平台Smart phone application macro instruction execution platform

本發明是有關於一種指令執行平台,且特別是有關於一種智慧型手機應用巨集指令執行平台。The present invention relates to an instruction execution platform, and more particularly to a smart phone application macro instruction execution platform.

智慧型手機是一種可整合語音、數據資料與網際網路的裝置。目前智慧型手機上的作業系統,如Apple的iOS或是Google的Android等作業系統,都可以允許使用者安裝第三方軟體,因此藉由整合網際網路上之多樣化服務與裝置功能,將資訊服務直接提供給智慧型手機的行動應用程式,成為目前一個熱門的研發趨勢。A smart phone is a device that integrates voice, data, and the Internet. At present, the operating system on the smart phone, such as Apple's iOS or Google's Android operating system, can allow users to install third-party software, so by integrating the diverse services and device functions on the Internet, the information service The mobile app that is directly available to smartphones has become a hot development trend.

行動應用程式的應用領域包羅萬象,如商業、旅遊、個人管理、專案管理等各式各樣的應用領域都可見其蹤跡。其中,現行智慧型手機上的行動應用程式在開發時,開發者通常需利用不同系統平台的整合開發環境(Integrated Development Environment,例如Apple的Xcode),去撰寫程式碼來組合平台所提供的應用程式介面(Application Programming Interface),進而產生使用者介面、資訊的管理功能、資訊與裝置功能的結合等畫面或是運算的邏輯,例如旅遊業的旅遊指南系統或是房仲業的看房系統等。Mobile applications are available in a wide range of applications, such as business, travel, personal management, project management and more. Among them, when the mobile application on the current smart phone is developed, the developer usually needs to use the integrated development environment (such as Apple's Xcode) of different system platforms to write the code to combine the application provided by the platform. The Application Programming Interface, which in turn generates the user interface, the information management function, the combination of information and device functions, and the logic of the operation, such as the travel guide system of the tourism industry or the viewing system of the room industry.

然而,現行的行動應用程式系統在開發時,存在著以下問題:However, the current mobile application system has the following problems during development:

一、行動應用程式系統開發難度高:開發時必須撰寫平台支援的程式語言,透過平台提供的應用程式介面(Application Programming Interface)來整合使用裝置平台功能,這對於所有不會撰寫程式語言的人來說,是一個很高的門檻,無法輕易的開發系統。1. The development of the mobile application system is difficult: the programming language supported by the platform must be written during development, and the application platform can be integrated through the application programming interface provided by the platform. This is for anyone who does not write programming language. Said, is a very high threshold, can not easily develop the system.

二、開發過的功能不容易重用:每次開發時都需要依所使用之智慧型手機平台或網路服務,客製化其功能。其中,由於所使用之智慧型手機平台之不同,程式碼也不盡相同,導致程式碼中組合API所產生的功能並不容易重複利用,也沒有統一的介面格式,讓下次開發時便於重複利用。Second, the developed features are not easy to reuse: each development needs to customize the function according to the smart phone platform or network service used. Among them, due to the different smart phone platforms used, the code is not the same, resulting in the function of the combined API in the code is not easy to reuse, there is no unified interface format, so that the next development is easy to repeat use.

三、同一應用領域的應用程式樣板無法重複利用:在目前技術中,同一應用領域中不同內容的行動應用程式,就算視覺上的樣式很類似,但都還是需要重新開發。沒有一個好的方法重複利用應用程式樣板。Third, the application model of the same application domain can not be reused: In the current technology, mobile applications of different content in the same application field, even if the visual style is similar, still need to be re-developed. There is no good way to reuse application templates.

因此,本發明之一態樣是在提供一種智慧型手機應用巨集指令執行平台,用以執行於一智慧型手機。智慧型手機應用巨集指令執行平台下載巨集指令資訊檔,巨集指令資訊檔中的資訊與指令會透過執行平台轉換成為顯示介面與相對應的事件,並且整合智慧型手機上的功能與網路服務,來提供資訊或服務。智慧型手機應用巨集指令執行平台包含一巨集指令下載模組、一指令轉換模組、一儲存庫、一指令儲存模組、一資訊顯示模組、一事件處理模組、一服務整合模組以及一服務呼叫模組。巨集指令下載模組透過一外部網路,與一儲存伺服器建立連結,並自儲存伺服器,下載一巨集指令資訊檔。指令轉換模組將巨集指令資訊檔,轉換成一特定程式語言之一可操作物件。指令儲存模組將可操作物件存入儲存庫。資訊顯示模組根據一預設畫面樣板,將可操作物件的資訊,顯示於一顯示元件之一顯示畫面上。事件處理模組根據使用者對於顯示元件之顯示畫面的互動,產生對應之一統一資源標識符。服務整合模組,利用一應用程式設計介面,整合智慧型手機以及網際網路所提供之服務。服務呼叫模組根據統一資源標識符,呼叫服務整合模組提供對應之服務。Therefore, one aspect of the present invention is to provide a smart phone application macro instruction execution platform for executing on a smart phone. The smart phone application macro instruction execution platform downloads the macro instruction information file, and the information and instructions in the macro instruction information file are converted into display interfaces and corresponding events through the execution platform, and integrate functions and networks on the smart phone. Road service to provide information or services. The smart phone application macro instruction execution platform comprises a macro instruction downloading module, a command conversion module, a storage library, a command storage module, an information display module, an event processing module, and a service integration module. Group and a service call module. The macro instruction download module establishes a connection with a storage server through an external network, and downloads a macro instruction information file from the storage server. The instruction conversion module converts the macro instruction information file into one operable object in a specific programming language. The instruction storage module stores the operable objects in the repository. The information display module displays the information of the operable object on a display screen of one of the display elements according to a preset screen template. The event processing module generates a corresponding uniform resource identifier according to the interaction of the user with the display screen of the display component. The Service Integration Module leverages an application design interface to integrate the services provided by smartphones and the Internet. The service call module provides a corresponding service according to the uniform resource identifier, and the call service integration module.

應用本發明具有下列優點。如此一來,可根據使用者對於顯示元件之顯示畫面的互動,從整合於智慧型手機應用巨集指令執行平台之多個服務中,提供相應之服務。因而,可使相同格式之巨集指令資訊檔被重複使用在各種不同場景。The application of the present invention has the following advantages. In this way, according to the user's interaction with the display screen of the display component, the corresponding service can be provided from a plurality of services integrated into the smart phone application macro instruction execution platform. Thus, macro instruction information files of the same format can be reused in various different scenarios.

以下將以圖式及詳細說明清楚說明本發明之精神,任何所屬技術領域中具有通常知識者在瞭解本發明之較佳實施例後,當可由本發明所教示之技術,加以改變及修飾,其並不脫離本發明之精神與範圍。The spirit and scope of the present invention will be apparent from the following description of the preferred embodiments of the invention. The spirit and scope of the invention are not departed.

請參照第1圖,其繪示依照本發明一實施方式的一種智慧型手機應用巨集指令執行平台之功能方塊圖。智慧型手機應用巨集指令執行平台下載巨集指令資訊檔,巨集指令資訊檔中的資訊與指令會透過執行平台轉換成為顯示介面與相對應的事件,並且整合智慧型手機上的功能與網路服務,來提供資訊或服務。Please refer to FIG. 1 , which is a functional block diagram of a smart phone application macro instruction execution platform according to an embodiment of the invention. The smart phone application macro instruction execution platform downloads the macro instruction information file, and the information and instructions in the macro instruction information file are converted into display interfaces and corresponding events through the execution platform, and integrate functions and networks on the smart phone. Road service to provide information or services.

智慧型手機應用巨集指令執行平台110執行於一智慧型手機100。智慧型手機應用巨集指令執行平台110包含一巨集指令下載模組111、一指令轉換模組112、一儲存庫113、一指令儲存模組114、一資訊顯示模組115、一事件處理模組116、一服務整合模組117以及一服務呼叫模組118。儲存庫113用來儲存資訊。儲存庫113之實現方式可以使用SQLite來實作。SQLite是關聯式資料庫管理系統,但不像常見的資料庫用戶端/伺服器結構範例,在伺服器上有運作一獨立程式,而用戶端再透過與伺服器上的獨立程式作互動存取資訊。而是把資料庫的程式直接整合在用戶端的程式之中成為其一部份。所以主要的通訊協定是在程式語言內的直接應用程式設計介面(application programming interface,API)呼叫。這在消耗總量、延遲時間和整體簡單性上有積極的作用。整個儲存庫113(定義、表、索引和資料本身)都在智慧型手機100上儲存在一個單一的檔案中。它簡單的設計是透過寫入資料庫的時候鎖定整個資料檔案而完成。因此,這樣的特徵很適合用在效能較一般個人電腦差的智慧型手機100上。The smart phone application macro instruction execution platform 110 executes on a smart phone 100. The smart phone application macro instruction execution platform 110 includes a macro instruction downloading module 111, a command conversion module 112, a storage 113, an instruction storage module 114, an information display module 115, and an event processing module. The group 116, a service integration module 117 and a service call module 118. The repository 113 is used to store information. The implementation of repository 113 can be implemented using SQLite. SQLite is an associative database management system, but unlike the common database client/server architecture paradigm, there is a separate program running on the server, and the client then interacts with the independent program on the server. News. Instead, the library's program is directly integrated into the client's program as part of it. So the main communication protocol is the direct application programming interface (API) call within the programming language. This has a positive effect on total consumption, delay time and overall simplicity. The entire repository 113 (definition, table, index, and material itself) is stored on a smart phone 100 in a single file. Its simple design is done by locking the entire data file when writing to the database. Therefore, such a feature is well suited for use on a smart phone 100 that is less efficient than a typical personal computer.

巨集指令下載模組111透過一外部網路200,與一儲存伺服器300建立連結。巨集指令下載模組111自儲存伺服器300,下載一巨集指令資訊檔。巨集指令資訊檔可包含符合延伸標記語言(eXtensible Markup Language,xml)之至少一巨集指令結構。巨集指令結構可包含一資訊格式、一資訊名稱、一資訊內容或其他資訊相關之內容。資訊格式可為文字、超連結(例如http://xxx或其他類型之超連結)、檔案(其中,需明確標記出是哪種檔案,如avi、mp4、pdf,以利之後服務整合模組117的對應)、群組或其他格式。資訊名稱則是表示所代表的意義,例如電話號碼、地址等。資訊內容則是與資訊格式互相呼應。例如,要表達的資訊是連絡人姓名,那資訊格式就是文字,而資訊名稱則為連絡人姓名,資訊內容就是名字XXX的字串。在本發明之另一實施例中,如果要表達的資訊是電子郵件,那資訊格式就是文字,資訊名稱為電子郵件,資訊內容就是電子郵件帳號(如abc@example.com )的字串。The macro command download module 111 establishes a connection with a storage server 300 via an external network 200. The macro instruction download module 111 downloads a macro instruction information file from the storage server 300. The macro instruction information file may include at least one macro instruction structure conforming to the eXtensible Markup Language (xml). The macro instruction structure may include an information format, a news name, a news content or other information related content. The information format can be text, hyperlink (such as http://xxx or other types of hyperlinks), files (in which it is necessary to clearly mark which file, such as avi, mp4, pdf, after the service integration module Correspondence 117, group or other format. The information name is the meaning of the representative, such as phone number, address, and so on. The information content is in line with the information format. For example, the information to be expressed is the name of the contact person, the information format is the text, and the information name is the name of the contact person, and the information content is the string of the name XXX. In another embodiment of the present invention, if the information to be expressed is an email, the information format is text, the information name is an email, and the information content is a string of an email account (such as abc@example.com ).

指令轉換模組112將巨集指令資訊檔轉換成一特定程式語言之一可操作物件。舉例來說,指令轉換模組112可透過解析器(parser),把巨集指令資訊檔中標籤(tag)內的資訊解析出來,然後轉換成特定程式語言的可操作物件。其中,可操作物件中會有格式、名稱、內容的屬性。舉例來說,電子郵件資訊會轉換成為一個電子郵件的可操作物件。屬於電子郵件的可操作物件之格式屬性為文字,名稱屬性為電子郵件,內容屬性為電子郵件帳號(如abc@example.com )的字串。在本發明之另一實施例中,如果資訊格式為群組的資訊的話,指令轉換模組112會將資訊格式為群組的資訊轉換為樹狀結構的物件。The instruction conversion module 112 converts the macro instruction information file into one of a specific programming language operable object. For example, the instruction conversion module 112 can parse the information in the tag in the macro instruction information file through a parser, and then convert the information into a specific program language operable object. Among them, there are attributes of format, name, and content in the operable object. For example, email messages are converted into actionable objects for an email. The format attribute of the operable object belonging to the email is text, the name attribute is email, and the content attribute is a string of an email account (such as abc@example.com ). In another embodiment of the present invention, if the information format is group information, the command conversion module 112 converts the information formatted into groups into information of a tree structure.

指令儲存模組114將可操作物件存入儲存庫113。指令儲存模組114會提取特定程式語言可操作的物件中的資訊,再存入儲存庫113。其中,存入儲存庫113的資訊也是依照資訊格式、資訊名稱、資訊內容欄位來存入。例如,電子郵件的物件中的格式屬性會存入儲存庫113中資訊格式欄位,名稱屬性會存入儲存庫113中資訊名稱欄位,資訊內容會存入儲存庫113中資訊內容欄位。The instruction storage module 114 stores the operable objects in the repository 113. The instruction storage module 114 extracts information in an object operable by a specific programming language and stores it in the repository 113. The information stored in the repository 113 is also stored in accordance with the information format, the information name, and the information content field. For example, the format attribute in the object of the email is stored in the information format field in the repository 113, and the name attribute is stored in the information name field in the repository 113, and the information content is stored in the information content field in the repository 113.

資訊顯示模組115根據一預設畫面樣板,將可操作物件的資訊,顯示於智慧型手機100之一顯示元件所顯示之一顯示畫面上。其中,如果智慧型手機應用巨集指令執行平台110是跑在iOS上的話,可利用Interface Builder建構預設畫面樣板。此外,預設畫面樣板只是外框,實際執行時所跑的內容,則是透過巨集指令的編寫來動態配置,而資訊顯示模組115就是負責把畫面配製好後再透過智慧型手機100的顯示元件顯示出來。The information display module 115 displays the information of the operable object on one display screen displayed by one of the display elements of the smart phone 100 according to a preset screen template. Wherein, if the smart phone application macro instruction execution platform 110 is running on iOS, Interface Builder can be used to construct a preset picture template. In addition, the preset screen template is only a frame, and the content that is actually executed is dynamically configured through the writing of the macro instruction, and the information display module 115 is responsible for the image being prepared and then transmitted through the smart phone 100. The display component is displayed.

事件處理模組116根據使用者對於顯示元件之顯示畫面的互動,產生對應之一統一資源標識符(Uniform Resource Identifier,URI)。其中,統一資源標識符包含一網際網路資源名稱識別字串,用以識別所要求之一網際網路資源名稱。此外,事件處理模組116之一事件接收器116a可先接收使用者對於智慧型手機100之顯示元件之顯示畫面的互動所產生之一互動訊號,以作為產生對應之統一資源標識符之依據。互動訊號可能是根據使用者點選文字或是圖示、輸入文字等任何事件,而對應產生。於是,事件處理模組116可針對不同互動事件所產生之互動訊號,組合成統一資源標識符之字串。其中,統一資源標識符文法可由統一資源標識符協議名稱(例如「http」,「ftp」,「mailto」或「file」),一個冒號,和協議對應的內容所構成。特定的協議定義了協議內容的語法和語義,而所有的協議都必須遵循一定的統一資源標識符文法通用規則。例如,寄發電子郵件需要的資訊是電子郵件帳號,因此統一資源標識符會是mailto:abc@example.com。The event processing module 116 generates a corresponding Uniform Resource Identifier (URI) according to the interaction of the user with the display screen of the display element. The uniform resource identifier includes an internet resource name identification string for identifying one of the required internet resource names. In addition, the event receiver 116a of the event processing module 116 may first receive an interaction signal generated by the user's interaction with the display screen of the display component of the smart phone 100 as a basis for generating a corresponding uniform resource identifier. The interactive signal may be generated according to any event such as the user selecting the text or the icon, inputting the text, and the like. The event processing module 116 can then combine the interaction signals generated by different interaction events into a string of uniform resource identifiers. The uniform resource identifier grammar may be composed of a uniform resource identifier protocol name (for example, "http", "ftp", "mailto" or "file"), a colon, and a content corresponding to the protocol. A specific protocol defines the syntax and semantics of the protocol content, and all protocols must follow certain common rules for uniform resource identifier grammar. For example, the information needed to send an email is an email account, so the Uniform Resource Identifier would be mailto:abc@example.com.

服務整合模組117利用一應用程式設計介面(application programming interface,API),整合智慧型手機100以及網際網路所提供之服務。其中,所被整合之服務可以是有畫面的程式,例如影片播放,也可以是本身沒有畫面,在背景運行的程式,例如音樂播放。此外,所整合之各種服務都需要搭配一獨特的統一資源標識符,以供服務呼叫模組118進行呼叫。The service integration module 117 utilizes an application programming interface (API) to integrate the services provided by the smart phone 100 and the Internet. Among them, the integrated service may be a program with a picture, such as a video playing, or a program that runs without a picture in the background, such as music playing. In addition, the various services integrated need to be paired with a unique uniform resource identifier for the service call module 118 to place a call.

服務呼叫模組118根據統一資源標識符,呼叫服務整合模組117提供對應之服務。其中,服務呼叫模組118可包含一統一資源標識符註冊庫118a、一統一資源標識符解析器118b以及一統一資源標識符驗證器118c。統一資源標識符解析器118c自統一資源標識符,解析出其中所包含的協議名稱與內容。例如,傳來的統一資源標識符包含mailto:abc@example.com的話,統一資源標識符解析器118c解析出的協議名稱為mailto,而內容為abc@example.com。接下來,統一資源標識符解析器118c可把解析出來的協議名稱與內容,傳給統一資源標識符驗證器118b。於是,統一資源標識符驗證器118b可驗證統一資源標識符的正確性。於是,在統一資源標識符被驗證為正確時,服務呼叫模組118可根據統一資源標識符,正確呼叫服務整合模組117提供對應之服務。The service call module 118 provides a corresponding service to the call service integration module 117 based on the uniform resource identifier. The service call module 118 can include a unified resource identifier registration library 118a, a uniform resource identifier resolver 118b, and a uniform resource identifier verifier 118c. The uniform resource identifier parser 118c resolves the protocol name and content contained therein from the uniform resource identifier. For example, if the transmitted uniform resource identifier includes mailto:abc@example.com, the protocol name parsed by the unified resource identifier parser 118c is mailto, and the content is abc@example.com. Next, the uniform resource identifier parser 118c may pass the parsed protocol name and content to the uniform resource identifier verifier 118b. Thus, the uniform resource identifier verifier 118b can verify the correctness of the uniform resource identifier. Then, when the uniform resource identifier is verified to be correct, the service call module 118 can correctly call the service integration module 117 to provide a corresponding service according to the uniform resource identifier.

此外,統一資源標識符註冊庫118a儲存統一資源標識符的格式相關資訊。舉例來說,開發好的服務整合模組117需要註冊在統一資源標識符註冊庫118a中。統一資源標識符註冊庫118a中可存有協議名稱、協議對應的內容、對應內容的格式要求與服務整合模組117中相對應會被呼叫的服務。服務整合模組117所整合之各種服務都有相對應之統一資源標識符。例如,在用以寄送電子郵件的服務所對應之統一資源標識符中,協議名稱可設為mailto,協議對應的內容可為電子郵件帳號之字串;對應內容的格式要求可使用正則表示式(regular expression)來表示即為\b[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b;相對應所提供之服務為「寄送電子郵件」。於是,統一資源標識符驗證器118b在接收到上述格式之協議名稱與內容時,會到統一資源標識符註冊庫118a中尋找是否有存在傳來的協議名稱,例如mailto。如果在統一資源標識符註冊庫118a中確實存在mailto之協議名稱,統一資源標識符驗證器118b會再去驗證對應內容格式的正確性。例如,統一資源標識符驗證器118b會去驗證abc@example.com是否符合對應內容的格式「正則表示式\b[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b」。如果驗證都通過之後,統一資源標識符驗證器118b就把協議名稱與內容傳給服務呼叫模組118,呼叫服務整合模組117提供服務。如此一來,可根據使用者對於顯示元件之顯示畫面的互動,自被整合於智慧型手機100之多個服務中,提供相應之服務。因而,可使相同之巨集指令資訊檔被重複使用在各種不同場景。Further, the uniform resource identifier registration library 118a stores format related information of the uniform resource identifier. For example, the developed service integration module 117 needs to be registered in the uniform resource identifier registration library 118a. The uniform resource identifier registration library 118a may store the protocol name, the content corresponding to the protocol, the format requirement of the corresponding content, and the service corresponding to the service integration module 117 corresponding to the call. The various services integrated by the service integration module 117 have corresponding unified resource identifiers. For example, in the uniform resource identifier corresponding to the service for sending the email, the protocol name may be set to mailto, and the content corresponding to the protocol may be a string of the email account; the format requirement of the corresponding content may use a regular expression. (regular expression) is expressed as \b[A-Z0-9._%-]+@[A-Z0-9.-]+\.[AZ]{2,4}\b; correspondingly provided The service is "send email". Then, when receiving the protocol name and content of the above format, the uniform resource identifier verifier 118b searches the uniform resource identifier registration library 118a for the existence of the transmitted protocol name, such as mailto. If the protocol name of mailto does exist in the uniform resource identifier registration library 118a, the uniform resource identifier verifier 118b will again verify the correctness of the corresponding content format. For example, the uniform resource identifier verifier 118b will verify whether abc@example.com conforms to the format of the corresponding content "regular expression \b[A-Z0-9._%-]+@[A-Z0-9.- ]+\.[AZ]{2,4}\b". If the verification passes, the unified resource identifier verifier 118b passes the protocol name and content to the service call module 118, and the call service integration module 117 provides the service. In this way, the user can be integrated into the plurality of services of the smart phone 100 according to the user's interaction with the display screen of the display component, and the corresponding service can be provided. Thus, the same macro instruction information file can be reused in various different scenarios.

在本發明之一實施例中,使用者可使用載有智慧型手機應用巨集指令執行平台110之智慧型手機,進行旅遊行程之應用。因此,巨集指令下載模組111可透過外部網路200從儲存伺服器300上,下載具行程資訊之巨集指令資訊檔。巨集指令資訊檔之內容可為東北角一日的旅遊行程,而巨集指令資訊檔中的資訊可包含旅遊名稱、旅遊中的景點所組成的巨集指令結構。巨集指令資訊檔中所有之各景點都有名稱、地址、電話號碼、經度、緯度、(在行程中安排的)開始時間、(在行程中安排的)結束時間、筆記群組(其中包括一個以上的筆記)、文件群組(其中包括一個以上的文件檔)、連結群組(其中包括一個以上的連結)、圖片群組(其中包括一個以上的圖片檔)、影音群組(包括一個以上的影音檔)。In an embodiment of the present invention, the user can use the smart phone carrying the smart phone application macro instruction execution platform 110 to apply for the travel itinerary. Therefore, the macro instruction downloading module 111 can download the macro instruction information file with the travel information from the storage server 300 through the external network 200. The content of the macro instruction information file can be a one-day travel itinerary in the northeast corner, and the information in the macro instruction information file may include a macro instruction structure composed of a tourist name and a tourist attraction. All the attractions in the macro command information file have name, address, phone number, longitude, latitude, start time (arranged in the itinerary), end time (arranged in the itinerary), note group (including one The above notes), file group (including more than one file), link group (including more than one link), picture group (including more than one image file), video group (including more than one) Video file).

指令轉換模組112透過解析器把巨集指令資訊檔中的資訊解析出來,並且轉換成特定程式語言的物件。舉例來說,如果智慧型手機100是iPhone的話,那就會將巨集指令資訊檔轉換成Objective C的物件。以本實施例而言,會產生出一個關於旅遊之可操作物件。其中,名稱屬性可設為東北角一日遊。關於旅遊之可操作物件中可包含一計畫物件,計畫物件中可有景點所組成的陣列。景點所組成的陣列是由巨集指令資訊檔中所描述的景點所轉換而成。其中,可將各景點之名稱、地址、電話號碼、經度、緯度、(在行程中安排的)開始時間、(在行程中安排的)結束時間、筆記群組(其中包括一個以上的筆記)、文件群組(其中包括一個以上的文件檔)、連結群組(其中包括一個以上的連結)、圖片群組(其中包括一個以上的圖片檔)、影音群組(包括一個以上的影音檔),轉換成符合Objective C的物件,以產生景點所組成的陣列。The instruction conversion module 112 parses the information in the macro instruction information file through the parser, and converts the information into a specific programming language object. For example, if the smart phone 100 is an iPhone, then the macro command information file is converted into an Object of Objective C. In the case of this embodiment, an operational item relating to travel is produced. Among them, the name attribute can be set to a day trip in the northeast corner. The operational object of the tour may include a plan object, and the plan object may have an array of scenic spots. The array of attractions is converted from the attractions described in the macro instruction information file. Among them, the name, address, telephone number, longitude, latitude, start time (arranged in the itinerary), end time (arranged in the itinerary), note group (including more than one note), a file group (including more than one file), a link group (including more than one link), a picture group (including more than one picture file), a video group (including more than one video file), Convert to objects that conform to Objective C to create an array of attractions.

指令儲存模組114把巨集指令資訊檔中的資訊儲存在儲存庫113中。本實施例中,由於儲存庫113使用SQLite來實作,因此指令儲存模組114可對儲存庫113下INSERT的query指令。於是,每一個資料物件都會對應到資料庫中的一張資料表,所以會有旅遊資料表、行程資料表、景點資料表等等。各資料表分別對應至巨集指令資訊檔之特定可操作物件,如關於旅遊之可操作物件、計畫物件、景點所組成的陣列等等。The instruction storage module 114 stores the information in the macro instruction information file in the repository 113. In this embodiment, since the repository 113 is implemented using SQLite, the instruction storage module 114 can query the INSERT of the repository 113. Therefore, each data item will correspond to a data sheet in the database, so there will be a tourist information sheet, a trip information sheet, a scenic information sheet, and the like. Each data sheet corresponds to a specific operable object of the macro instruction information file, such as an operable object, a project object, an array of scenic spots, and the like.

資訊顯示模組115根據一預設畫面樣板,將旅遊相關之可操作物件的資訊,顯示於智慧型手機100之一顯示元件所顯示之一顯示畫面上。以本實施例而言,針對旅遊行程領域已經有配置好的樣板。參照第2圖,其係智慧型手機100上之顯示畫面120之一實施例。資訊顯示模組115可將旅遊相關之可操作物件的資訊,如目前時間所對應之排程點及其資訊,顯示於智慧型手機100之顯示畫面120上。因此,顯示畫面120可顯示對應之各景點中,其排程時刻401為目前時間402者。如此一來,使用者不需自行選取目前所在之排程點,也不需自行尋找目前排程點相關之資訊,因而方便使用者於排程進行時使用。另外,可根據使用者之選擇,提供排程點相關之資訊,如排程點相關之文字檔、聲音檔、圖片檔、影片檔或其他類型之資訊。The information display module 115 displays the information of the travel-related operable object on one display screen displayed by one of the display elements of the smart phone 100 according to a preset screen template. In the present embodiment, there are already well-configured templates for the travel itinerary. Referring to Fig. 2, it is an embodiment of a display screen 120 on the smartphone 100. The information display module 115 can display the information of the travel-related operable objects, such as the schedule points corresponding to the current time and the information thereof, on the display screen 120 of the smart phone 100. Therefore, the display screen 120 can display the corresponding schedules in which the schedule time 401 is the current time 402. In this way, the user does not need to select the current scheduling point, and does not need to find the information related to the current scheduling point, so that the user can use it during the scheduling. In addition, information related to the schedule points, such as text files, sound files, image files, video files or other types of information related to the schedule points, may be provided according to the user's choice.

另外,智慧型手機應用巨集指令執行平台110可根據使用者之選擇,產生對應之統一資源標識符,以提供排程中景點相關之資訊或服務,如景點導航、撥打電話或相關之文字檔、聲音檔、圖片檔、影片檔或其他類型之資訊。因此,顯示畫面120所顯示之資訊選項可包含開啟影音選項406、開啟文件選項407或開啟其他資訊之選項。因此,在使用者藉由與顯示畫面120的互動,選擇一景點之多媒體檔案時,智慧型手機100可播放對應景點之多媒體檔案。舉例來說,在使用者選擇開啟影音選項406,以開啟影音檔案格式之景點之多媒體檔案時,事件處理模組116可產生對應開啟影音之統一資源標識符,而使智慧型手機100可播放景點相關之影音檔案或圖片檔(多媒體檔案);在使用者選擇開啟文件選項407時,事件處理模組116可產生對應開啟文件之統一資源標識符,而使智慧型手機100播放(顯示)景點相關之文字檔(多媒體檔案)。如此一來,智慧型手機應用巨集指令執行平台110可根據巨集指令資訊檔,提供使用者景點相關之資訊(如文字檔、聲音檔、圖片檔或影片檔),以輔助排程進行。In addition, the smart phone application macro instruction execution platform 110 may generate a corresponding uniform resource identifier according to the user's choice to provide information or services related to the attraction in the schedule, such as attraction navigation, calling or related text files. , sound files, image files, video files or other types of information. Thus, the information options displayed on display 120 may include the option to enable video option 406, open file option 407, or enable other information. Therefore, when the user selects a multimedia file of an attraction by interacting with the display screen 120, the smart phone 100 can play the multimedia file of the corresponding attraction. For example, when the user selects to enable the video and audio option 406 to enable the multimedia file of the attraction of the video file format, the event processing module 116 can generate a uniform resource identifier corresponding to the opening of the audio and video, so that the smart phone 100 can play the scenic spot. The related video file or picture file (multimedia file); when the user selects the open file option 407, the event processing module 116 can generate a uniform resource identifier corresponding to the open file, so that the smart phone 100 plays (displays) the attraction related Text file (multimedia file). In this way, the smart phone application macro instruction execution platform 110 can provide information related to the user's attraction (such as a text file, a sound file, a picture file or a video file) according to the macro instruction information file to assist the scheduling.

此外,在使用者藉由對於顯示畫面120的互動,選擇開啟通訊選項404時,事件處理模組116可產生對應開啟通訊之統一資源標識符,而使服務呼叫模組118呼叫服務整合模組117,提供通訊相關之服務。因此,服務整合模組117可根據統一資源標識符中之聯絡資訊,如電話號碼、電子郵件帳號、網際網路通訊協定位址或其他類型之聯絡資訊,提供通訊之服務。所提供之通訊服務可為播打電話、發送簡訊、寄送電子郵件或視訊電話等等。於是,使用者不需自行輸入聯絡資訊,即可直接聯絡排程點相關之人士。In addition, when the user selects to enable the communication option 404 by interacting with the display screen 120, the event processing module 116 can generate a uniform resource identifier corresponding to the open communication, and cause the service call module 118 to call the service integration module 117. , providing communication related services. Therefore, the service integration module 117 can provide communication services according to contact information in the uniform resource identifier, such as a phone number, an email account, an internet protocol address, or other types of contact information. The communication services provided can be used to make calls, send text messages, send e-mails or video calls, and so on. Therefore, users do not need to enter their own contact information to directly contact the person concerned with the scheduling point.

在使用者透過對於顯示畫面120的互動,選擇開啟導航選項403時,事件處理模組116可產生對應開啟導航之統一資源標識符,藉此使使服務呼叫模組118呼叫服務整合模組117,提供導航服務。如此一來,使用者可知道目前所在位置到排程點的路徑規畫。When the user selects to enable the navigation option 403 through the interaction with the display screen 120, the event processing module 116 can generate a uniform resource identifier corresponding to the navigation, thereby causing the service call module 118 to call the service integration module 117. Provide navigation services. In this way, the user can know the path plan of the current location to the schedule point.

在使用者藉由對於顯示畫面120的互動,選取開啟超連結選項405時,事件處理模組116可產生對應開啟超連結之統一資源標識符,而使服務呼叫模組118呼叫服務整合模組117,提供瀏覽超連結之服務。於是,使用者可即時閱覽排程點相關之超連結位址上之網頁。When the user selects the open hyperlink option 405 by the interaction with the display screen 120, the event processing module 116 can generate a uniform resource identifier corresponding to the hyperlink, and the service call module 118 calls the service integration module 117. , providing services for browsing hyperlinks. Therefore, the user can instantly view the webpage on the hyperlink address associated with the schedule point.

由上述本發明實施方式可知,應用本發明具有下列優點。如此一來,可根據使用者對於顯示元件之顯示畫面的互動,從整合於智慧型手機應用巨集指令執行平台110之多個服務中,提供相應之服務。因而,可使相同格式之巨集指令資訊檔被重複使用在各種不同場景。It will be apparent from the above-described embodiments of the present invention that the application of the present invention has the following advantages. In this way, according to the interaction of the user with the display screen of the display component, the corresponding service can be provided from a plurality of services integrated into the smart phone application macro instruction execution platform 110. Thus, macro instruction information files of the same format can be reused in various different scenarios.

雖然本發明已以實施方式揭露如上,然其並非用以限定本發明,任何熟習此技藝者,在不脫離本發明之精神和範圍內,當可作各種之更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention, and the present invention can be modified and modified without departing from the spirit and scope of the present invention. The scope is subject to the definition of the scope of the patent application attached.

100...智慧型手機100. . . Smart phone

110...智慧型手機應用巨集指令執行平台110. . . Smart phone application macro instruction execution platform

111...巨集指令下載模組111. . . Macro instruction download module

112...指令轉換模組112. . . Command conversion module

113...儲存庫113. . . Repository

114...指令儲存模組114. . . Command storage module

115...資訊顯示模組115. . . Information display module

116...事件處理模組116. . . Event processing module

116a...事件接收器116a. . . Event receiver

117...服務整合模組117. . . Service integration module

118...服務呼叫模組118. . . Service call module

118a...統一資源標識符註冊庫118a. . . Uniform Resource Identifier Registration Library

118b...統一資源標識符解析器118b. . . Uniform resource identifier parser

118c...統一資源標識符驗證器118c. . . Uniform Resource Identifier Verifier

120...顯示畫面120. . . Display

200...外部網路200. . . External network

300...儲存伺服器300. . . Storage server

401...排程時刻401. . . Scheduling moment

402...目前時間402. . . Current time

403...開啟導航選項403. . . Turn on navigation options

404...開啟通訊選項404. . . Turn on communication options

405...開啟超連結選項405. . . Turn on hyperlinks

406...開啟影音選項406. . . Turn on video and audio options

407...開啟文件選項407. . . Open file option

為讓本發明之上述和其他目的、特徵、優點與實施例能更明顯易懂,所附圖式之說明如下:The above and other objects, features, advantages and embodiments of the present invention will become more apparent and understood.

第1圖繪示依照本發明一實施方式的一種智慧型手機應用巨集指令執行平台之功能方塊圖。FIG. 1 is a functional block diagram of a smart phone application macro instruction execution platform according to an embodiment of the invention.

第2圖係智慧型手機100上之顯示畫面120之一實施例。FIG. 2 is an embodiment of a display screen 120 on the smart phone 100.

100...智慧型手機100. . . Smart phone

110...智慧型手機應用巨集指令執行平台110. . . Smart phone application macro instruction execution platform

111...巨集指令下載模組111. . . Macro instruction download module

112...指令轉換模組112. . . Command conversion module

113...儲存庫113. . . Repository

114...指令儲存模組114. . . Command storage module

115...資訊顯示模組115. . . Information display module

116...事件處理模組116. . . Event processing module

116a...事件接收器116a. . . Event receiver

117...服務整合模組117. . . Service integration module

118...服務呼叫模組118. . . Service call module

118a...統一資源標識符註冊庫118a. . . Uniform Resource Identifier Registration Library

118b...統一資源標識符解析器118b. . . Uniform resource identifier parser

118c...統一資源標識符驗證器118c. . . Uniform Resource Identifier Verifier

200...外部網路200. . . External network

300...儲存伺服器300. . . Storage server

Claims (6)

一種智慧型手機應用巨集指令執行平台,執行於一智慧型手機,其中該智慧型手機應用巨集指令執行平台包含:一巨集指令下載模組,透過一外部網路,與一儲存伺服器建立連結,並自該儲存伺服器,下載一巨集指令資訊檔;一指令轉換模組,將該巨集指令資訊檔轉換成一特定程式語言之一可操作物件;一儲存庫;一指令儲存模組,將該可操作物件存入該儲存庫;一資訊顯示模組,根據一預設畫面樣板,將該可操作物件的資訊,顯示於一顯示元件之一顯示畫面上;一事件處理模組,根據使用者對於該顯示元件之該顯示畫面的互動,產生對應之一統一資源標識符,該統一資源標識符包含一網際網路資源名稱識別字串,用以識別所要求之一網際網路資源名稱;一服務整合模組,利用一應用程式設計介面,整合該智慧型手機以及網際網路所提供之服務;以及一服務呼叫模組,根據該統一資源標識符,呼叫該服務整合模組提供對應之服務。 A smart phone application macro instruction execution platform is executed on a smart phone, wherein the smart phone application macro instruction execution platform comprises: a macro instruction download module, through an external network, and a storage server Establishing a link, and downloading a macro instruction information file from the storage server; an instruction conversion module, converting the macro instruction information file into one of a specific programming language operable object; a repository; an instruction storage module a group, the operable object is stored in the storage; an information display module, according to a preset screen template, displaying the information of the operable object on a display screen of a display component; an event processing module Corresponding to the user interaction with the display screen of the display component, generating a corresponding unified resource identifier, where the uniform resource identifier includes an internet resource name identification string for identifying one of the required internet addresses Resource name; a service integration module that integrates the smart phone and the services provided by the Internet using an application design interface; And call a service module, according to the uniform resource identifier, call the service integration module corresponding to the service provided. 如請求項1所述之智慧型手機應用巨集指令執行平台,其中該巨集指令資訊檔包含至少一巨集指令結構。 The smart phone application macro instruction execution platform according to claim 1, wherein the macro instruction information file includes at least one macro instruction structure. 如請求項2所述之智慧型手機應用巨集指令執行平台,其中該巨集指令結構包含一資訊格式、一資訊名稱與一資訊內容。 The smart phone application macro instruction execution platform of claim 2, wherein the macro instruction structure comprises an information format, a news name and a news content. 如請求項3所述之智慧型手機應用巨集指令執行平台,其中該資訊格式為文字、超連結、檔案或是群組的至少其中之一。 The smart phone application macro instruction execution platform according to claim 3, wherein the information format is at least one of a text, a hyperlink, a file, or a group. 如請求項1所述之智慧型手機應用巨集指令執行平台,其中該事件處理模組包含:一事件接收器,接收使用者對於該顯示元件之該顯示畫面的互動所產生之一互動訊號。 The smart phone application macro instruction execution platform of claim 1, wherein the event processing module comprises: an event receiver, which receives an interaction signal generated by the user interaction with the display screen of the display component. 如請求項1所述之智慧型手機應用巨集指令執行平台,其中該服務呼叫模組包含:一統一資源標識符註冊庫,儲存該統一資源標識符的格式相關資訊;一統一資源標識符解析器,自該統一資源標識符解析出其中所包含的協議名稱與內容;以及一統一資源標識符驗證器,驗證該統一資源標識符的正確性。The smart phone application macro instruction execution platform according to claim 1, wherein the service call module comprises: a unified resource identifier registration library, storing format related information of the uniform resource identifier; and a unified resource identifier resolution And parsing the protocol name and content contained therein from the uniform resource identifier; and a uniform resource identifier verifier to verify the correctness of the uniform resource identifier.
TW100115828A 2011-05-05 2011-05-05 Macro file execution platform applied for smart phone TWI465952B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW100115828A TWI465952B (en) 2011-05-05 2011-05-05 Macro file execution platform applied for smart phone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW100115828A TWI465952B (en) 2011-05-05 2011-05-05 Macro file execution platform applied for smart phone

Publications (2)

Publication Number Publication Date
TW201245991A TW201245991A (en) 2012-11-16
TWI465952B true TWI465952B (en) 2014-12-21

Family

ID=48094448

Family Applications (1)

Application Number Title Priority Date Filing Date
TW100115828A TWI465952B (en) 2011-05-05 2011-05-05 Macro file execution platform applied for smart phone

Country Status (1)

Country Link
TW (1) TWI465952B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI502482B (en) * 2014-07-29 2015-10-01 Insyde Software Corp Handheld electronic device with the function of starting electronic device and its method, computer program product
CN112671754B (en) * 2020-12-21 2023-05-02 龙存(成都)科技有限公司 Method and system for processing different server functions by single pipeline

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200949677A (en) * 2008-05-24 2009-12-01 Via Tech Inc Microprocessor having secure non-volatile storage access
TW201011538A (en) * 2008-09-15 2010-03-16 Microsoft Corp Managing cache data and metadata
US20100088598A1 (en) * 2008-10-02 2010-04-08 Samsung Electronics Co., Ltd. Function execution method and mobile terminal operating with the same
US20100100591A1 (en) * 2008-10-21 2010-04-22 Flexilis, Inc. System and method for a mobile cross-platform software system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200949677A (en) * 2008-05-24 2009-12-01 Via Tech Inc Microprocessor having secure non-volatile storage access
TW201011538A (en) * 2008-09-15 2010-03-16 Microsoft Corp Managing cache data and metadata
US20100088598A1 (en) * 2008-10-02 2010-04-08 Samsung Electronics Co., Ltd. Function execution method and mobile terminal operating with the same
US20100100591A1 (en) * 2008-10-21 2010-04-22 Flexilis, Inc. System and method for a mobile cross-platform software system

Also Published As

Publication number Publication date
TW201245991A (en) 2012-11-16

Similar Documents

Publication Publication Date Title
US9530415B2 (en) System and method of providing speech processing in user interface
Meier Professional Android 4 application development
US9542956B1 (en) Systems and methods for responding to human spoken audio
JP5210347B2 (en) Mobile communication terminal and menu configuration method using mobile flash
US8549471B2 (en) Method and apparatus for providing API service and making API mash-up, and computer readable recording medium thereof
US11360834B2 (en) Application interaction method and apparatus
KR102335090B1 (en) Data transfer in a secure processing environment
TW201814545A (en) Multi-service integration method and apparatus, intelligent terminal, server and operating system
US8880538B1 (en) Electronic document encoding
US11107470B2 (en) Platform selection for performing requested actions in audio-based computing environments
CN108701127A (en) Electronic equipment and its operating method
US11694688B2 (en) Platform selection for performing requested actions in audio-based computing environments
US11556442B2 (en) Immersive web-based simulator for digital assistant-based applications
EP4421802A2 (en) Interfacing with applications via dynamically updating natural language processing
CN101257538A (en) Method and apparatus for processing request in browsers
CN113778897A (en) Automatic test method, device, equipment and storage medium of interface
WO2012113227A1 (en) Mobile-terminal-based information recording method and system
US9183196B1 (en) Parsing annotator framework from external services
CN113900650A (en) Data processing method and device, electronic equipment and readable storage medium
US9275034B1 (en) Exceptions to action invocation from parsing rules
TWI465952B (en) Macro file execution platform applied for smart phone
CN116594676A (en) Application packaging method, device, equipment and storage medium
ES2382747B1 (en) MULTIMODAL INTERACTION ON DIGITAL TELEVISION APPLICATIONS
KR20040058263A (en) Scalable browser
CN113542706B (en) Screen throwing method, device and equipment of running machine and storage medium

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees