RE: [OpenMap Users] GPS emulator, issue with serial port lock

From: Sutphin, William B CIV NUWC NWPT <william.sutphin_at_navy.mil>
Date: Thu, 25 Jun 2009 16:21:36 -0400

My only comment is why bother? You can test the encode / decoding of NMEA without a serial port as you know. The only part you can't test is RS-232 communications, which, if you're emulating, you're not really testing RS-232. RS-232 is very fickle. You can go from one machine to the next and not get the same results. So my point is unless you're really testing RS-232 using the hardware, you're not really testing it.

There are gadgets that turn USB into RS-232. You could try that. Otherwise, I wouldn't worry about it until you have the hardware to test.

Bill Sutphin
Naval Undersea Warfare Center, Division Newport
Bldg 1351, Room 211C
Newport, RI 02841
(401) 832-5813
DSN 432-5813

 

> -----Original Message-----
> From: owner-openmap-users_at_bbn.com
> [mailto:owner-openmap-users_at_bbn.com] On Behalf Of Mulone
> Sent: Thursday, June 25, 2009 15:38
> To: openmap-users_at_bbn.com
> Subject: RE: [OpenMap Users] GPS emulator, issue with serial port lock
>
>
> Thanks, I managed to send messages to the port, but the issue
> is still there... If I try to write and read the same port
> from 2 different applications, it just doesn't work. Maybe
> I'm just going the wrong way. I want to simulate a GPS sensor
> sending stuff, replacing GPS --> (write) serial port (read)
> --> Application with GPS software simulator --> (write)
> virtual serial port (read) --> Application
>
> I undestand the cross-cable solution, but I'm working on
> laptops and smartphones which don't even have one serial
> port. I managed to create 2 virtual serial ports, but then
> again I don't know how to redirect the output of the first to
> the second one.
> I have to bypass the physical layer in some way, but I
> haven't the foggiest on how to do it.
> Any hints?
>
> Thanks for your kind answers,
> Mulone
>
>
> Sutphin, William B CIV NUWC NWPT wrote:
> >
> > So you have two applications, one sending messages, the other
> > receiving, correct?
> >
> > If so, it sounds like both applications are trying to open the same
> > COM port. If you want to send thru the COM ports you'll need two
> > (COM1 and
> > COM2) of course, with a cross over cable (forgive me if I'm telling
> > you stuff you already know) between them. Or two computers back to
> > back, with same cross over.
> >
> > I've never used Java comm before (JNI - eeeuuu). You can use
> > HyperTerminal as a test inputter and outputter. You can
> have it load
> > a file of NMEA captured data an play it out once a second.
> >
> > Bill Sutphin
> >
> >
> >> -----Original Message-----
> >> From: owner-openmap-users_at_bbn.com
> >> [mailto:owner-openmap-users_at_bbn.com] On Behalf Of Mulone
> >> Sent: Wednesday, June 24, 2009 18:31
> >> To: openmap-users_at_bbn.com
> >> Subject: [OpenMap Users] GPS emulator, issue with serial port lock
> >>
> >>
> >> Hi guys,
> >>
> >> I'm trying to create a test environment for a GPS-enabled
> application
> >> based on OpenMap. I'd like to emulate a GPS sensor transmitting
> >> coordinates to a serial port (something like a GPS
> trace-player). I
> >> managed to read and write messages from and to a serial port on
> >> Windows through the comm library, but I can't get send
> messages from
> >> the GPS emulator and read it from OpenMap application,
> cause it gives
> >> out saying the serial port is in use.
> >> Any ideas? Are there better ways to emulate a GPS sensor?
> >>
> >> Specs: Windows Vista/XP, Eclipse 3.4.2, jre6,
> commons-net-1.4.1.jar,
> >> comm.jar, javax.comm.properties, win32com.dll
> >>
> >> Thanks in advance,
> >> Mulone
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/GPS-emulator%2C-issue-with-serial-port-l
> >> ock-tp24194029p24194029.html
> >> Sent from the OpenMap mailing list archive at Nabble.com.
> >>
> >> --
> >> [To unsubscribe to this list send an email to "majdart_at_bbn.com"
> >> with the following text in the BODY of the message "unsubscribe
> >> openmap-users"]
> >>
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/GPS-emulator%2C-issue-with-serial-port-l
> ock-tp24194029p24209776.html
> Sent from the OpenMap mailing list archive at Nabble.com.
>
> --
> [To unsubscribe to this list send an email to "majdart_at_bbn.com"
> with the following text in the BODY of the message
> "unsubscribe openmap-users"]
>



--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Thu Jun 25 2009 - 16:31:43 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:09 EDT