Using Camera module, FTP Client on WIZwiki-W7500, send the image data to FTP Server.
Dependencies: CameraC328 SDFileSystem WIZnetInterface mbed-src
Fork of Camera_FTP_WIZwiki-W7500 by
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
- 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
Diff: main.cpp
- Revision:
- 4:573ca8ea6629
- Parent:
- 3:55b7af329281
- Child:
- 5:5cc3d57c04f8
diff -r 55b7af329281 -r 573ca8ea6629 main.cpp --- a/main.cpp Wed Jul 29 01:39:43 2015 +0000 +++ b/main.cpp Fri Apr 07 03:50:03 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.0.123"; + const char ip_addr[] = "192.168.1.123"; const char mask_addr[] = "255.255.255.0"; - const char gateway_addr[] = "192.168.0.1"; - const char ftpServer_control_ip_addr[] = "192.168.0.2"; + const char gateway_addr[] = "192.168.1.1"; + const char ftpServer_control_ip_addr[] = "192.168.1.2"; EthernetInterface eth;