Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
osie
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
osie
Commits
5a50f1a7
Commit
5a50f1a7
authored
Jul 22, 2021
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixup product identity.
parent
63f9c314
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
eggs/osie_coupler/osie_modbus.py
eggs/osie_coupler/osie_modbus.py
+3
-6
No files found.
eggs/osie_coupler/osie_modbus.py
View file @
5a50f1a7
...
...
@@ -181,8 +181,8 @@ def run_async_server(port = 502, interface = "0.0.0.0"):
# ----------------------------------------------------------------------- #
identity
=
ModbusDeviceIdentification
()
identity
.
VendorName
=
'Nexedi'
identity
.
ProductCode
=
'
Lime2.PLC
'
identity
.
VendorUrl
=
'http
://github.com/bashwork/pymodbus
/'
identity
.
ProductCode
=
'
OSIE-coupler
'
identity
.
VendorUrl
=
'http
s://lab.nexedi.com/nexedi/osie
/'
identity
.
ProductName
=
'Pymodbus Server'
identity
.
ModelName
=
'Pymodbus Server'
identity
.
MajorMinorRevision
=
'0.0.1'
...
...
@@ -192,14 +192,11 @@ def run_async_server(port = 502, interface = "0.0.0.0"):
custom_functions
=
[
ModbusRequest
])
def
main
():
"""
Main OSIE-PLC entry point.
"""
# check if we actually are running on proper platform
if
os
.
uname
().
machine
!=
"armv7l"
:
log
.
error
(
"Not supported platform and / or CPU type."
)
sys
.
exit
(
1
)
# switch OFF all relays
mod_io
.
setRelayStateAllOff
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment