jarecmini on a raspberry

Here we will discuss any subject related to the Android Pocket Transceiver which is available for free download in Google Play Store
balans
Posts: 9
Joined: Sun Aug 19, 2012 12:46 am

jarecmini on a raspberry

Post by balans » Tue Sep 22, 2015 9:07 pm

Hi i am still in a beta stadium but i wanted to share my findings so far

I installed raspbian 2015
plugged in my USB PnP Audio Device since the raspberry does not have line or mic in.
check with the command alsamixer
toggle with F6 to see your usb card example USB PnP Audio Device or somewhat simulair
tune youre input and output levels up and exit
type alsactl store to save the settings

download jarecmini.zip
unpack and edit jsn.cfg

sCOMport=COM6

to
sCOMport=

and save

execute java -jar jarecmini.jar

and if al is ok you should see something like this

jAReC mini version 0.8.1
Please set valid Serial port in the jsn.cfg configuration file

IInvalid audio device
Current settings:
COM Port:
Baudrate: 38400
TCP port: 4443
Use audio: true
Play Interface: (0) - Device [default]
Use authentication: true
Secret: 2743C71E3828333B277A8FE65050595BF13DD669
***********

Available com ports:
/dev/ttyAMA0
/dev/ttyUSB0

Available Audio IN devices:
(03) Device [plughw:1,0]

Available Audio OUT devices:
(00) ALSA [default]
(01) ALSA [plughw:0,0]
(02) ALSA [plughw:0,1]


If ok, set bAutostart=true in the jsn.cfg file and run again

edit jsn.cfg

sCOMport=/dev/ttyUSB0 ( i use an external usb cable)

now notice the numbers with the Audio in and Out and edit these lines
iRecInterface=3
iPlayInterface=0

the 0 come off , and then save and execute again

root@raspberrypi:/home/pi/Downloads# java -jar jarecmini.jar
jAReC mini version 0.8.1

Listening for connections on 192.168.1.28:4443
Remote IP: 192.168.1.232
Start Audio


and then use Pocketrxtx to connect
I had to use the default audio out connector on the raspberry but the mic/line in works from the usb
I tried to make the audio out from the usb but failed miserably , but this way it worked so far and thats ok with me.
I do still have a problem with the CAT and my FT817 it starts with TX when jarecmini starts.
when i use pocketrxtx the audio from the mic works , when i start jarecmini with the CAT cable disconnected from the FT817
I have audio from the set on my android smartphone true Pocketrxtx.

So this projects looks very promising for a lowcost lowpower remote solution.

I hope to figure out whats wrong with the cat on my side or with Dan on the jarecminiside

User avatar
yo3ggx
Site Admin
Posts: 650
Joined: Wed Aug 15, 2012 8:30 pm

Re: jarecmini on a raspberry

Post by yo3ggx » Tue Sep 22, 2015 9:25 pm

Great!
Thank you for sharing your experience with the other users.

73 Dan YO3GGX

kd4kso
Posts: 13
Joined: Mon Nov 07, 2016 4:30 pm

Re: jarecmini on a raspberry

Post by kd4kso » Fri Nov 11, 2016 4:47 pm

I am new to Linux can you tell me how to unpack and edit jsn.cfg ? I get an error telling me to create jsn.cfg.

User avatar
yo3ggx
Site Admin
Posts: 650
Joined: Wed Aug 15, 2012 8:30 pm

Re: jarecmini on a raspberry

Post by yo3ggx » Fri Nov 11, 2016 5:44 pm

kd4kso wrote:I am new to Linux can you tell me how to unpack and edit jsn.cfg ? I get an error telling me to create jsn.cfg.
Hi,

You can follow the procedure described in the jarecmini user guide available here:
https://www.yo3ggx.ro/jAReC/doc09016/jA ... 9.0-16.pdf

Hope this help.
73 Dan YO3GGX

kd4kso
Posts: 13
Joined: Mon Nov 07, 2016 4:30 pm

Re: jarecmini on a raspberry

Post by kd4kso » Fri Nov 11, 2016 6:44 pm

I read that but doesn't tell me where I find the jsn.cfg file. I unzipped the file I downloaded and there was one file there. When I try to open it I am told to create the jsn.cfg file.

kd4kso
Posts: 13
Joined: Mon Nov 07, 2016 4:30 pm

Re: jarecmini on a raspberry

Post by kd4kso » Fri Nov 11, 2016 8:38 pm

I went back and downloaded jarec v8 and the jsn.cfg file was in that zip file. I have it going now just trying to get the network connection figured out.


Thanks
73
de kd4kso

User avatar
yo3ggx
Site Admin
Posts: 650
Joined: Wed Aug 15, 2012 8:30 pm

Re: jarecmini on a raspberry

Post by yo3ggx » Fri Nov 11, 2016 11:27 pm

Hi,
kd4kso wrote:I went back and downloaded jarec v8 and the jsn.cfg file was in that zip file. I have it going now just trying to get the network connection figured out.
Yes, this is the easiest way to build a config file and currently the only way to set the password hash.
What's the issue with the network?

73 Dan YO3GGX

kd4kso
Posts: 13
Joined: Mon Nov 07, 2016 4:30 pm

Re: jarecmini on a raspberry

Post by kd4kso » Sat Nov 12, 2016 4:54 pm

Sorry I put this in another thread

OK I got the jsn.cfg file from version 8 of jAReC. I set it up and run jarecmini.jar

pi@kd4kso:~/Downloads/jARec $ java -jar jarecmini.jar
jAReC mini version 0.8.1

Listening for connections on 192.168.0.234:4443
main._appstart (java line: 279)

The I start Pocket RxTx on my Andriod tablet and when I try to connect the console on the Pi does this:

java.lang.RuntimeException: java.lang.NoClassDefFoundError: javafx/beans/value/ChangeListener
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:114)
at anywheresoftware.b4a.BA$3.run(BA.java:178)
at anywheresoftware.b4a.keywords.SimpleMessageLoop.runMessageLoop(SimpleMessageLoop.java:30)
at anywheresoftware.b4a.StandardBA.startMessageLoop(StandardBA.java:26)
at anywheresoftware.b4a.keywords.Common.StartMessageLoop(Common.java:131)
at b4j.example.main._appstart(main.java:279)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:84)
at b4j.example.main.main(main.java:29)
Caused by: java.lang.NoClassDefFoundError: javafx/beans/value/ChangeListener
at b4j.example.main._mysrvsock_newconnection(main.java:693)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93)
... 12 more
Caused by: java.lang.ClassNotFoundException: javafx.beans.value.ChangeListener
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 18 more

I tried running jAReC v 9 with the same jsn.cfg and it won't recognize the comm port. I have the file set to /dev/USB0

pi@kd4kso:~/Downloads/jARec $ java -jar jAReCmini_v0.9.0-16.jar
Please set valid Serial port in the jsn.cfg configuration file

jAReCmini0.9.0-16
Current settings:
COM Port:
Baudrate: 38400
TCP port: 4443
Use audio: true
Play Interface: (0) - ALSA [default]
Rec Interface: (3) - CODEC [plughw:1,0]
Use authentication: true
Secret: 2743C71E3828333B277A8FE65050595BF13DD669
***********

Available com ports:
/dev/ttyAMA0
/dev/ttyUSB0

java.lang.NullPointerException
Available Audio IN devices:
(03) CODEC [plughw:1,0]

java.lang.NullPointerException
Available Audio OUT devices:
(00) ALSA [default]
(01) ALSA [plughw:0,0]
(02) ALSA [plughw:0,1]

If ok, set bAutostart=true in the jsn.cfg file and run again


This is what the cfg file actually says:

#Wed Sep 02 14:29:27 EEST 2015
bUseAuthentication=true
sHSecret=2743C71E3828333B277A8FE65050595BF13DD669
sBaudrate=38400
bUseAudio=true
bAutostart=true
sCOMport=/dev/ttyUSB0
nwPort=4443
iRecInterface=3
iPlayInterface=0

User avatar
yo3ggx
Site Admin
Posts: 650
Joined: Wed Aug 15, 2012 8:30 pm

Re: jarecmini on a raspberry

Post by yo3ggx » Sat Nov 12, 2016 7:47 pm

Hi,
kd4kso wrote:Sorry I put this in another thread

OK I got the jsn.cfg file from version 8 of jAReC. I set it up and run jarecmini.jar
Please confirm that you are trying to use jarecmini 0.8.x with Pocket RxTx 0.8.x
Take care that version 0.8 config is not good with 0.9.0-16, as some parameters are missing:
sPTTport=...
PTT=...
Please check jAReC 0.9.0-16 user guide here:
https://www.yo3ggx.ro/jAReC/doc09016/jA ... 9.0-16.pdf
at page 7 (configuration file)

Pocket RxTx 0.9.0-18 require jAReC 0.9.0-16, is not compatible with previous versions.
java.lang.RuntimeException: java.lang.NoClassDefFoundError: javafx/beans/value/ChangeListener
It looks like it tries to use javafx which is not available on your Raspberry Pi.
I tried running jAReC v 9 with the same jsn.cfg and it won't recognize the comm port. I have the file set to /dev/USB0
Please check the new parameters for 0.9.0-16.


73 Dan YO3GGX

kd4kso
Posts: 13
Joined: Mon Nov 07, 2016 4:30 pm

Re: jarecmini on a raspberry

Post by kd4kso » Sat Nov 12, 2016 10:03 pm

OK I have that part now. I copied the information to the cfg file. You told me to use jAReCmini. When I try to run the jarecmini file it doesn't see that I have a comm port listed. When I remove the jsn.cfg file and run it for the first time like the mini manual says it does not create the the file but instead tells me to create one. This is what my config file says

#Wed Sep 21 17:12:29 EET 2016
bUseAuthentication=true
bUseEncryption=false
iPTTtimeout=30
sBaudrate=38400
sPTTport=/dev/ttyUSB0
bAutostart=false
iPlayInterface=4
PTT=RTS
sCOMport=/dev/ttyUSB0
bUseAudio=true
iRecInterface=8
sHSecret=2743C71E3828333B277A8FE65050595BF13DD669
nwPort=4444
bRTSpower=true
bDTRpower=false

Post Reply