-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial commit of SunSpec protocol support
README, struct generator, SunSpec model files, etc.
- Loading branch information
1 parent
5787355
commit 5c5359b
Showing
7 changed files
with
81 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
sunspec/types.go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module github.com/patsec/ot-sim | ||
|
||
go 1.21 | ||
go 1.22 | ||
|
||
require ( | ||
actshad.dev/mbserver v0.3.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# OT-sim SunSpec Module | ||
|
||
Specify list of model IDs to include in SunSpec device. | ||
|
||
Use existing Modbus server and client implementations with support for different | ||
holding register data types. | ||
|
||
* will need to add support for string types that are used by SunSpec | ||
|
||
Client requests should be for groups of holding registers that map to entire | ||
SunSpec model point groups. On the server side, this means parsing through the | ||
point IDs and grabbing configured static values or values from OT-sim tags to | ||
stuff into the response. | ||
|
||
What will be different between client and server config options? | ||
|
||
* hopefully nothing? | ||
|
||
How do we go about mapping certain SunSpec model points (correct term?) to | ||
OT-sim tags? | ||
|
||
* map point IDs to OT-sim tag or static value? | ||
* have default static values for point IDs that can be overwritten? | ||
|
||
How do we want to specify point scalings? | ||
|
||
* map scaling values to SF values? | ||
* have deault scaling values for SF's that can be overwritten? |