PSP Remote

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
imzack
Posts: 10
Joined: Tue Oct 11, 2005 6:03 am

PSP Remote

Post by imzack »

i have been wondering if there is a universal remote out for the psp if there isnt does anyone know how to make on that would be the coolest app to have on the psp if someone could make it. I have been talking about it more on another forum and they all seemed to like the idea too.

thanks

http://www.psp-hacks.com/forums/viewtop ... sc&start=0
User avatar
sherpya
Posts: 61
Joined: Mon Oct 03, 2005 5:49 pm

Post by sherpya »

http://forums.ps2dev.org/viewtopic.php?t=1594&start=90
it's not universal and almost untested but it takes lirc config files, I'll soon make more work on it, anyway the remote codes should be 12,15 or 20 bits (psp limitation), someone told me that it's possible to convert other bits to 12,15 or 20
imzack
Posts: 10
Joined: Tue Oct 11, 2005 6:03 am

Post by imzack »

thanks man and that would be very cool if you kept on working on it making it better thanks i appreciate it.
PspPet
Posts: 210
Joined: Wed Mar 30, 2005 2:13 am
Contact:

Post by PspPet »

General discussion:
http://forums.ps2dev.org/viewtopic.php?t=3018
My IR app that does general IR (not just SIRCS)
http://forums.ps2dev.org/viewtopic.php?t=3140
imzack
Posts: 10
Joined: Tue Oct 11, 2005 6:03 am

Post by imzack »

nice, i like this one but have no real us for it since it isnt universal. i sent it to some friends to see if they might beable to use that software and expand on it. i wonder if there is anyother programs or if anyone else has tips to help us out that would be apreciated greatly.
User avatar
sherpya
Posts: 61
Joined: Mon Oct 03, 2005 5:49 pm

Post by sherpya »

@PspPet
your example seams a bit complex, yes I know sending raw codes is a different thing... I'll study more deeply your code
BluesBoy
Posts: 4
Joined: Wed Oct 12, 2005 12:46 am

Philips

Post by BluesBoy »

I modified PspPets code a little and I was able to control my Philips TV, but I was unable to control Philips DVD player. Is there any good and free IR capture programs so I could see what is original remote sending ?
I tried winlirc but I couldn't get it to work with some IR adapter that I have on COM port
Arwin
Posts: 426
Joined: Tue Jul 12, 2005 7:00 pm

Re: Philips

Post by Arwin »

BluesBoy wrote:I modified PspPets code a little and I was able to control my Philips TV, but I was unable to control Philips DVD player. Is there any good and free IR capture programs so I could see what is original remote sending ?
I tried winlirc but I couldn't get it to work with some IR adapter that I have on COM port
Since I have 3 Philips TVs, would you like to share that code? :D
PspPet
Posts: 210
Joined: Wed Mar 30, 2005 2:13 am
Contact:

Post by PspPet »

> nice, i like this one but have no real us for it since it isnt universal.
That's the idea. Hopefully someone (hint hint sherpya) can combine the LIRC configuration file reader and combine it with the raw IR transmission code.

> @PspPet, your example seams a bit complex,
Take a look at the "SIMPLE" version. "rawir.h"/"rawir.c" is all you need [one small file that does all the trickery]. Converting from your format to the PWM format is the only hard part (see 'LiquidIce's post using IR_SIGNAL_ON/OFF for a Pronto remote)


> Is there any good and free IR capture programs so I could see what is original remote sending ?
FWIW: I use an older CLIE Palm PDA with OmniRemote (not free but much cheaper than most PC USB dongles). OmniRemote has an SDK, so you can tweek the capture algorithm too (if you like Palm programming)
User avatar
sherpya
Posts: 61
Joined: Mon Oct 03, 2005 5:49 pm

Post by sherpya »

I've made a new version with a lirc config parser written from scratch (the code from lirc was crashing psp at exit), yes bison/yacc stuff would be more easy but I don't known how to use it and I've made it in pure c. So far I get only bits name and code, if any other field is needed I can easily add it.
I can "check" psp ir output by using an hb lirc compatible serial receiver.
and finally yes the conversion would be nice, but I would known what your low level stuff can do compared with sceSircsSend
I'll spend some spare time studying your sources ... :)
Arwin
Posts: 426
Joined: Tue Jul 12, 2005 7:00 pm

Post by Arwin »

sherpya wrote:but I would known what your low level stuff can do compared with sceSircsSend
'

If I understand it correctly, his code can produce output for nearly every appliance out there, whereas the sceSircsSend can only broadcast on Sony's Sircs standard bandwidth.
BluesBoy
Posts: 4
Joined: Wed Oct 12, 2005 12:46 am

Re: Philips

Post by BluesBoy »

Arwin wrote: Since I have 3 Philips TVs, would you like to share that code? :D
No problem, I just have to test something out, I'll upload it to rapidshare tomorrow

@PspPet I don't have Palm so ... but I have access to osciloscope so I'll
try something else

.. in mceir.c there's a comment..
// carrier freq = 36kHz
// 1 tick = 22.5us
// ~20 ticks for basic time unit (444.44 us)

how did you calculate that ? .. cause 1/36000 = 27.7us which gives 16 ticks
for 444.44 us
PspPet
Posts: 210
Joined: Wed Mar 30, 2005 2:13 am
Contact:

Post by PspPet »

> If I understand it correctly, his code can produce output for nearly every appliance out there, whereas the sceSircsSend can only broadcast on Sony's Sircs standard bandwidth.
Yes, that's the purpose [well almost any standard Consumer IR signal]
The standard firmware only supports the Sony "Consumer IR" protocol call "SIRCS". "Consumer IR" is different than IrDA, which won't be discussed here.

This IR sample shows ways of using the RAW IR capabilities of the PSP hardware, to control many "Consumer IR" devices.

The "rawir.c" source file has the tricks needed to send RAW IR data to the hardware and reuse the SIRCS event handler for non-SIRCS data. Data is formatted ahead of time in a PWM-like format.
==========
>> // carrier freq = 36kHz
>> // 1 tick = 22.5us
> how did you calculate that ? .. cause 1/36000 = 27.7us which gives 16 ticks

And from the header:
// NOTE: frequency and timing are *both* directly proportional to 'timing_val'

FWIW: I found that to be strange too (usually they are inversely proportional, which is where I started). The 36kHz timing was off so I experimentally measured the tick timing, and found it directly proportional -- it now works in my test cases.
I haven't done an exhaustive test, so if you have problems, please let me know the factors you use.
BluesBoy
Posts: 4
Joined: Wed Oct 12, 2005 12:46 am

Post by BluesBoy »

PspPet wrote:>

And from the header:
// NOTE: frequency and timing are *both* directly proportional to 'timing_val'

FWIW: I found that to be strange too (usually they are inversely proportional, which is where I started). The 36kHz timing was off so I experimentally measured the tick timing, and found it directly proportional -- it now works in my test cases.
I haven't done an exhaustive test, so if you have problems, please let me know the factors you use.
My philips TV works with both 16 and 20 ticks for basic time unit, but I still can't get philips dvd to work, I'll try to figure it out tomorrow with osciloscope and I'll try to check tick timings.
imzack
Posts: 10
Joined: Tue Oct 11, 2005 6:03 am

Post by imzack »

wow that is way out of my league hope everything is going ok and if anyone gets anywere just let me know if you will thanks.
BluesBoy
Posts: 4
Joined: Wed Oct 12, 2005 12:46 am

Philips Remote

Post by BluesBoy »

As I promised, Philips Remote test version, source code included.
http://rapidshare.de/files/6243007/Phil ... 1.zip.html

It works with my Philips TV & DVD.

I'm planning to add RC5 support if needed, problem is I can't test it.

PspPet, you are right about timings, I checked with osciloscope output from original remote and PSP, and 20 ticks is best for 444us
imzack
Posts: 10
Joined: Tue Oct 11, 2005 6:03 am

Post by imzack »

cool thanks for the app
Post Reply