[Tutor] packets_USB_python

Alan Gauld alan.gauld at btinternet.com
Mon Jun 4 16:10:52 CEST 2012


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,

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/



More information about the Tutor mailing list