[Tutor] COM Ports
kromag@nsacom.net
kromag@nsacom.net
Fri, 20 Apr 2001 15:59:42 -0700 (PDT)
>
> Oh, and I don't know anything about accessing serial ports on windows...
> I'm used to just opening the serial device as a filehandle under BSD.
> Sorry :)
But never let a chance like this go to waste.....
I have a project in the works that requires me to read data from a multi-port
serial card (which I don't have yet - it should arrive in the mail soon) and
squirt the data into a database.
I am using (at this moment) linux for this particular job, but would have no
problem switching to Free/NetBSD (I don't think PostGreSQL will run on
OpenBSD yet...). As I understand it, one has to create a C module to read
from the serial port in python under unix. I have read the Linux-Serial-
Programming-HOWTO and the C Extentions Overview in Programming Python and am
beginning to get some idea of how creating such a mawnstah might work, but
would really like to see some example code that is a little less generic.
Can you or any of the other clueful post some examples or url's for same?
Thanks!
d