[Twisted-Python] question : How to listen to USB-HID

Werner Thie werner at thieprojects.ch
Sat May 18 04:27:15 MDT 2013


Hi

Maybe you get some clues about twisted with USB/serial stuff from

http://code.google.com/p/pywws/source/browse/trunk/pywws/WeatherStation.py?r=504

which is a twistification of the pywws weather station code.

HTH, Werner

On 5/18/13 10:50 AM, bino at indoakses-online.com wrote:
> Dear All
> C/Q Tim Allen
> I really appreciate your response
>> There's no (easy) way to hook a Twisted program up to an arbitrary
>> USB-HID device; the best you could do would be to write a Twisted
>> program that communicates with stdin/stdout, then run that program in
>> a window and remember not to Alt-Tab to another program while your
>> Digistump is doing stuff.
>>
>> It sounds like a better solution would be to make sure you use the
>> DigiUSB library to implement the standard USB Serial protocol and then
>> continue using your existing code.
>>
>
> well ...
>
> There is two clue that I got from digistump forum
> 1. https://gist.github.com/claws/2464017
> I think that is the nearest to twisted , but not the most easy.
>
> 2.
> https://github.com/digistump/DigisparkExamplePrograms/blob/master/Python/DigiUSB/source/receive.py
> With this one I thing I can rout the output to UDP and receive it easily
> in twistd
>
> Sincerely
> -bino-
>
>
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>





More information about the Twisted-Python mailing list