Page 1 of 1

PostPosted: Wed Dec 19, 2001 1:49 am
by Dman
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() {
while(1) {
if(event(0)==1) {
if(serdata()>0) {
after reading the documentation thouroughly (spelling?) I decided that 0x1 were the correct bits to use. Any help would be greatly appreciated!

big brother is watching

PostPosted: Wed Dec 19, 2001 3:45 am
by jstadolnik
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.


Edited by - jstadolnik on 12/18/2001 21:47:44

PostPosted: Thu Dec 20, 2001 2:11 pm
by Dman
I set the bit to 0x1, that redirects it, but if I set it to 3 then it, in theory should work? I will try it, both ways. Thanks for all the info

big brother is watching

PostPosted: Mon Feb 25, 2002 6:58 pm
by alela
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
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.
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

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?

Thank you


Edited by - alela on 02/25/2002 12:59:41