Before use Xiaomi DaFang API

This API based and works with Xiaomi Dafang Hacks.

Please installing the Current Dafang Hacks Custom Firmware from EliasKotlyar/Xiaomi-Dafang-Hacks Repository.

General informations

The custom firmware (CFW) bootloader will boot from MicroSD only if a MicroSD is plugged in and has a "run.sh" file on it. Otherwise it will load the stock firmware from the flash memory.

Installation of the custom firmware with the MicroSD bootloader

  1. Download CFW-Binary file.
  2. Format your MicroSD to FAT (ex. FAT16 or FAT32). NTFS, EXFAT etc. won't work.
  3. Put file to MicroSD and rename it to "demo.bin". There should be no other files on the MicroSD! This is really important and it won't work if there are any other files on there.

    MicroSD:/
    └── demo.bin
    
  4. When poweroff the Dafang camera, remove the power cable and plug the MicroSD into the Dafang.

  5. Hold the setup button on the Dafang camera.
  6. Plug in the USB power cable.
  7. Wait until the firmware has finished flashing (like 5 minutes). Disconnect the power as soon as the camera starts moving.
  8. Remove the MicroSD and try to start the Dafang camera.
  9. You should see the blue led shining up for 5 seconds (not blinking) before the base starts moving. If not, something went wrong. You should try another MicroSD. Start over from step 1.

Installation of the new Firmware on MicroSD

  1. Clone or download the EliasKotlyar/Xiaomi-Dafang-Hacks repository as an archive file from GitHub.

  2. Copy every file and directory from "firmware_mod" directory into the root of the MicroSD. You can use FTP. It should look like this:

    MicroSD:/
    ├── bin
    ├── config
    ├── run.sh
    ├── scripts
    ├── www
    └── run.sh
    
  3. Modify the file /config/wpa_supplicant.conf on the MicroSD to match your WiFi settings.
  4. Insert the MicroSD and start the camera.

Updating Firmware on MicroSD

If you already have a current custom firmware with custom bootloader installed, you only need to update the content of the MicroSD.

  1. Download new version.
  2. Backup your contents MicroSD.
  3. Remove all files from the MicroSD.
  4. Put everything from "firmware_mod" folder into the root of the MicroSD.
  5. Copy the backed up /config/wpa_supplicant.conf and other files (if you need) from step 1 back into the config folder.

results matching ""

    No results matching ""