# Enable all script error messages
ErrorLevel ( "warn" )
# -----------------------------------------
# Adjust following variables to your system:
NAVI_SW_WINDOW_TITLE = "
Navigon"
NAVI_SW_PROCESS_NAME = "
NAVIGON.exe"
# If Navi SW already running, then bring Navi SW into foreground and exit this script
If ( ProcExists( NAVI_SW_PROCESS_NAME ) = TRUE )
Show( NAVI_SW_WINDOW_TITLE )
Exit
EndIf
# INSTALLDIR must contain: MixSerDrv.dll , mixser_tmc.bin, activatedevice.exe
INSTALLDIR = "\Storage Card\MixSer"
# MIXSER_PORT must be a free COM port number in your system
# Set the TMC port of your navigation software to this port!
MIXSER_PORT = 6
# COM port name and baudrate of the TMC chip
TMC_PORT = "COM1:"
TMC_BAUD = 38400
# If AVANTEQ TMC chip, then uncomment following:
#TMC_PORT = "AVQ1:"
# Optional: Your favorite FM frequency. MixSerDrv will tune to this frequency when MixSerDrv is activated
# Examples: 10520 means 105.2 Mhz; 9440 means 94.4 MHz, etc.
TMC_START_FREQ = 10520
# Optional: In case MixSerDrv does not work properly, try with following lines set to 1
# e.g. Wistron chips need them to be 1
# Skip sending initialisation commands to TMC chip
TMC_SKIP_INIT = 0
# MixSerDrv should not wait for responses from TMC chip after sending commands
TMC_NOWAIT_FOR_RESPONSE = 0
# Optional: GNS and AVANTEQ TMC chip only: Scan for next FM station if no TMC data received for x milliseconds
# value of 0 deactivates this function
GNS_TMC_DATA_TIMEOUT = 10000
# Navigation software executable
NAVI_SW_PATH = "\Storage Card\
Navigon\
NAVIGON.exe"
# If DEBUG is 1 then a log file is written into INSTALLDIR every time when MixSerDrv is installed
DEBUG = 0
# -- Install MixSerDrv: Start ----------------------------------------
# MixSerDrv used as a Serial Port Sniffer (deactivates all TMC functionality!)
# GPS_PORT <==> MixSerDrv <==> MIXSER_PORT
# GPS_PORT = "COM2:"
# GPS_BAUD = 57600
# GPS_SNIFF_MODE = 1
# copy MixSerDrv driver DLL to Windows directory, if not already exists
If ( FileExists("\Windows\MixSerDrv.dll") = FALSE )
Copy( INSTALLDIR & "\MixSerDrv.dll", "\Windows\MixSerDrv.dll", TRUE )
Copy( INSTALLDIR & "\ATMC_CE.DLL", "\Windows\ATMC_CE.DLL", TRUE )
Copy( INSTALLDIR & "\AVQTMC.DLL", "\Windows\AVQTMC.DLL", TRUE )
Copy( INSTALLDIR & "\TMCGPS.DLL", "\Windows\TMCGPS.DLL", TRUE )
EndIf
# write settings for MixSerDrv to registry
RegWriteString( "HKLM", "\Drivers\MixSer", "FriendlyName", "MixSerDrv" )
RegWriteString( "HKLM", "\Drivers\MixSer", "Dll", "MixSerDrv.dll" )
RegWriteString( "HKLM", "\Drivers\MixSer", "Prefix", "COM" )
RegWriteDWord ( "HKLM", "\Drivers\MixSer", "Index", MIXSER_PORT )
RegWriteString( "HKLM", "\Drivers\MixSer", "InstallPath", INSTALLDIR )
RegWriteString( "HKLM", "\Drivers\MixSer", "TmcPortName", TMC_PORT )
RegWriteDWord ( "HKLM", "\Drivers\MixSer", "TmcBaudRate", TMC_BAUD )
RegWriteDWord ( "HKLM", "\Drivers\MixSer", "TmcStartFreq", TMC_START_FREQ )
RegWriteDWord ( "HKLM", "\Drivers\MixSer", "TmcSkipInit", TMC_SKIP_INIT )
RegWriteDWord ( "HKLM", "\Drivers\MixSer", "TmcNoWaitForResponse", TMC_NOWAIT_FOR_RESPONSE )
RegWriteDWord ( "HKLM", "\Drivers\MixSer", "GnsTmcDataTimeout", GNS_TMC_DATA_TIMEOUT )
RegWriteDWord ( "HKLM", "\Drivers\MixSer", "DebugMode", DEBUG )
RegWriteDWord ( "HKLM", "\Drivers\MixSer", "GpsSniffMode", GPS_SNIFF_MODE )
#RegWriteString( "HKLM", "\Drivers\MixSer", "GpsPortName", GPS_PORT )
#RegWriteDWord ( "HKLM", "\Drivers\MixSer", "GpsBaudRate", GPS_BAUD )
# activate the new COM port
RunWait ( INSTALLDIR & "\activatedevice.exe", "\Drivers\MixSer" )
# -- Install MixSerDrv: End ----------------------------------------
# start the navigation software
Run ( NAVI_SW_PATH )
# wait for
Navigon to start up until the STVO disclaimer is shown
# you can lower the timeout if your
Navigon boots up faster than 30sec
Sleep( 30000 )
# press the "OK" button of
Navigon STVO disclaimer (un-comment the line for your screen resolution)
# 800x480 screen
# MouseClick(NAVI_SW_WINDOW_TITLE, 610, 430 )
# 480x272 screen
# MouseClick(NAVI_SW_WINDOW_TITLE, 337, 231 )
# 320x240 screen
# MouseClick(NAVI_SW_WINDOW_TITLE, 235, 212 )