Autor Tema: ¿Fallo USB?  (Leído 2626 veces)

0 Usuarios y 1 Visitante están viendo este tema.

Desconectado Telares

  • Hero Member
  • *****
  • Mensajes: 699
    • Ver Perfil
  • Estación: Matueca ESCYL2400000024820A
¿Fallo USB?
« en: 20 de Noviembre del 2017, 11:27:45 am »
Hola, a ver si me podéis ayudar. Esto ya ocurrió hace unos 15 días. En la consola se borra la memoria, se resetea la hora y se pone a enviar datos cada 30min (set-interval=30) en vez de los 5 minutos. Ésto último fue lo que me alertó. He cambiado el cable USB y he cambiado de puerto USB en la raspberry. Aún así al comprobar la conexión parece que me da error. No he cambiado de pilas por hacer las comprobaciones poco a poco, para saber más fácilmente cuál es la solución.

root@raspberrypi:~# sudo /etc/init.d/weewx stop
[ ok ] Stopping weewx (via systemctl): weewx.service.
root@raspberrypi:~# sudo /etc/init.d/weewx start
[ ok ] Starting weewx (via systemctl): weewx.service.
root@raspberrypi:~# sudo wee_device --check-usb
Using configuration file /etc/weewx/weewx.conf
Using FineOffsetUSB driver version 1.9 (weewx.drivers.fousb)
This will read from the station console repeatedly to see if
there are errors in the USB communications.  Leave this running
for an hour or two to see if any bad reads are encountered.
Bad reads will be reported in the system log.  A few bad reads
per hour is usually acceptable.
bad/total: 4/1580
Traceback (most recent call last):
  File "/usr/bin/wee_device", line 54, in <module>
    main()
  File "/usr/bin/wee_device", line 51, in main
    device.configure(config_dict)
  File "/usr/share/weewx/weewx/drivers/__init__.py", line 69, in configure
    self.do_options(options, parser, config_dict, prompt)
  File "/usr/share/weewx/weewx/drivers/fousb.py", line 392, in do_options
    self.check_usb()
  File "/usr/share/weewx/weewx/drivers/fousb.py", line 451, in check_usb
    result_1 = self.station._read_block(ptr, retry=False)
  File "/usr/share/weewx/weewx/drivers/fousb.py", line 1703, in _read_block
    new_block = self._read_usb_block(ptr)
  File "/usr/share/weewx/weewx/drivers/fousb.py", line 1198, in _read_usb_block
    int(self.timeout*1000))
usb.USBError: error submitting URB: Device or resource busy
root@raspberrypi:~# sudo wee_device --logged
Using configuration file /etc/weewx/weewx.conf
Using FineOffsetUSB driver version 1.9 (weewx.drivers.fousb)
0130 10:03:34 {'status': 0, 'hum_out': 80, 'wind_gust': 0.7000000000000001, 'wind_ave': 0.30000000000000004, 'rain': 304.5, 'temp_in': 15.8, 'delay': 5, 'abs_pressure': 915.1, 'hum_in': 44, 'temp_out': 3.5, 'wind_dir': 2}
Traceback (most recent call last):
  File "/usr/bin/wee_device", line 54, in <module>
    main()
  File "/usr/bin/wee_device", line 51, in main
    device.configure(config_dict)
  File "/usr/share/weewx/weewx/drivers/__init__.py", line 69, in configure
    self.do_options(options, parser, config_dict, prompt)
  File "/usr/share/weewx/weewx/drivers/fousb.py", line 386, in do_options
    self.show_readings(True)
  File "/usr/share/weewx/weewx/drivers/fousb.py", line 491, in show_readings
    for data,ptr,_ in self.station.live_data(logged_only):
  File "/usr/share/weewx/weewx/drivers/fousb.py", line 1486, in live_data
    new_data = self.get_data(old_ptr, unbuffered=True)
  File "/usr/share/weewx/weewx/drivers/fousb.py", line 1636, in get_data
    return _decode(self.get_raw_data(ptr, unbuffered),
  File "/usr/share/weewx/weewx/drivers/fousb.py", line 1627, in get_raw_data
    self._data_block = self._read_block(self._data_pos)
  File "/usr/share/weewx/weewx/drivers/fousb.py", line 1703, in _read_block
    new_block = self._read_usb_block(ptr)
  File "/usr/share/weewx/weewx/drivers/fousb.py", line 1195, in _read_usb_block
    1000)
usb.USBError: error sending control message: Device or resource busy

Gracias