Liberty BASIC Community Forum
« GPS data »

Welcome Guest. Please Login or Register.
Jan 21st, 2018, 6:15pm


Rules|Home|Help|Search|Recent Posts|Notification


« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: GPS data  (Read 112 times)
NSbrown
New Member
Image


member is offline

Avatar




PM


Posts: 15
xx GPS data
« Thread started on: Jan 9th, 2018, 08:30am »

Hello all,

how can i get windows internal/external gps location data as string or txt file?
User IP Logged

Brandon Parker
Moderator
ImageImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 1123
xx Re: GPS data
« Reply #1 on: Jan 9th, 2018, 09:02am »

You could try parsing the following and use Google to try an retrieve the coordinates for. It may/ may not be close enough and if not you can use a GPS module and microcontroller to communicate the true GPS coordinates back to the computer via serial communications with Liberty BASIC.

Code:
Print HTTPGet$("https://www.google.com/maps/search/my+gps+location") 



{:0)

Brandon Parker
User IP Logged

Windows 7 Home Premium 64-bit Intel(R) Quad Core(TM) i5 CPU M 430 @ 2.27GHz 4GB DDR3 RAM
Rod
Global Moderator
ImageImageImageImageImage


member is offline

Avatar

Graphics = goosebumps!


PM

Gender: Male
Posts: 5618
xx Re: GPS data
« Reply #2 on: Jan 9th, 2018, 10:19am »

A quick browse tells me this might be simple might be complex. The complexity comes from gaining permission to access the device and query it.

There is a 32 bit dll that is being phased out and a massive new API interface that looks pretty daunting.

But first off tell us where your device is, is it embedded in your phone/tablet or are you able to use an external device?

There are examples to search out that show you how to use an external device (USB) comm based.
User IP Logged

NSbrown
New Member
Image


member is offline

Avatar




PM


Posts: 15
xx Re: GPS data
« Reply #3 on: Jan 9th, 2018, 12:24pm »

Hi,
Tnx for replay an answer,
I going to test two windows 10 tablts.
one with built in gps device zebra ET50/ET55 https://www.zebra.com/gb/en/products/tablets/et50-55.html

And the other with external bluetooth GPS
http://gps.dualav.com/explore-by-lifestyle/racing/xgps150-for-car-racing-and-performance/

Is there a way to bypass from gaining permission to access the device?

Do you have a sample code that you can share?

Best regards


User IP Logged

Rod
Global Moderator
ImageImageImageImageImage


member is offline

Avatar

Graphics = goosebumps!


PM

Gender: Male
Posts: 5618
xx Re: GPS data
« Reply #4 on: Jan 9th, 2018, 1:47pm »

As far as I read the Dual Bluetooth device is Apple or Android specific, there appears to be no Windows variant. The integrated Zebra GPS probably needs a conversation with the manufacturers to get a fast start. Does it have a .dll? That's what you need to get it to talk to Liberty.

Integrated Windows GPS is all very new, so you are breaking new ground for Liberty.

USB based GPS has been done and is fairly easy. But it is not integrated and you would be plugging in a dongle.
User IP Logged

NSbrown
New Member
Image


member is offline

Avatar




PM


Posts: 15
xx Re: GPS data
« Reply #5 on: Jan 9th, 2018, 2:52pm »

DUAL GPS also supports Windows operating system.
The device is already connected to my windows via Bluetooth.
I can also see in the control panel - Bluetooth settings - the com port it use (com3).
Can you please direct me to an example LB code which can read the device data?

Best regards
User IP Logged

Rod
Global Moderator
ImageImageImageImageImage


member is offline

Avatar

Graphics = goosebumps!


PM

Gender: Male
Posts: 5618
xx Re: GPS data
« Reply #6 on: Jan 10th, 2018, 01:59am »

You may find the port is in use, you will have to experiment.

http://libertybasic.conforums.com/index.cgi?board=comport&action=display&num=1278181430&start=
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Rules|Home|Help|Search|Recent Posts|Notification

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls