Re: Experimental Pocket RxTx version (0.9) & jAReC 0.9
Posted: Thu Nov 02, 2017 1:16 pm
Thank you! working! I continue to study!
We will discuss here only the projects presented on my web page (https://www.yo3ggx.ro)
https://forum.yo3ggx.ro/
root@DietPi:~# lsusb
Bus 001 Device 006: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T
Bus 001 Device 005: ID 0d8c:000c C-Media Electronics, Inc. Audio Adapter
Bus 001 Device 004: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@DietPi:~# java -version
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) Client VM (build 25.65-b01, mixed mode)
root@DietPi:~# java -jar jarecmini.jar
jAReC mini version 0.9.0-17
Current settings:
TCP port: 4442
Baudrate: 38400
CAT Port: /dev/ttyUSB0
PTT Port: /dev/ttyUSB0
Use Audio: true
Power over RTS: false
Power over DTR: false
PTT Mode: CAT
Secret Hash: 0A71AACD02C0BB123B818D0B6D36D6E7F84AC51E
Audio Out Interface: (0) - ALSA [default]
Audio In Interface: (3) - Set [plughw:1,0]
Use authentication: false
***********
Available com ports:
/dev/ttyAMA0
/dev/ttyUSB0
Available Audio IN devices:
(03) Set [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
then I run it:root@DietPi:~# java -jar jarecmini_v0.9.0-18.jar
jarecmini version 0.9.0-18 (2018/01/07--21:47:51)
Current settings:
TCP port: 4442
Baudrate: 38400
CAT Port: /dev/ttyUSB0
PTT Port:
Use Audio: true
Power over RTS: false
Power over DTR: false
PTT Mode: CAT
Audio Out Interface: (0) - ALSA [default]
Audio In Interface: (3) - Set [plughw:1,0]
Use authentication: false
***********
Available com ports:
/dev/ttyAMA0
/dev/ttyUSB0
Available Audio IN devices:
Available Audio OUT devices:
(00) ALSA [default]
(01) ALSA [plughw:0,0]
(02) ALSA [plughw:0,1]
(03) Set [plughw:1,0]
Unsupported devices:
(04) Port ALSA [hw:0]
(05) Port Set [hw:1]
If ok, set bAutostart=true in the jsn.cfg file and run again
root@DietPi:~# java -jar jarecmini_v0.9.0-18.jar
jarecmini version 0.9.0-18 (2018/01/07--21:50:19)
Listening for connections on 192.168.103.97:4442
invalid audio interface
Invalid audio selection!
Remote IP: 10.108.21.30
NoOp received
NET disconnected!
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted
but why the soundcard can be recognized by ver0.9.0-17yo3ggx wrote: Sun Jan 07, 2018 6:14 pm It seems you selected a wrong audio interface, not available to the Java subsystem. Try to connect an USB audio device and check with that one. Sometimes the internal one does not work. I have the same issue with Orange Pi.
73 Dan YO3GGX
Available Audio IN devices:
(03) Set [plughw:1,0]
Rogeryo3ggx wrote: Mon Jan 08, 2018 9:07 am I know, I have the same issue with RPi and internal audio. I can see the device listed, but in reality is not available to the java subsystem. I was not able to find the root cause yet, so I'm using a cheap USB audio interface.
73 Dan YO3GGX