본문 바로가기
- Malrin

Marlin firmware study_2

by Kevin_Park 2020. 4. 1.
반응형

 

마를린 펌웨어를 꾸준히 공부하도록 하겠습니다.

본문을 클립해와서 번역기 돌린 내용과 같이 올린 후 보면서 제 의견까지 코멘트하는 방식으로 공부가 진행될 것 같습니다.


Configuration.h

The core and default settings of Marlin live in the Configuration.h file. Most of these settings are fixed. Once you compile Marlin, that’s it. To change them you need to re-compile. However, several items in Configuration.h only provide defaults -factory settings- that can be changed via the user interface, stored on EEPROM and reloaded or restored to initial values.

 

Settings that can be changed and saved to EEPROM are marked with . Options marked with  can be changed from the LCD controller.


Settings saved in EEPROM persist across reboots and still remain after flashing new firmware, so always send M502, M500 (or “Reset EEPROM” from the LCD) after flashing.

This section follows the order of settings as they appear. The order isn’t always logical, so “Search In Page” may be helpful. We’ve tried to keep descriptions brief and to the point. For more detailed information on various topics, please read the main articles and follow the links provided in the option descriptions.

 

Configuration.h

Marlin의 핵심 및 기본 설정은  Configuration.h  파일에 있습니다. 이러한 설정은 대부분 고정되어 있습니다. 멀린을 컴파일하면 그게 전부입니다. 이를 변경하려면 다시 컴파일해야합니다. 그러나  Configuration.h의 여러 항목 은 사용자 인터페이스를 통해 변경하고 EEPROM에 저장 한 후 다시로드하거나 초기 값으로 복원 할 수있는 기본값 (출고시 설정) 만 제공합니다.

 

EEPROM으로 변경하고 저장할 수있는 설정은로 표시되어  있습니다. 로 표시된 옵션 은 LCD 컨트롤러에서 변경할 수 있습니다.  


EEPROM에 저장된 설정은 재부팅 후에도 유지되며 새 펌웨어를 플래시 한 후에도 계속 유지되므로 플래시 후에는 항상  M502,  M500  (또는 LCD에서 "EEPROM 재설정")을 보내십시오 .

이 섹션은 표시되는 설정 순서를 따릅니다. 순서가 항상 논리적 인 것은 아니므로 "페이지에서 검색"이 도움이 될 수 있습니다. 우리는 설명을 간단하고 요점으로 유지하려고 노력했습니다. 다양한 주제에 대한 자세한 내용은 주요 기사를 읽고 옵션 설명에 제공된 링크를 따르십시오.


Configuration versioning

#define CONFIGURATION_H_VERSION 020000

Marlin now checks for a configuration version and won’t compile without this setting. If you want to upgrade from an earlier version of Marlin, add this line to your old configuration file. During compilation, Marlin will throw errors explaining what needs to be changed.

구성 버전 관리

#define CONFIGURATION_H_VERSION 020000

Marlin은 이제 구성 버전을 확인하고이 설정이 없으면 컴파일되지 않습니다. 이전 버전의 Marlin에서 업그레이드하려면이 구성을 이전 구성 파일에 추가하십시오. 컴파일 중에 Marlin은 변경해야 할 사항을 설명하는 오류를 발생시킵니다.


Firmware Info

#define STRING_CONFIG_H_AUTHOR "(none, default config)" #define SHOW_BOOTSCREEN #define SHOW_CUSTOM_BOOTSCREEN #define CUSTOM_STATUS_SCREEN_IMAGE

  • STRING_CONFIG_H_AUTHOR is shown in the Marlin startup message, and is meant to identify the author (and optional variant) of the firmware. Use this setting as a way to uniquely identify all your custom configurations. The startup message is printed when connecting to host software, when the board reboots and M115.
  • SHOW_BOOTSCREEN enables the boot screen for LCD controllers.
  • SHOW_CUSTOM_BOOTSCREEN shows the bitmap in Marlin/_Bootscreen.h on startup.
  • CUSTOM_STATUS_SCREEN_IMAGE shows the bitmap in Marlin/_Statusscreen.h on the status screen.

펌웨어 정보

#define STRING_CONFIG_H_AUTHOR "(없음, 기본 구성)"# define SHOW_BOOTSCREEN #define SHOW_CUSTOM_BOOTSCREEN #define CUSTOM_STATUS_SCREEN_IMAGE

  • STRING_CONFIG_H_AUTHOR  는 Marlin 시작 메시지에 표시되며 펌웨어의 작성자 (및 선택적인 변형)를 식별하기위한 것입니다. 이 설정을 사용하여 모든 사용자 정의 구성을 고유하게 식별하십시오. 호스트 소프트웨어에 연결할 때, 보드가 재부팅되고 M115가 시작 메시지가 인쇄됩니다.
  • SHOW_BOOTSCREEN  은 LCD 컨트롤러의 부팅 화면을 활성화합니다.
  • SHOW_CUSTOM_BOOTSCREEN  은 시작할 때 Marlin / _Bootscreen.h의 비트 맵을 보여줍니다.
  • CUSTOM_STATUS_SCREEN_IMAGE  는 상태 화면의 Marlin / _Statusscreen.h에 비트 맵을 표시합니다.

Hardware Info

Serial Port

#define SERIAL_PORT 0

The index of the on-board serial port that will be used for primary host communication. Change this if, for example, you need to connect a wireless adapter to non-default port pins.

 

The first serial port (-1 or 0) will always be used by the Arduino bootloader regardless of this setting.

#define SERIAL_PORT_2 -1

Enable this if your board has a secondary serial port.

 

Serial port -1 is the USB emulated serial port, if available.

하드웨어 정보

시리얼 포트

#define SERIAL_PORT 0

기본 호스트 통신에 사용될 온보드 직렬 포트의 색인입니다. 예를 들어 무선 어댑터를 기본 포트가 아닌 포트 핀에 연결해야하는 경우이를 변경하십시오.

 

이 설정에 관계없이 첫 번째 직렬 포트 (-1 또는 0)는 항상 Arduino 부트 로더에서 사용됩니다.

#define SERIAL_PORT_2 -1

보드에 보조 직렬 포트가있는 경우 활성화하십시오.

 

직렬 포트 -1은 사용 가능한 경우 USB 에뮬레이트 된 직렬 포트입니다.


Baud Rate

#define BAUDRATE 115200

The serial communication speed of the printer should be as fast as it can manage without generating errors. In most cases 115200 gives a good balance between speed and stability. Start with 250000 and only go lower if “line number” and “checksum” errors start to appear. Note that some boards (e.g., a temperamental Sanguinololu clone based on the ATMEGA1284P) may not be able to handle a baudrate over 57600. Allowed values: 2400, 9600, 19200, 38400, 57600, 115200, 250000.

전송 속도

#define BAUDRATE 115200

프린터의 직렬 통신 속도는 오류를 발생시키지 않고 관리 할 수있는 속도 여야합니다. 대부분의 경우 115200은 속도와 안정성간에 균형이 잘 맞습니다. 250000으로 시작하고 "행 번호"및 "체크섬"오류가 나타나기 시작하는 경우에만 낮아집니다. 일부 보드 (예 : ATMEGA1284P를 기반으로 한 온도 Sanguinololu 클론)는 57600 이상의 전송 속도를 처리하지 못할 수 있습니다. 허용되는 값 : 2400, 9600, 19200, 38400, 57600, 115200, 250000.


Bluetooth

#define BLUETOOTH

Enable the Bluetooth serial interface. For boards based on the AT90USB.

블루투스

#define BLUETOOTH

Bluetooth 직렬 인터페이스를 활성화하십시오. AT90USB 기반 보드 용.


Motherboard

#define MOTHERBOARD BOARD_RAMPS_14_EFB

The most important setting is Marlin is the motherboard. The firmware needs to know what board it will be running on so it can assign the right functions to all pins and take advantage of the full capabilities of the board. Setting this incorrectly will lead to unpredictable results.

Using boards.h as a reference, replace BOARD_RAMPS_14_EFB with your board’s ID. The boards.h file has the most up-to-date listing of supported boards, so check it first if you don’t see yours listed there.

 

The Sanguino board requires adding “Sanguino” support to Arduino IDE. Open Preferences and locate the Additional Boards Manager URLs field. Copy and paste this source URL. Then use Tools > Boards > Boards Manager to install “Sanguino” from the list. An internet connection is required. (Thanks to “Dust’s RepRap Blog” for the tip.)

마더 보드

#define MOTHERBOARD BOARD_RAMPS_14_EFB

Marlin이 가장 중요한 설정은 마더 보드입니다. 펌웨어는 어떤 보드에서 실행 될지 알아야 모든 핀에 올바른 기능을 할당하고 보드의 모든 기능을 활용할 수 있습니다. 이를 잘못 설정하면 예기치 않은 결과가 발생합니다.

boards.h 를 참조로 사용하여 BOARD_RAMPS_14_EFB  보드의 ID로 바꾸 십시오 . boards.h의 파일은 당신이이 목록에 없으면 그래서 먼저 확인 지원 보드의 목록을 최신있다.      

 

Sanguino 보드는 Arduino IDE에 "Sanguino"지원을 추가해야합니다.  기본 설정을 열고 추가 보드 관리자 URL 필드를  찾으십시오 . 이 소스 URL을 복사하여 붙여 넣으십시오 . 그런 다음 도구 > 보드 > 보드 관리자 를 사용하여 목록에서 "Sanguino"를 설치하십시오. 인터넷 연결이 필요합니다. (팁에 대한 "Dust 's RepRap 블로그"에 감사합니다.)         


Custom Machine Name

//#define CUSTOM_MACHINE_NAME "3D Printer"

This is the name of your printer as displayed on the LCD and by M115. For example, if you set this to “My Delta” the LCD will display “My Delta ready” when the printer starts up.

커스텀 머신 이름

// # CUSTOM_MACHINE_NAME "3D 프린터"정의

이것은 LCD와 M115 에 표시되는 프린터 이름입니다 . 예를 들어, 이것을 "My Delta"로 설정하면 프린터가 시작될 때 LCD에 "My Delta ready"가 표시됩니다. 


Machine UUID

//#define MACHINE_UUID "00000000-0000-0000-0000-000000000000"

A unique ID for your 3D printer. A suitable unique ID can be generated randomly at uuidtools.com. Some host programs and slicers may use this identifier to differentiate between specific machines on your network.

기계 UUID

// # define MACHINE_UUID "00000000-0000-0000-0000-000000000000"

3D 프린터의 고유 ID 적절한 고유 ID는 uuidtools.com 에서 무작위로 생성 할 수 있습니다 . 일부 호스트 프로그램 및 슬라이서는이 식별자를 사용하여 네트워크의 특정 시스템을 구별 할 수 있습니다. 


 

반응형

'- Malrin' 카테고리의 다른 글

Marlin firmware study_5  (0) 2020.04.21
Marlin firmware study_4  (0) 2020.04.16
Marlin firmware study_3  (0) 2020.04.15
Marlin firmware study_1  (0) 2020.03.31