| Versions |
 |
|
| Author |
Topic  |
|
|
makTSPL
India
5 Posts |
Posted - 07 août 2007 : 13:03:27
|
Dear All, I am developing an application in C#. This application communicates with Garmin Forerunner device. I have developed a demo for it, which shows Device software version. but I am not able to get Device history Data. What should I pass for getting history data.
Below is the code sample which I am using for fetching device information:
// Product data byte[] theProductPacket = new byte[] { 20, 0, 0, 0, 254, 0, 0, 0, 0, 0, 0, 0 };
byte[] thePacket = new byte[] { };
// For initializing device initDevice();
//Checking for device availability if (gHandle.ToInt32() == 0) { return "No Device Found"; }
// Sending Packet for starting asession SendPackets(theProductPacket);
// Infinite loop for Data retreival for (; ; ) { // Getting one by one Packets thePacket = GetPackets2(); if (Convert.ToInt32(thePacket.GetValue(0).ToString()) == 20 && Convert.ToInt32(thePacket.GetValue(4).ToString()) == 255) { break; } }
string Data = System.Text.ASCIIEncoding.ASCII.GetString(thePacket, 4, thePacket.Length - 4);
bool bSuccess = CloseHandle(gHandle);
I am sure that I have to change following: // Product data byte[] theProductPacket = new byte[] { 20, 0, 0, 0, 254, 0, 0, 0, 0, 0, 0, 0 };
I am not asking for providing code, but if anyone can post approach for it then it will be highly appreciated. |
|
|
Ads
|
|
|
semsons
USA
398 Posts |
Posted - 07 août 2007 : 22:40:47
|
Please try to contact Garmin Support below and see if they can offer you assistance directly.
North America
Hours of Operation Monday - Friday 8 a.m. - 7 p.m. Central time (closed holidays)
Product Support Phone 1-800-800-1020 (U.S.) 1-866-429-9296 (Canada) or (913) 397-8200
Europe
Hours of Operation Monday - Friday 8:30 a.m. - 5:30 p.m. U.K. time
Product Support Phone Free 0808 238 0000 (within U.K.) 0870-8501242 (within U.K.) +44-870-8501242 (outside U.K.) |
 |
|
| |
Topic  |
|
|
|
| This page was generated in 0,42 seconds. |
 |
|