-
Notifications
You must be signed in to change notification settings - Fork 174
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
NMEAgpsDriver #90
Comments
Can you post the log message for how it's crashing? |
Have you tried to reboot the device after installing your app? Maybe it is related to permissions. |
@Fleker |
The NmeaGpsModule works fine I'm having issues only with the NmeaGpsDriver |
Do you have the permission |
Yeah I have included that in the manifest file |
I'm not sure what else it could be. Can you post your stacktrace error? |
java.lang.RuntimeException: Unable to create service com.example.acer.integrated.GpsService: java.lang.SecurityException: Caller lacks required permission com.google.android.things.permission.MANAGE_GPS_DRIVERS |
I'm getting this line in the error, but I have included that line in the manifest file, I.m sorry I don't know how to post the stacktrace error |
Can you post the contents of your manifest file? The permission tag may be in the wrong spot. |
|
So you have done the following, in this order:
And you're still seeing a security issue? What developer preview is running on the device, and what device is it? |
It worked, after I rebooted it, sorry and thank you, is there any way to do it without a reboot ?? |
At the moment rebooting is the current way to solve this while in development mode. |
I tried connecting a GPS via USB, to the Pi. and I checked the available UART ports |
03-27 07:23:14.741 2072-2072/? I/main: type=1400 audit(0.0:190): avc: denied { write } for name="trace_marker" dev="tracefs" ino=47 scontext=u:r:zygote:s0 tcontext=u:object_r:debugfs_tracing:s0 tclass=file permissive=1 |
This is an unrelated issue relating to the usage of the driver.
|
Do you have any idea what might be going wrong?/ |
I'm not sure immediately what's going on. What GPS module are you connecting? Is it an NmeaGpsModule? |
Yeah it is an NMEA Gps module , it connects via the USB |
You may need to take a look at what bytes are being sent and log that to see if there's something happening there. |
What all NMEA 2.0 sentences does this driver use to figure out the location? |
Are you still experiencing issues with your GPS module? If so, please provide a link to the datasheet of the device you are using. The stack trace provided indicates it's not sending properly encoded NMEA data (or additional data the driver doesn't recognize). |
NO, I'm not facing the issue now, I was using a neo-8M GPS Module. But I think the driver was written for neo-6M GPS modules. |
my program crashes when i try to register the nmeagpsdriver can someone please help me
The text was updated successfully, but these errors were encountered: