makerbase-mks / MKS-WIFI

MKS TFT WIFI and MKS ROBIN WIFI , share the same firmware. Support MKS Robin series board and MKS TFT series board, for cloud printing and LAN printer controling……
https://www.aliexpress.com/item/32816882694.html?spm=2114.12010615.8148356.1.7bebc9cfK4bWPy
94 stars 38 forks source link

Help: How to communicate with ESP32 through wifi pins? #20

Open tomasbaldi opened 3 years ago

tomasbaldi commented 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

while True:

s = ser.read(100) print(s)

ser.close()

If you could help me, I would appreciate it.