Well the problem happened again last night after running for two days.
Here is the syslog entries around the time when it happened.
Jan 27 22:45:21 dell weewx[24627]: restful: Skipped record 2011-01-27
22:45:00 MST (1296193500) to CWOP station DW6375
Jan 27 22:45:21 dell weewx[24627]: **** CWOP: Wait interval (600)
has not passed.
Jan 27 22:50:04 dell weewx[24627]: VantagePro: LOOP #144; buffer not
full (0)... retrying
Jan 27 22:50:04 dell weewx[24627]: last message repeated 3 times
Jan 27 22:50:04 dell weewx[24627]: VantagePro: Max retries exceeded
while getting LOOP packets
Jan 27 22:50:04 dell kernel: [531982.984038] hub 6-0:1.0: port 2
disabled by hub (EMI?), re-enabling...
Jan 27 22:50:04 dell kernel: [531982.984043] usb 6-2: USB disconnect,
address 12
Jan 27 22:50:04 dell kernel: [531982.984219] cp210x ttyUSB0: cp210x
converter now disconnected from ttyUSB0
Jan 27 22:50:04 dell kernel: [531982.984232] cp210x 6-2:1.0: device
disconnected
Jan 27 22:50:04 dell weewx[24627]: Shut down RESTful thread.
Jan 27 22:50:04 dell weewx[24627]: Shut down StdReportService thread.
Jan 27 22:50:04 dell weewx[24627]: wxengine: Caught WeeWxIOError:
While getting LOOP packets
Jan 27 22:50:04 dell weewx[24627]: **** Waiting 60 seconds then
retrying...
Jan 27 22:50:04 dell kernel: [531983.224014] usb 6-2: new full speed
USB device using uhci_hcd and address 13
Jan 27 22:50:04 dell kernel: [531983.388360] usb 6-2: configuration #1
chosen from 1 choice
Jan 27 22:50:04 dell kernel: [531983.394291] cp210x 6-2:1.0: cp210x
converter detected
Jan 27 22:50:04 dell kernel: [531983.505013] usb 6-2: reset full speed
USB device using uhci_hcd and address 13
Jan 27 22:50:05 dell kernel: [531983.656386] usb 6-2: cp210x converter
now attached to ttyUSB1
Jan 27 22:51:04 dell weewx[24627]: wxengine: retrying...
Jan 27 22:51:04 dell weewx[24627]: wxengine: Using configuration file /
extra/weewx/weewx-1.9.2/weewx.conf.
Jan 27 22:51:04 dell weewx[24627]: VantagePro: successfully woke up
console
Jan 27 22:51:05 dell weewx[24627]: VantagePro: successfully woke up
console
Jan 27 22:51:05 dell weewx[24627]: wxengine: List of services to be
run:
Jan 27 22:51:05 dell weewx[24627]: ****
weewx.wxengine.StdCalibrate
Jan 27 22:51:05 dell weewx[24627]: **** weewx.wxengine.StdQC
Jan 27 22:51:05 dell weewx[24627]: archive: archive database /extra/
weewx/weewx-1.9.2/archive/weewx.sdb already exists.
Jan 27 22:51:05 dell weewx[24627]: stats: statistical database /extra/
weewx/weewx-1.9.2/archive/stats.sdb already exists.
Jan 27 22:51:05 dell weewx[24627]: stats: stats database up to date.
Jan 27 22:51:05 dell weewx[24627]: **** weewx.wxengine.StdArchive
Jan 27 22:51:05 dell weewx[24627]: ****
weewx.wxengine.StdTimeSynch
Jan 27 22:51:05 dell weewx[24627]: **** weewx.wxengine.StdPrint
Jan 27 22:51:05 dell weewx[24627]: wxengine: Data will be posted to
Wunderground
Jan 27 22:51:05 dell weewx[24627]: wxengine: Data will be posted to
PWSweather
Jan 27 22:51:05 dell weewx[24627]: wxengine: Data will be posted to
CWOP
Jan 27 22:51:05 dell weewx[24627]: wxengine: Started thread for
RESTful upload sites.
Jan 27 22:51:05 dell weewx[24627]: **** weewx.wxengine.StdRESTful
Jan 27 22:51:05 dell weewx[24627]: ****
weewx.wxengine.StdReportService
Jan 27 22:51:05 dell weewx[24627]: VantagePro: Getting archive packets
since 2011-01-27 22:45:00 MST (1296193500)
Jan 27 22:51:05 dell weewx[24627]: VantagePro: successfully woke up
console
Jan 27 22:51:06 dell weewx[24627]: VantagePro: <blp> Retrieving 356
page(s); starting index= 0
Jan 27 22:51:06 dell weewx[24627]: VantagePro: page never used exit
Jan 27 22:51:06 dell weewx[24627]: VantagePro: successfully woke up
console
Jan 27 22:51:06 dell weewx[24627]: wxengine: Starting main packet
loop.
Jan 27 22:51:07 dell weewx[24627]: VantagePro: successfully woke up
console
Jan 27 22:51:07 dell weewx[24627]: VantagePro: successfully woke up
console
Jan 27 22:51:07 dell weewx[24627]: VantagePro: Clock error is -1.67
seconds (positive is fast)
Jan 27 22:51:07 dell weewx[24627]: VantagePro: Requesting 200 LOOP
packets.
Jan 27 22:51:08 dell weewx[24627]: VantagePro: successfully woke up
console
Jan 27 22:55:16 dell weewx[24627]: VantagePro: new archive record due.
Canceling loop
Jan 27 22:55:17 dell weewx[24627]: VantagePro: successfully woke up
console
Jan 27 22:55:17 dell weewx[24627]: VantagePro: Getting archive packets
since 2011-01-27 22:45:00 MST (1296193500)
Jan 27 22:55:17 dell weewx[24627]: VantagePro: successfully woke up
console
Jan 27 22:55:17 dell weewx[24627]: VantagePro: <blp> Retrieving 356
page(s); starting index= 0
Jan 27 22:55:17 dell weewx[24627]: VantagePro: page never used exit
Jan 27 22:55:18 dell weewx[24627]: VantagePro: successfully woke up
console
Jan 27 22:55:18 dell weewx[24627]: reportengine: Running reports for
latest time in the database.
Jan 27 22:55:18 dell weewx[24627]: VantagePro: Requesting 200 LOOP
packets.
Jan 27 22:55:18 dell weewx[24627]: reportengine: Running report
StandardReport
Jan 27 22:55:18 dell weewx[24627]: reportengine: Found configuration
file /extra/weewx/weewx-1.9.2/skins/Standard/skin.conf for report
StandardReport
As you can see an EMI event happened at Jan 27 22:50:04. I have the
udev script that symlinks to vpro.
It looks like even though the USB port changed to ttyUSB1 the udev
script kept the vpro symlink correct and weewx restart OK -- but the
archive data is always all 0xff's as the new line I added (<blp>)
shows:
Jan 27 22:51:05 dell weewx[24627]: VantagePro: Getting archive packets
since 2011-01-27 22:45:00 MST (1296193500)
Jan 27 22:51:05 dell weewx[24627]: VantagePro: successfully woke up
console
Jan 27 22:51:06 dell weewx[24627]: VantagePro: <blp> Retrieving 356
page(s); starting index= 0
Jan 27 22:51:06 dell weewx[24627]: VantagePro: page never used exit
Jan 27 22:51:06 dell weewx[24627]: VantagePro: successfully woke up
console
I think I am going to have Davis swap out my USB-data-logger and I
will also try to find some fetus beads for my USB cable. It may be
that this data logger is just very very sensitive to EMI flashes.
Any other ideas?
On Jan 27, 9:44 am, Thomas Keffer <
tkef...@gmail.com> wrote:
> That sounds pretty reasonable. The only thing you have to be careful of is
> that you only have 2 seconds until the next LOOP data is due. So, it's best
> that the rapidfire posts happen in a separate thread. If you choose to
> extend the RESTful service, this is already done for you so you're good
> there. Should you choose to write your own service (like StdPrint), you'll
> have to create your own thread.
>
> It may also be necessary to have some "catchup" logic should the net
> connection go down for an extended period of time and clog the queue. You'll
> probably want to inspect the queue every once in a while and make sure there
> aren't hundreds of backed up posts in it!
>
> Finally: just a word of warning, this part of weewx is very likely to change
> in V2. No reason not to experiment, and it could be a l-o-n-g time before I
> get to it (!), but be prepared to adapt your code to a new architecture.
>
> Have fun! This is exactly the kind of experimentation I was hoping to
> encourage by doing an open, extensible system like weewx!
>
> -tk
>
> >
weewx-user+...@googlegroups.com<
weewx-user%2Bunsu...@googlegroups.com>
> > .