Hi to All,
first of all i want to thank Martin for the great job about Movino, i'm pubblishing my post to inform every all thath i've solved the question about Location capabilities, signed application and the other troubles.
I've replaced the PositionListener class (and header) from the movino project with a new "Active Object" Class.
The new class, called by me GPSPeriodical, connect via standard Socket to the GPS device, grab raw data by Bluetooth connection and transform the RMC NMEA sentence in decimal latitude and decimal longitude.
After this, if i have the "engine" connected, using this code, i can send position to the movino server:
HTML Code:
TReal64 latitude(0.0);
TReal64 longitude(0.0);
TReal32 accuracy(10.0); //HardCoded value
latitude = GetLatitude();
longitude = GetLongitude();
if(latitude && longitude && iEngine && iEngine->IsConnectionReady())
{
TBuf8<50> buf;
buf.Append(2); // has latitude, real64
AppendReal64(buf, latitude);
buf.Append(2); // has longitude, real64
AppendReal64(buf, longitude);
buf.Append(1); // has accuracy, real32
AppendReal32(buf, accuracy);
iEngine->SendData(KMovinoDataPosition, buf);
}
I've used this link as start point: http://wiki.forum.nokia.com/index.ph..._Bluetooth_GPS
Good work and sorry for my English.
Daniele