Re: Accessing Via Com port
Dave Sell,
I am able to see the GPS signal now. This is the code I used. but these signals are in some encyted format. I need to convert them to ascii strings. how to convert these signals to ascii string?
Since GPS is contiuously sending signals, I am using the DoEvents to pause so that I can see the signal in Text box.
Dim start
MSComm1.CommPort = 1
MSComm1.PortOpen = True
MSComm1.Handshaking = comNone
For i = 1 To 10
Text1.Text = MSComm1.Input
start = Timer
Do While Timer < start + 0.25
DoEvents
Loop
Next
Thanks
Nathan.
Re: Accessing Via Com port
Glad to hear your communications is working. Are you sure it's encrypted? How would you know that for sure? Maybe you can post an example of your comm input.
Re: Accessing Via Com port
This is what I see in the Text box.
ff0f3Ìà†à†à†<à†˜†~怘€
Nathan
Re: Accessing Via Com port
You can get garbage in your comm input if the baud rate is not set to match both sending and receiving devices. If you're sure they match, then I'm not sure you may be getting binary data. I doubt if it's encrypted, as you say.
You may have to contact the mfg of your GPS device to aqcuire the compatible protocol.
Re: Accessing Via Com port
Dave Sell,
I tried all the valid baud rates. None of them works. If it is binary data, how can I convert it to ascii string.
Thanks
Nathan.
Re: Accessing Via Com port
No one can tell you that except the mfg of the GPS device.
Re: Accessing Via Com port
Thank You Dave Sell,
It works for baud rate of 4800.
Thank You very much.
nathan.