summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-09-28Add timestamp to diagnostic message event tooRomain Forlot2-1/+3
Change-Id: Id01a15efe1b6aa063ac9bb2d3989ff195035eeb0 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-09-28Use afb_genskel tools to generate api definitionRomain Forlot4-3/+161
Generated files hand fixed because of usage of C++ which has to use c++ binding function afb::auth to add afb_auth struct Change-Id: I80ee9cb751cc813754c949d8746aec197da6d52f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-09-28Handle batched subscriptions in a JSON arrayRomain Forlot1-22/+30
Change-Id: I33ade46eaf022a5c7e7cf874f8b838a4a6827f87 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-09-20Docs - autogenerate coverSebastien Douheret4-8/+31
Change-Id: Ia0a8a6b19ce7b173189d73cdc5c0bbba77b2b71f Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-09-19docs: fix cover versionStephane Desneux2-0/+0
Change-Id: I3a0e376fdb056a16c2f48e6a4fe2c6b2dd242855 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2017-09-19docs: fix cover versionStephane Desneux1-2/+2
Change-Id: I3008fdf2a602c03a2448d69050368fc0f69a2319 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2017-09-19Fix: again and again documentation revisionRomain Forlot1-1/+1
Change-Id: I3eb8d2fa9f614504d301d1e973ea9136a597c168 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh> # Conflicts: # book.json # docs/Doc-Revisions.md Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-09-19Set docs revision to 4.99-EERC1Sebastien Douheret2-3/+3
Change-Id: I7e78e7199d2441ee4a13ba36fde7489ef6efea46 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-09-19Documents new verb: get, list and write for EELRomain Forlot3-0/+55
Change-Id: Id03f6363c5d452db43c696e045caaefad0916dc6 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-09-19Update doc: Timestamp added to returned events.Romain Forlot1-3/+3
Change-Id: I4021185bfee862ae701d7510debe31cf17dd97c9 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-09-13Add timestamp val to returned json object on eventRomain Forlot3-4/+29
Change-Id: Ibfb514eb27c0378dba7e302755e5f6f95b0ca242 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-09-01Add get() and list() APIYuichi Kusakabe3-0/+114
This patch is porting AMB get() and list() API. Change-Id: Ic1d391219f1d64ab127bc1977a5b198abe0fc94b Signed-off-by: Yuichi Kusakabe <yuichi.kusakabe@jp.fujitsu.com>
2017-09-01Fix can write API resultYuichi Kusakabe1-2/+2
write_raw_frame() and write_signal() return results. Change-Id: I3f6d03eaf02bde9ad02fd8de912c5816d249570f Signed-off-by: Yuichi Kusakabe <yuichi.kusakabe@jp.fujitsu.com>
2017-09-01Fix write CAN bus nameYuichi Kusakabe1-1/+1
This patch is low-can write device use /dev/dev-mapping device name. Change-Id: I165bdbd37a4e988b85f6ad7a669e6b1306957d45 Signed-off-by: Yuichi Kusakabe <yuichi.kusakabe@jp.fujitsu.com>
2017-09-01Install step created by app-templates submoduleRomain Forlot5-11/+21
Change-Id: Iaaf81d6700b09c5a40446df41435a02e198ee3e0 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-09-01New app-templates changes about compil flags.Romain Forlot2-5/+12
Now, all compilation options can be removed or rearranged. Change-Id: Id25b8154a42d5a7fcce7e031f5b87404d7585d9d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-08-23Finalize JSON OPENapi definition fileRomain Forlot1-8/+3
Change-Id: Ic346c408c938aad39fbea387af4224c14d8a727c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-08-09FormatRomain Forlot1-7/+28
Change-Id: I995fa8af8e8fc330f07b9609129723c09e0b13bf Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-08-09Improve debugging diag and empty eventRomain Forlot1-0/+4
Change-Id: I64dd5b3f241a9696dc759dffff884772e3f72fd7 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-08-01packaging: add hidden attribute to required permissionsMatt Ranostay1-0/+1
Add urn:AGL:permission::public:hidden to the required permissions to hide blank icon from HomeScreen Bug-AGL: SPEC-796 Change-Id: I3c844a5c657d267678fe6ac78caaf99170c0cc53 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-07-27Update submodule for app-templatesJan-Simon Möller1-0/+0
This brings-in c10409. Change-Id: I6ea8dd2f3e63beaebe4811584138d183cd767ff2 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
2017-07-27update app-templatesRonan Le Martret1-0/+0
Change-Id: I504bcd3f5c928db25757e0b932bbd84d448081a6 Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
2017-07-25First draft API definition for Appfw Genskel.Romain Forlot1-0/+207
Change-Id: I3547560ebfa0fbc484bf411ce7c08011db6f64b1 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-25Update .gitignore with syncthing hiden fileRomain Forlot1-0/+1
Change-Id: If0e8b5092f4b5101d434efdc8ecf3bf0c545d817 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-25Make Kernel check not mandatoryRomain Forlot4-5/+15
Use 2 different checks, one specify a mandatory kernel version and the other will output a warning and position a preprocessing variable that can be used in the code to exclude portions of code that use kernel features not available under a certain version. Bug-AGL: SPEC-772 Change-Id: I04523abe96749aeeb185e90eee154fd70a4cbf19 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-21udpate app-templatesRomain Forlot1-0/+0
Yocto fixes Cleaning left files Autobuild scripts See app-templates git log :D Change-Id: I14389a03dae5f06bf7d757031180971a09130465 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-21Examples reorganizationRomain Forlot15-653/+2483
Separated by protocols and created signals from reversed engineered signals. Meld all used signals into an "agl-vcar" folder to be used as default. Change-Id: I27f7bc227a6fcea3db6672819e6a4d7bbf09863b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-21FormatRomain Forlot17-56/+56
Change-Id: I036befbfb38b01d046d35a1364c28e0835dcbd41 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-21Check whether a signal is writable before sendingRomain Forlot1-3/+8
Change-Id: Id04d04a07e43738f7379e33fa7c6022eaa426343 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-21Split big function to several smallerRomain Forlot3-47/+75
Change-Id: I070fdafd51e789eb37b963a100b57cae9dff3e25 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-21Fix: encoding value method has wrong signature.Romain Forlot2-7/+7
Change-Id: I227c721f782eef85f83db9ffdb7cc0e180d17da4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-21Handle object without signal, only a busRomain Forlot2-3/+28
To be able to send or receive message on bus without depending upon on a signals, this is adds opening socket just with a bus_name if provided. Also handle send a frame on bus depending on a signal or not. Change-Id: I3a60a03a2d36db4db14b9ae90eefc4bbc8f21e32 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-21Be able to write raw frame & encode value to sentRomain Forlot6-30/+272
Check whether the argument is a raw frame or a Signal + Value to encode then send. 1 new class to handle encoding part of a value as well as a new method for can_signal_t which return index of a map from its value. Change-Id: I288d2aeec28ce74c9ca35750db18557c9251e1df Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-21Create an auth verb to raise privilege of sessionRomain Forlot3-2/+19
Simply raise to a LOA of 1 the current session if asked Need to add some checks to not allow anyone raise its session must hold a specific permission urn:AGL:permission::platform:can:write to be able to authenticate. Change-Id: Id4e01ca20ba8437e97a64db682fdd3ebf45ce7b4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-21Signal isn't required so now have a default valueRomain Forlot1-1/+1
We could want to send a message through the bus not attached to a can_signal_t object in case of complete RAW message Change-Id: I133671f8cdcc52a98c8bde9e343c0dc7edcb366e Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-21Include HVAC and meld with Toyota examples one.Romain Forlot1-93/+321
Change-Id: Ia55dbcd7cabcd38d532a239cb00f8480a095bda2 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-21Use compile generated DB instead of this fileRomain Forlot1-12/+0
Change-Id: I4734103e3820a98decc44bd66c9ed682141b423c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-21Cleaning and renaming.Romain Forlot12-100/+74
Change-Id: I24b78e3d41124650da286a50297f1c51410c2c6a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-21Fix: compile error initializing afb_auth struct.Romain Forlot2-3/+2
std=c++11 isn't needed. Added new class to the build and comment an other that isn't used. Change-Id: Ic32dead5e1ab55e0405f5e70224e4dad2c066116 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-21Implements new verbs to write on CAN busRomain Forlot9-325/+490
This will open a new BCM socket not dedicated to a subscription use to that mean. Change-Id: Idf353015f731e32d6eb7c7856bd73167c66e790f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-21Example regenerationRomain Forlot2-169/+270
Change-Id: Iab06c4aebcc4172ae831c8fda2d3986315fb94c2 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-21Markdown lintRomain Forlot1-0/+3
Change-Id: If93e9353fbafc7d926a2987a2e6a0c0253248de4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-21Default pkg dependency no pertinent.Romain Forlot1-1/+0
libmicrohttpd is a dependency of afb-daemon so no need to specify it and the project did not use it anyway Change-Id: I3de5b24d58a44a361d6aa5738179069201403c54 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-21Fix canmessage default frequencyYuichi Kusakabe1-2/+2
Default CAN message is frequency_cloc_t(0.0)=1Hz setting. But this value is not recived under 1000ms CAN data. This patch is default frequency change 2000Hz(0.5ms). Change-Id: I3c099b75da244ee147b67bc3ce7a95aea2bbf6fa Signed-off-by: Yuichi Kusakabe <yuichi.kusakabe@jp.fujitsu.com>
2017-07-20Fix subscribe responseRomain Forlot1-1/+4
This patch is "No signal(s) found for %s." return value is ret = -1. Change-Id: Ia6f4f2db13beb7f9d3507d890383fc13cbddac0f Signed-off-by: Yuichi Kusakabe <yuichi.kusakabe@jp.fujitsu.com>
2017-07-18fix link optionRonan Le Martret1-0/+4
Change-Id: Ibca245fc8c6ec7c68d24b9c6e693156974f186ef Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
2017-07-11Fix: autobuild script errors when no DEST definiedRomain Forlot3-8/+34
Change-Id: I8b8113e6c8b36b8e9040a41e9a575856153f817f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-10Different errors between no file and wrong contentRomain Forlot1-5/+8
Change-Id: Ic705e09811b3479af8dc2287c53fa53fdcdff656 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-07Integrates latest fix from app-templates submoduleRomain Forlot1-0/+0
Change-Id: Iafa227798f3a3d8e0d4bf3d4b226a528abe4c1dc Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-07-07Update struct to follow af-binder changes.Romain Forlot1-3/+4
Added an info fields in struct. Change-Id: I93165911c1ceb62c9893fa1c4635088f0df36b3f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>