Re: Read data from Serial Command

2008-10-10 Thread Grant Edwards
On 2008-10-10, brianrpsgt1 <[EMAIL PROTECTED]> wrote: > Gave that a shot what is happening is that the script is > hanging. Hanging where? Which line? You'd get a lot more helpful answers if you provided details about what your program is doing rather than vague statements like "it doesn't

Re: Read data from Serial Command

2008-10-10 Thread brianrpsgt1
That did it! The fix was the '\r' Thanks for the assistance Dennis and Grant! Dennis Lee Bieber wrote: > On Fri, 10 Oct 2008 15:40:08 -0700 (PDT), brianrpsgt1 > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > > > Again, what is weird is that all works fine in Hyperterminal, bu

Re: Read data from Serial Command

2008-10-10 Thread brianrpsgt1
Again, what is weird is that all works fine in Hyperterminal, but not with the Python script. brianrpsgt1 wrote: > Gave that a shot what is happening is that the script is > hanging. Does that mean that the write function is not making it > through, thus there is nothing to return? > > > >

Re: Read data from Serial Command

2008-10-10 Thread brianrpsgt1
Gave that a shot what is happening is that the script is hanging. Does that mean that the write function is not making it through, thus there is nothing to return? Grant Edwards wrote: > On 2008-10-10, brianrpsgt1 <[EMAIL PROTECTED]> wrote: > > Thanks for the message > > > > What exactly i

Re: Read data from Serial Command

2008-10-10 Thread Grant Edwards
On 2008-10-10, brianrpsgt1 <[EMAIL PROTECTED]> wrote: > Thanks for the message > > What exactly is happening is that the return is "None" for the command > that I am sending. If I connect through Hyperterminal and execute the > 'sh nw enc' command, it returns 'WEP' It looks to me like you're neve

Re: Read data from Serial Command

2008-10-10 Thread brianrpsgt1
Thanks for the message What exactly is happening is that the return is "None" for the command that I am sending. If I connect through Hyperterminal and execute the 'sh nw enc' command, it returns 'WEP' I have confirmed that the serial port is correct and open with the s.isOpen() function. Also

Re: Read data from Serial Command

2008-10-10 Thread Grant Edwards
On 2008-10-10, brianrpsgt1 <[EMAIL PROTECTED]> wrote: > I am new to scripting. I am trying to read the settings from a serial > device using Python. I have been able to successfully connect to the > device and change baud rate settings, ect... with PySerial. I am > trying to send a command to th