-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stabilized
diode
release candidate (#28)
* feat: creating sample Go module * feat: example error handling * refactor: random example communication message * feat: example map data type (slice) & test cases * Template for suggested experimental expectations (#24) * feat: draft variable packet size experiment * docs: new section for project replicability * docs: markdown diagram (system control flow) + blockquote highlight * refactor: utility to insights + diode collection script * fix: text cache source location * Delete `message` directory * Delete `example` directory * bump: latest Go milestone (minor release) * Topic levels for MQTT (#27) * feat: diode telemetry channel + updated configuration settings * refactor: diode config settings & remove republish code * feat: read file contents from text file * feat: MQTT index, topic, payload, & checksum (example) * feat: create new message counter via mutex * feat: send file contents via MQTT telemetry topic * nit: remove unused broker message contents * refactor: message content of diode diagnostics * docs: finalize project directory structure * refactor: variables for testing content publisher * feat: placeholder client + server (I/O) * refactor: data diode settings & connection constants * refactor: application constants with minimal error handling * deps: remove outdated string metrics library * docs: create B4-0144-355112.json (via Fend_B4_4.0.2.fw) Source: #30 * refactor: diode test variables
- Loading branch information
1 parent
cb880db
commit a89f7c9
Showing
18 changed files
with
452 additions
and
713 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,5 +20,5 @@ | |
# Go workspace file | ||
go.work | ||
|
||
# xperimental results | ||
# Input source → experimental results | ||
*.txt |
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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,106 @@ | ||
{ | ||
"/config/input/interface": 1, | ||
"/config/input/ethernet/macAddress": "f4:90:cb:a0:01:2a", | ||
"/config/input/ethernet/ip": "10.6.28.31", | ||
"/config/input/ethernet/gateway": "10.6.28.1", | ||
"/config/input/ethernet/subnetMask": "255.255.255.0", | ||
"/config/input/ethernet/dhcpMode": 0, | ||
"/config/input/rs485/baud": 4, | ||
"/config/input/rs485/dataBits": 1, | ||
"/config/input/rs485/parity": 0, | ||
"/config/input/rs485/stopBits": 0, | ||
"/config/input/rs485/protocol": 0, | ||
"/config/input/ethernet/protocol": 4, | ||
"/config/input/rs485/modbus/mode": 0, | ||
"/config/input/rs485/modbus/rxTimeout": 2, | ||
"/config/input/rs485/modbus/txTimeout": 200, | ||
"/config/input/rs485/modbus/pollingInterval": 300, | ||
"/config/input/rs485/modbus/numberOfDevices": 0, | ||
"/config/input/ethernet/modbus/mode": 1, | ||
"/config/input/ethernet/modbus/txTimeout": 2000, | ||
"/config/input/ethernet/modbus/pollingInterval": 300, | ||
"/config/input/ethernet/modbus/numberOfDevices": 1, | ||
"/config/input/ethernet/modbus/device": { | ||
"1": { | ||
"unitId": 1, | ||
"ip": "192.168.1.100", | ||
"hiByteFirst": true, | ||
"hiWordFirst": true, | ||
"numberOfGroups": 0 | ||
} | ||
}, | ||
"/config/input/ethernet/ftp/clientServer": 0, | ||
"/config/input/ethernet/ftp/transferMode": 0, | ||
"/config/input/ethernet/ftp/transferType": 0, | ||
"/config/input/ethernet/ftp/ip": "10.6.28.31", | ||
"/config/input/ethernet/ftp/username": "", | ||
"/config/input/ethernet/ftp/password": "", | ||
"/config/input/ethernet/ftp/portMin": 49152, | ||
"/config/input/ethernet/ftp/portMax": 65535, | ||
"/config/input/ethernet/ftp/certificate": "", | ||
"/config/input/ethernet/ftp/privateKey": "", | ||
"/config/input/ethernet/tcpServer/port": 49152, | ||
"/config/input/ethernet/tcpServer/socketTimeout": 60, | ||
"/config/input/ethernet/udpServer/port": 49152, | ||
"/config/input/ethernet/udpServer/ackEnabled": true, | ||
"/config/system/model": "FD-5M-SE1-XE2-B4-BLK", | ||
"/config/system/serialNumber": "B4-0144-355112", | ||
"/config/system/fwRevision": "4.0.2", | ||
"/config/system/configRevision": 1, | ||
"/config/system/powerFailure/enabled": true, | ||
"/config/system/powerFailure/clearTimer": 12, | ||
"/config/system/diagnostics/enabled": true, | ||
"/config/system/diagnostics/level": 1, | ||
"/config/system/diagnostics/targetIp": "10.3.14.142", | ||
"/config/system/diagnostics/targetPort": 13337, | ||
"/config/system/diagnostics/retryWaitTime": 30, | ||
"/config/system/port/alwaysOpen": true, | ||
"/config/system/port/timeout": 30, | ||
"/config/system/session/timeout": 30, | ||
"/config/output/interface": 1, | ||
"/config/output/ethernet/macAddress": "f4:90:cb:a0:01:2b", | ||
"/config/output/ethernet/ip": "10.3.14.159", | ||
"/config/output/ethernet/gateway": "10.3.14.1", | ||
"/config/output/ethernet/subnetMask": "255.255.255.0", | ||
"/config/output/ethernet/dhcpMode": 0, | ||
"/config/output/ethernet/ntpServer": "pool.ntp.org", | ||
"/config/output/ethernet/dnsServer": "8.8.8.8", | ||
"/config/output/rs485/baud": 4, | ||
"/config/output/rs485/dataBits": 1, | ||
"/config/output/rs485/parity": 0, | ||
"/config/output/rs485/stopBits": 0, | ||
"/config/output/rs485/protocol": 0, | ||
"/config/output/ethernet/protocol": 5, | ||
"/config/output/cellular/protocol": 0, | ||
"/config/output/cellular/mqtt/deviceId": "B4-0144-355112", | ||
"/config/output/cellular/mqtt/topic": "acep", | ||
"/config/output/cellular/mqtt/hostUrl": "10.3.14.142", | ||
"/config/output/cellular/mqtt/publishCycle": 1, | ||
"/config/output/cellular/mqtt/port": 1, | ||
"/config/output/ethernet/modbus/socketTimeout": 60, | ||
"/config/output/ethernet/ftp/clientServer": 1, | ||
"/config/output/ethernet/ftp/transferMode": 1, | ||
"/config/output/ethernet/ftp/transferType": 0, | ||
"/config/output/ethernet/ftp/targetIp": "192.168.1.1", | ||
"/config/output/ethernet/ftp/user": "", | ||
"/config/output/ethernet/ftp/password": "", | ||
"/config/output/ethernet/ftp/serverVerificationEnabled": true, | ||
"/config/output/ethernet/ftp/retryTimer": 10, | ||
"/config/output/ethernet/ftp/streamingEnabled": false, | ||
"/config/output/ethernet/ftp/logs/directory": "", | ||
"/config/output/ethernet/ftp/logs/enabled": true, | ||
"/config/output/ethernet/ftp/certificate": "", | ||
"/config/output/ethernet/mqtt/deviceId": "B4-0144-355112", | ||
"/config/output/ethernet/mqtt/topic": "acep", | ||
"/config/output/ethernet/mqtt/hostUrl": "10.3.14.142", | ||
"/config/output/ethernet/mqtt/publishCycle": 1, | ||
"/config/output/ethernet/mqtt/port": 1, | ||
"/config/output/ethernet/tcpJson/targetIp": "10.3.14.142", | ||
"/config/output/ethernet/tcpJson/targetPort": 49152, | ||
"/config/output/ethernet/tcpClient/targetIp": "10.3.14.142", | ||
"/config/output/ethernet/tcpClient/targetPort": 13337, | ||
"/config/output/ethernet/tcpClient/tls/enabled": false, | ||
"/config/output/ethernet/tcpClient/tls/certificate": "", | ||
"/config/output/ethernet/udpClient/targetIp": "192.168.1.20", | ||
"/config/output/ethernet/udpClient/targetPort": 49152 | ||
} |
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,13 @@ | ||
# Data Diode Settings | ||
input: | ||
ip: "localhost" | ||
port: 49152 | ||
timeout: 60 # seconds | ||
output: | ||
ip: "localhost" | ||
port: 13337 | ||
tls: false | ||
broker: | ||
server: "test.mosquitto.org" | ||
port: 1883 | ||
topic: "diode/telemetry" |
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
Oops, something went wrong.