Welcome! Log In Create A New Profile

Advanced

[solved] Commands over Serial not working "unknown command:"

Posted by kriSyt 
[solved] Commands over Serial not working "unknown command:"
January 14, 2019 07:24AM
Hallo,
i hope im in the right place here.
I have an upgraded Anet A8 with ramps1.4. I wanted to upgrade to TMC2130 and wired them for spi. Upload new config -> power on -> stepper wont move.
I tried to read-out the stepper driver over serial with m122 s1. -> "echo:Unknown command: 'm122 s1'.
I was never using the serial port before... so i tried other commands like "M105" or "M106 S127".
All i get is
"Unknown command: [the command i gave]"
"ok"

Do i need to enable serial commands?
Config is atatched. Configuration_adv.h Configuration.h

hope someone can help smiling smiley

Edited 2 time(s). Last edit at 01/15/2019 06:35AM by kriSyt.
Re: Commands over Serial not working "unknown command:"
January 14, 2019 08:42AM
You are not in the right place.


"A comical prototype doesn't mean a dumb idea is possible" (Thunderf00t)
Re: Commands over Serial not working "unknown command:"
January 14, 2019 08:43AM
So what would have been the right place?
Re: Commands over Serial not working "unknown command:"
January 14, 2019 09:49AM
Could it be the end of line character? Does it work with repetier or pronterface?


--
Kind regards
Imqqmi

NFAN CoreXY printer:
[reprap.org]
Re: Commands over Serial not working "unknown command:"
January 14, 2019 09:57AM
I was just using the serial console in arduino. Is this wrong?

regards
KriSyt

EDIT:
Just tried NewLine CarriageReturn and booth. nothing seems to work

RepetierH notworking aswell

Edited 1 time(s). Last edit at 01/14/2019 10:22AM by kriSyt.
Re: Commands over Serial not working "unknown command:"
January 14, 2019 10:28AM
Should be probably be in marlin section...

from Marlin_main.cpp

* M122 - Debug stepper (Requires at least one _DRIVER_TYPE defined as TMC2130/TMC2208/TMC2660)

In Configuration.h you have the following.

/**
 * Stepper Drivers
 *
 * These settings allow Marlin to tune stepper driver timing and enable advanced options for
 * stepper drivers that support them. You may also override timing options in Configuration_adv.h.
 *
 * A4988 is assumed for unspecified drivers.
 *
 * Options: A4988, DRV8825, LV8729, L6470, TB6560, TB6600, TMC2100,
 *          TMC2130, TMC2130_STANDALONE, TMC2208, TMC2208_STANDALONE,
 *          TMC26X,  TMC26X_STANDALONE,  TMC2660, TMC2660_STANDALONE,
 *          TMC5130, TMC5130_STANDALONE
 * :['A4988', 'DRV8825', 'LV8729', 'L6470', 'TB6560', 'TB6600', 'TMC2100', 'TMC2130', 'TMC2130_STANDALONE', 'TMC2208', 'TMC2208_STANDALONE', 'TMC26X', 'TMC26X_STANDALONE', 'TMC2660', 'TMC2660_STANDALONE', 'TMC5130', 'TMC5130_STANDALONE']
 */
#define X_DRIVER_TYPE  TMC2100
#define Y_DRIVER_TYPE  TMC2100
#define Z_DRIVER_TYPE  TMC2100
//#define X2_DRIVER_TYPE A4988
//#define Y2_DRIVER_TYPE A4988
//#define Z2_DRIVER_TYPE DRV8825
//#define Z3_DRIVER_TYPE A4988
#define E0_DRIVER_TYPE TMC2100
//#define E1_DRIVER_TYPE A4988
//#define E2_DRIVER_TYPE A4988
//#define E3_DRIVER_TYPE A4988
//#define E4_DRIVER_TYPE A4988
//#define E5_DRIVER_TYPE A4988

at least one of these needs to be set to TMC2130 to enable the m122 command, TMC2100 doesn't have SPI/UART

Edited 1 time(s). Last edit at 01/14/2019 10:37AM by Dust.
Re: Commands over Serial not working "unknown command:"
January 15, 2019 03:33AM
Thank you this was defenitly wrong.... but i still have the problem... no command is working
regards
Re: Commands over Serial not working "unknown command:"
January 15, 2019 04:11AM
Use upper case only (all control programs automatically convert to uppercase, a serial monitor will not.)

ie M119 not m119

or M122 S1 not m122 s1

Edited 3 time(s). Last edit at 01/15/2019 04:17AM by Dust.
Re: Commands over Serial not working "unknown command:"
January 15, 2019 06:35AM
Thank you that was my problem.

Best regards

[solved]
Re: Commands over Serial not working "unknown command:"
July 21, 2019 02:32AM
I have the same problem but entering the Capital letters did not help at all. Is there a mode or setting that needs to be enabled in Arduino? Its as though it doesn't even know i am in SPI mode I get no response from X or Y steppers

Edited 1 time(s). Last edit at 07/21/2019 02:55AM by kpdelucia.
Attachments:
open | download - Configuration_adv.h (69.1 KB)
open | download - pins_RUMBA.h (5.6 KB)
Re: [solved] Commands over Serial not working "unknown command:"
July 21, 2019 03:01AM
If your trying to use a serial terminal to talk to a reprap

You need the correct baud rate as set in your configuration.h in marlin to match the baud rate you set in your comm package.
You need the correct serial port set in configuration.h in marlin (this should be 0 to use the usb/serial port for mega based controllers)
You need the correct serial port on your computer, ie the serial interface to your controller
You need to the correct line termination. Marlin needs a linefeed character at the end of each line.
The gcode needs to be in uppercase

start with a gcode that is normally available on all machines eg endstop status: M119

If your using a control program you only need to the correct baud rate and com port.

If your getting an error.. post the error. We cant read what is on your screen...

Edited 4 time(s). Last edit at 07/21/2019 03:09AM by Dust.
Sorry, only registered users may post in this forum.

Click here to login