UART and logging in automated BabbleSim tests, suggestions?

Hello!

I am trying to set up automated tests for an application on the nRF54L15 BabbleSim target. The application needs two-way communication with a test script; this would be UART with another chip on real hardware. At the same time, logs from the application must be collected for debugging failed tests. What are my options here?

Using a PTY for UART is problematic because the PTY number gets assigned by the host OS and can not be explicitly specified, so it is unpredictable from an automation perspective.

Using stdin/stdout for UART is also problematic, because the logs are also printed to stdout and I haven't found a way to log to a file instead.

Using TCP in place of UART doesn't work either:  Offloaded sockets driver on Babblesim nRF54L15 

TCP over zeth is not an option because it requires root privileges to set up.

Are there any other ways of communicating with a script on the host OS?

Parents Reply
  • Hello Alberto, thank you for your answer!

    In the meanwhile, if you want to connect to a python(?) script, maybe you want to avoid using intermediary components, and directly open a Linux pipe for which you open the other side in your python script?

    I did not know that this is possible, I thought the application is linked with a minimal standard C library and not the host one. Will try to open a Unix socket and get back to you. 

Children
Related