Skip to content

Commit f78860d

Browse files
committed
v1.3.0
1 parent 286e034 commit f78860d

38 files changed

+1282
-1088
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 1.3.0
2+
3+
- Update to VSCP framework v1.3.0, please see the ![changelog](https://github.com/BlueAndi/vscp-framework/releases/tag/v1.3.0) there.
4+
5+
16
## 1.2.0
27

38
- Update to VSCP framework v1.2.0, please see the ![changelog](https://github.com/BlueAndi/vscp-framework/releases/tag/v1.2.0) there.

examples/Generic/Generic.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ void setup() {
126126
vscp.setup(
127127
8, // Status lamp pin
128128
7, // Init button pin
129-
nodeGuid, // Node GUID,
129+
nodeGuid, // Node GUID
130130
255, // Node zone (255 = all zones)
131131
255, // Node sub-zone (255 = all sub-zones)
132132
transportRead, // VSCP framework calls it to read a message
@@ -179,4 +179,4 @@ void loop() {
179179

180180
}
181181

182-
}
182+
}

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vscp-arduino",
3-
"version": "1.2.0",
3+
"version": "1.3.0",
44
"keywords": "vscp, arduino-library, vscp-arduino, automation, home automation",
55
"description": "Very Simple Control Procotol (VSCP) Level 1 Library for the arduino IDE.",
66
"repository": {

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=VSCP
2-
version=1.2.0
2+
version=1.3.0
33
author=Andreas Merkle
44
maintainer=Andreas Merkle <vscp@blue-andi.de>
55
sentence=Very Simple Control Protocol L1 framework for all Arduino boards.

src/framework/core/vscp_core.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ extern uint32_t vscp_core_getTimeSinceEpoch(void)
616616
* Set the time since epoch 00:00:00 UTC, January 1, 1970.
617617
* Note, if a segment master is present, it will overwrite the time with its
618618
* heartbeat message.
619-
*
619+
*
620620
* @param[in] timestamp Unix timestamp
621621
*/
622622
extern void vscp_core_setTimeSinceEpoch(uint32_t timestamp)
@@ -797,7 +797,7 @@ static inline void vscp_core_stateStartup(void)
797797
/**
798798
* Change to init state.
799799
* - Drop nickname id.
800-
*
800+
*
801801
* @param[in] probeSegmentMaster Probe for segment master (true) or start own nickname discovery (false).
802802
*/
803803
static inline void vscp_core_changeToStateInit(BOOL probeSegmentMaster)
@@ -1574,7 +1574,7 @@ static inline void vscp_core_handleProtocolHeartbeat(void)
15741574
vscp_core_changeToStateInit(TRUE);
15751575
}
15761576
}
1577-
1577+
15781578
/* If available, store time since epoch 00:00:00 UTC, January 1, 1970 */
15791579
if (5 <= vscp_core_rxMessage.dataNum)
15801580
{
@@ -1700,19 +1700,19 @@ static inline void vscp_core_handleProtocolDropNicknameId(void)
17001700
(3 == vscp_core_rxMessage.dataNum))
17011701
{
17021702
uint8_t waitTime = 0;
1703-
1703+
17041704
/* Wait time received? */
17051705
if (3 == vscp_core_rxMessage.dataNum)
17061706
{
17071707
waitTime = vscp_core_rxMessage.data[2];
17081708
}
1709-
1709+
17101710
/* Byte 1:
17111711
* Bit 5 - Reset device. Keep nickname.
17121712
* Bit 6 - Set persistent storage to default.
17131713
* Bit 7 - Go idle. Do not start up again.
17141714
*/
1715-
1715+
17161716
/* Set persistent memory to default (bit 6)? */
17171717
if (0 != (vscp_core_rxMessage.data[1] & (1 << 6)))
17181718
{
@@ -1980,7 +1980,7 @@ static uint8_t vscp_core_readRegister(uint16_t page, uint8_t addr)
19801980
break;
19811981
}
19821982
}
1983-
1983+
19841984
#if VSCP_CONFIG_BASE_IS_ENABLED( VSCP_CONFIG_ENABLE_DM )
19851985
/* Is the addressed register part of the decision matrix? */
19861986
else if (FALSE != vscp_dm_isDecisionMatrix(page, addr))
@@ -2211,7 +2211,7 @@ static uint8_t vscp_core_writeRegister(uint16_t page, uint8_t addr, uint8_t val
22112211
/* Write protection disabled? */
22122212
else if (0 != vscp_core_getRegAppWriteProtect())
22132213
{
2214-
2214+
22152215
#if VSCP_CONFIG_BASE_IS_ENABLED( VSCP_CONFIG_ENABLE_DM )
22162216
/* Is the addressed register part of the decision matrix? */
22172217
if (FALSE != vscp_dm_isDecisionMatrix(page, addr))

src/framework/core/vscp_core.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,16 +93,16 @@ extern "C"
9393
#define VSCP_CORE_VERSION_MAJOR (1)
9494

9595
/** VSCP specification minor version number, the framework is compliant to. */
96-
#define VSCP_CORE_VERSION_MINOR (11)
96+
#define VSCP_CORE_VERSION_MINOR (12)
9797

9898
/** VSCP specification sub-minor version number, the framework is compliant to. */
99-
#define VSCP_CORE_VERSION_SUB_MINOR (0)
99+
#define VSCP_CORE_VERSION_SUB_MINOR (2)
100100

101101
/** VSCP specification version string, the framework is compliant to. */
102-
#define VSCP_CORE_VERSION_STR "v1.11.00"
102+
#define VSCP_CORE_VERSION_STR "v1.12.2"
103103

104104
/** VSCP framework version string */
105-
#define VSCP_CORE_FRAMEWORK_VERSION "v1.2.0"
105+
#define VSCP_CORE_FRAMEWORK_VERSION "v1.3.0"
106106

107107
/*******************************************************************************
108108
MACROS
@@ -201,7 +201,7 @@ extern uint32_t vscp_core_getTimeSinceEpoch(void);
201201
* Set the time since epoch 00:00:00 UTC, January 1, 1970.
202202
* Note, if a segment master is present, it will overwrite the time with its
203203
* heartbeat message.
204-
*
204+
*
205205
* @param[in] timestamp Unix timestamp
206206
*/
207207
extern void vscp_core_setTimeSinceEpoch(uint32_t timestamp);

src/framework/core/vscp_dm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ extern void vscp_dm_init(void)
204204
*/
205205
extern void vscp_dm_restoreFactoryDefaultSettings(void)
206206
{
207-
uint16_t index = 0;
207+
uint16_t index = 0;
208208
vscp_dm_MatrixRow row = { 0, 0, 0, 0, 0, 0, 0, 0 };
209209

210210
#if VSCP_CONFIG_BASE_IS_ENABLED( VSCP_CONFIG_ENABLE_DM_EXTENSION )

src/framework/core/vscp_type_alarm.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,11 @@ extern "C"
134134
*/
135135
#define VSCP_TYPE_ALARM_WATCHDOG 12
136136

137+
/**
138+
* Indicates a alarm reset condition.
139+
*/
140+
#define VSCP_TYPE_ALARM_RESET 13
141+
137142
/*******************************************************************************
138143
MACROS
139144
*******************************************************************************/

src/framework/core/vscp_type_information.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,11 @@ extern "C"
610610
*/
611611
#define VSCP_TYPE_INFORMATION_DECREMENTED 87
612612

613+
/**
614+
* Proximity detected.
615+
*/
616+
#define VSCP_TYPE_INFORMATION_PROXIMITY_DETECTED 88
617+
613618
/*******************************************************************************
614619
MACROS
615620
*******************************************************************************/

src/framework/core/vscp_type_measurement.h

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ extern "C"
263263
* Opt Unit: degree (1).
264264
* Opt Unit: arcminute (2).
265265
* Opt Unit: arcseconds (3).
266-
* This is a measurement of an angle.
266+
* This is a measurement of an angle or a direction or similar.
267267
*/
268268
#define VSCP_TYPE_MEASUREMENT_ANGLE 30
269269

@@ -470,12 +470,28 @@ extern "C"
470470
#define VSCP_TYPE_MEASUREMENT_RADIATION_DOSE_EXPOSURE 62
471471

472472
/**
473-
* Default unit: Percent
474-
* Optional unit: Röntgen/R (1)
475-
* Ratio between power in kW and apperant power in kVA.
473+
* Default unit: cos of phase angle.
474+
* This is a measurment of a power factor. Power factor is an expression of energy efficiency. It is
475+
* usually expressed as a percentage - and the lower the percentage, the less efficient power usage
476+
* is.
476477
*/
477478
#define VSCP_TYPE_MEASUREMENT_POWER_FACTOR 63
478479

480+
/**
481+
* Default unit: kVAr
482+
* In electric power transmission and distribution, volt-ampere reactive (VAr) is a unit of
483+
* measurement of reactive power. Reactive power exists in AC circuit when the current and voltage are
484+
* not in phase.
485+
*/
486+
#define VSCP_TYPE_MEASUREMENT_REACTIVE_POWER 64
487+
488+
/**
489+
* Default unit: kVArh
490+
* Reactive energy is the electrical energy produced, flowing or supplied by an electric circuit
491+
* during a time interval, measured in units of kVArh or standard multiples thereof.
492+
*/
493+
#define VSCP_TYPE_MEASUREMENT_REACTIVE_ENERGY 65
494+
479495
/*******************************************************************************
480496
MACROS
481497
*******************************************************************************/

0 commit comments

Comments
 (0)