Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updates to Synaccess netBooter support #46

Merged
merged 2 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions ipApp/Db/Synaccess_netBooter.proto
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,18 @@ get_status5

out "$A5";

@mismatch {
in
"%*1c" # sometimes it sends a <00> ?
"$A5\r\n"
"%*4c"
"%(\$1\$2status5.RVAL)1b"
"%(\$1\$2status4.RVAL)1b"
"%(\$1\$2status3.RVAL)1b"
"%(\$1\$2status2.RVAL)1b"
"%(\$1\$2status1.RVAL)1b";
}

in
"$A5\r\n" # from echoed input
"%*4c" # ignore return status ($A0)
Expand All @@ -43,6 +55,7 @@ get_status5
"%(\$1\$2status3.RVAL)1b"
"%(\$1\$2status2.RVAL)1b"
"%(\$1\$2status1.RVAL)1b";

}


Expand Down
86 changes: 86 additions & 0 deletions ipApp/Db/Synaccess_np05b.db
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Used to display a desciption of the device
record(stringout, "$(P)$(R)device")
{
field (DESC, "$(R)DEVICE_NAME")
}

##########################################
# $(P)$(R)setX
# Sets outlet X On (VAL=1) or Off (VAL=0)
Expand Down Expand Up @@ -116,6 +122,13 @@ record (bo, "$(P)$(R)alloff")
# Indicates the status of each outlet
######################################

# Check the status of the outlets every 10 seconds
record (bo, "$(P)$(R)periodic_status")
{
field (SCAN, "10 second")
field (FLNK, "$(P)$(R)get_status.PROC")
}

record (stringin, "$(P)$(R)get_status")
{
field (DTYP, "stream")
Expand Down Expand Up @@ -153,3 +166,76 @@ record (bi, "$(P)$(R)status5")
field (INP, 0)
field (SCAN, "Passive")
}

######################################
# $(P)$(R)userCalcOutX
# calcout records for each port
#
# $(P)userCalcOutX:$(R)EnableCalc
# enable/disble record for each calcout
######################################

record(bo, "$(P)userCalcOut1:$(R)EnableCalc")
{
field (VAL, 1)
field (OUT, "$(P)$(R)userCalcOut1.DISA $(P)userCalcOut1:$(R)EnableCalc.RVAL")
field (PINI, "YES")
}

record(calcout, "$(P)$(R)userCalcOut1")
{
field (SCAN, "Passive")
field (DISV, "0")
}

record(bo, "$(P)userCalcOut2:$(R)EnableCalc")
{
field (VAL, 1)
field (OUT, "$(P)$(R)userCalcOut2.DISA $(P)userCalcOut2:$(R)EnableCalc.RVAL")
field (PINI, "YES")
}

record(calcout, "$(P)$(R)userCalcOut2")
{
field (SCAN, "Passive")
field (DISV, "0")
}

record(bo, "$(P)userCalcOut3:$(R)EnableCalc")
{
field (VAL, 1)
field (OUT, "$(P)$(R)userCalcOut3.DISA $(P)userCalcOut3:$(R)EnableCalc.RVAL")
field (PINI, "YES")
}

record(calcout, "$(P)$(R)userCalcOut3")
{
field (SCAN, "Passive")
field (DISV, "0")
}

record(bo, "$(P)userCalcOut4:$(R)EnableCalc")
{
field (VAL, 1)
field (OUT, "$(P)$(R)userCalcOut4.DISA $(P)userCalcOut4:$(R)EnableCalc.RVAL")
field (PINI, "YES")
}

record(calcout, "$(P)$(R)userCalcOut4")
{
field (SCAN, "Passive")
field (DISV, "0")
}

record(bo, "$(P)userCalcOut5:$(R)EnableCalc")
{
field (VAL, 1)
field (OUT, "$(P)$(R)userCalcOut5.DISA $(P)userCalcOut5:$(R)EnableCalc.RVAL")
field (PINI, "YES")
}

record(calcout, "$(P)$(R)userCalcOut5")
{
field (SCAN, "Passive")
field (DISV, "0")
}
Loading
Loading