[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ gpsdrive ] DeLorme Earthmate GPS model 9538v1.0: USB works...
Mandag 19 februar 2007 16:30, skrev jd:
> Tried the Earthmate GPS (the little yellow puck) using both serial and USB.
> I see it is listed on the gpsdrive working device list for serial only.
>
> USB works but the cypress_m8 kernel module is required.
> USB is implemented as a HID device, not a serial device.
> The kernel module creates a USB character device that looks like a
> serial device.
> It is created dynamically and the device name is not always predictable.
> That makes it impossible to use a simple script to connect to the device
> using gpsd and makes it completely impossible to set-and-forget it in
> GPSDrive prefs--it has to be set every time it is plugged in.
> I have several usb serial devices attached and sometimes they come up
> before the Earthmate and that changes the device name of the Earthmate.
> But it looks like it may be possible to figure it out somehow. Maybe by
> grepping dmesg?
Sounds very familiar :)
Except for me it was my Tactrix Openport cable that came up as a GPS
(its a cable for Subaru Engine Management, not anything like a GPS),
and my touchscreen, touchpad and mousestick all got mixed up.
Also, GPSDrive hangs if I dont have X using my mousestick :-/
It probably think it is a GPS..
Some udev rules cured it all.
The best doc I found on udev:
http://www.reactivated.net/writing_udev_rules.html
I attached my local udev rules for some more examples, as you may bump into
linking to the wrong 'SUBSYSTEMS' as 'event' or 'input'. This is not
mentioned i the above article.
good luck :)
#SUBSYSTEMS=="usb", DRIVERS=="usbtouchscreen", NAME="input/touchscreen"
SUBSYSTEMS=="usb", DRIVERS=="usbtouchscreen", KERNEL=="event*", SYMLINK+="input/touchscreen"
#Tactrix Openport kabelen: ( så den ikke blir til en GPS ;)
SUBSYSTEMS=="usb", ATTRS{interface}=="OpenPort*", NAME="ttyUSBssm", OPTIONS+="last_rule"
KERNEL=="mouse*", SUBSYSTEMS=="input", ATTRS{name}=="SynPS/2 Synaptics TouchPad", SYMLINK+="input/touchpad"
KERNEL=="mouse*", SUBSYSTEMS=="input", ATTRS{name}=="PS/2 Generic Mouse", ATTRS{phys}=="synaptics-pt/serio*", SYMLINK+="input/mousestick"