View Poll Results: Do you think to use this plugin ?

Voters
7. You may not vote on this poll
  • yes

    7 100.00%
  • no

    0 0%
Page 2 of 8 FirstFirst 12345678 LastLast
Results 11 to 20 of 76

Thread: RRSygicDrive (Sygic Fully Embedded into RideRunner)

  1. #11
    Mo' Programming Mo' Problems
    Auto Apps:loading...
    Sonicxtacy02's Avatar
    Join Date
    Sep 2004
    Location
    Woodbridge, VA
    Posts
    8,168
    Blog Entries
    51
    great all the need now is north american maps, or perhaps you can use the same ones as are available for Android/iPhone?
    mp3Car.com Senior Tech Blogger (Want a product reviewed? Contact me.)
    Find my plugins on the MP3Car App Store!
    Follow Me on Twitter or Facebook
    Live mp3Car Facebook Chat

  2. #12
    Variable Bitrate Dartman_71's Avatar
    Join Date
    Feb 2009
    Location
    Finland
    Posts
    425
    This is good stuff! Sygic plugin i mean, but I agree with boelle Sygic Drive is old so you should go with Sygic Fleet.
    Only thing which puzzle me is that Sygic doesn't make or support PC versions, at least not for consumers.
    All PC versions are conversions from something else. Damn mobile phones which has destroyed all good PC navigators.

    But if you can make plugin which can drag info from Fleet, like next turn and distance to next turn etc useful info to RR, I like it!

  3. #13
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,840
    Quote Originally Posted by Dartman_71 View Post
    This is good stuff! Sygic plugin i mean, but I agree with boelle Sygic Drive is old so you should go with Sygic Fleet.
    Only thing which puzzle me is that Sygic doesn't make or support PC versions, at least not for consumers.
    All PC versions are conversions from something else. Damn mobile phones which has destroyed all good PC navigators.

    But if you can make plugin which can drag info from Fleet, like next turn and distance to next turn etc useful info to RR, I like it!
    Yes, the good name is in fact Sygic Fleet !!!

  4. #14
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,840
    Quote Originally Posted by Sonicxtacy02 View Post
    great all the need now is north american maps, or perhaps you can use the same ones as are available for Android/iPhone?
    I am not certain but i think that the maps are the same !

  5. #15
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,840
    Quote Originally Posted by boelle View Post
    link to docs and api calls

    http://www.sygic.com/documentationfiles/index.html

    link to a page called sdk even thou it does not tell much

    http://www.sygic.com/en/business:sdk
    I know well these links, i work with

  6. #16
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,840
    This is the last email that i have recieved from Sygic !
    Dear Pierre,



    Thank you for your response.

    The offered model is within our licensing policy. However, as I have mentioned in one of my previous email, we currently do not have enough resources to match users who have purchased Sygic Fleet 10 license with your free Road Runner application. Thank you for your understanding. In a case that we will be interested in this kind of cooperation in the future, we will contact you.

    In a case of any other questions, please feel free to contact me.

    Best regards,

    http://www.sygic.com

    From: pierrot [mailto[email protected]]
    Sent: Tuesday, January 17, 2012 10:09 AM
    I am unhappy and i don't know what to do , but there answer is 'NO' .

  7. #17
    Variable Bitrate Dartman_71's Avatar
    Join Date
    Feb 2009
    Location
    Finland
    Posts
    425
    Quote Originally Posted by pierrotm777 View Post
    I am unhappy and i don't know what to do , but there answer is 'NO' .
    Of course answer is NO, you didn't offer any money to them, few thousands $$$ or more and they have different tone in their voice.
    Their all resources goes where money is, mobile phone application.

    Crack, hack or what ever you need to do to get stuff working, just kidding but there's not much else to do.

    And I like to know where in earth you can buy Sygic Fleet PC version? or can you use hacked PC version legaly with phone version license lol lol

    Edit: FLEET 10 In-dash Europe 169€... WOW not cheap.
    Last edited by Dartman_71; 01-17-2012 at 12:55 PM.

  8. #18
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,840
    I try do add the event function into this plugin but i have a problem when i convert the c# code to vb.net !
    This is my code:
    Code:
        Dim AppHnd As ApplicationAPI.CApplicationAPI.ApplicationHandler = New CApplicationAPI.ApplicationHandler(AddressOf NavHandlerLocal)
    
        Public Function Initialise_SygicInterface()
            Initialise_SygicInterface = ""
    
            If INI.ReadString("RRSygicDrive", "eventsactive", "") = "Yes" Then
                'HandlerEvent = NavHandlerLocal("", "")
            Else
                'HandlerEvent = Nothing
            End If
            If CApplicationAPI.InitApi(INI.ReadString("RRSygicDrive", "sygicpath", ""), AppHnd) = 0 Then
                'MessageBox.Show("Initialization Failed.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1)
                SDK.Execute("SETVAR;SYGICDRIVE_ERROR;Initialization Failed.")
            Else
                SDK.Execute("SETVAR;SYGICDRIVE_ERROR;The Sygic Interface is actived !!!")
                Select Case INI.ReadString("RRSygicDrive", "minimizeonstart", "")
                    Case "Yes"
                        CApplicationAPI.BringApplicationToBackground(err, 0) 'minimise Sygic au démarrage
                    Case "No"
                        CApplicationAPI.BringApplicationToForeground(err, 0) 'laisse Sygic au premier plan
                End Select
            End If
            'AddHandler AppHnd, AddressOf NavHandlerLocal
        End Function
    
    
        Private Sub NavHandlerLocal(ByVal nEventID As Integer, ByVal strData As IntPtr)
            Select Case nEventID
                Case ApplicationEvents.EVENT_ROUTE_USERCANCEL
                    ' Your Code
                Case ApplicationEvents.EVENT_WAIPOINT_VISITED
                    ' Your Code
                Case ApplicationEvents.EVENT_ROUTE_FINISH
                    ' Your Code
                Case ApplicationEvents.EVENT_ROUTE_COMPUTED
                    ' Your Code
                Case ApplicationEvents.EVENT_OFF_ROUTE
                    ' Your Code
                Case ApplicationEvents.EVENT_APP_EXIT
                    ' Your Code
                Case ApplicationEvents.EVENT_MAIN_MENU
                    ' Your Code
                Case ApplicationEvents.EVENT_CONTEXT_MENU
                    ' Your Code
                Case ApplicationEvents.EVENT_EXIT_MENU
                    ' Your Code
                Case ApplicationEvents.EVENT_CUSTOM_MENU
                    ' Your Code
                Case ApplicationEvents.EVENT_CHANGE_LANGUAGE
                    ' Your Code
                Case ApplicationEvents.EVENT_CHANGE_ORIENTATION
                    ' Your Code
                Case ApplicationEvents.EVENT_RADAR_WARNING
                    FlashMessage("Warning ... Speedcam      ")
                Case ApplicationEvents.EVENT_POI_WARNING
                    ' Your Code
                Case ApplicationEvents.EVENT_BORDER_CROSSING
                    ' Your Code
                Case ApplicationEvents.EVENT_SPEED_EXCEEDING
                    FlashMessage("Warning ... Speedlimit      ")
                Case ApplicationEvents.EVENT_BITMAP_CLICK
                    ' Your Code
            End Select
            Return
        End Sub
    The original code is:
    Code:
    C#/VB.NET in Visual Studio .NET2003/2005/2008/2010
    
        As first it is necessary to add reference to the Fleet SDK. Open the References in Solution Explorer and choose Add Reference… In the Add Reference window browse to the location of ApplicationAPI.NET.dll in the appropriate directory.
    
        Include the following line into your source code:
        using ApplicationAPI;
    
        Create a handling function, that will handle the events raised by the navigation application, like:
        public static void NavHandler(int nEventID, IntPtr strData)
        { //handle events here
        }
    
        Assign an event handler to the navigation application:
        public ApplicationAPI.CApplicationAPI.ApplicationHandler AppHnd = new CApplicationAPI.ApplicationHandler(NavHandler);
    
        Select a place in your application’s run, where the navigation will start. Ideally it is during the start up of the application. Call the following function like this:
        CApplicationAPI.InitApi("\\Storage Card\\Drive\\WindowsMobile\\Drive.exe", AppHnd, 0, 0, 240, 320);
    
        Make sure that your path is correct. Also select the appropriate resolution size. You may also run the application not full screen, allowing access to your underlying forms in parts of the screen.
    
        When the Init of the navigation is finished, put the application to background until it is needed. Call the following API function:
        BringApplicationToBackground(out Error, iTimeout);
    
        Add a shut down of the navigation somewhere at the end of your application:
        ApplicationAPI.CApplicationAPI.EndApplication(out Error, iTimeout);
        ApplicationAPI.CApplicationAPI.CloseApi();
        See the example projects in the SDK.

  9. #19
    Confusion Master
    Auto Apps:loading...
    Enforcer's Avatar
    Join Date
    Sep 2003
    Location
    If you go down to the woods today, You're sure of
    Posts
    14,622
    1. you don't state what the problem is.
    2. You never seem to put in debugging code in so you can see what the variables are at run time.




    Every program/plugin I write has the following module (or similar module)

    Code:
    Imports System.IO
    
    Module Reports
    
        Public DebugP As Boolean
        Public ErrorP As Boolean
        Public AppDataPath As String
        Public MyPath
        Public exeVersion As String
    
    
        Public Sub Debug_Print(ByVal OutText As Object)
    
            Dim dpfile As String, realoutput As Object
    
            If Not DebugP Then Exit Sub
    
    
            Try
    
                If AppDataPath <> "" Then
                    dpfile = AppDataPath & "debug.txt"
                Else
                    dpfile = MyPath & "debug.txt"
                End If
    
    
    
                Dim fs As New FileStream(dpfile, FileMode.Append, FileAccess.Write) 'Open outfilename For Output As #outfile
                Dim s As New StreamWriter(fs)
    
                realoutput = Now & "|" & OutText
                s.WriteLine(realoutput)
                s.Close()
    
            Catch errmsg As Exception
    
                Error_Log(" ")
                Error_Log("----------------------------------------------------")
                Error_Log("Routine : Debug Print")
                Error_Log(" ")
                Error_Log("Error Number : " & Err.Number & "   Error : " & errmsg.ToString)
                Error_Log(" ")
                Error_Log("----------------------------------------------------")
    
            End Try
    
    
        End Sub
    
        Public Sub Error_Log(ByVal OutText As Object)
    
            Dim elfile As String, realoutput As Object
    
            If Not ErrorP Then Exit Sub
    
            If AppDataPath <> "" Then
                elfile = AppDataPath & "error.log"
            Else
                elfile = MyPath & "error.log"
            End If
    
    
    
            Dim fs As New FileStream(elfile, FileMode.Append, FileAccess.Write) 'Open outfilename For Output As #outfile
            Dim s As New StreamWriter(fs)
    
            realoutput = Now & "|" & OutText
            s.WriteLine(realoutput)
            s.Close()
    
    
    
    
        End Sub
    
    
    End Module
    If I want debugging on I set debugp=true, if I want error logging I set errorp=true

    I then set Appdatapath an mypath at the beginning and then have loads of debug_print statements at critical points of the program to output the contets of variables so I can see what is going on.

    eg

    in your code above for NavHandlerLocal I would add


    Code:
    Private Sub NavHandlerLocal(ByVal nEventID As Integer, ByVal strData As IntPtr)
           
    debug_print ("nEventID = " & nEventID)
    
     Select Case nEventID

    Also try (excuse pun) using Try ... Catch ... End Try like so


    Code:
    Private Sub XYZ()
    
    Try
    
    
     some code here
    
    
    Catch errmsg As Exception
    
    
    Error_log ("Error in XYZ : " & errmsg.tostring)
    
    End Try
    
    end sub




    Waits for Mitchjs to come along and debunk all of the above. ;-)

  10. #20
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,840
    Thanks Enforcer for the code !
    My problem is how to add the handler event into the init function:
    This command init the interface without event:
    Code:
    CApplicationAPI.InitApi("C:\Program Files\Sygic FLEET Truck\Drive\WindowsXP\drive.exe", Nothing)
    and this command init the interface with the events option:
    Code:
    CApplicationAPI.InitApi("C:\Program Files\Sygic FLEET Truck\Drive\WindowsXP\drive.exe", NavHandlerLocal)
    But i have an error into the IDE , not when the plugin is running !
    I have updated the post# 18 with the original sdk code !

Page 2 of 8 FirstFirst 12345678 LastLast

Similar Threads

  1. Sygic Drive PC
    By _dopehead_ in forum Sygic Drive
    Replies: 164
    Last Post: 07-24-2011, 03:27 PM
  2. Sygic PNG
    By nelissen in forum GPS
    Replies: 0
    Last Post: 12-01-2010, 12:17 PM
  3. Any one use Sygic?
    By shawns in forum Sygic Drive
    Replies: 1
    Last Post: 01-10-2009, 08:13 PM
  4. help sygic
    By tezuya in forum GPS
    Replies: 0
    Last Post: 11-11-2008, 06:41 AM
  5. Sygic Drive and/or iGo
    By kfuglsang in forum Centrafuse
    Replies: 4
    Last Post: 03-25-2008, 11:23 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •