gerritv / Grbl-Panel

A control panel for Grbl
MIT License
180 stars 103 forks source link

Mega2560 not communicating #8

Closed EliteEng closed 9 years ago

EliteEng commented 10 years ago

I am not able to get the Mega2560 to communicate to the Grbl-Panel.

It is working for Arduino Serial Console, UGS & Putty. So I know that serial communication from the controller is working.

Do you have any suggestions?

gerritv commented 10 years ago

I don't have one to test with so all I can do is ask some questions: Can you enable Verbose in the Status panel and then connect? Do you see anything there? Is the baud rate correct? Are the Grbl settings on Settings filled in? Are you running under Mono or on Win7/8?

GrblPanel blips DTR when it first connects to a usb port. It then waits 1.5 secs for Grbl to wake up and then sends a $$ and a $G to get the settings and offsets.

gerritv commented 10 years ago

Did you get this working?

EliteEng commented 10 years ago

No, I have done some testing and it seems that the Mega takes longer to become ready.

Where you say it waits 1.5 secs, does it try again if there is no response? Is there a way to extend the 1.5 secs for testing?

I am running Win7 and the Baud rate is correct. When I open the connection to a terminal the Mega seems to take an extra second to become ready ( compared to an UNO )

gerritv commented 10 years ago

No I don't retry but I will make it a config option in the next iteration. I am really backlogged at present but some of the simpler items such as this one should get done in the next week or two.

gerritv commented 9 years ago

Coded and tested, not yet checked in.

gerritv commented 9 years ago

In Release 1.0.2.0

EliteEng commented 9 years ago

@gerritv I have managed to get it working.

If I have polling enabled when I connect to the Mega it will freeze up.

If I have polling disabled while connecting it will connect, then I can turn polling on and it all works fine.

I will look into my GRBL code for the Mega and see if I can see something in there that might be the problem.