diff options
| author | Samuel O'Brien <sam.obrien@ni.com> | 2020-07-31 13:43:43 -0500 |
|---|---|---|
| committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-10-07 15:29:19 -0500 |
| commit | 6394a7c6ea395e2d21c3e2b9e43e1b2dc84666b5 (patch) | |
| tree | e5c230efe4781ac294641464d99cf51b6bf44024 /mpm/python/usrp_mpm/__init__.py.in | |
| parent | 1bb603fffdbdcc87f7c26809d495ced7a5afc93b (diff) | |
| download | uhd-6394a7c6ea395e2d21c3e2b9e43e1b2dc84666b5.tar.gz uhd-6394a7c6ea395e2d21c3e2b9e43e1b2dc84666b5.tar.bz2 uhd-6394a7c6ea395e2d21c3e2b9e43e1b2dc84666b5.zip | |
sim: Lay Groundwork for Simulator
At this point, only about half of the mpm methods work on the simulator
over the mpm shell, and it hasn't been tested with uhd at all.
If you want to give it a try, first install all of the python
dependencies of mpm (The simulator doesn't require libusrp or any of
the C++ deps). In addition, running mpm on a desktop machine requires
the python lib netifaces. Next, make an /mpm/build directory and open
it. Run `cmake .. -DMPM_DEVICE=sim`, then `make`. Finally, run
`python3 python/usrp_hwd.py`. You should be able to open another
terminal and run `mpm/tools/mpm_shell.py localhost` to connect to the
mpm server.
Signed-off-by: Samuel O'Brien <sam.obrien@ni.com>
Diffstat (limited to 'mpm/python/usrp_mpm/__init__.py.in')
| -rw-r--r-- | mpm/python/usrp_mpm/__init__.py.in | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/mpm/python/usrp_mpm/__init__.py.in b/mpm/python/usrp_mpm/__init__.py.in new file mode 100644 index 000000000..c2134d092 --- /dev/null +++ b/mpm/python/usrp_mpm/__init__.py.in @@ -0,0 +1,30 @@ +# +# Copyright 2017 Ettus Research, a National Instruments Company +# +# SPDX-License-Identifier: GPL-3.0-or-later +# +""" +MPM Module +""" + +__simulated__ = ("${MPM_DEVICE}" == "sim") + +from .discovery import spawn_discovery_process +from .rpc_server import spawn_rpc_process +from . import mpmtypes +from . import gpsd_iface +from .mpmlog import get_main_logger + +if not __simulated__: + from . import libpyusrp_periphs as lib + from . import periph_manager + from . import dboard_manager + from . import xports + from . import cores + from . import chips +else: + from . import periph_manager + +__version__ = periph_manager.__version__ +__githash__ = periph_manager.__githash__ +__mpm_device__ = periph_manager.__mpm_device__ |
