RedEdge API

MicaSense RedEdge camera API documentation and example code.

Welcome to the RedEdge API page

The RedEdge camera is designed for quick and easy integration into just about any platform. However, for more control, you can talk to the RedEdge by serial port, Ethernet, or WiFi.

API documentation is organized by the camera firmware version it describes. We'll always do our best to not break anything with new releases, but sometimes new features may be released that were not present in older software versions, so it is always best to check your firmware version and read the appropriate version. Of course, you can always upgrade your camera to the latest firmware! Log on to MicaSense Atlas or contact us for the latest.

Don't know what version you have? Connect to the camera WiFi, and you can read the version from the bottom of the 'config' page.

About the APIs

HTTP API

The HTTP API is the most powerful way to interface to the RedEdge. You can use this API using either the Ethernet connector or the WiFi access point.

Serial API

The Serial API provides a MavLink interface to the RedEdge. You can use this API by connecting your MavLink-capable system to the host serial port on the camera.

Documentation

v3.3.0
HTTP API Documentation for v3.3.0
Serial API Documentation for v3.3.0
v1.5.30
HTTP API Documentation for v1.5.30
Serial API Documentation for v1.5.30
v1.5.9 - v1.5.29
HTTP API Documentation for v1.5.9 - v1.5.19
Serial API Documentation for v1.5.9 - v1.5.19
v1.5.5 - v1.5.8
HTTP API Documentation for v1.5.5 - v1.5.8
Serial API Documentation for v1.5.5 - v1.5.8
v1.5.0 - v1.5.4
HTTP API Documentation for v1.5.0 - v1.5.4
Serial API Documentation for v1.5.0 - v1.5.4
v1.3.2 - v1.4.6
HTTP API Documentation for v1.3.2 - v1.4.6
Serial API Documentation for v1.3.2 - v1.4.6

Example Code

mavlink_serial.py
An example python program that can be used to verify communication with the RedEdge. A typical use of the script is:
python mavlink_serial.py --device /dev/ttyUSB0 --baud 57600
gps_wifi.py
An example python program that can be used to get the camera's GPS location and command a capture. A typical usage of the script is:
python gps_wifi.py
expandable_storage.py
An example python program which can be used to store captures from the RedEdge camera to an external storage device using a Raspberry Pi. A typical usage of the script is:
sudo python expandable_storage.py
gps_image_insert.py
And example python script which takes in an RTKlib output postion file and creates a Pix4D compatible LLH file. A typical usage of this script is:
python gps_image_insert.py create_image_location_file --input_path raw_flight_date_events.pos --output_path image_location.csv