Fixing a Bricked Foscam FI9821W - Less Than $6




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.


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.

(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:

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

The drivers for your USB to TTL adapter: or

Putty (Or the terminal emulator of your choice): or


The firmware image:

DNS and MAC Publisher:

The app image (Optional):

Foscam Web Components (Optional):

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 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 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 netmask broadcast" If it works, you can go back to the DOS box and press the up arrow key and it automatically type in ping for you again, press enter and now you should see a reply. You can try going to 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 (Set's the camera's IP address)

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

ping (Will attempt to ping your computer over the network and hopefully come back with 'host 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 (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. 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.

4 People Made This Project!


  • Pocket Sized Contest

    Pocket Sized Contest
  • Weaving Challenge

    Weaving Challenge
  • Remix Contest

    Remix Contest

5 Discussions


6 months ago

I was just reading your post in regard to connecting to and uploading the new firmware for a Foscam camera that had previously been bricked and it is an absolute lifesaver. Thank you.

I do have a quick question, however, if I could bother you? I am trying to do the same thing on my Foscam IP camera, but mine is a fi9828p and if you are not familiar with that model it has "dongle" style connectors that come out of the body of the camera through the neck. one of these connectors is for I/O alarm connectivity. Is this by chance the same one that you would use to connect the uart cable, or is it yet a different connector inside the housing of the camera? I'm sorry to bother you with this, but I cannot find any literature or even images online to show me if I have to open it or if it is indeed the I/O cable connector?

Thank you very much in advance, and thank you again for the awesome instructions!

Jason Paluszak


11 months ago

After an reflash firmware i have a cam in boot loop how to stop??


1 year ago


I have a faulty camera from a friend: FOSCAM model FI9821W, engraved on PCB FI9820W-MAIN V1.3 2011-12-25 FR4020A2. He attempted a firmware upgrade but did not succeed, the camera was making some PTZ moves, I
went through putty to put a firmware according to the tutorial
" -1-14-t8575-780.html # p70383 ", but I think I messed up harder.
it connects to the serial port with PUTTY, Hiperterminal, Tera Term Web
3.1, but nothing appears on the display, no information, I think I
managed to break the bootloader.
I'm asking you
to provide me with information, steps and software to help me get back
into operation, it's a good room and it's worth repairing.

Best regards, Viorel BRINZAC


1 year ago

Got it all working fine and the file tftp ok. After reset I get bad crc


hilinux # resetý

U-Boot 1.1.4 (Apr 8 2009 - 11:41:01)

U-Boot code: E0500000 -> E0517540 BSS: -> E051E2BC
HI_VERSION=U_BOOT_1_1_4-M08C0305B0301 @Hi3511v110_OSDrv_1_0_0_7 2009-03-18 20:44
RAM Configuration:
Bank #0: e0000000 128 MB
Flash: 16 MB
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
MAC: 00-00-00-00-00-00
hilinux #


Set all env params again to origional values and tried a few times but always comes back with bad crc. Any clues or ideas?