Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
Conv TTL Blocking
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Conv TTL Blocking
Commits
91452d32
Commit
91452d32
authored
Jan 26, 2015
by
Theodor-Adrian Stana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw: Changes in ei2c scripts
parent
55a21b28
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
ei2c.py
software/ei2c/ei2c.py
+9
-0
ei2cdefine.py
software/ei2c/ei2cdefine.py
+3
-0
No files found.
software/ei2c/ei2c.py
View file @
91452d32
...
...
@@ -41,6 +41,7 @@ import sys
import
socket
from
ei2cexcept
import
*
import
ei2cdefine
import
binascii
class
EI2C
:
...
...
@@ -158,6 +159,14 @@ class EI2C:
def
get_ver
(
self
):
return
self
.
ver
def
print_bid
(
self
,
slot
):
bid
=
self
.
read
(
slot
,
0x000
);
bid
=
binascii
.
unhexlify
(
"
%
s"
%
"{0:x}"
.
format
(
bid
))
if
(
bid
==
"TBLO"
):
print
(
"CONV-TTL-BLO found in slot
%
d"
%
slot
)
elif
(
bid
==
"T485"
):
print
(
"CONV-TTL-RS485 found in slot
%
d"
%
slot
)
def
_strip_resp
(
self
,
msg
):
"""Strip useful message from SysMon response.
...
...
software/ei2c/ei2cdefine.py
View file @
91452d32
...
...
@@ -33,6 +33,9 @@
# TODO: -
#===============================================================================
# Boolean to specify whether hostname, user & password are used
ENABLED
=
False
# Hostname, username and password
HNAME
=
""
USER
=
""
...
...
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