[weewx-user] Re: weewx exits after changing to vantage

2018-01-13 Thread torresb1160
SOLVED. I think the problem was at the console. Took out the batteries, 
disconnected the power then I took a dremmel tool and ground out some plastic 
that seemed like it wasn’t allowing the data logger to fully seat because the 
usb wire was binding. Went through the start up procedure exactly as the Davis 
manuals dictates (I think this is was solved the issue). Started up weewx and 
it instantly communicated and started downloading data.
Brandon

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: weewx exits after changing to vantage

2018-01-12 Thread mwall
be sure that you have the right serial module loaded in the kernel.  many 
arm systems do not ship with modules for all of the different types of 
usb-to-serial converters, and sometimes they ship with the modules, but the 
modules are not loaded.

for example, if your hardware uses the CP210x usb-to-serial chipset, then 
you need the cp210x kernel module.

lsmod | grep cp210x

if it is loaded, then /dev/ttyUSBx should show up automatically when you 
plug in the device.  if it is not loaded, you can load it manually with:

sudo modprobe cp210x

then when you plug in the device you'll see /dev/ttyUSBx

you'll have to figure out which kernel module is used by the usb-to-serial 
adapter on your vantage.  i think it is cp210x, but it might be pl2303 for 
perhaps some kind of ftdi.

and if you are very unlucky, you will have to compile the kernel module 
yourself.

m

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: weewx exits after changing to vantage

2018-01-12 Thread torresb1160
Thanks for trying to help Gary, much appreciated.  Below is the Linux 
version:

Linux raspberrypi 4.9.59-v7+ #1047 SMP Sun Oct 29 12:19:23 GMT 2017 armv7l 
GNU/Linux
Operating System: Raspbian GNU/Linux 9 (stretch)
Kernel: Linux 4.9.59-v7+
  Architecture: arm



On Friday, January 12, 2018 at 9:00:48 PM UTC-7, gjr80 wrote:
>
> Yes, that would appear to be the case, until the system recognises and 
> mounts it weeWX won't be able to do much. I think you need someone with 
> more low level Linux skills that I have. I did some googling of the error 
> message and did not turn up much. Out of interest what Linux flavour are 
> you runnng? If lsof was not installed perhaps there is some other driver 
> etc that is missing. Clutching at straws here and don't want to send you 
> unnecessarily down a rabbit hole.
>
> Gary
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: weewx exits after changing to vantage

2018-01-12 Thread gjr80
Yes, that would appear to be the case, until the system recognises and mounts 
it weeWX won't be able to do much. I think you need someone with more low level 
Linux skills that I have. I did some googling of the error message and did not 
turn up much. Out of interest what Linux flavour are you runnng? If lsof was 
not installed perhaps there is some other driver etc that is missing. Clutching 
at straws here and don't want to send you unnecessarily down a rabbit hole.

Gary

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: weewx exits after changing to vantage

2018-01-12 Thread torresb1160
Gary, unplugged and plugged back in - looks like it's not mounted.  Any 
advise?

pi@raspberrypi:/ $ tail -f /var/log/syslog
Jan 12 20:40:25 raspberrypi kernel: [11078.451352] usb 1-1.2: new 
full-speed USB device number 8 using dwc_otg
Jan 12 20:40:25 raspberrypi kernel: [11078.587867] usb 1-1.2: New USB 
device found, idVendor=10c4, idProduct=ea60
Jan 12 20:40:25 raspberrypi kernel: [11078.587879] usb 1-1.2: New USB 
device strings: Mfr=1, Product=2, SerialNumber=3
Jan 12 20:40:25 raspberrypi kernel: [11078.587887] usb 1-1.2: Product: 
CP2102 USB to UART Bridge Controller
Jan 12 20:40:25 raspberrypi kernel: [11078.587895] usb 1-1.2: Manufacturer: 
Silicon Labs
Jan 12 20:40:25 raspberrypi kernel: [11078.587903] usb 1-1.2: SerialNumber: 
0001
Jan 12 20:40:25 raspberrypi kernel: [11078.593078] cp210x 1-1.2:1.0: cp210x 
converter detected
Jan 12 20:40:25 raspberrypi kernel: [11078.597942] usb 1-1.2: cp210x 
converter now attached to ttyUSB0
Jan 12 20:40:25 raspberrypi mtp-probe: checking bus 1, device 8: 
"/sys/devices/platform/soc/3f98.usb/usb1/1-1/1-1.2"
Jan 12 20:40:25 raspberrypi mtp-probe: bus: 1, device: 8 was not an MTP 
device
Jan 12 20:40:47 raspberrypi gvfsd-network[2364]: Couldn't create directory 
monitor on smb://x-gnome-default-workgroup/. Error: The specified location 
is not mounted
Jan 12 20:41:24 raspberrypi gvfsd-network[2364]: Couldn't create directory 
monitor on smb://x-gnome-default-workgroup/. Error: The specified location 
is not mounted


On Friday, January 12, 2018 at 8:33:37 PM UTC-7, gjr80 wrote:
>
> On Saturday, 13 January 2018 13:10:05 UTC+10, torre...@gmail.com wrote:
>>
>> What I was trying:
>> pi@raspberrypi:/ $ lsof /dev/ttyUSBO
>> bash: lsof: command not found
>> pi@raspberrypi:/ $ cd /etc/weewx
>> pi@raspberrypi:/etc/weewx $ lsof /dev/ttyUSBO
>> bash: lsof: command not found
>>
>
> Would seem that lsof is not installed, it's installed on my raspbian 
> jessie and debian stretch. You might want want to try installing it:
>
> $ sudo apt-get install lsof
>
> As for your VP2, is it in fact on USB0? Unplug it then plug it in and see 
> what is in your syslog.
>
> Gary
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: weewx exits after changing to vantage

2018-01-12 Thread gjr80
On Saturday, 13 January 2018 13:10:05 UTC+10, torre...@gmail.com wrote:
>
> What I was trying:
> pi@raspberrypi:/ $ lsof /dev/ttyUSBO
> bash: lsof: command not found
> pi@raspberrypi:/ $ cd /etc/weewx
> pi@raspberrypi:/etc/weewx $ lsof /dev/ttyUSBO
> bash: lsof: command not found
>

Would seem that lsof is not installed, it's installed on my raspbian jessie 
and debian stretch. You might want want to try installing it:

$ sudo apt-get install lsof

As for your VP2, is it in fact on USB0? Unplug it then plug it in and see 
what is in your syslog.

Gary

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: weewx exits after changing to vantage

2018-01-12 Thread torresb1160
What I was trying:
pi@raspberrypi:/ $ lsof /dev/ttyUSBO
bash: lsof: command not found
pi@raspberrypi:/ $ cd /etc/weewx
pi@raspberrypi:/etc/weewx $ lsof /dev/ttyUSBO
bash: lsof: command not found

I had a Vantage Vue and everything was working fine with weewx.  Changed 
out to A Vantage Pro2 today and now I can't get it to communicate:

Jan 12 20:03:27 raspberrypi weewx[1858]: engine: retrying...
Jan 12 20:03:27 raspberrypi weewx[1858]: engine: Using configuration file 
/etc/weewx/weewx.conf
Jan 12 20:03:27 raspberrypi weewx[1858]: engine: debug is 1
Jan 12 20:03:27 raspberrypi weewx[1858]: engine: Initializing engine
Jan 12 20:03:27 raspberrypi weewx[1858]: engine: Loading station type 
Vantage (weewx.drivers.vantage)
Jan 12 20:03:27 raspberrypi weewx[1858]: vantage: Driver version is 3.0.10
Jan 12 20:03:27 raspberrypi weewx[1858]: vantage: Opened up serial port 
/dev/ttyUSB0; baud 19200; timeout 4.00
Jan 12 20:03:27 raspberrypi weewx[1858]: vantage: Gentle wake up of console 
successful
Jan 12 20:03:27 raspberrypi weewx[1858]: vantage: No  received from 
console
Jan 12 20:03:27 raspberrypi weewx[1858]: vantage: _determine_hardware; 
retry #0
Jan 12 20:03:27 raspberrypi weewx[1858]: vantage: No  received from 
console
Jan 12 20:03:27 raspberrypi weewx[1858]: vantage: _determine_hardware; 
retry #1
Jan 12 20:03:27 raspberrypi weewx[1858]: vantage: No  received from 
console
Jan 12 20:03:27 raspberrypi weewx[1858]: vantage: _determine_hardware; 
retry #2
Jan 12 20:03:27 raspberrypi weewx[1858]: vantage: No  received from 
console
Jan 12 20:03:27 raspberrypi weewx[1858]: vantage: _determine_hardware; 
retry #3
Jan 12 20:03:27 raspberrypi weewx[1858]: vantage: Unable to read hardware 
type; raise WeeWxIOError
Jan 12 20:03:27 raspberrypi weewx[1858]: import of driver failed: Unable to 
read hardware type ()
Jan 12 20:03:27 raspberrypi weewx[1858]: engine: Unable to load driver: 
Unable to read hardware type
Jan 12 20:03:27 raspberrypi weewx[1858]:   Waiting 60 seconds then 
retrying...
^C


On Friday, January 12, 2018 at 7:52:36 PM UTC-7, gjr80 wrote:
>
> Hi,
>
> Not sure what you mean by '*What file do you need to be in*', when you 
> run the lsof command you need to ensure you use the full path for the 
> port you are using for your station, in the case above that was 
> /dev/ttyUSB0. Did you run the command? What was the output? Posting the 
> command entered and the response would be helpful.
>
> Gary
>
> On Saturday, 13 January 2018 11:33:21 UTC+10, torre...@gmail.com wrote:
>>
>> Hardy, 
>> I’m having exactly the same issue however I did’t get Tom’s hint of 
>> using: 
>> lsof /dev/ttyUSB0 
>> What file do you need to be in?
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: weewx exits after changing to vantage

2018-01-12 Thread gjr80
Hi,

Not sure what you mean by '*What file do you need to be in*', when you run 
the lsof command you need to ensure you use the full path for the port you 
are using for your station, in the case above that was /dev/ttyUSB0. Did 
you run the command? What was the output? Posting the command entered and 
the response would be helpful.

Gary

On Saturday, 13 January 2018 11:33:21 UTC+10, torre...@gmail.com wrote:
>
> Hardy, 
> I’m having exactly the same issue however I did’t get Tom’s hint of using: 
> lsof /dev/ttyUSB0 
> What file do you need to be in?

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: weewx exits after changing to vantage

2018-01-12 Thread torresb1160
Hardy,
I’m having exactly the same issue however I did’t get Tom’s hint of using:
lsof /dev/ttyUSB0
What file do you need to be in?

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: weewx exits after changing to vantage

2017-01-05 Thread Hardy

with dpkg --get-selections | grep -v deinstall i checked what is installed, 
modem_manager is not installed.

I'm not shure, how to check, what could use /dev/ttyUSB0. On my rasperry ar 
several usb devices like a cul or a arduino. If i (un-)plug the vantage 
from/to the rasperry, it seems like it was/become /dev/ttyUSB0:

Jan  5 19:59:27 Raspi2 kernel: [25554.713411] cp210x ttyUSB0: 
usb_serial_generic_read_bulk_callback - urb stopped: -32
Jan  5 19:59:27 Raspi2 kernel: [25554.713513] cp210x ttyUSB0: 
usb_serial_generic_read_bulk_callback - urb stopped: -32
Jan  5 19:59:27 Raspi2 kernel: [25554.965639] usb 1-1.4: USB disconnect, 
device number 8
Jan  5 19:59:27 Raspi2 kernel: [25554.972622] cp210x ttyUSB0: cp210x 
converter now disconnected from ttyUSB0
Jan  5 19:59:27 Raspi2 kernel: [25554.972742] cp210x 1-1.4:1.0: device 
disconnected
Jan  5 19:59:32 Raspi2 kernel: [25559.812410] usb 1-1.4: new full-speed USB 
device number 9 using dwc_otg
Jan  5 19:59:32 Raspi2 kernel: [25559.918871] usb 1-1.4: New USB device 
found, idVendor=10c4, idProduct=ea60
Jan  5 19:59:32 Raspi2 kernel: [25559.918896] usb 1-1.4: New USB device 
strings: Mfr=1, Product=2, SerialNumber=3
Jan  5 19:59:32 Raspi2 kernel: [25559.918934] usb 1-1.4: Product: CP2102 
USB to UART Bridge Controller
Jan  5 19:59:32 Raspi2 kernel: [25559.918951] usb 1-1.4: Manufacturer: 
Silicon Labs
Jan  5 19:59:32 Raspi2 kernel: [25559.918967] usb 1-1.4: SerialNumber: 0001
Jan  5 19:59:32 Raspi2 kernel: [25559.922457] cp210x 1-1.4:1.0: cp210x 
converter detected
Jan  5 19:59:32 Raspi2 kernel: [25559.922984] usb 1-1.4: cp210x converter 
now attached to ttyUSB0



 
Am Donnerstag, 5. Januar 2017 19:34:20 UTC+1 schrieb Hardy:
>
> Hi,
>
> i used weewx with a ws 3080, everything works fine for round about a year. 
> Now i bought a vantage pro2, i changed the configuration using wee_config 
> with the --reconfigure option from FineOffsetUSB to Vantage. After that, 
> weewx starts an stops a few seconds later.
>
> I installed weewx on my raspberry pi using the deb package with dpkg -i.
>
> With the brandnew vantage i use the weatherlink usb. The hardware is ok, 
> with a windows 10 pc the davis software communicates with the station.
>
> In /var/log/syslog i found the following:
>
> Jan  5 16:50:19 Raspi2 weewx[6271]: engine: Using configuration file 
> /etc/weewx/weewx.conf
> Jan  5 16:50:19 Raspi2 weewx[6271]: engine: Initializing engine
> Jan  5 16:50:19 Raspi2 weewx[6271]: engine: Loading station type Vantage 
> (weewx.drivers.vantage)
> Jan  5 16:50:19 Raspi2 weewx[6271]: vantage: driver version is 3.0.9
> Jan  5 16:50:19 Raspi2 weewx[6271]: vantage: Opened up serial port 
> /dev/ttyUSB0; baud 19200; timeout 5.00
> Jan  5 16:50:19 Raspi2 weewx[6271]: vantage: SerialException on read.
> Jan  5 16:50:19 Raspi2 weewx[6271]:  device reports readiness to 
> read but returned no data (device disconnected?)
> Jan  5 16:50:19 Raspi2 weewx[6271]:  Is there a competing process 
> running??
> Jan  5 16:50:19 Raspi2 weewx[6271]: vantage: retry  #0 failed
> Jan  5 16:50:19 Raspi2 weewx[6271]: vantage: gentle wake up of console 
> successful
> Jan  5 16:50:24 Raspi2 weewx[6271]: vantage: determine_hardware; retry #0
> Jan  5 16:50:29 Raspi2 weewx[6271]: vantage: determine_hardware; retry #1
> Jan  5 16:50:34 Raspi2 weewx[6271]: vantage: determine_hardware; retry #2
> Jan  5 16:50:39 Raspi2 weewx[6271]: vantage: determine_hardware; retry #3
> Jan  5 16:50:39 Raspi2 weewx[6271]: vantage: _setup; unable to read 
> hardware type; raise WeeWxIOError
> Jan  5 16:50:39 Raspi2 weewx[6271]: import of driver failed: Unable to 
> read hardware type ()
> Jan  5 16:50:39 Raspi2 weewx[6271]: engine: Unable to load driver: Unable 
> to read hardware type
> Jan  5 16:50:39 Raspi2 weewx[6271]:   Exiting...
>
> What can i do?
>
> Greetings,
> Hardy
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: weewx exits after changing to vantage

2017-01-05 Thread mwall


On Thursday, January 5, 2017 at 1:34:20 PM UTC-5, Hardy wrote:
>
> Jan  5 16:50:19 Raspi2 weewx[6271]: vantage: SerialException on read.
> Jan  5 16:50:19 Raspi2 weewx[6271]:  device reports readiness to 
> read but returned no data (device disconnected?)
> Jan  5 16:50:19 Raspi2 weewx[6271]:  Is there a competing process 
> running??
> Jan  5 16:50:19 Raspi2 weewx[6271]: vantage: retry  #0 failed
> Jan  5 16:50:19 Raspi2 weewx[6271]: vantage: gentle wake up of console 
> successful
> Jan  5 16:50:24 Raspi2 weewx[6271]: vantage: determine_hardware; retry #0
> Jan  5 16:50:29 Raspi2 weewx[6271]: vantage: determine_hardware; retry #1
> Jan  5 16:50:34 Raspi2 weewx[6271]: vantage: determine_hardware; retry #2
> Jan  5 16:50:39 Raspi2 weewx[6271]: vantage: determine_hardware; retry #3
> Jan  5 16:50:39 Raspi2 weewx[6271]: vantage: _setup; unable to read 
> hardware type; raise WeeWxIOError
> Jan  5 16:50:39 Raspi2 weewx[6271]: import of driver failed: Unable to 
> read hardware type ()
> Jan  5 16:50:39 Raspi2 weewx[6271]: engine: Unable to load driver: Unable 
> to read hardware type
> Jan  5 16:50:39 Raspi2 weewx[6271]:   Exiting...
>
> What can i do?
>

hardy,

be sure that there is nothing else using the /dev/ttyUSB0 port

is modem_manager installed and running?  if so, remove it!

m 

-- 
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.
For more options, visit https://groups.google.com/d/optout.