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

Switching from MAC to PC #849

Open
4 tasks done
Ken-392 opened this issue Dec 8, 2023 · 2 comments
Open
4 tasks done

Switching from MAC to PC #849

Ken-392 opened this issue Dec 8, 2023 · 2 comments

Comments

@Ken-392
Copy link

Ken-392 commented Dec 8, 2023

So I've been running my CNC with CNCjs on my MacBook for over a year without any issues. I have version 1.9.26 installed via the Desktop App. I now want to switch over to running the machine with a Microsoft Surface Pro. So I installed the latest version the Surface Pro, and immediately have connection issues. I tried reinstalling the desktop app with the same version that was on my MacBook, but I still have the same issue. It connects just fine to the COM Port, but I have no control over the machine. Looking closer at the GRBL console, and comparing between the Mac and PC here is what I found:

GRBL Console on MAC upon connecting:
CNCjs 1.9.26 [Grbl]
Connected to /dev/tty.usbserial-0001 with a baud rate of 115200
#ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1216
ho 0 tail 12 room 4
load:0x40078000,len:9720
ho 0 tail 12 room 4
load:0x40080400,len:6352
entry 0x400806b8
[MSG:Grbl_ESP32 Ver 1.3a Date 20220621]
[MSG:Compiled with ESP32 SDK:v3.2.3]
[MSG:Using machine:CNC_xPRO_V5_XYYZ_NC]
[MSG:Axis count 3]
[MSG:RMT Steps]
[MSG:Door switch on pin GPIO(16)]
[MSG:Macro Pin 1 GPIO(13)]
[MSG:Macro Pin 2 GPIO(0)]
[MSG:Init Motors]
[MSG:TMCStepper Library Ver. 0x000701]
[MSG:X Axis Trinamic TMC5160 Step:GPIO(12) Dir:GPIO(14) CS:GPIO(17) Disable:None Index:1 R:0.050 Limits(0.000,738.000)]
[MSG:X Axis Trinamic driver test passed]
[MSG:Y Axis Trinamic TMC5160 Step:GPIO(27) Dir:GPIO(26) CS:GPIO(17) Disable:None Index:2 R:0.050 Limits(-684.000,0.000)]
[MSG:Y Axis Trinamic driver test passed]
[MSG:Y2 Axis Trinamic TMC5160 Step:GPIO(33) Dir:GPIO(32) CS:GPIO(17) Disable:None Index:3 R:0.050 Limits(-684.000,0.000)]
[MSG:Y2 Axis Trinamic driver test passed]
[MSG:Z Axis Trinamic TMC5160 Step:GPIO(15) Dir:GPIO(2) CS:GPIO(17) Disable:None Index:4 R:0.050 Limits(-300.000,0.000)]
[MSG:Z Axis Trinamic driver test passed]
[MSG:Initializing RS485 VFD spindle]
[MSG:Using Auto-RTS]
[MSG:VFD RS485 Tx:GPIO(4) Rx:GPIO(25) RTS:None]
[MSG:VFD: VFD settings read: RPM Range(7999, 24000)]]
[MSG:Local access point CNC_xPRO_V5 started, 192.168.0.1]
[MSG:Captive Portal Started]
[MSG:HTTP Started]
[MSG:TELNET Started 23]
[MSG:Mist coolant on pin GPIO(21)]
[MSG:X Axis limit switch on pin GPIO(35)]
[MSG:Y Axis limit switch on pin GPIO(34)]
[MSG:Z Axis limit switch on pin GPIO(39)]
[MSG:Probe on pin GPIO(22)]
Grbl 1.3a ['$' for help]
client> $$
[MSG:'$H'|'$X' to unlock]
$0=4 (Step pulse time, microseconds)
$1=25 (Step idle delay, milliseconds)
$2=0 (Step pulse invert, mask)
$3=5 (Step direction invert, mask)
$4=0 (Invert step enable pin, boolean)
$5=1 (Invert limit pins, boolean)
$6=1 (Invert probe pin, boolean)
$10=1 (Status report options, mask)
$11=0.010 (Junction deviation, millimeters)
$12=0.002 (Arc tolerance, millimeters)
$13=0 (Report in inches, boolean)
$20=1 (Soft limits enable, boolean)
$21=0 (Hard limits enable, boolean)
$22=1 (Homing cycle enable, boolean)
$23=1 (Homing direction invert, mask)
$24=200.000 (Homing locate feed rate, mm/min)
$25=2000.000 (Homing search seek rate, mm/min)
$26=250.000 (Homing switch debounce delay, milliseconds)
$27=2.500 (Homing switch pull-off distance, millimeters)
$30=24000.000 (Maximum spindle speed, RPM)
$31=8000.000 (Minimum spindle speed, RPM)
$32=0 (Laser-mode enable, boolean)
$100=399.000 (X-axis travel resolution, step/mm)
$101=399.000 (Y-axis travel resolution, step/mm)
$102=399.000 (Z-axis travel resolution, step/mm)
$103=200.000
$104=100.000
$105=100.000
$110=3000.000 (X-axis maximum rate, mm/min)
$111=3000.000 (Y-axis maximum rate, mm/min)
$112=3000.000 (Z-axis maximum rate, mm/min)
$113=1000.000
$114=1000.000
$115=1000.000
$120=300.000 (X-axis acceleration, mm/sec^2)
$121=300.000 (Y-axis acceleration, mm/sec^2)
$122=300.000 (Z-axis acceleration, mm/sec^2)
$123=200.000
$124=200.000
$125=200.000
$130=738.000 (X-axis maximum travel, millimeters)
$131=684.000 (Y-axis maximum travel, millimeters)
$132=300.000 (Z-axis maximum travel, millimeters)
$133=300.000
$134=300.000
$135=300.000
ok

GRBL Console on PC upon connecting:
CNCjs 1.9.26 [Grbl]
Connected to COM3 with a baud rate of 115200
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1216
ho 0 tail 12 room 4
load:0x40078000,len:9720
ho 0 tail 12 room 4
load:0x40080400,len:6352
entry 0x400806b8
[MSG:Grbl_ESP32 Ver 1.3a Date 20220621]
[MSG:Compiled with ESP32 SDK:v3.2.3]
[MSG:Using machine:CNC_xPRO_V5_XYYZ_NC]
[MSG:Axis count 3]
[MSG:RMT Steps]
[MSG:Door switch on pin GPIO(16)]
[MSG:Macro Pin 1 GPIO(13)]
[MSG:Macro Pin 2 GPIO(0)]
[MSG:Init Motors]
[MSG:TMCStepper Library Ver. 0x000701]
[MSG:X Axis Trinamic TMC5160 Step:GPIO(12) Dir:GPIO(14) CS:GPIO(17) Disable:None Index:1 R:0.050 Limits(0.000,738.000)]
[MSG:X Axis Trinamic driver test passed]
[MSG:Y Axis Trinamic TMC5160 Step:GPIO(27) Dir:GPIO(26) CS:GPIO(17) Disable:None Index:2 R:0.050 Limits(-684.000,0.000)]
[MSG:Y Axis Trinamic driver test passed]
[MSG:Y2 Axis Trinamic TMC5160 Step:GPIO(33) Dir:GPIO(32) CS:GPIO(17) Disable:None Index:3 R:0.050 Limits(-684.000,0.000)]
[MSG:Y2 Axis Trinamic driver test passed]
[MSG:Z Axis Trinamic TMC5160 Step:GPIO(15) Dir:GPIO(2) CS:GPIO(17) Disable:None Index:4 R:0.050 Limits(-300.000,0.000)]
[MSG:Z Axis Trinamic driver test passed]
[MSG:Initializing RS485 VFD spindle]
[MSG:Using Auto-RTS]
[MSG:VFD RS485 Tx:GPIO(4) Rx:GPIO(25) RTS:None]
[MSG:VFD: VFD settings read: RPM Range(7999, 24000)]]
[MSG:Local access point CNC_xPRO_V5 started, 192.168.0.1]
[MSG:Captive Portal Started]
[MSG:HTTP Started]
[MSG:TELNET Started 23]
[MSG:Mist coolant on pin GPIO(21)]
[MSG:X Axis limit switch on pin GPIO(35)]
[MSG:Y Axis limit switch on pin GPIO(34)]
[MSG:Z Axis limit switch on pin GPIO(39)]
[MSG:Probe on pin GPIO(22)]
Grbl 1.3a ['$' for help]
client> $$
[MSG:'$H'|'$X' to unlock]

When comparing the two, everything seems identical until you get to the line: [MSG:'$H'|'$X' to unlock]
On the Mac, it lists all the GRBL settings after this line, but nothing on the PC. I've tried to type in some GRBL settings manually, but the console doesn't respond to anything.

Does anyone have an idea what the problem is?

Versions

  • CNCjs: 1.9.26

How Do You Install CNCjs?

  • [ ] NPM
  • Download the CNCjs Desktop Application

CNC Controller

  • Grbl
  • [ ] Smoothieware
  • [ ] TinyG/g2core

Hardware

  • [ ] Raspberry Pi
  • Desktop or Laptop
  • [ ] Mobile Device

Operating System

  • [ ] Not Applicable
  • Windows
  • [ ] Mac
  • [ ] Linux
@MitchBradley
Copy link
Contributor

It could be related to this issue #243 (comment)

@MitchBradley
Copy link
Contributor

If you can't fix it with the rts thing, the next thing to try is to connect to Grbl_ESP32 with a terminal emulator program like TeraTerm or PuTTY. If you can send commands and get responses with a terminal emulator, the problem is in the CNCjs realm. If the terminal emulator cannot send commands either, the problem could be in the USB-serial driver code. The USB-serial chip on most Grbl_ESP32 boards is CP2102, so you might need to get the latest version of the CP210x driver.

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