IrDa API for J2ME (JSR-82?)

Hi all,

I've done very little J2ME but I am familiar with the Java language. I wish to write a J2ME application that makes use of the Infrared port of a mobile device. The compatibility list for the API looks good.

I wondered how stable this was and whether anyone could point me to some sample code with this API and J2ME to get me kick started. Although I know the API exists I am struggling to find a coding start point.

Many Thanks

NozFx

[473 byte] By [NozFxa] at [2007-11-27 6:49:35]
# 1

Hi all,

Looked at JSR-82. Looks like it only supports OBEX and this doesn't really give me raw socket access. I know I may be able to use serial ports but can this give me to control to output a custom data stream?

Basically I want to able to use a device as an IrDa remote and send commands from the device. (like a TV remote). Is this possible?

Thanks

NozFx

NozFxa at 2007-7-12 18:23:21 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2

It'll be problematic on a hardware level.

You'll have to figure out the exact combination of on and off pulses to activate a particular function on the TV and find a way to implement this in j2me... which is probably not going to be very direct...

And most ir devices use ir modulated at a certain pulse frequency... (I believe 38 kHz is common) i.e. the remote's LED is flashing on and off at 38 kHz and any user imposed pulsing is at a far lower frequency and is superimposed on this. I don't know how this is going to affect your program... (The phone's IR port might work at the same modulation frequency or it might be different... There's probably no way to change it if it抯 different).

And then you'll probably have the problem of range. TV remotes are designed to work at ranges of a couple of meters. Most cell phone IR ports have a range that can be measured in centimeters?br>

Don't loose hope though... I believe that this has been done on the Symbian platform and therefore it might just be possible in J2me too! 

Chargea at 2007-7-12 18:23:21 > top of Java-index,Java Mobility Forums,Java ME Technologies...