Subject: | Net::GPSD3 Poll Freezing |
Date: | Sun, 12 Jan 2014 15:58:26 -0200 |
To: | bug-Net-GPSD3 [...] rt.cpan.org |
From: | Rafael Marsolla <marsolla [...] gmail.com> |
Hi, my name is Rafael, and I am trying to use the Net::GPSD3 module to get the details of my gps device.
Thanks so far for all the work, this module is very useful, but I have a little problem. Maybe you can help me find the way ?
I have one script running on my RaspberryPi (Raspbian Distro), and works perfectly ! (after patch https://rt.cpan.org/Public/Bug/Display.html?id=83722)
The script is:
#!/usr/local/bin/perl
use strict;
use warnings;
use Net::GPSD3;
use Data::Dumper qw{Dumper};
my $gpsd=Net::GPSD3->new(host=>"192.168.1.4");
print "Connected !\n, waiting polling routine...\n";
my $poll=$gpsd->poll;
print Dumper($poll);
So I am trying to run the same script in my Ubuntu distro, and doesn’t work, with or without patch.
The scenario:
GPS_IP_Address = 192.168.1.4
Ubuntu_IP_Address (hosting the script) = 192.168.1.5
The GPSD daemon running on host 192.168.1.4 work’s fine, because the cgps client and shell command
#> echo ‘?WATCH;’ | nc 192.168.1.4 2947
response all that I expected, when executed from Ubuntu host.
My problem is, the perl script freeze when I try to using the $gpsd->poll method.
I tried debug, but without success.
I can’t find any other related bug with my scenario. Details bellow:
perl -MNet::GPSD3 -e 'print "$Net:
:GPSD3::VERSION\n"'
0.19
/usr/local/bin/perl -v
This is perl 5, version 18, subversion 2 (v5.18.2) built for i686-linux
Copyright 1987-2013, Larry Wall
Linux fat-laptop 3.8.0-29-generic #42~precise1-Ubuntu SMP Wed Aug 14 15:31:16 UTC 2013 i686 i686 i386 GNU/Linux
It's a simple scenario, with properly configured connectivity.
What might be happening?
If you need more details, let me know.
Thank you !
Rafael Marsolla