Re: [weewx-user] Re: Can't get weewx working on a new server

2020-12-13 Thread vince
On Sunday, December 13, 2020 at 12:46:22 AM UTC-8 kiwigander wrote: > So it's back to /dev/ttyUSB0 via the converter, which is working as well > on the XCY as on the old Dell. > > There's a point in time where the value of your time exceeds the value of the adventure of figuring out why the se

Re: [weewx-user] Re: Can't get weewx working on a new server

2020-12-13 Thread kiwigander
I spoke (wrote) too soon. Weewx *seemed* to be working on the XCY through /dev/ttyS1 after modemmanager was purged, but it stopped working. It looks as if it was still struggling with CRC check errors. I thought the fault might have been (re-)triggered by an update to some Mint system files an

Re: [weewx-user] Re: Can't get weewx working on a new server

2020-12-12 Thread p q
copy the database file from the old machine to the new one. On Sat, Dec 12, 2020 at 5:24 PM kiwigander wrote: > And for the final test before giving up on the XCY mini-PC, I ran *sudo > apt purge modemmanager* > > and now weewx is working through /dev/ttyS1 on the XCY mini-PC. > > Some corollary

Re: [weewx-user] Re: Can't get weewx working on a new server

2020-12-12 Thread kiwigander
And for the final test before giving up on the XCY mini-PC, I ran *sudo apt purge modemmanager* and now weewx is working through /dev/ttyS1 on the XCY mini-PC. Some corollary of Murphy's Law says that if a problem is going to be solved, it will be solved by a simple manoeuvre that you ran out

Re: [weewx-user] Re: Can't get weewx working on a new server

2020-12-12 Thread Tom Keffer
Sounds like our analysis was spot on. At least you know what the problem is now! On Sat, Dec 12, 2020 at 2:55 PM kiwigander wrote: > Progress report: > I've got a Unitek BF-810Y USB<=>RS232 converter. Plugged it in to the old > Dell; it was recognised as a pl2303 converter on ttyUSB0. Changed t

Re: [weewx-user] Re: Can't get weewx working on a new server

2020-12-12 Thread kiwigander
Progress report: I've got a Unitek BF-810Y USB<=>RS232 converter. Plugged it in to the old Dell; it was recognised as a pl2303 converter on ttyUSB0. Changed the relevant line in weewx.conf, restarted the daemon and we're in business. I'll have a last go at the RS232 ports on the XCY mini PC but

Re: [weewx-user] Re: Can't get weewx working on a new server

2020-11-27 Thread kiwigander
Thanks again for the advice and suggestions. I've used *stty* to see how the ever-reliable RS232 port is configured on the old server and will try setting the new one to mimic it. I'll try purging modemmanager from the new server. Assuming, though, that the problem is defective hardware, the

Re: [weewx-user] Re: Can't get weewx working on a new server

2020-11-27 Thread Tom Keffer
Good point. I've had problems with modemmanager doing this. *sudo apt purge modemmanager* On Fri, Nov 27, 2020 at 5:57 AM Cameron D wrote: > Have you checked that there is not any form of getty running on the port - > they wait for logins and will steal some of the input characters. > > That

Re: [weewx-user] Re: Can't get weewx working on a new server

2020-11-27 Thread Cameron D
Have you checked that there is not any form of getty running on the port - they wait for logins and will steal some of the input characters. That's rather old school - I don't know how systemd does it. On Friday, 27 November 2020 at 11:00:27 pm UTC+10 tke...@gmail.com wrote: > I think we can s

Re: [weewx-user] Re: Can't get weewx working on a new server

2020-11-27 Thread Tom Keffer
I think we can say with some confidence that there is something wrong with the UART chip on your new computer. Can you take it back? Alternatively, as Vince says, a serial-to-usb converter. They seem to be more reliable these days. -tk On Thu, Nov 26, 2020 at 8:47 PM kiwigander wrote: > Ta. T

Re: [weewx-user] Re: Can't get weewx working on a new server

2020-11-26 Thread kiwigander
Ta. The prevalent RS232<=>USB chipset around these parts seems to be an FTDI. I'll look around. On Friday, November 27, 2020 at 4:19:32 PM UTC+13 vince wrote: > I was hoping to avoid USB<=>RS232 converters, as I understood they were >> problematic (in the past) and would add another thing-t

Re: [weewx-user] Re: Can't get weewx working on a new server

2020-11-26 Thread vince
> I was hoping to avoid USB<=>RS232 converters, as I understood they were > problematic (in the past) and would add another thing-to-go-wrong. I have > one other old device to monitor and it too has only an RS232 interface. > Thought I'd be clever and get a low power box with two RS232 ports

Re: [weewx-user] Re: Can't get weewx working on a new server

2020-11-26 Thread kiwigander
Thank you. No joy with ttyS1 either (and yes, I did change the setting in weewx.conf!). Still using ttyS1, I tried *stty sane -F /dev/ttyS1* but it's still not working. Restarting the daemon, then *sudo service weewx* status yields (repeatedly, the block of messages doesn't alter) the foll

Re: [weewx-user] Re: Can't get weewx working on a new server

2020-11-26 Thread Tom Keffer
Lots of good information here. I wish all users were as diligent. The results of stty show some small differences from mine. For example, you have -iexten (the dash means negation), while I have iexten, which means mine enables non-POSIX special characters and yours doesn't. That could matter. Mos

[weewx-user] Re: Can't get weewx working on a new server

2020-11-26 Thread kiwigander
The new machine is an XCY (that's the brand; bought on AliExpress) fanless mini-PC, Celeron N4100 CPU, 8 GB RAM, 128 GB SSD, 2x gigabit Ethernet, 2x RS232, 4x USB (looks like USB 2.0). Video is temporarily via HDMI (once the server is set up, that will be disconnected); internet is via Ethernet

[weewx-user] Re: Can't get weewx working on a new server

2020-11-26 Thread vince
Serial ports will make you pull your hair out for sure... Lets start with figuring out what your box thinks it sees... Please post the output of: - lsusb - dmesg - syslog for the period after a clean powerdown/powerup until you see a login Also give us some details about: - you