PPP Forum

Information and discussions about our products
Welcome to PPP Forum Sign in | Join | Help
in Search

Breaking changes: our new Navigation solution partner is Sygic

From TomTom to Sygic:
Over the years our former navigation provider reduced his SDK more and more to drive his own business solutions.
Finally a SDK is no longer available!
Looking for an alternative solution we found www.sygic.com/tomtom-sdk.
Why we recommend Sygic:
  • Good support at first hand
  • A modern Navigation Solution (with actual maps)
  • Native .NET support in the SDK (no need for third party solutions)
  • Many operating systems support including Linux and Android
  • A partner which is even able to adapt the Navigation solution to your needs.

Problem with Talking to the TTN

Last post 09-15-2006, 13:31 by ManniAT. 2 replies.
Sort Posts: Previous Next
  •  09-15-2006, 12:36 667

    Problem with Talking to the TTN

    Hi,

    Am using TTNCF5 for my GPS application.

    I get the current location of the user every 5 sec's. For this am using the following code.

     

    private void getCurrentLocationDetails()
            {
                try
                {
                    int result;
                    TTN.TError TError = new PPPTTCF5_2N2.TTN.TError();
                    TTN.TCurrentPositionInfo TCurpos = new PPPTTCF5_2N2.TTN.TCurrentPositionInfo();
                    // Start TTN before checking
                    if ((TTN.IsApplicationRunning(ref TError)) != 0)
                    {
                        txtLatitude.Text = "Raghuveer";
                        TTN.StartApplication();
                    }


                    result = TTN.GetCurrentPosition(ref TError, ref TCurpos);
                    if (result == 0)
                    {
                        if (TCurpos.eGpsStat == TTN.EGpsStatus.KGpsStateReceiving)
                        {
                            txtLatitude.Text = TCurpos.dLatitude.ToString();
                            txtLongitude.Text = TCurpos.dLongitude.ToString();
                            Console.WriteLine("Latitude = "+txtLatitude.Text);
                            Console.WriteLine("Longitude = "+txtLongitude.Text);
                        }

                        else
                        {
                            txtLatitude.Text = "0";
                            txtLongitude.Text = "0";
                        }
                    }

                    else
                    {
                        txtLatitude.Text = "0";
                        txtLongitude.Text = "0";
                    }
                }
                catch(Exception ex)
                {
                    Console.WriteLine(ex.Message);
                }
                finally
                {
                }
            }

    I have problem when i call "TTN.StartApplication();". I application cannot proceed from there and am not able to debug what the problem is.

    The navigator is up and running and i have TTNCom.dll and TTSDK5Link.dll placed in the \windows folder of my mobile device. Is there something am missing in this?

    Can anyone help me with this.

    Presence

  •  09-15-2006, 13:16 668 in reply to 667

    Re: Problem with Talking to the TTN

    Thanks...i have already got the solution.

    Sorry for posting this thread.

    Presence

  •  09-15-2006, 13:31 669 in reply to 668

    Re: Problem with Talking to the TTN

    Hi,

    not a problem - by the way - if you use TTNCF5.x there is no need for the TTNCom.dll or any other file from the SDK.

    All you need is: TTNCF...helper.dll and the component.
    Maybe this info makes deployment easier!

    Regards

    Manfred

    EDIT: I moved the thread from the "Ask Questions" forum to here!
    Ask question is
    as the descriptions says: Use this forum to ask questions about the forum
    the wrong place

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems