Application NoteGarmin® PND Integration with FOX32G/3G/4G seriesPart Number APP-0011
Revision A October 2019

Intellectual Property© 2019 Lantronix, Inc. All rights reserved. No part of the contents of this publication may
be transmitted or reproduced in any form or by any means without the written permissionof Lantronix.
Lantronix is a registered trademark of Lantronix, Inc. in the United States and othercountries.
Patented: www.lantronix.com/legal/patents/; additional patents pending.
All trademarks and trade names are the property of their respective holders.

Contacts
Lantronix, Inc.
7535 Irvine Center Drive, Suite 100
Irvine, CA 92618, USA
Toll Free: 800-526-8766
Phone:
949-453-3990
Fax:
949-453-3995
Technical Support
Online: www.lantronix.com/support
Sales Offices
For a current list of our domestic and international sales offices, go to the Lantronix website at www.lantronix.com/about/contact

Disclaimer
All information contained herein is provided “AS IS.” Lantronix undertakes no obligation toupdate the information in this publication. Lantronix does not make, and specificallydisclaims, all warranties of any kind (express, implied or otherwise) regarding title, noninfringement, fitness, quality, accuracy, completeness, usefulness, suitability orperformance of the information provided herein. Lantronix shall have no liability
whatsoever to any user for any damages, losses and causes of action (whether in contract
or in tort or otherwise) in connection with the user’s access or usage of any of theinformation or content contained herein. The information and specifications contained inthis document are subject to change without notice.

Garmin® PND Integration with FOX3-2G/3G/4G series

2Revision History
DateRev.

Comments

December 2017

1.0.0Initial version.

October 2019

A

Initial Lantronix document. Added Lantronix document partnumber, logo, contact information, and links.

For the latest revision of this product document, please check our online documentation atwww.lantronix.com/support/documentation.

Garmin® PND Integration with FOX3-2G/3G/4G series

3Table of Contents

About this document ......................................................................................... 5
Requirements ................................................................................................................ 5
Interface Garmin® PND with FOX3-2G/3G/4G ........................................................ 5
FOX3-2G/3G/4G device configuration setup for your server ................................. 6
Basic device configuration settings .................................................................................. 6
Enable communication between your Garmin® PND, FOX3-2G/3G/4G and yourserver .................................................................................................................................... 7

Developer references for integration of Garmin FMI protocol on your server ..... 7Garmin® PND Integration with FOX3-2G/3G/4G series

4

ABOUT THIS DOCUMENT
This guide shows how to connect a Garmin® PND device that support Fleet Management Interface (FMI)
to a Lantronix FOX3-2G/3G/4G device and how to configure your Lantronix device, manage the connection
to a Garmin® PND and send data to the device from your server.

Requirements
1. FOX3-2G/3G/4G device (with STR processor) running firmware version avl_2.13.0 and above orFOX3-2G/3G/4G device (with CT processor) running firmware version avl_3.1.0 and above.
2. Garmin® device with firmware that supports the Garmin® Fleet Management Interface Control
Specification
3. Garmin FMI 15 data cable
4. CA31 cable to interface Garmin® and FOX3-2G/3G/4G. (See wiring details in chapter below.) Thiscan be provided by Lantronix. Contact technical support.
5. A remote server.

Interface Garmin® PND with FOX3-2G/3G/4G
To interface both devices use CA31 cable. This cable has all you need, the RS-232 communicate interface
and power supply lines to power both devices. The 4pin connector provides an RS-232 interface (RX, XT)
to communicate with and the power pins (IN+, GND) to power up the Garmin® device. At the end of thiscable there is also the power supply lines that need to be connected to an external power source ranging
from +12 to +32 VDC (e.g. 12 VDC).

Figure 1:

Use the CA31 cable to interface a Garmin® device to FOX3/FOX3-3G device

To connect the Garmin® FMI cable with the CA31 you have to use a 4pin female dual row connector(the counter part to the 4pin connector on the CA31) and mount it at the and of Garmin® FMI cable.
The counter part with manufacturer part number "662004113322" can be ordered from third-party
distributors.

Garmin® PND Integration with FOX3-2G/3G/4G series

5Below a picture how the counter part to the 4pin connector looks like after assembled to the Garmin® FMIcable.

Figure 2:4pin female dual row connector assembled at the end of the FMI cable

Figure 3: Interlink the devices with the help of cables and apply power

FOX3-2G/3G/4G device configuration setup for your server
Basic device configuration settings
Follow these steps to configure the device and connect to a remote server:
TO DO

Device settings via PFAL commands

NoticesEnter GPRS settingsand send to device$PFAL,Cnf.Set,GPRS.APN=internet.t-d1.de

Enter the APN of your SIM card provider$PFAL,Cnf.Set,GPRS.QOS=3,4,3,0,0

Check this settings with your SIM card provide$PFAL,Cnf.Set,GPRS.QOSMIN=0,0,0,0,0

Check this settings with your SIM card provide$PFAL,Cnf.Set,PPP.USERNAME=t-d1

Enter the username of your SIM card provider$PFAL,Cnf.Set,PPP.PASSWORD=gprs

Enter the password of your SIM card provider$PFAL,Cnf.Set,GPRS.AUTOSTART=1

Set GPRS to start automaticallyEnter TCP settingsand send to device$PFAL,Cnf.Set,TCP.CLIENT.CONNECT=1,Server
Address,PortEnter the IP of the remote server. e.g. 33.216.222.188
and port e.g. 2442

Enter SIM PIN andsend to device$PFAL,Cnf.Set,DEVICE.PIN=1111

Enter the PIN of the inserted SIM card

$PFAL,Cnf.Set,TCP.CLIENT.LOGIN=2,1

Configure to send login data to the remote server on connect.
This setting is very important when using GpsGate server.
Otherwise no connection to the server will be done.

$PFAL,Cnf.Set,DEVICE.SERIAL0.FORCEON=on

Sets the first serial port into the Active mode. To keep the serial
communication link between the Garmin® PND and FOX32G/3G/4G permanently active, the first serial interface on
FOX3-2G/3G/4G should be set into the active mode.

Enter settings andsend to device

Garmin® PND Integration with FOX3-2G/3G/4G series

6Enable communication between your Garmin® PND, FOX3-2G/3G/4G and your server
Follow these steps to configure the device to receive the data from the Garmin® device and forward thisdata to a remote server and vice-versa:
TO DO

Enter settings
send to device

andConfigurealarm
settings and send todevice

Send this commandfrom your server todevice
Received data on
remote server sentfrom device

CONFIGURATIONDESCRIPTION$PFAL,Cnf.Set,DEVICE.SERIAL0.BAUDRATE=9600

Sets up the serial port baud rate to 9600bps. Garmin®
devices operate at a fixed bps of 9600 and to communicate
with each other they must have the same baud rate.

$PFAL,Cnf.Set,DEVICE.COMM.BINEVENT0=10,"0x10,0x03",iAll messages send out from the Garmin® device start with ahexadecimal 10 start-of-message character, and are
terminated by a checksum byte followed by hexadecimal 10
and 03 characters. This configuration is needed to set up abit mask for event generation on the serial port when
receiving such messages from Garmin® device.
0x10 = Data Link Escape and 0x03 = End of Text. The letter“i” means that both characters (0x10 and 0x03) are includedin the messages when it is sent to the remote server.

$PFAL,MSG.Mode.Serial0=60,B

Set up the first serial port into binary event. No other datais sent to the Garmin® device, except the messages received
from the remote server.

$PFAL,Cnf.Set,AL5=Sys.eSerialdata0:TCP.Client.Send,0,"gg.garmin=&(Serialdata0)"$PFAL,Cnf.Set,AL5=Sys.eSerialdata0:TCP.Client.Send,8,"gg.garmin=&(Serialdata0)"//without GPS data// with GPS data

This alarm (AL5) sends every message received on the first serial port from the Garmin® device to the remote
server on “Sys.eSerialdata0“ event. The message identifier “gg.garmin=” means, that the Garmin® messages are
identified on your server by “gg.garmin=“ identifier. The identifier should be implemented on your server.
$PFAL,MSG.Send.HexSerial0,0,"10,A,2,32,0,C2,10,3,10,A1,C,0,0,4,0,1,80,2,80,A,80,B,80,37,10,3,10,A1,2,5,0,58,10,3,10,A1,6,50,2,60,2,1,0,A4,10,3"
After sending the command above from your server to the Lantronix device, the remote server will receive thenthe data as below e.g. data from the Garmin device, without GPS data
$gg.garmin=[0x10][0xA1][0x1E][0x00]/S[0xB8]1[0x01][0x00][0x00][0x00]0[0x00][0x00][0x00][0x00][0x00][0x00][0x00][0x00][0x00][0x00][0x00][0x00][0x00][0x00][0x00]2[0x00][0x00][0x00]S[0x10][0x03]*82[0x0D][0x0A]

To send a message from your server to the Garmin® device connected to the FOX3-2G/3G/4G, use the PFAL
command $PFAL,MSG.Send.HexSerial0,0,"hex value” and enter the hexadecimal value, separated bycomma “,” that you want to send to the Garmin® device. The hex value should be one of the commands
from the Garmin® FMI protocol.
For example, to enable the FMI protocol on the Garmin device send from your server this command:$PFAL,MSG.Send.HexSerial0,0,"10,a1,12,21,00,7a,b5,08,31,48,61,6c,6c,6f,20,53,61,6c,65,68,00,c7,10,03"
On Garmin® device the connection icon should change from red to green.
After the connection is done, send from your server the following command containing a message to Garmin
device:$PFAL,MSG.Send.HexSerial0,0,"10,a1,12,21,00,7a,b5,08,31,48,61,6c,6c,6f,20,53,61,6c,65,68,00,c7,10,03"
On Garmin® device an icon showing an incoming message appears.
In this way, you can communicate from your server with Garmin devices using FOX3-2G/3G/4G devices as agateway between server and Garmin® devices.

Developer references for integration of Garmin FMI protocol on your serverIf you plan to integrate Garmin® FMI protocols on your server, refer to the link below:
http://developer.garmin.com/fleet-management/overview/Garmin® PND Integration with FOX3-2G/3G/4G series

7

If you can not find the required information or if you need help contact Garmin® developers using their
online form:
http://developer.garmin.com/

Garmin® PND Integration with FOX3-2G/3G/4G series8