View
220
Download
3
Embed Size (px)
Citation preview
遠端家電遙控系統遠端家電遙控系統
693441011卓正賢
693415087高銘甫
OutlineOutline
• Project Proposal
• QT2410 發展版• QT2410 GPIO Introduce
• Introduction of IrDA• Protocol Stack• IR Remote Control
• Designing process
Project Proposal(1/2)Project Proposal(1/2)
Network
House
Remote
Project Proposal(2/2)Project Proposal(2/2)
AP
Driver
Hardware•RS232 •GPIO
QT2410 發展版QT2410 發展版USB host MMC/
SDRS-232
Power
Network
JTAG
FOR 2410 CORE
QT2410 CoreQT2410 CoreS3C2410NAND Flash
64 MB
SDRAM32 MB * 2
QT2410 GPIO Introduce(1/2)QT2410 GPIO Introduce(1/2)
GPFCON
GPFDAT
GPFUP
QT2410 GPIO Introduce(2/2)QT2410 GPIO Introduce(2/2)
PORT CONFIGURATION REGISTER (GPACON-GPHCON)
PORT DATA REGISTER (GPADAT-GPHDAT)
PORT PULL-UP REGISTER (GPBUP-GPHUP)
Introduction of IrDAIntroduction of IrDA
• IrDA 裝置是使用紅外線的 LED. 其波長大多是介於 875 nm +- 30 nm 之間 .
• IrDA 裝置其距離約工作在 1.0m .
• 依傳輸速度可分為:• SIR115.2Kbps• MIR1.152Mbps• FIR4.0Mbps• VFIR16Mbps
IrTran-P OBEX IrLan IrCom IrMC
Async Serial-IR9.6 – 115.2 kb/s
Sync Serial-IR1.152 Mb/s
Sync4PPM4Mb/s
Physical layer
Ir Link Access Protocol - IrLAPData Link layer
Ir Link Mgmt –MUX - IrLMPNetwork layer
Tiny Transport Protocol – Tiny TPLM-IASTransport layer
Protocol StackProtocol Stack
IrPHY
IrPHYIrPHY
• 實體訊號層 (physical signal)
• 為實際的紅外線裝置,資料便是透過它來傳送
• 其發射頻率介於 33kHz-40kHz 之間• 其傳送資料封包是使用 CRC 的錯誤檢查碼格式
IrPHY Packet FormatIrPHY Packet Format
STA STA ADDR DATA16b
FCSSTO
PA STA Payload STO
1.152 Mbit/s and the lower rates
4 Mbit/s
PA STAIrLAP Frame
CRC FB STO NULL
16 Mbit/s
IrLAPIrLAP
• 連結存取協定 (link access protocol)
• 用來提供和維護 IrDA 裝置間的可靠連結• IrLAP 提供兩種一般形式的服務
• Connectionless Services• Connection-oriented Services
IrLAP Frame StructureIrLAP Frame Structure
• IrLAP employs four generic types of service primitive• Request• Indication• Response• Confirm
Address Control Information
8 bits
8 bits
8 * X bits
IrLMPIrLMP
• 連結管理協定 (link management protocol)
• Provides multiplexing of the IrLAP layer
• Support for multiple application to operate
independently and concurrently
IR Remote ControlIR Remote Control
• Low cost solution of remote control
• No specific stack
• Control signal defined by manufactory
Signal DefinitionSignal Definition
Start Signal Factory ID Button ID
Ex : TOSHIBA TV power on signal Factory : 40BF Button ID : 12ED 1 0 | 0 1 0 0 0 0 0 0 1 0 1 1 1 1 1 1 | 0 0 0 1 0 0 1 0 1 1 1 0 1 1 0 1 40BF 12ED
Designing processDesigning process
Study about GPIO driver
TraceCode
Make IrDA Module
Write the IrDA driver
Test the System
Write the Final report
Find how to use 2410 I/O
Q&AQ&A
EndEnd
Thanks for your listening Thanks for your listening