Query /run/mpa/vvpx4_sys_status in terminal
-
Hi,
I like to query the data from/run/mpa/vvpx4_sys_statusfrom inside a docker container.
I'm running docker with-v /run/mpa/:/run/mpa:rw, so I can see/run/mpa/vvpx4_sys_status
Is there a way to read the data without using modal_pipe_client?
I triedcat /run/mpa/vvpx4_sys_status/requestbut that just stalls.
I'm running dotnet in the container and tried usingNamedPipeClientStream, but that eventually gives a time-out. -
Hi, this is not a plaintext pipe and won't show any viewable data with a cat. The data coming through is in the mavlink packet protocol. We'd strongly recommend using the library that we've set up to manage all the pipes, but it is theoretically possible to use standard unix commands or another interface. The libmodal-pipe pipes are actually more of folders that contain a number of pipes so that the data can be distributed to an arbitrary number of clients. To read the data you should echo a plaintext name into the request pipe, after which the server will create a fifo with that name which could then be catted or opened with a read i.e.
echo "test" > /run/mpa/vvpx4_sys_status/request && cat /run/mpa/vvpx4_sys_status/test -
Thanks, this makes a bit more clear.
I tried running your command, but it returns an error. I tried
cat'ingtest?and that stalls.yocto:~$ echo "test" > /run/mpa/vvpx4_sys_status/request && cat /run/mpa/vvpx4_sys_status/test cat: /run/mpa/vvpx4_sys_status/test: No such file or directory yocto:~$ ls -alh /run/mpa/vvpx4_sys_status/ total 4.0K drwxr-xr-x. 2 root root 100 Jun 7 04:33 . drwxr-xr-x. 12 root root 260 Jan 1 1970 .. -rw-r--r--. 1 root root 185 Jan 1 1970 info prw-r--r--. 1 root root 0 Jun 7 04:33 request prw-r--r--. 1 root root 0 Jun 7 04:33 test? yocto:~$ cat /run/mpa/vvpx4_sys_status/test? -
Hi, this is not a plaintext pipe and won't show any viewable data with a cat. The data coming through is in the mavlink packet protocol. We'd strongly recommend using the library that we've set up to manage all the pipes, but it is theoretically possible to use standard unix commands or another interface. The libmodal-pipe pipes are actually more of folders that contain a number of pipes so that the data can be distributed to an arbitrary number of clients. To read the data you should echo a plaintext name into the request pipe, after which the server will create a fifo with that name which could then be catted or opened with a read i.e.
echo "test" > /run/mpa/vvpx4_sys_status/request && cat /run/mpa/vvpx4_sys_status/test
Reading along? Create a free ModalAI Forum account to join in.
With an account you can reply, ask your own question, get an email when a ModalAI engineer answers, and mark the reply that solved it. Your place in each thread is saved between visits.
Questions about VOXL, Flight Core, ESCs and ModalAI drones are answered here by the engineers who build them.
Register Login