Unfortunately I can't set up a build environment at the moment, otherwise I would submit a patch.
The current code in gps.c never sets the accuracy before passing data to callbacks->location_cb(). "All Locations returned by a LocationProvider must include at the minimum a lat, long, timestamps, and accuracy." So even though the LocationManager service recognizes that the GPS has a valid fix (GPS notification icon is solid on, not flashing) the Location information is discarded without being forwarded to applications because there is no accuracy set.
Here's how I think it should be changed:
gps_huawei.c has a function called nmea_reader_update_accuracy() that can be copied to gps.c.
nmea_reader_update_accuracy() should be called for GGA and GSA NMEA strings, using the "Horizontal dilution of position" token as argument.
Instead of calling _gps_state->callbacks->location_cb() when (r->fix.flags!=0), only call it when
(r->fix.flags&(GPS_LOCATION_LAT_LONG|GPS_LOCATION_HAS_ACCURACY))==(GPS_LOCATION_LAT_LONG|GPS_LOCATION_HAS_ACCURACY)
r->fix.flags should be reset to 0 only after calling location_cb() as the current code does. This means some NMEA messages may cause older data to be overwritten but that shouldn't really matter.
or alternatively if GPS_LOCATION_HAS_ACCURACY is not set when calling location_cb(), just set it and assign a fake accuracy (the makeComplete method in the diff I linked to uses 100.0f). Maybe this should be configurable via a property as well (ro.kernel.android.gpsfakeaccuracy) ?
has this been dealt with since this previous post? is there any patch/code available to fix gps in Android-x86 ?
It doesn't but I could add it real quick.
Keith
On Sat, Mar 21, 2015 at 11:20 PM, hatharry <hath...@gmail.com> wrote:
> Hi,
>
> does the patch support 4800 baud?
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Android-x86" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/android-x86/J8_ddp31BLA/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
03-27 15:51:02.104 D/gps_serial(1880): set_position_mode: mode=0 recurrence=0 min_interval=1000 preferred_accuracy=0 preferred_time=0
03-27 15:51:02.104 D/gps_serial(1880): serial_gps_start: called
03-27 15:51:02.104 D/gps_serial(1880): gps_state_start: could not send CMD_START command: ret=-1: Bad file number
03-27 15:51:05.682 D/gps_serial(1880): serial_gps_stop: called
03-27 15:51:05.682 D/gps_serial(1880): serial_gps_stop: called
03-27 15:51:05.682 D/gps_serial(1880): gps_state_stop: could not send CMD_STOP command: ret=-1: Bad file number
this is from logcat
Funny,
git apply --ignore-whitespace <patchname>
could you please try my build? everything should be setup. what hardware are you running mexus?
--
You received this message because you are subscribed to a topic in the Google Groups "Android-x86" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-x86/J8_ddp31BLA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-x86...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at http://groups.google.com/group/android-x86.
For more options, visit https://groups.google.com/d/optout.
Hi guys,
I am trying to implement gps.c driver in my project: https://github.com/kconger/android-serial-gps-driver
Things I have done so far:
1) I have included serial converter driver in my kernel
2) I have set the permissions to: /dev/ttyUSB* 0666 gps gps
3) I have added the build properties: ro.kernel.android.gps=ttyUSB0 and ro.kernel.android.gpsttybaud=4800
Also, when I run "cat /dev/ttyUSB0" there are no NMEA messages. I have to run "stty -F /dev/ttyUSB0 4800" every time if I want to see NMEA messages.
4.0-RC2 supports serial port GPS.
You need to specify the port and baudrate in the properties, e.g.,
ro.kernel.android.gps=ttyUSB0
ro.kernel.android.gpsttybaud=115200
2013/5/3 Keen Lee <achi...@gmail.com>:
> Hi,
>
> A big fan of android x86 here. Managed to install my Atom N230 D945GCLF as
> my carpc was a breeze.
>
> The problem that I am facing right now is to detect my serial port GPS.
>
> Any pointers to make it work? The R323 GPS comes default with the car and it
> would be great if it would be able to work with the android x86 4.0RC2.
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android-x86" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-x86...@googlegroups.com.
> To post to this group, send email to andro...@googlegroups.com.
> Visit this group at http://groups.google.com/group/android-x86?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
#define GPS_DEBUG 1
In my gps.c file.... I have rebuilt the iso.. the iso now has the new gps.default.so
I have added ro.kernel.android.gps ttyS0
And to.kernel.android.gpsttybaud 9600 in my init.sh... so what am I missing... Which service will invoke the gps.default.so? I'm really missing the logcat messages for my trouble shooting
This method no longer works. I've managed to port https://gitlab.com/gpsd/gpsd/-/tree/master/android
--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-x86...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-x86/8f9a47b2-4c81-4534-83cb-b028f9e10440%40googlegroups.com.
I'm not using GPS nor do I have corresponding hardware. However this statement triggered my curiosity. Do you know why it no longer works?
AFAICS, if you added module 'android.hardware.gnss@1.0-impl' to your build, this should provide a legacy passthrough HAL to the location server in system_server, which is based on the legacy gps.default.so module. This is just deduction from looking at the code, I may overlook something, hence why I asked why it no longer works.Michael.
On Sat, Apr 25, 2020 at 9:54 AM Luke <hath...@gmail.com> wrote:
This method no longer works. I've managed to port https://gitlab.com/gpsd/gpsd/-/tree/master/android--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to andro...@googlegroups.com.
Still no messages in logcat after enabling android.ha...@1.0-impl and android.ha...@1.0-service
On Sunday, April 26, 2020 at 8:03:59 AM UTC+12, Michael Goffioul wrote:
I'm not using GPS nor do I have corresponding hardware. However this statement triggered my curiosity. Do you know why it no longer works?
AFAICS, if you added module 'android.ha...@1.0-impl' to your build, this should provide a legacy passthrough HAL to the location server in system_server, which is based on the legacy gps.default.so module. This is just deduction from looking at the code, I may overlook something, hence why I asked why it no longer works.
Michael.On Sat, Apr 25, 2020 at 9:54 AM Luke <hath...@gmail.com> wrote:This method no longer works. I've managed to port https://gitlab.com/gpsd/gpsd/-/tree/master/android--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to andro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-x86/8f9a47b2-4c81-4534-83cb-b028f9e10440%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-x86...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-x86/0fe21f0d-5969-43e6-b0ff-8a72d713683c%40googlegroups.com.
You should check that the HAL is available: adb shell lshalAlso check logcat output after boot for (case-insensitive): location, gps, gnss
On Sat, Apr 25, 2020 at 9:25 PM Luke <hath...@gmail.com> wrote:
Still no messages in logcat after enabling android.ha...@1.0-impl and android.hardware.gnss@1.0-service
On Sunday, April 26, 2020 at 8:03:59 AM UTC+12, Michael Goffioul wrote:
I'm not using GPS nor do I have corresponding hardware. However this statement triggered my curiosity. Do you know why it no longer works?
AFAICS, if you added module 'android.hardware.gnss@1.0-impl' to your build, this should provide a legacy passthrough HAL to the location server in system_server, which is based on the legacy gps.default.so module. This is just deduction from looking at the code, I may overlook something, hence why I asked why it no longer works.
Michael.On Sat, Apr 25, 2020 at 9:54 AM Luke <hath...@gmail.com> wrote:This method no longer works. I've managed to port https://gitlab.com/gpsd/gpsd/-/tree/master/android--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to andro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-x86/8f9a47b2-4c81-4534-83cb-b028f9e10440%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to andro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-x86/0fe21f0d-5969-43e6-b0ff-8a72d713683c%40googlegroups.com.
Here's the output from logcat and lshal
On Sunday, April 26, 2020 at 1:48:46 PM UTC+12, Michael Goffioul wrote:
You should check that the HAL is available: adb shell lshalAlso check logcat output after boot for (case-insensitive): location, gps, gnss
On Sat, Apr 25, 2020 at 9:25 PM Luke <hath...@gmail.com> wrote:
Still no messages in logcat after enabling android.ha...@1.0-impl and android.ha...@1.0-service
On Sunday, April 26, 2020 at 8:03:59 AM UTC+12, Michael Goffioul wrote:
I'm not using GPS nor do I have corresponding hardware. However this statement triggered my curiosity. Do you know why it no longer works?
AFAICS, if you added module 'android.ha...@1.0-impl' to your build, this should provide a legacy passthrough HAL to the location server in system_server, which is based on the legacy gps.default.so module. This is just deduction from looking at the code, I may overlook something, hence why I asked why it no longer works.
Michael.On Sat, Apr 25, 2020 at 9:54 AM Luke <hath...@gmail.com> wrote:This method no longer works. I've managed to port https://gitlab.com/gpsd/gpsd/-/tree/master/android--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to andro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-x86/8f9a47b2-4c81-4534-83cb-b028f9e10440%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to andro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-x86/0fe21f0d-5969-43e6-b0ff-8a72d713683c%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-x86...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-x86/5053c5e3-1c2f-4399-b4be-b96fea2ea079%40googlegroups.com.
Ah, it seems Google is overwriting the location providers with its own. I was looking at AOSP code. When using AOSP, you'd see something like this in the logs at boot:05-04 03:41:41.467 1484 1484 D GnssLocationProvider: gnssHal 1.1 was null, trying 1.0This is coming from http://androidxref.com/9.0.0_r3/xref/frameworks/base/services/core/jni/com_android_server_location_GnssLocationProvider.cpp#1130 which is executed when the LocationManagerService component is started up in system_server. The 1.0 HAL is the one that would use gps.default.so module.Michael.
On Mon, May 4, 2020 at 7:28 AM Luke <hath...@gmail.com> wrote:
Here's the output from logcat and lshal
On Sunday, April 26, 2020 at 1:48:46 PM UTC+12, Michael Goffioul wrote:
You should check that the HAL is available: adb shell lshalAlso check logcat output after boot for (case-insensitive): location, gps, gnss
On Sat, Apr 25, 2020 at 9:25 PM Luke <hath...@gmail.com> wrote:
Still no messages in logcat after enabling android.ha...@1.0-impl and android.hardware.gnss@1.0-service
On Sunday, April 26, 2020 at 8:03:59 AM UTC+12, Michael Goffioul wrote:
I'm not using GPS nor do I have corresponding hardware. However this statement triggered my curiosity. Do you know why it no longer works?
AFAICS, if you added module 'android.hardware.gnss@1.0-impl' to your build, this should provide a legacy passthrough HAL to the location server in system_server, which is based on the legacy gps.default.so module. This is just deduction from looking at the code, I may overlook something, hence why I asked why it no longer works.
Michael.On Sat, Apr 25, 2020 at 9:54 AM Luke <hath...@gmail.com> wrote:This method no longer works. I've managed to port https://gitlab.com/gpsd/gpsd/-/tree/master/android--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to andro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-x86/8f9a47b2-4c81-4534-83cb-b028f9e10440%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to andro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-x86/0fe21f0d-5969-43e6-b0ff-8a72d713683c%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to andro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-x86/5053c5e3-1c2f-4399-b4be-b96fea2ea079%40googlegroups.com.
Luke <hath...@gmail.com> 於 2020年5月7日 週四 下午1:52寫道:
>
> Managed to get it working.
Thank you for the patch.
I've applied it.
> no 8.1 file list at here. https://osdn.net/projects/android-x86/releases/
Try https://www.android-x86.org/releases.html ?
> 在 2020年5月13日星期三 UTC+8下午5:25:08,Chih-Wei Huang写道:
>
> > Алексей Черепанов <alx...@gmail.com <javascript:>> 於 2020年5月12日 週二
> > 下午12:47寫道:
> >
> > > четверг, 7 мая 2020 г., 13:47:45 UTC+5 пользователь Chih-Wei Huang
> >
> > написал:
> > >> Luke <hath...@gmail.com> 於 2020年5月7日 週四 下午1:52寫道:
> > >>
> > >> > Managed to get it working.
> > >>
> > >> Thank you for the patch.
> > >> I've applied it.
> > >
> > > would you rebuild current Oreo and Pie releases with this patch, or we
> >
> > have to wait next releases?
> >
> > You may download and try the 8.1-r5 now.
> >
> > For pie-x86 wait the next coming 9.0-r3.
Antony.
--
Police have found a cartoonist dead in his house. They say that details are
currently sketchy.
--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-x86...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-x86/3e4f0a05-9045-4d89-943c-9364ad126097%40googlegroups.com.