doc:appunti:hardware:sjcam-8pro-ambarella-wifi-api
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:appunti:hardware:sjcam-8pro-ambarella-wifi-api [2022/05/07 11:01] – [Executing API commands at bootstrap] niccolo | doc:appunti:hardware:sjcam-8pro-ambarella-wifi-api [2023/06/16 12:18] (current) – [SJCAM SJ8 Pro WiFi Ambarella API] niccolo | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| The server on the camera accepts **only one client at a time**. When the camera is connected to a WiFi client on the controlling port 7878/TCP it will **ignore the Auto Power Off** setting and it remains active. | The server on the camera accepts **only one client at a time**. When the camera is connected to a WiFi client on the controlling port 7878/TCP it will **ignore the Auto Power Off** setting and it remains active. | ||
| - | The protocol was at least partially **reversed engineered**.  | + | The protocol was at least partially **reversed engineered**.  | 
| - | See my other page about the SJCAM SJ8 Pro action camera: **[[sjcam-8pro]]**, **[[sjcam-8pro-ambarella-firmware-modding]]**  | + | See my other page about the SJCAM SJ8 Pro action camera: | 
| + | |||
| + | * **[[sjcam-8pro]]** | ||
| + | * **[[sjcam-8pro-ambarella-firmware-modding]]** | ||
| + | * **[[sjcam-8pro-custom-firmware]]** | ||
| ===== JSON Messages ===== | ===== JSON Messages ===== | ||
| Line 128: | Line 132: | ||
| == AMBA_GET_SINGLE_SETTING_OPTIONS == | == AMBA_GET_SINGLE_SETTING_OPTIONS == | ||
| - | Enumerate all the possible values for one setting: | + | Enumerate all the possible values for LCD Off Time setting: | 
| < | < | ||
| Line 134: | Line 138: | ||
| RECV: {" | RECV: {" | ||
|        " |        " | ||
| + | </ | ||
| + | |||
| + | Enumerate all the possible values for Resolution setting: | ||
| + | |||
| + | < | ||
| + | SEND: {" | ||
| + | RECV: {" | ||
| + |        " | ||
| + |        " | ||
| + |        " | ||
| + |        " | ||
| + |        " | ||
| + |        " | ||
| + |        " | ||
| + |        " | ||
| + |        " | ||
| + |        " | ||
| + |        " | ||
| </ | </ | ||
| Line 150: | Line 172: | ||
| SEND: {" | SEND: {" | ||
| RECV: {" | RECV: {" | ||
| + | </ | ||
| + | |||
| + | Set the video mode: | ||
| + | |||
| + | < | ||
| + | SEND: {" | ||
| + | RECV: {" | ||
| + | </ | ||
| + | |||
| + | Set the camera mode to normal record: | ||
| + | |||
| + | < | ||
| + | SEND: {" | ||
| + | RECV: {" | ||
| </ | </ | ||
| Line 254: | Line 290: | ||
| ===== Using Python to call the API ===== | ===== Using Python to call the API ===== | ||
| + | {{.: | ||
| {{ .: | {{ .: | ||
| I wrote same **Python scripts** to execute simple actions, like **start** and **stop recording**, | I wrote same **Python scripts** to execute simple actions, like **start** and **stop recording**, | ||
| + | On Android I installed also the **Termux: | ||
| + | |||
| + | In this **[[https:// | ||
| Line 266: | Line 306: | ||
| I was able to **create a script** to select the Color Profile automatically at boot. Remember that, due a firmware bug, the color profile choice is not preserved across reboots, and you have to disable the Gyro Stabilizer before selecting the Color Profile. | I was able to **create a script** to select the Color Profile automatically at boot. Remember that, due a firmware bug, the color profile choice is not preserved across reboots, and you have to disable the Gyro Stabilizer before selecting the Color Profile. | ||
| + | |||
| + | **NOTICE**: I had written this script because I had customized the //SJCAM - Vivid// profile and I wanted to select it at bootstrap, while the camera starts with a default profile which at the time I did not know how to customize. Today BitrateEditor exposes also the default profile, so I can customize every profile and this script is now useless for me. | ||
| Executing that script at camera startup is a rather convoluted process: | Executing that script at camera startup is a rather convoluted process: | ||
doc/appunti/hardware/sjcam-8pro-ambarella-wifi-api.1651914079.txt.gz · Last modified:  by niccolo
                
                