Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

reading from serial port

807605Aug 17 2007 — edited Sep 11 2007
HI,
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 9 2007
Added on Aug 17 2007
3 comments
536 views