260 likes | 375 Views
Department of Electronic Engineering NUIG. A Bluetooth and Ethernet Control System for Home Entertainment Devices. By: Shane Long Supervisor: Mr. Frank Callaly Apr 2007. System Specification Hardware Design Design Issues LIRC Package Installation of LIRC LIRC Programs Ethernet Interface
E N D
Department of Electronic Engineering NUIG A Bluetooth and Ethernet Control System for Home Entertainment Devices By: Shane Long Supervisor: Mr. Frank Callaly Apr 2007
System Specification Hardware Design Design Issues LIRC Package Installation of LIRC LIRC Programs Ethernet Interface Server Application Client Application Sharp Zaurus Bluetooth Interface Server Application Client Application Other Usage modes for the System Review References Overview
Bluetooth Rx USB Serial Tx IR-Tx/Rx Bluetooth Mobile Phone System Specification Linux Workstation Ethernet Sharp Zaurus PDA
Hardware Design • Hardware must have following capabilities • transmit IR signal at least 5m • receive IR signal at 38kHZ • serial interface (4 wires) • voltage control (serial port is power supply)
Hardware Design Issues • Low power output from serial port • range in miliWatts • Extra power required to transmit IR signal sufficient distance • battery method??? • capacitor method???
LIRC Package • Linux Infra-Red Control • decoding and sending of IR signals • reads remote control config file and sends signal out through serial port • Large no. of config files available • Sony, Philips, LG, Hauppauge, Hitachi etc.
Sample Configuration File • begin remote • name SONY_RM-830 • bits 11 • flags SPACE_ENC • eps 25 • aeps 100 • header 2478 500 • one 1272 500 • zero 673 500 • ptrail 673 • gap 26940 • toggle_bit 0 • begin codes • Mute 0x148 • Power 0x548 • TV 0x0E8 • Teletext 0x7E8 • Input 0x528 • Output 0x338 • 1 0x008 • 2 0x408 • 3 0x208 • 4 0x608 • 5 0x108 • 6 0x508 • 7 0x308 • 8 0x708 • 9 0x088 • 0 0x488
LIRC Daemon • Centre component of the LIRC package • receives parameters from IR Txing application • converts parameters to IR commands • sends IR commands to serial port
irsend txing program xmode2 rxing waveform mode2 rxing pulse width irpty control over s/ware LIRC Tx/Rx Control Programs
LIRC Installation Issues • To install LIRC serial driver the RS-232 driver first must be removed/overwritten • RPMs • LIRC-0.8.0 many RPM dependencies not available • Removal of RS-232 driver and recompilation • time consuming
Ethernet Interface • Using workstation as remote control • cumbersome • not hand held • Ethernet interface provides mechanism to • control IR Tx with handheld device • control IR Tx from truly remote location
Advantages Truly Generic Webpage would work on every browser Truly Remote WWW works anywhere in the world Browser Existence No need to develop client application Disadvantages Response Times Possibly too slow for application Webpage Application
Advantages Standard Client-server architecture standard practice Response Times Extremely fast response times Control over lircd Parameters can be passed to lircd easily Disadvantages Client-Server Development Two applications must be developed Client Server Application
Ethernet Server Application (1) • Application written in the Python • Task of Application • To connect to UNIX socket to control lircd • lircd –l opens socket at port 8765 for connection • Three parameters are required for IR Tx • SEND_ONCE • CONFIG_NAME • BUTTON_NAME • Implemented using Python sockets
Ethernet Server Application (2) • Task of Application (contd) • To receive connection from client program and pass control of lircd • Implemented using Python XML-RPC libraries • Set of standard protocols that automate encoding and transport of messages • Three parameters to be sent across network link as integers
Ethernet Client Application(1) • Task of Application • to connect to server application • Using Python XML-RPC libraries • Pass arguments to server application and hence to lircd to control the IR Tx • Arguments passed as integers • Client Application as a GUI • Remote control look and feel Developed using PyQt, a GUI design toolkit for Python
Sharp Zaurus PDA Qtopia Application Builder Compatible with PyQt Wireless ethernet card Wireless handheld device Linux Variant OS Kernel: 2.4.78-rmk7-pxa3-embedix Ethernet Client Application(2)
Bluetooth Interface • Wireless capabilities • Remote device • Mobile Phone • Bluetooth enabled workstation • Local device • USB Bluetooth dongle
Bluetooth Server Application • Task of Application • To connect to UNIX socket to control lircd • To receive connection from client application and pass control of lircd to client
Bluetooth Client Application • Task of Application • to connect to server application • gain control of lircd through server • To be developed for a mobile phone • J2ME • written on workstation and uploaded to wireless server • downloaded to mobile phone using WAP
Other usage modes for System • Control over MP3/CD player with RC using IR Rx and irpty • Network Application to control Tx/Rx over the internet • Possible usage of a Linux core microcontroller instead of workstation
Bluetooth Rx USB Serial Tx IR-Tx/Rx Bluetooth Mobile Phone Review Linux Workstation Ethernet Sharp Zaurus PDA