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

Telnet connection to GRBL does not work. #61

Open
chgarde opened this issue May 10, 2023 · 0 comments
Open

Telnet connection to GRBL does not work. #61

chgarde opened this issue May 10, 2023 · 0 comments

Comments

@chgarde
Copy link

chgarde commented May 10, 2023

Hello,

I was not able to make telnet connection to GRBL through TFT work using the current code in master branch.
After some investigation, I managed to have it work with the following fix :

diff --git a/grbl_controller_esp32/com.cpp b/grbl_controller_esp32/com.cpp
index fe49de0..d2499b1 100644
--- a/grbl_controller_esp32/com.cpp
+++ b/grbl_controller_esp32/com.cpp
@@ -454,7 +454,7 @@ void sendToGrbl( void ) {
           case PRINTING_FROM_TELNET :
             while ( telnetClient.available() && statusPrinting == PRINTING_FROM_TELNET ) {
               sdChar = telnetClient.read() ;
-              sdChar = Serial.read() ;
+              toGrbl( (char) sdChar ) ;
               //Serial2.print( (char) sdChar ) ;
             } // end while       
             break ;

The procedure to apply it is as follow:

  1. Apply the fix in Arduino IDE
  2. Compile and upload the new firmware to the TFT Screen
  3. Unplug your usb cable
  4. Telnet into the TFT Screen, you should see machine status report printing continuously.
  5. On the TFT screen, go the print menu and choose telnet connection
  6. The status report should stop printing on the computer telnet console
  7. You can now type some GRBL commands, for example $$

I hope this will help others !

chgarde added a commit to chgarde/grbl_controller_esp32 that referenced this issue May 10, 2023
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