So I had this problem on two or three systems at this point. I have a Vantage Vue with the USB data logger (davis brand). I've had it connected to a couple of windows XP desktops running VWS, and now a raspberry Pi 3 B with weewx and cumulusmx. Basically it keeps dropping the usb connection and Im not sure what's going wrong.
On XP VWS would report it lost connection to the console, stop reporting data to CWOP/Wunderground etc, until rebooted. Simply restarting the program wouldn't bring it back, the PC needed a reboot.
On the RPi3B with CumulusMX it throws the following error in the software and CMX keeps sending the last value it recorded to Wunder/CWOP which obviously becomes a problem because I only know about it when I get the quality reports from CWOP showing 100+ errors for a day. TO fix this I need to reboot the RPi3B as well. But I noticed on the Pi that I actually get some indication of what happens.
CumulusMX Error:
_wapi_connect: error looking up socket handle 0x10 (error 10038)
_wapi_connect: error looking up socket handle 0x10
_wapi_connect: error looking up socket handle 0x12
_wapi_connect: error looking up socket handle 0x10
_wapi_connect: error looking up socket handle 0x10
_wapi_connect: error looking up socket handle 0x10
_wapi_connect: error looking up socket handle 0x10
_wapi_connect: error looking up socket handle 0x10
_wapi_connect: error looking up socket handle 0x10
_wapi_connect: error looking up socket handle 0x10
_wapi_connect: error looking up socket handle 0x10
_wapi_connect: error looking up socket handle 0x10
_wapi_connect: error looking up socket handle 0x10
_wapi_connect: error looking up socket handle 0x10
_wapi_connect: error looking up socket handle 0x10
_wapi_connect: error looking up socket handle 0x10
_wapi_connect: error looking up socket handle 0x10
_wapi_connect: error looking up socket handle 0x12
_wapi_connect: error looking up socket handle 0x10
_wapi_connect: error looking up socket handle 0x10
_wapi_connect: error looking up socket handle 0x10
_wapi_connect: error looking up socket handle 0x10
_wapi_connect: error looking up socket handle 0x10
_wapi_connect: error looking up socket handle 0x10
_wapi_connect: error looking up socket handle 0x10
_wapi_connect: error looking up socket handle 0x10
_wapi_connect: error looking up socket handle 0x10
_wapi_connect: error looking up socket handle 0x10
System.IO.IOException: Input/output error
at System.IO.Ports.SerialPortStream.ThrowIOException () [0x00000] in <filename unknown>:0
at System.IO.Ports.SerialPortStream.DiscardInBuffer () [0x00000] in <filename unknown>:0
at System.IO.Ports.SerialPort.DiscardInBuffer () [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.IO.Ports.SerialPort:DiscardInBuffer ()
at ?.? (System.IO.Ports.SerialPort ?, System.String ?) [0x00000] in <filename unknown>:0
at ?.? () [0x00000] in <filename unknown>:0
at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0
**** An error has occurred - please zip up the MXdiags folder and post it in the forum ****
Press Enter to terminate
Here is what I found in /var/log/messages about the USB port.
Jul 1 06:25:04 piwx rsyslogd: [origin software="rsyslogd" swVersion="8.4.2" x-pid="552" x-info="http://www.rsyslog.com"] rsyslogd was HUPed
Jul 1 07:13:27 piwx kernel: [3751405.770335] usb 1-1.3: USB disconnect, device number 5
Jul 1 07:13:27 piwx kernel: [3751405.770795] cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0
Jul 1 07:13:27 piwx kernel: [3751405.770838] cp210x 1-1.3:1.0: device disconnected
Jul 1 07:13:28 piwx kernel: [3751406.011725] usb 1-1.3: new full-speed USB device number 6 using dwc_otg
Jul 1 07:13:28 piwx kernel: [3751406.118208] usb 1-1.3: New USB device found, idVendor=10c4, idProduct=ea60
Jul 1 07:13:28 piwx kernel: [3751406.118230] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jul 1 07:13:28 piwx kernel: [3751406.118244] usb 1-1.3: Product: CP2102 USB to UART Bridge Controller
Jul 1 07:13:28 piwx kernel: [3751406.118257] usb 1-1.3: Manufacturer: Silicon Labs
Jul 1 07:13:28 piwx kernel: [3751406.118269] usb 1-1.3: SerialNumber: 0001
Jul 1 07:13:28 piwx kernel: [3751406.121118] cp210x 1-1.3:1.0: cp210x converter detected
Jul 1 07:13:28 piwx kernel: [3751406.121421] usb 1-1.3: cp210x converter now attached to ttyUSB1
Jul 1 09:24:37 piwx rsyslogd: [origin software="rsyslogd" swVersion="8.4.2" x-pid="552" x-info="http://www.rsyslog.com"] exiting on signal 15.
Ignore the syslog stuff, just there for showing timing of the events, syslog is fine.
So it dumped ttyUSB0, then found it again on ttyUSB1... obviously because it's still hung on USB0. hmm. This has happened on multiple computers, so the only thing in common is the USB cable, USB Data logger and the console. Any ideas on what's happening here?