I am currently trying to create a little python driver to control dobot, however I didn't succeed to make it work. Could you please try to indicate me where are my errors? Particurlally, I am not sure about data strucure (byte order, units ...).
Here is an example of an attemp of sending an order to dobot (position). I get an answer but no reaction at all ...
def f2b(i):#convert python float into bytes
return struct.pack('>f', i)# "<": little-endian, ">": big-endian, both tested unsucessfully
ser = serial.Serial(#serial connection
query = ""
for i in packet:
query += i
out = ""
while ser.inWaiting() > 0:#read answer
out += ser.read(1)
if len(out) == 42:
Does anybody has an idea about that?