@Larry Lart Hi, do you have a list of other commands for the Thinkware F800 Pro?
Hi Julian, I abandoned the Thinkware "hacking" and instead work on building a custom dashcam with off-self hardware and opensource.
However I do have some raw notes from back then, I will dump them here, see if you can make sense.
Also, to capture the commands (I did not use the wireshark for this only for the cloud functions), if I recall correctly at the time, I had to kill the cmd process (remoteapi_cmd_daemon) and start one in foreground mode which will output the debug information / commands (I don't recall if I had to running with strace/ptrace you might want to try to run it directly first):
nohup /usr/bin/remoteapi_cmd_daemon > /tmp/SD0/remote_cmd.txt &
With this done, then you can go ahead and run functions from f800 app and monitor the logs to see which is which and what parameters take.
Note, that in parking mode you won't be able to connect to the dashcam as wifi is off.
Same raw notes I took at the time on the remote commands(sorry for lack of detail):
{"token":0,"msg_id":257}
switch to front preview: {"token":2,"param":"preview_rear","msg_id":2049}
switch to back preview: {"token":2,"param":"preview_front","msg_id":2049}
get string info : {"token":3,"param":"device","msg_id":2050}
{"rval":0,"msg_id":2050,"type":"device","param":[{"liveview_url":"rtsp://192.168.10.11/live"},{"micom_ver":-2},{"channel_num":2},{"preview_ch":"preview_front"}]}
// ??get {"token":3,"msg_id":7,"type":"get_file_complete","param":[{"bytes sent":560},{"md5sum":"099d985daf9220e6de6ac3d4c90424ef"}]}
get system params: {"token":3,"param":"system","msg_id":2050}
{"rval":0,"msg_id":2050,"type":"system","param":[{"power":"normal"},{"sdcard":"inserted"},{"rec_status":"continuous"},{"rtsp":"on"},{"lang":["en","en-GB","es","pt","fr","fr-CA","de","it","ru","zh-Hans","zh-Hant-HK","zh-Hant-TW","th","ja","ko"]}]}
get liveview information: {"token":3,"param":"liveview","msg_id":2050}
{"token":3,"param":"liveview","msg_id":2050}{"rval":0,"msg_id":2050,"type":"liveview","param":[{"rec_status":"continuous"},{"voltage":"11.45 v"},{"speed":"0 km/h"},{"date_time":"2017.10.11 02:08:13"},{"gps":"disconnected"},{"mic":"on"}]}
--
{"token":3,"param":"liveview","msg_id":2050}
get gps info {"token":3,"param":"gps","msg_id":2050}
{"rval":0,"msg_id":2050,"type":"gps","param":[{"conn":"connected"},{"sens":"strong"},{"time":"18:40:11"},{"speed":"-"},{"altitude":"127m"},{"hdop":"1.2"}]}
{"token":1,"param":"gps","msg_id":2050}
{"token":3,"param":"preview_rear","msg_id":2049}
{"token":3,"param":"preview_front","msg_id":2049}
wifi_util_enable_listen(72): binding port 7878
cmd_server_start(311): cmd server via BT is not inited
cmd_server_start(353): cmd client7 online (192.168.42.2:39122)
cmd_server_start(353): cmd client8 online (192.168.42.2:51452)
cmd_server_start(353): cmd client9 online (192.168.42.2:44966)
cmd_server_start(411): 9: {"token":0,"msg_id":257}
cmd_server_start(353): cmd client10 online (192.168.42.2:59778)
cmd_server_start(411): 9: {"token":2,"msg_id":2052}
cmd_server_start(411): 9: {"type":"TCP","token":2,"param":"192.168.42.2","msg_id":261}
cmd_server_start(411): 9: {"token":2,"fetch_size":0,"offset":0,"param":"\/tmp\/SD0\/SETTING\/setup.cfg","msg_id":1285}
cmd_server_start(411): 9: {"token":2,"param":"device","msg_id":2050}
cmd_server_start(411): 9: {"token":2,"param":"space","msg_id":2050}
cmd_server_start(411): 9: {"token":2,"param":"system","msg_id":2050}
cmd_server_start(411): 9: {"token":2,"msg_id":2054}
cmd_server_start(411): 9: {"token":2,"msg_id":2055}
cmd_server_start(411): 9: {"token":2,"msg_id":2051}
cmd_server_start(411): 9: {"token":2,"msg_id":2054}
cmd_server_start(411): 9: {"token":2,"param":"liveview","msg_id":2050}
cmd_server_start(408): client 7 offline
cmd_server_start(408): client 8 offline
cmd_server_start(408): client 10 offline
cmd_server_start(411): 9: {"token":2,"param":"liveview","msg_id":2050}
cmd_server_start(411): 9: {"token":2,"param":"preview_rear","msg_id":2049}
cmd_server_start(411): 9: {"token":2,"param":"device","msg_id":2050}
cmd_server_start(411): 9: {"token":2,"param":"liveview","msg_id":2050}
cmd_server_start(411): 9: {"token":2,"param":"preview_front","msg_id":2049}
cmd_server_start(411): 9: {"token":2,"param":"device","msg_id":2050}
binder2 12 netctrl_svc
AmbaMem_mmap: type 0, mmap 0xaf980000(0xf980000) to 0x29d85000 with size=c681000 successfully!!
9: {"rval":0,"msg_id":257,"param":2}
9: {"rval":0,"msg_id":2052,"param":[{"model":"F800PRO"},{"uuid":""}]}
9: {"rval":0,"msg_id":261}
9: {"rval":0,"msg_id":1285,"rem_size":560,"size":560}
9: {"token":2,"msg_id":7,"type":"get_file_complete","param":[{"bytes sent":560},{"md5sum":"099d985daf9220e6de6ac3d4c90424ef"}]}
9: {"rval":0,"msg_id":2050,"type":"device","param":[{"liveview_url":"rtsp://192.168.42.1/live"},{"micom_ver":-2},{"channel_num":2},{"preview_ch":"preview_front"}]}
9: {"rval":0,"msg_id":2050,"type":"space","param":[{"free":15736704},{"total":126057472}]}
9: {"rval":0,"msg_id":2050,"type":"system","param":[{"power":"normal"},{"sdcard":"inserted"},{"rec_status":"continuous"},{"rtsp":"on"},{"lang":["en","en-GB","es","pt","fr","fr-CA","de","it","ru","zh-Hans","zh-Hant-HK","zh-Hant-TW","th","ja","ko"]}]}
9: {"rval":0,"msg_id":2054,"type":"main","param":0}
9: {"rval":0,"msg_id":2055,"type":"sub","param":0}
9: {"rval":0,"msg_id":2051}
9: {"rval":0,"msg_id":2054,"type":"main","param":0}
9: {"rval":0,"msg_id":2050,"type":"liveview","param":[{"rec_status":"stopped"},{"voltage":"11.54 v"},{"speed":"0 km/h"},{"date_time":"2017.10.11 01:52:19"},{"gps":"disconnected"},{"mic":"on"}]}
9: {"rval":0,"msg_id":2050,"type":"liveview","param":[{"rec_status":"continuous"},{"voltage":"11.54 v"},{"speed":"0 km/h"},{"date_time":"2017.10.11 01:52:20"},{"gps":"disconnected"},{"mic":"on"}]}
9: {"rval":0,"msg_id":2049,"type":"preview_rear","param":0}
9: {"rval":0,"msg_id":2050,"type":"device","param":[{"liveview_url":"rtsp://192.168.42.1/live"},{"micom_ver":-2},{"channel_num":2},{"preview_ch":"preview_rear"}]}
9: {"rval":0,"msg_id":2050,"type":"liveview","param":[{"rec_status":"continuous"},{"voltage":"11.39 v"},{"speed":"0 km/h"},{"date_time":"2017.10.11 01:52:29"},{"gps":"disconnected"},{"mic":"on"}]}
9: {"rval":0,"msg_id":2049,"type":"preview_front","param":0}
9: {"rval":0,"msg_id":2050,"type":"device","param":[{"liveview_url":"rtsp://192.168.42.1/live"},{"micom_ver":-2},{"channel_num":2}
cmd_server_start(411): 9: {"token":2,"param":"liveview","msg_id":2050}
cmd_server_start(411): 9: {"token":2,"msg_id":2054}
cmd_server_start(411): 9: {"token":2,"msg_id":2054}
cmd_server_start(411): 9: {"token":2,"msg_id":2053}
cmd_server_start(411): 9: {"token":2,"msg_id":258}
cmd_server_start(408): client 9 offline
******************************
to login: {"msg_id":257,"token":0}
Response:
{ "msg_id": 7, "type": "vf_stop" }
{ "rval": 0, "msg_id": 257, "param": 1 }
"param" - Your token, you need to pass it in later requests.
Messages with id 7 are status updates:
"vf_stop" - ????
{"msg_id":10,"token":1}
{"msg_id":9,"param":"streaming_source","token":1}
{"msg_id":9,"param":"piv_source","token":1}
{"msg_id":2,"token":1, "type":"streaming_source", "param":"vin_1"}
{"msg_id":2,"token":1, "type":"streaming_source", "param":"vin_0"}
{"msg_id":2,"token":1, "type":"vin_channel", "param":"vin_0"}
{"msg_id":2,"token":1, "type":"piv_source", "param":"vin_0"}
{"msg_id":3,"token":1}{"rval":0,"msg_id":3,"param":[
{"video_quality":"sfine"},
{"video_resolution":"1920x1080 30P 16:9"},
{"video_resolution_ch1":"1920x1080 30P 16:9"},{"default_setting":"n/a"},{"camera_clock":"2017-10-11 00:44:57"},{"vin_channel":"vin_1"},{"piv_source":"vin_0"},{"streaming_source":"vin_1"}]}
FilePrintList
{"msg_id":1282,"token":3, "param":" -D -S"}
{"msg_id":1282,"token":1, "param":" -D -S /tmp/SD0/cont_rec/"}
{"rval":0,"msg_id":1282,"listing":[
{"bin/":"5896 bytes|2017-07-27 02:23:13"},
{"dev/":"2760 bytes|1970-01-01 05:47:34"},
{"etc/":"2128 bytes|2017-07-27 02:23:15"},
{"lib/":"2712 bytes|2017-07-27 02:23:14"},{"mnt/":"160 bytes|2017-04-04 02:30:51"},{"opt/":"160 bytes|2017-04-04 02:30:51"},{"run/":"380 bytes|2017-10-10 23:56
:31"},{"tmp/":"380 bytes|2017-10-10 23:56:31"},{"sys/":"0 bytes|1970-01-01 05:47:33"},{"var/":"736 bytes|2017-07-27 02:23:15"},{"usr/":"544 bytes|2017-07-27 02:
23:13"},{"home/":"288 bytes|2017-07-27 02:23:15"},{"init":"242 bytes|2017-04-04 02:30:51"},{"pref/":"0 bytes|1961-11-25 23:19:32"},{"proc/":"0 bytes|1970-01-01
00:00:00"},{"sbin/":"5040 bytes|2017-07-27 02:23:14"},{"root/":"376 bytes|2017-04-04 02:30:51"},{"linuxrc":"892368 bytes|2017-07-27 02:23:13"},{"lib32/":"2712 b
ytes|2017-07-27 02:23:14"},{"media/":"160 bytes|2017-04-04 02:30:51"}]}
Ports:
7878: /usr/bin/remoteapi_cmd_daemon
8787: /usr/bin/remoteapi_data_daemon
9888: /usr/bin/AmbaEventNotifyDaemon