-
Notifications
You must be signed in to change notification settings - Fork 22
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
location GetRaw return nil #10
Comments
please provide abit more information |
return every time only location based on CID |
sometimes it takes some time until a location is received/populated via dbus. have you tried to make a loop and wait certain time? Have you tried location.GetLocation() ? To be honest, I havent tested it deeply with modem manager, as I always used geoclue2 (I also made a go wrapper: https://github.com/maltegrosse/go-geoclue2 ) |
location.GetLocation() --- get empty response. But if i request location via DBUS i recieve normal and full answer |
Then there is probably an issue with my wrapper, have you tried to add some breakpoints there? |
Code entered here |
have you tried do wrap it in some loop and query it every 30 sec for 2-5 min? the dbus path are correct in my implementation? (I currently dont have a device around to test it on my side, sorry) |
https://github.com/maltegrosse/go-modemmanager/blob/master/ModemLocation.go#L17 this one defines the path |
it's true |
can you check the output of res? |
Issue here.
for view dbus.element
|
weird, as it should convert map[string]interface{} |
element.Value return
|
but you mentioned the tmpmap is empty: https://github.com/maltegrosse/go-modemmanager/blob/master/ModemLocation.go#L342 that means it something wrong with the casting. |
Value is not a map[string]interface{} |
i realy dont now why it's not cast to map. I realised it without map...
|
if you its working for you, you can provide a PR - thank you |
Cannot get Gpsraw location data on modemmanager 1.22
START Location
ThreeGppLacCi: Mcc: 250, Mnc: 01, Lac: 0, Ci: 5324821, Tac: 2D7B, GpsNmea: NmeaSentences: [$GPGSA,A,2,05,13,18,20,27,30,,,,,,,1.4,1.0,0.934 $GPRMC,075236.0,A,5545.261656,N,05200.831352,E,0.0,329.7,271224,11.9,E,A3E $GPGSV,3,1,11,05,28,284,48,09,15,150,21,13,28,303,46,15,00,319,417C $GPGSV,3,2,11,18,05,344,36,20,17,250,34,27,22,043,32,30,74,261,297B $GPGSV,3,3,11,07,63,097,,08,35,080,,14,34,210,42 $GPVTG,329.7,T,317.9,M,0.0,N,0.0,K,A20 $GPGGA,075236.0,5545.261656,N,05200.831352,E,1,06,1.0,166.0,M,-1.0,M,,*4B]
[3gppLacCi GpsRaw GpsNmea]
The text was updated successfully, but these errors were encountered: