TWI819424B - Method for controlling electronic device - Google Patents

Method for controlling electronic device Download PDF

Info

Publication number
TWI819424B
TWI819424B TW110145394A TW110145394A TWI819424B TW I819424 B TWI819424 B TW I819424B TW 110145394 A TW110145394 A TW 110145394A TW 110145394 A TW110145394 A TW 110145394A TW I819424 B TWI819424 B TW I819424B
Authority
TW
Taiwan
Prior art keywords
electronic device
processor
program code
communication interface
interface circuit
Prior art date
Application number
TW110145394A
Other languages
Chinese (zh)
Other versions
TW202324118A (en
Inventor
陳立敬
劉素貞
陳曄
Original Assignee
大陸商星宸科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 大陸商星宸科技股份有限公司 filed Critical 大陸商星宸科技股份有限公司
Priority to TW110145394A priority Critical patent/TWI819424B/en
Publication of TW202324118A publication Critical patent/TW202324118A/en
Application granted granted Critical
Publication of TWI819424B publication Critical patent/TWI819424B/en

Links

Images

Landscapes

  • Selective Calling Equipment (AREA)
  • Diaphragms For Electromechanical Transducers (AREA)
  • Apparatuses And Processes For Manufacturing Resistors (AREA)

Abstract

A method for controlling an electronic device is provided, wherein the electronic device includes a processor, a read only memory (ROM), a Random Access Memory (RAM), an image sensor control circuit, an image signal processor (ISP) and a communications interface circuit. The method may include: in response to the electronic device being powered up, utilizing the processor to execute a first program code in the ROM to initialize the communications interface circuit; transmitting an identification information to an external device through the communications interface circuit; receiving, through the communications interface circuit, a second program code that the external device sends in response to the identification information, for being stored into the RAM; and utilizing the processor to execute the second program code to initialize the image sensor control circuit and the ISP.

Description

用來控制電子裝置之方法 Methods for controlling electronic devices

本發明係有關於裝置控制,尤指一種用來控制電子裝置之方法。 The present invention relates to device control, and in particular, to a method for controlling an electronic device.

依據相關技術,一電子裝置可具備各種功能。然而,可能發生某些問題。例如,該電子裝置可能需要相當大的儲存空間來儲存韌體碼,這很浪費該電子裝置的硬體資源。相關技術中提出了某些建議以嘗試解決這個問題,但可能導致額外的問題諸如某些副作用。因此,需要一種新穎的方法及相關架構,以在沒有副作用或較不可能帶來副作用之狀況下實現精巧(compact)且可靠的電子裝置。 According to related technologies, an electronic device can have various functions. However, certain problems may occur. For example, the electronic device may require a considerable storage space to store the firmware code, which wastes the hardware resources of the electronic device. Certain proposals have been made in the related art to try to solve this problem, but may lead to additional problems such as certain side effects. Therefore, a novel method and related architecture are needed to realize compact and reliable electronic devices without side effects or with less possibility of side effects.

本發明之一目的在於提供一種用來控制電子裝置之方法,以解決上述問題。 One object of the present invention is to provide a method for controlling an electronic device to solve the above problems.

本發明之一實施例提供一種用來控制一電子裝置之方法,其中該電子裝置包含一處理器、一唯讀記憶體、一隨機存取記憶體、一影像感測器控制電路、一影像訊號處理器、以及一通訊介面電路。該方法包含:因應該電子裝置被供電,該處理器執行該唯讀記憶體中的一第一程式碼以初始化該通訊介面電路;透過該通訊介面電路傳輸一識別資訊至一外部裝置;透過該通訊介面電路接收該外部裝置回應該識別資訊所傳送之一第二程式碼以儲存至該隨機存取記憶體;以及該處理器執行該第二程式碼以初始化該影像感測器控制電路及該影像訊號處理器。 An embodiment of the present invention provides a method for controlling an electronic device, wherein the electronic device includes a processor, a read-only memory, a random access memory, an image sensor control circuit, and an image signal processor, and a communication interface circuit. The method includes: in response to the electronic device being powered, the processor executes a first program code in the read-only memory to initialize the communication interface circuit; transmits identification information to an external device through the communication interface circuit; The communication interface circuit receives a second program code sent by the external device in response to the identification information to store in the random access memory; and the processor executes the second program code to initialize the image sensor control circuit and the Image signal processor.

本發明之一實施例提供一種用來控制一電子裝置之方法,其中該電子裝置包含一第一處理器以及一通訊介面電路,且另一電子裝置包含一第二處理器、一隨機存取記憶體、一影像感測器控制電路以及一影像訊號處理器。該方法可包含:透過該通訊介面電路從該另一電子裝置接收一識別資訊;回應於該識別資訊,透過該通訊介面電路傳送至少一程式碼至該另一電子裝置以儲存至該隨機存取記憶體並使該第二處理器執行該至少一程式碼以初始化該影像感測器控制電路及該影像訊號處理器。 An embodiment of the present invention provides a method for controlling an electronic device, wherein the electronic device includes a first processor and a communication interface circuit, and another electronic device includes a second processor and a random access memory. body, an image sensor control circuit and an image signal processor. The method may include: receiving identification information from the other electronic device through the communication interface circuit; in response to the identification information, transmitting at least one program code to the other electronic device through the communication interface circuit to store in the random access The memory causes the second processor to execute the at least one program code to initialize the image sensor control circuit and the image signal processor.

本發明的好處之一是,透過仔細設計之控制機制,本發明的方法能妥善管理程式碼的儲存以節省儲存空間並確保電子裝置之正常操作。相較於相關技術,本發明的方法能在沒有副作用或較不可能帶來副作用之狀況下實現精巧且可靠的電子裝置。 One of the benefits of the present invention is that through a carefully designed control mechanism, the method of the present invention can properly manage the storage of program codes to save storage space and ensure the normal operation of the electronic device. Compared with related technologies, the method of the present invention can realize a compact and reliable electronic device without side effects or with less possibility of side effects.

100,200:電子裝置 100,200: Electronic devices

110,210:處理器 110,210: Processor

120,220:週邊電路 120,220: Peripheral circuit

121:基本輸入輸出系統(BIOS) 121:Basic Input Output System (BIOS)

122,222:通訊介面電路 122,222: Communication interface circuit

123,223:隨機存取記憶體(RAM) 123,223: Random access memory (RAM)

124:非揮發性儲存裝置(NVSD) 124:Non-volatile storage device (NVSD)

211:擴展隨機存取記憶體(XRAM) 211: Extended Random Access Memory (XRAM)

221:唯讀記憶體(ROM) 221: Read-only memory (ROM)

224:影像感測器控制(ISC)電路 224: Image sensor control (ISC) circuit

225:影像訊號處理器(ISP) 225:Image signal processor (ISP)

FW:韌體碼 FW: firmware code

IDI:識別資訊 IDI: identification information

INI,IPL,PG:程式碼 INI, IPL, PG: program code

SW:軟體碼 SW: software code

S11~S14,S22,S23,S31~S36,S42,S44,S51~S57,S62,S63,S65:步驟 S11~S14,S22,S23,S31~S36,S42,S44,S51~S57,S62,S63,S65: Steps

第1圖為依據本發明一實施例之一種電子系統的示意圖。 Figure 1 is a schematic diagram of an electronic system according to an embodiment of the present invention.

第2圖為依據本發明一實施例繪示之一種用來控制一電子裝置之方法之流程圖,其中該方法係應用於第1圖所示之電子系統。 FIG. 2 is a flowchart illustrating a method for controlling an electronic device according to an embodiment of the present invention, wherein the method is applied to the electronic system shown in FIG. 1 .

第3圖為依據本發明一實施例繪示之一種用來控制一電子裝置之方法之流程圖,其中該方法係應用於第1圖所示之電子系統。 FIG. 3 is a flow chart illustrating a method for controlling an electronic device according to an embodiment of the present invention, wherein the method is applied to the electronic system shown in FIG. 1 .

第4圖為依據本發明一實施例繪示之第2圖所示之方法的實施細節。 Figure 4 illustrates implementation details of the method shown in Figure 2 according to an embodiment of the present invention.

第5圖為依據本發明一實施例繪示之第3圖所示之方法的實施細節。 Figure 5 illustrates implementation details of the method shown in Figure 3 according to an embodiment of the present invention.

第6圖為依據本發明另一實施例繪示之第2圖所示之方法的實施細節。 Figure 6 illustrates implementation details of the method shown in Figure 2 according to another embodiment of the present invention.

第7圖為依據本發明另一實施例繪示之第3圖所示之方法的實施細節。 FIG. 7 illustrates implementation details of the method shown in FIG. 3 according to another embodiment of the present invention.

第1圖為依據本發明一實施例之一種電子系統的示意圖,其中該電子系統可包含電子裝置100及200。電子裝置100可包含一處理器110及一週邊電路120,而週邊電路120可包含一基本輸入輸出系統(Basic Input Output System,可簡稱BIOS)121、一通訊介面電路122及一隨機存取記憶體(Random Access Memory,可簡稱RAM)123。另外,電子裝置200可包含一處理器210及一週邊電路220,而週邊電路220可包含一唯讀記憶體(Read-Only Memory,可簡稱ROM)221、一通訊介面電路222、一隨機存取記憶體223、一影像感測器控制(Image Sensor Control,ISC)電路224及一影像訊號處理器(Image Signal Processor,ISP)225(後兩者分別標示為「ISC電路」及「ISP」以求簡明),但本發明不限於此。於某些實施例中,電子裝置100可另包含一顯示模組(未顯示於第1圖)以供顯示影像,而電子裝置200可另包含一影像輸入模組(未顯示於第1圖)以供輸入影像,其中該影像輸入模組可包含一鏡頭及一影像感測器。 Figure 1 is a schematic diagram of an electronic system according to an embodiment of the present invention, wherein the electronic system may include electronic devices 100 and 200. The electronic device 100 may include a processor 110 and a peripheral circuit 120. The peripheral circuit 120 may include a Basic Input Output System (BIOS) 121, a communication interface circuit 122 and a random access memory. (Random Access Memory, can be referred to as RAM)123. In addition, the electronic device 200 may include a processor 210 and a peripheral circuit 220, and the peripheral circuit 220 may include a read-only memory (Read-Only Memory, may be referred to as ROM) 221, a communication interface circuit 222, a random access memory 223, an image sensor control (Image Sensor Control, ISC) circuit 224 and an image signal processor (Image Signal Processor, ISP) 225 (the latter two are marked as "ISC circuit" and "ISP" respectively. concise), but the present invention is not limited thereto. In some embodiments, the electronic device 100 may further include a display module (not shown in Figure 1) for displaying images, and the electronic device 200 may further include an image input module (not shown in Figure 1) For inputting images, the image input module may include a lens and an image sensor.

在電子裝置100中,處理器110可用來控制電子裝置100之操作,基本輸入輸出系統121可用來進行基本輸入輸出控制,通訊介面電路122可用來為電子裝置100對其外部裝置(例如電子裝置200)進行通訊,且隨機存取記憶體123可用來為電子裝置100暫時地儲存資訊。另外,在電子裝置200中,處理器210可用來控制電子裝置200之操作,唯讀記憶體221可用來儲存至少一程式碼(例如一或多個程式碼)諸如一程式碼INI,通訊介面電路222可用來為電子裝置200對其外部裝置(例如電子裝置100)進行通訊,隨機存取記憶體223可用來為電子裝置200暫時地儲存資訊,影像感測器控制電路224可用來進行影像感測控制,尤其,控制該影像感測器進行影像感測以產生至少一影像訊號,且影像訊號處理器225可用來進行影像訊號處理,尤其,處理該至少一影像訊號以產生感測到的影像之處理後的影像資料,其中,電子裝置200可將該處理後的影像資料傳送 至電子裝置100以供進一步使用,但本發明不限於此。舉例來說,電子裝置100可提供一視訊通訊服務給使用者,尤其,利用電子裝置200取得上述感測到的影像(例如該使用者的臉部影像)之處理後的影像資料以容許透過該視訊通訊服務和該使用者通訊中的一或多個其他人看到該使用者,並且利用該顯示模組(例如一顯示面板諸如一液晶顯示面板)顯示該一或多個其他人的影像以容許該使用者看到該一或多個其他人。 In the electronic device 100, the processor 110 can be used to control the operation of the electronic device 100, the basic input and output system 121 can be used to perform basic input and output control, and the communication interface circuit 122 can be used to connect the electronic device 100 to external devices (such as the electronic device 200 ) communicates, and the random access memory 123 can be used to temporarily store information for the electronic device 100 . In addition, in the electronic device 200, the processor 210 can be used to control the operation of the electronic device 200, and the read-only memory 221 can be used to store at least one program code (for example, one or more program codes) such as a program code INI, a communication interface circuit 222 can be used for the electronic device 200 to communicate with its external device (such as the electronic device 100), the random access memory 223 can be used to temporarily store information for the electronic device 200, and the image sensor control circuit 224 can be used for image sensing. Control, in particular, control the image sensor to perform image sensing to generate at least one image signal, and the image signal processor 225 may be used to perform image signal processing, in particular, process the at least one image signal to generate a sensed image. The processed image data, wherein the electronic device 200 can transmit the processed image data to the electronic device 100 for further use, but the invention is not limited thereto. For example, the electronic device 100 can provide a video communication service to the user. In particular, the electronic device 200 is used to obtain the processed image data of the above-mentioned sensed image (such as the user's facial image) to allow through the One or more other people in the video communication service communicating with the user see the user, and use the display module (such as a display panel such as a liquid crystal display panel) to display the image of the one or more other people to Allow the user to see the one or more other people.

如第1圖所示,電子裝置200可傳送其識別資訊IDI至電子裝置100以容許電子裝置100識別電子裝置200,以供判定是否從電子裝置100傳輸程式碼PG至電子裝置200。舉例來說,電子裝置100可包含一非揮發性儲存裝置(non-volatile storage device,NVSD)124以供預先儲存對應於電子裝置200之程式碼PG。另外,電子裝置100可依據識別資訊IDI判定電子裝置200是否屬於一組預定電子裝置,其中該組預定電子裝置可包含一或多個預定電子裝置。當識別資訊IDI指出電子裝置200屬於該組預定電子裝置時,電子裝置100可傳送對應於電子裝置200之程式碼PG至電子裝置200以供處理器210執行。 As shown in FIG. 1 , the electronic device 200 can send its identification information IDI to the electronic device 100 to allow the electronic device 100 to identify the electronic device 200 for determining whether to transmit the program code PG from the electronic device 100 to the electronic device 200 . For example, the electronic device 100 may include a non-volatile storage device (NVSD) 124 for pre-stored program code PG corresponding to the electronic device 200 . In addition, the electronic device 100 may determine whether the electronic device 200 belongs to a group of predetermined electronic devices according to the identification information IDI, where the group of predetermined electronic devices may include one or more predetermined electronic devices. When the identification information IDI indicates that the electronic device 200 belongs to the predetermined group of electronic devices, the electronic device 100 may send the program code PG corresponding to the electronic device 200 to the electronic device 200 for execution by the processor 210 .

基於第1圖所示架構,可以節省電子裝置200的儲存空間硬體資源,尤其,電子裝置200中的唯讀記憶體221的儲存空間可以很小,所以唯讀記憶體221的相關成本可對應地減少。例如,唯讀記憶體221可以僅儲存程式碼INI,而處理器210可執行程式碼INI以初始化通訊介面電路222,以透過通訊介面電路222進一步取得程式碼PG,但本發明不限於此。另外,程式碼PG可包含至少一韌體碼(例如一或多個韌體碼),諸如用以初始化某些元件之韌體碼,且可包含至少一軟體碼(例如一或多個軟體碼),諸如一作業系統、至少一驅動器、至少一應用程式等,所以電子裝置200中不需要設置用以預先儲存該至少一韌體碼及該至少一軟體碼之任何非揮發性儲存元件。於是,相關成本可對應地減少。 Based on the architecture shown in Figure 1, the storage space and hardware resources of the electronic device 200 can be saved. In particular, the storage space of the read-only memory 221 in the electronic device 200 can be very small, so the related costs of the read-only memory 221 can be corresponding land decrease. For example, the read-only memory 221 can only store the program code INI, and the processor 210 can execute the program code INI to initialize the communication interface circuit 222 to further obtain the program code PG through the communication interface circuit 222, but the invention is not limited thereto. In addition, the program code PG may include at least one firmware code (eg, one or more firmware codes), such as firmware code used to initialize certain components, and may include at least one software code (eg, one or more software codes ), such as an operating system, at least one driver, at least one application, etc., so the electronic device 200 does not need to be provided with any non-volatile storage element to pre-store the at least one firmware code and the at least one software code. As a result, the associated costs can be reduced accordingly.

於上列實施例中,電子裝置100可藉由數位電視等方式來實施,而電 子裝置200可藉由攝影機等方式來實施。另外,通訊介面電路122及222可藉由通用序列匯流排電路等方式來實施。 In the above embodiments, the electronic device 100 can be implemented by a digital television, etc., and the electronic device 100 The sub-device 200 can be implemented by a camera or the like. In addition, the communication interface circuits 122 and 222 can be implemented by universal serial bus circuits or other methods.

於一實施例中,在第1圖所示之程式碼PG中,上述之至少一韌體碼(例如該一或多個韌體碼)可以統稱為韌體碼FW,而上述之至少一軟體碼(例如該一或多個軟體碼)可以統稱為軟體碼SW。另外,唯讀記憶體221可以儲存程式碼INI以及額外的程式碼(例如該第三程式碼或該另一程式碼)諸如程式碼IPL,以供初始化隨機存取記憶體223。 In one embodiment, in the program code PG shown in Figure 1, the above-mentioned at least one firmware code (such as the one or more firmware codes) can be collectively referred to as the firmware code FW, and the above-mentioned at least one software Codes (eg, the one or more software codes) may be collectively referred to as software codes SW. In addition, the read-only memory 221 may store the program code INI and additional program code (such as the third program code or the another program code) such as the program code IPL for initializing the random access memory 223 .

於另一實施例中,程式碼PG可另包含該額外的程式碼(例如該第三程式碼或該另一程式碼)諸如程式碼IPL,以供初始化隨機存取記憶體223。此外,處理器210可包含一內建的記憶體諸如一擴展隨機存取記憶體(Expanded Random Access Memory,可簡稱XRAM)211。處理器210可將程式碼IPL載入至擴展隨機存取記憶體211以執行程式碼IPL。 In another embodiment, the code PG may further include the additional code (eg, the third code or the other code) such as the code IPL for initializing the random access memory 223 . In addition, the processor 210 may include a built-in memory such as an expanded random access memory (Expanded Random Access Memory, which may be referred to as XRAM) 211. The processor 210 may load the program code IPL into the extended random access memory 211 to execute the program code IPL.

第2圖為依據本發明一實施例繪示之一種用來控制一電子裝置之方法之流程圖,其中該方法可應用於第1圖所示之電子系統,尤其,其內的電子裝置200。 FIG. 2 is a flowchart illustrating a method for controlling an electronic device according to an embodiment of the present invention. The method can be applied to the electronic system shown in FIG. 1 , especially the electronic device 200 therein.

在步驟S11中,因應電子裝置200被供電,處理器210可執行唯讀記憶體221中的一第一程式碼(例如程式碼INI)以初始化通訊介面電路222。 In step S11 , in response to the electronic device 200 being powered on, the processor 210 may execute a first program code (eg, program code INI) in the read-only memory 221 to initialize the communication interface circuit 222 .

在步驟S12中,處理器210可透過通訊介面電路222傳輸識別資訊IDI至一外部裝置(例如電子裝置100)。 In step S12, the processor 210 may transmit the identification information IDI to an external device (such as the electronic device 100) through the communication interface circuit 222.

在步驟S13中,處理器210可透過通訊介面電路222接收該外部裝置(例如電子裝置100)回應識別資訊IDI所傳送之一第二程式碼(例如程式碼PG)以供被儲存至隨機存取記憶體223。 In step S13, the processor 210 may receive a second program code (such as the program code PG) sent by the external device (such as the electronic device 100) in response to the identification information IDI through the communication interface circuit 222 for storage in the random access Memory 223.

在步驟S14中,處理器210可執行該第二程式碼(例如程式碼PG)以初始化影像感測器控制電路224及影像訊號處理器225。 In step S14, the processor 210 may execute the second program code (eg, program code PG) to initialize the image sensor control circuit 224 and the image signal processor 225.

為了便於理解,該第二程式碼(例如程式碼PG)可包含一韌體碼以及一軟體碼。舉例來說,該韌體碼可用以初始化影像感測器控制電路224及影像訊號處理器225,而該軟體碼用以啟動該作業系統。 For ease of understanding, the second program code (eg program code PG) may include a firmware code and a software code. For example, the firmware code can be used to initialize the image sensor control circuit 224 and the image signal processor 225, and the software code can be used to start the operating system.

為了更好地理解,該方法可用第2圖所示之工作流程來說明,但本發明不限於此。依據某些實施例,一個或多個步驟可於第2圖所示之工作流程中增加。舉例來說,該一個或多個步驟可包含:(1)在接收該第二程式碼之前,處理器210可透過通訊介面電路222接收該外部裝置(例如電子裝置100)所傳送之一第三程式碼以供被儲存至處理器210中的一記憶體;以及(2)處理器210可執行該第三程式碼以初始化隨機存取記憶體223;但本發明不限於此。依據某些實施例,該第三程式碼可預先被儲存於唯讀記憶體221中,而非透過通訊介面電路122及222從電子裝置100傳送至電子裝置200,其中處理器210可執行唯讀記憶體221中的該第三程式碼以初始化隨機存取記憶體223。 For better understanding, the method can be illustrated by the workflow shown in Figure 2, but the present invention is not limited thereto. According to some embodiments, one or more steps may be added to the workflow shown in Figure 2. For example, the one or more steps may include: (1) Before receiving the second program code, the processor 210 may receive a third message sent by the external device (such as the electronic device 100) through the communication interface circuit 222. The program code is to be stored in a memory in the processor 210; and (2) the processor 210 can execute the third program code to initialize the random access memory 223; but the invention is not limited thereto. According to some embodiments, the third program code can be pre-stored in the read-only memory 221 instead of being transmitted from the electronic device 100 to the electronic device 200 through the communication interface circuits 122 and 222, wherein the processor 210 can execute the read-only memory. The third program code in the memory 221 is used to initialize the random access memory 223 .

依據某些實施例,處理器210可執行該第一程式碼(例如程式碼INI)以檢測一硬體狀態,並據以決定是否傳輸識別資訊IDI至該外部裝置(例如電子裝置100)。舉例來說,上述檢測一硬體狀態可以是檢測一自舉式電路接腳的連接狀態。如果該自舉式電路接腳的連接狀態指出應當傳輸識別資訊IDI至該外部裝置時,處理器210透過通訊介面電路222傳輸識別資訊IDI至該外部裝置(例如電子裝置100);否則,就不傳輸識別資訊IDI至該外部裝置。該電子系統(例如電子裝置200)的製造商可以預先配置該自舉式電路接腳的連接狀態,尤其,控制該自舉式電路接腳的連接狀態是否等於一第一預定連接狀態以指出是否應當傳輸識別資訊IDI至該外部裝置。 According to some embodiments, the processor 210 can execute the first program code (eg, the program code INI) to detect a hardware status and determine whether to transmit the identification information IDI to the external device (eg, the electronic device 100). For example, detecting a hardware status may be detecting a connection status of a bootstrap circuit pin. If the connection status of the bootstrap circuit pin indicates that the identification information IDI should be transmitted to the external device, the processor 210 transmits the identification information IDI to the external device (such as the electronic device 100) through the communication interface circuit 222; otherwise, it does not Transmit identification information IDI to the external device. The manufacturer of the electronic system (such as the electronic device 200) can pre-configure the connection status of the bootstrap circuit pin. In particular, control whether the connection status of the bootstrap circuit pin is equal to a first predetermined connection status to indicate whether Identification information IDI should be transmitted to the external device.

第3圖為依據本發明一實施例繪示之一種用來控制一電子裝置之方 法之流程圖,其中該方法可應用於第1圖所示之電子系統,尤其,其內的電子裝置100。舉例來說,在進入步驟S22以前,該第二處理器諸如處理器210可執行該第一程式碼諸如程式碼INI以初始化通訊介面電路222。 Figure 3 illustrates a method for controlling an electronic device according to an embodiment of the present invention. A flow chart of a method, wherein the method can be applied to the electronic system shown in FIG. 1 , in particular, the electronic device 100 therein. For example, before entering step S22, the second processor such as the processor 210 may execute the first program code such as the program code INI to initialize the communication interface circuit 222.

在步驟S22中,該第一處理器諸如處理器110透過通訊介面電路122從該另一電子裝置諸如電子裝置200接收識別資訊IDI。 In step S22 , the first processor such as the processor 110 receives the identification information IDI from the other electronic device such as the electronic device 200 through the communication interface circuit 122 .

在步驟S23中,回應於識別資訊IDI,該第一處理器諸如處理器110可透過通訊介面電路122傳送至少一程式碼諸如程式碼PG至該另一電子裝置諸如電子裝置200以供被儲存至隨機存取記憶體223並且在該另一電子裝置200收到該至少一程式碼後使該第二處理器210執行該至少一程式碼以初始化影像感測器控制電路224及影像訊號處理器225。 In step S23, in response to the identification information IDI, the first processor such as the processor 110 may send at least one program code such as the program code PG to the other electronic device such as the electronic device 200 through the communication interface circuit 122 for being stored in The random access memory 223 causes the second processor 210 to execute the at least one program code to initialize the image sensor control circuit 224 and the image signal processor 225 after the other electronic device 200 receives the at least one program code. .

為了便於理解,該至少一程式碼(例如程式碼PG)可包含一韌體碼諸如上述之至少一韌體碼、以及一軟體碼諸如上述之至少一軟體碼。舉例來說,該韌體碼可用以初始化影像感測器控制電路224及影像訊號處理器225,而該軟體碼用以啟動該作業系統。 For ease of understanding, the at least one program code (eg, program code PG) may include a firmware code such as the above-mentioned at least one firmware code, and a software code such as the above-mentioned at least one software code. For example, the firmware code can be used to initialize the image sensor control circuit 224 and the image signal processor 225, and the software code can be used to start the operating system.

為了更好地理解,該方法可用第3圖所示之工作流程來說明,但本發明不限於此。依據某些實施例,一個或多個步驟可於第3圖所示之工作流程中增加。舉例來說,該一個或多個步驟可包含:(1)在傳送該至少一程式碼之前,該第一處理器諸如處理器110可透過通訊介面電路122傳送另一程式碼至該另一電子裝置諸如電子裝置200以供被儲存至該第二處理器(例如處理器210)中的一記憶體;以及(2)在該電子裝置200收到該另一程式碼後使該第二處理器諸如處理器210執行該另一程式碼以初始化隨機存取記憶體223;但本發明不限於此。依據某些實施例,該另一程式碼可預先被儲存於唯讀記憶體221中,而非透過通訊介面電路122及222從電子裝置100傳送至電子裝置200, 其中處理器110可利用處理器210執行唯讀記憶體221中的該另一程式碼以初始化隨機存取記憶體223。 For better understanding, the method can be illustrated by the workflow shown in Figure 3, but the present invention is not limited thereto. According to some embodiments, one or more steps may be added to the workflow shown in Figure 3. For example, the one or more steps may include: (1) Before transmitting the at least one program code, the first processor such as the processor 110 may transmit another program code to the other electronic device through the communication interface circuit 122 A device such as the electronic device 200 for being stored in a memory in the second processor (eg, the processor 210); and (2) causing the second processor after the electronic device 200 receives the other program code. For example, the processor 210 executes the other program code to initialize the random access memory 223; but the invention is not limited thereto. According to some embodiments, the other program code may be pre-stored in the read-only memory 221 instead of being transmitted from the electronic device 100 to the electronic device 200 through the communication interface circuits 122 and 222. The processor 110 can use the processor 210 to execute the other program code in the read-only memory 221 to initialize the random access memory 223.

第4圖為依據本發明一實施例繪示之第2圖所示之方法的實施細節。 Figure 4 illustrates implementation details of the method shown in Figure 2 according to an embodiment of the present invention.

在步驟S31中,因應電子裝置200被供電,處理器210可執行唯讀記憶體221中的程式碼INI以初始化通訊介面電路222。 In step S31, in response to the electronic device 200 being powered on, the processor 210 can execute the program code INI in the read-only memory 221 to initialize the communication interface circuit 222.

在步驟S32中,處理器210可透過通訊介面電路222傳輸識別資訊IDI至該外部裝置(例如電子裝置100)。 In step S32, the processor 210 may transmit the identification information IDI to the external device (eg, the electronic device 100) through the communication interface circuit 222.

在步驟S33中,處理器210可執行唯讀記憶體221中的程式碼IPL以初始化隨機存取記憶體223。 In step S33 , the processor 210 may execute the program code IPL in the read-only memory 221 to initialize the random access memory 223 .

在步驟S34中,處理器210可透過通訊介面電路222接收該外部裝置(例如電子裝置100)回應識別資訊IDI所傳送之韌體碼FW及軟體碼SW以供被儲存至隨機存取記憶體223。 In step S34, the processor 210 may receive the firmware code FW and the software code SW sent by the external device (such as the electronic device 100) in response to the identification information IDI through the communication interface circuit 222 for storage in the random access memory 223. .

在步驟S35中,處理器210可執行韌體碼FW以初始化影像感測器控制電路224及影像訊號處理器225。 In step S35, the processor 210 may execute the firmware code FW to initialize the image sensor control circuit 224 and the image signal processor 225.

在步驟S36中,處理器210可執行軟體碼SW以啟動該作業系統。 In step S36, the processor 210 can execute the software code SW to start the operating system.

第5圖為依據本發明一實施例繪示之第3圖所示之方法的實施細節。舉例來說,該第二處理器諸如處理器210可在進入步驟S42以前執行程式碼INI以初始化通訊介面電路222,且在進入步驟S44以前執行程式碼IPL以初始化隨機存取記憶體223。 Figure 5 illustrates implementation details of the method shown in Figure 3 according to an embodiment of the present invention. For example, the second processor such as the processor 210 may execute the program code INI to initialize the communication interface circuit 222 before entering step S42, and execute the program code IPL to initialize the random access memory 223 before entering step S44.

在步驟S42中,該第一處理器諸如處理器110透過通訊介面電路122從該另一電子裝置諸如電子裝置200接收識別資訊IDI。 In step S42, the first processor such as the processor 110 receives the identification information IDI from the other electronic device such as the electronic device 200 through the communication interface circuit 122.

在步驟S44中,回應於識別資訊IDI,該第一處理器諸如處理器110可透過通訊介面電路122傳送韌體碼FW及軟體碼SW至該另一電子裝置諸如電子裝置200以儲存至隨機存取記憶體223並且在該另一電子裝置200收到韌體碼FW 後使該第二處理器210執行韌體碼FW以初始化影像感測器控制電路224及影像訊號處理器225以及在該另一電子裝置200收到軟體碼SW後使該第二處理器210執行軟體碼SW以啟動該作業系統。 In step S44, in response to the identification information IDI, the first processor such as the processor 110 may transmit the firmware code FW and the software code SW to the other electronic device such as the electronic device 200 through the communication interface circuit 122 for storage in the random access memory. The memory 223 is retrieved and the firmware code FW is received in the other electronic device 200 The second processor 210 is then caused to execute the firmware code FW to initialize the image sensor control circuit 224 and the image signal processor 225, and after the other electronic device 200 receives the software code SW, the second processor 210 is caused to execute Software code SW to start the operating system.

第6圖為依據本發明另一實施例繪示之第2圖所示之方法的實施細節。 Figure 6 illustrates implementation details of the method shown in Figure 2 according to another embodiment of the present invention.

在步驟S51中,因應電子裝置200被供電,處理器210可執行唯讀記憶體221中的程式碼INI以初始化通訊介面電路222。 In step S51, in response to the electronic device 200 being powered on, the processor 210 can execute the program code INI in the read-only memory 221 to initialize the communication interface circuit 222.

在步驟S52中,處理器210可透過通訊介面電路222傳輸識別資訊IDI至該外部裝置(例如電子裝置100)。 In step S52, the processor 210 may transmit the identification information IDI to the external device (eg, the electronic device 100) through the communication interface circuit 222.

在步驟S53中,處理器210可透過通訊介面電路222接收該外部裝置(例如電子裝置100)所傳送之程式碼IPL以供被儲存至處理器210中的一記憶體(例如擴展隨機存取記憶體211)。 In step S53, the processor 210 may receive the program code IPL sent by the external device (eg, the electronic device 100) through the communication interface circuit 222 for being stored in a memory (eg, extended random access memory) in the processor 210. Body 211).

在步驟S54中,處理器210可執行程式碼IPL以初始化隨機存取記憶體223。 In step S54, the processor 210 may execute the program code IPL to initialize the random access memory 223.

在步驟S55中,處理器210可透過通訊介面電路222接收該外部裝置(例如電子裝置100)回應識別資訊IDI所傳送之韌體碼FW及軟體碼SW以供被儲存至隨機存取記憶體223。 In step S55 , the processor 210 may receive the firmware code FW and software code SW sent by the external device (such as the electronic device 100 ) in response to the identification information IDI through the communication interface circuit 222 for storage in the random access memory 223 .

在步驟S56中,處理器210可執行韌體碼FW以初始化影像感測器控制電路224及影像訊號處理器225。 In step S56, the processor 210 may execute the firmware code FW to initialize the image sensor control circuit 224 and the image signal processor 225.

在步驟S57中,處理器210可執行軟體碼SW以啟動該作業系統。 In step S57, the processor 210 may execute the software code SW to start the operating system.

第7圖為依據本發明另一實施例繪示之第3圖所示之方法的實施細節。舉例來說,該第二處理器諸如處理器210可在進入步驟S62以前執行程式碼INI以初始化通訊介面電路222,且在進入步驟S65以前執行程式碼IPL以初始化隨機存取記憶體223。 FIG. 7 illustrates implementation details of the method shown in FIG. 3 according to another embodiment of the present invention. For example, the second processor such as the processor 210 may execute the program code INI to initialize the communication interface circuit 222 before entering step S62, and execute the program code IPL to initialize the random access memory 223 before entering step S65.

在步驟S62中,該第一處理器諸如處理器110透過通訊介面電路122從該另一電子裝置諸如電子裝置200接收識別資訊IDI。 In step S62, the first processor such as the processor 110 receives the identification information IDI from the other electronic device such as the electronic device 200 through the communication interface circuit 122.

在步驟S63中,該第一處理器諸如處理器110可透過通訊介面電路122傳送程式碼IPL至該另一電子裝置諸如電子裝置200以供被儲存至該第二處理器諸如處理器210中的該記憶體(例如擴展隨機存取記憶體211)並且在該另一電子裝置200收到程式碼IPL後使該第二處理器210執行程式碼IPL以初始化隨機存取記憶體223。 In step S63, the first processor such as the processor 110 may transmit the program code IPL to the other electronic device such as the electronic device 200 through the communication interface circuit 122 for storage in the second processor such as the processor 210. The memory (eg, extended random access memory 211) causes the second processor 210 to execute the program code IPL to initialize the random access memory 223 after the other electronic device 200 receives the program code IPL.

在步驟S65中,回應於識別資訊IDI,該第一處理器諸如處理器110可透過通訊介面電路122傳送韌體碼FW及軟體碼SW至該另一電子裝置諸如電子裝置200以儲存至隨機存取記憶體223並且在該另一電子裝置200收到韌體碼FW後使該第二處理器210執行韌體碼FW以初始化影像感測器控制電路224及影像訊號處理器225以及在該另一電子裝置200收到軟體碼SW後使該第二處理器210執行軟體碼SW以啟動該作業系統。 In step S65, in response to the identification information IDI, the first processor such as the processor 110 may transmit the firmware code FW and the software code SW to the other electronic device such as the electronic device 200 through the communication interface circuit 122 for storage in the random access memory. The memory 223 is obtained and after the other electronic device 200 receives the firmware code FW, the second processor 210 executes the firmware code FW to initialize the image sensor control circuit 224 and the image signal processor 225 and in the other electronic device 200 After receiving the software code SW, an electronic device 200 causes the second processor 210 to execute the software code SW to start the operating system.

依據以上實施例,本發明的方法能妥善管理程式碼的儲存以確保電子裝置之正常操作。另外,本發明的方法能節省電子裝置的硬體資源及相關成本,尤其,能避免設置用以預先儲存該至少一韌體碼及該至少一軟體碼之任何非揮發性儲存元件。於是,相關成本可對應地減少。相較於相關技術,本發明的方法能在沒有副作用或較不可能帶來副作用之狀況下實現精巧且可靠的電子裝置。 According to the above embodiments, the method of the present invention can properly manage the storage of program codes to ensure the normal operation of the electronic device. In addition, the method of the present invention can save hardware resources and related costs of the electronic device. In particular, it can avoid setting any non-volatile storage element for pre-stored at least one firmware code and at least one software code. As a result, the associated costs can be reduced accordingly. Compared with related technologies, the method of the present invention can realize a compact and reliable electronic device without side effects or with less possibility of side effects.

以上所述僅為本發明之較佳實施例,凡依本發明申請專利範圍所做之均等變化與修飾,皆應屬本發明之涵蓋範圍。 The above are only preferred embodiments of the present invention, and all equivalent changes and modifications made in accordance with the patentable scope of the present invention shall fall within the scope of the present invention.

S11~S14:步驟 S11~S14: Steps

Claims (8)

一種用來控制一電子裝置之方法,該電子裝置包含一處理器、一唯讀記憶體、一隨機存取記憶體、一影像感測器控制電路、一影像訊號處理器、以及一通訊介面電路,該方法包含:因應該電子裝置被供電,該處理器執行該唯讀記憶體中的一第一程式碼以初始化該通訊介面電路;透過該通訊介面電路傳輸一識別資訊至一外部裝置;透過該通訊介面電路接收該外部裝置回應該識別資訊所傳送之一第二程式碼以儲存至該隨機存取記憶體;以及該處理器執行該第二程式碼以初始化該影像感測器控制電路及該影像訊號處理器;其中該處理器執行該第一程式碼以檢測一硬體狀態,並據以決定是否傳輸該識別資訊至該外部裝置。 A method for controlling an electronic device. The electronic device includes a processor, a read-only memory, a random access memory, an image sensor control circuit, an image signal processor, and a communication interface circuit. , the method includes: in response to the electronic device being powered, the processor executes a first program code in the read-only memory to initialize the communication interface circuit; transmits identification information to an external device through the communication interface circuit; The communication interface circuit receives a second program code sent by the external device in response to the identification information to store in the random access memory; and the processor executes the second program code to initialize the image sensor control circuit and The image signal processor; wherein the processor executes the first program code to detect a hardware status and determines whether to transmit the identification information to the external device accordingly. 如申請專利範圍第1項所述之方法,其中該第二程式碼包含一韌體碼及一軟體碼,該韌體碼用以初始化該影像感測器控制電路及該影像訊號處理器,而該軟體碼用以啟動一作業系統。 For the method described in item 1 of the patent application, the second program code includes a firmware code and a software code, the firmware code is used to initialize the image sensor control circuit and the image signal processor, and The software code is used to start an operating system. 如申請專利範圍第1項所述之方法,其中該檢測一硬體狀態係為檢測一自舉式電路接腳的連接狀態。 For the method described in item 1 of the patent application, the detection of a hardware status is to detect the connection status of a bootstrap circuit pin. 如申請專利範圍第1項所述之方法,更包含:在接收該第二程式碼之前,透過該通訊介面電路接收該外部裝置所傳送之一第三程式碼以儲存至該處理器中的一記憶體;以及 該處理器執行該第三程式碼以初始化該隨機存取記憶體。 The method described in item 1 of the patent application further includes: before receiving the second program code, receiving a third program code sent by the external device through the communication interface circuit to store it in a memory; and The processor executes the third program code to initialize the random access memory. 如申請專利範圍第1項所述之方法,其中該通訊介面電路係為一通用序列匯流排電路。 For the method described in item 1 of the patent application, the communication interface circuit is a universal serial bus circuit. 一種用來控制一電子裝置之方法,該電子裝置包含一第一處理器以及一通訊介面電路,另一電子裝置包含一第二處理器、一隨機存取記憶體、一影像感測器控制電路以及一影像訊號處理器,該方法包含:透過該通訊介面電路從該另一電子裝置接收一識別資訊,並且在傳送至少一程式碼至該另一電子裝置之前,透過該通訊介面電路傳送另一程式碼至該另一電子裝置以儲存至該第二處理器中的一記憶體並使該第二處理器執行該另一程式碼以初始化該隨機存取記憶體;以及回應於該識別資訊,透過該通訊介面電路傳送該至少一程式碼至該另一電子裝置以儲存至該隨機存取記憶體並使該第二處理器執行該至少一程式碼以初始化該影像感測器控制電路及該影像訊號處理器。 A method for controlling an electronic device. The electronic device includes a first processor and a communication interface circuit. The other electronic device includes a second processor, a random access memory, and an image sensor control circuit. and an image signal processor. The method includes: receiving identification information from the other electronic device through the communication interface circuit, and before transmitting at least one program code to the other electronic device, transmitting another program code through the communication interface circuit. program code to the other electronic device to store in a memory in the second processor and cause the second processor to execute the other program code to initialize the random access memory; and in response to the identification information, Transmitting the at least one program code to the other electronic device through the communication interface circuit to store in the random access memory and causing the second processor to execute the at least one program code to initialize the image sensor control circuit and the Image signal processor. 如申請專利範圍第6項所述之方法,其中該至少一程式碼包含一韌體碼及一軟體碼,該韌體碼用以初始化該影像感測器控制電路及該影像訊號處理器,而該軟體碼用以啟動一作業系統。 The method described in Item 6 of the patent application, wherein the at least one program code includes a firmware code and a software code, the firmware code is used to initialize the image sensor control circuit and the image signal processor, and The software code is used to start an operating system. 如申請專利範圍第6項所述之方法,其中該通訊介面電路係為一通用序列匯流排電路。 For the method described in item 6 of the patent application, the communication interface circuit is a universal serial bus circuit.
TW110145394A 2021-12-06 2021-12-06 Method for controlling electronic device TWI819424B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW110145394A TWI819424B (en) 2021-12-06 2021-12-06 Method for controlling electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW110145394A TWI819424B (en) 2021-12-06 2021-12-06 Method for controlling electronic device

Publications (2)

Publication Number Publication Date
TW202324118A TW202324118A (en) 2023-06-16
TWI819424B true TWI819424B (en) 2023-10-21

Family

ID=87803631

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110145394A TWI819424B (en) 2021-12-06 2021-12-06 Method for controlling electronic device

Country Status (1)

Country Link
TW (1) TWI819424B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWM440483U (en) * 2012-03-23 2012-11-01 Feature Integration Technology Inc System external BIOS booting, bridge device and integrated chipset
TW201411356A (en) * 2012-09-07 2014-03-16 Apple Inc Accessory booting over USB
TW201519093A (en) * 2013-11-01 2015-05-16 Silicon Motion Inc Firmware loading system and firmware loading method
US20190258807A1 (en) * 2017-09-26 2019-08-22 Mcs2, Llc Automated adjusting of devices
TW202117539A (en) * 2019-10-28 2021-05-01 瑞昱半導體股份有限公司 Cloud deployment boot image electronic device, boot image cloud deployment system and method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWM440483U (en) * 2012-03-23 2012-11-01 Feature Integration Technology Inc System external BIOS booting, bridge device and integrated chipset
TW201411356A (en) * 2012-09-07 2014-03-16 Apple Inc Accessory booting over USB
TW201519093A (en) * 2013-11-01 2015-05-16 Silicon Motion Inc Firmware loading system and firmware loading method
US20190258807A1 (en) * 2017-09-26 2019-08-22 Mcs2, Llc Automated adjusting of devices
TW202117539A (en) * 2019-10-28 2021-05-01 瑞昱半導體股份有限公司 Cloud deployment boot image electronic device, boot image cloud deployment system and method thereof

Also Published As

Publication number Publication date
TW202324118A (en) 2023-06-16

Similar Documents

Publication Publication Date Title
EP3736660A1 (en) Foldable device and method for controlling image capturing by using plurality of cameras
JP5837535B2 (en) Mobile phone terminal, data transmission method
US9615133B2 (en) Control module of multimedia device and method for controlling multimedia device to generate image data required by display module
CN109429102B (en) Electronic device and server for displaying applications
US20170263206A1 (en) Electronic device and method for driving display thereof
US9727507B2 (en) USB device remote control method and system
US11514831B2 (en) Electronic device and method for controlling storage of content displayed on display panel
US9239724B2 (en) Computer device and boot method thereof
US11086635B2 (en) Electronic device, method for controlling electronic device, and program
WO2019192244A1 (en) Parameter configuration method and device, and display device
US11158230B2 (en) Method for adaptively controlling low power display mode and electronic device thereof
US20170006224A1 (en) Camera operating method and electronic device implementing the same
US8161201B2 (en) Methods and system for configuring a peripheral device with an information handling system
TWI819424B (en) Method for controlling electronic device
US20210240434A1 (en) Electronic device and volume adjustment method of electronic device
US10796398B2 (en) Electronic device for displaying image and method for controlling the same
US7675545B2 (en) Camera module having image processing procedure and method for integrating the same with host
US11989566B2 (en) Method for controlling electronic device
US20040221151A1 (en) Information processing system including communication-enabled information processing device equipped with no user interface and a method of control thereof
CN111176738B (en) Display card display method and system of UEFI mode and related components thereof
KR101262539B1 (en) Method for controlling usb terminal and apparatus for performing the same
CN114175136A (en) Electronic device for controlling brightness and method for controlling brightness thereof
CN113467729B (en) Electronic device and multi-screen display method
US11188227B2 (en) Electronic device and key input method therefor
KR100247285B1 (en) Apparatus for removing false operation using power swith in camera method