Skip to content

Camera configuration

Paul Philippov edited this page Apr 29, 2024 · 25 revisions

Getting the camera up and running requires some initial setup of bootloader environment.

Find your camera model in /environment/ directory, copy its configuration file and save it as uEnv.txt. Replace the wlanssid and wlanpass values with your wireless network credentials. Copy the file to an SD card, insert the card into your camera and reboot.

Bootloader environment explained

Hardware Settings

  • gpio_default - List of default GPIO states on boot. each position consists of the GPIO number followed by the desired state:
    • O - Output, High
    • o - Output, Low
    • i or I - Input
  • gpio_button - GPIO pin for reset button
  • gpio_led_r - GPIO pin for red LED
  • gpio_led_g - GPIO pin for green LED
  • gpio_led_b - GPIO pin for blue LED
  • gpio_led_y - GPIO pin for yellow LED
  • gpio_mmc_cd - GPIO pin for MMC card detection
  • gpio_mmc_power - GPIO pin to control power to MMC
  • gpio_usb_en - GPIO pin to control power to USB
  • gpio_speaker - GPIO pin to contol power to speaker

Night Mode

  • day_night_min - Gain value to switch to day mode
  • day_night_max - Gain value to switch to night mode
  • gpio_ircut - GPIO pins for IRCUT driver, can be one or two pins, depending on drive type
  • gpio_ir850 - GPIO pin for 850nm IR LEDs
  • gpio_ir940 - GPIO pin for 940nm IR LEDs
  • gpio_white - GPIO pin for white light LEDs
  • pwm_ch_ir850 - PWM Channel of 850nm IR LED
  • pwm_ch_ir940 - PWM Channel of 490nm IR LED
  • pwm_ch_white - PWM Channel of white light LED

Pan and tilt motors

  • gpio_motor_h - GPIO pins for horizontal (pan) motors
  • gpio_motor_v - GPIO pins for vertical motion (tilt) motors
  • motor_maxstep_h - Maximum number of microsteps for pan motor
  • motor_maxstep_v - Maximum number of microsteps for tilt motor
  • disable_homing - Set to true to disable homing of motors on boot

Wireless networking

  • gpio_wlan - GPIO pin to control power to wireless card
  • wlandev - Wireless card driver
  • wlanssid - Wireless network name
  • wlanpass - wireless network password

Ethernet networking

  • ethaddr - MAC address for Ethernet interface
  • disable_eth - Disable Ethernet networking for faster boot on Wi-Fi only cameras

Miscellaneous

  • disable_watchdog - Disable system watchdog
  • enable_updates - Enable virtual partitions used for firmware upgrades
  • hostname - Host name to use when connecting to a network
  • timezone - Timezone, set from Web UI so you don't need to edit it directly
  • sshkey_ed25519 - backup of ssh key
  • devip - IP address of developer's workstation
  • debug - Debug mode
Clone this wiki locally