Commit 91452d32 authored by Theodor-Adrian Stana's avatar Theodor-Adrian Stana

sw: Changes in ei2c scripts

parent 55a21b28
......@@ -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.
......
......@@ -33,6 +33,9 @@
# TODO: -
#===============================================================================
# Boolean to specify whether hostname, user & password are used
ENABLED = False
# Hostname, username and password
HNAME = ""
USER = ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment