chipKIT® Development Platform

Inspired by Arduino™

wifi and ehternet together

Created Fri, 05 Apr 2013 16:25:45 +0000 by thepascalix


thepascalix

Fri, 05 Apr 2013 16:25:45 +0000

Hi at all, i'm a newbie in this type of embedded system. So i wand to know if is possible to connect and use together the network and wifi shield (coccecting the relative spi for wifi shield)

thanks a lot for your disponition


KeithV

Mon, 15 Apr 2013 16:33:39 +0000

Get the Digilent Network library and use DNETcK and DWIFIck.

http://www.digilentinc.com/Products/Detail.cfm?NavPath=2,892,942&Prod=CHIPKIT-NETWORK-SHIELD


thepascalix

Tue, 16 Apr 2013 12:40:48 +0000

hi KeithV and thanks for your response. I've just download and investigate API and Pin configuration and i believe that is not possible to use together the ethernet and wifi, understood as a communication bethween the etherne port of network shield and wifi communication by the MRF24WG on wifi shield


KeithV

Tue, 16 Apr 2013 14:52:08 +0000

Sure you can, I am doing it successfully right now. I am running a webcam app where I store pictures and pages on the SD card and view it over the internet via WiFi. If you apply the changes I suggested, you should be able to do it.


thepascalix

Tue, 16 Apr 2013 15:28:23 +0000

hi, you are a genious :)

In my investigate for using together the two shild, i've read that the ethernet shild, when is active the LAN communication, its take the control of nay pins, situated on j15 connector (in max32 devkit). So, the pin 53,51,20 and 52 are used for the spi communication, so implies that the using of wifi shield is interrupted... Also, i've find in the source file "hardwareProfile.x" this code

// Network hardware
#define DWIFIcK_WiFi_Network
#include <NetworkProfile.x>
#include <CommonHardwareProfile.h>

#if defined(DNETcK_LAN_Hardware)
    #error Incompatible LAN hardware library included, specify WiFi hardware.
#elif !defined(DWIFIcK_WiFi_Hardware)
    #error A network hardware library must be included.
#endif

#endif // WIFI_HARDWARE_PROFILE_X

in which i've deducted the impossibility for using together the wifi and LAN communication...

I believe that my post description of my problem is not explained very well...

There is anyway or you have any suggestion for me?


KeithV

Mon, 22 Apr 2013 14:33:37 +0000

Yes, I understand your question much better now. Because of the traffic on the SD card and wifi issue I assumed that was your problem. Your question was a little confusing as both LAN (as you say) and WiFi are in fact both ethernet and LAN; it is just that WiFi attaches via 802.11 to the ethernet.

Enough of that. You are correct, the DNETcK library as it stands today can not support multiple MACs (Network interfaces). This is something that will be resolved in the future with a total re-write of the IP stack, but is not supported today. The underlying MLA does not support instances of MACs, so we are limited to 1 MAC (IP, LAN, ethernet, whatever) today.

Of course you can get two chipKITs, connect to two ethernets, and communicate to each other over a UART/SPI or something. Not ideal, but doable.