Skip to content

Commit

Permalink
Merge pull request #46 from nmarks99/master
Browse files Browse the repository at this point in the history
updates to Synaccess netBooter support
  • Loading branch information
keenanlang authored Sep 18, 2024
2 parents 1b1cf45 + 7f03d6b commit 5c6fdec
Show file tree
Hide file tree
Showing 11 changed files with 8,243 additions and 2,581 deletions.
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

0 comments on commit 5c6fdec

Please sign in to comment.