13

What hardware and software solutions work and what are the tradeoffs for connecting an Arduino Due to the internet? I gather the ethernet hardware is much cheaper than WiFi hardware (€29 versus €69). In either case (wired or wireless), what software stacks and drivers work under AtmelStudio?

4
  • Greatt question
    – JVarhol
    Commented Feb 12, 2014 at 19:55
  • Atmel studio uses c++ right? Porting the Ethernet library cant be that hard.
    – TheDoctor
    Commented Feb 12, 2014 at 23:21
  • Hoping so @TheDoctor. I see an Ethernet PHY component and driver in the ASF Wizard but no TCP/IP pieces. In answer to your question, yes, I see C++ hints everywhere but I've only used C so far.
    – Bob Stein
    Commented Feb 13, 2014 at 17:22
  • 1
    @BobStein-VisiBone - That PHY component requires a specific external ethernet PHY (A DM9161A). It will not work with the arduino ethernet board/shield, which uses a Wiznet W5100 PHY/coprocessor). Commented Mar 4, 2014 at 1:33

1 Answer 1

2

Well, your best bet is to import the arduino libraries in your Atmel Studio project. Then you'll be able to use existing code to connect to the "traditional" Ethernet Shield using SPI.

Though, the Sam 3X features an hardware ethernet that is not wired, unlike the MBed LPC1768… Sadly that's the ethernet PHY component you saw, but won't be able to actually use…

7
  • 2
    You could always buy a Taijiuino Due, which is a 3rd party due clone that is code-compatible, but has the ethernet IO lines broken out. Commented Mar 4, 2014 at 1:36
  • You mean the Visual Micro plugin for Atmel Studio? And with that make a TCP/IP server with the EthernetServer class?
    – Bob Stein
    Commented Mar 5, 2014 at 16:39
  • I guess so, though I've not tried that. You may also include the sources or add headers + libraries as dependencies in your project (which is what I do)
    – zmo
    Commented Mar 5, 2014 at 16:47
  • What .c .cpp .h files do you use @zmo? What kind of TCP/IP features do you have, or are they merely Ethernet?
    – Bob Stein
    Commented Mar 6, 2014 at 21:58
  • This solution means I'd give up ASF (Atmel Studio Framework) correct?
    – Bob Stein
    Commented Mar 6, 2014 at 22:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.