Network/IP Camera Set up and Re-programming Leopard Imaging Inc. Jan, 2013.
Overview Leopard Imaging HD IP Camera Modules are a total solution for High Definition IP Camera solution based on TI DM368 with variety of CMOS sensors from Aptina, Omni Vision, Sony, Panasonic and AltaSens. These standard IP Camera modules fit into standard CCTV enclosures. The HD IP Camera Module is a time-to-market solution for end customers as well as IP Camera manufacturers. This document is provided as a brief introduction of the hardware components that are provided with the HD IP Camera Modules as well as the procedures to set up the HD IPCamera application. The document will also provide the procedures to program the firmeware for HD IPCamera Module. For more detailed information about the HD IP Camera Modules, please refer to the User Guide and other documents. 2
Contents Overview... 2 What's in the box... 4 1. Set up the IP Camera... 5 2. Re-program the firmware... 7 2.1 Set up Putty on host PC for serial communication... 7 2.2 Setup TFTP Server on Windows... 9 2.3 Set up the Hardware Environment... 10 2.4 Program the firmware... 11 3. Run Demo... 15 Default User Name and Password... 16 Appendix... 17 1. Get the IP address on Windows XP... 17 2. Install Add-on to get the IE Interface... 19 3. How to use WiFi... 21 3
What s in the Box Leopard Imaging Inc LNC-MXX IP Camera Module 12V DC Power Adapter Serial Cable Serial Adapter Board IP camera module includes: Sensor Board Main Board Power Board IRIS cable 4
1. Set up IP Camera Module 5
WiFi Module (Optional): Leopard Imaging Inc 6
2. Re-program the firmware Leopard Imaging Inc To set up the environment, program the firmware, and test the hardware, we need the following: Host PC with serial interface (or adapter) Network cable Serial cable Serial adapter board DC 12V Power adapter IP Camera. Below is the procedure to set up the environment. (Hardware setup is in part 2.3) 2.1 Set up Putty on host PC for serial communication Putty is recommended to be used in order to read serial information from the board. It can be downloaded from the link below. Other software such as Hyperterminal or tera term can also be used. http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Once Putty is installed, open it and select Serial. Configure it as shown below. *Note: You can find the COM port number in the Device Manager. 7
After setting up the parameter, click open and you'll see the interface shown below: 8
2.2 Setup TFTP Server on Windows We need the TFTP protocol downloaded in order to program the uimage and cramfsimage onto the board. If the TFTP server is already set up, you can skip this part. If not, we recommend using the TFTPD32, which is the TFTP server on Windows OS. 2.2.1 The software can be downloaded from http://tftpd32.jounin.net/ You can download 32bit or 64bit according to your computer. (We use 64 bit OS). 2.2.2 Install TFTP Server Click "tftpd64 standard edition (installer) (599KB)". *Note: If you do not want to keep the EXE file, click "Run". 9
Click "I Agree", then click "Next"---->"Install" to install this server. Once installation is complete, you will notice a new folder with the name: Tftp64 located under C: /Program Files We'll come back to how to use this software later after the hardware is connected properly. 2.3 Set up the Hardware Environment 2.3.1 Setup the IP Camera (please refer to Part 1) 2.3.2 Plug in the Serial Cable Plug serial adapter board to J21 of Main Board, then plug serial cable to adapter board. 10
Plug the other side of the serial cable to serial interface (or adapter) on the Host PC. 2.3.3 Plug in the network cable 2.4 Program the firmware (uimage, cramfs, cramfs_root, data1, vendor) 2.4.1 Plug in the 12V power adapter IMPORTANT WARNING: Always UNPLUG the power from the board if you need to remove or attach ANY of the camera parts/cords. You may cause serious damage to the board if you ignore this warning. 11
After the power is inserted, the serial port should start the log information. (To Putty on Host machine) Press any key immediately to stop the auto boot at the very beginning and you should see the u-boot prompt (Leopard 365 :>). 2.4.2 Set up the boot environment In putty (or another serial interface), enter the commands below to set the boot environment variables and save them. (*Note: All setenv and saveenv commands indicate a new line and should be on separate lines. Enter each line, one at a time followed by pressing Enter on the keyboard. When you see < > you need to input your own unique specifications here. Do not include the < > brackets in the putty screen commands.) 2.4.3 Set u-boot environment: setenv ipaddr <board_ip> setenv serverip <TFTP_server_IP> setenv bootcmd 'nboot 0x80000000 0 0x500000;bootm 0x80000000' setenv bootargs console=ttys0,115200n8 root=/dev/mtdblock3 rootfs=cramfs mem=56m ip=none eth=00:00:00:00:00:8c mtdparts=nand_davinci.0:3m(bootloader)ro,2m(params),5m@5242880(kernel1),24m@10 485760(rootfs),2m@35651584(private),36m@37748736(filefs),-@75497472(vendor) saveenv Note: The value of eth can be changed to change the IP address which you will get in part 3.3. You can set the <board_ip> by yourself, e.g. 192.168.0.30 2.4.4 Download the uimage, cramfsimage, cramfs_root, file data1 and vendor to the board and save them on NAND flash. Make sure the files: uimage, cramfsimage, cramfs_root, data1 and vendor sit on the host PC and open the TFTPDxx that was just downloaded. Browse the Current Directory to the one that holds the uimage and file system to make sure the server interface has the correct IP (it should be the serverip saved on the board). 12
On the board (Putty), enter the commands below to download the binary and save them onto the board: tftp 80000000 <uimage_name> nand erase 500000 400000 nand write 80000000 500000 400000 tftp 82000000 <cramfs_name> nand erase 2400000 1000000 nand write 82000000 2400000 1000000 tftp 82000000 <cramfs_root_name> nand erase a00000 1000000 nand write 82000000 a00000 1000000 tftp 80000000 <data1_name> nand erase 2200000 200000 nand write 80000000 2200000 200000 tftp 80000000 <vendor_name> nand erase 4800000 200000 nand write 80000000 4800000 200000 13
Note: If the IP camera is running with WiFi, the following command is required. setenv pro_extent W 2.4.5 Set sensor Mode Please set the sensor mode with the following commands based on your sensor board. LNCQ111OV2715 LNCQ111IMX036 LNCQ111IMX122 LNCQ111MN34041 LNCQ111AR0331 LNCQ111AR0330 LNCQ112IMX136 LNCQ112AL30210 LNCQ121 M034 LNCQ122OV10633 LNCQ122IMX104 setenv pro_model LNC-Q10000-OV2715 setenv pro_sensor OV2715_2MP setenv pro_model LNC-Q10000-IMX036 setenv pro_sensor IMX036_3MP setenv pro_model LNC-Q10000-IMX122 setenv pro_sensor IMX122_2_3MP setenv pro_model LNC-Q10000-MN34041 setenv pro_sensor MN34041_2.1MP setenv pro_model LNC-Q11000-AR0331 setenv pro_sensor AR0331_3.1MP setenv pro_model LNC-Q11000-AR0330 setenv pro_sensor AR0330_3.1MP setenv pro_model LNC-Q10000-IMX136 setenv pro_sensor IMX136_2_3MP setenv pro_model LNC-Q10000-AL30210 setenv pro_sensor AL30210_2_7MP setenv pro_model LNC-Q00000-M034 setenv pro_sensor MT9M034_1.2MP setenv pro_model LNC-Q01000-OV10633 setenv pro_sensor OV10630_1MP setenv pro_model LNC-Q10000-IMX104 setenv pro_sensor IMX104_1_3MP Then do saveenv to save the setting. 14
3. Run Demo 3.1 After you burn the firmware, re-plug in the power adapter (or enter the command boot ) to run the demo. 3.2 Log information will be printed from the serial window showing the status of when booting the demo. 3.3 Get the IP address. (If the Host OS is Windows XP, please refer to Appendix) Open a folder --> Network (left side bar)--> right click You will get the IP address. (e.g. http://192.168.0.172/) Leopard LNC-XXXXX --> Properties After you get the IP address, open Internet Explorer and input the IP address. 15
You will get the following window. Leopard Imaging Inc Default User Name: admin Default Password: admin Click OK. You will be able to see the video streaming in an interface that looks like the picture shown below. (You may need to install some add-ons to get the live video if you run this demo at the first time, please refer to Appendix 2 ) 16
Appendix Note:To get the IP address of the HD IP Camera, please make sure the UPnP protocol is enabled on the Windows XP computer. 1. Get the IP address on Windows XP Go to Start--> My Network Places --> click Show icons for networked UPnP devices--> right click Leopard LNC-XXXXX --> Properties You will get the IP address. (e.g. http://192.168.0.176/) 17
18
2. Install Add-on to get the IE Interface Leopard Imaging Inc Open IE, Go to Internet Options Security Trusted sites. Click Sites, and add the IP address of camera to Websites. For example: http://192.168.0.* 19
Click Custom level, enable Download unsigned ActiveX controls and Initialize and script ActiveX controls not marked as safe for scripting. On IE interface (after login), reload the page. If you get a message above, click Install. After install the ActiveX control, you will see the live video. 20
3. How to use WiFi Leopard Imaging Inc If there is an optional wifi module on your camera board, you can use wifi function to run this camera. For the first time you use wifi function, you need to enter IE interface with network cable and go to Network Setting WIFI Access to select the wifi ID and enter password. After click submit, the camera will reboot. After the camera boots up, you can get the IP address from the serial log screen ( the wifi IP address is behind the IP address from network cable) or the UPnP device of the computer which connects to the wifi router (please refer to previous section Run Demo). You can also set the static IP of wifi. Go to WIFI Settings. 21
Select Static IP, enter the static IP address, and click submit. The IP camera will reboot in next step. After the camera boots up, the static IP address can be used to open the IE interface. 22