I was going to write the IR part of my game tonite, however I thought I'd do the IR chat for fun. It worked great with the device loopback, however when I tried it from a Vx to a IIIc with a 57600 baud and a 14000 baud. I could not get it to work for anything
I also tried tweaking all of the other settings to no avail. Here's the prog on my device:
[code]// ir chat
library "PToolboxLib"
shutdown() {serIR(0);}
main() {
atexit(shutdown());
seropen(14000,"8N1N",100);
serIR(0x1);
while(1) {
if(event(0)==1) {
sersend(key());
puts(key());
}
if(serdata()>0) {
alert("recieving!");
puts((char)serrecv());
sleep(10);
}
}
serIR(0);
serclose();
}
[\code]
after reading the documentation thouroughly (spelling?) I decided that 0x1 were the correct bits to use. Any help would be greatly appreciated!

You need to set the ir redirect bit and the recieve bit (e.g. serIR(3)). Otherwise your devices will not be able to receive IR data.

The ir can be flaky, some people have gotten it to work, others have not. Those that have had problems usually used IIIc or Vx devices (and you have both!).

The OS3.5.3 patch does fix some serial problems which may or may not help the ir work.

There is also a bug in 3.5 roms which prevents IIIc & Vx's communicating with other devices at some frequencies (like 300 bps). The reason being is that the IIIc and the Vx run at 20MHz, and the serial driver is wacked. If you use a clock frequency adjustment app like afterburner, and set it to 16MHz, things may work.

There is also a OS4.0 bug which supposedly blocks low level serial IR altogether (though I've had no reports of this). The bug I believe is fixed in OS4.1.

I did have one report it the IR working once and then stopping... until a soft reset occured, which allowed it work once, then stop again. The device in question was a Vx.

This is the one toolbox feature which doesn't seem to work right on some devices. The problem is that I don't have to the resources (devices) to debug this on.

I have a Palm m505 which comes with OS4.0 and I've tried the serial chat program unsuccesfully on this device. I tried the same program in two palm III and it worked perfect so I can report that the bug is there.
Do you know a way to patch this bug?