Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not getting any gps data in GPSobj #16

Open
Swevrs opened this issue May 9, 2022 · 0 comments
Open

Not getting any gps data in GPSobj #16

Swevrs opened this issue May 9, 2022 · 0 comments

Comments

@Swevrs
Copy link

Swevrs commented May 9, 2022

when I got the hat working with the serial communication I have a problem. it seems that the GPSObj not stores the values
when I running the test codes for the gps data ex:

`GPSObj = gsm.GetActualGPS()

print('Latitude: %s' % str(GPSObj.Latitude))
print('Longitude: %s' % str(GPSObj.Longitude))
print('Altitude: %s' % str(GPSObj.Altitude))`

it just returning:
Latitude: 0.0
Longitude: 0.0
Altitude: 0.0

i have checked my gpsHat logfile and I can see that i get the gps cordinate from the gps reciver:

2022-05-09 19:57:28,604 - gsmHat.gsmHat - DEBUG - Sent to hat: AT+CGNSINF

2022-05-09 19:57:28,705 - gsmHat.gsmHat - DEBUG - Received Data: AT+CGNSINF
2022-05-09 19:57:28,715 - gsmHat.gsmHat - DEBUG - Received Data: +CGNSINF: 1,1,20220509175728.000,60.502652,15.313006,101.952,0.00,0.0,1,,0.7,1.0,0.7,,13,16,,,46,,
2022-05-09 19:57:28,715 - gsmHat.gsmHat - DEBUG - New GPS Data:
2022-05-09 19:57:28,717 - gsmHat.gsmHat - DEBUG - Received Data: OK
2022-05-09 19:57:28,717 - gsmHat.gsmHat - DEBUG - Lock Off
2022-05-09 19:57:29,419 - gsmHat.gsmHat - DEBUG - Sent to hat: AT+CPMS="SM"

2022-05-09 19:57:29,521 - gsmHat.gsmHat - DEBUG - Received Data: AT+CPMS="SM"
2022-05-09 19:57:29,523 - gsmHat.gsmHat - DEBUG - Received Data: +CPMS: 0,30,0,30,0,30
2022-05-09 19:57:29,524 - gsmHat.gsmHat - DEBUG - Received Data: OK

Someone that has this problem to or know how to do to fix it?

running on a raspberry pie zero 2 w with latest raspian lite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant