Skip to content

Telnet connection to GRBL does not work. #61

@chgarde

Description

@chgarde

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 !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions