reading from serial port
807605Aug 17 2007 — edited Sep 11 2007HI,
I need to read data from virtual serial (rfcomm - BT GPS receiver). I connect to my gps using system command:
[root@localhost ~]# rfcomm connect /dev/rfcomm0 XX:XX:XX:XX:XX:XX
and this creates port at /dev/rfcomm0, when I do :
[root@localhost ~]# cat /dev/rfcomm0
I get:
M,0.0,0000*76
$GPGSA,A,1,,,,,,,,,,,,,50.0,50.0,50.0*05
$GPRMC,000009.999,V,0000.0000,N,00000.0000,E,,,101102,,*17
$GPGGA,000010.999,0000.0000,N,00000.0000,E,0,00,50.0,0.0,M,0.0,M,0.0,0000*7E
$GPGSA,A,1,,,,,,,,,,,,,50.0,50.0,50.0*05
and the only problem is what to do to read this sequences via java application. I obtained package comm2.0.3.zip , but have no idea what next. I would be grateful for any help.
best regards
joshua