SeeedJP / WioLTEforArduino

GNU General Public License v2.0
33 stars 19 forks source link

No Support for GPS/GNSS data ? #24

Closed salmanfarisvp closed 5 years ago

salmanfarisvp commented 5 years ago

Is there any example sketch to access the GPS/GNSS data?

salmanfarisvp commented 5 years ago

https://github.com/Seeed-Studio/Wio_LTE_Arduino_Library this one supported GNSS but it doesn't have the Soracomm example.

ytsuboi commented 5 years ago

Hi @salmanfarisvp We are not providing GNSS support on this library because somehow the cellular module used on Wio LTE JP version doesn't have that function. So actually this is the first time to hear the GNSS support request. Which version of Wio LTE are you trying to use in where?

salmanfarisvp commented 5 years ago

Hi @ytsuboi As a part of the Hackster Soracom contest (https://www.hackster.io/contests/soracomcontest), I received the WIO LTE v1.3b Europe Kit, and for my application, I need both GSM and GNSS, but the lib provided with the doc can't find any information about GPS, but my module is capable of GPS. Is there any way to get the GPS coordinate data

version : WIO LTE v1.3b Europe Location : Kerala, INDIA

bluetiger9 commented 5 years ago

@salmanfarisvp, I did a try and got the GNSS example from Seeed-Studio/Wio_LTE_Arduino_Library working on the EU board.

I will try to port the GNSS functionality to this library. I will let you know when is done.

The GNSS functionality is implemented in this class: https://github.com/Seeed-Studio/Wio_LTE_Arduino_Library/blob/master/gnss.cpp

@ytsuboi, when done I think we can integrate the GNSS library here. So, at least non-JP users would be able to use it. It's strange why Quectel choose to not support GNSS for the EC21-J.

Thanks, Attila

salmanfarisvp commented 5 years ago

@bluetiger9 Thank you, I will also trying to implement .

bluetiger9 commented 5 years ago

Added basic GNSS functionality to the library. Getting coordinates (lat + long), altitude and UTC time are supported.

For anyone interested, the changes are located in the bluetiger9/WioLTEforArduino repository. They can be merged (copied) into the <HOME>/Arduino/libraries/Wio_LTE_for_Arduino folder.

Also added an example: Wio LTE for Arduino -> gnss -> GetGNSSLocation. This should be visible after the Arduino IDE is restarted.

salmanfarisvp commented 5 years ago

Thank @bluetiger9 it's working.

salmanfarisvp commented 5 years ago

@bluetiger9 , now it showing some error, can you please take a look .

## I/O Initialize.
### Power supply ON.
### Power supply GNSS.
### Turn on or reset.
### Enable GNSS.
### ERROR! ###
### Get GNSS location.
### ERROR! ###
### Get GNSS location.
### ERROR! ###

I used the example GNSS skecth

salmanfarisvp commented 5 years ago

@bluetiger9 @ytsuboi Please take a look https://github.com/SeeedJP/WioLTEforArduino/pull/27

matsujirushi commented 5 years ago

@salmanfarisvp

Can you enable WIO_DEBUG macro and get log at SeeedJP:master branch ?

https://github.com/SeeedJP/WioLTEforArduino/blob/master/src/WioLTEConfig.h#L17

bluetiger9 commented 5 years ago

Hi @matsujirushi,

I can confirm that the GNSS does not always works without the retry mechanism.

@salmanfarisvp

Can you enable WIO_DEBUG macro and get log at SeeedJP:master branch ?

https://github.com/SeeedJP/WioLTEforArduino/blob/master/src/WioLTEConfig.h#L17

Here are the debug logs:

Cheers, Attila

matsujirushi commented 5 years ago

Hi all, I modified EnableGNSS().

@bluetiger9 @salmanfarisvp Please test SeeedJP:dev-gnss code. Thanks.