Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZB_ESP_MACSPLIT_UART: mode is choosen but which host connection mode is not choosen #10485

Open
1 task done
alimosalo opened this issue Oct 19, 2024 · 1 comment
Open
1 task done
Assignees
Labels
Type: Question Only question

Comments

@alimosalo
Copy link

Board

ESP32H2

Device Description

DEVKIT

Hardware Configuration

GPIO 23(RX-PIN) and GPIO 24(TX-PIN) and GND of the esp32h2-devkit(esp_zigbee_rcp) are connected to the esp32-wroom(esp_zigbee_gateway).

Version

latest master (checkout manually)

IDE Name

ESP IDF

Operating System

windows11

Flash frequency

96MHZ

PSRAM enabled

yes

Upload speed

115200

Description

hi
I'm having problem with esp_zigbee_rcp example at ESP IDF.
it say that the problem is for the host configuration and I changed .host_mode_configuration at ESP_ZB_DEFAULT_HOST_CONFIG()(.h file) to HOST_CONNECTION_MODE_NONE, HOST_CONNECTION_MODE_CLI_UART, HOST_CONNECTION_MODE_RCP_UART but the problem didn't solve and also i change .rx_pin and .tx_pin to 23 and 24 respectively and i get the same problem too.
I comment these two command esp_zb_rcp_init(); esp_zb_rcp_main_loop_iteration(); at esp_zb_task function in rcp.c and get the same result too

Sketch

// at esp_zigbee_rcp.c
static void esp_zb_task(void *pvParameters)
{
    esp_zb_rcp_init();
    esp_zb_rcp_main_loop_iteration();
} 
// at esp_zigbee_rcp.h
#define ESP_ZB_DEFAULT_HOST_CONFIG()                            \
    {                                                           \
        .host_connection_mode = HOST_CONNECTION_MODE_CLI_UART,  \
        .host_uart_config = {                                   \
            .port = 0,                                          \
            .uart_config =                                      \
                {                                               \
                    .baud_rate = 115200,                        \
                    .data_bits = UART_DATA_8_BITS,              \
                    .parity = UART_PARITY_DISABLE,              \
                    .stop_bits = UART_STOP_BITS_1,              \
                    .flow_ctrl = UART_HW_FLOWCTRL_DISABLE,      \
                    .rx_flow_ctrl_thresh = 0,                   \
                    .source_clk = UART_SCLK_DEFAULT,            \
                },                                              \
            .rx_pin = 23,                       \
            .tx_pin = 24,                       \
        },

Debug Message

ZB_ESP_MACSPLIT_UART: mode is choosen but which host connection mode is not choosen

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@alimosalo alimosalo added the Status: Awaiting triage Issue is waiting for triage label Oct 19, 2024
@Jason2866
Copy link
Collaborator

This is Arduino repo. Your zigbee example is not Arduino code.

@VojtechBartoska VojtechBartoska added Type: Question Only question and removed Status: Awaiting triage Issue is waiting for triage labels Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Question Only question
Projects
None yet
Development

No branches or pull requests

4 participants