loading

If you have a Foscam FI9821W that failed after you attempted to update the firmware, then you've come to the right place. Mine died a few months back and I finally got around to fixing it, but discovered that the resources were scattered all over the internet in a variety of different languages. So I'll save you a few hours of head scratching and hopefully help you bring that camera back to life.

These cameras are now well out of warranty, and since you're not going to be able to get them repaired/replaced, there is no worry of violating your warranty. You've really got nothing to lose, and maybe you'll learn something along the way, so just follow the instructions below and don't get too intimidated.

Materials:

FI9821W (These instructions and files are for Version 1 of the camera. While this process may work for V2 and others, they will use a different firmware so you'll have to find those yourself.)

USB to TTL Cable - If you already own something similar, it may work. It just needs a Ground, Transmit and Receive wire. If you're not an electronics geed, this one is only $6 on Amazon and comes with free prime shipping. https://smile.amazon.com/gp/product/B008AGDTA4/re...

(Optional) Some wire leads. I had some of breadboard leads laying around that worked perfectly. The terminals on the camera are tiny, and if you don't want to solder, a decent set of leads can actually just be pushed in and should work fine. Here are a ton more than you need on Amazon for $5: https://smile.amazon.com/Breadboard-Jumper-Wire-75...

Software: (Most of this is available in the attached FI9821W Recover.zip but I included external mirrors, just in case.)

The drivers for your USB to TTL adapter: http://leftbraintinkering.blogspot.com/2013/05/us... or https://www.dropbox.com/s/knu0gvzm3rwv20h/Profili...

Putty (Or the terminal emulator of your choice): https://the.earth.li/~sgtatham/putty/latest/x86/p... or https://www.dropbox.com/sh/lsrqv6j34gqe7gb/AAB5Igo...

TFTPD: http://tftpd32.jounin.net/download/Tftpd32-4.52-se... or https://www.dropbox.com/s/2p7o92wmclhqsyi/Tftpd32-...

The 1.1.1.13 firmware image: https://www.dropbox.com/s/crclzf36n45nzw8/flash_FI...

DNS and MAC Publisher: https://www.dropbox.com/s/40lmtqfn93q87mb/DDNS%26M...

The 1.1.1.14 app image (Optional): https://www.dropbox.com/s/8rwkm62s1nfxoxy/FI9821W_app_ver1.1.1.14.bin?dl=1

Foscam Web Components (Optional): https://www.dropbox.com/s/keeyk7r1fmx0zyz/FoscamWebComponents.zip?dl=1

Step 1: ​Crack Open the Camera

Unplug everything, turn it over and remove the two rubber feet, this works best with a knife. Cut through the two front stickers and remove all of the screws. The bottom simply lifts off.

Step 2: ​Attach Your Leads to the Camera

There are 4 holes in the motherboard, if you have the connector facing you and the plugs away, from left to right the terminals are: Cam Receive/TTL Transmit, Cam Transmit/TTL Receive, Ground and 3.3v which you will NOT use. If you're using the cable I recommended above, Green is Transmit, White is receive and Black is ground. I was able to use male/male breadboard jumper wires and plug them directly into the board with a little bending. But if you're using bare wires, you might need to solder them. They are tiny though, so I'd recommend making or buying some breadboard wires.

Step 3: Install the Serial Drivers

Before plugging in the USB cable, you'll need to install the Prolific Drivers. Just extract them, right click on ser2pl.inf and install. These will work on Windows 7 - Windows 10. Depending on your version of windows, you'll likely have to accept some permissions. Now when you plug in the USB device it should be detected. You can right click on This PC in explorer, select manage and go to Device Manager. You can expand on ports and you should see the Prolific USB to Serial Comm Port with a number after it. Note the COM number. If you see a yellow exclamation mark, just right click on the device, update driver, browse my computer, let me pick form a list, have disk, browse for the ser2pl.inf file you downloaded and click open.

Step 4: Talk to the Camera

Any terminal emulator software will work, but I like Putty. Just download it and run it, you don't have to install it but you can if you want. Choose connection type Serial, Speed set to 115000 and enter the COM# from your device manager you found the the previous step. (WARNING, when you camera powers on, it may try to spin which could result in it rolling off your desk, hitting the floor, tearing off your cable and destroying your camera. Be careful and make sure this doesn't happen by holding it in your hand or just placing it carefully on your work space.) Click open to start the connection and then plug in the Ethernet and finally the power cable (2nd WARNING to make sure your camera doesn't fall of your desk!). If all is connected correctly, you'll see text streaming across your screen. If not, go back and check all of your connections.

Step 5: Find an IP Address

Wait for the text to stop streaming, congratulations. You have a successful terminal connection to your device and everything else from here is just software. By default the camera has an address that you probably won't be able to reach. To work on it, you'll need to assign a static IP address. If you don't know what this is, we'll just keep it simple. Click Start > CMD and type in IPCONFIG at the prompt. You should see something like 192.168.0.49 as your IPv4 address. Note this down, you'll just need any free address on your network, that means that as long as the first the Octets (numbers) are the same, it will work. Try to ping something like 192.168.0.30 if it comes back with "Destination host unreachable' then you've got an acceptable address. Don't close the DOS box yet.

Step 6: Set the IP Address and See If You're Done

Set the address in your camera by typing "/etc/init.d/S80network e ifconfig eth0 192.168.0.30 netmask 255.255.255.0 broadcast 192.168.0.255" If it works, you can go back to the DOS box and press the up arrow key and it automatically type in ping 192.168.0.30 for you again, press enter and now you should see a reply. You can try going to 192.168.0.30:88 in your web browswer and you might see the camera. If so, you can just install the latest firmware via the last step and you're done. But I wasn't so lucky so if you're like me, continue on.

Step 7: Install the TFTPD Server on Your Computer

Choose whatever folder you're using to store the files (I just used my download folder) and set the server interface if you have more than one network card. This tiny server will host your files so that your camera can pull them.

Step 8: Boot the Camera Into Safe Mode

Power up the camera again being careful not to let it spin off your desk again and press ESC right away to stop it from trying to boot the main OS. Now you should be at a hilinux prompt.

printenv (Will show you all of your system environment variables)

setenv ipaddr 192.168.0.30 (Set's the camera's IP address)

setenv serverip 192.168.0.49 (Set's the IP address where your camera can find the TFTPD server)

ping 192.168.0.49 (Will attempt to ping your computer over the network and hopefully come back with 'host 192.168.0.49 is alive')

Step 9: Erase and Reflash the Camera

Now it's time for the real work.

protect off all (Disables memory protection erase 0x34000000 +0x1000000 (Watch your spacing, it has to be exactly the same to work. It should take a few seconds to erase all of the memory from 0x34 to 0x1)

tftp 0x34000000 flash_FI9821W_1.2.1.1_1.1.1.13.bin (This should start transferring the file from your computer to the camera. TFTP should show you progress as well.

reset (reboots your camera)

Step 10: Access the Camera Via Your Web Browser

The camera is going to grab a new address from DHCP so you can use the ifconfig command to see what that address is, or you can use the Foscam IP CAM tool to scan for it. Once you find the new address type it into your web browser http://192.168.0.51:88 (88 is the web port for these cameras) Now you should see the standard interface. The username is admin and there is no password. Click Login and you should see the Device information screen.

Step 11: Reset the DDNS and MAC

Now you need to reset the DDNS and Mac to get it all back to normal. Run the DDNS&MAC Publisher.exe file. Look at the bottom cover of your camera for this information. Enter in your DDNS username, something like bk5837 and enter the same for your DDNS password. Enter in your MAC as numbers and letters only, something like 00626E4751BC. Then enter in your camera's IP address and port 88. Press Set DDNS first, and it should say 'Process OK' then Set MAC and get another 'Process OK.' Refresh your web browser and you should see the right camera ID.

Step 12: Retry the 14 Firmware Update

At this point everything should be working, but firmware 14 is the last one for this camera and it does have some fixes so I'd recommend you do the update. Just go to System > Choose file > Select the FI9821W_app_ver1.1.1.1.14.bin file and click System Upgrade. Wait for the reboot and you should be all set. You can assign a static IP address so you can keep track of the camera now.

Step 13: Watch Your Camera

Bonus, if you can't see the camera in Chrome, just install Foscam Web Components and IE Tab in Chrome. Then you can pull of the camera's page in Chrome via the IE Tab extension and your camera should work. Also, IP Cam Viewer for Android and IOS gives you full PTZ control of the camera or you can use the Foscam app.

<p>Got it all working fine and the file tftp ok. After reset I get bad crc</p><p>**************************</p><p>hilinux # reset&yacute; <br> <br>U-Boot 1.1.4 (Apr 8 2009 - 11:41:01) <br> <br>U-Boot code: E0500000 -&gt; E0517540 BSS: -&gt; E051E2BC <br>HI_VERSION=U_BOOT_1_1_4-M08C0305B0301 @Hi3511v110_OSDrv_1_0_0_7 2009-03-18 20:44<br>:35 <br>RAM Configuration: <br>Bank #0: e0000000 128 MB <br>Flash: 16 MB <br>*** Warning - bad CRC, using default environment <br> <br>In: serial <br>Out: serial <br>Err: serial <br>MAC: 00-00-00-00-00-00 <br>hilinux #</p><p>*****************************</p><p>Set all env params again to origional values and tried a few times but always comes back with bad crc. Any clues or ideas?</p>
<p>I too have a bricked FI9821W and have attempted the instructions above, however when I power on the Foscam my Putty session shows goobledegook (see image) and it doesn't appear to respond to my typing of commands into Putty. Interestingly, when I hit ESC when I power it on, the text does not scroll, but it doesn't boot into a command prompt - any ideas?</p>
<p>Looks like your baudrate is set wrong. Have you set it to 115200?</p>
<p>@gleapmann This how I did it, from top to bottom:</p><p>1 -<br>2 RX<br>3 GND<br>4 TX</p><p>However, it is ultimately disappointing. After I see the image that @gazerooni sees I am able to http to port 88 of the ip it now has. However I am unable to login.</p><p>Also I found this post:</p><p><a href="http://foscam.us/forum/fi9821w-v1-broken-after-firmware-upgrade-1-1-1-14-t8575-780.html#p70383" rel="nofollow">http://foscam.us/forum/fi9821w-v1-broken-after-fir...</a></p><p>Which suggest my foscam can not be saved.</p>
<p>Brick it is!! Thanks for saving me a bunch of time on a fruitless quest. And taking it to a dealer would cost more than the camera is worth. I have three other non-foscam IP cameras I can still use. I've been researching Amcrest if I need to add to my collection.</p>
<p>Detail of the serial pin connection</p>
<p>I have V2. I marked the image with an arrow of my guess of the equivalent four holes in the V2 board. Any suggestions on how to determine which holes corresponds to the holes in your image?</p>
<p>I really like the idea of this</p>

About This Instructable

4,748views

37favorites

License:

More by mcghan:Fixing a bricked Foscam FI9821W - Less than $6 Play Video via USB on Nissan or Infiniti Vehicles (May work for others) 
Add instructable to: