Today i migrate to version 1.0.3 from 0.92.9
Uart1 still not working in base config from github. I use fix from Curado link (post of ThomasHamke https://github.com/repetier/Repetier-Firmware/issues/799#issuecomment-400063311 ) and it works.
I reproduce solution and uart1 start functioning properly.
in Configuration.h and HAL.h comment all "#define EXTERNALSERIAL" (3 places in 2 configs):
#if MOTHERBOARD==8
MOTHERBOARD==88 MOTHERBOARD==9
MOTHERBOARD==92 CPU_ARCH!=ARCH_AVR//#define EXTERNALSERIAL //Comment this line!!!#endif#if NEW_COMMUNICATION && defined(BLUETOOTH_SERIAL) && BLUETOOTH_SERIAL > 0#undef EXTERNALSERIAL//#define EXTERNALSERIAL //Comment this line!!!#endif
//#define EXTERNALSERIAL // Force using Arduino serial#ifndef EXTERNALSERIAL#undef HardwareSerial_h#define HardwareSerial_h // Don't use standard serial console#endif
In gcode.cpp make some replaces:
Old code looks like:
#if NEW_COMMUNICATION
FlashGCodeSource flashSource;
SerialGCodeSource serial0Source(&RFSERIAL);
#if BLUETOOTH_SERIAL > 0
SerialGCodeSource serial1Source(&RFSERIAL2);
#endif
#endif
#if BLUETOOTH_SERIAL > 0
fast8_t GCodeSource::numSources = 2; ///< Number of data sources available
fast8_t GCodeSource::numWriteSources = 2;
GCodeSource *GCodeSource::sources[MAX_DATA_SOURCES] = {&serial0Source,&serial1Source};
GCodeSource *GCodeSource::writeableSources[MAX_DATA_SOURCES] = {&serial0Source,&serial1Source};
#else
fast8_t GCodeSource::numSources = 1; ///< Number of data sources available
fast8_t GCodeSource::numWriteSources = 1;
GCodeSource *GCodeSource::sources[MAX_DATA_SOURCES] = {&serial0Source};
GCodeSource *GCodeSource::writeableSources[MAX_DATA_SOURCES] = {&serial0Source};
#endif
GCodeSource *GCodeSource::activeSource = &serial0Source;
New looks like: (i just comment old ones)
#if NEW_COMMUNICATION
FlashGCodeSource flashSource;
SerialGCodeSource serial0Source(&RFSERIAL);
#if BLUETOOTH_SERIAL > 0
//SerialGCodeSource serial1Source(&RFSERIAL2); - old commented code
SerialGCodeSource serial1Source(&RFSERIAL); // - new code
#endif
#endif
//New code
fast8_t GCodeSource::numSources = 1;
fast8_t GCodeSource::numWriteSources = 1;
GCodeSource *GCodeSource::sources[MAX_DATA_SOURCES] = {&serial1Source};
GCodeSource *GCodeSource::writeableSources[MAX_DATA_SOURCES] = {&serial1Source};
GCodeSource
GCodeSource::activeSource = &serial1Source;
//end of new code
/ Old commented code
#if BLUETOOTH_SERIAL > 0
fast8_t GCodeSource::numSources = 2; ///< Number of data sources available
fast8_t GCodeSource::numWriteSources = 2;
GCodeSource *GCodeSource::sources[MAX_DATA_SOURCES] = {&serial0Source,&serial1Source};
GCodeSource *GCodeSource::writeableSources[MAX_DATA_SOURCES] = {&serial0Source,&serial1Source};
#else
fast8_t GCodeSource::numSources = 1; ///< Number of data sources available
fast8_t GCodeSource::numWriteSources = 1;
GCodeSource *GCodeSource::sources[MAX_DATA_SOURCES] = {&serial0Source};
GCodeSource *GCodeSource::writeableSources[MAX_DATA_SOURCES] = {&serial0Source};
#endif
GCodeSource
GCodeSource::activeSource = &serial0Source;
/
After uploading new firmware communication estabilished succesfully from bluetooth, connected 18 and 19 pins.
Thanks for solution.
Repetier, thanks you too for great firmware, but please check this bug. After half of year it still present in new firmware.