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?
Asked
Active
Viewed 1,793 times
13
-
Greatt question – JVarhol Feb 12 '14 at 19:55
-
Atmel studio uses c++ right? Porting the Ethernet library cant be that hard. – TheDoctor Feb 12 '14 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 Feb 13 '14 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). – Connor Wolf Mar 04 '14 at 01:33
1 Answers
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…
zmo
- 1,518
- 10
- 16
-
2You 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. – Connor Wolf Mar 04 '14 at 01:36
-
You mean the Visual Micro plugin for Atmel Studio? And with that make a TCP/IP server with the EthernetServer class? – Bob Stein Mar 05 '14 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 Mar 05 '14 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 Mar 06 '14 at 21:58
-
This solution means I'd give up ASF (Atmel Studio Framework) correct? – Bob Stein Mar 06 '14 at 22:02
-
Er… what are you actually asking? are you asking about the SAM3X Ethernet features, or using an ethernet shield on the Due? Anyway, that does not mean you have to give up ASF, just to complete it with parts of the Arduino framework. – zmo Mar 06 '14 at 22:11
-
Your answer says "import the arduino libraries". Is that possible in a project that includes ASF? I've only managed to be able to use one or the other, by
New | ProjectorNew | Arduino Project. If it isn't too noob a question, can you walk me through the exact steps how to import the arduino libraries in a project that uses ASF? – Bob Stein Mar 07 '14 at 15:16