forked from rnbguy/pysphere
-
Notifications
You must be signed in to change notification settings - Fork 0
/
msgids.py
63 lines (53 loc) · 2.29 KB
/
msgids.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
CONNECT = 257
DISCONNECT = 258
GET_SERIAL_NO = 4097
GET_WIFI = 1539
REGISTER_TCP = 261 # {"msg_id":261,"param":"192.168.42.2","token":3,"type":"TCP"}
GET_CAMERA = 4365
SET_DATE = 6147 # {"msg_id":6147,"param":"2017-12-16-12-00-04-6","token":3}
GET_STORAGE = 4358
GET_DEVICE = 4364
CHANGE_DIRECTORY = 1283 # {"msg_id":1283,"param":"/tmp/SD0/DCIM/","token":2}
LIST_DIRECTORY = 1282
SET_GPS = 4917 # alt, lat, lon
SWITCH_MODE = 4611 # 1 for camera, 0 for recorder
SET_PHOTO_TIMER = 4866 # 0, 3, 4, 5, 6, 7, 8, 9, 10
SET_PHOTO_INTERVALOMETER = 4929 # 0, 2, 5, 10, 30, 60, 120, 300
SET_PHOTO_BRACKETING = 4918 # if +-x on app, param = 2 * x
SET_VIDEO_SHORT = 4618 # 0, 10, 20, 30 seconds
SET_VIDEO_TIMELAPSE = 4621 # 0, 255, 1, 2, 5, 10, 30, 60 seconds
SET_VIDEO_SLOWMO = 4916 # 0, 2 times; 4, 8 are not supported
SET_BUZZER_VOLUME = 6145 # 0, 1, 2, 3, 4 -> [0, 100]
SET_LED = 6156 # 0, 1
AUTO_TURN_OFF = 6151 # params 0, 5, 10 seconds
TURN_OFF = 6155
DELETE_FILE = 1281
FILE_INFO = 1026
# {"msg_id":1025,"param":"/tmp/SD0/DCIM/20171216/IMG_20171216_030505.JPG","token":3,"type":"thumb"}
# {"msg_id":1025,"param":"/tmp/SD0/DCIM/20171216/IMG_20171216_030505.MP4","token":3,"type":"idr"}
FILE_PREVIEW = 1025
GYRO_CALIBRATION = 6165
PHOTO_PRESS = 4864 # was old 513 ?
PHOTO_LONGPRESS = 4868 # timer
VIDEO_REC_START = 5028
VIDEO_REC_STOP = 514 #
VIDEO_LONGPRESS = 4623
# 6912x3456: 0, 3456x1728(stitched): 1, 6912x3456(stitched): 2, 6912x3456(RAW): 3
PHOTO_RES = 4872
PHOTO_WB = 5168 # Auto: 0, Outdoors: 1, Overcast: 2, Incandescent: 3, Fluorescent: 4
PHOTO_EV = 5169 # if x[-3, 3, .5] on app, param = 2 * x
PHOTO_SHUTTERTIME = 5171 # if auto; x = 0, if x >= 1; x, if x < 1; (1 << 15) + 1/x
PHOTO_ISO = 5172 # 0, 50, 100, 200, 400, 800, 1600
# 3456x1728|30fps: 0, 2304x1152|30fps: 1, 2304x1152|60fps: 2, 2048x512|120fps Top: 7, 2048x512|120fps bottom (Bullet time): 9, 3456x1728|30fps HighBitrate: 10
VIDEO_RES = 4612
VIDEO_WB = 5136 # Auto: 0, Outdoors: 1, Overcast: 2, Incandescent: 3, Fluorescent: 4
VIDEO_EV = 5137 # if x[-3, 3, .5] on app, param = 2 * x
# responses
# values for charging and discharging. is value for charging is twice of actual value?
BATTERY_STATUS = 4361
STANDBY = 4362 # enabled 1, disabled 0
# unknown
# 1793, 6162
# from Xiaomi_yi
# 3 - video settings and camera clock
# 11 - device details