If the device is a USB -> parallel converter, it should behave like a
parallel port, so why don't try to use it as a parallel port?

2011/7/8 Emilio Bellini <emilio.bell...@gmail.com>:
> Hi all,
> I'm sorry if this is a stupid question.
> I want to control a circuit, which has 8 relè, and I want to switch them
> on/off via software. Originally my idea was to control it using a parallel
> port, but my laptop hasn't it. So, I'm trying to use an USB port with an USB
> to Parallel converter. I can see the Device, and also I'm able to send some
> data to the parallel port, but I don't know how to communicate efficently
> with the Device. If I use dev.write(1, 'test', 0) or dev.write(1, '1', 0),
> the result is the same: the 8 pins of my parallel port are set on the state
> '00001000'.
> The question is: is there a simple way to control the state of the 8 bits?
>
> Thank you in advanced for any hint!
> Best regards,
> Emilio
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> _______________________________________________
> pyusb-users mailing list
> pyusb-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pyusb-users
>
>



-- 
Best Regards,
Wander Lairson Costa

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to