HTTP_SDCard_File_Server_WIZwiki-W7500 avec gestion des extensions MIME
Dependencies: SDFileSystem WIZnetInterface mbed STATIC_COLORS
Fork of HTTP_SDCard_File_Server_WIZwiki-W7500 by
WIZnet WIZwiki-W7500
http://www.wiznet.co.kr/product-item/w7500/
Windows serial configuration https://developer.mbed.org/handbook/Windows-serial-configuration https://developer.mbed.org/media/downloads/drivers/mbedWinSerial_16466.exe
How to write the firmware into WIZwiki-W7500 https://developer.mbed.org/teams/WIZnet/wiki/How-to-write-the-firmware-into-WIZwiki-W
Data Output using Serial Port https://blog.wiznettechnology.com/2015/08/14/wiznet-wizwiki-w7500-tutorial-exercise-2-data-output-using-serial-port/ http://wizwiki.net/wiki/doku.php?id=products:w7500:peripherals:uart
SDFileSystem Instanciation
SDFileSystem sd(PB_3, PB_2, PB_1, PB_0, "sd"); WIZwiki-W7500
Ethernet Initialization
eth.init () uses the eth.init (MAC) If you use DHCP instead, and when using a Static IP uses eth.init ((uint8_t *) MAC, IP, MASK, GATEWAY). This section uses a static IP.
- define MAC "\x
\x\x\x\x\x" Should be Replacedwith your MAC - define IP "192.168.77.100" Should belong with your lan.
- define MASK "255.255.255.0"
- define GATEWAY "192.168.77.1"
eth.init((uint8_t*)MAC); Use DHCP for WIZnetInterface eth.init((uint8_t*)MAC,IP,MASK,GATEWAY); IP,mask,Gateway
Also watch its pages, the initial contributor to the project For Import the example https://developer.mbed.org/teams/WIZnet/code/HTTP_SDCard_File_Server_WIZwiki-W7500/
Wiki on ARMmbed https://developer.mbed.org/teams/WIZnet/code/HTTP_SDCard_File_Server_WIZwiki-W7500/wiki/HTTP_SDCard_File_Server_WIZwiki-W7500
WIZwiki_W7500 LED RGB :
LED1 = LED_RED = LEDR = PC_8
LED2 = LED_GREEN = LEDG = PC_9
LED3 = LED_BLUE = LEDB = PC_5
LED4 = LED_BLUE
Diff: main.cpp
- Revision:
- 5:27b09a0f3fb6
- Parent:
- 3:4f71a37a1ed2
- Child:
- 6:ca17ce165ebc
diff -r 6e648db29edf -r 27b09a0f3fb6 main.cpp --- a/main.cpp Sat May 10 02:25:42 2014 +0000 +++ b/main.cpp Wed Aug 06 03:35:59 2014 +0000 @@ -12,8 +12,8 @@ Serial uart(USBTX, USBRX); -//SDFileSystem sd(p5, p6, p7, p8, "sd"); // LPC1768 MBD2PMD -SDFileSystem sd(P0_18, P0_17, P0_15, P0_16, "sd"); // Seeeduino Arch Pro SPI2SD +SDFileSystem sd(p5, p6, p7, p8, "sd"); // LPC1768 MBD2PMD +//SDFileSystem sd(P0_18, P0_17, P0_15, P0_16, "sd"); // Seeeduino Arch Pro SPI2SD EthernetInterface eth; TCPSocketServer server; @@ -84,9 +84,10 @@ { // Serial Interface eth; uart.baud(115200); - uart.printf("RAPM Serial Started\n"); + uart.printf("Initializing\n"); // Check File System + uart.printf("Checking File System\n"); DIR *d = opendir("/sd/"); if (d != NULL) { uart.printf("SD Card Present\n"); @@ -95,14 +96,16 @@ } // EthernetInterface eth; + uart.printf("Initializing Ethernet\n"); eth.init(); //Use DHCP + uart.printf("Connecting\n"); eth.connect(); uart.printf("IP Address is %s\n", eth.getIPAddress()); // TCPSocketServer server; server.bind(HTTPD_SERVER_PORT); server.listen(); - uart.printf("RAPM Server Listening\n"); + uart.printf("Server Listening\n"); while (true) { uart.printf("\nWait for new connection...\r\n");