Hello from the USBKEY!

MyUSB Library, Projects Add comments

Good news!
After sloughing through my own TCP/IP stack for a week now, I’ve finally got some usable results. I’m now able to connect to the device’s simple shell through TELNET, and see a basic webpage when directing to the fixed IP address. It’s got a lot of problems to fix yet (haven’t added the code to create multiple TCP transactions when a large amount of data is sent at once, the webserver doesn’t terminate the connection) but it works damnit!

The code is somewhat simplified by the lack of a proper ARP system (at the moment). Because the USB AVR enumerates to the host as an actual, seperate network adapter, implementing a full ARP table would be pointless, as only the host computer is able to communicate with it. Still, despite the lack of a proper ARP, the code allows for multiple ports to be opened, and applications to consume and create TCP data as needed.

I have to say I’m quite proud of it, despite the god-awful code. I’m going to try to clean it up a bit first, then complete it and put it as a demo in the next MyUSB revision.

One Response to “Hello from the USBKEY!”

  1. casainho Says:

    Congratulations :-) :-)

    This are all new things to me… but I apreciate to read :-)

    Look, why not a new version of Arduino using this news USB AVRs and MyUSB Lib? :-)

    Bicycle LED POV using MyUSB Lib:
    http://code.google.com/p/bicycleledpov/

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in