2012/1/30 bibek chitrakar :
> Thanks Wander,
> Device is not reset this time. I have removed the reset line.
> But I am not receiving any response from the printer.
> Do I have to delay some time for reading or
> the recieved array is to be manipulated some way.
> There is another code example that
Thanks Wander,
Device is not reset this time. I have removed the reset line.
But I am not receiving any response from the printer.
Do I have to delay some time for reading or
the recieved array is to be manipulated some way.
There is another code example that is in C and its working fine.
*Code:*
2012/1/30 bibek chitrakar :
> Hello Wander,
>
> I can write into the device. As you said earlier it was a bulk transfer.
> I have tried with this code. But the return is an array of zeros.
> Does it require a loop or something I am missing.
>
> Code
> #!/usr/bin/python
> import sys
>
> import usb.c
Hello Wander,
I can write into the device. As you said earlier it was a bulk transfer.
I have tried with this code. But the return is an array of zeros.
Does it require a loop or something I am missing.
*
*
*Code*
#!/usr/bin/python
import sys
import usb.core
import usb.util
VENDOR_ID = 0x0dd4
PR
2012/1/26 bibek chitrakar :
> Hello Wander,
>
> Now I am very much confused about everythin going on with Pyusb.
> 1. First with installation.
> I installed > libusb-1.-00 from synaptic
> >
> 'http://sourceforge.net/projects/pyusb/files/latest/download'
>
Hello Wander,
Now I am very much confused about everythin going on with Pyusb.
1. First with installation.
I installed > libusb-1.-00 from synaptic
> '
http://sourceforge.net/projects/pyusb/files/latest/download'
got the pyusb files, unzipp
2012/1/26 bibek chitrakar
>
>> I am not sure if the endpoint is of interrupt type.
>> running usbenum.py from
>> 'http://wiki.erazor-zone.de/wiki:projects:python:pyusb:setup:examples:usbenum'
>> gave following output (I removed other listings)
>>
>> Device: 004
>> Device class: 0
>> Device su
On Wed, Jan 25, 2012 at 8:01 PM, Wander Lairson Costa <
wander.lair...@gmail.com> wrote:
> 2012/1/25 bibek chitrakar :
> > I have modified my code a bit adding class.
> > Still the same problem.
> > Why cant I write into the device since the device has been detected.
> > Here's my code
> >
> > ###
2012/1/25 bibek chitrakar :
> I have modified my code a bit adding class.
> Still the same problem.
> Why cant I write into the device since the device has been detected.
> Here's my code
>
>
>
> #!usr/bin/python
>
> import usb
> import time
I have modified my code a bit adding class.
Still the same problem.
Why cant I write into the device since the device has been detected.
Here's my code
#!usr/bin/python
import usb
import time
class HardwareMonitor_printer(object):
def
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi
On 01/24/2012 12:04 PM, bibek chitrakar wrote:
> Hello, === The output of program :
>
> $ sudo python hardware_monitor_printer.py Traceback (most recent
> call last): File "hardware_monitor_printer.py", line 15, in
> d
Hello,
This is my code I am currently working with. I didn't found helpful links
neither better tutorials.
This code is compiled after immense searches.
#!/usr/bin/python
import usb
vendor_id = 0x0dd4
product_id = 0x01a8
busses = usb.busses()
for bus in busses:
devices = bus.devices
for de
12 matches
Mail list logo