(j)ava (A)udio and (Re)mote (C)ontrol

(was jAS2SecNET, jSerialNET)

A Java multiplatform application to securely make your transceiver available for CAT and audio over the LAN or WAN

Version 0.9.0-16

Dan Toma - YO3GGX - yo3ggx@gmail.com


Please read the Privacy Policy first.

Introduction

This is a very simple to use multi-platform Java application which can be used to redirect one of your computer serial ports and one audio port to Ethernet. In this way you will be able to connect to any serial port (embedded, USB/Serial modules or Bluetooth modules) remotely over the network and transport audio too with a special client. Some of my Android applications, are able to serially connect over the Ethernet so this can be a nice addition. PocketRXTX Android application can use the secure authentication feature to securely connect and control (CAT) your radio transceiver over Internet, with audio support.

Features

Current version of the application has the following features:

Note: In order to use the new features, Pocket RxTx must be at version 0.9 (minimum).

Limitations

Current version of the application has the following limitations:

WARNING!!!

Use this application on your own risk. I cannot be held responsible for any damage caused to your system.

Starting the application

Windows

To start the application in Windows, if you have previously installed Java Runtime (from Oracle), just click on the file (jAReC.jar). You will get the following window:



Linux

Using a terminal enter the following command when you are in the folder containing the program:

java –jar jAReC.jar

You will get a window similar withy this one:

Mac OS

Using a terminal enter the following command when you are in the folder containing the program:

java –jar jAReC.jar

You will get a window similar withy this one:

Note: This application was tested with Java SE Runtime Environment 8u74 downloaded from here:

http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html


Configuring Authentication and Encryption



From the File menu select “Security”. You will get a window similar with this one (on all platforms).

Check to select/unselect authentication. Encryption is not available in the current version, only secure authentication. Authentication is selected by default. Enter a secret in the white field. This must be a string longer than 3 chars and cannot contain ‘*’ char. When you are ready click “OK”

Configuring Audio



From the File menu select “Audio”. You will get a window similar with this one (all platforms).


You need to select Audio In and Audio Out device to point to the audio interface connected to the transceiver.

Check “Use Audio” and press OK.

Using the main application screen


When you hover the mouse over one of the window controls a tooltip will be displayed to better understand the meaning of that control.

In order to use the application, you need to configure the following parameters:

This will be used for CAT or CAT and PTT if you choose to control PTT through RTS or DTR signals from the same port.




Windows

Linux

Mac OS




Note: Please be aware that if you use audio, next TCP port after the one you entered will be used for audio streaming, so it must be a free one.


After you configure all 3 parameters, click START button to start listening on that port. If the chosen port is free, then the computer will start listening on that port and the window background will go yellow:



The IP address of the computer will be displayed in the upper part of the window as “MyIP: xxx.xxx.xxx.xxx”

Note: If your computer has multiple IP addresses, only the first one is displayed.

You can now remotely connect to that socket (pair of IP address and TCP port, in the upper example: 192.168.33.2:4444).

The application window background will go yellow when listening for remote connections.



When the remote connection is established successfully, the window background will go green and the remote IP address will be displayed instead of local IP, as in the following picture:



All the parameters are now saved in the configuration file. If you close and then start again the application, the form will be automatically filled with the saved parameters, so no need to configure them again.

If you want that the application to automatically go into the listening mode when started, check “Autostart”.

At any time, if you click on STOP button, the connection will be dropped and the window background will go back gray.


When transmitting (PTT pressed in Pocket RxTx), the background goes red and the microphone level will be shown in a bar graph, in the lower right part of the window.


You can simultaneously start several instances of the application, one for each serial port you want to access through the network. If you have multiple transceivers, you can start one instance if the application for each of them. The only requirement is to use different TCP port for each connection, in order to have unique sockets.

Serial Port can be not only a local physical serial port (like COM on the motherboard or USB/Serial interface) but even a virtual COM port, for example the one created by a Bluetooth interface. You can connect in this way to your Bluetooth device over the network.

The configuration file


When you first download the application from my web site, there is no configuration file. This is automatically created at first run, in the same folder as the jar file. You can edit that configuration file using a simple text editor (do not use Word as it can render the file unusable). The filename is jsn.cfg and the format is the following:


#Wed Sep 21 17:12:29 EET 2016

bUseAuthentication=true

bUseEncryption=false

iPTTtimeout=30

sBaudrate=38400

sPTTport=COM2

bAutostart=false

iPlayInterface=4

PTT=RTS

sCOMport=COM9

bUseAudio=true

iRecInterface=8

sHSecret=2743C71E3828333B277A8FE65050595BF13DD669

nwPort=4444

bRTSpower=true

bDTRpower=false


Each parameter is self-explanatory, corresponding with the ones from the GUI. The authentication/encryption password (secret) is stored as a SHA-1 hash, so you have no way to read it from the configuration file.

Setting RTS and/or DTR lines


Some CAT interfaces requires that RTS or DTR line from the COM port to be set. You can do this from the File menu.


Check the line you want to be active. This is saved in the application configuration file.


Application history



Version 0.1 (Feb 27th, 2014). First public release of the application



Version 0.4 (Aug 20th, 2014)

- add secure authentication support - cand be used only with Pocket RXTX Android application as a network client

- add full data encryption support (experimental, buggy)

- add audio support (for the moment only in the GUI, not functional yet)

- detect disconnection and go back to "waiting for connection" mode (yellow background)

Version 0.8 (Aug 23rd, 2015)

- bidirectional audio support with mic level meter

- name changed to jAReC, From (j)ava (A)udio and (Re)mote (Control)

- version number in sync with the Pocket RxTx Android application (for compatible features)

- deactivate START button when already started and STOP button when already stopped.

- changed and bigger icons for security and audio settings

- autostart function added

- reconnect to COM port and restart server if any parameter changed and previously connected

- 128 bytes symmetric key used for password encryption (instead of 64 in the previous version)

- compatible with Java 8

Version 0.9 (Mar 11th, 2016)

- PTT through CAT, RTS or DTR, on the same as CAT or different COM port

- PTT timer (limit transmission time to prevent locking the transceiver in TX if something happens with the link)

Bugs solved:

- if use authentication on jAReC and no auth on Pocket RxTx, CAT does not work but audio is started.

bidirectional audio support with mic level meter

- solve the combo box click bug

Version 0.9.0-16 (Sep 21st, 2016)

- heartbeat to check at ~8s the link with jAReC and restart listening if link dropped.

- Add RTS/DTR power for the interface (ex for FT-991)

- sync version number with the experimental Pocket RxTx version





jAReC_v0.9.0-16pdf Bucharest, Sep 21st 2016 – © Dan Toma – YO3GGX – yo3ggx@gmail.com

8