Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SOAAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Streitenberger
SOAAP
Commits
c5af1775
Commit
c5af1775
authored
1 year ago
by
RobertPatzke
Browse files
Options
Downloads
Patches
Plain Diff
No commit message
No commit message
parent
17feacf0
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
libraries/BlePoll/BlePoll.cpp
+53
-1
53 additions, 1 deletion
libraries/BlePoll/BlePoll.cpp
libraries/BlePoll/BlePoll.h
+2
-0
2 additions, 0 deletions
libraries/BlePoll/BlePoll.h
with
55 additions
and
1 deletion
libraries/BlePoll/BlePoll.cpp
+
53
−
1
View file @
c5af1775
...
...
@@ -104,7 +104,9 @@ void BlePoll::begin(ComType typeIn, int adrIn, AppType appType, dword watchDog)
if
(
typeIn
==
ctMASTER
)
master
=
true
;
else
master
=
false
;
void
resetPollCounters
();
master
=
false
;
resetPollCounters
();
chn
=
0
;
// 1. Bewerbungskanal
...
...
@@ -138,6 +140,7 @@ void BlePoll::begin(ComType typeIn, int adrIn, AppType appType, dword watchDog)
||
appType
==
atTestSend
||
appType
==
atDevSOAAP
||
appType
==
atSOAAP2
||
appType
==
atSOAPP2
)
{
pduOut
.
adr5
=
0x53
;
...
...
@@ -161,7 +164,9 @@ void BlePoll::begin(ComType typeIn, int adrIn, AppType appType, dword watchDog)
pduOut
.
data
[
1
]
=
appType
;
// Pdu-Typ (TYPE)
pduIn
.
data
[
1
]
=
appType
;
// --------------------------------------------------------------------------
if
(
appType
==
atSOAAP1
)
// --------------------------------------------------------------------------
{
if
(
master
)
{
...
...
@@ -177,7 +182,9 @@ void BlePoll::begin(ComType typeIn, int adrIn, AppType appType, dword watchDog)
plMode
=
plmSoaapS
;
}
}
// --------------------------------------------------------------------------
else
if
(
appType
==
atSOAAP2
)
// --------------------------------------------------------------------------
{
if
(
master
)
{
...
...
@@ -212,7 +219,46 @@ void BlePoll::begin(ComType typeIn, int adrIn, AppType appType, dword watchDog)
plMode
=
plmSoaapS
;
}
}
// --------------------------------------------------------------------------
else
if
(
appType
==
atSOAPP2
)
// --------------------------------------------------------------------------
{
if
(
master
)
{
// Bei atSOAPP2 wird die Übermittlung von Daten beim Sendeaufruf implementiert.
// Das erfordert eine spezifische Behandlung für jeden Slave.
// Die globalen Anweisungen sind obsolet und sollen demnächst eliminiert werden.
// (Vorher Auswertung kontrollieren).
//
valuePdu
.
appId
=
plptIMU3F4Ctrl4
;
ctrlPdu
.
appId
=
plptCtrl2
;
plMode
=
plmSoaapM
;
fullCycle
=
true
;
for
(
int
i
=
1
;
i
<=
MAXSLAVE
;
i
++
)
{
ctrlPtr
=
(
PlpCtrl25Ptr
)
&
slaveList
[
i
].
control
;
ctrlPtr
->
counter
=
0
;
ctrlPtr
->
type
=
appType
;
ctrlPtr
->
appId
=
plptCtrl2
;
ctrlPtr
->
ctrlPath
=
0
;
ctrlPtr
->
ctrlCnt
=
0
;
ctrlPtr
->
reqAppId
=
plptIMU3F4Ctrl4
;
ctrlPtr
->
ctrl
[
0
]
=
0
;
ctrlPtr
->
ctrl
[
1
]
=
0
;
}
}
else
{
valuePdu
.
appId
=
plptIMU3F4Ctrl4
;
ctrlPdu
.
appId
=
plptCtrl2
;
plMode
=
plmSoaapS
;
}
}
// --------------------------------------------------------------------------
else
if
(
appType
==
atDevSOAAP
)
// --------------------------------------------------------------------------
{
if
(
master
)
{
...
...
@@ -241,6 +287,12 @@ void BlePoll::begin(ComType typeIn, int adrIn, AppType appType, dword watchDog)
// Konfiguration
// --------------------------------------------------------------------------
//
void
BlePoll
::
setNet
(
int
chnIn
,
int
areaIn
)
{
chn
=
chnIn
;
area
=
areaIn
;
}
void
BlePoll
::
setPollAddress
(
int
chnIn
,
int
adrIn
,
int
areaIn
,
bool
masterIn
,
bool
eadrIn
,
bool
nakIn
)
{
chn
=
chnIn
;
...
...
This diff is collapsed.
Click to expand it.
libraries/BlePoll/BlePoll.h
+
2
−
0
View file @
c5af1775
...
...
@@ -305,6 +305,7 @@ public:
atTestSend
,
// einfacher Sendetest (Soaap)
atSOAAP1
,
// Steuerung optischer und akustischer Ausgaben für Performance-Künstler
atSOAAP2
,
// Version 2
atSOAPP2
,
// Version 2 erneuert (Beachte SOAAP->SOAPP)
atDevSOAAP
,
// Entwicklerbetrieb für SOAAP
atDHA
// Dezentrale Hausautomatisierung
}
AppType
;
...
...
@@ -470,6 +471,7 @@ public:
// Konfiguration
// --------------------------------------------------------------------------
//
void
setNet
(
int
chnIn
,
int
areaIn
);
// Netzwerk ist Kanal und Area
void
setPollAddress
(
int
chnIn
,
int
adrIn
,
int
areaIn
,
bool
masterIn
,
bool
eadrIn
,
bool
nakIn
);
void
setEmptyPollParams
(
int
cycleTotal
,
int
cycleRun
,
dword
timeOut
);
void
setDataPollParams
(
int
slAdr
,
int
prio
,
int
minPrio
,
dword
timeOut
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment