Hi All,
I've had no success on getting gpsd to work with Ericssons broadband module f5521gw in a Lenovo X220.
What I did was to see if there is any data:
Code:
gpsmon /dev/ttyACM2
or
Code:
gpsd -P /var/run/gpsd.pid -F /var/run/gpsd.sock -N -n /dev/ttyACM2
and checking on localhost:2947 with gpsmod. Unfortunately there was no data.
When I start it daemonized by:
I get:
Code:
[root@trips ~]# service gpsd status
Redirecting to /bin/systemctl status gpsd.service
gpsd.service - GPS Service Daemon
Loaded: loaded (/usr/lib/systemd/system/gpsd.service; disabled)
Active: active (running) since Thu 2013-04-04 13:56:57 CEST; 2s ago
Main PID: 4309 (gpsd)
CGroup: name=systemd:/system/gpsd.service
└─4309 /usr/sbin/gpsd -P /var/run/gpsd.pid -F /var/run/gpsd.sock -N -n /dev/ttyACM2
Apr 04 13:56:57 trips systemd[1]: Started GPS Service Daemon.
Apr 04 13:56:57 trips gpsd[4309]: gpsd:ERROR: PPS ioctl(TIOCMIWAIT) failed: 25 Inappropriate ioctl for device
So, the last line might give a hint...
I appreciate any help on getting gpsd up and running. Oh, I am on F18.
Cheers,
SlimHering
---------- Post added at 06:48 PM ---------- Previous post was at 12:30 PM ----------
Hello again,
when I use picocom to connect to /dev/ttyACM2 (or to ttyACM0 or to ttyACM1) an send the Hayes AT command AT*E2GPSNPD, GPS data is being dumped to the terminal:
Code:
[root@trips ~]# picocom /dev/ttyACM2
picocom v1.6
port is : /dev/ttyACM2
flowcontrol : none
baudrate is : 9600
parity is : none
databits are : 8
escape is : C-a
local echo is : no
noinit is : no
noreset is : no
nolock is : no
send_cmd is : sz -vv
receive_cmd is : rz -vv
imap is :
omap is :
emap is : crcrlf,delbs,
Terminal ready
*EMRDY: 1
AT*E2GPSNPD
OK
$GPGSV,2,1,07,08,,,19,12,,,29,14,,,20,18,,,20*79
1,146,*76
,,,A*62
$GPGSV,2,2,07,20,,,18,22,,,18,25,,,23*7A
20*79
1,146,*76
,,,A*62
So it seems that the only step that I am missing when using gpsd is to switch on the gps using that Hayes command.
Does anybody have an idea on how that activation can be achieved? Is it possible to use /etc/gpsd/device-hook for that purpose? (see http://www.catb.org/gpsd/gpsd.html)
Thanks, Slimhering