forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PSP Remote

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
imzack



Joined: 11 Oct 2005
Posts: 10

PostPosted: Tue Oct 11, 2005 6:08 am    Post subject: PSP Remote Reply with quote

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/viewtopic.php?t=8849&postdays=0&postorder=asc&start=0
Back to top
View user's profile Send private message
sherpya



Joined: 03 Oct 2005
Posts: 61

PostPosted: Tue Oct 11, 2005 7:31 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
imzack



Joined: 11 Oct 2005
Posts: 10

PostPosted: Tue Oct 11, 2005 7:44 am    Post subject: Reply with quote

thanks man and that would be very cool if you kept on working on it making it better thanks i appreciate it.
Back to top
View user's profile Send private message
PspPet



Joined: 30 Mar 2005
Posts: 210

PostPosted: Tue Oct 11, 2005 7:48 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail Visit poster's website
imzack



Joined: 11 Oct 2005
Posts: 10

PostPosted: Tue Oct 11, 2005 8:13 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
sherpya



Joined: 03 Oct 2005
Posts: 61

PostPosted: Tue Oct 11, 2005 12:43 pm    Post subject: Reply with quote

@PspPet
your example seams a bit complex, yes I know sending raw codes is a different thing... I'll study more deeply your code
Back to top
View user's profile Send private message
BluesBoy



Joined: 12 Oct 2005
Posts: 4

PostPosted: Wed Oct 12, 2005 12:53 am    Post subject: Philips Reply with quote

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
Back to top
View user's profile Send private message
Arwin



Joined: 12 Jul 2005
Posts: 426

PostPosted: Wed Oct 12, 2005 2:13 am    Post subject: Re: Philips Reply with quote

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
Back to top
View user's profile Send private message
PspPet



Joined: 30 Mar 2005
Posts: 210

PostPosted: Wed Oct 12, 2005 2:17 am    Post subject: Reply with quote

> 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)
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sherpya



Joined: 03 Oct 2005
Posts: 61

PostPosted: Wed Oct 12, 2005 12:45 pm    Post subject: Reply with quote

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 ... :)
Back to top
View user's profile Send private message
Arwin



Joined: 12 Jul 2005
Posts: 426

PostPosted: Wed Oct 12, 2005 8:16 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
BluesBoy



Joined: 12 Oct 2005
Posts: 4

PostPosted: Wed Oct 12, 2005 10:28 pm    Post subject: Re: Philips Reply with quote

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
Back to top
View user's profile Send private message
PspPet



Joined: 30 Mar 2005
Posts: 210

PostPosted: Thu Oct 13, 2005 2:18 am    Post subject: Reply with quote

> 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]
Quote:

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.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
BluesBoy



Joined: 12 Oct 2005
Posts: 4

PostPosted: Thu Oct 13, 2005 3:03 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
imzack



Joined: 11 Oct 2005
Posts: 10

PostPosted: Thu Oct 13, 2005 11:38 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
BluesBoy



Joined: 12 Oct 2005
Posts: 4

PostPosted: Fri Oct 14, 2005 6:02 am    Post subject: Philips Remote Reply with quote

As I promised, Philips Remote test version, source code included.
http://rapidshare.de/files/6243007/Philips_Remote_0.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
Back to top
View user's profile Send private message
imzack



Joined: 11 Oct 2005
Posts: 10

PostPosted: Sat Oct 15, 2005 12:02 pm    Post subject: Reply with quote

cool thanks for the app
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group