-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJSON-Specification.txt
More file actions
109 lines (94 loc) · 2.38 KB
/
JSON-Specification.txt
File metadata and controls
109 lines (94 loc) · 2.38 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
Siehe: ORB-Manual.pdf, Kap. 8 Datenstrukturen
JS -> App, identify
===================
{"target" :"internal",
"type" :"identify"
}
App -> JS, identify/answer
==========================
{"target" :"internal",
"type" :"identify",
"name" :"OpenRoberta",
"app_version" :"1.0",
"device_version":26,
"model" :"SM-A320FL"
}
JS -> App, set robot
===================
{"target":"internal",
"type" :"setRobot",
"robot":"orb"
}
JS -> App, scan
===============
{"target" :"orb",
"type" :"startScan"
}
App -> JS, scan/answer
======================
{"target" :"orb",
"type" :"scan",
"state" :"appeared",
"brickid" :"00:06:66:69:38:69",
"brickname":"ORB-2 3869"
}
JS -> App, connect
==================
{"target":"orb",
"type" :"connect",
"robot" :"00:06:66:69:38:69"
}
App -> JS, connect/answer
=========================
{"target":"orb",
"type" :"connect",
"state":"connected",
"brickid" :"00:06:66:69:38:69",
"brickname":"ORB-2 3869"
}
JS -> App, configToORB
======================
{ "target":"orb",
"type" :"data",
"configToORB":
{ "Sensor":[{"type":0,"mode":0,"option":0},
{"type":0,"mode":0,"option":0},
{"type":0,"mode":0,"option":0},
{"type":0,"mode":0,"option":0}],
"Motor":[{"tics":0,"acc":0,"Kp":0,"Ki":0},
{"tics":0,"acc":0,"Kp":0,"Ki":0},
{"tics":0,"acc":0,"Kp":0,"Ki":0},
{"tics":0,"acc":0,"Kp":0,"Ki":0}]
}
}
JS -> App, propToORB
====================
{ "target":"orb",
"type":"data",
"propToORB":
{ "Motor":[{"mode":0,"speed":0,"pos":0},
{"mode":0,"speed":0,"pos":0},
{"mode":0,"speed":0,"pos":0},
{"mode":0,"speed":0,"pos":0}],
"Servo":[{"mode":0,"pos":0},
{"mode":0,"pos":0}]
}
}
App -> JS, propFromORB
======================
{ "target":"orb",
"type":"data",
"propFromORB":
{ "Motor":[{"pwr":0,"speed":0,"pos":0},
{"pwr":0,"speed":0,"pos":0},
{"pwr":0,"speed":0,"pos":0},
{"pwr":0,"speed":0,"pos":0}],
"Sensor":[{"valid":false,"type":0,"option":0,"value":[0,0]},
{"valid":false,"type":0,"option":0,"value":[0,0]},
{"valid":false,"type":0,"option":0,"value":[0,0]},
{"valid":false,"type":0,"option":0,"value":[0,0]}],
"Vcc":0,
"Digital":[false,false],
"Status":0
}
}