Using Camera module, FTP Client on WIZwiki-W7500, send the image data to FTP Server.

Dependencies:   CameraC328 SDFileSystem WIZnetInterface mbed-src

Prerequisite

This example send the image data acquired from the camera to an FTP Server.

To implement this function, you need a Platform board, network Interface board, camera module.

Available camera modules are C328, LJ-DSC02. Because the cameras listed above all have similar internal protocols.

This example uses LJ-DSC02.

  • WIZwiki-W7500 from WIZnet (Platform board and Ethernet I/F board)
  • LJ-DSC02 (Camera module)
  • FTP Server(AL FTP)
  • Micro SD Card

Hardware Configuration

/media/uploads/Ricky_Kwon/camera.png

  • connect Ethernet Cable & USB Cable
  • connect Camera module

Software

Init FTP Server information

static char ID[]={"abc"};                   //Set FTPServer Login ID
static char PASSWORD[]={"123"};             //Set FTPServer Login Password
const char ftpServer_control_ip_addr[] = "192.168.1.2";

Caution

Must fix FTP server ip, id, pass

Files at this revision

API Documentation at this revision

Comitter:
Ricky_Kwon
Date:
Wed Apr 12 02:06:13 2017 +0000
Parent:
4:573ca8ea6629
Commit message:
update all library

Changed in this revision

WIZnetInterface.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 573ca8ea6629 -r 5cc3d57c04f8 WIZnetInterface.lib
--- a/WIZnetInterface.lib	Fri Apr 07 03:50:03 2017 +0000
+++ b/WIZnetInterface.lib	Wed Apr 12 02:06:13 2017 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/teams/WIZnet/code/WIZnetInterface_Ricky/#5a1969320666
+http://developer.mbed.org/teams/WIZnet/code/WIZnetInterface/#c91884bd2713
diff -r 573ca8ea6629 -r 5cc3d57c04f8 main.cpp
--- a/main.cpp	Fri Apr 07 03:50:03 2017 +0000
+++ b/main.cpp	Wed Apr 12 02:06:13 2017 +0000
@@ -80,10 +80,10 @@
     pc.printf("Hello Home Security World!\r\n"); 
       
     uint8_t mac_addr[6] = {0x00, 0x08, 0xdc, 0x12, 0x34, 0x45};
-    const char ip_addr[] = "192.168.1.123"; 
+    const char ip_addr[] = "192.168.0.123"; 
     const char mask_addr[] = "255.255.255.0"; 
-    const char gateway_addr[] = "192.168.1.1"; 
-    const char ftpServer_control_ip_addr[] = "192.168.1.2";
+    const char gateway_addr[] = "192.168.0.1"; 
+    const char ftpServer_control_ip_addr[] = "192.168.0.2";
     
     
     EthernetInterface eth;