I have to get pressure informations from the Vacom VAX controller. In the manual is an example to get the pressure of channel 2. You can download it on the homepage of Vacom. The example doesn't work with pyserial in python.
I have downloaded the Vacom VVD.exe, a little demonstation programm. It works. So i know the baudrate of the controller and i see the pressure of channel 2.
import serial.tools.list_ports as serial_ports
from serial import Serial
ports = serial_ports.comports()
for each in ports:
if each.manufacturer[:12] == 'VACOM Vakuum':
ser = Serial(port=each.device, baudrate=19200, timeout=1, bytesize=8, parity='N', stopbits=1)
print(each)
command='A5500000200802000000000000000000000000000000357A'
ser.write(command.encode())
print(ser.readline())
#answer:
#COM3 - VaX Serial Port (COM3)
#b''
I want to get the pressure but i get nothing and i don't know how to convert the command. Is there an other choice than encode() or what is the mistake? Thank you for your help!