Re: pySerial: write in a blocking mode

2006-03-29 Thread Grant Edwards
On 2006-03-29, Peter Hansen <[EMAIL PROTECTED]> wrote: >>>This seems a little odd to me. We've used several RS232-RS485 >>>converters without needing to do that. Maybe a more sophisticated >>>device would eliminate this need? >> >> Yes. The device is very simple (I made it). > > Perhaps a very

Re: pySerial: write in a blocking mode

2006-03-29 Thread Grant Edwards
On 2006-03-29, pdalet <[EMAIL PROTECTED]> wrote: > The best solution is to send the last character with > interrupt. when the TDR is empty an interrupt is generated. An > interrupt program is executed to change the state of dtr. No. That doesn't work. You have to wait until the transmit _shift_r

Re: pySerial: write in a blocking mode

2006-03-29 Thread Alejandro
Peter Hansen wrote: > Alejandro wrote: > > > > Yes. The device is very simple (I made it). > > Perhaps a very simple change to it would make it as convenient as the > commercial products. I vaguely recall (not having checked for over a > decade) that all they do is set the outgoing DTR line wh

Re: pySerial: write in a blocking mode

2006-03-29 Thread Peter Hansen
Alejandro wrote: > Peter Hansen wrote: > >>Alejandro wrote: >> >>>I'm using pySerial to talk to a RS232 to RS485 converter. In order to >>>control the converter, I need to control the DTR line to enable/disable >>>de RS485 driver. >> >>This seems a little odd to me. We've used several RS232-RS485

Re: pySerial: write in a blocking mode

2006-03-29 Thread pdalet
Hi I have developped a python script to control a rs232c rs485 converter, named pyRS485 with pythoncard on windows. ftp-champo.ac-toulouse.fr/pub/btseo/pdalet/python/ python 2.4 Electronics Applications 20050902.exe The best solution is to send the last character with interrupt. when the TDR is

Re: pySerial: write in a blocking mode

2006-03-28 Thread Grant Edwards
On 2006-03-28, Alejandro <[EMAIL PROTECTED]> wrote: > Hi: > > I'm using pySerial to talk to a RS232 to RS485 converter. In order to > control the converter, I need to control the DTR line to enable/disable > de RS485 driver. In particular, I need to : > > write a character to the serial port > set

Re: pySerial: write in a blocking mode

2006-03-28 Thread Alejandro
Peter Hansen wrote: > Alejandro wrote: > > I'm using pySerial to talk to a RS232 to RS485 converter. In order to > > control the converter, I need to control the DTR line to enable/disable > > de RS485 driver. > > This seems a little odd to me. We've used several RS232-RS485 > converters without

Re: pySerial: write in a blocking mode

2006-03-28 Thread Peter Hansen
Alejandro wrote: > I'm using pySerial to talk to a RS232 to RS485 converter. In order to > control the converter, I need to control the DTR line to enable/disable > de RS485 driver. This seems a little odd to me. We've used several RS232-RS485 converters without needing to do that. Maybe a mor