Posts: 2
Joined: Mon Jun 16, 2008 3:17 pm
Location: France

Application locks up on HTC Cruise...

Mon Jun 16, 2008 3:30 pm


I wrote a small app in VB.Net that uses SerialTools v2.0.1 (build 102).

This apps runs perfectly on various machines (HTC P3300, HTC P3600, HTC P3450, etc...). But on the HTC P3650 (aka HTC Cruise), it freezes the machine on the 1st start. I have to disable SerialTools, connect to the COM Port (COM4) using the other regular way to talk to GPS COM ports (it doesn't work but it obviously does something !), then reactivate SerialTools on this same port and then it works perfectly !

Here's an extract of my VB code :

Public Const DEFAULT_BAUDRATE As Integer = 9600
Public Const DEFAULT_TIMEOUT As Integer = 5000
Public Const NMEA_RMC_TRAME_START As String = "$GPRMC"
Public Const NMEA_RMC_TRAME_END As String = vbCrLf

REM GPS handled by SerialTools.NET
gSerialToolsPort = New SerialNET.Port
With gSerialToolsPort
REM GPS port setup
.ComPort = CType(gNomSerialPortGPS.Substring(3), Integer)
REM OnRead events raised by the end of NMEA line

REM start GPS communications
On Error Resume Next
.Enabled = True
On Error GoTo 0
End With

On this P3650, the .Enable = True never ends on the 1st start !

Can some one help ???


Posts: 2
Joined: Mon Jun 16, 2008 3:17 pm
Location: France

RE: Application locks up on HTC Cruise...

Wed Jun 18, 2008 8:35 pm

Apparently, my problem comes from the a-GPS functionnality : if a-GPS is unchecked, it works perfectly !

Return to “SerialTools”