Recent

Author Topic: Speed up Lazarus??  (Read 11694 times)

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Speed up Lazarus??
« Reply #15 on: August 09, 2013, 03:02:56 pm »
So try if that port is listening. Run netstat on the Pi to find out if some daemon is listening on port 2947, and if so, if it is on localhost/127.0.0.1 only or on 0.0.0.0 (=any interface).

If it is listening on any interface, check any firewalls (inbound on the pi and outbound on your desktop) to see if they are blocking things.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

BLL

  • Sr. Member
  • ****
  • Posts: 276
Re: Speed up Lazarus??
« Reply #16 on: August 09, 2013, 03:49:02 pm »
Hi, Thanks for the info. I have run netstat and there is no entry for 2947. I haven't installed a firewall on the Pi. SSH works fine.

I have the Windows firewall set to show any blockings.

Not sure where to go next!

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Speed up Lazarus??
« Reply #17 on: August 09, 2013, 04:27:30 pm »
Well, who/what told you the gps would send data on port 2947? It obviously isn't sending data and maybe you should enable it. Isn't there some documentation you can read?

Also, getting some general knowledge/reading up on Linux and networking may be a good idea. Getting people to spoon feed you what to do without knowing what you're doing is not a good way to efficiently go forward...
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

BLL

  • Sr. Member
  • ****
  • Posts: 276
Re: Speed up Lazarus??
« Reply #18 on: August 09, 2013, 04:36:52 pm »
The gps is enabled, working and the gpsd daemon provides the data on port 2947. Data from this port is available in my program on the raspi and also displays via the cgps program, so it must be something else!

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Speed up Lazarus??
« Reply #19 on: August 09, 2013, 04:38:20 pm »
Please paste the output of
Code: [Select]
netstat -an | grep 2947
to see what's going on...
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

BLL

  • Sr. Member
  • ****
  • Posts: 276
Re: Speed up Lazarus??
« Reply #20 on: August 09, 2013, 04:53:20 pm »
Hi, some of it is me being green and not knowing what to do! Here is the output:

pi@raspberrypi ~ $ netstat -an | grep 2947
tcp        0      0 127.0.0.1:2947          0.0.0.0:*               LISTEN
unix  2      [ ACC ]     STREAM     LISTENING     2947     /var/run/gpsd.sock

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Speed up Lazarus??
« Reply #21 on: August 09, 2013, 05:00:45 pm »
This
Code: [Select]
tcp        0      0 127.0.0.1:2947
means the daemon/program is listening on 127.0.0.1, i.e. localhost/locally only and not on any network interfaces.

That explains why you can't get the gps info from another machine.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

BLL

  • Sr. Member
  • ****
  • Posts: 276
Re: Speed up Lazarus??
« Reply #22 on: August 09, 2013, 05:15:45 pm »
Oh b*****! So that's it. Thanks for your help.

 

TinyPortal © 2005-2018