Greg KH wrote:

What kernel version?

i've tested with 2.4.18, 2.4.20, and 2.4.21 with the last posted patches
primarily tested with the pl2303 module, however i did get the same response on the mct_u232 and keyspan modules. this same program on a standard rs-232 port works fine. uncommenting various lines and you can make a comparison between "normal" rs-232 behavior and the usb-rs232 version. i used a null modem cable between two pc's, and also tested with two wire (tx/rx/gnd) between a wyse terminal and a pc.


Care to post your .c program?


#include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <termios.h> #include <stdio.h>

#define MYDEVICE "/dev/ttyUSB0"
main()
{
  int fd,c, res;
  struct termios oldtio,newtio;
  char buf[255];

 fd = open(MYDEVICE, O_RDWR | O_NOCTTY );
 if (fd <0) {perror(MYDEVICE); exit(-1); }

 tcgetattr(fd,&oldtio); /* save current serial port settings */
 bzero(&newtio, sizeof(newtio)); /* clear struct for new port settings */

newtio.c_cflag = B9600 | CS8 | CLOCAL | CREAD;

newtio.c_oflag = 0;

/* uncomment this line to test the ONLCR lockup */

// newtio.c_oflag = OPOST | ONLCR;

 tcflush(fd, TCIFLUSH);
 tcsetattr(fd,TCSANOW,&newtio);

 strcpy(buf,"test output with newline\n");
 write (fd, buf,25);


/* uncoment the next two lines to test cr vs. nl */ // strcpy(buf,"test output with carriage return\r"); // write (fd, buf,33);

tcsetattr(fd,TCSANOW,&oldtio);
}




------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to