PDA

View Full Version : FMI command example



ALFONZ_VAI@YAHOO.COM
07-05-2011, 11:09 PM
Hi all,

I would like to asking questions about FMI command, lets say for PVT protocol (page 46) stated:
Server to client:
49 Turn On PVT Data Command ID
50 Turn Off PVT Data Command ID

But, how to make that command when I want to send it via serial port?
Can someone give me the example?

Thanks in advance

ALFONZ_VAI@YAHOO.COM
07-07-2011, 03:24 AM
here is the received data

ASCII: 3@X B1…ByšBM?B…ByšBM?B桻ŠBŒ?
ORD: 16 51 64 88 249 160 66 49 133 203 66 121 154 237 66 77 63 165 66 1 133 203 66 121 154 237 66 77 63 165 66 1 26 230 161 187 191 138 238 213 66 140 208 253 63 30

According to Garmin FMI document:
first byte value is 16 which mean Data Link Escape
second is 51 which mean PVT Data Packet ID (client to server)
third is 64 which mean size of packet data?

how about the remaining values? can someone help me to figure it out?

Thanks

ANTONIXX
07-08-2011, 01:24 PM
Try to read this
http://developer.garmin.com/lbs/fleet-management/
Dowload Fleet Management Interface Developer Kit
extract files and start your journey with Fleet Management Controller.exe :)

ALFONZ_VAI@YAHOO.COM
07-10-2011, 09:38 PM
Hi ANTONIXX, thanks for your reply
I've downloaded the FMI sdk, including the documentation and source code, but actually I am not familiar with C++
The plan is to make my tracking device can communicate with the Garmin device, so I need to re-create the program code in other language (my tracking device is uses Python)
If you can provide me the example of command protocol, for example: what should I send to the Garmin device to turning on the PVT data, including the format (in hex, string, etc), it would be very helpful

Thanks again

FMISUPPORT
07-15-2011, 01:26 PM
ANTONIXX gave good advice. Simply run the Fleet Management Controller.exe program that comes in the developer kit. It is delivered in precompiled form, even though source code is also provided. Look at the packet log and you can easily see the packet contents.