Open tomasbaldi opened 3 years ago
Hello, i read "Transfer protocol between ESP and MCU.docx", but i can't send a gcode through UART connection.
I wont send "M991".
I attach my python code:
import serial ser = serial.Serial('COM13', 125200) ser.write(b'0xa50x010x08M991\r\n0xfc') # Start flag = 0xa5 / Type = 0x01 / DataLen = 0x08 / Data = M991\r\n / End flag = 0xfc
import serial
ser = serial.Serial('COM13', 125200)
ser.write(b'0xa50x010x08M991\r\n0xfc')
while True:
s = ser.read(100) print(s)
s = ser.read(100)
print(s)
ser.close()
If you could help me, I would appreciate it.
Hello, i read "Transfer protocol between ESP and MCU.docx", but i can't send a gcode through UART connection.
I wont send "M991".
I attach my python code:
import serial
ser = serial.Serial('COM13', 125200)
ser.write(b'0xa50x010x08M991\r\n0xfc')
# Start flag = 0xa5 / Type = 0x01 / DataLen = 0x08 / Data = M991\r\n / End flag = 0xfcwhile True:
ser.close()
If you could help me, I would appreciate it.