Hi,
I need help on setting the irda.
I wish to setup 2 assabet and 2 Nokia 8250 to
communicate with each other.
I manage to get the follow link up,
8250(1) <-ir-> assabet(1)
^
|
|
gsm (9600)
|
|
v
8250(2) <-ir-> assabet(2)
Assabet(1) and (2) will be generating data at
600 bytes per sec. With a link of 9.6kbps, I
should be able to transfer the data without any
problem.
But I either get an error:
"ircomm_ttp_data_request(), failed" or I could
not write to the irda port.
My kernel is 2.4.9-ac10-rmk2-np1
I am using the sa1100_ir module.
This is the function I use to configure the ir
port in my application:
int config_raw_input() {
struct termios options;
int fd_ir;
if((fd_ir = open("/dev/ircomm0", O_RDWR |
O_NOCTTY)) < 0) {
return -1;
}
fcntl(fd_ir, F_SETFL, FNDELAY);
tcgetattr(fd_ir, &option);
options.c_cflag |= BAUDRATE | CRTSCTS | CLOCAL |
CS8 | CREAD;
options.c_lflag &= ~(ICANON | ECHO | ECHOE |
ISIG);
options.c_oflag &= ~OPOST;
options.c_cc[VMIN] = 0;
options.c_cc[VTIME] = 10;
tcsetattr(fd_ir, TCSANOW, &options);
return fd_ir;
}
Did I make any mistake?
Thank you for the help.
Cheers
Vincent
______________________________________________________________
For the latest news, go to http://www.asia1.com
_______________________________________________
Linux-IrDA mailing list - [EMAIL PROTECTED]
http://www.pasta.cs.UiT.No/mailman/listinfo/linux-irda