多元物聯網智慧應用時代下的開源策略 (the open source strategy for the versatile iot...

18
Note: The Copyrights of the referenced materials and photos go to its original authors. As a result, this slide is for internal reference only. For the contents created in this document, the Copyright belongs to William W.-Y. Liang. © 2005-2015 All Rights Reserved. Note: The Copyrights of the referenced materials and photos go to their original authors. As a result, this slide is for non-commercial reference only. For the contents created in this document, the Copyright belongs to William W.-Y. Liang. © 2005-2015 All Rights Reserved. 多元物聯網智慧應用時代下的開源策略 The Open Source Strategy for the Versatile IoT and Smart Applications Era William W.-Y. Liang (梁文耀), Ph. D. http://www.ntut.edu.tw/~wyliang 炬力科技 (Actions Semiconductors ) 顧問 XApp-Le 開源社群開發者&貢獻者 本投影片第一次發表於 2015 台北國際電子展 穿戴式裝置智慧加值 應用國際論壇, This talk was first given to the International Forum of Smart Wearable Device Application in the 41st Taipei International Electronics Show (TAITRONICS) on Oct. 7 th , 2015

Upload: william-liang

Post on 08-Jan-2017

2.647 views

Category:

Software


6 download

TRANSCRIPT

Page 1: 多元物聯網智慧應用時代下的開源策略 (The Open Source Strategy for the Versatile IoT and Smart Applications Era)

Note: The Copyrights of the referenced materials and photos go to its original authors. As a result, this slide is for internal reference only.

For the contents created in this document, the Copyright belongs to William W.-Y. Liang. © 2005-2015 All Rights Reserved.

Note: The Copyrights of the referenced materials and photos go to their original authors. As a result, this slide is for non-commercial reference only.

For the contents created in this document, the Copyright belongs to William W.-Y. Liang. © 2005-2015 All Rights Reserved.

多元物聯網智慧應用時代下的開源策略† The Open Source Strategy for the Versatile IoT and Smart Applications Era

William W.-Y. Liang (梁文耀), Ph. D. http://www.ntut.edu.tw/~wyliang

炬力科技 (Actions Semiconductors ) 顧問 XApp-Le 開源社群開發者&貢獻者

†本投影片第一次發表於 2015 台北國際電子展 穿戴式裝置智慧加值應用國際論壇, This talk was first given to the International Forum of Smart Wearable Device Application in the 41st Taipei International Electronics Show (TAITRONICS) on Oct. 7th, 2015

Page 2: 多元物聯網智慧應用時代下的開源策略 (The Open Source Strategy for the Versatile IoT and Smart Applications Era)

© 2015 William W.-Y. Liang, All Rights Reserved.

智慧應用的四大組成 TICS

智慧終端 (Terminal)

使用者資訊擷取與控制平台

物聯網 (IoT)

數據傳遞:無線感測網路、

互聯網、數據通訊網

雲端運算 (Cloud)

資料分析:巨量資料、智慧分析

感測裝置 (Sensor Devices)

數據擷取:個人資訊、家庭資訊、環境資訊

2 Open Source Strategy for IoT

http://edition.cnn.com/2013/05/02/travel/london-city-airport-internet-of-things/

何謂智慧應用裝置的演進 1. 嵌入式系統:電子裝置+處理器+軟體 2. 智慧裝置:嵌入式系統+通訊機制+感測/控制 3. 智慧應用:智慧裝置+創新應用+雲端運算

Page 3: 多元物聯網智慧應用時代下的開源策略 (The Open Source Strategy for the Versatile IoT and Smart Applications Era)

© 2015 William W.-Y. Liang, All Rights Reserved.

智慧裝置應用場域

3 Open Source Strategy for IoT

http://www.greenpeak.com/Application/ResidentialApps.html

http://www.nexcom.com.tw/news/detail/digital-signage-responds-to-its-audience

智慧應用創新的靈感通常源自於實際的生活經驗

Page 4: 多元物聯網智慧應用時代下的開源策略 (The Open Source Strategy for the Versatile IoT and Smart Applications Era)

© 2015 William W.-Y. Liang, All Rights Reserved.

智慧裝置應用場域 (續)

4 Open Source Strategy for IoT

http://hunterkirk.livejournal.com/702857.html

http://igyaan.in/2012/01/20344/autogyaan-mercedes-

benz-futuristic-dice-dashboard-concept/

http://www.technologyreview.com/photogallery/427652/building-tesla/ http://www.forcesofgeek.com/2012/07/sdcc-exclusive-limited-i-

robot-3d-blu.html

Page 5: 多元物聯網智慧應用時代下的開源策略 (The Open Source Strategy for the Versatile IoT and Smart Applications Era)

© 2015 William W.-Y. Liang, All Rights Reserved.

智慧應用整體架構日趨複雜與多樣化

低複雜度運算(感測前端)

資料收集、資料前處理、裝置間通訊

中複雜度運算(使用者終端)

語音辨識、人臉偵測、多媒體與UI處理

高複雜度運算(雲端智能分析)

語意分析、影像辨識、感測資料處理、使用者

行為預測、商業需求分析、科學計算、人工智慧

5 Open Source Strategy for IoT

http://www.scientificamerican.com/article.cfm?i

d=yahoo-supercomputer-google-open-source

NVIDIA_CES14_FINAL_published

如何解決複雜軟體平台問題? 站在開源軟體巨人的肩膀上!

https://en.wikipedia.org/wiki/Watson_(co

mputer)#/media/File:IBM_Watson.PNG

Page 6: 多元物聯網智慧應用時代下的開源策略 (The Open Source Strategy for the Versatile IoT and Smart Applications Era)

© 2015 William W.-Y. Liang, All Rights Reserved.

作業系統與其開源趨勢

6 Open Source Strategy for IoT

& Brillo

http://m.eettaiwan.com/ART_8800697488_676964_NT_57e14b60_2.HTM

感測端: e.g., TinyOS, mbed OS, Brillo, other RTOS, Linux

終端: e.g., Android, iOS, Linux, Web-based OS, Windows

雲端: e.g., Linux, Unix

作業系統之外的其他知名開源專案:Chromium, Firefox, PHP, Python, Apache Web Server, Eclipse, Gimp, Emacs, Vim, etc.

Page 7: 多元物聯網智慧應用時代下的開源策略 (The Open Source Strategy for the Versatile IoT and Smart Applications Era)

© 2015 William W.-Y. Liang, All Rights Reserved.

開源軟體與開放平台發展趨勢

吸引開發者,拓展更多商機。

在多樣化 IoT 的時代更顯得重要!

7 Open Source Strategy for IoT

開源軟體 開放平台

Maker 創客世代來臨

http://en.wikipedia.org/wiki/Mbed_microcontroller

http://en.wikipedia.org/wiki/Raspberry_Pi

http://en.wikipedia.org/wiki/Arduino

http://www.intel.com.tw/content/ww

w/tw/zh/do-it-yourself/edison.html

http://www.actduino.org/?lang=zh-hans

Page 8: 多元物聯網智慧應用時代下的開源策略 (The Open Source Strategy for the Versatile IoT and Smart Applications Era)

© 2015 William W.-Y. Liang, All Rights Reserved.

多元化物聯網時代的挑戰與策略

挑戰:少量多樣

晶片廠與系統廠傳統客戶支持模式受到挑戰,無法支撐為數眾多但產品量少的客戶

解決方案 (Solution) 模式無法滿足來自客戶多樣化產品設計需求

對策與方法

以主流開源專案運行方式支持開源社群

透過開源社群,眾多少量多樣的創客型客戶可以更容易獲得相關資源以滿足其需求,同時成為社群的一份子

8 Open Source Strategy for IoT

http://4.bp.blogspot.com/-R9vN24PYFeY/UdBigAZRscI/

AAAAAAAAAX8/BosVHS-pOps/s730/internet-of-things.png

Page 9: 多元物聯網智慧應用時代下的開源策略 (The Open Source Strategy for the Versatile IoT and Smart Applications Era)

© 2015 William W.-Y. Liang, All Rights Reserved.

創客與社群

多元創客的特質與需求

創客本身為即為應用開發者,

通常具備自我解決多數問題的能力

創客的需求:充分且公開的資源

持續維護的源碼與相關文件

不斷增加的周邊支援

開源社群優點

熱情的社群參與者激發更多創造力

開源分享的力量共同討論解決問題並成為開放知識庫

高手們的參與協助持續改善源碼品質

9 Open Source Strategy for IoT

開源社群的特性與組成 通常是非營利組織 主要由貢獻者組成

系統層開發者 應用層開發者

開源人的特質 熱情、自由、普遍具備較佳的創造力 主動、積極、具深入探究技術的能力

Page 10: 多元物聯網智慧應用時代下的開源策略 (The Open Source Strategy for the Versatile IoT and Smart Applications Era)

© 2015 William W.-Y. Liang, All Rights Reserved.

源碼庫的釋出準則

符合如 Linux kernel 的源碼架構

Coding style、source tree structure、

data structure、implementation methods

以貢獻至上游源碼庫(upstream)為目標

明確遵循 GPL 與其他授權條款 (后述)

由開發者及貢獻者主導社群,晶片或系統廠為支持者角色

10 Open Source Strategy for IoT

Page 11: 多元物聯網智慧應用時代下的開源策略 (The Open Source Strategy for the Versatile IoT and Smart Applications Era)

© 2015 William W.-Y. Liang, All Rights Reserved.

授權議題的處理原則

GPL 相關部分必須開放

其他部分能開放盡量開放

閉源而以 binary 呈現的部分,

於不違反 GPL 的前提下,應具備

合理再散播之授權條款 (如 MIT 或 BSD Licenses)

11 Open Source Strategy for IoT

認識 GPL 開源 ≠ GPL (General Public License) 強制開源的時機:GPL 軟體重新散佈(redistribution)時 GPL 的感染性

直接修改 GPL 源碼或靜態連結時必然發生 動態連結 (.so & .ko)則需由衍生作品角度來判定

正確運用 GPL:適當拿捏開源與閉源可兼顧開放與保護的目的 GPL 塑造了開源巨人,讓我們可站在其肩膀向前大步邁進!

Page 12: 多元物聯網智慧應用時代下的開源策略 (The Open Source Strategy for the Versatile IoT and Smart Applications Era)

© 2015 William W.-Y. Liang, All Rights Reserved.

完整的開源社群運作必須具備的基本條件

除源碼庫本身之外,還應具備:

積極參與的開發者活力

適度開發與審核流程品質

能持續改善並定期釋出信賴

充足的交流園地

源碼庫:e.g. github, bitbucket

開源文件協作:e.g. Wiki

成果交換園地:e.g. cloud space

論壇:e.g. forum, mailing list

12 Open Source Strategy for IoT

Page 13: 多元物聯網智慧應用時代下的開源策略 (The Open Source Strategy for the Versatile IoT and Smart Applications Era)

© 2015 William W.-Y. Liang, All Rights Reserved.

廠商的角度:貢獻源碼 (Upstreaming) 的優點

Upstream 源碼

將源碼貢獻回開源源碼庫

一旦開源社群審核並接受 之後,

開發者將持續為該源碼進行維護。

以 Linux Kernel 為例,其優點包括:

較佳品質:被維護的驅動程式可能被開發者 (Kernel

Hackers) 改得更好

持續維護:如果原廠不再維護或開發人員離職時, 該驅動程式可以持續被維護及更新 (特別是對新版本的跟進)

對廠商來說,事實上可降低成本,亦可延長硬體銷售期。

提升公司能見度與 Credit

13 Open Source Strategy for IoT

對開源的擔心與戒心並沒有必要 鼓勵開源 ≠ 全面開源 源碼可開放,被複製,但軟

體價值與差異化關鍵在設計者的創作靈感與對核心軟體技術的掌握度

Page 14: 多元物聯網智慧應用時代下的開源策略 (The Open Source Strategy for the Versatile IoT and Smart Applications Era)

© 2015 William W.-Y. Liang, All Rights Reserved.

關於 Xapp-Le 開源社群

Xapp-Le is an open-source community

targeting at the SoCs of Actions

Semiconductors Co., Ltd.

Xapp-Le is an acronym of

Actions (represented by X) APplication Processors with Linux

Embedded.

Purpose: Provide a popular and formal way for developers,

users or companies to apply the Linux-based open sources on

the Actions-Semi SoC's.

Goal: Be a central place for the core Linux related resources,

including the kernel and u-boot, etc.

14 Open Source Strategy for IoT

Xapp-Le 以服務全球開發者為目標,故以全英文方式寫作文件。

Page 15: 多元物聯網智慧應用時代下的開源策略 (The Open Source Strategy for the Versatile IoT and Smart Applications Era)

© 2015 William W.-Y. Liang, All Rights Reserved.

Xapp-Le 社群的關係圖

15 Open Source Strategy for IoT

Page 16: 多元物聯網智慧應用時代下的開源策略 (The Open Source Strategy for the Versatile IoT and Smart Applications Era)

© 2015 William W.-Y. Liang, All Rights Reserved.

Xapp-Le 社群準備現況

社群首頁

http://linux-xapple.org/

Wiki共筆文件

http://wiki.linux-xapple.org/

論壇討論區

http://forum.linux-xapple.org/

源碼庫

https://github.com/xapp-le

16 Open Source Strategy for IoT

源碼已於 2015/10/07 (本演講發表當晚) 由 XAPP-LE 社群釋出 :^)

Page 17: 多元物聯網智慧應用時代下的開源策略 (The Open Source Strategy for the Versatile IoT and Smart Applications Era)

© 2015 William W.-Y. Liang, All Rights Reserved.

結論

智慧應用 TICS 四大組成:Terminals、IoT、Cloud、Sensors,加深軟體複雜度。

智慧應用的基礎: SoC 與 OS 正快速演進當中,其中匯集全球數以千計的頂尖專家打造的開源軟體已成為開發主流。

透過積極支持開源社群的策略,晶片與系統廠可以更容易促進多樣化物聯網創意開發,亦可獲得開源社群的幫助,間接或直接支持為數眾多的開發者與創客。

開源社群的運行應包含正規開源程序且具備完整社群機制,方能吸引開發者加入,進而達到促進發展之目的。

透過貢獻源碼,可獲得開源社群協助,提升軟體品質並使源碼受到長期持續維護,進而降低企業成本。

採用主流開源源碼,可以更安全;正確認識授權議題,通常可兼顧快速開發並且達到保護商業機密之目的。

17 Open Source Strategy for IoT

Page 18: 多元物聯網智慧應用時代下的開源策略 (The Open Source Strategy for the Versatile IoT and Smart Applications Era)

© 2015 William W.-Y. Liang, All Rights Reserved.

Q&A

其他分享: http://goo.gl/6qxlSv

Home: http://www.ntut.edu.tw/~wyliang

FB: http://www.facebook.com/william.wyliang

Slideshare: http://www.slideshare.net/williamwyliang/

Email: [email protected]

關於講者:梁文耀 (William W.-Y. Liang) • 顧問 / 開源貢獻者 (2014.10~) • 鴻海科技集團創新數位系統事業群資深處長 (2013.01~2014.09) • 安佐立科技顧問公司技術總監 (2012.08~2013.07) • 國立台北科技大學資訊工程系專任助理教授 (2005.02~2012.07) • 先前經歷: 聚興科技研發處協理、晶慧資訊研發副總經理、

晶慧資訊研發部經理、晶慧資訊資深工程師、美商 Avant! 軟體工程師 • 專長領域:作業系統、嵌入式系統、計算機結構、平行與分散式系統 Linux 系統軟體 (1993~Now) Android 與 Linux 嵌入式系統核心及軟硬整合開發 (2001~Now)

• 國立台灣大學資訊工程博士、國立清華大學資訊科學碩士

Open Source Strategy for IoT 18