《MTK平臺(tái)軟件架構(gòu)簡(jiǎn)介》由會(huì)員分享,可在線閱讀,更多相關(guān)《MTK平臺(tái)軟件架構(gòu)簡(jiǎn)介(41頁(yè)珍藏版)》請(qǐng)?jiān)谘b配圖網(wǎng)上搜索。
1、Click to edit Master title style,Click to edit Master text styles,Second level,Third level,Fourth level,Fifth level,*,*,*,單擊此處編輯母版標(biāo)題樣式,單擊此處編輯母版文本樣式,第二級(jí),第三級(jí),第四級(jí),第五級(jí),MTK平臺(tái)軟件架構(gòu),軟件二部 王剛,MTK方案簡(jiǎn)介,聯(lián)發(fā)科技介紹,MTK多媒體手機(jī)平臺(tái),GSM/GPRS手機(jī)軟件方案,MTK軟件分層介紹,軟件結(jié)構(gòu)圖表,OS,L1 protocol stack,Device driver,L2 L3 L4 protocol stack,M
2、MI,MTK 方案Task架構(gòu),MMI task 消息處理過程,example,一、MTK方案簡(jiǎn)介,聯(lián)發(fā)科技簡(jiǎn)介,1997年成立,全球,第五大,集成電路設(shè)計(jì)公司(臺(tái)灣第一大),年?duì)I業(yè)額為10億美金,全球最大之光盤及DVD播放機(jī),芯片組,制造商,研發(fā)及技術(shù)中心:,臺(tái)北 新竹 深圳,安徽合肥,無(wú)線通信部門于2000年成立,研發(fā)手機(jī)基帶/RF芯片組及軟件及發(fā)展平臺(tái),部門約200工程師,聯(lián)發(fā)多媒體手機(jī)平臺(tái),MT6218 GSM/GPRS,Multimedia Platform,MT6205 GSM,Low-End Platform,GSM/GPRS/WCDMA,Multimedia Phone,3G,
3、2.5G,MT6219 GSM/GPRS,Video Platform,GSM/GPRS 手機(jī)軟件方案,DSP/Layer1,Nucleus RTOS,GSM/GPRS,協(xié)議層,驅(qū)動(dòng),RF/UART,LCD/USB/IrDA/etc,人機(jī)界面,SIM Tool Kit,短信,/EMS,Email Client,WAP/MMS,中文輸入,Java,聯(lián)發(fā)科技提供給客戶,聯(lián)發(fā)科技已集成 客戶須取得原開發(fā)商之受權(quán),On-Time FAT,二、MTK軟件分層介紹,MTK軟件架構(gòu)圖表,三大組成單元,MS(Mobile Station)執(zhí)行軟件:運(yùn)行于MS上,操作系統(tǒng) Nucleus,物理層協(xié)議棧,驅(qū)動(dòng)程序
4、,gsm協(xié)議棧,MMI,META:The Mobile Engineering Testing Architecture,Catcher,操作系統(tǒng),Nucleus,實(shí)時(shí)操作系統(tǒng),MTK封裝了適配層,將OS封裝了一些API,這些API為其他軟件提供服務(wù),如:隊(duì)列,消息,timer,內(nèi)存管理等,L1層協(xié)議棧(GSM 物理層),L1或者叫物理層,提供物理介質(zhì)上的bit流傳輸,遵循 gsm 技術(shù)05系列規(guī)范,為上層軟件提供服務(wù),且控制邏輯信道到物理信道的映射和安排,無(wú)線控制以及TDMA楨,L1層邏輯圖,L1各部分功能,L1異步邏輯:處理上層軟件的消息請(qǐng)求,發(fā)送L1處理后的結(jié)果給上層軟件,Surroun
5、ding Cell Engine:處理相鄰小區(qū)的功率測(cè)量以及同步信息獲取,L1層控制:處理無(wú)線環(huán)境中的TDMA時(shí)序安排,包括定時(shí)提前以及來自基站的功率控制,L1驅(qū)動(dòng):DSP 以及無(wú)線控制,設(shè)備驅(qū)動(dòng),設(shè)備驅(qū)動(dòng)支持所有MCU(微處理器單元)外設(shè)的控制功能,本模塊處理一些用戶可見操作的一些設(shè)備,如鍵盤,LCD等,通過L4層接口,訪問寄存器來控制外設(shè),MTK平臺(tái)外設(shè),外設(shè)功能解釋,SIM:Subscriber Identity Module,UART:Universal Asynchronous Receiver/Transmitter,SPI:Serial Port Interface,LCD:Li
6、quid Crystal Display,GPIO:General Purpose Input/Output,GPT:General Purpose Timer,RTC:Real Time Clock,WDT:Watch Dog Timer,PWM:Pulse Width Modulation,Alerter,Keypad,PMIC:Power Management IC,BMT:Battery Charging Management task,AUX task:Auxiliary task,ADC Sched.:Analog to Digital Converter Scheduler,US
7、B task:The USB 1.1 protocol and driver,IrDA task:The IrDA and driver,Camera:Camera driver for integrating with 3rd party camera module,MSDC:Memory card driver,supporting SD,MMC cards and Memory Stick,JPEG Decoder:Software for controlling hardware JPEG decoder,L2/L3/L4層協(xié)議棧,本部分覆蓋了許多gsm/gprs協(xié)議需求點(diǎn),為上層應(yīng)用
8、程序提供卓越的gsm/gprs平臺(tái),軟件平臺(tái)非常適合手機(jī)上面的操作以及通過AT命令進(jìn)行PC操作,模塊介紹,RMI,Remote MMI,PC端通過UART口與協(xié)議棧進(jìn)行通訊,FMI Feature rich MM,L4 MMI通過L4與gsm/gprs協(xié)議棧進(jìn)行通訊,包括以下子模塊,ATCI:AT Command Interpreter,解釋來自PC端的命令并命令L4做相應(yīng)的動(dòng)作,L4A:L4 adaptation Layer,MMI與L4A通過消息通信,L4C:L4 Control entity,處理所有的應(yīng)用程序請(qǐng)求和響應(yīng),UEM:User equipments adaptation,驅(qū)動(dòng)
9、相關(guān)的適配層,PHB:Phone book management,電話簿相關(guān)的處理,如分類等,SMU:SIM management Unit,安全性管理以及STK,CSM:,Circuit switching protocol stack management電路交換協(xié)議棧管理,RAC:Registration access control,SMSAL:Short message service application layer,TCM:Terminal context management,NVRAM Nor-volatile RAM,是MMI到Flash的一個(gè)適配層,保存一些默認(rèn)設(shè)置,S
10、IM Subscriber identity module.Handle SIM behavior as ETSI 11.11 description,DATA 電路交換數(shù)據(jù)服務(wù),包括以下子模塊,FAX:Group 3 Facsimile,TDT:Transparent circuit switching data,L2R:Layer 2 relay protocol for non-transparent circuit switching data,RLP:Radio link protocol for non-transparent circuit switching data,CC C
11、ircuit-switched call control 電路交換呼叫控制,SS supplementary service 附加服務(wù),SMS short message service 短消息服務(wù),SM session management 會(huì)話管理,MM/GMM mobility management 移動(dòng)性能管理,SNDCP sub-network dependent convergence protocol,LLC Logical link control 邏輯連接控制,RR Radio resource management,包括以下子模塊,RRM:Handles cell sele
12、ction and PLMN selection,RMPC:Handles the procedures in Idle/Dedicated state including the surrounding cell scheme and measurement reporting,LAPDM:Handles the procedure defined in GSM layer 2,RLC:Radio link control protocol,MAC:Medium access control protocol,MPAL:Adaptation layer for RR and L1A,PPP
13、Point to Point protocol layer,客戶端點(diǎn)對(duì)點(diǎn)協(xié)議,MMI介紹,UI架構(gòu),應(yīng)用程序,與ps的通信,MMI Framework,OLS 操作系統(tǒng)適配置層,對(duì)操作系統(tǒng)進(jìn)行封狀,Task MMI任務(wù),與L4 task 進(jìn)行通信,File system 與存儲(chǔ)設(shè)備通信,進(jìn)行文件存取,MMI GUI介紹,Theme 主題風(fēng)格,主要使菜單等顏色設(shè)置,以及背景圖片等,UI component,Category Screen 每一個(gè)界面都是一個(gè)screen,Font 字體風(fēng)格,Editor 編輯筐,輸入法,訪問LCD 驅(qū)動(dòng),MMI定制工具,MMI應(yīng)用程序,Phonebook Mess
14、age Call History,Setting User profile Fun and game,Organizer Service Shortcut Camera,.,三、MTK 方案Task架構(gòu),系統(tǒng)初始化,Hardware boot and setup system stack etc,Nucleus Plus RTOS initialization,Hardware Initialization,Tasks/Modules initialization/configuration,Tasks Creation,TCT_schedule()for scheduler to conte
15、xt switch,MMI task,主要管理應(yīng)用程序,task從與之相關(guān)的隊(duì)列中讀取event,MMI Queue 協(xié)議棧/L4 將events寫入到隊(duì)列中,MMI task 從隊(duì)列中讀取event,L4 Queue MMI task 將MMI events 寫入隊(duì)列,L4 task 從隊(duì)列中讀取event,MMI task,MMI 注冊(cè)消息事件,在MMI隊(duì)列上面等待消息,協(xié)議棧將消息放入MMI消息隊(duì)列,Framework Layer 處理events,Framework layer 調(diào)用應(yīng)用程序注冊(cè)的回調(diào)函數(shù),回調(diào)函數(shù)中應(yīng)用程序用UI category 函數(shù)和風(fēng)格進(jìn)行screen 顯示,M
16、TK Customer創(chuàng)建task,typedef struct,kal_char *comp_name_ptr;,kal_char *comp_qname_ptr;,kal_uint32 comp_priority;,kal_uint16 comp_stack_size;,kal_uint8 comp_ext_qsize;,kal_uint8 comp_int_qsize;,kal_create_func_ptr comp_create_func;,kal_bool comp_internal_ram_stack;,comptask_info_struct;,const comptask_info_struct custom_comp_config_tbl MAX_CUSTOM_TASKS =,/*INDX_CUSTOM1*/,CUST1,CUST1 Q,210,1024,10,0,customMMI_create,KAL_FALSE,NULL,KAL_FALSE,Tast create,kal_bool,customMMI_create(comptask_handler_struc