Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
IQRF Gateway Daemon
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
38
Issues
38
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Open source
IQRF Gateway Daemon
Commits
56c0525a
Commit
56c0525a
authored
Oct 01, 2020
by
Vasek Hanák
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backup/Restore, Read/Write TrConf and EnumerateDevice services API update
parent
744fc1bd
Pipeline
#3773
passed with stages
in 47 minutes and 14 seconds
Changes
10
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
25 additions
and
25 deletions
+25
-25
api/iqmeshNetwork_Backup-response-1-0-0.json
api/iqmeshNetwork_Backup-response-1-0-0.json
+1
-1
api/iqmeshNetwork_EnumerateDevice-response-1-0-0.json
api/iqmeshNetwork_EnumerateDevice-response-1-0-0.json
+1
-1
api/iqmeshNetwork_ReadTrConf-response-1-0-0.json
api/iqmeshNetwork_ReadTrConf-response-1-0-0.json
+1
-1
api/iqmeshNetwork_WriteTrConf-request-1-0-0.json
api/iqmeshNetwork_WriteTrConf-request-1-0-0.json
+1
-1
src/IqmeshServices/BackupService/BackupService.cpp
src/IqmeshServices/BackupService/BackupService.cpp
+1
-1
src/IqmeshServices/EnumerateDeviceService/EnumerateDeviceService.cpp
...ervices/EnumerateDeviceService/EnumerateDeviceService.cpp
+3
-3
src/IqmeshServices/ReadTrConfService/ReadTrConfService.cpp
src/IqmeshServices/ReadTrConfService/ReadTrConfService.cpp
+3
-3
src/IqmeshServices/WriteTrConfService/ComMngIqmeshWriteConfig.h
...meshServices/WriteTrConfService/ComMngIqmeshWriteConfig.h
+5
-5
src/IqmeshServices/WriteTrConfService/WriteTrConfService.cpp
src/IqmeshServices/WriteTrConfService/WriteTrConfService.cpp
+1
-1
src/include/IIqrfBackup.h
src/include/IIqrfBackup.h
+8
-8
No files found.
api/iqmeshNetwork_Backup-response-1-0-0.json
View file @
56c0525a
...
...
@@ -44,7 +44,7 @@
"type"
:
"boolean"
,
"description"
:
"Device online status."
},
"
MID
"
:
{
"
mid
"
:
{
"type"
:
"integer"
,
"description"
:
"Device MID."
},
...
...
api/iqmeshNetwork_EnumerateDevice-response-1-0-0.json
View file @
56c0525a
...
...
@@ -347,7 +347,7 @@
"type"
:
"integer"
,
"description"
:
"A nonzero value specifies an alternative DPA service mode channel."
},
"localF
RCr
eception"
:
{
"localF
rcR
eception"
:
{
"type"
:
"boolean"
,
"description"
:
"If set, then Local FRC reception is enabled at [N]."
},
...
...
api/iqmeshNetwork_ReadTrConf-response-1-0-0.json
View file @
56c0525a
...
...
@@ -176,7 +176,7 @@
"type"
:
"integer"
,
"description"
:
"Baud rate of the UART interface if one is used."
},
"localF
RCr
eception"
:
{
"localF
rcR
eception"
:
{
"type"
:
"boolean"
,
"description"
:
"If set, then Local FRC reception is enabled at [N]."
},
...
...
api/iqmeshNetwork_WriteTrConf-request-1-0-0.json
View file @
56c0525a
...
...
@@ -141,7 +141,7 @@
"type"
:
"integer"
,
"description"
:
"A nonzero value specifies an alternative DPA service mode channel."
},
"localF
RCr
eception"
:
{
"localF
rcR
eception"
:
{
"type"
:
"boolean"
,
"description"
:
"If set, then Local FRC reception is enabled at [N]."
},
...
...
src/IqmeshServices/BackupService/BackupService.cpp
View file @
56c0525a
...
...
@@ -71,7 +71,7 @@ namespace iqrf {
if
(
deviceBackupData
.
getOnlineStatus
()
==
true
)
{
// Put MID
objDeviceBackup
.
AddMember
(
"
MID"
,
deviceBackupData
.
getMID
(),
allocator
);
objDeviceBackup
.
AddMember
(
"
mid"
,
deviceBackupData
.
getMid
(),
allocator
);
// Put DPA version
objDeviceBackup
.
AddMember
(
"dpaVer"
,
deviceBackupData
.
getDpaVersion
()
&
0x3fff
,
allocator
);
// Put backup data
...
...
src/IqmeshServices/EnumerateDeviceService/EnumerateDeviceService.cpp
View file @
56c0525a
...
...
@@ -878,11 +878,11 @@ namespace iqrf {
// for DPA >= v4.15
if
(
dpaVer
>=
0x0415
)
{
// localF
RCr
eception at [N] only
// localF
rcR
eception at [N] only
if
(
deviceEnumerateResult
.
getDeviceAddr
()
!=
COORDINATOR_ADDRESS
)
{
bool
localF
RCr
eception
=
((
configuration
[
0x0c
]
&
0b00000001
)
==
0b00000001
);
Pointer
(
"/data/rsp/trConfiguration/localF
RCreception"
).
Set
(
response
,
localFRCr
eception
);
bool
localF
rcR
eception
=
((
configuration
[
0x0c
]
&
0b00000001
)
==
0b00000001
);
Pointer
(
"/data/rsp/trConfiguration/localF
rcReception"
).
Set
(
response
,
localFrcR
eception
);
}
}
...
...
src/IqmeshServices/ReadTrConfService/ReadTrConfService.cpp
View file @
56c0525a
...
...
@@ -485,11 +485,11 @@ namespace iqrf {
// for DPA >= v4.15
if
(
dpaVer
>=
0x0415
)
{
// localF
RCr
eception at [N] only
// localF
rcR
eception at [N] only
if
(
deviceAddr
!=
COORDINATOR_ADDRESS
)
{
bool
localF
RCr
eception
=
((
configuration
[
0x0c
]
&
0b00000001
)
==
0b00000001
);
Pointer
(
"/data/rsp/localF
RCreception"
).
Set
(
response
,
localFRCr
eception
);
bool
localF
rcR
eception
=
((
configuration
[
0x0c
]
&
0b00000001
)
==
0b00000001
);
Pointer
(
"/data/rsp/localF
rcReception"
).
Set
(
response
,
localFrcR
eception
);
}
}
...
...
src/IqmeshServices/WriteTrConfService/ComMngIqmeshWriteConfig.h
View file @
56c0525a
...
...
@@ -74,7 +74,7 @@ namespace iqrf {
// DPA configuration bits #1
struct
{
bool
localF
RCr
eception
;
bool
localF
rcR
eception
;
uint8_t
mask
;
uint8_t
value
;
}
dpaConfigBits_1
;
...
...
@@ -332,11 +332,11 @@ namespace iqrf {
if
(
(
jsonVal
=
rapidjson
::
Pointer
(
"/data/req/rfAltDsmChannel"
).
Get
(
doc
))
)
m_writeTrConfParams
.
rfSettings
.
rfAltDsmChannel
=
jsonVal
->
GetInt
();
// localF
RCr
eception
if
((
jsonVal
=
rapidjson
::
Pointer
(
"/data/req/localF
RCr
eception"
).
Get
(
doc
)))
// localF
rcR
eception
if
((
jsonVal
=
rapidjson
::
Pointer
(
"/data/req/localF
rcR
eception"
).
Get
(
doc
)))
{
m_writeTrConfParams
.
dpaConfigBits_1
.
localF
RCr
eception
=
jsonVal
->
GetBool
();
if
(
m_writeTrConfParams
.
dpaConfigBits_1
.
localF
RCr
eception
==
true
)
m_writeTrConfParams
.
dpaConfigBits_1
.
localF
rcR
eception
=
jsonVal
->
GetBool
();
if
(
m_writeTrConfParams
.
dpaConfigBits_1
.
localF
rcR
eception
==
true
)
m_writeTrConfParams
.
dpaConfigBits_1
.
value
=
0x01
;
m_writeTrConfParams
.
dpaConfigBits_1
.
mask
=
0x01
;
}
...
...
src/IqmeshServices/WriteTrConfService/WriteTrConfService.cpp
View file @
56c0525a
...
...
@@ -752,7 +752,7 @@ namespace iqrf
// DPA configuration bits #1 for DPA > 4.14
if
(
coordEnum
.
DpaVersion
>
0x0414
)
{
// DPA configuration bits #1 (address 0x0d) - bit0 localF
RCr
eception [N] only
// DPA configuration bits #1 (address 0x0d) - bit0 localF
rcR
eception [N] only
if
((
m_writeTrConfParams
.
deviceAddress
!=
COORDINATOR_ADDRESS
)
&&
(
m_writeTrConfParams
.
dpaConfigBits_1
.
mask
==
0x01
))
{
TrConfigByte
dpaConfigBits_1
(
0x0d
,
m_writeTrConfParams
.
dpaConfigBits_1
.
value
,
m_writeTrConfParams
.
dpaConfigBits_1
.
mask
);
...
...
src/include/IIqrfBackup.h
View file @
56c0525a
...
...
@@ -24,7 +24,7 @@ namespace iqrf {
private:
uint16_t
m_address
;
bool
m_online
;
uint32_t
m_
MID
;
uint32_t
m_
mid
;
uint16_t
m_dpaVersion
;
std
::
basic_string
<
uint8_t
>
m_data
;
...
...
@@ -32,15 +32,15 @@ namespace iqrf {
DeviceBackupData
()
:
m_address
(
0
),
m_online
(
false
),
m_
MID
(
0
),
m_
mid
(
0
),
m_dpaVersion
(
0
)
{
}
DeviceBackupData
(
const
uint16_t
address
,
const
bool
online
,
const
uint32_t
MID
,
const
uint16_t
dpaVersion
,
const
std
::
basic_string
<
uint8_t
>
&
data
)
DeviceBackupData
(
const
uint16_t
address
,
const
bool
online
,
const
uint32_t
mid
,
const
uint16_t
dpaVersion
,
const
std
::
basic_string
<
uint8_t
>
&
data
)
:
m_address
(
address
),
m_online
(
online
),
m_
MID
(
MID
),
m_
mid
(
mid
),
m_dpaVersion
(
dpaVersion
),
m_data
(
data
)
{
...
...
@@ -49,7 +49,7 @@ namespace iqrf {
DeviceBackupData
(
const
uint16_t
address
)
:
m_address
(
address
),
m_online
(
false
),
m_
MID
(
0
),
m_
mid
(
0
),
m_dpaVersion
(
0
)
{
}
...
...
@@ -60,7 +60,7 @@ namespace iqrf {
}
bool
getOnlineStatus
()
const
{
return
m_online
;
}
uint32_t
getM
ID
()
const
{
return
m_MID
;
}
uint32_t
getM
id
()
const
{
return
m_mid
;
}
uint16_t
getDpaVersion
()
const
{
return
m_dpaVersion
;
}
std
::
basic_string
<
uint8_t
>
getBackupData
()
const
{
return
m_data
;
}
...
...
@@ -74,9 +74,9 @@ namespace iqrf {
m_online
=
online
;
}
void
setM
ID
(
const
uint32_t
MID
)
void
setM
id
(
const
uint32_t
mid
)
{
m_
MID
=
MID
;
m_
mid
=
mid
;
}
void
setDpaVersion
(
uint16_t
dpaVersion
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment