makerbase-mks / MKS-SGEN_L-V2

MKS SGEN_L V2.0 is powerful 32-bit 3D printer control board. The CPU is LPC1769 120MHZ, SGEN_L V2 hardware Integrated 4KB EEPROM, 5AXIS and dual Z interface, has 2 way FANs and Dc12/24V out interface, support TMC UART and SPI mode...
https://www.aliexpress.com/item/4001283346331.html?spm=a2g0o.store_home.slider_165457030.0
GNU General Public License v3.0
70 stars 28 forks source link

Connect MKS-SGEN_L-V2 and RPi3 via RX TX #57

Open rom-ka1 opened 3 years ago

rom-ka1 commented 3 years ago

Hello! No connection MKS-SGEN_L-V2 and RPi3 via RX TX, using port AUX-1.

3-pin connector cable MKS-SGEN_L-V2 GND(black) TX(blue) RX(red) -> RPi3 GND(black) TX(red) RX(blue)

/boot/config.txt add dtoverlay=pi3-miniuart-bt

/boot/cmdline.txt delete console=serial0,115200

printer.cfg

[mcu]
serial = /dev/ttyAMA0
restart_method = command

make menuconfig

[*] Enable extra low-level configuration options
    Micro-controller Architecture (LPC176x (Smoothieboard))  --->
    Processor model (lpc1769 (120 MHz))  --->
[*] Target board uses Smoothieware bootloader
    Communication interface (Serial)  --->
(250000) Baud rate for serial port (NEW)
[ ] Specify a custom step pulse duration (NEW)
()  GPIO pins to set at micro-controller startup (NEW)

Using a USB cable, there is a connection. klippy.log

rom-ka1 commented 3 years ago

Installed Octoprint and Marlin, the connection via RX TX works.

I installed the klipper on octoprint, the connection via the USB cable is working.

Configured via RX TX, the connection does not work.

in the logs the same connection error.

Starting serial connect
Timeout on connect
Wait for identify_response
Traceback (most recent call last):
  File "/home/pi/klipper/klippy/serialhdl.py", line 65, in _get_identify_data
    params = self.send_with_response(msg, 'identify_response')
  File "/home/pi/klipper/klippy/serialhdl.py", line 249, in send_with_response
    return src.get_response([cmd], self.default_cmd_queue)
  File "/home/pi/klipper/klippy/serialhdl.py", line 306, in get_response
    cmd_queue)
  File "/home/pi/klipper/klippy/serialhdl.py", line 241, in raw_send_wait_ack
    raise error("Serial connection closed")
error: Serial connection closed
mks-viva commented 3 years ago

You can sned 'ls /dev/serial/by-id/*' and get serial port image

rom-ka1 commented 3 years ago

1

mks-viva commented 3 years ago

You can try to restart putty.exe

rom-ka1 commented 3 years ago

Restarting. Nothing changed.

rom-ka1 commented 3 years ago

I need to connect via UART, not via a USB cable.

mks-viva commented 3 years ago

I have not tried using the serial port