0

Grand Central Board and Ethernet
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Grand Central Board and Ethernet

by dgreenberg on Tue Feb 05, 2019 5:03 pm

Is there a way to add Ethernet capability to the Grand Central board?

dgreenberg
 
Posts: 7
Joined: Sun Dec 30, 2018 12:24 pm

Re: Grand Central Board and Ethernet

by adafruit_support_mike on Thu Feb 07, 2019 4:25 am

The Seeed Studios Ethernet Shield should work:

https://www.adafruit.com/product/2971

So should the Ethernet FeatherWing, but connecting it would take a bit more wiring:

https://www.adafruit.com/product/3201

adafruit_support_mike
 
Posts: 57106
Joined: Thu Feb 11, 2010 2:51 pm

Re: Grand Central Board and Ethernet

by dgreenberg on Thu Feb 07, 2019 9:40 am

Thanks very much. This is helpful.

dgreenberg
 
Posts: 7
Joined: Sun Dec 30, 2018 12:24 pm

Re: Grand Central Board and Ethernet

by Adafruit_UMjT7KxnxP8YN8 on Wed Feb 13, 2019 8:01 pm

The Wiznet W5500 board costs $10 less and runs at higher SPI speeds than the SEEED board.

Adafruit_UMjT7KxnxP8YN8
 
Posts: 43
Joined: Tue Jul 17, 2018 1:28 pm

Re: Grand Central Board and Ethernet

by pbruno on Mon May 20, 2019 10:26 am

Hello,

Per this thread, the seeed board *should* work. Has adafruit tested it on the SAMD51?

I have tested a seeed W5500 based shield (the one sold here) on both the Metro M4 and the Grand Central M4, and it is not being recognized by the micro board. Same shield on an Arduino MEGA, Due, and Uno works correctly. No joy on either M4. Using the Telnet client chat server example on Arduino IDE - same exact code all around. All optimizations / funny business disabled on M4 compiler.

Am I missing something? Please adafruit test this combo and figure out what's up ASAP.

Edit: W5100 based shield doesn't work either. Will test WINC1500 Wi-Fi shield next...
Edit2: WINC1500 Wi-Fi shield works on Metro M4 ok. Also FYI, using all the most recent board and code libraries in the IDE.

pbruno
 
Posts: 52
Joined: Tue Sep 27, 2016 12:15 pm

Re: Grand Central Board and Ethernet

by pbruno on Wed May 22, 2019 6:24 pm

I'm thinking its an incompatibility with the library. Requesting Adafruit test this combo and report back.

Edit: Tested with SD card - it can be read and written, so I am confident it is not the shield hardware nor connectivity that is the problem. It must be an Ethernet library issue.
Edit2: Tested with [deprecated] Ethernet2 library... works. Reverting to the current Ethernet library (which is newer and accommodates both W5100 and W5500)... doesn't work.

pbruno
 
Posts: 52
Joined: Tue Sep 27, 2016 12:15 pm

Re: Grand Central Board and Ethernet

by danhalbert on Thu May 23, 2019 9:19 am

@pbruno Please file an issue on the library if you think it should work.

danhalbert
 
Posts: 1626
Joined: Tue Aug 08, 2017 12:37 pm

Re: Grand Central Board and Ethernet

by pbruno on Thu May 23, 2019 3:17 pm

danhalbert wrote:@pbruno Please file an issue on the library if you think it should work.


I will, but would certainly like confirmation. Any chance you could grab a board and a shield and duplicate the test (running chat server example)?

pbruno
 
Posts: 52
Joined: Tue Sep 27, 2016 12:15 pm

Re: Grand Central Board and Ethernet

by danhalbert on Thu May 23, 2019 3:54 pm

Please go ahead and file the issue, so we know exactly what you tried and can duplicate your tests. Testing with Adafruit shields is best, because those we'll support, but also report your third-party board tests.

danhalbert
 
Posts: 1626
Joined: Tue Aug 08, 2017 12:37 pm

Re: Grand Central Board and Ethernet

by adafruit2 on Thu May 23, 2019 8:26 pm

i just plugged in a seeed ethernet shield into a GC, loaded up Ethernet2 webcliente example and it 'just worked'

Code: Select all | TOGGLE FULL SIZE
connecting...
connected
HTTP/1.1 200 OK
Content-Type: text/html; charset=ISO-8859-1
Date: Fri, 24 May 2019 00:24:25 GMT
Expires: -1
Cache-Control: private, max-age=0
P3P: CP="This is not a P3P policy! See g.co/p3phelp for more info."
Server: gws
X-XSS-Protection: 0
X-Frame-Options: SAMEORIGIN
Set-Cookie: 1P_JAR=2019-05-24-00; expires=Sun, 23-Jun-2019 00:24:25 GMT; path=/; domain=.google.com
Set-Cookie: CGIC=; expires=Wed, 20-Nov-2019 00:24:25 GMT; path=/complete/search; domain=.google.com; HttpOnly
Set-Cookie: CGIC=; expires=Wed, 20-Nov-2019 00:24:25 GMT; path=/search; domain=.google.com; HttpOnly
Set-Cookie: NID=184=vzzv1mDwNBFTAFzgfwGmtvoXFK1HYpuWtX-hbnCMHl0IpnsvxK7zuyd10YFnKvcYbRHxeDrhGZYJ3XeqojyVyI1KxYxMV3o2H6XCInA4a92A5vlXvddTsHgb8f3voSuKVhWRkdp_d0I3kEemOIqj2RdhO3kz5RS3lKvg7KqG_RE; expires=Sat, 23-Nov-2019 00:24:25 GMT; path=/; domain=.google.com; HttpOnly
Accept-Ranges: none
Vary: Accept-Encoding
Connection: close

<!doctype html>....

adafruit2
Site Admin
 
Posts: 18327
Joined: Fri Mar 11, 2005 7:36 pm

Re: Grand Central Board and Ethernet

by pbruno on Thu May 23, 2019 8:32 pm

Yes, like I said above, Ethernet2 works... but that library is now deprecated.

If you recall, 'Ethernet' library initially only worked with W5100, and Ethernet2 was written to accommodate W5500 chips. Then the libraries were merged to be hardware agnostic, creating Ethernet only going forward, with Ethernet2 being obsoleted: https://github.com/adafruit/Ethernet2

pbruno
 
Posts: 52
Joined: Tue Sep 27, 2016 12:15 pm

Re: Grand Central Board and Ethernet

by adafruit2 on Thu May 23, 2019 8:37 pm

maybe you just need to set up the SS Pin right?
https://github.com/arduino-libraries/Et ... 00.cpp#L22

adafruit2
Site Admin
 
Posts: 18327
Joined: Fri Mar 11, 2005 7:36 pm

Re: Grand Central Board and Ethernet

by pbruno on Thu May 23, 2019 8:55 pm

Don't be silly... this sets it. Plus that code is not used.

Code: Select all | TOGGLE FULL SIZE
#else
#define SS_PIN_DEFAULT  10
#endif


Also, in the ChatServer example, I have tried setting this too.
Code: Select all | TOGGLE FULL SIZE
Ethernet.init(10);  // Most Arduino shields


What else ya got?

pbruno
 
Posts: 52
Joined: Tue Sep 27, 2016 12:15 pm

Re: Grand Central Board and Ethernet

by pbruno on Thu May 23, 2019 9:08 pm

Well... you fixed it. Thanks!

I ASSumed that utility code wasn't used but I looked through the code and saw that it indeed [very much] was, and that specific micros were defined. I added the SAMD51 definitions, and bingo-bongo-bango... we're running. Thanks for giving me direction!

pbruno
 
Posts: 52
Joined: Tue Sep 27, 2016 12:15 pm

Re: Grand Central Board and Ethernet

by adafruit2 on Thu May 23, 2019 9:21 pm

maybe wait a few moments before calling someone silly? :)

adafruit2
Site Admin
 
Posts: 18327
Joined: Fri Mar 11, 2005 7:36 pm

Please be positive and constructive with your questions and comments.