Re: sending bytes to parallel port

2006-07-29 Thread Grant Edwards
On 2006-07-29, Timothy Smith <[EMAIL PROTECTED]> wrote: >> I'd particularly recommend taking a look at the pyparallel >> module found here: > yes, i did try pyparallel however it will not install on > freebsd, setup.py errors. Ah. I guess freebsd wasn't one of the systems listed on the pyparalle

Re: sending bytes to parallel port

2006-07-29 Thread H J van Rooyen
"Timothy Smith" <[EMAIL PROTECTED]> wrote: | Grant Edwards wrote: | > On 2006-07-28, Timothy Smith <[EMAIL PROTECTED]> wrote: | > | > | >> i've been trying to send an 8 byte string to my parallel port | >> under freebsd. the purpose is it to control a relay board. the | >> board simply responds t

Re: sending bytes to parallel port

2006-07-29 Thread Timothy Smith
Diez B. Roggisch wrote: >> *sigh* >> if only pyparallel would install >> > > *sigh* If only you said _what_ failed we could maybe help you make it > work... :) > > Diez > titan# python setup.py install running install running build running build_py Traceback (most recent call last): File

Re: sending bytes to parallel port

2006-07-29 Thread Diez B. Roggisch
> *sigh* > if only pyparallel would install *sigh* If only you said _what_ failed we could maybe help you make it work... :) Diez -- http://mail.python.org/mailman/listinfo/python-list

Re: sending bytes to parallel port

2006-07-28 Thread Timothy Smith
Diez B. Roggisch wrote: >> >>> fd = open('/dev/ppi0','w') >> >>> fcntl.ioctl(fd.fileno(),'PPISCTRL',1000) >> Traceback (most recent call last): >> File "", line 1, in ? >> TypeError: an integer is required >> >> i guess i'm failing to properly define the int i need for the 8byte >> value in

Re: sending bytes to parallel port

2006-07-28 Thread Diez B. Roggisch
> > >>> fd = open('/dev/ppi0','w') > >>> fcntl.ioctl(fd.fileno(),'PPISCTRL',1000) > Traceback (most recent call last): > File "", line 1, in ? > TypeError: an integer is required > > i guess i'm failing to properly define the int i need for the 8byte > value ineed to send the port to set

Re: sending bytes to parallel port

2006-07-28 Thread Timothy Smith
Dennis Lee Bieber wrote: > On Sat, 29 Jul 2006 13:59:02 +1000, Timothy Smith > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > > >> and yes i've done quite a bit of googling, i never expected it to be >> this difficult. i've done work with serial ports before. never parallel

Re: sending bytes to parallel port

2006-07-28 Thread Timothy Smith
Grant Edwards wrote: > On 2006-07-29, Grant Edwards <[EMAIL PROTECTED]> wrote: > > >> I'd particularly recommend taking a look at the pyparallel >> module found here: >> >> http://pyserial.sourceforge.net/ >> > > Oops, there isn't actually a link to pyparallel from that page > (I swear th

Re: sending bytes to parallel port

2006-07-28 Thread Timothy Smith
Grant Edwards wrote: > On 2006-07-28, Timothy Smith <[EMAIL PROTECTED]> wrote: > > >> i've been trying to send an 8 byte string to my parallel port >> under freebsd. the purpose is it to control a relay board. the >> board simply responds to the output byte coming from the port. >> eg. 0001

Re: sending bytes to parallel port

2006-07-28 Thread Grant Edwards
On 2006-07-29, Grant Edwards <[EMAIL PROTECTED]> wrote: > I'd particularly recommend taking a look at the pyparallel > module found here: > > http://pyserial.sourceforge.net/ Oops, there isn't actually a link to pyparallel from that page (I swear there used to be). Here's the pyparallel page:

Re: sending bytes to parallel port

2006-07-28 Thread Grant Edwards
On 2006-07-28, Timothy Smith <[EMAIL PROTECTED]> wrote: > i've been trying to send an 8 byte string to my parallel port > under freebsd. the purpose is it to control a relay board. the > board simply responds to the output byte coming from the port. > eg. 0001 will set pin 1 high and flick th

sending bytes to parallel port

2006-07-28 Thread Timothy Smith
hello people. i've been trying to send an 8 byte string to my parallel port under freebsd. the purpose is it to control a relay board. the board simply responds to the output byte coming from the port. eg. 0001 will set pin 1 high and flick the relay open. todate i've attempted this with mer