Re: How to create a virtual serial port?

2009-04-19 Thread Nick Craig-Wood
Grant Edwards wrote: > On 2009-04-12, JanC wrote: > > Grant Edwards wrote: > > > >> On 2009-04-10, Stuart Davenport wrote: > >> > >>> I am trying to work out if its possible, to create a virtual serial > >>> port with Python? > >> > >> On Linux: no. > > > > I wonder if there is no way to emulat

Re: How to create a virtual serial port?

2009-04-15 Thread JanC
Stuart Davenport wrote: > My point in all this is actually that I ordered a USB GPS Receiver and I just bought one myself a couple of weeks ago. They sell them at 10-13 euro on computer fairs these days, that's too cheap to not buy one... ;) > it wont arrive for another two weeks, being my impa

Re: How to create a virtual serial port?

2009-04-15 Thread Grant Edwards
On 2009-04-15, Dennis Lee Bieber wrote: > On Sun, 12 Apr 2009 03:20:30 + (UTC), JanC > declaimed the following in gmane.comp.python.general: > >> >> USB *is* a serial port... that's what the "S" stands for. ;) >> > It is a serial protocol, but it is a shared bus-based protocol, in > c

Re: How to create a virtual serial port?

2009-04-14 Thread JanC
Scott David Daniels wrote: > I'ms confused by this statement. What physical connector does your > "serial port" use to get the serial data to the Mac? I only have one > 3-year old Mac laptop to look at, and I just don't see anything that I > would call a serial port. USB *is* a serial port...

Re: How to create a virtual serial port?

2009-04-12 Thread Grant Edwards
On 2009-04-13, Lawrence D'Oliveiro wrote: > In message , Grant > Edwards wrote: > >> On Linux: no. > > What about this . It's a kernel-mode serial driver that talks to an Ethernet-attached device server. We were talking about an application in user-space creating

Re: How to create a virtual serial port?

2009-04-12 Thread Lawrence D'Oliveiro
In message , Grant Edwards wrote: > On Linux: no. What about this . -- http://mail.python.org/mailman/listinfo/python-list

Re: How to create a virtual serial port?

2009-04-12 Thread Stuart Davenport
On Apr 11, 6:56 pm, Grant Edwards wrote: > On 2009-04-11, Grant Edwards wrote: > > > You can write a port redirector in user-space in MS-Windows, > > but you can't in Linux/Unix.  On Unix systems you have to > > write a kernel module that sits below the tty layer. > > Perhaps I should elucidate f

Re: How to create a virtual serial port?

2009-04-12 Thread Grant Edwards
On 2009-04-12, JanC wrote: > Grant Edwards wrote: > >> On 2009-04-10, Stuart Davenport wrote: >> >>> I am trying to work out if its possible, to create a virtual serial >>> port with Python? >> >> On Linux: no. > > I wonder if there is no way to emulate ptys from userspace? Didn't I just answer

Re: How to create a virtual serial port?

2009-04-12 Thread Lawrence D'Oliveiro
In message , JanC wrote: > USB *is* a serial port... that's what the "S" stands for. ;) And the "B" stands for "bus". It's a serial bus, not a serial port. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to create a virtual serial port?

2009-04-11 Thread JanC
Grant Edwards wrote: > On 2009-04-10, Stuart Davenport wrote: > >> I am trying to work out if its possible, to create a virtual serial >> port with Python? > > On Linux: no. I wonder if there is no way to emulate ptys from userspace? (Like you can use FUSE to implement filesystems in python.)

Re: How to create a virtual serial port?

2009-04-11 Thread Grant Edwards
On 2009-04-11, Dennis Lee Bieber wrote: >> You can write a port redirector in user-space in MS-Windows, >> but you can't in Linux/Unix. On Unix systems you have to write >> a kernel module that sits below the tty layer. The tty layer >> is what user applications talk to with open/close/read/wri

Re: How to create a virtual serial port?

2009-04-11 Thread Grant Edwards
On 2009-04-11, Scott David Daniels wrote: > Grant Edwards wrote: >> ...If he was going to plug the device into a real serial port on >> the machine inquestion, then he wouldn't need a virtual serial >> port. >> >>> I don't see anywhere on my laptop I could plug in anything but >>> a USB connector

Re: How to create a virtual serial port?

2009-04-11 Thread Scott David Daniels
Grant Edwards wrote: ...If he was going to plug the device into a real serial port on the machine inquestion, then he wouldn't need a virtual serial port. I don't see anywhere on my laptop I could plug in anything but a USB connector, an ethernet connector, a firewire connector, headphones, spe

Re: How to create a virtual serial port?

2009-04-11 Thread Ned Deily
In article , Grant Edwards wrote: > On 2009-04-11, Ned Deily wrote: > > In article <6lgdnsbypsl1fx3unz2dnuvz_uqdn...@pdx.net>, > > Scott David Daniels wrote: > >> This part I actually understand. The OP has a program named > >> "RouteBuddy" that talks to a device over a serial port, and he >

Re: How to create a virtual serial port?

2009-04-11 Thread alex goretoy
A number of vendors (Keyspan, Belkin) make USB serial ports. FWIW, I use one here on this iMac and OS X with screen(1) and a null modem cable to act as a serial console for a headless Linux box. +1 -Alex Goretoy http://www.goretoy.com Norman Mailer

Re: How to create a virtual serial port?

2009-04-11 Thread Grant Edwards
On 2009-04-11, Ned Deily wrote: > In article <6lgdnsbypsl1fx3unz2dnuvz_uqdn...@pdx.net>, > Scott David Daniels wrote: >> This part I actually understand. The OP has a program named >> "RouteBuddy" that talks to a device over a serial port, and he >> want to repalce the data stream coming from t

Re: How to create a virtual serial port?

2009-04-11 Thread Grant Edwards
On 2009-04-11, Scott David Daniels wrote: > Grant Edwards wrote: >> On 2009-04-11, Grant Edwards wrote: >> >>> You can write a port redirector in user-space in MS-Windows, >>> but you can't in Linux/Unix. On Unix systems you have to >>> write a kernel module that sits below the tty layer. >> >

Re: How to create a virtual serial port?

2009-04-11 Thread Ned Deily
In article <6lgdnsbypsl1fx3unz2dnuvz_uqdn...@pdx.net>, Scott David Daniels wrote: > This part I actually understand. The OP has a program named > "RouteBuddy" that talks to a device over a serial port, and he > want to repalce the data stream coming from that device. My > question is, "where do

Re: How to create a virtual serial port?

2009-04-11 Thread Scott David Daniels
Grant Edwards wrote: On 2009-04-11, Grant Edwards wrote: You can write a port redirector in user-space in MS-Windows, but you can't in Linux/Unix. On Unix systems you have to write a kernel module that sits below the tty layer. Perhaps I should elucidate further. This part I actually unde

Re: How to create a virtual serial port?

2009-04-11 Thread Grant Edwards
On 2009-04-11, Grant Edwards wrote: > You can write a port redirector in user-space in MS-Windows, > but you can't in Linux/Unix. On Unix systems you have to > write a kernel module that sits below the tty layer. Perhaps I should elucidate further. That's what the "pty" driver on Unix is: a ke

Re: How to create a virtual serial port?

2009-04-11 Thread Grant Edwards
On 2009-04-11, Scott David Daniels wrote: ... I'm on a OS X, python 2.5 Then the GPS program I have running on my MAC, RouteBuddy, can read the data from that serial port as standard. > I'ms confused by this statement. What physical connector does > your "serial port" use to

Re: How to create a virtual serial port?

2009-04-11 Thread Scott David Daniels
Stuart Davenport wrote: On 11 Apr, 08:52, Scott David Daniels wrote: Stuart Davenport wrote: ... I'm on a OS X, python 2.5 Then the GPS program I have running on my MAC, RouteBuddy, can read the data from that serial port as standard. I'ms confused by this statement. What physical connec

Re: How to create a virtual serial port?

2009-04-11 Thread Grant Edwards
On 2009-04-10, Stuart Davenport wrote: > I'm on a OS X, python 2.5. Basically I will have a remote > application pushing data (GPS) over the network to a python > application I have running on my Mac, I want this python > application to again push the data on to a "virtual serial > port". Then th

Re: How to create a virtual serial port?

2009-04-11 Thread Stuart Davenport
On 11 Apr, 08:52, Scott David Daniels wrote: > Stuart Davenport wrote: > > ... I'm on a OS X, python 2.5. Basically I will have a remote application > > pushing data (GPS) over the network to a python application I have > > running on my Mac, I want this python application to again push the > > da

Re: How to create a virtual serial port?

2009-04-11 Thread Lawrence D'Oliveiro
In message , Stuart Davenport wrote: > Then the GPS program I have running on my MAC, RouteBuddy, can read the > data from that serial port as standard. Macs don't have serial ports. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to create a virtual serial port?

2009-04-11 Thread Scott David Daniels
Stuart Davenport wrote: ... I'm on a OS X, python 2.5. Basically I will have a remote application pushing data (GPS) over the network to a python application I have running on my Mac, I want this python application to again push the data on to a "virtual serial port". Then the GPS program I have

Re: How to create a virtual serial port?

2009-04-10 Thread Banibrata Dutta
This might help: http://en.wikipedia.org/wiki/COM_port_redirector On Sat, Apr 11, 2009 at 8:34 AM, Banibrata Dutta wrote: > On Sat, Apr 11, 2009 at 3:17 AM, Stuart Davenport < > stuart.davenp...@gmail.com> wrote: > >> I'm on a OS X, python 2.5. Basically I will have a remote application >> pushin

Re: How to create a virtual serial port?

2009-04-10 Thread Banibrata Dutta
On Sat, Apr 11, 2009 at 3:17 AM, Stuart Davenport < stuart.davenp...@gmail.com> wrote: > I'm on a OS X, python 2.5. Basically I will have a remote application > pushing data (GPS) over the network to a python application I have > running on my Mac, I want this python application to again push the

Re: How to create a virtual serial port?

2009-04-10 Thread Stuart Davenport
On 10 Apr, 20:45, Scott David Daniels wrote: > Stuart Davenport wrote: > > Hi, > > > I am trying to work out if its possible, to create a virtual serial > > port with Python? Would anyone know how to go about this in code? Any > > help would be greatly appreciated! :) > > > I have a had a google a

Re: How to create a virtual serial port?

2009-04-10 Thread Banibrata Dutta
As others have already stated, "Virtual Serial Port" isn't descriptive enough. There are various forms of "Virtual Serial Ports" and different people use the term to mean different things. For example, emulating RS232 communication over Bluetooth, or USB, is also something done using "Virtual Seria

Re: How to create a virtual serial port?

2009-04-10 Thread Grant Edwards
On 2009-04-10, Stuart Davenport wrote: > I am trying to work out if its possible, to create a virtual serial > port with Python? On Linux: no. On other OSes, I don't know. -- Grant Edwards grante Yow! I'm encased in the at

Re: How to create a virtual serial port?

2009-04-10 Thread Scott David Daniels
Stuart Davenport wrote: Hi, I am trying to work out if its possible, to create a virtual serial port with Python? Would anyone know how to go about this in code? Any help would be greatly appreciated! :) I have a had a google and the topics returned only seem to reflect "reading" serial port da

How to create a virtual serial port?

2009-04-10 Thread Stuart Davenport
Hi, I am trying to work out if its possible, to create a virtual serial port with Python? Would anyone know how to go about this in code? Any help would be greatly appreciated! :) I have a had a google and the topics returned only seem to reflect "reading" serial port data, particularly pySerial