I'm looking at examples\ble_peripheral\ble_app_uart example and I have a couple of questions:
- You explicitly configure the UART inside the main so now once you have the HW connections made to RX/TX pins, you could start sending bytes from a minicom/serial session to the device over UART, but how is UART Service for sending bytes to the serial session "configured"? How are bytes actually sent from the RX characteristic of the BLE service in nRF52 Connect App to the device over UART? In other words, how is the IRQ handler invoked as soon as the data is written to the RX characteristic?
- So you could use a minicom session to send to the UART service and receive from the UART service to the minicom session. How is the situation handled if the data is sent from both the COM listener and the nRF52 App around the same time? i.e meaning an interrupt is triggered by the COM port as well as the UART service? if so, it's feasible to send bytes from different sources to the same UART peripheral?
- What if we want to send a complete 'message' as opposed to just a byte from each producer provided how the IRQ is fired for each byte?