Sangjung Woo [Tue, 7 Feb 2017 01:48:58 +0000 (10:48 +0900)]
Add internalUpdate for sync opreation
When the value of AMB object is updated, its related callback functions
also are called. However, there is a case that the value of AMB object
should be updated _internally_ without calling the callback functions.
In order to support this function, internalUpdate is newly added and its
value is always false except be set in the code.
Change-Id: I241f4859546db7436902f19bbb251e072f4f5dbc
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
Sangjung Woo [Mon, 23 Jan 2017 11:24:08 +0000 (20:24 +0900)]
client: Add Object Detection & Washer_Shot
This patch adds the macro for Object Detection related with PAS sensor
and Washer Shot opreation.
Change-Id: I58d19e3a272be04eb0a39215c24f1c6cdb5c2d31
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
Sangjung Woo [Thu, 19 Jan 2017 07:49:27 +0000 (16:49 +0900)]
client: Add OutsideTemperature, LampHeadBeam & Wiper
This patch adds the macro for Outside Temperature, Lamp Head Beam & Wiper
related things.
Change-Id: I3174fbf01a9a5db53192a0a5ab3d44a2644a393f
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
Sangjung Woo [Wed, 18 Jan 2017 07:53:59 +0000 (16:53 +0900)]
timestamp: fix currentTime() problem
amb::Timestamp::currentTime() should return the 'current' time and it is
converted to the local time. However, currentTime() uses steady_clock
instead of system_clock so it always returns the lower epoch value than
the real one. This patch revises the value by adding startTimeEpoch.
Change-Id: Ibe6e445e398642e663b130c6185eae989764f2a3
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
Sangjung Woo [Wed, 11 Jan 2017 07:08:36 +0000 (16:08 +0900)]
client: Add CidBtnAutoMode for supporting Auto Mode
This patch adds the CidBtnAutoMode to support Auto Mode in HVAC.
Change-Id: I0997aed36f5488ad0e484fa712e042dcfc40d165
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
Sangjung Woo [Fri, 6 Jan 2017 07:02:48 +0000 (16:02 +0900)]
client: use async call instead of sync call
In order to improve the performance when updating the CAN related data,
this patch uses the DBus async method since it returns immediately
without checking the result.
Change-Id: I8aca4cb4c6774c1d29a6e5229d72ed4d9314e4d4
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
Sangjung Woo [Wed, 30 Nov 2016 04:36:39 +0000 (13:36 +0900)]
client: add new CID Objects for Climate
In order to support the Climate features like AirCon or Defrosition,
this patch adds the new CID objects.
Change-Id: Ie8125de6a5c805d589fe5af4232ff781a3e5750c
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
Sangjung Woo [Sun, 20 Nov 2016 12:20:16 +0000 (21:20 +0900)]
client: workaround for failure to find AMB Objects
This patch is a kind of workaround for failure to find specific AMB
Objects since current ambd is launched twice because of vcan & usb can
device.
Change-Id: I26bcfdf8ae4cfc29d446d3b265d55f38c75da54c
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
Sangjung Woo [Wed, 23 Nov 2016 10:37:14 +0000 (19:37 +0900)]
client: Add ambd restart signal handler
Since ambd is a key daemon of Automotive OS so it should be restart
after being killed. In this case, the callback functions that are
registered by its clients should be restored. This patch does this task
by adding DBus signal handler in client library.
Change-Id: Ie62aa061c534f9710a61149980081e1b5e7dd962
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
Sangjung Woo [Tue, 15 Nov 2016 02:15:41 +0000 (11:15 +0900)]
Support both vcan & USB interface
In order to support both vcan and USB CAN interface, this patch uses the
unified 'samsungcan0' using udev rules.
Change-Id: I810168a9d3006cd9d709d37b6404b836d69de4df
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
Sangjung Woo [Wed, 9 Nov 2016 04:59:32 +0000 (13:59 +0900)]
client: Support HVAC, Battery, Time, Knob & Media Volume
This patch adds HVAC, Battery, Time, Knob & Media Volume functionality
in client library.
Change-Id: I42b2518add59b41790a47b5dc5a0c92d823d58a3
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
Sangjung Woo [Wed, 26 Oct 2016 12:30:10 +0000 (21:30 +0900)]
client: Add CAN_OBJECT_WRITABLE macro
In order to send the can frame to specific AMB object, this patch adds
CAN_OBJECT_WRITABLE macro. This macro automatically generates the send
function related with designated object for developers' convenience
Change-Id: I5e024a62da60569918ca268c5752421411da5eae
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
Sangjung Woo [Tue, 25 Oct 2016 04:59:47 +0000 (13:59 +0900)]
client: Support user data for AMB_PROPERTY_CHANGED_CALLBACK
This patch supports the userdata for AMB_PROPERTY_CHANGED_CALLBACK
function when calling amb_register_property_changed_handler().
Change-Id: I30b7cd1cf6945dca40433dc0353455a4b1b73b2e
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
Sangjung Woo [Fri, 21 Oct 2016 04:39:06 +0000 (13:39 +0900)]
client: Add key event for Wheel controller
This patch adds some key events for the Wheel Remote-controller.
Change-Id: Ida76f2d0f673946acc692b2ce8e5f90201894d23
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
Sangjung Woo [Tue, 11 Oct 2016 11:16:09 +0000 (20:16 +0900)]
client: Add AMB objects for Vehicle Status
This patch adds some AMB objects for Vehicle Status based on Demo CAN
DB.
Change-Id: I6d5dc446634574700e3d9d790993595df86be13f
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
Sangjung Woo [Sat, 8 Oct 2016 02:50:54 +0000 (11:50 +0900)]
Enable CAN source plugin
This patch enables AMB source plugin based on CAN database. In order to
support non CAN support target like Odroid, vcan device is temporarily
enabled.
Change-Id: I3259841fc85a0de7d503e7ec69259fa95012340b
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
Sangjung Woo [Wed, 5 Oct 2016 08:29:42 +0000 (17:29 +0900)]
Add high level client APIs for Samsung CAN DB
This patch adds the high level APIs for AMB client. CAN_OBJECT macro
easily makes specific CAN object data structures and its related functions.
Change-Id: I9b41ced7c32fa27ae70c4fe320979d7fad08f270
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
Sangjung Woo [Thu, 29 Sep 2016 06:49:50 +0000 (15:49 +0900)]
pkgconfig: fix pkgconfig error
Current Tizen uses json-c instead of json. However,
automotive-message-broker.pc requires 'json' so error occurs when
building ABM plugin. And Tizen build system gives 'INCLUDE_INSTALL_DIR'
but AMB overwrites this variable without checking its existence. This
patch fixes these bugs.
Change-Id: I5c920cceff2bc96df4e0efd58824ef7541f5ef39
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
Sangjung Woo [Wed, 21 Sep 2016 05:01:41 +0000 (14:01 +0900)]
Add client utility library for application
In order to easily communicate with automotive message broker daemon,
this library supports basic utility functions to application layer.
Change-Id: Ieacafd7931f1c63ccc1efd405f49eac214b9bc98
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
Suchang Woo [Fri, 19 Aug 2016 06:41:52 +0000 (15:41 +0900)]
Fix missing changes in ambctl
gobject is replaced with gi.repository module. It should be GObject not
gobject.
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Change-Id: I2b0e059833afe78816dc66cee9ea295d942e77bf
Sangjung Woo [Wed, 17 Aug 2016 06:56:31 +0000 (15:56 +0900)]
spec: Add new tool package for debugging and testing
In order to remove python dependency from automotive-message-broker
package, this creates new tool package for debugging and testing tools
such as ambctl, amb-get, amb-listen, amb-set and amb-get-history.
This tool package would not be installed in normal case.
Change-Id: I934929cc031d016e2d145a26eebd0ac553771462
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
Suchang Woo [Tue, 16 Aug 2016 08:17:59 +0000 (17:17 +0900)]
Use %{_sysconfdir} instead of default value in GNUInstallDirs
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Change-Id: I848d9236756c3157d7030e9b4a87d92a8a9dec6c
Sangjung Woo [Tue, 16 Aug 2016 07:19:28 +0000 (16:19 +0900)]
Fix rpm packaging error
- modify doc install path
- include libamb-json-protocol.so, bluemonkey, /etc/init.d/ambd
- add amb.manifest file
Change-Id: I58c989bf29af40f2840930a6ac1bc356cd5b7beb
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
Sangjung Woo [Tue, 16 Aug 2016 04:33:20 +0000 (13:33 +0900)]
Change libwebsockets APIs
libwebsockets APIs are changed from 1.6.0 version
Change-Id: I454008ab6782a5ce6a35544ffc99353b8e21c8c9
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
Sangjung Woo [Tue, 16 Aug 2016 02:15:35 +0000 (11:15 +0900)]
Fix build break for Tizen
- disable opencvlux plugin build
- json package name is changed from json to json-c
- add libssl pkgconfig to BuildRequires
- link libamb for bluemonkey plugin
Change-Id: I6fda18acea6b689369570667deedbdbab4fe6e34
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
Kevron Rees [Fri, 5 Aug 2016 04:40:34 +0000 (21:40 -0700)]
Merge pull request #69 from fredcadete/master
cmake: assorted install path fixes
Frederico Cadete [Tue, 21 Jun 2016 13:25:28 +0000 (15:25 +0200)]
cmake: assorted install path fixes
- Avoid double prefix in PLUGIN_INSTALL_PATH
- Avoid leading "//" in PLUGIN_SEGMENT_INSTALL_PATH - cmake will think
it's a network directory
- Use installation directory variable in amb-qt installation
Signed-off-by: Frederico Cadete <frederico.cadete@awtce.be>
Kevron Rees [Thu, 19 May 2016 16:46:37 +0000 (09:46 -0700)]
Merge pull request #68 from tripzero/master
timestamp: fix for bcm_timeval on older kernels
Kevron Rees [Tue, 19 Apr 2016 17:47:40 +0000 (10:47 -0700)]
amb: version bump 0.14.803
Kevron Rees [Tue, 19 Apr 2016 16:16:55 +0000 (09:16 -0700)]
timestamp: fix for bcm_timeval on older kernels
Kevron Rees [Fri, 8 Apr 2016 22:09:23 +0000 (15:09 -0700)]
Merge pull request #67 from tripzero/trip
fix can error. fix cmake plugin_install_dir
Kevron Rees [Sun, 3 Apr 2016 23:36:30 +0000 (16:36 -0700)]
fix can error. fix cmake plugin_install_dir
can: add bcm_timestamp conversion. timeval to bcm_timeval conversion doesn't work with new gcc
cmake: Fix install path for plugins. Was not being populated properly
Kevron Rees [Wed, 9 Dec 2015 13:28:10 +0000 (05:28 -0800)]
Merge pull request #65 from mvickjlr/climate_control_doc_fix
docs: Correct errors and inconsistencies in climate control section
Matthew Vick [Thu, 3 Dec 2015 22:30:49 +0000 (14:30 -0800)]
docs: Correct errors and inconsistencies in climate control section
Resolve an error in the climate control documentation related to the fan
speed level and resolve a few trivial inconsistencies nearby.
Signed-off-by: Matthew Vick <mvick@jaguarlandrover.com>
Kevron Rees [Tue, 17 Nov 2015 09:45:25 +0000 (01:45 -0800)]
Merge pull request #63 from tripzero/trip
cmake: explicitly set std to c++14
Kevron Rees [Wed, 11 Nov 2015 22:10:01 +0000 (14:10 -0800)]
cmake: no need to prepend prefix
Kevron Rees [Fri, 30 Oct 2015 17:59:15 +0000 (10:59 -0700)]
cmake: use gnuinstalldirs module to encode install paths
Kevron Rees [Fri, 30 Oct 2015 17:15:31 +0000 (10:15 -0700)]
cmake: explicitly set std to c++14
Signed-off-by: Kevron Rees <tripzero.kev@gmail.com>
Kevron Rees [Mon, 8 Jun 2015 22:10:57 +0000 (15:10 -0700)]
Merge pull request #58 from tripzero/master
Version bump and Value Quality
Merging as-is for now
Kevron Rees [Tue, 7 Apr 2015 15:26:00 +0000 (08:26 -0700)]
[ambctl] use gi.repository
Kevron Rees [Wed, 29 Apr 2015 15:20:10 +0000 (08:20 -0700)]
Merge pull request #60 from OlivierDelbeke/plugin_parsing_master
Bugfix: parsing of plugins.d failed with some file-systems
Olivier Delbeke [Thu, 23 Apr 2015 08:11:46 +0000 (10:11 +0200)]
Bugfix: parsing of plugins.d failed with some file-systems
Kevron Rees [Wed, 15 Apr 2015 22:44:46 +0000 (15:44 -0700)]
[dbus] mark deprecated old style for custom dbus property naming.
Kevron Rees [Wed, 15 Apr 2015 22:42:21 +0000 (15:42 -0700)]
[dbus] add overload 'value' for custom dbus property types
Kevron Rees [Wed, 15 Apr 2015 22:24:05 +0000 (15:24 -0700)]
[libamb] - added value quality, removed deprecated GetFoo call, made updateFrequency a separate property
Kevron Rees [Wed, 15 Apr 2015 20:00:07 +0000 (13:00 -0700)]
[ambctl] removed build realic that should never have been added
Kevron Rees [Wed, 15 Apr 2015 19:52:28 +0000 (12:52 -0700)]
Version bump 0.14.802
Kevron Rees [Wed, 15 Apr 2015 19:21:09 +0000 (12:21 -0700)]
Merge pull request #57 from OlivierDelbeke/chrony_for_master
Chrony for master - This has already been reviewed on 0.14. Merging
Olivier Delbeke [Wed, 8 Apr 2015 17:57:40 +0000 (19:57 +0200)]
Added missing plugin fragment for chrony
Olivier Delbeke [Wed, 8 Apr 2015 16:11:17 +0000 (18:11 +0200)]
Chrony plugin code simplification
Olivier Delbeke [Wed, 8 Apr 2015 15:29:14 +0000 (17:29 +0200)]
Using AmbPlugin instead of AbstractSink for the chrony plugin
Olivier Delbeke [Wed, 8 Apr 2015 09:25:07 +0000 (11:25 +0200)]
Added chrony sink plugin
Olivier Delbeke [Wed, 8 Apr 2015 08:42:55 +0000 (10:42 +0200)]
Changed GpsTime format from local time to UTC
Olivier Delbeke [Wed, 8 Apr 2015 08:40:39 +0000 (10:40 +0200)]
Bugfix: wrong date conversion in gpsnmea plugin
Kevron Rees [Mon, 6 Apr 2015 15:33:33 +0000 (08:33 -0700)]
Merge pull request #48 from CogentEmbedded/master
Fixes and improvements in CAN support
Petr Nechaev [Fri, 3 Apr 2015 16:55:31 +0000 (19:55 +0300)]
Fixed tabbing issues
Petr Nechaev [Fri, 3 Apr 2015 15:31:45 +0000 (18:31 +0300)]
Added virtual destructors to CANSocketBCM and CANSocketRaw
Petr Nechaev [Fri, 3 Apr 2015 15:31:22 +0000 (18:31 +0300)]
Updated comments and fixed tabbing
Kevron Rees [Fri, 3 Apr 2015 15:26:01 +0000 (08:26 -0700)]
Merge pull request #49 from tripzero/master
Added AMBClient library for remote interaction
Petr Nechaev [Sun, 29 Mar 2015 16:48:12 +0000 (19:48 +0300)]
ambd: remove redundant code in core
Petr Nechaev [Thu, 12 Mar 2015 22:17:04 +0000 (01:17 +0300)]
Implement CAN_BCM support (SocketCAN)
CAN_BCM is better suited for handling cyclic messages than CAN_RAW
because all timeouts and intervals are handled by kernel code.
Made it a default choice.
Petr Nechaev [Mon, 23 Mar 2015 00:42:29 +0000 (03:42 +0300)]
Fix tabbing
Petr Nechaev [Sun, 22 Mar 2015 22:01:28 +0000 (01:01 +0300)]
plugins/common: Set higher priority for cansocketreader thread
Improves CAN message handling time. CAN plugin's standardFrameReceived(frame) is called within this thread.
Petr Nechaev [Fri, 6 Mar 2015 18:03:05 +0000 (21:03 +0300)]
ambd: add init.d script
May be useful for environments without systemd.
Petr Nechaev [Fri, 6 Mar 2015 00:00:46 +0000 (03:00 +0300)]
AmbSignalMapper: Improve handling of bitbake environment
* Removed "-w" from perl commandline in shebang for better compatibility with bitbake environment. Warnings can be enforced
manually when needed.
* Fixed path computation in plugin generation code
Petr Nechaev [Thu, 5 Mar 2015 16:09:52 +0000 (19:09 +0300)]
AmbSignalMaper: Implement dbc2amb
Adds a "Direct Workflow" for generating CAN plugin from *.dbc file without
intermediate *.json file. dbc2amb selects signals from *.dbc file according to a pre-defined *.msg file which doesn't change when *.dbc file changes. This avoids repeating manual steps on *.json file.
May be useful at very early and late stages of vehicle software development, when there are many changes (cosmetic or other) to *.dbc files.
TODO list:
* implement "mixing" of multiple *.dbc files into one plugin
* allow manual specification of message composition in *.msg file
* implement handling of SEND in addition to RECEIVE
Petr Nechaev [Thu, 5 Mar 2015 20:14:52 +0000 (23:14 +0300)]
ambctl: Fix "list" command
Fixes an error introduced by
5b27ff0b268b48fe58546115e2be01c1a8a8e083
to getManager().
Petr Nechaev [Mon, 26 Jan 2015 12:56:54 +0000 (15:56 +0300)]
Fix compilation errors
For compiling with gcc-4.8.2 (linaro)
Kevron Rees [Fri, 27 Mar 2015 18:27:19 +0000 (11:27 -0700)]
Fix license
Kevron Rees [Fri, 27 Mar 2015 07:05:52 +0000 (00:05 -0700)]
[GpsNmea] - Added GNRMC message support
Kevron Rees [Thu, 26 Mar 2015 16:31:09 +0000 (09:31 -0700)]
Update README.md
Kevron Rees [Thu, 26 Mar 2015 16:30:14 +0000 (09:30 -0700)]
Update README.md
Kevron Rees [Wed, 25 Mar 2015 17:50:41 +0000 (10:50 -0700)]
use 'any' arch
Kevron Rees [Thu, 19 Mar 2015 15:12:52 +0000 (08:12 -0700)]
ble refactoring
Kevron Rees [Thu, 26 Feb 2015 18:09:01 +0000 (10:09 -0800)]
added debug stuff
Kevron Rees [Thu, 26 Feb 2015 18:08:44 +0000 (10:08 -0800)]
[bluemonkey] - more awesome ble code
Kevron Rees [Thu, 19 Feb 2015 23:12:38 +0000 (15:12 -0800)]
[bluemonkey] websocket server implemented
Kevron Rees [Thu, 19 Feb 2015 15:28:37 +0000 (07:28 -0800)]
[bluemmonkey] - websocket server api beginnings
Kevron Rees [Thu, 19 Feb 2015 07:43:45 +0000 (23:43 -0800)]
[bluemonkey] - added websocket module.
Kevron Rees [Wed, 18 Feb 2015 03:03:34 +0000 (19:03 -0800)]
[AMBClient] - nearly working
Kevron Rees [Thu, 19 Feb 2015 00:01:27 +0000 (16:01 -0800)]
[bluemonkey] - new libbm, ble module
Kevron Rees [Tue, 17 Feb 2015 17:07:40 +0000 (09:07 -0800)]
[bluemonkey] - dbus module meta object
Kevron Rees [Mon, 9 Feb 2015 07:39:36 +0000 (23:39 -0800)]
[AMBClient] - More client work.
Kevron Rees [Mon, 9 Feb 2015 01:54:39 +0000 (17:54 -0800)]
[Bluemonkey] - broke out bluemonkey-engine calls into separate class
Kevron Rees [Thu, 5 Feb 2015 23:32:20 +0000 (15:32 -0800)]
[AMB] - updated version number. we are now 0.15 development
Kevron Rees [Wed, 4 Feb 2015 16:39:53 +0000 (08:39 -0800)]
[AMBClient] - added time sync message
Kevron Rees [Tue, 3 Feb 2015 01:36:32 +0000 (17:36 -0800)]
[AMBClient] - fixed json stream handling
Kevron Rees [Mon, 2 Feb 2015 19:44:25 +0000 (11:44 -0800)]
[AMB] updated readme
Kevron Rees [Mon, 2 Feb 2015 18:04:40 +0000 (10:04 -0800)]
[AMBClient] - some work on JSonReader
Kevron Rees [Mon, 2 Feb 2015 07:45:20 +0000 (23:45 -0800)]
[AMBClient] - somewhat working json protocol engine
Kevron Rees [Sat, 31 Jan 2015 00:30:30 +0000 (16:30 -0800)]
fixed compile error
Kevron Rees [Sat, 31 Jan 2015 00:28:51 +0000 (16:28 -0800)]
manual merge of tripzero/master
Kevron Rees [Sat, 31 Jan 2015 00:25:34 +0000 (16:25 -0800)]
[Plugins Common] - json protocol helper class
Kevron Rees [Wed, 28 Jan 2015 18:37:51 +0000 (10:37 -0800)]
[GpsNmea] - also support VehicleSpeed
Kevron Rees [Tue, 27 Jan 2015 22:50:37 +0000 (14:50 -0800)]
[Docs] - Updated docs, removed deprecated docs
Kevron Rees [Mon, 26 Jan 2015 21:07:55 +0000 (13:07 -0800)]
[plugins-common] - use std namespace, include headers
Kevron Rees [Sat, 24 Jan 2015 00:13:22 +0000 (16:13 -0800)]
[Database] - fixed config
Kevron Rees [Sat, 24 Jan 2015 00:01:16 +0000 (16:01 -0800)]
[ambctl] - fixed get, set, listen, getHistory
Kevron Rees [Fri, 23 Jan 2015 23:41:48 +0000 (15:41 -0800)]
version bump 0.13.803
Kevron Rees [Fri, 23 Jan 2015 23:22:34 +0000 (15:22 -0800)]
[ambctl] - fixed tabbing