I am getting the error message below when I call the function
get_mboard_sensor with the string "get_gps_sky_sensor".  Actually, this
just happened to be the first sensor name returned from the function
get_mboard_sensor_names().  Below you will find my source code snippet, and
then the error message, and then the list of sensors returned from
get_mboard_sensor_names().

I am using the latest master commit f114cfa.

Rob


********************************************************************************
Source code
    mb_sensor_names = usrp->get_mboard_sensor_names(0);
    for (size_t i=0; i<mb_sensor_names.size(); i++) {
        uhd::sensor_value_t val =
usrp->get_mboard_sensor(mb_sensor_names[i], 0);
        std::cout << "Motherboard sensor " << mb_sensor_names[i] << ": "
/*<< val.to_pp_string()*/ << std::endl;
    }


********************************************************************************
Error Message
[ERROR] [MPM.RPCServer] Uncaught exception in method get_mb_sensor :[Errno
32] Broken pipe
 Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/usrp_mpm/rpc_server.py", line 182,
in new_claimed_function
    return function(*args)
  File "/usr/lib/python3.5/site-packages/usrp_mpm/periph_manager/base.py",
line 726, in get_mb_sensor
    self, self.mboard_sensor_callback_map.get(sensor_name)
  File "/usr/lib/python3.5/site-packages/usrp_mpm/gpsd_iface.py", line 220,
in get_gps_sky_sensor
    self._gpsd_iface.watch_query()
  File "/usr/lib/python3.5/site-packages/usrp_mpm/gpsd_iface.py", line 68,
in watch_query
    self.gpsd_socket.sendall(query_cmd)
  File "/usr/lib/python3.5/site-packages/gevent/_socket3.py", line 418, in
sendall
    data_sent += self.send(data_memory[data_sent:], flags)
  File "/usr/lib/python3.5/site-packages/gevent/_socket3.py", line 390, in
send
    return _socket.socket.send(self._sock, data, flags)
BrokenPipeError: [Errno 32] Broken pipe

Error: RuntimeError: Error during RPC call to `get_mb_sensor'. Error
message: [Errno 32] Broken pipe

********************************************************************************
Sensor printout obtained with get_mboard_sensor() line commented out
Motherboard sensor get_gps_sky_sensor:
Motherboard sensor get_gps_time_sensor:
Motherboard sensor temp:
Motherboard sensor get_gps_tpv_sensor:
Motherboard sensor gps_locked:
Motherboard sensor ref_locked:
Motherboard sensor fan:
_______________________________________________
USRP-users mailing list
[email protected]
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

Reply via email to