PSP Remote
PSP Remote
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
thanks
http://www.psp-hacks.com/forums/viewtop ... sc&start=0
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
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
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
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
Philips
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
I tried winlirc but I couldn't get it to work with some IR adapter that I have on COM port
Re: Philips
Since I have 3 Philips TVs, would you like to share that code? :DBluesBoy 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
> 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)
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)
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 ... :)
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 ... :)
Re: Philips
No problem, I just have to test something out, I'll upload it to rapidshare tomorrowArwin wrote: Since I have 3 Philips TVs, would you like to share that code? :D
@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
> 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]
>> // 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.
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.
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.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.
Philips Remote
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
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