[Comm] GPS & Linux

Grigory Batalov =?iso-8859-1?q?bga_=CE=C1_altlinux=2Eorg?=
Пт Апр 11 02:00:02 MSD 2008


On Fri, 11 Apr 2008 03:09:22 +0700, Vyatcheslav Perevalov wrote:

> > щас перегружусь, проверю udev отрабатывает или нет
> 
> Перегрузился, проверил.
> 
> При загрузке прибор отключен:
> [root на family ~]# service gpsd status
> gpsd is stopped

  Это не имеет значения, init-скрипт проверяет сохранённый в pid-файле
  номер процесса, а файла, естественно, нет. (Даже если бы udev сработал.)

> ps auxw |grep gps 
> молчит
> 
> Подключаем прибор:
> /var/log/messages
> 
> Apr 11 03:05:57 family gpsd.hotplug: no ttyUSB device 
> under /devices/pci0000:00/0000:00:02.1/usb3/3-3
> Apr 11 03:05:57 family gpsd.hotplug: waiting for /dev/ttyUSB0
> Apr 11 03:05:58 family gpsd.hotplug: /dev/ttyUSB0 has gone active
> Apr 11 03:05:58 family gpsd.hotplug: gpsd_control(action=add, 
> arg=/dev/ttyUSB0)
> Apr 11 03:05:58 family gpsd.hotplug: socket /var/run/gpsd.sock doesn't exist
> Apr 11 03:05:58 family gpsd.hotplug: launching gpsd -F /var/run/gpsd.sock
> Apr 11 03:05:58 family gpsd[7356]: Gpsd started (Version 1.06b)
> Apr 11 03:05:59 family gpsd[7356]: Gpsd listening on port 2947
> Apr 11 03:05:59 family gpsd.hotplug: socket /var/run/gpsd.sock doesn't exist
> Apr 11 03:05:59 family gpsd.hotplug: can't reach gpsd
> Apr 11 03:05:59 family gpsd.hotplug: gpsd.hotplug: exception 
> exceptions.TypeError yields coercing to Unicode: need string or buffer, 
> NoneType found
> 
> Прибор отключаем:
> Apr 11 03:06:37 family kernel: usb 3-3: USB disconnect, address 5
> Apr 11 03:06:37 family kernel: garmin_gps ttyUSB0: Garmin GPS usb/tty 
> converter now disconnected from ttyUSB0
> Apr 11 03:06:37 family kernel: garmin_gps 3-3:1.0: device disconnected
> 
> 
> ps auxw |grep gps
> root      7356  0.0  0.2   1820   524 ?        S<s  03:05   0:00 
> gpsd -F /var/run/gpsd.sock
> root      7604  0.0  0.2   1988   636 pts/3    R+   03:07   0:00 grep gps
> 
> Подключаем снова:
> 
> Apr 11 03:08:09 family gpsd.hotplug: no ttyUSB device 
> under /devices/pci0000:00/0000:00:02.1/usb3/3-3
> Apr 11 03:08:09 family gpsd.hotplug: waiting for /dev/ttyUSB0
> Apr 11 03:08:10 family gpsd.hotplug: /dev/ttyUSB0 has gone active
> Apr 11 03:08:10 family gpsd.hotplug: gpsd_control(action=add, 
> arg=/dev/ttyUSB0)
> Apr 11 03:08:10 family gpsd.hotplug: socket /var/run/gpsd.sock doesn't exist
> Apr 11 03:08:10 family gpsd.hotplug: launching gpsd -F /var/run/gpsd.sock
> Apr 11 03:08:10 family gpsd[7802]: Gpsd started (Version 1.06b)
> Apr 11 03:08:10 family gpsd[7802]: Gpsd listening on port 2947
> Apr 11 03:08:10 family gpsd[7802]: Can't bind to port 2947: Address already 
> in use Exit now...
> Apr 11 03:08:10 family gpsd.hotplug: socket /var/run/gpsd.sock doesn't exist
> Apr 11 03:08:10 family gpsd.hotplug: can't reach gpsd
> Apr 11 03:08:10 family gpsd.hotplug: gpsd.hotplug: exception 
> exceptions.TypeError yields coercing to Unicode: need string or buffer, 
> NoneType found

  Спасибо! Как видно, скрипт hotplug ещё нужно доводить до ума =)
  Сообщите Ваши idProduct/idVendor, я добавлю их в пакет.




Подробная информация о списке рассылки community