Hello All,
I have a problem when I build my project from sample central_uart & peripheral_uart.
I have two nrf5340 called A and B. B scans the broadcast to A to establish a connection. Then my phone(C) connects B.
A sends data to B, and B forwards data to C.
Speed of retransmission is 160kbps when B works on PHY1M. However, speed drops to 40kbps when B works on PHY2M.
I wonder what cause this problem.
Is there any ways to increase forwarding data speed?
Thank you.
static uint8_t ble_data_received(struct bt_nus_client *nus,
const uint8_t *data, uint16_t len)
{
ARG_UNUSED(nus);
int err;
err = bt_nus_send(peripheral_conn, data, len);
// printk("len:%d\n",len);
if (err) {
printk("Send Error(err %d)\n", err);
}
return BT_GATT_ITER_CONTINUE;
}
B is connected with A as the center and C as the periphery.