PART I: COMPUTER ARCHITECTURE
1. (10 pts) Wearable computing devices are very popular nowadays. One news articles says that an airline company is testing a new system where airline workers and gate agents use wearable devices such as Google Glass to streamline the check-in process for passengers. As illustrated in the picture below, the gate agent wears Google Glass. The Google Glass may recognize the person in front of her and tell her about this person, even without looking at his passport.
(原題附圖:gate agent 戴 Google Glass 的照片,與「How Google Glass works」構造圖,標有 Battery、CPU (incl. GPS)、Camera (video / photo)、Speakers (phone)、Micro (phone)、Prism (visual overlay))
Assume that you are going to design the system. Please answer the following questions:
a. [5%] Draw the diagram for the computer architecture of Google Glass. The diagram should include the components in the picture and perhaps some other components not showing in the picture. The diagram should illustrate the connections between the components. Discuss the requirements of the Google Glass in this specific application and present your choice of the components, including CPU, memory, storage, etc.
b. [5%] Do you think that Google Glass can accomplish the job alone? Actually, Google Glass needs to work with a server to recognize the person and retrieve information. Please draw the diagram for the system infrastructure. The diagram should include the hardware and software components involved in the operation. Describe how the system works.
a. 需求(check-in 人臉辨識):
① 低功耗、輕:戴在頭上,電池小(約 600–800 mAh)、散熱只能靠被動,SoC 整體只能 1–2 W 等級 ② 低延遲:看到人到顯示資訊要在 1–2 秒內 ③ 要連網:資料量(人臉資料庫、旅客資料)放不進眼鏡,要靠 Wi-Fi/手機的 LTE ④ 感測:camera、麥克風、GPS/IMU,輸出:prism 顯示、喇叭
元件選擇:CPU 雙核 ARM 低功耗核心(約 1–1.5 GHz,要跑 OS、通訊、控制,不做重運算);GPU/ISP/video codec 在同一顆 SoC 內,camera 影像直接做前處理與 H.264 編碼;DRAM LPDDR 1–2 GB(放 frame buffer 與程式);Flash 16–32 GB(OS、app,少量暫存);Wi-Fi/Bluetooth 內建,LTE 透過手機;PMIC 做 DVFS、power gating,沒事就 standby
b. Glass 自己做不來:旅客臉部特徵與航班資料庫很大(上百萬筆),辨識需要 GPU 等級的運算、也要集中管理與更新,電池與散熱都撐不住;所以 Glass 只負責擷取與前處理,辨識交給 server
運作:① Glass 擷取影像,在本機偵測人臉、裁切、壓縮(只送臉部或特徵,降低傳輸量)② 經 TLS 加密,由 Wi-Fi/LTE 送到 server 的 API gateway(認證、load balancer、audit log)③ 人臉辨識 service 在特徵 DB 找最像的 → 旅客 service 用身分查航班、護照等資料 ④ 只把最少必要資訊(姓名、航班、座位、是否需要注意)回傳,顯示在 prism、必要時喇叭念出 ⑤ 每個 request 有 timeout,失敗重試;server 端 replication 保持可用
a. 低功耗雙核 ARM SoC(含 GPU/ISP/codec)+LPDDR+Flash+Wi-Fi,電源管理做 DVFS; b. 不能獨立完成,Glass 做擷取與前處理,server 做人臉辨識與資料查詢