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 09:11] – [Executing API commands at bootstrap] niccolo | doc:appunti:hardware:sjcam-8pro-ambarella-wifi-api [2023/06/16 10: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:// | ||
doc/appunti/hardware/sjcam-8pro-ambarella-wifi-api.txt · Last modified: 2023/06/16 10:18 by niccolo