GUI and command line parameters

daduke's picture

Hi all,

 

I have both an iBlue 747 A+ and a Holux GPSport 245 and I would like to use 2 shell scripts

 

#!/bin/sh
cd /opt/bt747; ./bt747 -s 115200 -p /dev/ttyACM0 -f /root/BT747log.bin --device DEFAULT

and

 

#!/bin/sh
/opt/bt747/interceptty -q -s 'ispeed 38400 ospeed 38400' /dev/ttyUSB0 /dev/ttyS0 &
cd /opt/bt747; ./bt747 -s 38400 -p /dev/ttyS0 -f /root/BT747log_holux.bin --device HOLUX245

to start BT747 with the correct settings, respectively. However, as soon as I use command line parameters, BT747 doesn't display its GUI but seems to fall into some CLI mode. How can I tell it to draw the GUI even though there are command line parameters?

thanks a lot,

 

-Christian

mdeweerd's picture

The CLI and GUI interfaces

The CLI and GUI interfaces are two different interfaces to the same backend.  When you start BT747, there is some kind of detection to know which interface should be launched.

It would be possible to make them work together, but they are not currently designed like that.

 

There is a possibility to achieve what you want, albeit not exactly as you want it.

As commented in the 'run_j2se.sh' file, it is possible to provide the path to the settings file as a parameter to the java call:

#       -Dbt747_settings="bt747settings.pdb"

So you'ld have to start BT747 with something like this:"$JAVA" -Dbt747_settings="/path/to/settings1.pdb" $MEM_HEAP_OPTION $DEBUG_OPTION $NOPROXY_OPTION -Djava.library.path="${RXTXLIBPATH}" bt747.j2se_view.BT747Main $* &So you'ld have to create two 'settings.pdb' files (copy the default one) in different locations and configure BT747 differently in these sessions (just once for each session).

daduke's picture

Hi mdeweerd,   thanks a lot

Hi mdeweerd,

 

thanks a lot for your answer. This sounds like a good solution!

 

thanks,

-Christian

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <p> <br>
  • Lines and paragraphs break automatically.
  • Use the special tag [adsense:format:slot] or [adsense:format:[group]:[channel][:slot]] or [adsense:block:location] to display Google AdSense ads.
  • Images can be added to this post.

More information about formatting options

Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.