Re: How to set 250000 baud rate in pyserial ?

2012-10-26 Thread kurabas
Error is like cannot set special baud rate.
But as I said pyserial set this speed without problem  for ttyUSB0
So it seems pyserial uses diefferent code depending of port type.
I tried to simlink ln -s ttyACM0 ttyUSB0 but it does not work


On Thursday, October 25, 2012 9:11:23 PM UTC+3, Dennis Lee Bieber wrote:
 On Thu, 25 Oct 2012 04:09:56 -0700 (PDT), kura...@gmail.com declaimed
 
 the following in gmane.comp.python.general:
 
 
 
  I use Arduino 1280 and Arduino 2560 under Fedora 15. 
 
  1280 creates ttyUSB0 port  and can be set at 250 successfully.
 
  2560 creates ttyACM0 port and can be only set at speeds from list (no 
  25) in pyserial. How to set 25 to ttyACM0 port?? Need I patch 
  kernel or python?
 
 
 
   You don't say what error you are receiving but looking at the source
 
 (serialposix.py) implies that it accepts nearly anything on Linux, and
 
 relies on the OS returning a success/failure if the value is allowed or
 
 not. 
 
 
 
   xxxBSD, SunOS, HPUX, IRIX, and CYGWIN systems don't allow special
 
 baudrates at all.
 
 
 
   .NET, JVM, and Windows don't seem to have explicit call outs for bad
 
 rates -- just a generic port configured OK test.
 
 -- 
 
   Wulfraed Dennis Lee Bieber AF6VN
 
 wlfr...@ix.netcom.comHTTP://wlfraed.home.netcom.com/

-- 
http://mail.python.org/mailman/listinfo/python-list


How to set 250000 baud rate in pyserial ?

2012-10-25 Thread kurabas
I use Arduino 1280 and Arduino 2560 under Fedora 15. 
1280 creates ttyUSB0 port  and can be set at 250 successfully.
2560 creates ttyACM0 port and can be only set at speeds from list (no 25) 
in pyserial. How to set 25 to ttyACM0 port?? Need I patch kernel or python?
-- 
http://mail.python.org/mailman/listinfo/python-list