Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tomasbaldi opened this issue Apr 6, 2021 · 0 comments
Open

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

tomasbaldi opened this issue Apr 6, 2021 · 0 comments

Comments

@tomasbaldi
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant