[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Illegal instruction....
From: |
David J Taylor |
Subject: |
Re: Illegal instruction.... |
Date: |
Tue, 26 May 2020 08:52:43 +0100 |
08:27 26/05/2020Yo David!
[]
Why not use ntpviz, skyview.php, webgps, or the other clients gpsd
offers?
[]
Without knowing how you compiled, hard to say anything. I assume ou did not
try to run the 4B binary on a 1B. Different CPUs, different instruction
sets.
[]
First step is to send here your build procedure and your entire build
output.
RGDS
GARY
=================================================
Gary,
I'm using SNMP for monitoring the GPS performance. I need something which
can be called via the SNMP "pass" command, i.e a program or script which
respond to certain parameters with certain outputs - specifically:
Call:
gpsGetSatellites -g .1.3.6.1.2.1.25.1.31
Returns the number of visible satellites:
.1.3.6.1.2.1.25.1.31
gauge
19
Call:
gpsGetSatellites -g .1.3.6.1.2.1.25.1.32
Returns the number of used satellites:
.1.3.6.1.2.1.25.1.32
gauge
10
Call:
gpsGetSatellites -g .1.3.6.1.2.1.25.1.33
Returns the average SNR of the used satellites:
.1.3.6.1.2.1.25.1.33
gauge
33.875000
A relatively simple C program seemed a good way to do this, but if there is
a better way using the tools you mentioned please tell me more. The use of
SNMP is a requirement as the monitoring is done remotely using MRTG.
Correct, I complied and ran on the Raspberry Pi 1B.
There isn't a build procedure as such. I simply run a compile and get an
executable:
gcc gpsGetSatellites.c -o gpsGetSatellites -lgps
I've tried this both in my home directory and in the gpsd directory where
the whole of gpsd was built. I get an executable which is 8388 bytes when
using my home directory, and 8384 bytes when in gpsd. I did try
using -march=armv6 but that made no difference.
When run:
pi@raspi-3:~ $ ./gpsGetSatellites -g .1.3.6.1.2.1.25.1.31
Illegal instruction
Cheers,
David
--
SatSignal Software - Quality software for you
Web: https://www.satsignal.eu
Email: address@hidden
Twitter: @gm8arv
Re: Illegal instruction...., David J Taylor, 2020/05/26
Re: Illegal instruction...., Charles Curley, 2020/05/25
Re: Illegal instruction...., Gary E. Miller, 2020/05/25
- Re: Illegal instruction....,
David J Taylor <=