Thanx, Neil. It works fine.
It seems that cygwin uses the members c_ispeed and c_ospeed of struct
termios and ignores any speed flag in c_cflag.
Martin
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation:
AuM. Graefe asked about setting speed of serial ports on Win 2000.
I've had success with
#include
struct termios *serial_config;
cfsetospeed( serial_config, B57600); // for example
cfsetispeed( serial_config, B57600);
in conjunction with a later tcsetattr call...
While setting the baud rate using tcsetattr() works fine using Cygwin
under Win NT, it doesn't work since my computer was "upgraded" to
Win2K. Now the COM-port speed remains unchanged, the system seems to
ignore the command. The shell command "stty" fails, too.
Is there any solution to set the spe
3 matches
Mail list logo