[pskmail] Re: Some test on interface to APRS viewer

  • From: Per Crusefalk <per@xxxxxxxxxxxx>
  • To: pskmail@xxxxxxxxxxxxx
  • Date: Mon, 27 Dec 2010 20:32:50 +0100

Hi Franco,

Yes, you are quite right and your java seems fine.
What getComPorts does is a call to gnu.io to get the ports:
portEnum = CommPortIdentifier.getPortIdentifiers();

The help explanation for that method is:

"Obtains an enumeration object that contains a CommPortIdentifier object
for each port in the system.

Returns:
Enumeration that can be used to enumerate all the ports known to the
system"

So it only gets a list of the ports in the current system, it does not
open them. I have not had an issue there. I often use an Asus EEE with a
usb com port and its been fine. It could be version related with gnu.io
perhaps?

But, you should be able to work anyway now as you can open the
preferences and set what you need and save, restart jpskmail and all
should be fine. I can have a look at moving the call to populate the com
port list into the checkbox or just add a button that lets the user get
the ports.

73 de Per, sm0rwo





mån 2010-12-27 klockan 19:11 +0100 skrev Franco Spinelli:
> Il 27/12/2010 18:25, Franco Spinelli ha scritto:
> >
> > So, at opening configuration panel, there is a call to rxtx library for
> > device query also if "GPSENABLED" is set to "no".
> >
> 
> I am not a java programmer so I apologize for any mistake.
> 
> In optionsdialog.java there is a
> 
> public optionsdialog(......
> 
> and
> 
>             // setup serial port list if gpsd is not running or not used.
>              if (!Main.HaveGPSD )
>                  getComPorts();
> 
> So I have no GPS and no GPSD. I think that this code go to getComPorts() 
> if HaveGPSD is false. But getComPorts() get a list of Com ports and (I 
> suppose) access Com port.
> I think that this list need to be obtained only if GPSENABLED is set.
> 
> Or I am bad in reading java code?
> 
> Regards
> 
> Franco Spinelli
> IW2DHW
> 



Other related posts: