Table of contents:
Contents
-
Remote Commands
- Platform support
- DISPLAY A TEXT MESSAGE
- DISPLAY A QUESTION
- DISPLAY A CHAT MESSAGE
- FIND NEAREST ROADS
- SET NEAREST ROAD PARAMETER
- SEND DESTINATION AND/OR WAYPOINT(S) AND/OR DEPARTURE
- NAVIGATION ROUTE STATISTICS
- NAVIGATION INFORMATION
- STOP NAVIGATION
- GET LAST KNOWN GPS POSITION
- NAVIGATION SOUND
- SOUND WARNINGS (OBSOLETE - SEE NAVIGATION INFORMATION)
- CHANGE APPLICATION WINDOW SIZE
- MINIMIZE APPLICATION WINDOW
- MAXIMIZE APPLICATION WINDOW
- RESTORE MINIMIZED/MAXIMIZED APPLICATION WINDOW SIZE
- EXIT THE APPLICATION
- START/STOP SENDING GPS POSITIONS
- START/STOP RECEIVING GPS POSITIONS
- SET APPLICATION MODE
- MAP ICONS
- MAP POSITION AND ZOOM
- GET REMOTE SOFTWARE VERSION
- GET COMMUNICATION PROTOCOL VERSION
1. Remote Commands
COM/TCPIP connection has to be set up in Pocket/PC Navigator settings. Or in Android and iOS TCPIP server running on port 4242. This page refers only to "no VTU" type of connection.
Every command starts with '$' and ends with '\n' or "\r\n".
1.1. Platform support
Command
Windows
Android
iOS
DISPLAY A TEXT MESSAGE
yes
yes
yes
DISPLAY A QUESTION
yes
yes
yes
DISPLAY A CHAT MESSAGE
yes
no
no
FIND NEAREST ROADS
yes
no
no
SET NEAREST ROAD PARAMETER
yes
no
no
SEND DESTINATION AND/OR WAYPOINT(S) AND/OR DEPARTURE
yes
yes
yes
NAVIGATION ROUTE STATISTICS
yes
yes
yes
NAVIGATION INFORMATION
yes
no
no
STOP NAVIGATION
yes
yes
yes
GET LAST KNOWN GPS POSITION
yes
yes
yes
NAVIGATION SOUND
yes
no
no
SOUND WARNINGS (OBSOLETE - SEE NAVIGATION INFORMATION)
yes
no
no
CHANGE APPLICATION WINDOW SIZE
yes
no
no
MINIMIZE APPLICATION WINDOW
yes
yes
no
MAXIMIZE APPLICATION WINDOW
yes
yes
no
RESTORE MINIMIZED/MAXIMIZED APPLICATION WINDOW SIZE
yes
no
no
EXIT THE APPLICATION
yes
yes
yes
START/STOP SENDING GPS POSITIONS
yes
no
no
START/STOP RECEIVING GPS POSITIONS
yes
no
no
SET APPLICATION MODE
yes
yes
no
MAP ICONS
yes
no
no
MAP POSITION AND ZOOM
yes
yes
yes
GET REMOTE SOFTWARE VERSION
yes
yes
yes
GET COMMUNICATION PROTOCOL VERSION
yes
yes
yes
1.2. DISPLAY A TEXT MESSAGE
1.2.1. Format
$message="message";instant
1.2.2. Description
shows a message on remote device
1.2.3. Protocol version
- 1.0.0 or later
- 2.0.3 or later for "instant parameter"
1.2.4. Availability
- tcp/ip or com
1.2.5. Parameters
- parameter is a text enclosed in quotation marks to display on remote device
- when parameter "instant" is used the message is shown immediatelly; placeholder icon is displayed otherwise
1.2.6. Return values:
- "ok" on success or "error" when failed
- "busy" when the remote device is busy responding to another command
1.3. DISPLAY A QUESTION
1.3.1. Format
$message="message";ask;instant
1.3.2. Description
shows a question on remote device (can be answered with "yes" or "no)
1.3.3. Protocol version
- 1.0.0 or later
- 2.0.3 or later for "instant parameter"
1.3.4. Availability
- tcp/ip or com
1.3.5. Parameters
- parameter is a text enclosed in quotation marks to display on remote device
- when parameter "instant" is used the message is shown immediatelly; placeholder icon is displayed otherwise
1.3.6. Return values
- "yes" or "no" as the answer to question on success or "error" when failed
- "busy" when the remote device is busy responding to another command
1.4. DISPLAY A CHAT MESSAGE
1.4.1. Format
$chat="message"
1.4.2. Description
- sends a new message to chat window
1.4.3. Protocol version
- 2.0.0 or later
1.4.4. Availability
- tcp/ip or com
1.4.5. Parameters
- parameter is a text enclosed in quotation marks to display on remote device
1.4.6. Return values
- none
1.5. FIND NEAREST ROADS
1.5.1. Format
$nearest_streets=50.074525,14.409428;10;1000 $nearest_streets=50.074525,14.409428;10;1000;speed
1.5.2. Description
- finds N streets nearest to given coordinate within distance of X meters
- optional parameter "speed" results in returning speed limit to each found street
1.5.3. Protocol version
- 2.2.0 or later
- 2.3.3 or later with parameter "speed"
1.5.4. Availability
- tcp/ip
1.5.5. Parameters
- coordinate to find nearest streets to
- number of streets to return
- maximum meters from the position to look for streets
- optional "speed" to get speed limit
1.5.6. Return values
- "street_name_1";snapped_coordinate_1;...;"street_name_N";snapped_coordinate_N
- "street_name_1";snapped_coordinate_1;speed_limit_1;...;"street_name_N";snapped_coordinate_N;speed_limit_N
- snapped coordinate is coordinate on the found street nearest to the given starting point
- "busy" when the remote device is busy responding to another command
- "wrong device" when the communication is performed via unsupported device
- "error" when an error occurs
1.6. SET NEAREST ROAD PARAMETER
1.6.1. Format
$nearest_street_param=50.129812,14.457081;20;close $nearest_street_param=50.129812,14.457081;20;open $nearest_street_param=open_all
1.6.2. Description
- finds nearest street to given coordinate within distance of X meters and set a parameter
1.6.3. Protocol version
- 2.3.0 or later
- 2.3.1 for open_all
1.6.4. Availability
- tcp/ip or com
1.6.5. Parameters
- coordinate to find nearest streets to
- maximum meters from the position to look for streets
- action - close/open
1.6.6. Return values
- "ok" on success
- "failed" when no street is within gicen distance
- "error" when a parameter is incorrect
1.7. SEND DESTINATION AND/OR WAYPOINT(S) AND/OR DEPARTURE
1.7.1. Format
$destination=50.074525,14.409428;...;50.074421,14.409226;"Text";ask;navigate;departure;instant $destination=50.074525,14.409428,"waypoint name";...;50.074421,14.409226;"Text";ask;navigate;departure;instant $destination=clear
1.7.2. Description
- sends routing points with posible text message/question and possibility to start navigation on remote device
- each routing point can have a name
- each wypoint can have a radius (in meters) indicating that the route should go within x meters from given "checkpoint" (50.074525,14.409428,100 - at most 100 meters from the coordinate)
use format PCD:TN131XY instead of a coordinate value to place the routing point on given postcode
- clear to clear all waypoints
1.7.3. Protocol version
- 1.0.0 or later
- 1.4.1 or later for $destination=clear
- 2.0.1 or later departure parameter added (first coordinate is departure point)
- 2.0.3 or later for "instant parameter"
- 2.0.4 or later for waypoints names
- 2.0.5 or later to use postcodes as routing point location
1.7.4. Availability
- tcp/ip or com
1.7.5. Parameters
- route points order is waypoint1;..;waypointN;destination
- use parameter "Text" to display text
- use parameters "Text";ask to display question
- parameter "navigate" to start navigation on remote device
- when parameter "instant" is used the message is shown immediatelly; placeholder icon is displayed otherwise
1.7.6. Return values
- for a message "ok" on success or "error" when failed
- for a question "yes" or "no" as the answer to question on success or "error" when failed
- "failed" when a routing point could not be added (no road nearby)
- "busy" when the remote device is busy responding to another command
- "small buffer" when the command is too long
1.8. NAVIGATION ROUTE STATISTICS
1.8.1. Format
$navigation_statistics
1.8.2. Description
- returns distance (in meters) or time (in seconds) to destination and nearest waypoint
1.8.3. Protocol version
- 2.0.2 or later
1.8.4. Availability
- tcp/ip or com
1.8.5. Parameters
- none
1.8.6. Return values
- distanctance to waypoint, time to waypoint, distance to destination, time to destination
- example: 1000,60,2000,122
- "not navigating" when not currently navigating
1.9. NAVIGATION INFORMATION
1.9.1. Format
$navigation_info=recalculation_warning:on $navigation_info=recalculation_warning:off $navigation_info=sound_warning:on $navigation_info=sound_warning:off $navigation_info=waypoint_info:on $navigation_info=waypoint_info:off
1.9.2. Description
- turns specific navigation informations on or off
- "recalculation_warning:on" - returns "recalculating" whenever the route is recalculated
- "sound_warning:on" - enables sound warning before every navigation voice command (same as $sound_warning=start)
- "waypoint_info:on"
- returns "waypoint 1 reached", "waypoint 2 reached", "waypoint N reached" and "destination reached" whenever the route point is reached or
- returns "waypoint 1 missed", "waypoint 2 missed", "waypoint N missed" whenever the waypoint is missed
1.9.3. Protocol version
- 2.0.2 or later (recalculation_warning, sound_warning)
- 2.0.4 or later (waypoint reached info)
- 2.1.1 or later ("lost" status)
1.9.4. Availability
- tcp/ip or com
1.9.5. Parameters
- none
1.9.6. Return values
- "ok" on success or "error" when failed
- "busy" when the remote device is busy responding to another command
- "sound" when a navigation voice command occurs
- "recalculating" when a recalculation occurs
- "lost" when a route should be recalculated but is forbidden
1.10. STOP NAVIGATION
1.10.1. Format
$stop_navigation
1.10.2. Description
- stops navigation on remote device
1.10.3. Protocol version
- 1.2.0 or later
1.10.4. Availability
- tcp/ip or com
1.10.5. Parameters
- none
1.10.6. Return values
- "ok" on success or "error" when failed
- "busy" when the remote device is busy responding to another command
1.11. GET LAST KNOWN GPS POSITION
1.11.1. Format
$last_position
1.11.2. Description
- get last known gps data from remote device
1.11.3. Protocol version
- 1.2.0 or later
1.11.4. Availability
- tcp/ip or com
1.11.5. Parameters
- none
1.11.6. Return values
- when last position is known: latitude(degrees),longitude(degrees),altitude(meters),speed(km/h),course(degrees)
- when last position is unknown: "unknown"
- "error" when an error occured
- "busy" when the remote device is busy responding to another command
1.12. NAVIGATION SOUND
1.12.1. Format
$sound_volume=volume
1.12.2. Description
- set sound volume on remote device
1.12.3. Protocol version
- 1.2.0 or later
1.12.4. Availability
- tcp/ip or com
1.12.5. Parameters
- "on" - system volume does not change and navigation messages are played
- "off" - system volume does not change and navigation messages are not played
- volume values from 0 to 100 set operation system sound volume to 0-100 percent
1.12.6. Return values
- "ok" on success or "error" when failed
- "busy" when the remote device is busy responding to another command
1.13. SOUND WARNINGS (OBSOLETE - SEE NAVIGATION INFORMATION)
1.13.1. Format
$sound_warning=start $sound_warning=stop
1.13.2. Description
- request to send warning before a sound is played
1.13.3. Protocol version
- 1.2.0 or later
1.13.4. Availability
- tcp/ip or com
1.13.5. Parameters
- start - starts sending sound warning
- stop - stops sending sound warning
1.13.6. Return values
- "ok" on success or "error" when failed
- "busy" when the remote device is busy responding to another command
1.14. CHANGE APPLICATION WINDOW SIZE
1.14.1. Format
$window=left,top,width,height,[border|noborder]
1.14.2. Description
- set remote device application window size
1.14.3. Protocol version
- 1.0.0 or later
1.14.4. Availability
- tcp/ip or com
1.14.5. Parameters
- values are in pixels
1.14.6. Return values
- "ok" on success or "error" when failed
- "busy" when the remote device is busy responding to another command
1.15. MINIMIZE APPLICATION WINDOW
1.15.1. Format
$minimize
1.15.2. Description
- minimize remote device application window
1.15.3. Protocol version
- 1.0.0 or later
1.15.4. Availability
- tcp/ip or com
1.15.5. Parameters
- none
1.15.6. Return values
- "ok" on success or "error" when failed
- "busy" when the remote device is busy responding to another command
1.16. MAXIMIZE APPLICATION WINDOW
1.16.1. Format
$maximize
1.16.2. Description
- maximize remote device application window
1.16.3. Protocol version
- 1.0.0 or later
1.16.4. Availability
- tcp/ip or com
1.16.5. Parameters
- none
1.16.6. Return values
- "ok" on success or "error" when failed
- "busy" when the remote device is busy responding to another command
1.17. RESTORE MINIMIZED/MAXIMIZED APPLICATION WINDOW SIZE
1.17.1. Format
$restore
1.17.2. Description
- restore remote device minimized or maximizaed application window
1.17.3. Protocol version
- 1.1.0 or later
1.17.4. Availability
- tcp/ip or com
1.17.5. Parameters
- none
1.17.6. Return values
- "ok" on success or "error" when failed
- "busy" when the remote device is busy responding to another command si
1.18. EXIT THE APPLICATION
1.18.1. Format
$exit
1.18.2. Description
- exits the application
1.18.3. Protocol version
- 2.0.2 or later
1.18.4. Availability
- tcp/ip or com
1.18.5. Parameters
- none
1.18.6. Return values
- "ok" on success or "error" when failed
1.19. START/STOP SENDING GPS POSITIONS
1.19.1. Format
$gps_sending=start;nmea $gps_sending=stop
1.19.2. Description
- start/stop sending current nmea data
1.19.3. Protocol version
- 1.2.0 or later
1.19.4. Availability
- tcp/ip or com
1.19.5. Parameters
- start;nmea: start sending gps positions in nmea format
- stop: stop sending gps positions
1.19.6. Return values
- for start;nmea: gps positions in nmea format or "error" when failed
- for stop: "ok" on success or "error" when failed
- "busy" when the remote device is busy responding to another command
1.20. START/STOP RECEIVING GPS POSITIONS
1.20.1. Format
$gps_receiving=start $gps_receiving=stop
1.20.2. Description
- start/stop receiving nmea data
1.20.3. Protocol version
- 1.3.0 or later
1.20.4. Availability
- tcp/ip or com
1.20.5. Parameters
- start: start receiving gps positions in nmea format
- stop: stop receiving gps positions
1.20.6. Return values
- "ok" on success or "error" when failed
- "busy" when the remote device is busy responding to another command
1.21. SET APPLICATION MODE
1.21.1. Format
$set_mode=day $set_mode=night
1.21.2. Description
- set application mode
1.21.3. Protocol version
- 1.2.0 or later
1.21.4. Availability
- tcp/ip or com
1.21.5. Parameters
- day: show application in day mode colors
- night: show application in night mode colors
1.21.6. Return values
- "ok" on success or "error" when failed
- "busy" when the remote device is busy responding to another command
1.22. MAP ICONS
1.22.1. Format
$icon_new=42;50.074525,14.409428;"C:\My Pictures\Icons\icon1.ico" $icon_new=42;50.074525,14.409428;"C:\My Pictures\Icons\icon1.ico";"Text" $icon_move=42;50.074800,14.409627 $icon_move=42;50.074800,14.409627;"Text" $icon_delete=42 $icon_delete=all
1.22.2. Description
- create, move and delete an icon on map
1.22.3. Protocol version
- 1.4.0 or later
1.22.4. Availability
- tcp/ip or com
1.22.5. Parameters
- icon_new command : icon number, coordinate, path, [text]
- icon_move command : icon number, coordinate
- icon_delete command : icon number
- icon_delete command : "all" to remove all icons
1.22.6. Return values
- "ok" on success or "error" when failed
- "busy" when the remote device is busy responding to another command
1.23. MAP POSITION AND ZOOM
1.23.1. Format
$map_set_position=50.074525,14.409428,50 $map_set_position=50.074525,14.409428 other optional parameters: map_mode_3D, map_mode_2D, map_mode_no_change (map_mode_2D is default, map_mode_3D is valid only when navigating) gps_center_on, gps_center_off, gps_center_no_change (gps_center_off is default)
1.23.2. Description
- sets map view position to given coordinate and zoom
1.23.3. Protocol version
- 2.1.0 or later
- 2.3.2 for optional parameters map_mode_3D, map_mode_2D, map_mode_no_change, gps_center_on, gps_center_off, gps_center_no_change
1.23.4. Availability
- tcp/ip or com
1.23.5. Parameters
- latitude, longitude, zoom (zoom can be omitted)
1.23.6. Return values
- "ok" on success or "error" when failed
1.24. GET REMOTE SOFTWARE VERSION
1.24.1. Format
$software_version
1.24.2. Description
- returns remote device application software version
1.24.3. Protocol version
- 1.0.0 or later
1.24.4. Availability
- tcp/ip or com
1.24.5. Parameters
- none
1.24.6. Return values
- software version (e.g. 8.0.42) or "error" when failed
- "busy" when the remote device is busy responding to another command
1.25. GET COMMUNICATION PROTOCOL VERSION
1.25.1. Format
$protocol_version
1.25.2. Description
- returns communication protocol version
1.25.3. Protocol version
- 1.0.0 or later
1.25.4. Availability
- tcp/ip or com
1.25.5. Parameters
- none
1.25.6. Return values
- protocol version (e.g. 1.0.0) or "error" when failed
- "busy" when the remote device is busy responding to another command