# Reading data from /run/mpa/vvpx4_sys_status/request

Source: https://forum.modalai.com/topic/1993/reading-data-from-run-mpa-vvpx4_sys_status-request
Category: VOXL SDK and Software (https://forum.modalai.com/category/47/voxl-sdk-and-software)
Tags: mpa
Posted: 2023-03-24 09:56:51 UTC by hedd
Replies: 2 · Views: 1247

## hedd · 2023-03-24 09:56:51 UTC

hello,
How can we read data from the pipe /run/mpa/vvpx4_sys_status/request in python in order to read the battery data (voltage,charge,current)

## Reply by Chad Sweet (ModalAI staff) · 2023-03-24 15:12:02 UTC

We do not provide a python integration. Reading from named PIPEs is really straight-forward but you would have to implement the request portion, etc as well.

See stackoverflow here: https://stackoverflow.com/questions/39089776/python-read-named-pipe

You can find the format how to read from autopilot_sys_status here:

https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-mpa-tools/-/blob/master/tools/voxl-inspect-battery.c

It may be more straight forward to modify voxl-inspect-battery in C to publish the data in a format your Python code can easily ingest

## Reply by hedd · 2023-04-13 13:01:16 UTC (in reply to Chad Sweet)

@Chad-Sweet thank you
