[Tutor] packets_USB_python

BILAL Mustapha Mustapha.Bilal at imag.fr
Mon Jun 4 16:40:59 CEST 2012


Le 04/06/2012 16:10, Alan Gauld a écrit :
> On 04/06/12 14:58, BILAL Mustapha wrote:
>
>> - Process 2 receives icmpv6 (or any packet) from process1 and retransmit
>> it to a serial link (USB)
>> - Process 2 receives icmpv6 (or any packet) from the serial link (USB)
>> and restransmit it to process 1.
>
> Oddly, Python does not have ICMP support in its standard library 
> however there is an icmpv6 module on Activestate:
>
> http://code.activestate.com/recipes/409689-icmplib-library-for-creating-and-reading-icmp-pack/ 
>
>
> And there is also a module for reading/writing to usb ports (pyusb)...
>
> http://pyusb.sourceforge.net/docs/1.0/tutorial.html
>
> hth,
>
Thank you for your reply and for the useful links.

However Can't I use the popen() to lunch the process1 and write on its 
standard input? same thing for the process1 when it wants to sends 
infos(or packets) to process2 then it will use its standard output!

Best regards


More information about the Tutor mailing list