gpsd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-users] Building the master branch and the split24 option


From: Roy Barkas
Subject: Re: [gpsd-users] Building the master branch and the split24 option
Date: Tue, 22 Oct 2013 01:23:59 +1100

Hang on, I just noticed that when I run sudo scons udev-install after a master build where the errors are reported, the install fails with:

Install file: "gpsdecode" as "/usr/local/bin/gpsdecode"
chrpath -r "/usr/local/lib" "/usr/local/bin/gpsdecode"
`/usr/local/bin/gpsdecode' probably isn't an ELF file.
elf_open: Exec format error
scons: *** [/usr/local/bin/gpsdecode] Error 1
scons: building terminated because of errors.

This may mean that when I was testing the split24 with gpsdecode I was actually running the 3.9 version rather than the newly built master version.
I'll wait to do any further split24 testing until we get the build problem figured out.


On Mon, Oct 21, 2013 at 10:20 PM, Eric S. Raymond <address@hidden> wrote:
Roy Barkas <address@hidden>:
> The 'split24' patch was (I hope) intended to allow type 24 part 1 and part
> 2 messages to be independently decoded.
>
> When I run gpsd and connect via telnet using:
> ?WATCH={"enable":true,"json":true, "scaled":true, "split24":true}
>
> I don't see any split type 24 messages being decoded.
> Same thing for gpsdecode.  If I feed the following type 24 into gpsdecode
> -s nothing comes out
>
> !AIVDM,1,1,,A,H7PG`U4TCD36HJ=F:Dmljq184400,0*0D
>
> Have I misunderstood how to enable this option for the daemon or for
> gpsdecode?

Maybe.  Here's what I see:

address@hidden:~/software/gpsd$ cat TYPE24
!AIVDM,1,1,,A,H42O55i18tMET00000000000000,2*6D
#       MessageID:         24
#       RepeatIndicator:   0
#       UserID:            271041815
#       partnum:           0
#       name:              PROGUY
!AIVDM,1,1,,A,H42O55lti4hhhilD3nink000?050,0*40
#       MessageID:         24
#       RepeatIndicator:   0
#       UserID:            271041815
#       partnum:           0
#       shipandcargo:      60|
#       vendorid:          1D00014
#       callsign:          TC6163
#       dimA:              0
#       dimB:              15
#       dimC:              0
#       dimD:              5
address@hidden:~/software/gpsd$ gpsdecode -s <TYPE24
{"class":"AIS","device":"stdin","type":24,"repeat":0,"mmsi":271041815,"scaled":true,"part":"A","shipname":"PROGUY"}
{"class":"AIS","device":"stdin","type":24,"repeat":0,"mmsi":271041815,"scaled":true,"part":"B","shiptype":60,"shiptype_text":"Passenger - all ships of this type","vendorid":"1D00014","model":12,"serial":199796,"callsign":"TC6163","to_bow":0,"to_stern":15,"to_port":0,"to_starboard":5}

Tell me if that reproduces for you.
--
                <a href="" href="http://www.catb.org/~esr/" target="_blank">http://www.catb.org/~esr/">Eric S. Raymond</a>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]