跳到主要內容

發表文章

目前顯示的是 11月, 2021的文章

車載

 根據美國運輸部(U.S. Department of Transportation, DoT)的統計 數字顯示,美國每年死於交通事故上的人數高達四萬三千人,傷殘人 數約為三百二十萬人,而所消耗的社會成本據估計已超過 1,500 億美 元;而在日本車輛資訊及通訊系統 (Vehicle Information and Communication System, VICS)的資料則指出,日本每年每人平均浪費 在塞車的時間約為 42 小時,約等於每年浪費 12 兆日圓。 1). 車內通訊: Bluetooth (BT), Ultra-wideband (UWB) … 2). 車外通訊: 2G, 2.5G, 3G, 3.5G (cellular systems), GPS, WiMAX … mobile WiMAX (IEEE 802.16e-2005)及 fixed WiMAX(IEEE 802.16-2004) 3). 車路通訊 : Microwave, Infrared, Dedicated Short Range Communications (DSRC), Wi-Fi … 4). 車間通訊(OBU-to-RSU): Microwave, Infrared, DSRC …  自動電子收費、自動取得前方交通 路況、停車場資訊、定點影音資訊上傳及下載等 cUWS ss dd IVBSS(Integrated Vehicle-Based Safety System)、CICAS(Cooperative Intersection Collision Avoidance System)、及 VII(Vehicle Infrastructure Integration) IVBSS 計畫:後車追撞(rear-end collision)、行進車道偏移(road departure)及車道變換匯入(lane change and merge)等安全系統 s

Android BSP

Q1:寫個 kernel module 印出 Hello World A1: module的行為 insmod的時候印出"Hello World!" rmmod的時候印出"Goodbye, hello world" 掛module的平台 - Arm64平台(DB410C),DB410C的kernel與toolchain(系統開發) 當你要作交叉編譯時,一定要有Target Board(DB410C)的toolchain 在PC上面編譯,我利用toolchain把程式編譯成Target Board可讀的檔案 toolchain(工具的連結) GNU GCC 編譯器 連結器 (將原始碼/目的碼轉換成可執行程式檔) 函式庫 (提供與作業系統之間的介面) 除錯器 (用來測試、除錯所產出的程式) //////////////////////////////  HelloWorld.c  ////////////////////////////////////// #include <linux/module.h> #include <linux/init.h> MODULE_LICENSE("Dual BSD/GPL"); static int hello_init(void) {     printk("Hello world!\n");     return 0; } static void hello_exit(void) {     printk("Goodbye, hello world\n"); } module_init(hello_init); module_exit(hello_exit); /////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////  MakeFile ///////////////////////////////////// obj-m += hello.o KERNEL=/home/danny/DB410C/kerne...