SlideShare une entreprise Scribd logo
1  sur  7
Télécharger pour lire hors ligne
Dilshan R Jayakody
(jayakody2000lk@gmail.com)

XBMC is a cross platform Media Center Application
with 10-foot UI. In this project we develop USB

This system is design to work with XBMC - JSON

port base controller for XBMC application. Main

RPC interface.

functionality of this controller unit is to provide
remote

control

interface,

LCD

base

player

information panel and rotary encoder base
controller for XBMC. With this given hardware
design and software programs, user may be able to
control XBMC without using standard input devices
such as keyboard and mouse.

Fig.2- XBMC USB Controller

Microchip’s PIC18F4550 is a main hardware
controller of this system. This microcontroller is
used for USB interfacing, as LCD driver, IR base
remote control data decoder and as a driver of the
Fig.1 - XBMC Audio Player

other input devices (such as rotary encoder and
push switches). XBMC Controller’s USB interface is

This device is design to work with XBMC Version

design to work as a USB HID class device.

10.1 (codename Dharma) or newer versions. Older
cont’d

version of XBMC may not work this system because
of the differences in its Web Control Interface.

This work is licensed under the Creative
Commons Attribution-ShareAlike 3.0 Unported
All the software programs are

All the schematics, PCB designs and other

released under the terms of

design files are released under the terms of

-1-

License. To view a copy of this license, visit
http://creativecommons.org/licenses/by-sa/3.0/
or send a letter to Creative Commons, 171
Second

Street,

Suite

California, 94105, USA.

300,

San

Francisco,
folder with filename

This system is design to work with Microsoft

Controllerrelease

Windows Operating Systems and we test this

“mcci.ini”. This ini file contains 3 main sections

system in Windows XP Professional editions and

such as “xbmc”, “device” and “keymap”.

some few Windows XP Embedded editions also.
“xbmc” section contain 3 parameters:
Supplied firmware of this system is design to work
with Sony SIRC 20bit infrared protocol and supplied

Address: IP address of the system where XBMC is

ini file is configured for Sony RMT-V408 remote

installed. (In most of the configurations this

controller.

parameter value set to defaults as 127.0.0.1)

Port: Port number assigned for XBMC web
interface. (This value is need to verify with your
XBMC network settings)
Location: full path and filename of the XBMC
executable file.

“device” section contain 2 parameters related
with the USB controller. If your using default
Fig.3– Sony RMT-V408 Remote Controller

firmware, these values must be VID = 33824 and
PID = 1.

If you alter firmware with different vendor ID and

Software Content

product IDs, make sure to change these values
also.
This system consists with two main software
modules:

“keymap” section is used to assign functionalities

1. PIC18F4550 base software (firmware): This

to the remote control buttons. Key and the value

software module is developed using MikroC

formats for this section are described in below.

version 4.60.
2. Windows XBMC control application: Developed

E.g: 1422128=1,38

using Delphi 7 and work as a “virtual” Windows
Service Application.

Parameter for command
Command Type

System configuration file

Received data from USB
Before work with this system end user need to

controller module

configure controller application for his/her remote
control and for his/her software setup. This
configuration

file

is

located

at
cont’d
-2-
Command Type: Specify the type of the command

F1

F2

Send WM_KEYDOWN window message to

Push Switch

Description

1

Rotary Encoder

Value

Push Switch

as integer value. Valid command types are:

XBMC. ASCII value of the key is need to
specify at the parameter section.
E.g: 2422116=1,13
2

Send WM_CHAR window message to
J1 Connector

XBMC. Character code is need to specify
at the parameter section.
3

Fig.4– Connections to Connector J1

Perform predefine actions based on the
following parameter values:

Installation and Initial Setup

1: Increase volume
2: Decrease volume

Before start the initial setup we assume that target

3: Return to the home screen of XBMC

PC

4: Toggle audio mute function

requirements:
•

may

have

following

minimum

system

Windows XP or newer version of Windows
operating system

USB Controller - hardware connections

•
•

J1 connector is used to connect rotary encoder and

USB 2.0 port

•

This given PCB design have 2 external connectors.

XBMC 10.1 or newer version

Suitable SIRC protocol base remote controller
unit

two push switches to the system. Connection

If the target system meets the above specified

diagrams of the J1 is illustrated in Fig. 4.

requirement, continue the system setup process as

J2 connector is used to connect USB cable to the

follows:

system. Connections to the J2 is listed in below
table:

1. Start XBMC and Click “System” and open

Connection Description

“Network” tab.

Cable Color

2. Under the “Services” change the following
1

USB D+

Green

2

USB D-

White

Allow control of XBMC via HTTP : ON

3

USB +5V

Red

Port

: 80

4

USB Ground

Black

Username

:

5

Cable Shield

N/A

Password

:

options:

(Clear both username and password fields)
For J2 use standard 3feet 28/24AWG USB cable

3. Press “Esc” key.

with USB male A connector.

4. Close XBMC.
cont’d
-3-
5. Extract supplied software package and make

Component List

sure that mcci.ini file is properly configured.
6. Connect XBMC USB controller to the PC. If
is

working

C2, C3

Windows

automatically detect the device and configure
it to the target system.

4.7MFD/10V Capacitor
10pF Capacitor

C4, C5

properly,

C1

0.1MFD Capacitor

R1

device

100Ω Resistor

R2, R3, R4, R5, 22kΩ Resistor
R6, R7
Q1
IR1

configured,

XBMC

5pin Header connector

SV1

14pin Header connector

LCD1

MC1602 LCD Module

SW1, SW2

starts

8pin Header connector

J2

properly

PIC18F4550

J1

7. Start mcci.exe application. If everything is

TSOP1136

IC1

Fig.5– XBMC player information

20.0MHz Crystal (HC49U Package)

6mm tactile momentary switch—

automatically.

TL1240N

8. Check the all XBMC functionalities with remote

RE1

controller and controls on the XBMC USB

Panasonic EVQ-WTEF2515 or
equivalent mechanical rotary

controller.

encoder
USB1

Technical Specifications of the Device

3feet long 28/24AWG USB port
cable with male A connector.

Please note that all these technical specifications

References

are valid only with the bundled firmware file
(Version 1.0.0.31).

•

USB Version

: 2.0

•

Device Class

: 0x0

•

Vendor ID

: 0x8420

•

Product ID

: 0x1

•

Manufacturer

: Dilshan R Jayakody

•

Product

•

Product Version

: 0.1

•

Power Mode

: Self powered 100mA Max

•

USB interfaces

PIC18F2455/2550/4455/4550 Data sheet
http://ww1.microchip.com/downloads/en/
DeviceDoc/39632e.pdf

: 0x3 - HID class

IR Receiver Modules for Remote Control Systems TSOP11xx
http://www.vishay.com/docs/82006/tsop11xx.pdf
JSON RPC - XBMC
http://wiki.xbmc.org/index.php?title=JSON_RPC

: Media Center Control Interface
JSON-RPC 2.0 Specification
http://groups.google.com/group/json-rpc/web/json-rpc2-0?pli=1

-4-
PIC18F4550_40
22K

+5V

R5
GND

J1
GND

LCD 1602

40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21

SV1

22K

R3
22K
R4

RB7/BKI3/PGD
RB6/KBI2/PGC
RB5/KBI1/PGM
RB4/AN11/KBI0/CSSPP
RB3/AN9/CCP2/VPO
RB2/AN8/INT2/VMO
RB1/AN10/INT1/SCK/SCL
RB0/AN12/INT0/LFT0/SDI/SDA
VDD
VSS
RD7/SPP7/P1D
RD6/SPP6/P1C
RD5/SPP5/P1B
RD4/SPP4
RC7/RX/DT/SDO
RC6/TX/CK
RC5/D+/VP
RC4/D-/VM
RD3/SPP3
RD2/SPP2

1

CONTROL_IN

R7

0.1MFD
0.1MFD

C5

C4

C3

10pF

C2

GND

TSOP1136

20.00MHz
Q1

10pF
+5V

VO

MCLR/VPP/RE3
RA0/AN0
RA1/AN1
RA2/AN2/VREF-/CVREF
RA3/AN3/VREF+
RA4/T0CKI/CIOUT/RCV
RA5/AN4/SS/HLVDIN/C2OUT
RE0/AN5/CK1SPP
RE1/AN6/CK2SPP
RE2/AN7/OESPP
VDD
VSS
OSC1/CLKI
RA6/OSC2/CLKO
RC0/TIOSO/T13CKI
RC1/T1OSI/ICCP2/UOE
RC2/CCP1/P1A
VUSB
RD0/SPP0
RD1/SPP1

R6
22K

VS

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

22K

GND
R2

IR1

22K

4.7MFD/10V

+5V

C1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

GND

J2
GND

1 - GREEN (D+)
2 - WHITE (D-)
3 - RED (+5V)
4 - BLACK (GND)
5 - SHIELD

+5V

+5V
100R

+5V
R1

CONTROL_IN (J1) : 8 - ROTERY_A
7 - ROTERY_COM
6 - ROTERY_B
5 - ROTERY_SW1A
4 - ROTERY_SW1B
3 - SW2A
2 - SW3A
1 - SW2/3_COM
IC1

1

USB
XBMC USB Controller for Media Center PCs
J2

15

SV1

1

TSOP1136

0.1MFD

IR1

C1

100R
R1

R2
22K

0.1MFD
C5

10pF

10pF
C3

C2

20.00MHz

C4

Q1

4.7MFD/10V

PIC18F4550_40

J1

IC1

22K
R3
22K
R4
R5
22K
R7
22K
R6
22K

Contenu connexe

Tendances

Embedded processor system for controllable period-width multichannel pulse wi...
Embedded processor system for controllable period-width multichannel pulse wi...Embedded processor system for controllable period-width multichannel pulse wi...
Embedded processor system for controllable period-width multichannel pulse wi...TELKOMNIKA JOURNAL
 
3 com desktop_communicator-v2_6_2-release_notes-1v11
3 com desktop_communicator-v2_6_2-release_notes-1v113 com desktop_communicator-v2_6_2-release_notes-1v11
3 com desktop_communicator-v2_6_2-release_notes-1v11Victor Jaramillo
 
How to flash with programmer on apc
How to flash with programmer on apcHow to flash with programmer on apc
How to flash with programmer on apcIman Teguh Pribadi
 
Cis81 ccna1v5-2-configuring networkoperatingsystem
Cis81 ccna1v5-2-configuring networkoperatingsystemCis81 ccna1v5-2-configuring networkoperatingsystem
Cis81 ccna1v5-2-configuring networkoperatingsystemBetselove
 
Id. 01 router (computing)
Id. 01 router (computing)Id. 01 router (computing)
Id. 01 router (computing)Rawa KirKuKi
 
HKG15-505: Power Management interactions with OP-TEE and Trusted Firmware
HKG15-505: Power Management interactions with OP-TEE and Trusted FirmwareHKG15-505: Power Management interactions with OP-TEE and Trusted Firmware
HKG15-505: Power Management interactions with OP-TEE and Trusted FirmwareLinaro
 
Q2.12: Power Management Across OSs
Q2.12: Power Management Across OSsQ2.12: Power Management Across OSs
Q2.12: Power Management Across OSsLinaro
 
Siemens s7 300 programming
Siemens s7 300 programming Siemens s7 300 programming
Siemens s7 300 programming satyajit patra
 
3 g modem_tutorial
3 g modem_tutorial3 g modem_tutorial
3 g modem_tutorialaljarous
 
operating and configuring cisco a cisco IOS device
operating and configuring cisco a cisco IOS deviceoperating and configuring cisco a cisco IOS device
operating and configuring cisco a cisco IOS devicescooby_doo
 
AVR_Course_Day5 avr interfaces
AVR_Course_Day5 avr interfacesAVR_Course_Day5 avr interfaces
AVR_Course_Day5 avr interfacesMohamed Ali
 
Overview of LPC213x MCUs
Overview of LPC213x MCUsOverview of LPC213x MCUs
Overview of LPC213x MCUsPremier Farnell
 

Tendances (20)

2 unit-es-printed
2 unit-es-printed2 unit-es-printed
2 unit-es-printed
 
Embedded processor system for controllable period-width multichannel pulse wi...
Embedded processor system for controllable period-width multichannel pulse wi...Embedded processor system for controllable period-width multichannel pulse wi...
Embedded processor system for controllable period-width multichannel pulse wi...
 
Remote Management
Remote ManagementRemote Management
Remote Management
 
3 com desktop_communicator-v2_6_2-release_notes-1v11
3 com desktop_communicator-v2_6_2-release_notes-1v113 com desktop_communicator-v2_6_2-release_notes-1v11
3 com desktop_communicator-v2_6_2-release_notes-1v11
 
Nexys2 rm
Nexys2 rmNexys2 rm
Nexys2 rm
 
How to flash with programmer on apc
How to flash with programmer on apcHow to flash with programmer on apc
How to flash with programmer on apc
 
Read me17
Read me17Read me17
Read me17
 
Lecture 21
Lecture 21Lecture 21
Lecture 21
 
CENTUM CS300 R3
CENTUM CS300 R3CENTUM CS300 R3
CENTUM CS300 R3
 
Cis81 ccna1v5-2-configuring networkoperatingsystem
Cis81 ccna1v5-2-configuring networkoperatingsystemCis81 ccna1v5-2-configuring networkoperatingsystem
Cis81 ccna1v5-2-configuring networkoperatingsystem
 
Id. 01 router (computing)
Id. 01 router (computing)Id. 01 router (computing)
Id. 01 router (computing)
 
Flashcatusb manual
Flashcatusb manualFlashcatusb manual
Flashcatusb manual
 
presentation on SCB,DEBUG,RESET of Arm Cortex processor
presentation on SCB,DEBUG,RESET of Arm Cortex processorpresentation on SCB,DEBUG,RESET of Arm Cortex processor
presentation on SCB,DEBUG,RESET of Arm Cortex processor
 
HKG15-505: Power Management interactions with OP-TEE and Trusted Firmware
HKG15-505: Power Management interactions with OP-TEE and Trusted FirmwareHKG15-505: Power Management interactions with OP-TEE and Trusted Firmware
HKG15-505: Power Management interactions with OP-TEE and Trusted Firmware
 
Q2.12: Power Management Across OSs
Q2.12: Power Management Across OSsQ2.12: Power Management Across OSs
Q2.12: Power Management Across OSs
 
Siemens s7 300 programming
Siemens s7 300 programming Siemens s7 300 programming
Siemens s7 300 programming
 
3 g modem_tutorial
3 g modem_tutorial3 g modem_tutorial
3 g modem_tutorial
 
operating and configuring cisco a cisco IOS device
operating and configuring cisco a cisco IOS deviceoperating and configuring cisco a cisco IOS device
operating and configuring cisco a cisco IOS device
 
AVR_Course_Day5 avr interfaces
AVR_Course_Day5 avr interfacesAVR_Course_Day5 avr interfaces
AVR_Course_Day5 avr interfaces
 
Overview of LPC213x MCUs
Overview of LPC213x MCUsOverview of LPC213x MCUs
Overview of LPC213x MCUs
 

En vedette

Programmable Home Security Alarm System
Programmable Home Security Alarm SystemProgrammable Home Security Alarm System
Programmable Home Security Alarm SystemDilshan Jayakody
 
Jai maa-polymers
Jai maa-polymersJai maa-polymers
Jai maa-polymersjaimaas
 
Uрtoрromo
UрtoрromoUрtoрromo
Uрtoрromoforseman
 
Electric Fences with Automated Monitoring System
Electric Fences with Automated Monitoring SystemElectric Fences with Automated Monitoring System
Electric Fences with Automated Monitoring SystemDilshan Jayakody
 
perturbações no equilíbrio dos ecossistemas
perturbações no equilíbrio dos ecossistemasperturbações no equilíbrio dos ecossistemas
perturbações no equilíbrio dos ecossistemasShoyata
 
пример презентации
пример презентациипример презентации
пример презентацииalb-bis
 
Tahukah anda-buku-termahal-di-dunia.html
Tahukah anda-buku-termahal-di-dunia.htmlTahukah anda-buku-termahal-di-dunia.html
Tahukah anda-buku-termahal-di-dunia.htmlDevgan Prakash
 
системы оплаты труда персонала ресторана за результат
системы оплаты труда персонала ресторана за результатсистемы оплаты труда персонала ресторана за результат
системы оплаты труда персонала ресторана за результатalb-bis
 

En vedette (10)

Programmable Home Security Alarm System
Programmable Home Security Alarm SystemProgrammable Home Security Alarm System
Programmable Home Security Alarm System
 
Prueba
PruebaPrueba
Prueba
 
Jai maa-polymers
Jai maa-polymersJai maa-polymers
Jai maa-polymers
 
Uрtoрromo
UрtoрromoUрtoрromo
Uрtoрromo
 
Electric Fences with Automated Monitoring System
Electric Fences with Automated Monitoring SystemElectric Fences with Automated Monitoring System
Electric Fences with Automated Monitoring System
 
perturbações no equilíbrio dos ecossistemas
perturbações no equilíbrio dos ecossistemasperturbações no equilíbrio dos ecossistemas
perturbações no equilíbrio dos ecossistemas
 
пример презентации
пример презентациипример презентации
пример презентации
 
Tahukah anda-buku-termahal-di-dunia.html
Tahukah anda-buku-termahal-di-dunia.htmlTahukah anda-buku-termahal-di-dunia.html
Tahukah anda-buku-termahal-di-dunia.html
 
системы оплаты труда персонала ресторана за результат
системы оплаты труда персонала ресторана за результатсистемы оплаты труда персонала ресторана за результат
системы оплаты труда персонала ресторана за результат
 
Buletin trendy
Buletin trendyBuletin trendy
Buletin trendy
 

Similaire à XBMC USB Controller for Media Center PCs

Tft touch screen manufacturers
Tft touch screen manufacturersTft touch screen manufacturers
Tft touch screen manufacturersKeatonParker2
 
ARINC-429-DATA-MANAGEMENT-ENGINE
ARINC-429-DATA-MANAGEMENT-ENGINEARINC-429-DATA-MANAGEMENT-ENGINE
ARINC-429-DATA-MANAGEMENT-ENGINEMassimo Talia
 
Management configuration
Management configurationManagement configuration
Management configurationmckan1974
 
Linux 802.11 subsystem and brcmsmac WLAN driver
Linux 802.11 subsystem and brcmsmac WLAN driverLinux 802.11 subsystem and brcmsmac WLAN driver
Linux 802.11 subsystem and brcmsmac WLAN driverMidhun Lohidakshan
 
Gl embedded starterkit_ethernet
Gl embedded starterkit_ethernetGl embedded starterkit_ethernet
Gl embedded starterkit_ethernetRoman Brovko
 
Snet+Pro+Service+Software_SNET+Pro+2+Instructions.pdf
Snet+Pro+Service+Software_SNET+Pro+2+Instructions.pdfSnet+Pro+Service+Software_SNET+Pro+2+Instructions.pdf
Snet+Pro+Service+Software_SNET+Pro+2+Instructions.pdffjero
 
DCS ( Distributed Control System )
DCS ( Distributed Control System )DCS ( Distributed Control System )
DCS ( Distributed Control System )Automation123
 
Programming the ARM CORTEX M3 based STM32F100RBT6 Value Line Discovery Board
Programming the ARM CORTEX M3 based STM32F100RBT6 Value Line Discovery BoardProgramming the ARM CORTEX M3 based STM32F100RBT6 Value Line Discovery Board
Programming the ARM CORTEX M3 based STM32F100RBT6 Value Line Discovery BoardGaurav Verma
 
OV7670 Camera interfacing-with-arduino-microcontroller
OV7670 Camera interfacing-with-arduino-microcontrollerOV7670 Camera interfacing-with-arduino-microcontroller
OV7670 Camera interfacing-with-arduino-microcontrollerSomnath Sharma
 
Design and Development of ARM9 Based Embedded Web Server
Design and Development of ARM9 Based Embedded Web ServerDesign and Development of ARM9 Based Embedded Web Server
Design and Development of ARM9 Based Embedded Web ServerIJERA Editor
 
Electronic Control of Unguided Airborne Vehicle (UAV)
Electronic Control of Unguided Airborne Vehicle (UAV)Electronic Control of Unguided Airborne Vehicle (UAV)
Electronic Control of Unguided Airborne Vehicle (UAV)IJERA Editor
 

Similaire à XBMC USB Controller for Media Center PCs (20)

Tft touch screen manufacturers
Tft touch screen manufacturersTft touch screen manufacturers
Tft touch screen manufacturers
 
Assignment
AssignmentAssignment
Assignment
 
ARINC-429-DATA-MANAGEMENT-ENGINE
ARINC-429-DATA-MANAGEMENT-ENGINEARINC-429-DATA-MANAGEMENT-ENGINE
ARINC-429-DATA-MANAGEMENT-ENGINE
 
Management configuration
Management configurationManagement configuration
Management configuration
 
Xctu manual
Xctu manualXctu manual
Xctu manual
 
Stone i tech
Stone i techStone i tech
Stone i tech
 
Resume
ResumeResume
Resume
 
Linux 802.11 subsystem and brcmsmac WLAN driver
Linux 802.11 subsystem and brcmsmac WLAN driverLinux 802.11 subsystem and brcmsmac WLAN driver
Linux 802.11 subsystem and brcmsmac WLAN driver
 
Gl embedded starterkit_ethernet
Gl embedded starterkit_ethernetGl embedded starterkit_ethernet
Gl embedded starterkit_ethernet
 
Le company presentation
Le company presentationLe company presentation
Le company presentation
 
Snet+Pro+Service+Software_SNET+Pro+2+Instructions.pdf
Snet+Pro+Service+Software_SNET+Pro+2+Instructions.pdfSnet+Pro+Service+Software_SNET+Pro+2+Instructions.pdf
Snet+Pro+Service+Software_SNET+Pro+2+Instructions.pdf
 
ELECTRONIC AND - Copy (1)
ELECTRONIC AND - Copy (1)ELECTRONIC AND - Copy (1)
ELECTRONIC AND - Copy (1)
 
Dcs write up
Dcs write upDcs write up
Dcs write up
 
DCS ( Distributed Control System )
DCS ( Distributed Control System )DCS ( Distributed Control System )
DCS ( Distributed Control System )
 
Programming the ARM CORTEX M3 based STM32F100RBT6 Value Line Discovery Board
Programming the ARM CORTEX M3 based STM32F100RBT6 Value Line Discovery BoardProgramming the ARM CORTEX M3 based STM32F100RBT6 Value Line Discovery Board
Programming the ARM CORTEX M3 based STM32F100RBT6 Value Line Discovery Board
 
OV7670 Camera interfacing-with-arduino-microcontroller
OV7670 Camera interfacing-with-arduino-microcontrollerOV7670 Camera interfacing-with-arduino-microcontroller
OV7670 Camera interfacing-with-arduino-microcontroller
 
Design and Development of ARM9 Based Embedded Web Server
Design and Development of ARM9 Based Embedded Web ServerDesign and Development of ARM9 Based Embedded Web Server
Design and Development of ARM9 Based Embedded Web Server
 
U50202126129
U50202126129U50202126129
U50202126129
 
Electronic Control of Unguided Airborne Vehicle (UAV)
Electronic Control of Unguided Airborne Vehicle (UAV)Electronic Control of Unguided Airborne Vehicle (UAV)
Electronic Control of Unguided Airborne Vehicle (UAV)
 
U50202126129
U50202126129U50202126129
U50202126129
 

XBMC USB Controller for Media Center PCs

  • 1. Dilshan R Jayakody (jayakody2000lk@gmail.com) XBMC is a cross platform Media Center Application with 10-foot UI. In this project we develop USB This system is design to work with XBMC - JSON port base controller for XBMC application. Main RPC interface. functionality of this controller unit is to provide remote control interface, LCD base player information panel and rotary encoder base controller for XBMC. With this given hardware design and software programs, user may be able to control XBMC without using standard input devices such as keyboard and mouse. Fig.2- XBMC USB Controller Microchip’s PIC18F4550 is a main hardware controller of this system. This microcontroller is used for USB interfacing, as LCD driver, IR base remote control data decoder and as a driver of the Fig.1 - XBMC Audio Player other input devices (such as rotary encoder and push switches). XBMC Controller’s USB interface is This device is design to work with XBMC Version design to work as a USB HID class device. 10.1 (codename Dharma) or newer versions. Older cont’d version of XBMC may not work this system because of the differences in its Web Control Interface. This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported All the software programs are All the schematics, PCB designs and other released under the terms of design files are released under the terms of -1- License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative Commons, 171 Second Street, Suite California, 94105, USA. 300, San Francisco,
  • 2. folder with filename This system is design to work with Microsoft Controllerrelease Windows Operating Systems and we test this “mcci.ini”. This ini file contains 3 main sections system in Windows XP Professional editions and such as “xbmc”, “device” and “keymap”. some few Windows XP Embedded editions also. “xbmc” section contain 3 parameters: Supplied firmware of this system is design to work with Sony SIRC 20bit infrared protocol and supplied Address: IP address of the system where XBMC is ini file is configured for Sony RMT-V408 remote installed. (In most of the configurations this controller. parameter value set to defaults as 127.0.0.1) Port: Port number assigned for XBMC web interface. (This value is need to verify with your XBMC network settings) Location: full path and filename of the XBMC executable file. “device” section contain 2 parameters related with the USB controller. If your using default Fig.3– Sony RMT-V408 Remote Controller firmware, these values must be VID = 33824 and PID = 1. If you alter firmware with different vendor ID and Software Content product IDs, make sure to change these values also. This system consists with two main software modules: “keymap” section is used to assign functionalities 1. PIC18F4550 base software (firmware): This to the remote control buttons. Key and the value software module is developed using MikroC formats for this section are described in below. version 4.60. 2. Windows XBMC control application: Developed E.g: 1422128=1,38 using Delphi 7 and work as a “virtual” Windows Service Application. Parameter for command Command Type System configuration file Received data from USB Before work with this system end user need to controller module configure controller application for his/her remote control and for his/her software setup. This configuration file is located at cont’d -2-
  • 3. Command Type: Specify the type of the command F1 F2 Send WM_KEYDOWN window message to Push Switch Description 1 Rotary Encoder Value Push Switch as integer value. Valid command types are: XBMC. ASCII value of the key is need to specify at the parameter section. E.g: 2422116=1,13 2 Send WM_CHAR window message to J1 Connector XBMC. Character code is need to specify at the parameter section. 3 Fig.4– Connections to Connector J1 Perform predefine actions based on the following parameter values: Installation and Initial Setup 1: Increase volume 2: Decrease volume Before start the initial setup we assume that target 3: Return to the home screen of XBMC PC 4: Toggle audio mute function requirements: • may have following minimum system Windows XP or newer version of Windows operating system USB Controller - hardware connections • • J1 connector is used to connect rotary encoder and USB 2.0 port • This given PCB design have 2 external connectors. XBMC 10.1 or newer version Suitable SIRC protocol base remote controller unit two push switches to the system. Connection If the target system meets the above specified diagrams of the J1 is illustrated in Fig. 4. requirement, continue the system setup process as J2 connector is used to connect USB cable to the follows: system. Connections to the J2 is listed in below table: 1. Start XBMC and Click “System” and open Connection Description “Network” tab. Cable Color 2. Under the “Services” change the following 1 USB D+ Green 2 USB D- White Allow control of XBMC via HTTP : ON 3 USB +5V Red Port : 80 4 USB Ground Black Username : 5 Cable Shield N/A Password : options: (Clear both username and password fields) For J2 use standard 3feet 28/24AWG USB cable 3. Press “Esc” key. with USB male A connector. 4. Close XBMC. cont’d -3-
  • 4. 5. Extract supplied software package and make Component List sure that mcci.ini file is properly configured. 6. Connect XBMC USB controller to the PC. If is working C2, C3 Windows automatically detect the device and configure it to the target system. 4.7MFD/10V Capacitor 10pF Capacitor C4, C5 properly, C1 0.1MFD Capacitor R1 device 100Ω Resistor R2, R3, R4, R5, 22kΩ Resistor R6, R7 Q1 IR1 configured, XBMC 5pin Header connector SV1 14pin Header connector LCD1 MC1602 LCD Module SW1, SW2 starts 8pin Header connector J2 properly PIC18F4550 J1 7. Start mcci.exe application. If everything is TSOP1136 IC1 Fig.5– XBMC player information 20.0MHz Crystal (HC49U Package) 6mm tactile momentary switch— automatically. TL1240N 8. Check the all XBMC functionalities with remote RE1 controller and controls on the XBMC USB Panasonic EVQ-WTEF2515 or equivalent mechanical rotary controller. encoder USB1 Technical Specifications of the Device 3feet long 28/24AWG USB port cable with male A connector. Please note that all these technical specifications References are valid only with the bundled firmware file (Version 1.0.0.31). • USB Version : 2.0 • Device Class : 0x0 • Vendor ID : 0x8420 • Product ID : 0x1 • Manufacturer : Dilshan R Jayakody • Product • Product Version : 0.1 • Power Mode : Self powered 100mA Max • USB interfaces PIC18F2455/2550/4455/4550 Data sheet http://ww1.microchip.com/downloads/en/ DeviceDoc/39632e.pdf : 0x3 - HID class IR Receiver Modules for Remote Control Systems TSOP11xx http://www.vishay.com/docs/82006/tsop11xx.pdf JSON RPC - XBMC http://wiki.xbmc.org/index.php?title=JSON_RPC : Media Center Control Interface JSON-RPC 2.0 Specification http://groups.google.com/group/json-rpc/web/json-rpc2-0?pli=1 -4-
  • 5. PIC18F4550_40 22K +5V R5 GND J1 GND LCD 1602 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 SV1 22K R3 22K R4 RB7/BKI3/PGD RB6/KBI2/PGC RB5/KBI1/PGM RB4/AN11/KBI0/CSSPP RB3/AN9/CCP2/VPO RB2/AN8/INT2/VMO RB1/AN10/INT1/SCK/SCL RB0/AN12/INT0/LFT0/SDI/SDA VDD VSS RD7/SPP7/P1D RD6/SPP6/P1C RD5/SPP5/P1B RD4/SPP4 RC7/RX/DT/SDO RC6/TX/CK RC5/D+/VP RC4/D-/VM RD3/SPP3 RD2/SPP2 1 CONTROL_IN R7 0.1MFD 0.1MFD C5 C4 C3 10pF C2 GND TSOP1136 20.00MHz Q1 10pF +5V VO MCLR/VPP/RE3 RA0/AN0 RA1/AN1 RA2/AN2/VREF-/CVREF RA3/AN3/VREF+ RA4/T0CKI/CIOUT/RCV RA5/AN4/SS/HLVDIN/C2OUT RE0/AN5/CK1SPP RE1/AN6/CK2SPP RE2/AN7/OESPP VDD VSS OSC1/CLKI RA6/OSC2/CLKO RC0/TIOSO/T13CKI RC1/T1OSI/ICCP2/UOE RC2/CCP1/P1A VUSB RD0/SPP0 RD1/SPP1 R6 22K VS 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 22K GND R2 IR1 22K 4.7MFD/10V +5V C1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 GND J2 GND 1 - GREEN (D+) 2 - WHITE (D-) 3 - RED (+5V) 4 - BLACK (GND) 5 - SHIELD +5V +5V 100R +5V R1 CONTROL_IN (J1) : 8 - ROTERY_A 7 - ROTERY_COM 6 - ROTERY_B 5 - ROTERY_SW1A 4 - ROTERY_SW1B 3 - SW2A 2 - SW3A 1 - SW2/3_COM IC1 1 USB