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]
Sorry, only registered users may post in this forum.

Click here to login