If it works on your old computer, but not the new, then there is something
wrong with the RS232 port on the new computer, or the driver that supports
it. Whatever it is, it is intermittent, as the computer is able to
occasionally communicate with  the console.

A few things to try:

1. If the computer has more than one RS232 port, try a different one.
2. Do you have a serial-to-usb converter? If so, you could use that instead.
3. Check dmesg, just to make sure the kernel isn't trying to tell you
something. Simply type "dmesg" and check the last 10-20 messages or so.
4. Perhaps your new computer has more RF noise than the old? You could try
some ferrite coils around the serial cable.
5. Finally, it is conceivable that your new computer has an odd default
configuration for serial ports. To see what it is using, try this:

*stty -a -F /dev/ttyS0*


(From the log, it looks like you're using /dev/ttyS0, but substitute as
necessary.)

Configuring serial ports is an ancient black art with its roots in the
1970s and I don't pretend to be an expert.


On Wed, Nov 25, 2020 at 7:24 PM kiwigander <amp0...@gmail.com> wrote:

>
> Hi all, I'm trying to move weewx to a new computer but getting nowhere
> fast.
>
> The weather station is a Vantage Pro2 with serial data logger (not USB)
> communicating with an RS232 port on my old Dell D520 running Linux Mint
> 17.  I'm shifting my server functions to a new fanless mini-PC with RS232
> ports.
>
> The old setup was installed around 2012 and I don't recall updating it
> (other than the OS) since.
>
> The new installation is weewx 4.2.0.  I tried the .deb package; when I
> couldn't get it working I purged it and tried again with the setup.py
> method and Python 3.  The file structure now looks rather like the old
> setup.
>
> Anyway, I can't get the new installation to work.  No html page is
> created.  Here is a snippet of output from dmesg:
>
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.drivers.vantage:
> Get_data_with_crc16; try #1 failed: Expected to read 3 chars; got 2 instead
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.drivers.vantage: Timeout in
> get_data_with_crc16
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.drivers.vantage: Gentle wake
> up of console successful
> Nov 26 15:56:23 XCY weewx[3380] ERROR weewx.drivers.vantage: No <ACK>
> received from console
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.drivers.vantage: Rude wake up
> of console successful
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.drivers.vantage: ISS ID is 1
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.drivers.vantage: Hardware
> name: Vantage Pro2
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service
> weewx.engine.StdTimeSynch
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading
> service weewx.engine.StdTimeSynch
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service
> weewx.engine.StdConvert
> Nov 26 15:56:23 XCY weewx[3380] INFO weewx.engine: StdConvert target unit
> is 0x1
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading
> service weewx.engine.StdConvert
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service
> weewx.engine.StdCalibrate
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading
> service weewx.engine.StdCalibrate
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service
> weewx.engine.StdQC
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading
> service weewx.engine.StdQC
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service
> weewx.wxservices.StdWXCalculate
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.manager: Daily summary version
> is 2
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading
> service weewx.wxservices.StdWXCalculate
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service
> weewx.wxxtypes.StdWXXTypes
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading
> service weewx.wxxtypes.StdWXXTypes
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service
> weewx.wxxtypes.StdPressureCooker
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading
> service weewx.wxxtypes.StdPressureCooker
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service
> weewx.wxxtypes.StdRainRater
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading
> service weewx.wxxtypes.StdRainRater
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service
> weewx.engine.StdArchive
> Nov 26 15:56:23 XCY weewx[3380] INFO weewx.engine: Archive will use data
> binding wx_binding
> Nov 26 15:56:23 XCY weewx[3380] INFO weewx.engine: Record generation will
> be attempted in 'hardware'
> Nov 26 15:56:23 XCY weewx[3380] ERROR weewx.engine: The archive interval
> in the configuration file (300) does not match the station hardware
> interval (60).
> Nov 26 15:56:23 XCY weewx[3380] INFO weewx.engine: Using archive interval
> of 60 seconds (specified by hardware)
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Use LOOP data in
> hi/low calculations: 1
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading
> service weewx.engine.StdArchive
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service
> weewx.restx.StdStationRegistry
> Nov 26 15:56:23 XCY weewx[3380] INFO weewx.restx: StationRegistry:
> Registration not requested.
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading
> service weewx.restx.StdStationRegistry
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service
> weewx.restx.StdWunderground
> Nov 26 15:56:23 XCY weewx[3380] INFO weewx.restx: Wunderground: Posting
> not enabled.
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading
> service weewx.restx.StdWunderground
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service
> weewx.restx.StdPWSweather
> Nov 26 15:56:23 XCY weewx[3380] INFO weewx.restx: PWSweather: Posting not
> enabled.
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading
> service weewx.restx.StdPWSweather
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service
> weewx.restx.StdCWOP
> Nov 26 15:56:23 XCY weewx[3380] INFO weewx.restx: CWOP: Posting not
> enabled.
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading
> service weewx.restx.StdCWOP
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service
> weewx.restx.StdWOW
> Nov 26 15:56:23 XCY weewx[3380] INFO weewx.restx: WOW: Posting not enabled.
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading
> service weewx.restx.StdWOW
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service
> weewx.restx.StdAWEKAS
> Nov 26 15:56:23 XCY weewx[3380] INFO weewx.restx: AWEKAS: Posting not
> enabled.
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading
> service weewx.restx.StdAWEKAS
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service
> weewx.engine.StdPrint
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading
> service weewx.engine.StdPrint
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Loading service
> weewx.engine.StdReport
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.engine: Finished loading
> service weewx.engine.StdReport
> Nov 26 15:56:23 XCY weewx[3380] INFO __main__: Starting up weewx version
> 4.2.0
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.drivers.vantage: Gentle wake
> up of console successful
> Nov 26 15:56:23 XCY weewx[3380] INFO weewx.engine: Clock error is -0.95
> seconds (positive is fast)
> Nov 26 15:56:23 XCY weewx[3380] INFO weewx.engine: Using binding
> 'wx_binding' to database 'weewx.sdb'
> Nov 26 15:56:23 XCY weewx[3380] INFO weewx.manager: Starting backfill of
> daily summaries
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.drivers.vantage: Getting all
> archive packets
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.drivers.vantage: Gentle wake
> up of console successful
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.drivers.vantage:
> send_data_with_crc16; try #1
> Nov 26 15:56:23 XCY weewx[3380] ERROR weewx.drivers.vantage: Unable to
> pass CRC16 check while sending data
> Nov 26 15:56:23 XCY weewx[3380] ERROR weewx.drivers.vantage: DMPAFT try
> #1; error: Unable to pass CRC16 check while sending data to Vantage console
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.drivers.vantage: Getting all
> archive packets
> Nov 26 15:56:23 XCY weewx[3380] DEBUG weewx.drivers.vantage: Rude wake up
> of console successful
> Nov 26 15:56:24 XCY weewx[3380] DEBUG weewx.drivers.vantage: Retrieving
> 513 page(s); starting index= 2
> Nov 26 15:56:28 XCY weewx[3380] DEBUG weewx.drivers.vantage:
> Get_data_with_crc16; try #1 failed: Expected to read 267 chars; got 241
> instead
> Nov 26 15:56:28 XCY weewx[3380] DEBUG weewx.drivers.vantage: Timeout in
> get_data_with_crc16
> Nov 26 15:56:28 XCY weewx[3380] ERROR weewx.drivers.vantage: DMPAFT try
> #2; error: Timeout in get_data_with_crc16
> Nov 26 15:56:28 XCY weewx[3380] DEBUG weewx.drivers.vantage: Getting all
> archive packets
> Nov 26 15:56:28 XCY weewx[3380] DEBUG weewx.drivers.vantage: Gentle wake
> up of console successful
> Nov 26 15:56:28 XCY weewx[3380] DEBUG weewx.drivers.vantage:
> send_data_with_crc16; try #1
> Nov 26 15:56:28 XCY weewx[3380] ERROR weewx.drivers.vantage: Unable to
> pass CRC16 check while sending data
> Nov 26 15:56:28 XCY weewx[3380] ERROR weewx.drivers.vantage: DMPAFT try
> #3; error: Unable to pass CRC16 check while sending data to Vantage console
> Nov 26 15:56:28 XCY weewx[3380] DEBUG weewx.drivers.vantage: Getting all
> archive packets
> Nov 26 15:56:28 XCY weewx[3380] DEBUG weewx.drivers.vantage: Gentle wake
> up of console successful
> Nov 26 15:56:28 XCY weewx[3380] ERROR weewx.drivers.vantage: No <ACK>
> received from console
> Nov 26 15:56:28 XCY weewx[3380] ERROR weewx.drivers.vantage: DMPAFT try
> #4; error: No <ACK> received from Vantage console
> Nov 26 15:56:28 XCY weewx[3380] ERROR weewx.drivers.vantage: DMPAFT max
> tries (4) exceeded.
> Nov 26 15:56:28 XCY weewx[3380] INFO weewx.engine: Main loop exiting.
> Shutting engine down.
> Nov 26 15:56:28 XCY weewx[3380] CRITICAL __main__: Caught WeeWxIOError:
> Max tries exceeded while getting archive data.
> Nov 26 15:56:28 XCY weewx[3380] CRITICAL __main__:     ****  Waiting 60
> seconds then retrying...
> Nov 26 15:57:28 XCY weewx[3380] INFO __main__: retrying...
> Nov 26 15:57:28 XCY weewx[3380] INFO __main__: Using configuration file
> /home/weewx/weewx.conf
> Nov 26 15:57:28 XCY weewx[3380] INFO __main__: Debug is 1
> Nov 26 15:57:28 XCY weewx[3380] DEBUG __main__: Initializing engine
> Nov 26 15:57:28 XCY weewx[3380] INFO weewx.engine: Loading station type
> Vantage (weewx.drivers.vantage)
> Nov 26 15:57:28 XCY weewx[3380] DEBUG weewx.drivers.vantage: Driver
> version is 3.2.1
> Nov 26 15:57:28 XCY weewx[3380] DEBUG weewx.drivers.vantage: Option
> loop_request=1
> Nov 26 15:57:28 XCY weewx[3380] DEBUG weewx.drivers.vantage: Opened up
> serial port /dev/ttyS0; baud 19200; timeout 4.00
> Nov 26 15:57:28 XCY weewx[3380] DEBUG weewx.drivers.vantage: Gentle wake
> up of console successful
> Nov 26 15:57:28 XCY weewx[3380] DEBUG weewx.drivers.vantage: Hardware type
> is 240
> Nov 26 15:57:28 XCY weewx[3380] DEBUG weewx.drivers.vantage: ISS ID is 1
> Nov 26 15:57:28 XCY weewx[3380] ERROR weewx.engine: Import of driver
> failed: Unknown hardware type 240 (<class 'weewx.UnsupportedFeature'>)
> Nov 26 15:57:28 XCY weewx[3380] CRITICAL weewx.engine:     ****  Traceback
> (most recent call last):
> Nov 26 15:57:28 XCY weewx[3380] CRITICAL weewx.engine:     ****    File
> "/home/weewx/bin/weewx/engine.py", line 109, in setupStation
> Nov 26 15:57:28 XCY weewx[3380] CRITICAL weewx.engine:     ****
> self.console = loader_function(config_dict, self)
> Nov 26 15:57:28 XCY weewx[3380] CRITICAL weewx.engine:     ****    File
> "/home/weewx/bin/weewx/drivers/vantage.py", line 39, in loader
> Nov 26 15:57:28 XCY weewx[3380] CRITICAL weewx.engine:     ****
> return VantageService(engine, config_dict)
> Nov 26 15:57:28 XCY weewx[3380] CRITICAL weewx.engine:     ****    File
> "/home/weewx/bin/weewx/drivers/vantage.py", line 1898, in __init__
> Nov 26 15:57:28 XCY weewx[3380] CRITICAL weewx.engine:     ****
> Vantage.__init__(self, **config_dict[DRIVER_NAME])
> Nov 26 15:57:28 XCY weewx[3380] CRITICAL weewx.engine:     ****    File
> "/home/weewx/bin/weewx/drivers/vantage.py", line 516, in __init__
> Nov 26 15:57:28 XCY weewx[3380] CRITICAL weewx.engine:     ****
> log.debug("Hardware name: %s", self.hardware_name)
> Nov 26 15:57:28 XCY weewx[3380] CRITICAL weewx.engine:     ****    File
> "/home/weewx/bin/weewx/drivers/vantage.py", line 1293, in hardware_name
> Nov 26 15:57:28 XCY weewx[3380] CRITICAL weewx.engine:     ****      raise
> weewx.UnsupportedFeature("Unknown hardware type %d" % self.hardware_type)
> Nov 26 15:57:28 XCY weewx[3380] CRITICAL weewx.engine:     ****
> weewx.UnsupportedFeature: Unknown hardware type 240
> Nov 26 15:57:28 XCY weewx[3380] CRITICAL __main__: Unable to load driver:
> Unknown hardware type 240
> Nov 26 15:57:28 XCY weewx[3380] CRITICAL __main__:     ****  Exiting...
>
> I have confirmed that I'm using the correct RS232 serial port on the new
> server.
>
> If I remove the serial cable from the new computer and plug it back into
> the old one, the web page updates and continues to update, so the console
> appears to be happy.
>
> I note also that on the new system there is *no* /home/weewx/public_html
> folder.  But otherwise the file structure looks OK to this non-programmer.
>
> I'll be most grateful for a solution or at least a way forward.
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/181faebf-141d-43cd-937d-2b6f64dae524n%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/181faebf-141d-43cd-937d-2b6f64dae524n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEB5eqRC%3Dnm2Acnk%3D8tmjiAQ7FVrwTTWp64gf4bYa-CuRA%40mail.gmail.com.

Reply via email to