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

bCNC Telnet connection #34

Open
thinkJD opened this issue May 14, 2021 · 6 comments
Open

bCNC Telnet connection #34

thinkJD opened this issue May 14, 2021 · 6 comments

Comments

@thinkJD
Copy link

thinkJD commented May 14, 2021

Hello,
thanks for your great work! I really like the project.

I designed my own PCB, uploaded the newest firmware (12.5.) and installed it on my Woodpecker CNC board.

Manual Jog works, Nunchuck works, Direct USB seems to reset the ESP32 but also works after reboot and Print -> USB

But:
I can’t connect bCNC via telnet (saw your issues on the bCNC project. So I used socket:// like in the readme described).
I can connect, the WiFi logo turns green. Then I switch to print -> telnet and try to jog manually (in bCNC) but nothing happens.

This happens on the release version and also on the current master.

I use the current bCNC installed via Pip on my Mac.

Any ideas why?

FD0AC6C6-1673-4201-B510-B4901ABFF0D9
4542113E-DD98-4123-B62A-612B0EC3A2D9

@mstrens
Copy link
Owner

mstrens commented May 14, 2021

You are not the first one having an issue using bcnc.
If I remember well, someone had similar issue but using the USB connection
Can you use bcnc via the USB connection?

It could be that the ESP32 that manages the wifi generates some extra messages that are not accepted by bcnc.
Still, in the last version, I tried to remove all kind of messages or I put them in a sequence like grbl ( [MSG:.......]) hoping it should just be discarded by grbl)

On what kind of MCU are you running grbl (an arduino or on another mcu like esp32, STM32)?

@thinkJD
Copy link
Author

thinkJD commented May 15, 2021

I use a Woopecker CNC board. It's a 8 Bit Atmega, maybe some Arduino clone with integrated stepper drivers. There is also an extension Port with 5v, reset and rx/tx for a external controller. I used this connector for grbl_controller_esp32.

grbl_controller_esp32 and bCNC over USB works fine, but maybe not as expected. As soon as i connect bCNC over USB grbl_controller_esp32 restarts. Then I have to select print -> USB and it works fine. I can stop USB and Jog manually and switch back, no issues. So every connect / disconnect triggers a restart of grbl_controller_esp32.

Tho only thing not working is the telnet connection. Strange.

@thinkJD
Copy link
Author

thinkJD commented May 19, 2021

I installed the newest Version (17.05.) and tried again. Sadly without luck. This is the terminal Output from bCNC.

I did the following:

  1. select print -> telnet
  2. open bCNC
  3. connect bCNC via socket
  4. jog in some directions

bCNC -> grbl_controller_esp32

$#
$G
$J=G91 X10.0 F100000
$J=G91 X-10.0 F100000
$J=G91 Y10.0 F100000
$J=G91 Y-10.0 F100000
$J=G91 Z1.0 F100000
$X
b'$G\n'

grbl_controller_esp32 -> bCNC

<Idle|MPos:0.000,0.000,0.000|Bf:15,128|FS:0,0|WCO:50.626,0.000,-3.736>
<Idle|MPos:0.000,0.000,0.000|Bf:15,128|FS:0,0|Ov:100,100,100>
<Idle|MPos:0.000,0.000,0.000|Bf:15,128|FS:0,0>
<Idle|MP
os:0.000,0.000,0.000|Bf:15,128|FS:0,0>
os:0.000,0.000,0.000|Bf:15,128|FS:0,0>
os:0.000,0.000,0.000|Bf:15,128|FS:0,0>
os:0.000
,0.000,0
.000|Bf:15,128|FS:0,0>
os:0.000,0.000,0.000|Bf:15,128|FS:0,0|WCO:50.626,0.000,-3.736>
os:0.000,0.000,0.000|Bf:15,128|FS:0,0>
os:0.000
,0.000,0
.000|Bf:15,128|FS:0,0|WCO:50.626,0.000,-3.736>

It looks like the status messages have missing and/or wrongly interpreted characters. Maybe noise? Bu shouldn’t because USB and Nunchuck are working fine.

@mstrens
Copy link
Owner

mstrens commented May 20, 2021

Indeed it seems there are some additional characters (carriage return/line feed) and missing char.

Can you confirm that you are using the version 1.0.4 from arduino ESP32 espressif (and not the latest 1.0.5 or 1.0.6) because the latest versions of arduino ESP32 have a bug in the way they handle serial (which is used e.g. between the controller and GRBL)

@thinkJD
Copy link
Author

thinkJD commented May 20, 2021

I can confirm. I am using

Arduino IDE: v1.8.14
ESP32: v1.0.4

@mstrens
Copy link
Owner

mstrens commented May 20, 2021

Thanks for the info.
I will try to make a test when I have time.

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

2 participants