Hi
My UI in python is successfully able to set configuration of the USB
device. So now I'm trying to write data to the USB device. I'm setting
configuration 3, Using endpoint OUT address 0x01 of interface number 0.
I've written the following code snippet in python.
pingu = usb.core.find(idVendor = 0x04D8, idProduct = 0xFEAA)
if pingu is not None:
self.label_3.SetLabel("PIC18F4550 Device Found.")
#USB Routine starts here
pingu.set_configuration(3)
pingu.write(1, 'D', 0)
On the UI side there are no errors. On the USB target PIC 18F4550, I've
written a C code that lights an LED when a USB data is received, and then I
check if 'D' is received or not. The target LED glows, indicating that
something is received in the USB endpoint but the comparison shows not
equal. What could be wrong? Anything with the character format in python or
C? Both follow ASCII right?
Please help.
--
Regards,
Debapratim Ghosh
IIT Bombay
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users