Hi all,
Am trying to port GPS into android through I2C interface.
I have created gps.default.so library by making some changes in
sdk/emulator/gps/gps_qemu.c and Android.mk file.
But am facing an issue in registering my gps_fd,
its saying that operation not permitted.
Even i have given all the
Hi, Jack
Yes, I am a Chinese.
You are right, you should move the code " s->callbacks = *callbacks;"
ahead to gps_state_init, otherwise you can not invoke the callback
function create_thread_cb.
On 5月23日, 下午5时09分, jack wrote:
> Hi, Lionel Xu
> In my xxx_gps_init , i define like blow:
>
> n
Hi, Lionel Xu
In my xxx_gps_init , i define like blow:
nfs_gps_init(GpsCallbacks* callbacks)
{
GpsState* s = _gps_state;
if (!s->init)
gps_state_init(s);
if (s->fd < 0)
return -1;
MYD("Start init callbacks");
s->callbacks = *callbacks;
return 0;
}
Hi, All
Thanks for your attention, i have found the route cause of this issue,
that is
Before using the callback function like nmea_callback or
location_callback
on gingerbread, you should use the new-added callback function
create_thread_callback
instead of pthread_create or something like that
What i tracked up to now is in function nmea_callback in
com_android_server_location_GpsLocationProvider.cpp,
there is a line of code as
JNIEnv* env = AndroidRuntime::getJNIEnv();
while env just got NULL as return value of getJNIEnv, somebody
met this before?
Thanks a lots!
On 5月17日, 下午1时46分,
Thanks,
What i used is a gps module which connected with our soc via serial
port,
i think it is a little different from usb-based. My GPS hardware
abstraction layer code
was also referenced from sdk/emulator/gps/gps_qemu.c, and the
associated android.mk
is as follow:
LOCAL_PATH := $(call my-dir)
Does the usb_based gps emulate as a serial (usb to serial)?
And what 's the difference between usb_based gps or uart based gps ?
and could you show your Android.mk file to us?
在 2011年5月16日 下午5:38,Lionel Xu 写道:
> I just got the same problem as you said, which blocked my gps project
> nearly o
I just got the same problem as you said, which blocked my gps project
nearly one week
On 5月9日, 下午12时55分, white wrote:
> I was under the impression thatgps.default.so(or libgps.so) should go
> to the directory (/system/lib/) instead of (/system/lib/hw/).
>
> Also, is it important to name it as
I was under the impression that gps.default.so(or libgps.so) should go
to the directory (/system/lib/) instead of (/system/lib/hw/).
Also, is it important to name it as "gps.default.so" or it depends on
what we specify while editing ./build/target/board/beagleboard/
BoardConfig.mk e.g.
BOARD_GPS_L
Tarik,
The GPS code you are playing with there uses a socket pair to send
messages back and forth. When that piece of code starts up, it spawn a
thread that enter an while() loop and sits on the control socket. The
other commands gps_state_start, gps_state_stop and so on receive
messages from the
Still stuck on this. Any idea?
On Aug 24, 1:12 am, tarikk wrote:
> Hey there, I'm having slight confusion over how the GPS works exactly.
> I'm trying to implement GPS on an OMAP board.
>
> This is the error im getting when running a GPS app
> =
11 matches
Mail list logo