cncjs: Incompatibility with G2Core
Description
CNCJS does not complete the initial setup with G2Core. Some extra info here: https://github.com/synthetos/g2/issues/514 This is what is answering: CNCjs 1.10.1 [TinyG] Connected to COM32 with a baud rate of 115200
feeder> {ej:1}
feeder> {jv:4}
feeder> {qv:1}
feeder> {sv:1}
feeder> {si:100}
feeder> {spe:n}
feeder> {spd:n}
feeder> {spc:n}
feeder> {sps:n}
feeder> {com:n}
feeder> {cof:n}
feeder> {sr:{stat:t,line:t,vel:t,feed:t,unit:t,coor:t,momo:t,plan:t,path:t,dist:t,frmo:t,tool:t,posx:t,posy:t,posz:t,posa:t,posb:t,posc:t,mpox:t,mpoy:t,mpoz:t,mpoa:t,mpob:t,mpoc:t,spe:t,spd:t,spc:t,sps:t,com:t,cof:t}}
feeder> {sys:n}
feeder> {mt:n}
feeder> {pwr:n}
feeder> {qr:n}
feeder> {sr:n}
Versions
- CNCjs: 1.10.1 (Windows)
How Do You Install CNCjs?
- [x]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
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 17 (2 by maintainers)
I just remembered something about Arduino Due. It has two USB ports that can serve as serial connections. The first is intended for firmware download and its USB-Serial function is implemented with a separate ATMEGA 16U2 chip. The second is directly connected to the ATSAM3X8 ARM chip, using the USB hardware inside the ARM. The first USB port is available immediately after power up, but the second one is only available after the firmware running on the ARM has had time to configure the USB engine to be a serial port. There are some pushbuttons that let you choose between download mode and run mode.
The Arduino Due board that I have tends to power up in download mode instead of run mode. In order to make CNCjs (which I ran on a Raspberry Pi Zero W on that machine) connect reliably to the Arduino Due that ran G2core, I had to add an external reset line - a Pi GPIO connected to the Due reset input. After the system powered up, I had a shell script that pulses the Due reset line, before starting CNCjs. That was usually successful in kicking the Due into run mode.
@Cheton Wu @.***> I just flashed that firmware to a due and confirmed that it will exhibit the suspected bug in cncjs. So yes that firmware will work to test.
On Fri, Feb 17, 2023 at 10:20 AM Simone Marin @.***> wrote: