Virtual null modem cable for Linux #linux #Cat_RigControl


d_ziolkowski
 

Hi to all:

OS Ubuntu 18.04, CubicSDR-2.5, WSJTX 2.1.0 . SDR Airspy HF+
 
I am trying to get rig control from WSJTX to Cusbic SDR. So i need to create a VSP pair. 
 
I am using WSJTX 2.1, as the wspr band hopping works.
 
I have tried socat, which creates the pair, but they are in dev/pts , not dev/ as other serial ports are. 
 
 
$ socat -d -d pty,raw,echo=0 pty,raw,echo=0
2021/09/03 14:14:23 socat[25506] N PTY is /dev/pts/1
2021/09/03 14:14:23 socat[25506] N PTY is /dev/pts/2
2021/09/03 14:14:23 socat[25506] N starting data transfer loop with FDs [5,5] and [7,7]
 
Does anybody know how to either:
 
Get wsjtx and Cubic SDR to see them as they are in dev/pts rather then dev/?
 
Move the ports to dev/
 
There does appera to be a command it socat to link a vsp to another port, which I tried but still no connectity.
 
 
Any help is appreciated
 
Thanks
Dan KC2STA


Bill Somerville
 

On 04/09/2021 17:59, d_ziolkowski wrote:
Hi to all:

OS Ubuntu 18.04, CubicSDR-2.5, WSJTX 2.1.0 . SDR Airspy HF+
I am trying to get rig control from WSJTX to Cusbic SDR. So i need to create a VSP pair.
I am using WSJTX 2.1, as the wspr band hopping works.
I have tried socat, which creates the pair, but they are in dev/pts , not dev/ as other serial ports are.
$ socat -d -d pty,raw,echo=0 pty,raw,echo=0
2021/09/03 14:14:23 socat[25506] N PTY is /dev/pts/1
2021/09/03 14:14:23 socat[25506] N PTY is /dev/pts/2
2021/09/03 14:14:23 socat[25506] N starting data transfer loop with FDs [5,5] and [7,7]
Does anybody know how to either:
Get wsjtx and Cubic SDR to see them as they are in dev/pts rather then dev/?
Move the ports to dev/
There does appera to be a command it socat to link a vsp to another port, which I tried but still no connectity.
Any help is appreciated
Thanks
Dan KC2STA
Hi Dan,

WSJT-X (actually Hamlib) expects a CAT connection to be a tty, a pty is not the same thing as it doesn't include the modem control signal lines. There may be some virtual null modem cable applications available although I am not sure if any are included in the Ubuntu repositories.

73
Bill
G4WJS.


Bill Somerville
 

On 04/09/2021 17:59, d_ziolkowski wrote:
Hi to all:

OS Ubuntu 18.04, CubicSDR-2.5, WSJTX 2.1.0 . SDR Airspy HF+
I am trying to get rig control from WSJTX to Cusbic SDR. So i need to create a VSP pair.
I am using WSJTX 2.1, as the wspr band hopping works.
I have tried socat, which creates the pair, but they are in dev/pts , not dev/ as other serial ports are.
$ socat -d -d pty,raw,echo=0 pty,raw,echo=0
2021/09/03 14:14:23 socat[25506] N PTY is /dev/pts/1
2021/09/03 14:14:23 socat[25506] N PTY is /dev/pts/2
2021/09/03 14:14:23 socat[25506] N starting data transfer loop with FDs [5,5] and [7,7]
Does anybody know how to either:
Get wsjtx and Cubic SDR to see them as they are in dev/pts rather then dev/?
Move the ports to dev/
There does appera to be a command it socat to link a vsp to another port, which I tried but still no connectity.
Any help is appreciated
Thanks
Dan KC2STA
Hi Dan,

BTW what happens if you use /dev/pts/1 (or whatever) in the WSJT-X "Settings->Radio->CAT Serial Port" field? Even though WSJT-X offers a list of available tty devices it will accept any input there.

73
Bill
G4WJS.


Michael Black
 

Actually the pts devices work just fine.  That's what I use in the simulators under development.

You just have to type in the /dev/pts device you want as it won't be in the pull down.
I hope CubicSDR also allows you to type in the device name.

I just tested hooking up via /dev/pts/1 and /dev/pts/2 to one of my simulators and it works OK.

Mike W9MDB




On Saturday, September 4, 2021, 01:51:16 PM CDT, Bill Somerville <g4wjs@...> wrote:


On 04/09/2021 17:59, d_ziolkowski wrote:
> Hi to all:
>
> OS Ubuntu 18.04, CubicSDR-2.5, WSJTX 2.1.0 . SDR Airspy HF+
> I am trying to get rig control from WSJTX to Cusbic SDR. So i need to
> create a VSP pair.
> I am using WSJTX 2.1, as the wspr band hopping works.
> I have tried socat, which creates the pair, but they are in dev/pts ,
> not dev/ as other serial ports are.
> $ socat -d -d pty,raw,echo=0 pty,raw,echo=0
> 2021/09/03 14:14:23 socat[25506] N PTY is /dev/pts/1
> 2021/09/03 14:14:23 socat[25506] N PTY is /dev/pts/2
> 2021/09/03 14:14:23 socat[25506] N starting data transfer loop with
> FDs [5,5] and [7,7]
> Does anybody know how to either:
> Get wsjtx and Cubic SDR to see them as they are in dev/pts rather then
> dev/?
> Move the ports to dev/
> There does appera to be a command it socat to link a vsp to another
> port, which I tried but still no connectity.
> Any help is appreciated
> Thanks
> Dan KC2STA

Hi Dan,

WSJT-X (actually Hamlib) expects a CAT connection to be a tty, a pty is
not the same thing as it doesn't include the modem control signal lines.
There may be some virtual null modem cable applications available
although I am not sure if any are included in the Ubuntu repositories.


73

Bill
G4WJS.






Pietro Molina
 

May be that a symbolic link (from /dev to /dev/pts) works. Have you tried?

Pietro I2OIM

Il sab 4 set 2021, 20:43 d_ziolkowski <dan.ziolkowski@...> ha scritto:
Hi to all:

OS Ubuntu 18.04, CubicSDR-2.5, WSJTX 2.1.0 . SDR Airspy HF+
 
I am trying to get rig control from WSJTX to Cusbic SDR. So i need to create a VSP pair. 
 
I am using WSJTX 2.1, as the wspr band hopping works.
 
I have tried socat, which creates the pair, but they are in dev/pts , not dev/ as other serial ports are. 
 
 
$ socat -d -d pty,raw,echo=0 pty,raw,echo=0
2021/09/03 14:14:23 socat[25506] N PTY is /dev/pts/1
2021/09/03 14:14:23 socat[25506] N PTY is /dev/pts/2
2021/09/03 14:14:23 socat[25506] N starting data transfer loop with FDs [5,5] and [7,7]
 
Does anybody know how to either:
 
Get wsjtx and Cubic SDR to see them as they are in dev/pts rather then dev/?
 
Move the ports to dev/
 
There does appera to be a command it socat to link a vsp to another port, which I tried but still no connectity.
 
 
Any help is appreciated
 
Thanks
Dan KC2STA




d_ziolkowski
 

Bill, Michael

I can't test at this time, CubicSDR will not allow me to enter a port manually. I have contacted the developer in regards to that issue. 

Thanks 

On Sat, Sep 4, 2021 at 2:54 PM Bill Somerville <g4wjs@...> wrote:
On 04/09/2021 17:59, d_ziolkowski wrote:
> Hi to all:
>
> OS Ubuntu 18.04, CubicSDR-2.5, WSJTX 2.1.0 . SDR Airspy HF+
> I am trying to get rig control from WSJTX to Cusbic SDR. So i need to
> create a VSP pair.
> I am using WSJTX 2.1, as the wspr band hopping works.
> I have tried socat, which creates the pair, but they are in dev/pts ,
> not dev/ as other serial ports are.
> $ socat -d -d pty,raw,echo=0 pty,raw,echo=0
> 2021/09/03 14:14:23 socat[25506] N PTY is /dev/pts/1
> 2021/09/03 14:14:23 socat[25506] N PTY is /dev/pts/2
> 2021/09/03 14:14:23 socat[25506] N starting data transfer loop with
> FDs [5,5] and [7,7]
> Does anybody know how to either:
> Get wsjtx and Cubic SDR to see them as they are in dev/pts rather then
> dev/?
> Move the ports to dev/
> There does appera to be a command it socat to link a vsp to another
> port, which I tried but still no connectity.
> Any help is appreciated
> Thanks
> Dan KC2STA

Hi Dan,

BTW what happens if you use /dev/pts/1 (or whatever) in the WSJT-X
"Settings->Radio->CAT Serial Port" field? Even though WSJT-X offers a
list of available tty devices it will accept any input there.

73
Bill
G4WJS.






--
Dan Ziolkowski KC2STA
SKCC #4290T
Ubuntu LINUX


Michael Black
 

Maybe a soft link to a device might work or a hard link?

ln -s /dev/pts/1 /dev/ttyS3
ln /dev/pts/1 /dev/ttyS3

Mike W9MDB





On Sunday, September 5, 2021, 10:27:11 AM CDT, d_ziolkowski <dan.ziolkowski@...> wrote:


Bill, Michael

I can't test at this time, CubicSDR will not allow me to enter a port manually. I have contacted the developer in regards to that issue. 

Thanks 

On Sat, Sep 4, 2021 at 2:54 PM Bill Somerville <g4wjs@...> wrote:
On 04/09/2021 17:59, d_ziolkowski wrote:
> Hi to all:
>
> OS Ubuntu 18.04, CubicSDR-2.5, WSJTX 2.1.0 . SDR Airspy HF+
> I am trying to get rig control from WSJTX to Cusbic SDR. So i need to
> create a VSP pair.
> I am using WSJTX 2.1, as the wspr band hopping works.
> I have tried socat, which creates the pair, but they are in dev/pts ,
> not dev/ as other serial ports are.
> $ socat -d -d pty,raw,echo=0 pty,raw,echo=0
> 2021/09/03 14:14:23 socat[25506] N PTY is /dev/pts/1
> 2021/09/03 14:14:23 socat[25506] N PTY is /dev/pts/2
> 2021/09/03 14:14:23 socat[25506] N starting data transfer loop with
> FDs [5,5] and [7,7]
> Does anybody know how to either:
> Get wsjtx and Cubic SDR to see them as they are in dev/pts rather then
> dev/?
> Move the ports to dev/
> There does appera to be a command it socat to link a vsp to another
> port, which I tried but still no connectity.
> Any help is appreciated
> Thanks
> Dan KC2STA

Hi Dan,

BTW what happens if you use /dev/pts/1 (or whatever) in the WSJT-X
"Settings->Radio->CAT Serial Port" field? Even though WSJT-X offers a
list of available tty devices it will accept any input there.

73
Bill
G4WJS.






--
Dan Ziolkowski KC2STA
SKCC #4290T
Ubuntu LINUX




d_ziolkowski
 

Mike-

tried the link suggestions, no luck..

ln -s /dev/pts/1 /dev/ttyS3
ln: failed to create symbolic link '/dev/ttyS3': File exists

ln /dev/pts/1 /dev/ttyS3
ln: failed to create hard link '/dev/ttyS3': File exists

so then I tried link to ttyS32, which does not exist:

 ln /dev/pts/1 /dev/ttyS32
ln: failed to create hard link '/dev/ttyS32' => '/dev/pts/1': Invalid cross-device link

tried tty64, which does not exist:

 ln /dev/pts/1 /dev/tty64
ln: failed to create hard link '/dev/tty64' => '/dev/pts/1': Invalid cross-device link

tried soft link:

ln -s /dev/pts/1 /dev/tty64
ln: failed to create symbolic link '/dev/tty64': File exists

but dev ls-l says:

lrwxrwxrwx  1 root    root            10 Sep  6 06:59 tty64 -> /dev/pts/1

but Cubic SDR only sees /dev/sXX

then I tried USB1 which does not exist
had to sudo:

lrwxrwxrwx  1 root    root            10 Sep  6 07:09 ttyUSB1 -> /dev/pts/1

Now cubic sdr sees ttyusb1, but

tried WSJTX connectivity, no luck,perhaps i need to change permission of the link from root to dialout

Thats all for now...

back later...Dan KC2STA 

On Sun, Sep 5, 2021 at 5:00 PM Michael Black via groups.io <mdblack98=yahoo.com@groups.io> wrote:
Maybe a soft link to a device might work or a hard link?

ln -s /dev/pts/1 /dev/ttyS3
ln /dev/pts/1 /dev/ttyS3

Mike W9MDB





On Sunday, September 5, 2021, 10:27:11 AM CDT, d_ziolkowski <dan.ziolkowski@...> wrote:


Bill, Michael

I can't test at this time, CubicSDR will not allow me to enter a port manually. I have contacted the developer in regards to that issue. 

Thanks 

On Sat, Sep 4, 2021 at 2:54 PM Bill Somerville <g4wjs@...> wrote:
On 04/09/2021 17:59, d_ziolkowski wrote:
> Hi to all:
>
> OS Ubuntu 18.04, CubicSDR-2.5, WSJTX 2.1.0 . SDR Airspy HF+
> I am trying to get rig control from WSJTX to Cusbic SDR. So i need to
> create a VSP pair.
> I am using WSJTX 2.1, as the wspr band hopping works.
> I have tried socat, which creates the pair, but they are in dev/pts ,
> not dev/ as other serial ports are.
> $ socat -d -d pty,raw,echo=0 pty,raw,echo=0
> 2021/09/03 14:14:23 socat[25506] N PTY is /dev/pts/1
> 2021/09/03 14:14:23 socat[25506] N PTY is /dev/pts/2
> 2021/09/03 14:14:23 socat[25506] N starting data transfer loop with
> FDs [5,5] and [7,7]
> Does anybody know how to either:
> Get wsjtx and Cubic SDR to see them as they are in dev/pts rather then
> dev/?
> Move the ports to dev/
> There does appera to be a command it socat to link a vsp to another
> port, which I tried but still no connectity.
> Any help is appreciated
> Thanks
> Dan KC2STA

Hi Dan,

BTW what happens if you use /dev/pts/1 (or whatever) in the WSJT-X
"Settings->Radio->CAT Serial Port" field? Even though WSJT-X offers a
list of available tty devices it will accept any input there.

73
Bill
G4WJS.






--
Dan Ziolkowski KC2STA
SKCC #4290T
Ubuntu LINUX








--
Dan Ziolkowski KC2STA
SKCC #4290T
Ubuntu LINUX


Michael Black
 

Next thing to try then is make your own device name that CubicSDR will recognize.

ls -l ttyUSB0
crw-rw-rw- 1 root dialout 188, 0 Sep  5 09:13 ttyUSB0

mknod ttyX c 188 0

ls -l ttyX
crw-r--r-- 1 root root 188, 0 Sep  6 07:25 ttyX

chmod g+w ttyX
chgroup dialout ttyX

Make sure your user account is in the dialout group too.

Mike W9MDB





On Monday, September 6, 2021, 06:34:22 AM CDT, d_ziolkowski <dan.ziolkowski@...> wrote:


Mike-

tried the link suggestions, no luck..

ln -s /dev/pts/1 /dev/ttyS3
ln: failed to create symbolic link '/dev/ttyS3': File exists

ln /dev/pts/1 /dev/ttyS3
ln: failed to create hard link '/dev/ttyS3': File exists

so then I tried link to ttyS32, which does not exist:

 ln /dev/pts/1 /dev/ttyS32
ln: failed to create hard link '/dev/ttyS32' => '/dev/pts/1': Invalid cross-device link

tried tty64, which does not exist:

 ln /dev/pts/1 /dev/tty64
ln: failed to create hard link '/dev/tty64' => '/dev/pts/1': Invalid cross-device link

tried soft link:

ln -s /dev/pts/1 /dev/tty64
ln: failed to create symbolic link '/dev/tty64': File exists

but dev ls-l says:

lrwxrwxrwx  1 root    root            10 Sep  6 06:59 tty64 -> /dev/pts/1

but Cubic SDR only sees /dev/sXX

then I tried USB1 which does not exist
had to sudo:

lrwxrwxrwx  1 root    root            10 Sep  6 07:09 ttyUSB1 -> /dev/pts/1

Now cubic sdr sees ttyusb1, but

tried WSJTX connectivity, no luck,perhaps i need to change permission of the link from root to dialout

Thats all for now...

back later...Dan KC2STA 

On Sun, Sep 5, 2021 at 5:00 PM Michael Black via groups.io <mdblack98=yahoo.com@groups.io> wrote:
Maybe a soft link to a device might work or a hard link?

ln -s /dev/pts/1 /dev/ttyS3
ln /dev/pts/1 /dev/ttyS3

Mike W9MDB





On Sunday, September 5, 2021, 10:27:11 AM CDT, d_ziolkowski <dan.ziolkowski@...> wrote:


Bill, Michael

I can't test at this time, CubicSDR will not allow me to enter a port manually. I have contacted the developer in regards to that issue. 

Thanks 

On Sat, Sep 4, 2021 at 2:54 PM Bill Somerville <g4wjs@...> wrote:
On 04/09/2021 17:59, d_ziolkowski wrote:
> Hi to all:
>
> OS Ubuntu 18.04, CubicSDR-2.5, WSJTX 2.1.0 . SDR Airspy HF+
> I am trying to get rig control from WSJTX to Cusbic SDR. So i need to
> create a VSP pair.
> I am using WSJTX 2.1, as the wspr band hopping works.
> I have tried socat, which creates the pair, but they are in dev/pts ,
> not dev/ as other serial ports are.
> $ socat -d -d pty,raw,echo=0 pty,raw,echo=0
> 2021/09/03 14:14:23 socat[25506] N PTY is /dev/pts/1
> 2021/09/03 14:14:23 socat[25506] N PTY is /dev/pts/2
> 2021/09/03 14:14:23 socat[25506] N starting data transfer loop with
> FDs [5,5] and [7,7]
> Does anybody know how to either:
> Get wsjtx and Cubic SDR to see them as they are in dev/pts rather then
> dev/?
> Move the ports to dev/
> There does appera to be a command it socat to link a vsp to another
> port, which I tried but still no connectity.
> Any help is appreciated
> Thanks
> Dan KC2STA

Hi Dan,

BTW what happens if you use /dev/pts/1 (or whatever) in the WSJT-X
"Settings->Radio->CAT Serial Port" field? Even though WSJT-X offers a
list of available tty devices it will accept any input there.

73
Bill
G4WJS.






--
Dan Ziolkowski KC2STA
SKCC #4290T
Ubuntu LINUX









--
Dan Ziolkowski KC2STA
SKCC #4290T
Ubuntu LINUX