User Tools

Site Tools


doc:appunti:hardware:sjcam-8pro-ambarella-wifi-api

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
doc:appunti:hardware:sjcam-8pro-ambarella-wifi-api [2022/06/24 07:53] – [Using Python to call the API] niccolodoc:appunti:hardware:sjcam-8pro-ambarella-wifi-api [2023/06/16 10:18] (current) – [SJCAM SJ8 Pro WiFi Ambarella API] niccolo
Line 7: Line 7:
 The protocol was at least partially **reversed engineered**. Having a rooted Android phone, it was possibile to run the **tcpdump** tool to analyze the TCP traffic (''tcpdump'' is installed from the command line of the **[[https://termux.com/|Termux]]** app). As root I started tcpdump to capture the traffic exchanged from the smartphone and the SJCAM camera, while using the SJCAM Zone app. The protocol was at least partially **reversed engineered**. Having a rooted Android phone, it was possibile to run the **tcpdump** tool to analyze the TCP traffic (''tcpdump'' is installed from the command line of the **[[https://termux.com/|Termux]]** app). As root I started tcpdump to capture the traffic exchanged from the smartphone and the SJCAM camera, while using the SJCAM Zone app.
  
-See my other page about the SJCAM SJ8 Pro action camera: **[[sjcam-8pro]]****[[sjcam-8pro-ambarella-firmware-modding]]** and **[[sjcam-8pro-custom-firmware]]**.+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:
  
 <code> <code>
Line 134: Line 138:
 RECV: {"rval":0,"msg_id":9,"permission":"settable","param":"LCD Off Time", RECV: {"rval":0,"msg_id":9,"permission":"settable","param":"LCD Off Time",
        "options":["Off","30 Seconds","1 Minute","3 Minutes","5 Minutes"]}        "options":["Off","30 Seconds","1 Minute","3 Minutes","5 Minutes"]}
 +</code>
 +
 +Enumerate all the possible values for Resolution setting:
 +
 +<code>
 +SEND: {"msg_id":9, "param": "Resolution", "token":1}
 +RECV: {"rval":0,"msg_id":9,"permission":"settable","param":"Resolution","options":[
 +       "4K (3840x2160) 24FPS","4K (3840x2160) 25FPS","4K (3840x2160) 30FPS",
 +       "4K (3840x2160) 50FPS","4K (3840x2160) 60FPS",
 +       "4K UItra (3840X21 60) 24FPS","4K UItra (3840X2160) 30FPS",
 +       "2.7K (2720x1520) 24FPS","2.7K (2720x1520) 25FPS","2.7K (2720x1520) 30FPS",
 +       "2.7K (2720x1520) 50FPS","2.7K (2720x1520) 60FPS",
 +       "1440 (2560x1440) 24FPS","1440 (2560x1440) 25FPS","1440 (2560x1440) 30FPS",
 +       "1440 (2560x1440) 50FPS","1440 (2560x1440) 60FPS",
 +       "1080(1920x1080) 24FPS","1080(1920x1080) 25FPS","1080(1920x1080) 30FPS",
 +       "1080(1920x1080) 50FPS","1080(1920x1080) 60FPS","1080(1920x1080) 120FPS",
 +       "1080 Ultra(1920X1080) 30FPS","1080 Ultra(1920X1080) 60FPS",
 +       "720(1280x720) 240FPS"]}
 </code> </code>
  
Line 150: Line 172:
 SEND: {"msg_id":2,"type":"camera_clock","param":"2022-05-06 17:02:43","token":2} SEND: {"msg_id":2,"type":"camera_clock","param":"2022-05-06 17:02:43","token":2}
 RECV: {"rval":0,"msg_id":2,"type":"camera_clock"} RECV: {"rval":0,"msg_id":2,"type":"camera_clock"}
 +</code>
 +
 +Set the video mode:
 +
 +<code>
 +SEND: {"msg_id": 2, "type": "Resolution", "param": "1080(1920x1080) 30FPS", "token":1}
 +RECV: {"rval":0,"msg_id":2,"type":"camera_mode"}
 +</code>
 +
 +Set the camera mode to normal record:
 +
 +<code>
 +SEND: {"msg_id": 2, "type": "camera_mode", "param": "normal_record", "token":1}
 +RECV: {"rval":0,"msg_id":2,"type":"camera_mode"}{"msg_id":7,"type":"normal_record"}
 </code> </code>
  
doc/appunti/hardware/sjcam-8pro-ambarella-wifi-api.1656057227.txt.gz · Last modified: 2022/06/24 07:53 by niccolo