Good afternoon. I try to understand the principles of interaction with the device. Along with the docks comes tulza to send commands. 1st screen - initialization command, 2nd - card acceptance. I enter everything as in the command field, but the device does not respond. I sit at an ATM under teamveawer so I apologize for the poor quality enter image description here

import serial import time ser = serial.Serial('COM3', 38400, stopbits=serial.STOPBITS_ONE, bytesize=serial.EIGHTBITS, parity=serial.PARITY_EVEN) ser.write(b'\x43\x30\x30\x33\x32\x34\x31\x30\x30\x31\x30\x30\x30') time.sleep(0.5) ser.write(b'\x43\x3A\x30') ser.close() 
  • What port settings are there? You have serial.Serial ('COM3', 38400) on their screens. What about data bits, stop bits and parity? - Vladimir Martyanov
  • @ Vladimir Martianov on 10 page describes the data format - Putch
  • one
    Once again: port settings. Namely: speed, number of data bits, parity, number of stop bits. Not a data format, but transfer parameters. And they do not need me, but you need to correctly configure your software. - Vladimir Martyanov
  • one
    You can assume that the port settings are only speed, but I have indicated the minimum settings above. Unless you set exactly the same settings in Python as in software, there can be no question of finding any problems. - Vladimir Martyanov
  • one
    Exactly even, but not NoParity? Infrequent tuning ... Now you take the terminal with support for displaying in HEX, hang it on another port, connect this port to COM3 and send the command from the software and from the script. Must be the same length and bytes. - Vladimir Martyanov

0