TWI677789B - Peripheral hardware operating method and system - Google Patents

Peripheral hardware operating method and system Download PDF

Info

Publication number
TWI677789B
TWI677789B TW107123386A TW107123386A TWI677789B TW I677789 B TWI677789 B TW I677789B TW 107123386 A TW107123386 A TW 107123386A TW 107123386 A TW107123386 A TW 107123386A TW I677789 B TWI677789 B TW I677789B
Authority
TW
Taiwan
Prior art keywords
program
peripheral hardware
memory
script
mobile application
Prior art date
Application number
TW107123386A
Other languages
Chinese (zh)
Other versions
TW202006555A (en
Inventor
林彥宇
Yen Yu Lin
許峰維
Feng Wei Hsu
Original Assignee
英研智能移動股份有限公司
Aimobile Co., Ltd
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 英研智能移動股份有限公司, Aimobile Co., Ltd filed Critical 英研智能移動股份有限公司
Priority to TW107123386A priority Critical patent/TWI677789B/en
Application granted granted Critical
Publication of TWI677789B publication Critical patent/TWI677789B/en
Publication of TW202006555A publication Critical patent/TW202006555A/en

Links

Landscapes

  • Stored Programmes (AREA)
  • Telephone Function (AREA)

Abstract

一種周邊硬體的操作方法,該周邊硬體連接於行動通訊設備,行動通訊設備包含有記憶體以及行動應用程式,操作方法包括:透過行動應用程式發出觸發訊號以觸發記憶體內的常駐程序;常駐程序依據觸發訊號以執行記憶體內的腳本程式;以及當常駐程序執行腳本程式時,驅動周邊硬體依據腳本程序的控制指令進行運作。A method for operating peripheral hardware. The peripheral hardware is connected to a mobile communication device. The mobile communication device includes a memory and a mobile application program. The operation method includes: sending a trigger signal through the mobile application program to trigger a resident program in the memory; The program executes the script program in the memory according to the trigger signal; and when the resident program executes the script program, the peripheral hardware is driven to operate according to the control instructions of the script program.

Description

周邊硬體的操作方法與操作系統Peripheral hardware operation method and operating system

本發明係關於一種周邊硬體的操作方法與操作系統,特別是指透過行動應用程式來操作周邊硬體的方法與系統。The present invention relates to a method and system for operating peripheral hardware, and more particularly to a method and system for operating peripheral hardware through a mobile application.

目前市面上已經有一些周邊硬體,例如陀螺儀、重力感測器,可裝配於智慧型手錶或智慧型手機等行動通訊設備上。使用者若需要操作其他周邊硬體,必須從網路下載對應於這些周邊硬體的應用程式。然而,並非所有可裝配於行動通訊設備的周邊硬體都具有對應的API。如此一來,開發者若要開發這些周邊硬體,必須透過現有的沒有使用到的API以借位的方式來進行操作,使用上十分不便。At present, there are some peripheral hardware on the market, such as gyroscopes and gravity sensors, which can be assembled on mobile communication devices such as smart watches or smart phones. If users need to operate other peripheral hardware, they must download applications corresponding to these peripheral hardware from the Internet. However, not all peripheral hardware that can be mounted on a mobile communication device has a corresponding API. In this way, if developers want to develop these peripheral hardware, they must operate by borrowing through the existing unused API, which is very inconvenient to use.

有鑑於此,目前確實有需要一種改良的周邊硬體的操作方法,至少可改善以上缺點。In view of this, there is indeed a need for an improved operating method of peripheral hardware, which can at least improve the above disadvantages.

本發明提供一種周邊硬體的操作方法與操作系統,讓使用者可輕易地透過應用程式操作周邊硬體。The invention provides an operating method and operating system for peripheral hardware, so that a user can easily operate the peripheral hardware through an application program.

依據本發明的一實施例,揭露一種周邊硬體的操作方法,該周邊硬體連接於一行動通訊設備,該行動通訊設備包含有一記憶體以及一行動應用程式,該操作方法包括:透過行動應用程式發出觸發訊號以觸發記憶體內的常駐程序;常駐程序依據觸發訊號以執行記憶體內的腳本程式,腳本程式包含有一控制指令;以及當常駐程序執行腳本程式時,驅動周邊硬體依據控制指令進行運作。According to an embodiment of the present invention, a method for operating peripheral hardware is disclosed. The peripheral hardware is connected to a mobile communication device. The mobile communication device includes a memory and a mobile application program. The operation method includes: through a mobile application The program sends a trigger signal to trigger the resident program in the memory; the resident program executes the script program in the memory according to the trigger signal, the script program includes a control instruction; and when the resident program executes the script program, the peripheral hardware is driven to operate according to the control instruction .

依據本發明的另一實施例,揭露一種周邊硬體的操作方法,該周邊硬體連接於一行動通訊設備,該行動通訊設備包含有一記憶體以及一行動應用程式,該操作方法包括:透過行動應用程式發出觸發訊號至記憶體內的常駐程序;常駐程序依據觸發訊號判斷行動應用程式是否符合記憶體內的可使用名單;若行動應用程式符合可使用名單,則常駐程序被觸發以執行記憶體內的腳本程式,腳本程式包含有控制指令;若行動應用程式不符合可使用名單,則不會執行該控制指令;以及當常駐程序執行腳本程式時,將驅動周邊硬體依據控制指令進行運作。According to another embodiment of the present invention, an operation method of peripheral hardware is disclosed. The peripheral hardware is connected to a mobile communication device. The mobile communication device includes a memory and a mobile application program. The operation method includes: The application sends a trigger signal to the resident program in the memory; the resident program determines whether the mobile application matches the available list in the memory based on the trigger signal; if the mobile application matches the available list, the resident program is triggered to execute the script in the memory Program, script program contains control instructions; if the mobile application does not meet the usable list, the control instruction will not be executed; and when the resident program executes the script program, the peripheral hardware will be driven to operate according to the control instruction.

依據本發明的另一實施例,揭露一種周邊硬體的操作系統,包括記憶體、常駐程序建立模組、腳本程式建立模組以及行動應用程式。常駐程序建立模組建立常駐程序於記憶體內。腳本程式建立模組建立腳本程式於記憶體內,腳本程式包含有控制指令。腳本程式與常駐程序電性連接,行動應用程式電性連接於常駐程序,行動應用程式可選擇地觸發常駐程序去執行腳本程式,以驅動周邊硬體依據腳本程式的控制指令進行運作。According to another embodiment of the present invention, an operating system of peripheral hardware is disclosed, including a memory, a resident program creation module, a script program creation module, and a mobile application program. The resident program creation module creates a resident program in the memory. The script program creation module creates a script program in the memory, and the script program includes control instructions. The script program is electrically connected to the resident program. The mobile application program is electrically connected to the resident program. The mobile application program can optionally trigger the resident program to execute the script program to drive the peripheral hardware to operate according to the script program's control instructions.

由於行動通訊設備中已預先建立具有控制指令的腳本程式以及與腳本程式相關的常駐程序,使用者只需執行行動應用程式便可驅動周邊硬體依據腳本程式中的控制指令進行運作。如此一來,即使對不熟悉行動通訊設備的使用者,也可輕易地操作周邊硬體。再者,當行動通訊設備預先建立相關於行動應用程式的可使用名單時,還可避免任何來路不明的行動應用程式都可操作周邊硬體,達到保護使用者的行動通訊設備以及周邊硬體的功效。Since a script program with control instructions and a resident program related to the script program have been previously established in the mobile communication device, the user only needs to execute the mobile application program to drive the peripheral hardware to operate according to the control instruction in the script program. In this way, even users who are not familiar with mobile communication equipment can easily operate the peripheral hardware. Furthermore, when the mobile communication device establishes a usable list related to the mobile application in advance, it can also prevent any unknown mobile application from operating the peripheral hardware to protect the user's mobile communication device and peripheral hardware. Effect.

以上之關於本揭露內容之說明及以下之實施方式之說明係用以示範與解釋本發明之精神與原理,並且提供本發明之專利申請範圍更進一步之解釋。The above description of the contents of this disclosure and the description of the following embodiments are used to demonstrate and explain the spirit and principle of the present invention, and provide a further explanation of the scope of the patent application of the present invention.

以下在實施方式中詳細敘述本發明之詳細特徵以及優點,其內容足以使任何熟習相關技藝者了解本發明之技術內容並據以實施,且根據本說明書所揭露之內容、申請專利範圍及圖式,任何熟習相關技藝者可輕易地理解本發明相關之目的及優點。以下之實施例係進一步詳細說明本發明之觀點,但非以任何觀點限制本發明之範疇。The detailed features and advantages of the present invention are described in detail in the following embodiments. The content is sufficient for any person skilled in the art to understand and implement the technical contents of the present invention. Anyone skilled in the relevant art can easily understand the related objects and advantages of the present invention. The following examples further illustrate the viewpoints of the present invention in detail, but do not limit the scope of the present invention in any way.

請參照圖1。本發明周邊硬體的操作系統的第一實施例的功能方塊圖。如圖1所示,周邊硬體10與行動通訊設備20電性連接,周邊硬體10例如包含紅外線發射器、條碼掃描器(Barcode Reader)等非google API所提供的硬體周邊,而行動通訊設備20例如包含智慧型電話、平板電腦或智慧型手錶,行動通訊設備20的作業系統例如包含安卓系統(Android)。周邊硬體10的操作系統包含設置於行動通訊設備20內部的記憶體21、常駐程序建立模組22以及腳本程式建立模組23等硬體裝置以及安裝於行動通訊設備20的行動應用程式24。記憶體21例如包含非揮發性記憶體,常駐程序建立模組22與腳本建立模組23分別與記憶體21電性連接。常駐程序建立模組22用以建立具有根權限(root)的常駐程序211(daemon service)於記憶體21內,其中根權限為系統權限的一種,且高於管理員(Administrator)權限。一般而言,獲得根權限即已獲得了系統的最高權限,可以對系統中的任何檔案(包括系統檔)執行所有增加、刪減、修改、查詢的操作。腳本建立模組23用以建立腳本程式212於記憶體21內。常駐程序211與腳本程式212電性連接,而行動應用程式24與常駐程序211電性連接。行動通訊設備20開機後即可啟動常駐程序211,被啟動的常駐程序211依據行動應用程式24發出的觸發訊號以執行腳本程式212,當常駐程序211執行腳本程式212時,將驅動周邊硬體10依據腳本程式212的控制指令進行運作。Please refer to Figure 1. Functional block diagram of the first embodiment of the operating system of the peripheral hardware of the present invention. As shown in FIG. 1, the peripheral hardware 10 is electrically connected to the mobile communication device 20. The peripheral hardware 10 includes, for example, an infrared transmitter, a barcode scanner (Barcode Reader) and other hardware peripherals provided by non-Google APIs, and mobile communication The device 20 includes, for example, a smart phone, a tablet computer, or a smart watch, and the operating system of the mobile communication device 20 includes, for example, an Android system. The operating system of the peripheral hardware 10 includes hardware devices such as a memory 21 provided in the mobile communication device 20, a resident program creation module 22 and a script program creation module 23, and a mobile application program 24 installed in the mobile communication device 20. The memory 21 includes, for example, a non-volatile memory, and the resident program creation module 22 and the script creation module 23 are electrically connected to the memory 21 respectively. The resident program creation module 22 is used to create a resident program 211 (daemon service) with root authority in the memory 21, wherein the root authority is a type of system authority and is higher than the administrator authority. Generally speaking, obtaining the root authority means that you have obtained the highest authority of the system. You can perform all operations of adding, deleting, modifying, and querying any file (including system files) in the system. The script creation module 23 is used to create a script program 212 in the memory 21. The resident program 211 is electrically connected to the script program 212, and the mobile application 24 is electrically connected to the resident program 211. After the mobile communication device 20 is turned on, the resident program 211 can be started. The activated resident program 211 executes the script program 212 according to the trigger signal issued by the mobile application program 24. When the resident program 211 executes the script program 212, it will drive the peripheral hardware 10 It operates according to the control instruction of the script program 212.

請參照圖2。圖2為圖1的周邊硬體的操作方法的流程圖。如圖2所示,周邊硬體的操作方法包括:Please refer to Figure 2. FIG. 2 is a flowchart of a method of operating the peripheral hardware of FIG. 1. As shown in Figure 2, the operating methods of the peripheral hardware include:

在步驟S201中,開啟預設於記憶體21內的具有根權限的常駐程序211;In step S201, a resident program 211 with root authority preset in the memory 21 is opened;

在步驟S202中,行動應用程式24發出觸發訊號以觸發記憶體21內的常駐程序211;In step S202, the mobile application 24 sends a trigger signal to trigger the resident program 211 in the memory 21;

在步驟S203中,被觸發的常駐程序211執行預設於記憶體21內的腳本程式212,腳本程式212的語言例如包含shell script,且腳本程式212包含有使用者所需求的控制指令;In step S203, the triggered resident program 211 executes a script program 212 preset in the memory 21. The language of the script program 212 includes, for example, a shell script, and the script program 212 contains a control instruction required by the user.

在步驟S204中,驅動周邊硬體10依據腳本程式212所列的控制指令進行運作。In step S204, the peripheral hardware 10 is driven to operate according to the control instructions listed in the script program 212.

舉例而言,使用者預先於平板電腦的記憶體21內建立具有控制指令的腳本程式212以及相關於腳本程式212的常駐程序211,而平板電腦每一次開機便啟動常駐程序211。若使用者欲控制連接於平板電腦的Barcode Reader,只需執行安裝於平板電腦的行動應用程式24,其中行動應用程式24可由Google Paly或者App Store提供。當使用者執行行動應用程式24之後,行動應用程式24便會發出觸發訊號以觸發常駐程序211去執行儲存於記憶體21內的腳本程式212。若先前使用者所撰寫的腳本程式212中具有「讀取Barcode周邊硬體10」的控制指令,則使用者執行行動應用程式24便可驅動Barcode Reader來掃描條碼。若使用者希望進一步關閉Reader,但預先撰寫的腳本程式212中沒有「使周邊硬體10關閉Reader」的控制指令,則使用者必須重新將新的控制指令:「使周邊硬體10關閉Reader」寫入原來的腳本程式212,使用者再重新執行一次行動應用程式24便可關閉Reader。For example, the user creates a script program 212 with a control command and a resident program 211 related to the script program 212 in the memory 21 of the tablet computer in advance, and the tablet computer starts the resident program 211 each time it is turned on. If the user wants to control the Barcode Reader connected to the tablet computer, he only needs to execute the mobile application 24 installed on the tablet computer, wherein the mobile application 24 can be provided by Google Paly or the App Store. After the user executes the mobile application program 24, the mobile application program 24 will send a trigger signal to trigger the resident program 211 to execute the script program 212 stored in the memory 21. If the script program 212 written by the previous user has a control command of "reading Barcode peripheral hardware 10", the user executes the mobile application 24 to drive the Barcode Reader to scan the barcode. If the user wishes to further close the Reader, but there is no control instruction of "make the peripheral hardware 10 to close the Reader" in the pre-written script program 212, the user must reset the new control instruction: "make the peripheral hardware 10 to close the Reader" The original script program 212 is written, and the user executes the mobile application program 24 again to close the Reader.

請參照圖3。本發明周邊硬體的操作系統的第二實施例的功能方塊圖。本實施例與第一實施例之間的差異為操作系統更包含在記憶體21內設有可使用名單213,可使用名單213與常駐程序211電性連接。只有列於可使用名單213內的行動應用程式22才能觸發常駐程序211執行腳本程式212。此外,可使用名單213具有加密機制以使得他人無法輕易地瀏覽與修改可使用名單213。Please refer to Figure 3. Functional block diagram of the second embodiment of the operating system of the peripheral hardware of the present invention. The difference between this embodiment and the first embodiment is that the operating system further includes a usable list 213 in the memory 21, and the usable list 213 is electrically connected to the resident program 211. Only the mobile application 22 listed in the usable list 213 can trigger the resident program 211 to execute the script program 212. In addition, the available list 213 has an encryption mechanism so that others cannot easily browse and modify the available list 213.

請參照圖4。圖4為圖3的周邊硬體的操作方法的流程圖。如圖4所示,本實施例的周邊硬體的操作方法包括:Please refer to Figure 4. FIG. 4 is a flowchart of a method of operating the peripheral hardware of FIG. 3. As shown in FIG. 4, the operation method of the peripheral hardware in this embodiment includes:

在步驟S401中,開啟預設於記憶體21內的具有根權限的常駐程序211;In step S401, a resident program 211 with root authority preset in the memory 21 is opened;

在步驟S402中,行動應用程式24發出觸發訊號至常駐程序211;In step S402, the mobile application 24 sends a trigger signal to the resident program 211;

在步驟S403中,常駐程序211依據觸發訊號判斷行動應用程式24是否符合預設於記憶體21內的可使用名單213,若符合可使用名單213則常駐程序211被觸發以執行步驟S404,若不符合可使用名單213則重新回到步驟S401;In step S403, the resident program 211 determines whether the mobile application 24 complies with the usable list 213 preset in the memory 21 according to the trigger signal. If the usable list 213 is met, the resident program 211 is triggered to execute step S404. If it meets the available list 213, it returns to step S401 again.

在步驟S404中,被觸發的常駐程序211執行預設於記憶體21內的腳本程式211,腳本程式212包含有使用者所需求的控制指令;In step S404, the triggered resident program 211 executes a script program 211 preset in the memory 21, and the script program 212 contains a control instruction required by the user;

在步驟S405中,驅動周邊硬體10依據腳本程式212所列的控制指令進行運作。In step S405, the peripheral hardware 10 is driven to operate according to the control instructions listed in the script program 212.

舉例而言,使用者預先於平板電腦的記憶體21內建立具有控制指令的腳本程式212、相關於腳本程式212的常駐程序211以及相關於行動應用程式24的可使用名單213,平板電腦每一次開機便啟動常駐程序211。若使用者欲控制連接於平板電腦的Barcode Reader,則必須執行符合列於可使用名單213的行動應用程式24。例如可使用名單213中沒有列有Google map,即使使用者執行Google map,也無法驅使Barcode Reader依據腳本程式212中的控制指令進行運作。因此,使用者可從Google Paly或App Store下載列於可使用名單213中的行動應用程式24,接著使用者只要執行符合可使用名單213的行動應用程式24便可驅動Barcode Reader依據腳本程式212所列的控制指令進行運作。For example, the user creates a script program 212 with control instructions in the memory 21 of the tablet computer in advance, a resident program 211 related to the script program 212, and an available list 213 related to the mobile application 24. Upon startup, the resident program 211 is started. If a user wants to control a Barcode Reader connected to a tablet computer, he must run a mobile application 24 that conforms to the available list 213. For example, the Google map is not listed in the list 213. Even if the user executes the Google map, the Barcode Reader cannot be driven to operate according to the control instruction in the script program 212. Therefore, the user can download the mobile application 24 listed in the available list 213 from Google Paly or the App Store, and then the user can drive the Barcode Reader according to the script program 212 by executing the mobile application 24 that meets the available list 213 The control instructions of the column operate.

綜上所述,由於行動通訊設備中已預先建立具有控制指令的腳本程式以及與腳本程式相關的常駐程序,使用者只需執行行動應用程式便可驅動周邊硬體依據腳本程式中的控制指令進行運作。如此一來,即使對不熟悉行動通訊設備的使用者,也可輕易地操作周邊硬體。再者,當行動通訊設備預先建立相關於行動應用程式的可使用名單時,還可避免任何來路不明的行動應用程式都可操作周邊硬體,達到保護使用者的行動通訊設備以及周邊硬體的功效。In summary, since the mobile communication device has a script program with control instructions and a resident program related to the script program pre-established, the user only needs to execute the mobile application program to drive the peripheral hardware to perform the control instructions in the script program. Operation. In this way, even users who are not familiar with mobile communication equipment can easily operate the peripheral hardware. Furthermore, when the mobile communication device establishes a usable list related to the mobile application in advance, it can also prevent any unknown mobile application from operating the peripheral hardware to protect the user's mobile communication device and peripheral hardware. Effect.

雖然本發明以前述之實施例揭露如上,然其並非用以限定本發明。在不脫離本發明之精神和範圍內,所為之更動與潤飾,均屬本發明之專利保護範圍。關於本發明所界定之保護範圍請參考所附之申請專利範圍。Although the present invention is disclosed in the foregoing embodiments, it is not intended to limit the present invention. Changes and modifications made without departing from the spirit and scope of the present invention belong to the patent protection scope of the present invention. For the protection scope defined by the present invention, please refer to the attached patent application scope.

10‧‧‧周邊硬體10‧‧‧ Peripheral hardware

20‧‧‧行動通訊設備 20‧‧‧Mobile communication equipment

21‧‧‧記憶體 21‧‧‧Memory

211‧‧‧常駐程序 211‧‧‧Resident Program

212‧‧‧腳本程式 212‧‧‧Script

213‧‧‧可使用名單 213‧‧‧ Available list

22‧‧‧常駐程序建立模組 22‧‧‧Resident program creation module

23‧‧‧腳本程式建立模組 23‧‧‧Script program creation module

24‧‧‧行動應用程式 24‧‧‧ Mobile App

圖1為本發明周邊硬體的操作系統的第一實施例的功能方塊圖。 圖2為圖1的周邊硬體的操作方法的流程圖。 圖3為本發明周邊硬體的操作系統的第二實施例的方塊圖。 圖4為圖3的周邊硬體的操作方法的流程圖。FIG. 1 is a functional block diagram of a first embodiment of an operating system of peripheral hardware of the present invention. FIG. 2 is a flowchart of a method of operating the peripheral hardware of FIG. 1. FIG. 3 is a block diagram of a second embodiment of an operating system for peripheral hardware of the present invention. FIG. 4 is a flowchart of a method of operating the peripheral hardware of FIG. 3.

Claims (16)

一種周邊硬體的操作方法,該周邊硬體連接於一行動通訊設備,該行動通訊設備包含有一記憶體以及一行動應用程式,該操作方法包括:透過該行動應用程式發出一觸發訊號以觸發該記憶體內的一常駐程序;該常駐程序依據該觸發訊號以執行該記憶體內的一腳本程式,該腳本程式包含有一控制指令;以及當該常駐程序執行該腳本程式時,驅動該周邊硬體依據該控制指令進行運作。A method for operating peripheral hardware. The peripheral hardware is connected to a mobile communication device. The mobile communication device includes a memory and a mobile application program. The operation method includes: sending a trigger signal through the mobile application program to trigger the mobile communication device. A resident program in the memory; the resident program executes a script program in the memory according to the trigger signal, the script program includes a control instruction; and when the resident program executes the script program, drives the peripheral hardware according to the Control instructions operate. 如請求項1所述之周邊硬體的操作方法,其中該常駐程序具有根權限。The operating method of the peripheral hardware according to claim 1, wherein the resident program has root authority. 如請求項1所述之周邊硬體的操作方法,更包括在該行動應用程式發出該觸發訊號之前,透過一常駐程序建立模組於該記憶體內建立該常駐程序。The operating method of the peripheral hardware as described in claim 1, further includes establishing a resident program in the memory through a resident program creation module before the mobile application sends the trigger signal. 如請求項1所述之周邊硬體的操作方法,更包括在該行動應用程式發出該觸發訊號之前,透過一腳本程式建立模組於該記憶體內建立該腳本程式。The operation method of the peripheral hardware as described in claim 1, further comprising, before the mobile application sends the trigger signal, creating a script program in the memory through a script program creation module. 如請求項1所述之周邊硬體的操作方法,其中該腳本程式的語言為shell script。The operating method of the peripheral hardware according to claim 1, wherein the language of the script program is shell script. 一種周邊硬體的操作方法,該周邊硬體連接於一行動通訊設備,該行動通訊設備包含有一記憶體以及一行動應用程式,該操作方法包括: 透過該行動應用程式發出一觸發訊號至該記憶體內的一常駐程序; 該常駐程序依據該觸發訊號判斷該行動應用程式是否符合該記憶體內的一可使用名單; 若該行動應用程式符合該可使用名單,則該常駐程序被觸發以執行該記憶體內的一腳本程式,該腳本程式包含有一控制指令; 若該行動應用程式不符合該可使用名單,則不會執行該控制指令;以及 當該常駐程序執行該腳本程式時,驅動該周邊硬體依據該控制指令進行運作。A method for operating peripheral hardware. The peripheral hardware is connected to a mobile communication device. The mobile communication device includes a memory and a mobile application program. The operation method includes: sending a trigger signal to the memory through the mobile application program. A resident program in the body; the resident program determines whether the mobile application conforms to a useable list in the memory according to the trigger signal; if the mobile application meets the useable list, the resident program is triggered to execute the memory A script program in the body, the script program includes a control instruction; if the mobile application does not meet the available list, the control instruction will not be executed; and when the resident program executes the script program, the peripheral hardware is driven Operate according to this control instruction. 如請求項6所述之周邊硬體的操作方法,其中該常駐程序具有根權限。The operating method of the peripheral hardware according to claim 6, wherein the resident program has root authority. 如請求項6所述之周邊硬體的操作方法,更包括在該行動應用程式發出該觸發訊號之前,透過一常駐程序建立模組於該記憶體內建立該常駐程序。The operating method of the peripheral hardware as described in claim 6, further includes establishing a resident program in the memory through a resident program creation module before the mobile application sends the trigger signal. 如請求項6所述之周邊硬體的操作方法,更包括在該行動應用程式發出該觸發訊號之前,透過一腳本程式建立模組於該記憶體內建立該腳本程式。The operating method of the peripheral hardware according to claim 6, further comprising, before the mobile application sends the trigger signal, creating a script program in the memory through a script program creation module. 如請求項6所述之周邊硬體的操作方法,其中該腳本程式的語言為shell script。The operating method of the peripheral hardware according to claim 6, wherein the language of the script program is shell script. 一種周邊硬體的操作系統,包括: 一記憶體; 一常駐程序建立模組,建立一常駐程序於該記憶體內; 一腳本程式建立模組,建立一腳本程式於該記憶體內,該腳本程式包含有一控制指令,該腳本程式與該常駐程序電性連接;以及 一行動應用程式,電性連接於該常駐程序,該行動應用程式可選擇地觸發該常駐程序去執行該腳本程式,以驅動該周邊硬體依據該腳本程式的該控制指令進行運作。An operating system of peripheral hardware includes: a memory; a resident program creation module to create a resident program in the memory; a script program creation module to create a script program in the memory; the script program includes There is a control instruction, the script program is electrically connected to the resident program; and a mobile application program is electrically connected to the resident program, and the mobile application program can optionally trigger the resident program to execute the script program to drive the peripheral program. The hardware operates according to the control instructions of the script program. 如請求項11所述之周邊硬體的操作系統,其中該記憶體內設有一可使用名單,該常駐程序判斷該行動應用程式是否符合該可使用名單,當該行動應用程式符合該可使用名單時,該常駐程序才執行該腳本程式。The operating system of the peripheral hardware as described in claim 11, wherein a usable list is set in the memory, and the resident process determines whether the mobile application meets the usable list, and when the mobile application meets the usable list , The resident program executes the script program. 如請求項11所述之周邊硬體的操作系統,其中該可使用名單具有加密機制。The operating system of the peripheral hardware according to claim 11, wherein the usable list has an encryption mechanism. 如請求項11所述之周邊硬體的操作系統,其中該記憶體為非揮發性記憶體。The operating system of the peripheral hardware according to claim 11, wherein the memory is a non-volatile memory. 如請求項11所述之周邊硬體的操作系統,其中該行動通訊設備的作業系統為安卓系統。The operating system of the peripheral hardware according to claim 11, wherein the operating system of the mobile communication device is an Android system. 如請求項11所述之周邊硬體的操作系統,其中該周邊硬體包含紅外線發射器或條碼掃描器。The operating system of the peripheral hardware according to claim 11, wherein the peripheral hardware includes an infrared transmitter or a barcode scanner.
TW107123386A 2018-07-06 2018-07-06 Peripheral hardware operating method and system TWI677789B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW107123386A TWI677789B (en) 2018-07-06 2018-07-06 Peripheral hardware operating method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW107123386A TWI677789B (en) 2018-07-06 2018-07-06 Peripheral hardware operating method and system

Publications (2)

Publication Number Publication Date
TWI677789B true TWI677789B (en) 2019-11-21
TW202006555A TW202006555A (en) 2020-02-01

Family

ID=69188975

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107123386A TWI677789B (en) 2018-07-06 2018-07-06 Peripheral hardware operating method and system

Country Status (1)

Country Link
TW (1) TWI677789B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103812921A (en) * 2012-11-12 2014-05-21 (株)庆东One Heating system remote control and management device using a smart phone application and its method
CN104572564A (en) * 2015-01-13 2015-04-29 上海动联信息技术股份有限公司 Method for realizing communication of Android mobile equipment and USB OTG (On-The-Go) host computer
CN104598267A (en) * 2014-12-12 2015-05-06 百度在线网络技术(北京)有限公司 Application calling method and device
CN104717075A (en) * 2013-12-16 2015-06-17 航天信息股份有限公司 Equipment with Android system and scanning method of equipment
US20160125217A1 (en) * 2014-11-05 2016-05-05 Hand Held Products, Inc. Barcode scanning system using wearable device with embedded camera
TWM523155U (en) * 2016-03-08 2016-06-01 Sinbon Electronics Company Ltd Wireless barcode scanning device and system having the same
CN108170494A (en) * 2017-12-28 2018-06-15 上海传英信息技术有限公司 A kind of application program launching method and activation system for intelligent terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103812921A (en) * 2012-11-12 2014-05-21 (株)庆东One Heating system remote control and management device using a smart phone application and its method
CN104717075A (en) * 2013-12-16 2015-06-17 航天信息股份有限公司 Equipment with Android system and scanning method of equipment
US20160125217A1 (en) * 2014-11-05 2016-05-05 Hand Held Products, Inc. Barcode scanning system using wearable device with embedded camera
CN104598267A (en) * 2014-12-12 2015-05-06 百度在线网络技术(北京)有限公司 Application calling method and device
CN104572564A (en) * 2015-01-13 2015-04-29 上海动联信息技术股份有限公司 Method for realizing communication of Android mobile equipment and USB OTG (On-The-Go) host computer
TWM523155U (en) * 2016-03-08 2016-06-01 Sinbon Electronics Company Ltd Wireless barcode scanning device and system having the same
CN108170494A (en) * 2017-12-28 2018-06-15 上海传英信息技术有限公司 A kind of application program launching method and activation system for intelligent terminal

Also Published As

Publication number Publication date
TW202006555A (en) 2020-02-01

Similar Documents

Publication Publication Date Title
US10735427B2 (en) Method and apparatus for managing program of electronic device
CN110023941B (en) System on chip and method for realizing switching of safety operation system
EP3479243B1 (en) Fault-tolerant variable region repaving during firmware over the air update
TWI598814B (en) System and method for managing and diagnosing a computing device equipped with unified extensible firmware interface (uefi)-compliant firmware
KR102327782B1 (en) Electronic device and method for approaching to kernel data
EP3678039B1 (en) Secure startup method and apparatus, and terminal device
TWI632483B (en) Security device and method of providing security service to host therein, security apparatus and computer software product
CN109964227B (en) Method and terminal for updating SELinux security policy
US10474454B2 (en) System and method for updating a trusted application (TA) on a device
WO2017211205A1 (en) Method and device for updating whitelist
US10185553B2 (en) Fault-tolerant variable region repaving during firmware over the air update
EP3675537B1 (en) Application processing method and apparatus for embedded universal integrated circuit card
US9483636B2 (en) Runtime application integrity protection
US20150270960A1 (en) System and method for deriving secrets from a master key bound to an application on a device
WO2017088135A1 (en) Method and device for configuring security indication information
US20170201378A1 (en) Electronic device and method for authenticating identification information thereof
WO2021022729A1 (en) Root permission assignment method and apparatus, storage medium, and terminal device
CN110795737A (en) Method and terminal equipment for upgrading service application range of electronic identity card
US20160140350A1 (en) Method of securing image data and electronic device adapted to the same
TWI677789B (en) Peripheral hardware operating method and system
WO2015196525A1 (en) Encryption method and apparatus, and operation method and apparatus for kernel encryption data
JP2016103217A (en) Information processing terminal and control program of information processing terminal
US20090187898A1 (en) Method for securely updating an autorun program and portable electronic entity executing it
WO2019090586A1 (en) Mobile terminal, and computer readable storage medium for data wiping
CN116991447B (en) Operating system updating method and related equipment