Skip to content

Instantly share code, notes, and snippets.

@Nokius
Created July 19, 2018 21:43
Show Gist options
  • Save Nokius/ca74e40f5ea8391ac778d9509b763a0d to your computer and use it in GitHub Desktop.
Save Nokius/ca74e40f5ea8391ac778d9509b763a0d to your computer and use it in GitHub Desktop.
Yi Discovery Action Camera (J22) Protocol Reverse Engineering

Yi Discovery Action Camera (J22) Protocol Reverse Engineering

Photo Mode

Request:

{"msg_id":16777228,"param":"precise quality;off","token":x}

Response:

{"rval":0,"msg_id":16777228}{"msg_id":7,"type":"setting_changed","param":"capture_mode","value":"precise quality","related":[{"dewarp_support_status":"off"},{"eis_support_status":"off"},{"rec_audio_support":"on"},{"support_sharpness":"on"},{"photo_size":"16M"},{"iq_photo_shutter":"auto"},{"timelapse_photo_shutter":"auto"}]}{"msg_id":7,"type":"setting_changed","param":"capture_mode","value":"precise quality","related":[{"dewarp_support_status":"off"},{"eis_support_status":"off"},{"rec_audio_support":"on"},{"support_sharpness":"on"},{"photo_size":"16M"},{"iq_photo_shutter":"auto"},{"timelapse_photo_shutter":"auto"}]}

Take a picture

Request:

{"msg_id":16777220,"param":"precise quality;off","token":x}

Response:

{"rval":0,"msg_id":16777220}{"msg_id":7,"type":"start_photo_capture","param":"precise quality;off"}{"msg_id":7,"type":"photo_taken","param":"/mnt/extsd/photo/YDXJ0070.jpg","msize":1774073,"mdate":"2018-07-19 23:12:03"}'

Timer Mode

Request:

{"msg_id":16777228,"param":"precise self quality;3s","token":x}

Take a picture timer 3s

Request:

{"msg_id":16777220,"param":"precise self quality;3s","token":x}

Response:

{"rval":0,"msg_id":16777220}{"msg_id":7,"type":"start_photo_capture","param":"precise self quality;3s"}{"msg_id":7,"type":"photo_taken","param":"/mnt/extsd/photo/YDXJ0065.jpg","msize":1778105,"mdate":"2018-07-19 23:03:32"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment