I’m trying to read and write data over the UART via a tcp/python script but am having some trouble. I think TX operations are successful but I’m failing to properly read data.
My goal is to use the Otii to enter a DUT bootloader by toggling the otii arc GPO pins, then be able to dynamically read/write data to program/configure the DUT. Once programed/configured, use the otii to characterize the power consumption. Ideally this is all handled through the Otii arc.
- Is there an example of reading and writing UART data via the TCP client/python or other?
- Are there any limitations on dynamically reading and writing data? I ask because it looks like I may be receiving data but only after I stop a recording. This wouldn’t really be appropriate given my use case. It feels like I shouldn’t have to start/stop a recording every time I want to fetch a response from the DUT.
- Is the correct approach to start a recording and use “get_channel_data()” or is there another approach to reading Rx traffic?
Any other pointers would be helpful.