Skip to content

Commit 5cf20df

Browse files
committed
upm: version 2.0.0
Signed-off-by: Mihai Tudor Panu <[email protected]>
1 parent 33d0aee commit 5cf20df

File tree

3 files changed

+41
-17
lines changed

3 files changed

+41
-17
lines changed

README.md

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@ Programmers can access the interfaces for each sensor by including the sensor’
1414
corresponding header file and instantiating the associated sensor class. In the
1515
typical use case, a constructor initializes the sensor based on parameters that
1616
identify the sensor, the I/O protocol used and the pin location of the sensor.
17+
As of UPM 2.0, sensor initialization can also be done, in most cases, via
18+
overloaded constructors that accept string identifiers.
1719

1820
We endorse additions that implement the generic C and C++ interfaces provided
19-
with the libraries. Multiple sensor and actuator types have been defined, for
20-
instance:
21+
with the libraries. With the 2.0 release, UPM introduces the following sensor
22+
interfaces: iAcceleration, iAngle, iButton, iClock, iCollision, iDistance,
23+
iDistanceInterrupter, iEC, iElectromagnet, iEmg, iGas, iGps, iGyroscope,
24+
iHallEffect, iHeartRate, iHumidity, iLight, iLineFinder, iMagnetometer,
25+
iMoisture, iMotion, iOrp, iPH, iPressure, iProximity, iTemperature, iVDiv,
26+
iWater.
2127

22-
* Light controller
23-
* Light sensor
24-
* Temperature sensor
25-
* Humidity sensor
26-
* Pressure sensor
27-
* Gas sensor
28-
* Analog to digital converter
28+
The developer community is invited to propose new interfaces for actuator types.
2929

30-
The developer community is welcome to submit feedback on existing categories or
31-
suggest new ones.
30+
The UPM project is joining the Eclipse Foundation as an Eclipse IoT project.
31+
You can read more about this [here](https://projects.eclipse.org/proposals/eclipse-upm).
3232

3333
### Example
3434

@@ -97,12 +97,16 @@ See building documentation [here](docs/building.md).
9797
9898
A quick way to add a new sensor driver is to port existing code from another
9999
platform (e.g. Arduino) and swap the IO calls to the MRAA API. This of course
100-
assumes either ownership of the original code or licensing that allows
101-
unrestricted redistribution.
100+
assumes either ownership of the original code or a MIT compatible license that
101+
allows unrestricted redistribution.
102102
103103
The [porting](docs/porting.md) section has more information on this process,
104104
and there is an example available based on the max31855 [sensor](docs/max31855.md).
105105
106+
We have an [on demand webinar](https://software.seek.intel.com/IoT_WebinarSeries_Reg)
107+
available that covers using an IDE to develop for the UPM project along with other
108+
considerations for new contributions.
109+
106110
Read more on creating Java [bindings](docs/creating_java_bindings.md) for your
107111
new driver.
108112
@@ -114,7 +118,8 @@ The name you pick for a newly added sensor needs to be unique in the UPM library
114118
Then, please go over this short set of rules for new [contributions](docs/contributions.md).
115119
Make sure you add yourself as an author on every new code file submitted.
116120
If you are providing a fix with significant changes, feel free to add yourself
117-
as a contributor. Signing-off your commits is mandatory.
121+
as a contributor. Signing-off your commits is mandatory and acts as an
122+
acknowledgment of the committer agreement.
118123
119124
Documenting your code is also a big part of the task. We have a strict set of
120125
tags used to classify our sensors and their capabilities. You can find out more
@@ -137,9 +142,6 @@ our API in a way that will break backwards compatibility. If you find yourself
137142
unable to compile code that was working fine before a library update, make sure
138143
you check the [API changes](docs/apichanges.md) section first.
139144
140-
**NOTE** - Several important API changes are currently underway for some of our
141-
widely used libraries including `libupm-grove`
142-
143145
### Changelog
144146
Version changelog [here](docs/changelog.md).
145147

docs/apichanges.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ API Changes {#apichanges}
44
Here's a list of other API changes made to the library that break source/binary
55
compatibility between releases:
66

7+
# v2.0.0
8+
* Sensors implementing the old interfaces (bme280, bmpx8x, si7005, si1132,
9+
max44009, lp8860, ds1808lc, hlg150h) have been updated to use the new ones,
10+
hence some function names and parameters will be different.
11+
* Removed deprecated basic grove classes from project, see API changes for
12+
v1.1.0 and prior for a complete list
13+
714
# v1.7.0
815
* The interface of **kx122** has been modified to return values instead
916
of receiving pointers. This applies to member functions: getWhoAmI,

docs/changelog.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,21 @@ Changelog {#changelog}
44
Here's a list summarizing some of the key undergoing changes to our library
55
from earlier versions:
66

7+
### v2.0.0
8+
9+
* Reworked existing interfaces and extended the list to include iAcceleration,
10+
iAngle, iButton, iClock, iCollision, iDistance, iDistanceInterrupter, iEC,
11+
iElectromagnet, iEmg, iGas, iGps, iGyroscope, iHallEffect, iHeartRate, iHumidity,
12+
iLight, iLineFinder, iMagnetometer, iMoisture, iMotion, iOrp, iPH, iPressure,
13+
iProximity, iTemperature, iVDiv, iWater
14+
* Provided overloaded string based constructors for a good number of sensors,
15+
allowing initialization from external frameworks without type knowledge
16+
* Removed deprecated basic grove classes from project
17+
* Replaced 6 unsafe occurrences of sprintf() usage
18+
* Cleaned-up build system around target arch detection and cpack usage, added
19+
detection and resolution of tinyb library when used as a dependency
20+
* New sensors: 2jciebu01_ble, 2jciebu01_usb
21+
722
### v1.7.1
823

924
* Bumped library compatibility to new MRAA 2.0 APIs

0 commit comments

Comments
 (0)