[Comm] GPS & Linux

Vyatcheslav Perevalov =?iso-8859-1?q?vip0_=CE=C1_seversk=2Eru?=
Пт Апр 11 00:09:22 MSD 2008


В сообщении от 11 апреля 2008 Vyatcheslav Perevalov написал(a):
> щас перегружусь, проверю udev отрабатывает или нет

Перегрузился, проверил.

При загрузке прибор отключен:
[root на family ~]# service gpsd status
gpsd is stopped

ps auxw |grep gps 
молчит

Подключаем прибор:
/var/log/messages

Apr 11 03:05:57 family kernel: ohci_hcd 0000:00:02.1: wakeup
Apr 11 03:05:57 family kernel: usb 3-3: new full speed USB device using 
ohci_hcd and address 5
Apr 11 03:05:57 family kernel: usb 3-3: configuration #1 chosen from 1 
choice
Apr 11 03:05:57 family kernel: garmin_gps 3-3:1.0: Garmin GPS usb/tty 
converter detected
Apr 11 03:05:57 family kernel: usb 3-3: Garmin GPS usb/tty converter now 
attached to ttyUSB0
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:08 family kernel: ohci_hcd 0000:00:02.1: wakeup
Apr 11 03:08:09 family kernel: usb 3-3: new full speed USB device using 
ohci_hcd and address 6
Apr 11 03:08:09 family kernel: usb 3-3: configuration #1 chosen from 1 
choice
Apr 11 03:08:09 family kernel: garmin_gps 3-3:1.0: Garmin GPS usb/tty 
converter detected
Apr 11 03:08:09 family kernel: usb 3-3: Garmin GPS usb/tty converter now 
attached to ttyUSB0
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


Вот.
-- 
Всего хорошего
		/vip



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