X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=docs%2F3-Usage.md;h=4c0f8206ab77eb985ae6611fed6089abd67b6c64;hb=742ca13257214eb91e6cd8659b78f91438541354;hp=317e072424758b14bf630a5582542785c7138567;hpb=03fc96a9671d5739264f2208bfe2475641502164;p=apps%2Fagl-service-can-low-level.git diff --git a/docs/3-Usage.md b/docs/3-Usage.md index 317e0724..4c0f8206 100644 --- a/docs/3-Usage.md +++ b/docs/3-Usage.md @@ -99,7 +99,7 @@ The binding reads system configuration file _/etc/dev-mapping.conf_ at start to map logical name from signals described in JSON file to linux devices name initialized by the system. -Edit file _/etc/dev-mappping.conf_ and add mapping in section `CANbus-mapping`. +Edit file _/etc/dev-mapping.conf_ and add mapping in section `CANbus-mapping`. Default binding configuration use a CAN bus named `hs` so you need to map it to the real one, here are some examples: @@ -311,11 +311,11 @@ Examples: low-can write { "bus_name": "hs", "frame": { "can_id": 1568, "can_dlc": 8, "can_data": [ 255,255,255,255,255,255,255,255]} } # Write a signal's value. -low-can write { "signal_name": "engine.speed", "value": 1256} +low-can write { "signal_name": "engine.speed", "signal_value": 1256} ``` To be able to use write capability, you need to add the permission - ```urn:AGL:permission:low-can:platform:write``` to your package configuration + ```urn:AGL:permission::platform:can:write``` to your package configuration file that need to write on CAN bus through **low-can** api. Then in order to write on bus, your app needs to call verb **auth**