Google
  Web www.gpspassion.com


GpsPasSion LIVE!
www.flickr.com
This is a Flickr badge showing public photos from GpsPasSion Live !. Make your own badge here.

www.NaviBlog.com



Versions

Links/Liens




Portal/Portail
Rechercher

- -

Polls/Sondages
Sondage
Pour vous guider sur la Route :
GPS Mobile (SEM)
GPS Intégré
Smartphone
Autre
Voter  -  Résultat des votes
Votes : 1336




Club GpsPasSion
Soutenez le site!

USA: (US$)
EUROPE: (€)
Guide Paypal


GpsPasSion Forums
Home | Profile | Register/Enregist. | Active Topics | Search/Recherche | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Semsons Official Forums
 GPS software
 Problem in readind data from a USB device (Garmin
 New Topic  Reply/Répondre
 Printer Friendly
Author Previous Topic Topic Next Topic  

makTSPL

India
5 Posts

Posted - 07 août 2007 :  13:03:27  Show Profile  Reply with Quote
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  Show Profile  Visit semsons's Homepage  Reply with Quote
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.)
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply/Répondre
 Printer Friendly
Jump To:
GpsPasSion Forums © 2002-2013_GpsPasSion/Manzanite Go To Top Of Page
This page was generated in 0,42 seconds. Powered By: Snitz Forums 2000 Version 3.4.05