Skip to content

RDM RTS pin issue #211

@BartJozwicki

Description

@BartJozwicki

Hello,

I am using ESP-IDF v5.4.1, on ESP32H2, I can read DMX fine. When I want to respond to the RDM discovery packet however, my RTS pin is on for a few micro seconds (Yellow) and then turns off, but you can still see TX signals being transmitted (Turquoise):

Image

I have only changed 2 functions for the code to compile on ESP32H2:

void DMX_ISR_ATTR dmx_uart_set_rts(dmx_port_t dmx_num, int set)
{
struct dmx_uart_t *uart = &dmx_uart_context[dmx_num];
uart_ll_set_rts_active_level(uart->dev, set);
}
and
int dmx_uart_get_rts(dmx_port_t dmx_num)
{
struct dmx_uart_t *uart = &dmx_uart_context[dmx_num];
return uart->dev->conf0_sync.sw_rts;
}

That is my main task's loop:

while (1)
{   
    size_last_received_dmx = dmx_receive(DMX_UART_NUMBER, &s_packet, DMX_TIMEOUT_TICK); 
    if (size_last_received_dmx > 0) 
    {           
        if (s_packet.is_rdm) 
        {
            b_rdm_send_error = rdm_send_response(DMX_UART_NUMBER);
        }   
        // Check that no errors occurred.
        if (DMX_OK == s_packet.err) 
        {
           // dmx_read(DMX_UART_NUMBER, dmx_data, size_last_received_dmx);
           // DMX_process_packet(dmx_data);    
        }
        else 
        {
           // ESP_LOGE(TAG, "An error occurred receiving DMX!");
        }
    }     
}   

I would greatly appreciate your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions