USB Disconnect with Vantage Vue

Davis Vantage Pro2, Pro1 (not firmware A)

Moderator: Mattk

Post Reply
marke190
Fresh Boarder
Fresh Boarder
Posts: 11
Joined: Sun Nov 24, 2013 9:39 pm

USB Disconnect with Vantage Vue

Post by marke190 » Sun Nov 24, 2013 10:40 pm

Every few days I get a USB disconnect that Meteobridge cannot overcome despite many attempts recorded in the system log of resetting the USB port. Only disconnecting and reconnecting the USB 2.0 hub cable at the Meteobridge causes the connection to resume. Equipment summary:
Davis Vantage Vue, console firmware 3.00.
Torkel Jodalen's data logger security chip override (http://meteo.annoyingdesigns.com/DavisSPI.pdf).
PL-2303HX USB to 3.3 volt Serial cable (http://www.amazon.com/gp/product/B008AGDTA4).
Amazon USB 2.0 hub (http://www.amazon.com/gp/product/B003M0NURK).
TP-LINK TL-MR3020 router.
Meteobridge firmware Linux/OpenWrt 3.3.8 mips (BE), MeteoBridge 2.0 (2927)

When the failure occurs, the log is full of entries like this:
logger (24.11.2013 12:10:53): connect station 0 (Vantage via USB serial).
logger (24.11.2013 12:10:54): station 0 (Vantage), wakeup sent.
logger (24.11.2013 12:10:54): station 0 (Vantage), internal logger activated.
logger (24.11.2013 12:10:54): station 0 (Vantage), syncing.
logger (24.11.2013 12:11:03): station 0 (Vantage), gettime request sent.
logger (24.11.2013 12:11:13): station 0 (Vantage), gettime request sent.
logger (24.11.2013 12:11:23): station 0 (Vantage), gettime request sent.
logger (24.11.2013 12:11:33): disconnect station 0 (Vantage): timeout
logger (24.11.2013 12:11:34): usb port resetted.
logger (24.11.2013 12:12:03): connect station 0 (Vantage via USB serial).
logger (24.11.2013 12:12:04): station 0 (Vantage), wakeup sent.
logger (24.11.2013 12:12:04): station 0 (Vantage), internal logger activated.
logger (24.11.2013 12:12:04): station 0 (Vantage), syncing.
logger (24.11.2013 12:12:13): station 0 (Vantage), gettime request sent.
logger (24.11.2013 12:12:23): station 0 (Vantage), gettime request sent.
logger (24.11.2013 12:12:33): station 0 (Vantage), gettime request sent.
logger (24.11.2013 12:12:43): disconnect station 0 (Vantage): timeout
logger (24.11.2013 12:12:44): usb port resetted.


To restate, when the failure occurs, I do not have to power down or reset the console or the router; I just have to unplug and replug the USB cable (which of course does restart the USB 2.0 hub and the USB to serial cable). My suspicion at the moment is that I have a counterfeit PL2303HX chip in the USB to serial converter (chip version A, which is known to be counterfeited in China).

Any thoughts from forum members on this as a possible cause of the failure? And if I do order another cable, should the chip be FTDI vs. Prolific, or a known source of genuine Prolific cables, etc.

Thank you.

marke190
Fresh Boarder
Fresh Boarder
Posts: 11
Joined: Sun Nov 24, 2013 9:39 pm

Re: USB Disconnect with Vantage Vue

Post by marke190 » Mon Nov 25, 2013 6:05 am

Additional info -- it failed again after about 10 hours. This time I disconnected and reconnected the USB/serial cable from the USB hub, so only the Prolific chip was reset by the power cycle. The datalink came back to life, so I think I've proven that the problem is in the cable, not in the hub.

marke190
Fresh Boarder
Fresh Boarder
Posts: 11
Joined: Sun Nov 24, 2013 9:39 pm

Re: USB Disconnect with Vantage Vue -- solved?

Post by marke190 » Mon Nov 25, 2013 7:51 am

Upon close examination of the USB/serial cable, I discovered that one of the mechanical supports for the USB connector was not soldered to the little circuit board, allowing the connector to flex. Further examination of the USB connector showed that one of the signal pins was never soldered. The result was an intermittent circuit. This may well prove to be my problem. I have resoldered things and am hopeful that this will solve my connectivity problem. I'm including photos showing the problem. Click to enlarge.
Image
Image
Since this is a USB 2.0 chip (12 MHz crystal), if I've solved the disconnect problem, I can also probably remove the USB 2.0 hub. It worked without the hub at first, but when this intermittent problem appeared, I inserted the hub to see if it would fix it.
I should know in a day or two if the poor soldering was the cause of the observed failures.

User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 5479
Joined: Mon Oct 01, 2007 10:51 pm

Re: USB Disconnect with Vantage Vue

Post by admin » Mon Nov 25, 2013 8:24 pm

Please keep the Hub.

marke190
Fresh Boarder
Fresh Boarder
Posts: 11
Joined: Sun Nov 24, 2013 9:39 pm

Re: USB Disconnect with Vantage Vue

Post by marke190 » Mon Nov 25, 2013 8:41 pm

Can you explain what function the hub serves if the cable is USB 2.0?
Thanks

User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 5479
Joined: Mon Oct 01, 2007 10:51 pm

Re: USB Disconnect with Vantage Vue

Post by admin » Mon Nov 25, 2013 11:53 pm

Yes, but for the very last time...

Problem with USB 1.x on TP-Link devices is tracked down to atheros chipset drivers,
you can find details here (mr3020, wr703, etc all the same chipset):
https://forum.openwrt.org/viewtopic.php?id=39956

marke190
Fresh Boarder
Fresh Boarder
Posts: 11
Joined: Sun Nov 24, 2013 9:39 pm

Re: USB Disconnect with Vantage Vue

Post by marke190 » Tue Nov 26, 2013 1:22 am

I looked at some of this last summer when I was buying parts in the US, which is why I got a USB 2.0 high-speed capable hub. I incorrectly thought the MR3020 incompatibility was with USB 1.1 low speed 1.5 Mbps, like the Davis Data Logger cable. I see the problem is also with USB 2.0 full speed 12 Mbps, and that the TP-Link MR3020 wants to be connected to a USB high-speed 480 Mbps device or hub. I will keep the hub.

Unfortunately, the USB just disconnected, 18 hours after my soldering exploits, so I'm back to scratching my head or trying to get a completely different USB/serial adapter, maybe FTDI-based instead of Prolific.

logger (25.11.2013 17:18:47): usb port resetted.
logger (25.11.2013 17:19:16): connect station 0 (Vantage via USB serial).
logger (25.11.2013 17:19:17): station 0 (Vantage), wakeup sent.
logger (25.11.2013 17:19:17): station 0 (Vantage), internal logger activated.
logger (25.11.2013 17:19:17): station 0 (Vantage), syncing.
logger (25.11.2013 17:19:26): station 0 (Vantage), gettime request sent.
logger (25.11.2013 17:19:36): station 0 (Vantage), gettime request sent.
logger (25.11.2013 17:19:46): station 0 (Vantage), gettime request sent.
logger (25.11.2013 17:19:56): disconnect station 0 (Vantage): timeout
logger (25.11.2013 17:19:57): usb port resetted.

Flessan
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: Sun Dec 29, 2013 7:31 pm

Re: USB Disconnect with Vantage Vue

Post by Flessan » Sun Dec 29, 2013 7:44 pm

I see this thread is over a month old, but wanted to put some "food for thought" here.

I am still using the USB to PC connection (haven't purchased the meteobridge yet). I was getting USB dropouts which could also ONLY be solved by removing the USB cable and plugging it back in. Another friend was having similar issues and tracked it down to power issues. When another device is started on the same electrical circuit as the davis console, it would cause the USB to drop out. One way to verify this is to put fresh batteries in your console and unplug it from the wall. Let it run on batteries for a week or so. If you get no drop outs, then it's the power. Even a good UPS didn't solve the issue. I bought a new USB cable that has a filter on one end, and this helped quite a bit, but didn't eliminate it completely. Now I'm connected to a different computer and it never drops out. That leads me to believe that it affects some USB chipsets more than others.

marke190
Fresh Boarder
Fresh Boarder
Posts: 11
Joined: Sun Nov 24, 2013 9:39 pm

Re: USB Disconnect with Vantage Vue

Post by marke190 » Mon Dec 30, 2013 12:55 am

Thanks for the power suggestion, but I've been up and running without issue since Dec. 5th, a total of 24 days solid. On that date I did another round of re-soldering of bad-looking joints on the USB-serial board, and removed a stray piece of factory solder between chip leads. Also, I had previously added a 100K ohm resistor between ground and the chip-select line on Torkel's security override chip to overcome a programming incompatibility with the Vantage Vue console. I received a new chip from Torkel that worked with the Vantage Vue, and so was able to remove the 100K resistor on Dec. 5. Between all those changes, it's been running just fine.

I'm a happy camper.

I don't think I had a power issue despite having very marginal power service to the house -- one 30-amp, 127VAC drop from the street. When the refrigerator or water pump goes on, several UPS' chatter for a second or two because of the voltage sag. The Meteobridge and Vantage Vue console are not plugged in to a UPS, yet both stay up, as does the USB connection.

@Flessan, once you're confident of your USB connection to your PC, I really recommend Meteobridge. It's very well done and provides a lot of upload options in a compact, low-power package. Just be sure to use an inexpensive, passive USB 2.0 hub capable of 480 Mbps operation. Also, the Meteobridge will connect to a Ubiquiti AirCam via the unused Ethernet port. I have the camera and am looking forward to installing it in the next few weeks.

-- Mark

Flessan
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: Sun Dec 29, 2013 7:31 pm

Re: USB Disconnect with Vantage Vue

Post by Flessan » Mon Dec 30, 2013 10:35 pm

Hi Mark,

I'm glad you solved your disconnect issues. I'm not sure that the meteobridge would be a fit for me. It does look like a well done and very clever low power device, but I like to keep a record of the observations on my PC, and there does not seem to be a "pass-through" option. I think I would need to buy an additional data logger, and that would make it cost prohibitive. I like the idea of the meteobridge because I sometimes have issues with the PC that require a reboot. If I calculated right, buying the router and license would cost me around $100 USD. To keep the PC updated, I would need a second data logger at another 130 USD. You can see how this gets a bit expensive. If I decide to do this, it will just be to keep data flowing when the PC decides to go to sleep. Plus, I could keep the PC off much of the time then turn it on just to download the data. Still, $230 USD is tough to swallow right now :)

Flessan

marke190
Fresh Boarder
Fresh Boarder
Posts: 11
Joined: Sun Nov 24, 2013 9:39 pm

Re: USB Disconnect with Vantage Vue

Post by marke190 » Mon Dec 30, 2013 11:16 pm

I see your point. It wasn't an issue for me because I don't need to record the data locally. I'm happy to let Weather Underground keep it and I can download it as a CSV file if necessary. WU doesn't have all the data, such as indoor temp and humidity, but that wasn't my main purpose. I haven't explored all of the Meteobridge's push services, but pushing data to a cloud SQL database or running an arbitrary bash script to save data seems a possibility.

I live in a place where the electricity rates are very high if I exceed a certain threshold per month, so leaving computers on just to log data when I'm not actively using them isn't an option.

Mark

marke190
Fresh Boarder
Fresh Boarder
Posts: 11
Joined: Sun Nov 24, 2013 9:39 pm

Re: USB Disconnect with Vantage Vue

Post by marke190 » Mon Apr 28, 2014 6:19 am

After months of working well, my USB problems are returning with increasing frequency. The Meteobridge goes through an Amazon USB 2.0 hub to a PL-2303HX USB to 3.3 volt Serial cable connected to a Davis VantageVue console. The Meteobridge System page shows that it's been up and running for over 16 days, and even when the USB fails, it continues to forward Ubiquity Aircam images to WU and the Meteobridge website, so I know the internet connection is still alive. Usually the first time I'm aware of the USB failure is when WU sends me an e-mail saying we've been off the air for two hours.

The Message log has information about USB resets similar to my first post in this thread. For example, this evening, while it was failing:
logger (27.04.2014 19:59:02): connect station 0 (Vantage via USB serial).
logger (27.04.2014 19:59:03): station 0 (Vantage), wakeup sent.
logger (27.04.2014 19:59:04): station 0 (Vantage), internal logger activated.
logger (27.04.2014 19:59:04): station 0 (Vantage), syncing.
logger (27.04.2014 19:59:12): station 0 (Vantage), gettime request sent.
logger (27.04.2014 19:59:22): station 0 (Vantage), gettime request sent.
logger (27.04.2014 19:59:32): station 0 (Vantage), gettime request sent.
logger (27.04.2014 19:59:42): disconnect station 0 (Vantage): timeout
logger (27.04.2014 20:00:54): usb port resetted.
logger (27.04.2014 20:02:04): usb port resetted.
logger (27.04.2014 20:03:14): usb port resetted.
logger (27.04.2014 20:04:24): usb port resetted.
logger (27.04.2014 20:05:34): usb port resetted.
logger (27.04.2014 20:06:02): child process received timeout signal (14).
logger (27.04.2014 20:06:04): usb port resetted.
logger (27.04.2014 20:06:04): data logger stopped.
logger (27.04.2014 20:06:04): Historical data loaded (15 records).
logger (27.04.2014 20:06:04): data logger (version 4.9y, build 3618) started.
logger (27.04.2014 20:06:05): connect station 0 (Vantage via USB serial).
logger (27.04.2014 20:06:06): station 0 (Vantage), wakeup sent.
logger (27.04.2014 20:06:06): station 0 (Vantage), internal logger activated.
logger (27.04.2014 20:06:06): station 0 (Vantage), syncing.
logger (27.04.2014 20:06:15): station 0 (Vantage), gettime request sent.
logger (27.04.2014 20:06:25): station 0 (Vantage), gettime request sent.
logger (27.04.2014 20:06:35): station 0 (Vantage), gettime request sent.
logger (27.04.2014 20:06:46): disconnect station 0 (Vantage): timeout
logger (27.04.2014 20:07:15): connect station 0 (Vantage via USB serial).
logger (27.04.2014 20:07:16): station 0 (Vantage), wakeup sent.
logger (27.04.2014 20:07:16): station 0 (Vantage), internal logger activated.
logger (27.04.2014 20:07:16): station 0 (Vantage), syncing.
logger (27.04.2014 20:07:25): station 0 (Vantage), gettime request sent.
logger (27.04.2014 20:07:35): station 0 (Vantage), gettime request sent.
logger (27.04.2014 20:07:45): station 0 (Vantage), gettime request sent.
logger (27.04.2014 20:07:55): disconnect station 0 (Vantage): timeout
logger (27.04.2014 20:08:25): connect station 0 (Vantage via USB serial).
logger (27.04.2014 20:08:26): station 0 (Vantage), wakeup sent.
logger (27.04.2014 20:08:26): station 0 (Vantage), internal logger activated.
logger (27.04.2014 20:08:26): station 0 (Vantage), syncing.
logger (27.04.2014 20:08:35): station 0 (Vantage), gettime request sent.
logger (27.04.2014 20:08:45): station 0 (Vantage), gettime request sent.
logger (27.04.2014 20:08:55): station 0 (Vantage), gettime request sent.
logger (27.04.2014 20:09:05): disconnect station 0 (Vantage): timeout
logger (27.04.2014 20:09:35): connect station 0 (Vantage via USB serial).
logger (27.04.2014 20:09:36): station 0 (Vantage), wakeup sent.
logger (27.04.2014 20:09:36): station 0 (Vantage), internal logger activated.
logger (27.04.2014 20:09:36): station 0 (Vantage), syncing.
logger (27.04.2014 20:09:45): station 0 (Vantage), gettime request sent.
logger (27.04.2014 20:09:55): station 0 (Vantage), gettime request sent.
logger (27.04.2014 20:10:05): station 0 (Vantage), gettime request sent.
logger (27.04.2014 20:10:15): disconnect station 0 (Vantage): timeout
logger (27.04.2014 20:10:45): connect station 0 (Vantage via USB serial).
logger (27.04.2014 20:10:46): station 0 (Vantage), wakeup sent.
logger (27.04.2014 20:10:46): station 0 (Vantage), internal logger activated.
logger (27.04.2014 20:10:46): station 0 (Vantage), syncing.
logger (27.04.2014 20:10:55): station 0 (Vantage), gettime request sent.
logger (27.04.2014 20:11:05): station 0 (Vantage), gettime request sent.
logger (27.04.2014 20:11:15): station 0 (Vantage), gettime request sent.
logger (27.04.2014 20:11:26): disconnect station 0 (Vantage): timeout
logger (27.04.2014 20:11:28): usb port resetted.


I unplugged the USB 2.0 hub from Meteobridge and then plugged it back in a few seconds later. It went back to working normally, and data now fetched from the console was being uploaded to WU.

The mystery is why sometimes Meteobridge is able to eventually reset the USB on its own. For example, we were off the air from 2:06 a.m. to 5:17 a.m. this morning when it finally was able to restart the USB by itself, without manual intervention (sorry, no log available).

The station has to operate unattended this summer, and that's going to be problematic if it loses USB connectivity on its own and can't reset it itself.

Is there any way to tweak Meteobridge's USB reset protocol to make it more effective?

Thanks,
Mark E.

marke190
Fresh Boarder
Fresh Boarder
Posts: 11
Joined: Sun Nov 24, 2013 9:39 pm

Re: USB Disconnect with Vantage Vue

Post by marke190 » Mon Apr 28, 2014 2:54 pm

And here's a log from this morning, where the Meteobridge was able to restart the USB on its own at 6:48 a.m.

logger (28.04.2014 06:40:31): connect station 0 (Vantage via USB serial).
logger (28.04.2014 06:40:32): station 0 (Vantage), wakeup sent.
logger (28.04.2014 06:40:33): station 0 (Vantage), internal logger activated.
logger (28.04.2014 06:40:33): station 0 (Vantage), syncing.
logger (28.04.2014 06:40:41): station 0 (Vantage), gettime request sent.
logger (28.04.2014 06:40:51): station 0 (Vantage), gettime request sent.
logger (28.04.2014 06:41:01): station 0 (Vantage), gettime request sent.
logger (28.04.2014 06:41:11): disconnect station 0 (Vantage): timeout
logger (28.04.2014 06:41:13): usb port resetted.
logger (28.04.2014 06:41:41): child process received timeout signal (14).
logger (28.04.2014 06:41:43): usb port resetted.
logger (28.04.2014 06:41:43): data logger stopped.
logger (28.04.2014 06:41:43): Historical data loaded (15 records).
logger (28.04.2014 06:41:43): data logger (version 4.9y, build 3618) started.
logger (28.04.2014 06:41:44): connect station 0 (Vantage via USB serial).
logger (28.04.2014 06:41:46): station 0 (Vantage), wakeup sent.
logger (28.04.2014 06:41:46): station 0 (Vantage), internal logger activated.
logger (28.04.2014 06:41:46): station 0 (Vantage), syncing.
logger (28.04.2014 06:41:54): station 0 (Vantage), gettime request sent.
logger (28.04.2014 06:42:04): station 0 (Vantage), gettime request sent.
logger (28.04.2014 06:42:14): station 0 (Vantage), gettime request sent.
logger (28.04.2014 06:42:24): disconnect station 0 (Vantage): timeout
logger (28.04.2014 06:42:54): connect station 0 (Vantage via USB serial).
logger (28.04.2014 06:42:55): station 0 (Vantage), wakeup sent.
logger (28.04.2014 06:42:55): station 0 (Vantage), internal logger activated.
logger (28.04.2014 06:42:55): station 0 (Vantage), syncing.
logger (28.04.2014 06:43:04): station 0 (Vantage), gettime request sent.
logger (28.04.2014 06:43:14): station 0 (Vantage), gettime request sent.
logger (28.04.2014 06:43:24): station 0 (Vantage), gettime request sent.
logger (28.04.2014 06:43:34): disconnect station 0 (Vantage): timeout
logger (28.04.2014 06:44:05): connect station 0 (Vantage via USB serial).
logger (28.04.2014 06:44:06): station 0 (Vantage), wakeup sent.
logger (28.04.2014 06:44:06): station 0 (Vantage), internal logger activated.
logger (28.04.2014 06:44:06): station 0 (Vantage), syncing.
logger (28.04.2014 06:44:14): station 0 (Vantage), gettime request sent.
logger (28.04.2014 06:44:24): station 0 (Vantage), gettime request sent.
logger (28.04.2014 06:44:34): station 0 (Vantage), gettime request sent.
logger (28.04.2014 06:44:44): disconnect station 0 (Vantage): timeout
logger (28.04.2014 06:47:06): usb port resetted.
logger (28.04.2014 06:48:16): usb port resetted.

It's possible that it's an intermittent electrical connection on the USB lines where it attaches to the Davis console and that no amount of USB resets can fix it. But if so, why would unplugging and replugging the cable at the Meteobridge end reset things?

Thanks,
Mark

User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 5479
Joined: Mon Oct 01, 2007 10:51 pm

Re: USB Disconnect with Vantage Vue

Post by admin » Fri May 02, 2014 4:01 am

"usb port resetted" messages is done when Meteobridge is making USB controller power-less by a GPIO toggle.
Problem looks really strange. As I don't have similar reports like this for other vantages I think
it must be something with your setup. When you are using home-brew loggers, I would start looking
there.

With Meteostick (www.smartbedded.com/meteostick) you can directly receive RF from the Vantage sensors
and can make use of the logger by the PC in parallel.

marke190
Fresh Boarder
Fresh Boarder
Posts: 11
Joined: Sun Nov 24, 2013 9:39 pm

Re: USB Disconnect with Vantage Vue

Post by marke190 » Fri May 02, 2014 4:51 am

Can you tell me the duration of the GPIO toggle that leaves the USB without power? My manually unplugging and replugging the USB 2.0 Hub to Meteobridge cable is doing the same thing, though with a multi-second duration (and it fixes the problem). Is it possible that to fully reset the hub and the USB-to-serial converter, that a longer duration GPIO reset is needed?

I know that the fact that no one else reports this problem suggests that I have either a bad hub or a bad USB-to-serial cable. But now I'm curious why I can repair it manually by unplugging and replugging, and your GPIO reset usually doesn't work, except after many hours of attempts.

Thanks,
Mark

Post Reply