**** Expected to read 99 chars; got 0 instead

1,329 views
Skip to first unread message

Clive

unread,
Jul 18, 2013, 5:27:23 PM7/18/13
to weewx...@googlegroups.com
I know this has been discussed before in other threads and I have tried the suggestions offered but so far I have had no luck in solving this.

The station had been logging fine with the Raspberry Pi and all of a sudden its started throwing these errors.  I've just powered down the entire station and console, for an hour and turned it all back on. (Removed solar panel, backup batteries etc) 

Jul 18 22:08:05 raspberrypi weewx[4235]: VantagePro: LOOP #1; read error. Try #1
Jul 18 22:08:05 raspberrypi weewx[4235]:       ****  Expected to read 99 chars; got 0 instead
Jul 18 22:08:15 raspberrypi weewx[4235]: VantagePro: LOOP #1; read error. Try #1
Jul 18 22:08:15 raspberrypi weewx[4235]:       ****  Expected to read 99 chars; got 0 instead
Jul 18 22:08:21 raspberrypi weewx[4235]: VantagePro: LOOP #1; read error. Try #1
Jul 18 22:08:21 raspberrypi weewx[4235]:       ****  Expected to read 99 chars; got 0 instead


I’ve had power issues on the IIS itself, basically some vandals smashed the solar panel and damaged the antenna.  I'm trying to solve these issues but now I'm having comms issues between the console and the Pi.  Could these two issues be related? 

Its reporting a temperature of -73.3°C to Wunderground :/

Anyone any ideas, as I'm at a loss ????


Clive

unread,
Jul 18, 2013, 5:37:19 PM7/18/13
to weewx...@googlegroups.com
In further, the Pi is gathering the data from the console as WeeWX is reporting the Barometer and Inside Temperature fine.


Thomas Keffer

unread,
Jul 19, 2013, 8:08:48 PM7/19/13
to weewx-user
As you have already figured out, the read errors are a problem between the RPi and the console, and have nothing to do with the ISS.

It looks like weewx is recovering from the errors. However, there does seem to be a lot of them if the little log snippet you included is representative. 

Usually these errors are caused by the USB connection. Are you using a Serial to USB converter? I know it was working properly before, but it's worth trying some others.

Also ferrite coils can help.

As for the weird WU temperature, that could well be a problem with the ISS. What is the console showing? Try selecting MIN on the console and see if it too shows -73.3C.

-tk



On Thu, Jul 18, 2013 at 2:37 PM, Clive <cli...@gmail.com> wrote:
In further, the Pi is gathering the data from the console as WeeWX is reporting the Barometer and Inside Temperature fine.



--
You received this message because you are subscribed to the Google Groups "Weewx user's group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Tom Keffer
kef...@threefools.org
+1 541-386-8891 (h)
+1 541-490-9507 (c)
Skype: tkeffer

Franklin Bockstael

unread,
Mar 25, 2015, 6:16:01 AM3/25/15
to weewx...@googlegroups.com
Sorry for opening an old thread, but yesterday I had the same experience.
I installed a fresh copy of weewx and started from point zero.
I found out that weewx changed a bit in two years ;-)
But after all O succeeded in installing weewx and motion the way it should.
I started my pi without problem and the data started downloading from my DVP2 console.

But after a while I discovered the above problem. Could it be that my cable broke just at the moment I installed a new copy of weewx? I could not believe that and reinserted the SD-card with the two year old version of weewx. Everything went just fine without any errors.
So in my case it is not the cable but somehow or somewhere a misconfiguration of raspbian or weewx.

What can I do to find out what causes this problem?
I have to say that the old SD-card was a normal size SD-card and the new one was a micro-SD with adapter. Could this be the problem? 


Op zaterdag 20 juli 2013 02:08:48 UTC+2 schreef Thomas Keffer:

Thomas Keffer

unread,
Mar 27, 2015, 9:27:31 AM3/27/15
to weewx...@googlegroups.com
Impossible to say without seeing the log.

-tk
Message has been deleted

Stefan

unread,
Feb 24, 2020, 1:53:47 AM2/24/20
to weewx-user
Hello.

I have this Problem

Feb 24 07:45:19 raspberrypi systemd[1]: Starting LSB: weewx weather system...
Feb 24 07:45:20 raspberrypi weewx[669]: engine: Initializing weewx version 3.9.2
Feb 24 07:45:20 raspberrypi weewx[669]: engine: Using Python 2.7.16 (default, Oct 10 2019, 22:02:15) #012[GCC 8.3.0]
Feb 24 07:45:20 raspberrypi weewx[669]: engine: Platform Linux-4.19.97-v7+-armv7l-with-debian-10.3
Feb 24 07:45:20 raspberrypi weewx[669]: engine: Locale is 'de_CH.UTF-8'
Feb 24 07:45:20 raspberrypi weewx[669]: engine: pid file is /var/run/weewx.pid
Feb 24 07:45:20 raspberrypi weewx[658]: Starting weewx weather system: weewx.
Feb 24 07:45:20 raspberrypi systemd[1]: Started LSB: weewx weather system.
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Using configuration file /etc/weewx/weewx.conf
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Debug is 1
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Initializing engine
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Loading station type Vantage (weewx.drivers.vantage)
Feb 24 07:45:20 raspberrypi weewx[673]: vantage: Driver version is 3.1.1
Feb 24 07:45:20 raspberrypi weewx[673]: vantage: Opened up serial port /dev/ttyUSB0; baud 19200; timeout 4.00
Feb 24 07:45:20 raspberrypi weewx[673]: vantage: Gentle wake up of console successful
Feb 24 07:45:20 raspberrypi weewx[673]: vantage: Hardware type is 16
Feb 24 07:45:20 raspberrypi weewx[673]: vantage: ISS ID is 1
Feb 24 07:45:20 raspberrypi weewx[673]: vantage: Hardware name: Vantage Pro2
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Loading service weewx.engine.StdTimeSynch
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Finished loading service weewx.engine.StdTimeSynch
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Loading service weewx.engine.StdConvert
Feb 24 07:45:20 raspberrypi weewx[673]: engine: StdConvert target unit is 0x1
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Finished loading service weewx.engine.StdConvert
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Loading service weewx.engine.StdCalibrate
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Finished loading service weewx.engine.StdCalibrate
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Loading service weewx.engine.StdQC
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Finished loading service weewx.engine.StdQC
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Loading service weewx.wxservices.StdWXCalculate
Feb 24 07:45:20 raspberrypi weewx[673]: wxcalculate: The following values will be calculated: barometer=prefer_hardware, windchill=prefer_hardware, dewpoint=prefer_hardware, appTemp=prefer_hardware, rainRate=prefer_hardware, windrun=prefer_hardware, heatindex=prefer_hardware, maxSolarRad=prefer_hardware, humidex=prefer_hardware, pressure=prefer_hardware, inDewpoint=prefer_hardware, ET=prefer_hardware, altimeter=prefer_hardware, cloudbase=prefer_hardware
Feb 24 07:45:20 raspberrypi weewx[673]: wxcalculate: The following algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Finished loading service weewx.wxservices.StdWXCalculate
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Loading service user.radiationhours.RadiationHours
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Finished loading service user.radiationhours.RadiationHours
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Loading service weewx.engine.StdArchive
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Archive will use data binding wx_binding
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Record generation will be attempted in 'hardware'
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Using archive interval of 300 seconds (specified by hardware)
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Use LOOP data in hi/low calculations: 1
Feb 24 07:45:20 raspberrypi weewx[673]: manager: Daily summary version is 2.0
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Using binding 'wx_binding' to database 'weewx.sdb_new'
Feb 24 07:45:20 raspberrypi weewx[673]: manager: Starting backfill of daily summaries
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Finished loading service weewx.engine.StdArchive
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Loading service weewx.restx.StdStationRegistry
Feb 24 07:45:20 raspberrypi weewx[673]: restx: StationRegistry: Registration not requested.
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Finished loading service weewx.restx.StdStationRegistry
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Loading service weewx.restx.StdWunderground
Feb 24 07:45:20 raspberrypi weewx[673]: restx: Wunderground: Posting not enabled.
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Finished loading service weewx.restx.StdWunderground
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Loading service weewx.restx.StdPWSweather
Feb 24 07:45:20 raspberrypi weewx[673]: restx: PWSweather: Posting not enabled.
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Finished loading service weewx.restx.StdPWSweather
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Loading service weewx.restx.StdCWOP
Feb 24 07:45:20 raspberrypi weewx[673]: restx: CWOP: Posting not enabled.
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Finished loading service weewx.restx.StdCWOP
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Loading service weewx.restx.StdWOW
Feb 24 07:45:20 raspberrypi weewx[673]: restx: WOW: Posting not enabled.
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Finished loading service weewx.restx.StdWOW
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Loading service weewx.restx.StdAWEKAS
Feb 24 07:45:20 raspberrypi weewx[673]: restx: AWEKAS: Posting not enabled.
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Finished loading service weewx.restx.StdAWEKAS
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Loading service user.mqtt.MQTT
Feb 24 07:45:20 raspberrypi weewx[673]: restx: MQTT: service version is 0.19
Feb 24 07:45:20 raspberrypi weewx[673]: restx: MQTT: binding to ['archive', 'loop']
Feb 24 07:45:20 raspberrypi weewx[673]: restx: MQTT: topic is weather/mittelallalin
Feb 24 07:45:20 raspberrypi weewx[673]: restx: MQTT: desired unit system is METRIC
Feb 24 07:45:20 raspberrypi weewx[673]: restx: MQTT: data will be uploaded to xyz
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Finished loading service user.mqtt.MQTT
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Loading service weewx.engine.StdPrint
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Finished loading service weewx.engine.StdPrint
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Loading service weewx.engine.StdReport
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Finished loading service weewx.engine.StdReport
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Starting up weewx version 3.9.2
Feb 24 07:45:20 raspberrypi weewx[673]: vantage: Gentle wake up of console successful
Feb 24 07:45:20 raspberrypi weewx[673]: manager: Daily summary version is 2.0
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Clock error is -1.66 seconds (positive is fast)
Feb 24 07:45:20 raspberrypi weewx[673]: vantage: Getting all archive packets
Feb 24 07:45:20 raspberrypi weewx[673]: vantage: Gentle wake up of console successful
Feb 24 07:45:20 raspberrypi weewx[673]: vantage: Retrieving 0 page(s); starting index= 0
Feb 24 07:45:20 raspberrypi weewx[673]: engine: Starting main packet loop.
Feb 24 07:45:20 raspberrypi weewx[673]: vantage: Gentle wake up of console successful
Feb 24 07:45:20 raspberrypi weewx[673]: vantage: Requesting 200 LOOP packets.
Feb 24 07:45:20 raspberrypi weewx[673]: vantage: Gentle wake up of console successful
Feb 24 07:45:20 raspberrypi weewx[673]: restx: MQTT: Published record 2020-02-24 07:45:21 CET (1582526721)
Feb 24 07:45:24 raspberrypi weewx[673]: vantage: LOOP try #1; error: Expected to read 99 chars; got 0 instead
Feb 24 07:45:24 raspberrypi weewx[673]: vantage: Requesting 200 LOOP packets.
Feb 24 07:45:24 raspberrypi weewx[673]: vantage: Gentle wake up of console successful
Feb 24 07:45:25 raspberrypi weewx[673]: restx: MQTT: Published record 2020-02-24 07:45:25 CET (1582526725)
Feb 24 07:45:28 raspberrypi weewx[673]: vantage: LOOP try #2; error: Expected to read 99 chars; got 0 instead
Feb 24 07:45:28 raspberrypi weewx[673]: vantage: Requesting 200 LOOP packets.
Feb 24 07:45:28 raspberrypi weewx[673]: vantage: Gentle wake up of console successful
Feb 24 07:45:29 raspberrypi weewx[673]: restx: MQTT: Published record 2020-02-24 07:45:29 CET (1582526729)
Feb 24 07:45:33 raspberrypi weewx[673]: vantage: LOOP try #3; error: Expected to read 99 chars; got 0 instead
Feb 24 07:45:33 raspberrypi weewx[673]: vantage: Requesting 200 LOOP packets.
Feb 24 07:45:33 raspberrypi weewx[673]: vantage: Gentle wake up of console successful
Feb 24 07:45:33 raspberrypi weewx[673]: restx: MQTT: Published record 2020-02-24 07:45:33 CET (1582526733)
Feb 24 07:45:37 raspberrypi weewx[673]: vantage: LOOP try #4; error: Expected to read 99 chars; got 0 instead
Feb 24 07:45:37 raspberrypi weewx[673]: vantage: LOOP max tries (4) exceeded.
Feb 24 07:45:37 raspberrypi weewx[673]: engine: Main loop exiting. Shutting engine down.
Feb 24 07:45:37 raspberrypi weewx[673]: restx: Shut down MQTT thread.
Feb 24 07:45:37 raspberrypi weewx[673]: engine: Caught WeeWxIOError: Max tries exceeded while getting LOOP data.
Feb 24 07:45:37 raspberrypi weewx[673]:     ****  Waiting 60 seconds then retrying...

I have the Datalogger clear, weewx restart, nothig help! Can i Help me? The connestion to the Console works, Time its wright. With command wee_device --info i can see the Data on the Console. The MQTT can sometimes read data, but is then repeatedly interrupted.

Thomas Keffer

unread,
Feb 24, 2020, 7:47:12 AM2/24/20
to weewx-user
Hello, Stefan

1. Has your station every worked? Or, has it always been like this?

2. Could we see the output of wee_device --info?

3. Try reseat your logger: pull it out, then put it back in.

4. Also, check your USB connection. Make sure it is fully seated.

-tk


Feb 24 07:45:20 raspberrypi weewx[673]: restx: MQTT: data will be uploaded to mqtt://mosquitto:x...@steffi1986.internet-box.ch:1883/

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.

To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.

Meteo Oberwallis

unread,
Feb 24, 2020, 11:26:21 AM2/24/20
to weewx-user
Hey Thomas

1. Yes the station ran flawlessly. Suddenly it started with this mistake
2. Yes see all data on the console
3. I still have to test
4. Connection is OK

To unsubscribe from this group and stop receiving emails from it, send an email to weewx...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages