On 11/3/21, Xiang Xiao <xiaoxiang781...@gmail.com> wrote: > On Wed, Nov 3, 2021 at 8:06 PM Tomasz CEDRO <to...@cedro.info> wrote: > >> On Wed, Nov 3, 2021 at 11:37 AM Fotis Panagiotopoulos wrote: >> > I am working on a new NuttX-based firmware. >> > On this application a hardware board will be able to communicate >> > through >> > UART with a Linux system. >> > >> > There is still some testing and development to be done on this Linux >> > program, so I thought that this is a great use for the simulator. >> > Instead >> > of passing actual hardware boards to every developer, they can >> > start-off >> > with a simulator app for the first steps. >> >> This sounds like a very useful feature! I have no experience yet in >> this area but sounds like local or network socket could be useful here >> to pipe UART from/to the simulator? :-) >> > > You can get the network capability with: > 1.Through tap device > incubator-nuttx/NETWORK-LINUX.txt at master · apache/incubator-nuttx > (github.com) > <https://github.com/apache/incubator-nuttx/blob/master/boards/sim/sim/sim/NETWORK-LINUX.txt> > 2.Through VPN > incubator-nuttx/NETWORK-VPNKIT.txt at master · apache/incubator-nuttx > (github.com) > <https://github.com/apache/incubator-nuttx/blob/master/boards/sim/sim/sim/NETWORK-VPNKIT.txt> > 3.Through usrsock > All possible option is documented here: > incubator-nuttx/Kconfig at master · apache/incubator-nuttx (github.com) > <https://github.com/apache/incubator-nuttx/blob/master/arch/sim/Kconfig#L137-L177> > > You can even simulate the functional audio/display/touchscreen and SMP/AMP > with sim. >
Also from any board running NuttX with network support you can use FIFO e netcat to get data directly from your application output this say: nsh> mkfifo /dev/fifo nsh> myapp > /dev/fifo & nsh> netcat 192.168.0.15 10123 /dev/fifo https://acassis.wordpress.com/2021/03/04/using-fifo-on-nuttx-to-send-data-from-your-board-to-computer/ Then in your computer (IP 192.168.0.15 in this example) you just run: $ nc -l 10123 BR, Alan