Hi Russell and bro,

Could someone help me on this.

After I have:
insmod sa110_ir.o
ifconfig irda0 up

I could communicate with my nokia 8250.

I ran an application to dial to a remote modem
connected to a PC. This is part of my program
that I use to configure the ir port:

int config_raw_input()
{
        struct termios options;
        
        int fd_ir;

        if((fd_ir = open("/dev/ircomm0", O_RDWR|O_NOCTTY))
< 0) //O_NDELAY||O_NONBLOCK

        {
                perror("error opening port");
                return -1;
        }
        
        fcntl(fd_ir, F_SETFL, 0);
        
        tcgetattr(fd_ir, &options);
        options.c_cflag = BAUDRATE | CRTSCTS | CS8 |
CLOCAL | CREAD;
        options.c_lflag = ICANON;
        options.c_oflag = 0;
        options.c_cc[VMIN] = 0;
        options.c_cc[VTIME] = 10;
        
        tcsetattr(fd_ir, TCSANOW, &options);
        return fd_ir;
}
After this I am able to write and read from the
ir port. (sending 'AT' to the phone and getting a
respond 'OK' from it)

But after I dial to the remote PC, and receiving
'CONNECT 9600' from the phone, it will stop
passing data to my application! I could only
write to the ircomm0 but not read from it. Then
after I drop the call, all the data that was send
to me from the remote host could be read from
ircomm0.

What is the problem?

Thank you for your kind attention and help.

Cheers
Vincent Tang 


______________________________________________________________
For the latest news, go to http://www.asia1.com

_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.

Reply via email to