ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

GPS Position

Hello,

 

I need to convert a RS232 string to decode a GPS position according to LIP/ETSI format;

 

The Longtitude is 25 bits and latitude is 24 bits

 

I have problems splitting up the string and converting the latitude and longtitude;

 

The Hex string looks like this;0A00311D4A4DBAF900A810

 

as attachment the protocol description

 

Can anybody help>?

 

Regards,Philip

 

 

 

 

0 Kudos
Message 1 of 7
(5,574 Views)

It looks like you have a well-documented protocol. What is it that you need help doing?

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 7
(5,552 Views)

Hello Mike,

 

Thanks for the reply, i need help on the latitude and longtitude,i tried different ways to extract the 25 bits and convert it to a number but get a strange value.

I also do not know how to calculate the value with the 360 2 25 method.

 

I am a electronics engineer with little knowledge about Labview and programming ,i got the RS232 working to send and receive commands but got stuck on this part.

 

Regards,

Philip

0 Kudos
Message 3 of 7
(5,537 Views)

Hi Philip,

 

In fact, the document you have regarding LIP string is probably more useful than ETSI standard document (the one I have).

 

Can you show us the decimal numbers for LON / LAT?

 

Maybe it´s just a problem of conversion to the appropriate scale.

 

Regards

Luis

0 Kudos
Message 4 of 7
(5,495 Views)

Looks like this message was abandoned before a solution was found and unfortunately, I need the same thing done.

 

I have received the following data that is to be decoded using ETSI/LIP and don't know how to do it. I too am receiving hex data that I want to convert to decimal.

 

I've converted the

LONG:0110011100110110010011000  or in hex: 67 36 4C 00    (25 bits)

LAT:110010100001100101011001 or in hex: CA 19 59      (24 bits)

 

The above converts into this somehow (Taken from a logging program);

 

0110011100110110010011000 Longitude = 0x0CE6C98 (145.142012)

110010100001100101011001 Latitude = 0xCA1959 (-37.899131)

 

 

 

Does anyone have any idea how I go about converting the binary/hex to decimal using ETSI LIP?

0 Kudos
Message 5 of 7
(5,259 Views)

This is a 2-year old thread, you should repost a new question referenceing tis thread.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 6 of 7
(5,239 Views)

Thanks - I have done this.

Message 7 of 7
(5,209 Views)