Hi, all
I'm using nrf52832 pca10040, s132..
I want to send and receive data over Tx , Rx pin.. with my custom board, cm1106 model..
<<<<<< I've connected the two devices directly.
So, what I want to do is..
i want to send data, 0x11 0x01 0x01 0xED to custom device (cm1106)
( If I send those data correctly, custom device will send 'respond data'.. )
1. Is it correct to use 'app_uart_put' to send data?..
2. Even if i do not receive the response data,, how can I check that those 0x11 ... data send well? (using nRF connect?)
3. Am I have to initialize custom device's gpio, too?
( This is uart initialize.. Could you also look at the wrong part? )
static void uart_init(void)
{
uint32_t err_code;
app_uart_comm_params_t const comm_params =
{
.rx_pin_no = RX_PIN_NUMBER,
.tx_pin_no = TX_PIN_NUMBER,
.rts_pin_no = RTS_PIN_NUMBER,
.cts_pin_no = CTS_PIN_NUMBER,
.flow_control = APP_UART_FLOW_CONTROL_DISABLED,
.use_parity = false,
.baud_rate = NRF_UART_BAUDRATE_9600
};
nrf_gpio_cfg_input(RX_PIN_NUMBER, NRF_GPIO_PIN_NOPULL);
nrf_gpio_cfg_output(TX_PIN_NUMBER);
APP_UART_FIFO_INIT(&comm_params,
UART_RX_BUF_SIZE,
UART_TX_BUF_SIZE,
uart_evt_callback,
APP_IRQ_PRIORITY_LOWEST,
err_code);
APP_ERROR_CHECK(err_code);
}
Any answer can be helpful as the explanation or question itself may have been ambiguous due to lack of foundation. Thank you.
BR,
lyrics