Estou usando RXTX para ler dados da porta COM1 da minha maquina. Estou utilizandoo SO rWindow VISTA. Ja estou conseguindo ler o dispositivo normalmente, so que, está vindo coisas que não é pra vir do tipo:
b¼ ??\¦%¤%Æ&ÄDÆÆ?aFÆ???A
$À"F?fådÅAÆÆÆÅ?¤ÆfhF
ÁÎ?à®
$ F?fä$ÄÆÆÄ?ƹ?IF)?J?<b¤ ¢??¦ä¤Ä/Æ)ÆZ?jƪ?:
b??À? Æ
"$ F?&ä¤ÆÆÆÄJƹ?IF)?J?9
b¹ ??Z¦+¤*Á*Æ.ÅL¤.fgD
bÁ???àÆ
b¹ ??Z¦+¤+Æ.ÄLƾ?GF&?D? $Î"J?^å\Å)Æ&ÆU?dƦ?@
bÁÍ?à
$¼N?^åTÄ&Æ$?&FF?ÆÆ???@b¼ ??T¦%¤ÁFÆFÅ?¤Æf?<
b??Ì?¼Æ
$¾J?^æLÆ.Æ$?&FF??ÆD??A
"$à"?¦æ¤ÆÁ)Æ)ÅJ¤)fkF
¤äaĤ¤æ?Å????Ä$Í?
Eu esperava uma saida parecida como esta (Que na verdade, se eu conectar pelo hyperterminal do windows XP, ele me da essa saida também que é a correta):
$GPGGA,123613.000,2330.6267,S,04640.4329,W,1,09,0.8,740.9,M,-3.5,M,,0000*4A
$GPRMC,123613.000,A,2330.6267,S,04640.4329,W,0.07,51.90,041109,,,A*5F
SimpApp Poll
$GPGGA,123614.000,2330.6267,S,04640.4329,W,1,09,0.8,741.0,M,-3.5,M,,0000*45
$GPRMC,123614.000,A,2330.6267,S,04640.4329,W,0.07,48.11,041109,,,A*59
SimpApp Poll
$GPGGA,123615.000,2330.6267,S,04640.4329,W,1,09,0.8,741.1,M,-3.5,M,,0000*45
$GPRMC,123615.000,A,2330.6267,S,04640.4329,W,0.06,59.95,041109,,,A*55
SimpApp Poll
$GPGGA,123616.000,2330.6267,S,04640.4329,W,1,09,0.8,741.2,M,-3.5,M,,0000*45
$GPRMC,123616.000,A,2330.6267,S,04640.4329,W,0.06,51.40,041109,,,A*56
SimpApp Poll
$GPGGA,123617.000,2330.6267,S,04640.4328,W,1,09,0.8,741.4,M,-3.5,M,,0000*43
$GPRMC,123617.000,A,2330.6267,S,04640.4328,W,0.07,51.40,041109,,,A*57
qualquer sugestão é bem vinda