diff options
author | Nick Foster <nick@nerdnetworks.org> | 2010-08-12 16:27:57 -0700 |
---|---|---|
committer | Nick Foster <nick@nerdnetworks.org> | 2010-08-12 16:27:57 -0700 |
commit | e2fcb815141b05205ea9334e2db78f9ceffa62c3 (patch) | |
tree | c62320e4822a6fa6e63f8f614d6ac73743052df6 /host/lib/usrp/usrp2/mboard_impl.cpp | |
parent | e42230e7fae59d91186d21ab6ba8311421649375 (diff) | |
download | uhd-e2fcb815141b05205ea9334e2db78f9ceffa62c3.tar.gz uhd-e2fcb815141b05205ea9334e2db78f9ceffa62c3.tar.bz2 uhd-e2fcb815141b05205ea9334e2db78f9ceffa62c3.zip |
Added host-side support for UART messaging.
Have not yet added GPS control library. Debug crap in mboard_impl.cpp constructor.
Diffstat (limited to 'host/lib/usrp/usrp2/mboard_impl.cpp')
-rw-r--r-- | host/lib/usrp/usrp2/mboard_impl.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp2/mboard_impl.cpp b/host/lib/usrp/usrp2/mboard_impl.cpp index a3d5e8955..19afd8122 100644 --- a/host/lib/usrp/usrp2/mboard_impl.cpp +++ b/host/lib/usrp/usrp2/mboard_impl.cpp @@ -110,6 +110,13 @@ usrp2_mboard_impl::usrp2_mboard_impl( (*this)[MBOARD_PROP_RX_SUBDEV_SPEC] = subdev_spec_t(); (*this)[MBOARD_PROP_TX_SUBDEV_SPEC] = subdev_spec_t(); + //TODO DEBUG! this is just here to test writing to and reading from the UART. + std::string mystr = "PTIME:TIME?\n"; + byte_vector_t mybuf(mystr.begin(), mystr.end()); + _iface->write_uart(2, mybuf); + mybuf = _iface->read_uart(2, 15); + std::cout << "DEBUG: " << std::string(mybuf.begin(), mybuf.end()) << std::endl; + //Issue a stop streaming command (in case it was left running). //Since this command is issued before the networking is setup, //most if not all junk packets will never make it to the socket. |