Skip to content

Instantly share code, notes, and snippets.

@cr3ative
Last active December 8, 2022 08:16
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save cr3ative/8337446 to your computer and use it in GitHub Desktop.
Save cr3ative/8337446 to your computer and use it in GitHub Desktop.
Drift HD Ghost WiFi Application API

Drift HD Ghost WiFi Application API

See my technical notes here, which include how to get root on a Drift HD Ghost with no modifications to the unit.

The following is a list of URLs which might be handy if you connect your machine to the Drift HD Ghost's WiFi network.

Live Video URL (works great in VLC)

rtsp://192.168.42.1/AmbaStreamTest

Browse Memory Card

http://192.168.42.1/DCIM/100DRIFT/

If it's interesting, this is how this mount point is made in the firmware:

umount /var/www/DCIM 2>/dev/null
mount --bind /tmp/fuse_d/DCIM /var/www/DCIM
mount --bind /tmp/fuse_a/DCIM /var/www/DCIM

Other Folders of Interest

http://192.168.42.1/shutter/
http://192.168.42.1/live/
http://192.168.42.1/mjpeg/

Issue Commands

#### Delete media file:

Type 0: Deletes a file:

http://192.168.42.1/setting/cgi-bin/fd_control_client?func=fd_del_media_file&type=0&name=100DRIFT/

Type 1: Not sure, but still deletes a file

http://192.168.42.1/setting/cgi-bin/fd_control_client?func=fd_del_media_file&type=1&name=100DRIFT/

#### Set Digital Zoom (0 (off) to 9 (full)):

http://192.168.42.1/setting/cgi-bin/fd_control_client?func=fd_dzoom&data={0-9}

Returns:

<?xml version="1.0" encoding="utf-8"?><Response><Status>1</Status></Response>

If out of range (error):

<?xml version="1.0" encoding="utf-8"?><Response><Status>0</Status><ErrMsg>invaid parameters! only support (0~9). </ErrMsg></Response>

#### Get Camera Information:

http://192.168.42.1/setting/cgi-bin/fd_control_client?func=fd_get_camera_info

Returns:

<?xml version="1.0"?><Response><DevInfo><Name>HD GHOST</Name><Battery>2</Battery><Capacity>29.2G</Capacity><Available>29.2G</Available><Version>Ver2.1.6.4</Version><ModelName>Drift HD GHOST</ModelName><SerialNumber>11CBDFEFGIM3KM32</SerialNumber><IPAddress>192.168.42.1</IPAddress><MACAddress>BC:0F:2B:22:77:A1</MACAddress></DevInfo></Response>

Get Camera Settings

http://192.168.42.1/setting/cgi-bin/fd_control_client?func=fd_get_camera_setting

Returns:

<?xml version="1.0"?><Response><Setting><mic_sensitivity>0</mic_sensitivity><speaker_volume>0</speaker_volume><lcd_brightness>0</lcd_brightness><lcd_off>3</lcd_off><remote_control>1</remote_control><remote_led>1</remote_led><led_indicator>1</led_indicator><dzoom_on>1</dzoom_on><camera_off>0</camera_off><time>2012-01-02 00:03</time><date_time_stamp>0</date_time_stamp><setting_profile>0</setting_profile><language>0</language></Setting></Response>

#### Get Camera Status

http://192.168.42.1/setting/cgi-bin/fd_control_client?func=fd_get_camera_status

Returns:

<?xml version="1.0"?><Response><DevInfo><video_amount>4</video_amount><photo_amount>0</photo_amount><stream_type>0</stream_type><ntc>47</ntc><app_type>0</app_type><video_res>0</video_res><photo_size>0</photo_size><meter_mode>0</meter_mode><photo_quality>0</photo_quality><scene_mode>0</scene_mode><white_balance>0</white_balance><contrast>0</contrast><photo_selftimer>0</photo_selftimer><flicker>0</flicker><continue_shooting>0</continue_shooting><auto_shutdown_threshold>0</auto_shutdown_threshold><time>2012-01-02 00:04</time><video_fov>0</video_fov><mic_sensitivity>0</mic_sensitivity><dzoom_step>0</dzoom_step><rec_status>0</rec_status><battery>1</battery></DevInfo><WifiInfo><wifi_mode>0</wifi_mode><wifi_ssid>HD GHOST 203</wifi_ssid><wifi_security>0</wifi_security><wifi_password></wifi_password></WifiInfo></Response>

Which interestingly shows WiFi Security settings which are not used or apparent in the menu anywhere at the moment.

#### Get Photo Settings

http://192.168.42.1/setting/cgi-bin/fd_control_client?func=fd_get_photo_setting

Returns:

<?xml version="1.0"?><Response><Setting><resolution>0</resolution><fov>0</fov><exposure>0</exposure><self_timer>0</self_timer><ae>0</ae><wb>0</wb><contrast>0</contrast><continue_shooting>0</continue_shooting><photo_amount>0</photo_amount></Setting></Response>

#### Get PhotoBurst Settings

http://192.168.42.1/setting/cgi-bin/fd_control_client?func=fd_get_photoburst_setting

Returns:

<?xml version="1.0"?><Response><Setting><resolution>0</resolution><fov>0</fov><exposure>0</exposure><self_timer>0</self_timer><capture_rate>0</capture_rate><duration>0</duration><photoburst_amount>0</photoburst_amount></Setting></Response>

Get Recording Status

http://192.168.42.1/setting/cgi-bin/fd_control_client?func=fd_get_record_status

Returns:

<?xml version="1.0"?><Response><DevInfo><mode>0</mode><dzoom_step>0</dzoom_step><rec_status>0</rec_status><battery>1</battery><recording_timelapse>0</recording_timelapse><time>2012-01-02 00:05</time></DevInfo></Response>

Get Timelapse Settings

http://192.168.42.1/setting/cgi-bin/fd_control_client?func=fd_get_timelapse_setting

Returns:

<?xml version="1.0"?><Response><Setting><resolution>0</resolution><fov>0</fov><exposure>0</exposure><self_timer>0</self_timer><interval>0</interval><timelapse_amount>0</timelapse_amount></Setting></Response>

Get Video Settings

http://192.168.42.1/setting/cgi-bin/fd_control_client?func=fd_get_video_setting

Returns:

<?xml version="1.0"?><Response><Setting><resolution>0</resolution><framerate>0</framerate
@KonradIT
Copy link

Thanks for the info, i will port HeroProApp for GoPro to drift

@nobodyguy
Copy link

Why is video stream delay about 3 seconds in VLC player and about 1 second in Liquid android app? Is there any way how to reduce it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment