Are you sure? Depending on what permissions the usb port has, you may need to use sudo to run lsof:
*sudo lsof /dev/ttyUSB0* Come to think of it, you may have to do that with minicom, too. Personally, I change the udev rule that governs permissions for usb devices to give everyone access to the port. The rule that governs this is most likely in the directory /lib/udev/rules.d, but which file it is in depends on the operating system. I believe on Raspbian, it's in file 91-permissions.rules, but it may be in 50-udev-default.rules. Wherever you find it, you want to change this SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0664" to this SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0666" -tk On Tue, Nov 17, 2020 at 3:07 PM bgra...@umw.edu <bgrat...@umw.edu> wrote: > > Thanks everyone, I think I have a bad logger (6540). > On Tuesday, November 17, 2020 at 9:41:56 AM UTC-5 bgra...@umw.edu wrote: > >> root@raspberrypi:/home/pi# ll /dev/ttyUSB0 >> crw-rw---- 1 root dialout 188, 0 Nov 16 17:48 /dev/ttyUSB0 >> >> >> root@raspberrypi:/home/pi# lsof /dev/ttyUSB0 >> lsof: WARNING: can't stat() fuse.gvfsd-fuse file system >> /run/user/1000/gvfs >> Output information may be incomplete. >> >> On Monday, November 16, 2020 at 8:43:34 PM UTC-5 tke...@gmail.com wrote: >> >>> If it were a permissions problem, it would have said so. Same if >>> modemmanager controlled the port. Still, it doesn't hurt to try lsof and >>> see if anything else is using the port. >>> >>> *lsof /dev/ttyUSB0* >>> >>> >>> >>> >>> On Mon, Nov 16, 2020 at 5:36 PM Greg from Oz <ubea...@gmail.com> wrote: >>> >>>> Is the user running this in the dialout group? >>>> >>>> On Tuesday, 17 November 2020 at 12:30:14 UTC+11 tke...@gmail.com wrote: >>>> >>>>> The only thing I can think of to try is to reseat the logger. >>>>> >>>>> Unless, you actually have the serial version of the VantagePro and are >>>>> using a serial-to-usb converter. They are notoriously flakey. If you have >>>>> a >>>>> spare one, try that. >>>>> >>>>> If none of that works, call Davis. >>>>> >>>>> On Mon, Nov 16, 2020 at 5:04 PM bgra...@umw.edu <bgra...@umw.edu> >>>>> wrote: >>>>> >>>>>> Yes, I did hit enter many times. Since dmesg said that the usb had >>>>>> attached to ttyUSB0 then I assumed (maybe incorrectly) the rpi had >>>>>> connected. I’m at a loss because everything was working... Thanks. >>>>>> >>>>>> On Monday, November 16, 2020 at 7:59:54 PM UTC-5 tke...@gmail.com >>>>>> wrote: >>>>>> >>>>>>> OK, but did you hit <enter> a few times before typing "TEST"? If so, >>>>>>> you have a connectivity problem, not a WeeWX problem. >>>>>>> >>>>>>> But, you probably already knew that! >>>>>>> >>>>>>> -tk >>>>>>> >>>>>>> On Mon, Nov 16, 2020 at 4:57 PM bgra...@umw.edu <bgra...@umw.edu> >>>>>>> wrote: >>>>>>> >>>>>>>> >>>>>>>> I don’t remember the minicom string but it was the one posted to >>>>>>>> test TEST. When I opened minicom it just sat there no echo on TEST or >>>>>>>> VER. >>>>>>>> No reply. Several reboots no results. /dev/ttyUSB0 is there but does >>>>>>>> not >>>>>>>> respond. Dmesg Seems to have found it. >>>>>>>> I checked all plugs and connections. Removed batteries from console >>>>>>>> to reboot. Even tried new RS232/USB dongle. I have a main ubuntu linux >>>>>>>> pc >>>>>>>> running from the ISS so I know that’s working and sending data. The >>>>>>>> rpi is >>>>>>>> setup as a second console which was running weather34. Thanks Tom and >>>>>>>> Graham (you helped me in the days of wview). >>>>>>>> Bob >>>>>>>> Main setup: grattans.org/wx >>>>>>>> On Monday, November 16, 2020 at 6:43:17 PM UTC-5 tke...@gmail.com >>>>>>>> wrote: >>>>>>>> >>>>>>>>> When you say you "tried listening to the console with minicom but >>>>>>>>> got no data" what do you mean? >>>>>>>>> >>>>>>>>> In particular, did you set the baudrate? And, did you type <enter> >>>>>>>>> a few types before trying to type TEST? >>>>>>>>> >>>>>>>>> -tk >>>>>>>>> >>>>>>>>> On Mon, Nov 16, 2020 at 2:55 PM bgra...@umw.edu <bgra...@umw.edu> >>>>>>>>> wrote: >>>>>>>>> >>>>>>>>>> I have a VP2 console that I am connecting to an RPI OS (latest). >>>>>>>>>> Weewx is latest using setup.py. This RPI was running weewx (jessie) >>>>>>>>>> with no >>>>>>>>>> problems and using ttyUSB0 from weewx.conf. The vantage driver seems >>>>>>>>>> ok and >>>>>>>>>> I actually moved the old one over to be sure. >>>>>>>>>> I tried listening to the console with minicom but got no data. I >>>>>>>>>> swapped out the RS232/USB converter but got the same problem. Not >>>>>>>>>> sure >>>>>>>>>> what I have done wrong, other than trying to fix something that >>>>>>>>>> wasn't >>>>>>>>>> broken... >>>>>>>>>> >>>>>>>>>> Attached file of some debug info. >>>>>>>>>> >>>>>>>>>> Thanks for any suggestions. >>>>>>>>>> >>>>>>>>>> Bob >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> >>>>>>>>> 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. >>>>>>>>>> To view this discussion on the web visit >>>>>>>>>> https://groups.google.com/d/msgid/weewx-user/328d0e08-16f5-461c-8782-f6ee86e95008n%40googlegroups.com >>>>>>>>>> <https://groups.google.com/d/msgid/weewx-user/328d0e08-16f5-461c-8782-f6ee86e95008n%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+...@googlegroups.com. >>>>>>>> >>>>>>> To view this discussion on the web visit >>>>>>>> https://groups.google.com/d/msgid/weewx-user/4dea6744-d613-45ad-90f9-46fdf04ceb7an%40googlegroups.com >>>>>>>> <https://groups.google.com/d/msgid/weewx-user/4dea6744-d613-45ad-90f9-46fdf04ceb7an%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+...@googlegroups.com. >>>>>> >>>>> To view this discussion on the web visit >>>>>> https://groups.google.com/d/msgid/weewx-user/8afb9f09-184c-4244-ab5a-1590174ab7c0n%40googlegroups.com >>>>>> <https://groups.google.com/d/msgid/weewx-user/8afb9f09-184c-4244-ab5a-1590174ab7c0n%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+...@googlegroups.com. >>>> >>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/weewx-user/1af9c85d-756c-47ed-a88b-53526b5e9ed5n%40googlegroups.com >>>> <https://groups.google.com/d/msgid/weewx-user/1af9c85d-756c-47ed-a88b-53526b5e9ed5n%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/ddabe3bd-8728-4901-bde9-fe63c882536dn%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/ddabe3bd-8728-4901-bde9-fe63c882536dn%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/CAPq0zECZ4tWx6adFN4WwiRgxGbz0MEPM%2BNw2b-02rR%3DAQ%2B6z1g%40mail.gmail.com.