aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorzheng_wenlong <wenlong_zheng@nexty-ele.com>2019-02-06 17:12:28 +0900
committerzheng_wenlong <wenlong_zheng@nexty-ele.com>2019-02-06 17:13:49 +0900
commit1fed2c5a38fed8bc91bb6b8a08982303eb9c2e82 (patch)
tree502b5c63a0570d78863311fbd930f1c96b8a2990 /README.md
parenta98fcb4b99e5a7b14b671e6014ea0b1cc1ea199d (diff)
Change steering to systemd service for ces2019halibut_7.90.0halibut/7.90.07.90.0
Change steering to systemd service for ces2019 Change-Id: I319fb56a302f4f980b43a1b90dee1f36820355fb Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
Diffstat (limited to 'README.md')
-rw-r--r--README.md47
1 files changed, 15 insertions, 32 deletions
diff --git a/README.md b/README.md
index 5d54cc6..6c71a1c 100644
--- a/README.md
+++ b/README.md
@@ -1,14 +1,13 @@
Information
====
-<br>This service use logitel G29 to get wheel info for application same as low-level-can-service.
+<br>This service will be started by systemd, and then
+<br>use logitel G29 to get wheel info for low-level-can-service.
<br>It will read information from usb g29 as /dev/input/js0.
-<br>And give steering wheel information for application.
+<br>And post steering wheel information to "hs" device which is defined in /etc/dev-mapping.conf.
* Hardware: Renesas m3ulcb
-* Software: Daring Dab 4.0.0
-* binding name: af-steering-wheel-binding
-* provide api: steering-wheel
-* verbs: list, subscribe, unsubscribe
+* Software: FF 6.0.0
+* project name: wheel-service
* support device: Logitech G29 steering wheel
* steering wheel information is write in steering_wheel_map.json
* VehicleSpeed < Engine Speed * Gear parameter / 100 >
@@ -19,43 +18,27 @@ Information
* SteeringWheelAngle < 0~360 >
* TurnSignalStatus < 0:None / 1:RightTurn / 2:LeftTurn >
* LightStatusBrake < 0:None / 1:BrakeEnable >
-* verbs
- * list
- * subscribe { "event" : "EngineSpeed" }
- * unsubscribe { "event" : "EngineSpeed" }
How to compile and install
====
-<br> These is a sample recipes for af-steering-wheel-binding, you can just add that recipes into your project and bitbake.
+<br> These is a sample recipes for wheel-service, you can just add that recipes into your project and bitbake.
<br> Sample Recipes: agl-service-steering-wheel_0.1.bb
How to use
====
For AGL Application
----
-<br>1 add these code below into config.xml
+<br>1.you can use candev.sh to start can device.
+<br>2.use below command to start wheel.service.
```
- <param name="steering-wheel" value="ws"/>
+systemctl start wheel.service
```
-<br>2 add WebSocket into qml file and subscribe event name what you need.
-<br>You can find a file named [token-websock.qml] in app-framework-binder.git.
-<br>It's a template for qml. You need modify these informations to connect agl-service-steering.
-```
-property string address_str: "ws://localhost:5555/api?token=3210"
-property string api_str: "steering-wheel"
-property string verb_str: ""
-```
-
-For demo application
-----
-<br>1 you can run this service by shell script
-```
-afb-daemon --token=3210 --ldpaths=${steering-wheel-library-path} --port=5555 --rootdir=. &
-```
-<br>2 use afb-client-demo to get event.
+<br>3.copy sample/application-generated.cpp file to low-level-can-service's low-can-binding/binding/ folder to overwrite the same file.
+<br>4.compile low-level-can-service and reinstall low-can-service.wgt.
+<br>5.use afb-client-demo to get event.
```
afb-client-demo ws://localhost:5555/api?token=3210
-steering-wheel list
-steering-wheel subscribe { "event" : "EngineSpeed" }
-steering-wheel unsubscribe { "event" : "EngineSpeed" }
+low-can list
+low-can subscribe { "event" : "engine.speed" }
+low-can unsubscribe { "event" : "engine.speed" }
```