-
Notifications
You must be signed in to change notification settings - Fork 65
Description
I use ESP32 as the decoder. IDF architecture +Arduino components. DCC++ EX for command station, and UART serial port for command input monitoring.
I plugged the decoder into the PROG track and tried to respond to the ACK using the motor drive (motor works fine)
` void notifyCVAck(void)
{ ESP_LOGI(LOGTAG_DCC, "notifyCVAck");
MOTOR_Ack();
}
void MOTOR_Ack(void)
{
ledcWrite(MOTOR_PWM_CH_B, 0);
ledcWrite(MOTOR_PWM_CH_A, 240); vTaskDelay(6 / portTICK_PERIOD_MS);
ledcWrite(MOTOR_PWM_CH_A, 0);
}
`
No response, no output from ESP_LOG
I tried to read the DCC package again:
`void notifyDccMsg(DCC_MSG *Msg)
{
ESP_LOG_BUFFER_HEXDUMP("DCC_MSG",Msg->Data,Msg->Size,ESP_LOG_INFO);
}
`
Power on PROG (EX command<1>), with result:
I (165159) DCC_MSG: 0x3ffb2e22 ff 00 ff |...| I (165169) DCC_MSG: 0x3ffb2e22 ff 00 ff |...| I (165179) DCC_MSG: 0x3ffb2e22 ff 00 ff |...| I (165189) DCC_MSG: 0x3ffb2e22 ff 00 ff |...| I (165199) DCC_MSG: 0x3ffb2e22 ff 00 ff |...|
Feel like NMRA DCC can receive DCC signal, but can't process it, or am I wrong? Please advise.