Re: Changing baud rate doesn't allow second command

2011-04-25 Thread rjmccorkle
On Apr 25, 10:09 am, Thomas Rachel wrote: > Am 25.04.2011 16:41, schrieb rjmccorkle: > > > The code is fine but it seems it won't switch baud rates using > > pyserial.  I have to initiate the first msg in 9600 to change the > > setting of the gps > > And then send the second command in 115200 beca

Re: Changing baud rate doesn't allow second command

2011-04-25 Thread Thomas Rachel
Am 25.04.2011 16:41, schrieb rjmccorkle: The code is fine but it seems it won't switch baud rates using pyserial. I have to initiate the first msg in 9600 to change the setting of the gps And then send the second command in 115200 because it's in configuration mode on the unit. Ok. > I can s

Re: Changing baud rate doesn't allow second command

2011-04-25 Thread rjmccorkle
On Apr 25, 7:06 am, Thomas Rachel wrote: > Am 25.04.2011 14:46, schrieb rjmccorkle: > > > hi - I need to open a serial port in 9600 and send a command followed > > by closing it, open serial port again and send a second command at > > 115200.  I have both commands working separately from the pytho

Re: Changing baud rate doesn't allow second command

2011-04-25 Thread Thomas Rachel
Am 25.04.2011 14:46, schrieb rjmccorkle: hi - I need to open a serial port in 9600 and send a command followed by closing it, open serial port again and send a second command at 115200. I have both commands working separately from the python command line but it won't work in the script. Any ide

Re: Changing baud rate doesn't allow second command

2011-04-25 Thread Roy Smith
In article <224f6621-2fc4-4827-8a19-3a12371f3...@l14g2000pre.googlegroups.com>, rjmccorkle wrote: > hi - I need to open a serial port in 9600 and send a command followed > by closing it, open serial port again and send a second command at > 115200. I have both commands working separately from

Changing baud rate doesn't allow second command

2011-04-25 Thread rjmccorkle
hi - I need to open a serial port in 9600 and send a command followed by closing it, open serial port again and send a second command at 115200. I have both commands working separately from the python command line but it won't work in the script. Any idea why? import serial from time import slee