from ctypes import *
from secg40 import *
import sys
import time

device = SECG40(get_lib_path())
if device.connect(-1, 5000) == False:
    print('Error: device is not connected')
    sys.exit()

print('FirmWare Version: ', device.get_fw_version())
print('SDK Version: ', device.get_sdk_version())
print('Serial Number: ', device.get_serial_number())

device.close()
