-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathREADME
29 lines (22 loc) · 907 Bytes
/
README
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
A new sensor simulation can be added as follows
1) Add a new entry to the system.json and system.test_oc.json
config file in config/test_config/SimServerConfig/
2) Add a new entry to ocpath.json
config file in config/test_config/SimServerConfig/
3) Add proto file to $SB/protos
4) Compile proto file
- cd $SB/src/grpc/lib-protos; make
- cd $SB/src/sim/sensors; make
5) Add encoder to create mock data
- cd $SB/src/sim/sensors
- Update jv_protos.py
- Create a new file foo_encode.py
- Add the routine foo_encode
6) Add translator to lib-oc
- cd $SB/src/grpc/lib-oc
- python genxlate.py <proto-file-name> (e.g.: python genxlate.py foo)
- A new file "OpenConfigFoo.cpp" will get generated
- Add translation code in this routine
- make
- Rebuild the server so that this new translation is incorporated
- cd $SB/src/grpc/server; make