Hamlib error: Protocol error
-
- Posts: 4
- Joined: 08 Jun 2022, 01:14
Hamlib error: Protocol error
I'm running firmware version 2.00h
When I configure WSJT-X for CAT Control and press Test CAT, I here the relays click in the radio for a band change twice and then get the atttached error. I've tried two different machines and two different cables and also two different OSs... always get the same error.
Any suggestions?
When I configure WSJT-X for CAT Control and press Test CAT, I here the relays click in the radio for a band change twice and then get the atttached error. I've tried two different machines and two different cables and also two different OSs... always get the same error.
Any suggestions?
- Attachments
-
- hamlib error
- error.jpg (98.45 KiB) Viewed 26280 times
-
- Posts: 4
- Joined: 08 Jun 2022, 01:14
Re: Hamlib error: Protocol error
Just for grins I did a firmware update from 2.00h to 2.00i and I get the same problem. This verifies that my cable, radio and com port are all correct. The error message however is the same.
-
- Posts: 6
- Joined: 31 Dec 2021, 14:49
Re: Hamlib error: Protocol error
could never get hamlib to work but flrig does. Someone has posted in the forum the required settings.
-
- Posts: 4
- Joined: 08 Jun 2022, 01:14
Re: Hamlib error: Protocol error
I get a similar error from flrig... it gets worse though - no usable cat control and the rig gets stuck in TX mode.
-
- Posts: 13
- Joined: 31 Dec 2021, 12:52
Re: Hamlib error: Protocol error
Same result here but my pre-built came with 2.00i and now problem with communication via usb when i went to install beta firmware , i can verify everything software/hardware works with my self-build so seems to be problem with this firmware so will upload beta software via ISP header when i get time.temporarilyoffline wrote: ↑08 Jun 2022, 01:52 Just for grins I did a firmware update from 2.00h to 2.00i and I get the same problem. This verifies that my cable, radio and com port are all correct. The error message however is the same.
Oh and screen displays 16 numbers when trying to upload firmware but they are not the same as serial i was given so i made new firmware using that number just to see wat happens but same sync error in communication
Cheers
Stevie
2M0ufo
Stevie
2M0ufo
-
- Posts: 38
- Joined: 23 Jun 2022, 12:12
Re: Hamlib error: Protocol error
I am also unable to get CAT control working. I'm on macOS. I tried with WSJT-X and got the same error as the OP. When trying with rigctl directly, I get:
I tried many permutations of the above, to no avail. rigctl defaults to 8-N-1 serial so that doesn't need to be supplied. WSJT-X was set up per the sticky thread before I tried rigctld itself.
I am able to connect to the rig with a serial terminal, so I know the serial interface is all set up and working. Firmware is 2.00i
Any ideas?
Code: Select all
$ rigctld --model=2028 --listen-addr=127.0.0.1 --port=7006 -s 38400 -r /dev/tty.usbserial-14110 -p /dev/cu.usbserial-14110 -d /dev/tty.usbserial-14110
rig_open: error = Protocol error
kenwood_open: no response from rig
kenwood.c(872):kenwood_open return(-8)
rig.c(1031):rig_open return(-8) /dev/tty.usbserial-14110 Operation timed out
I am able to connect to the rig with a serial terminal, so I know the serial interface is all set up and working. Firmware is 2.00i
Any ideas?
EI9ITB / KB8SWH
-
- Posts: 2
- Joined: 19 Jul 2022, 11:30
Re: Hamlib error: Protocol error
Hi all! I have a similar problem. Recently received a transceiver kit. The firmware is preinstalled v.2.00i I reported this problem to the seller from whom I bought it, he voiced the problem to Manuel DL2MAN. I hope our common problem can be corrected!
-
- Posts: 762
- Joined: 30 Dec 2021, 19:18
- Contact:
Re: Hamlib error: Protocol error
I actually NEVER got it working with HAMLIB.
But in my Opinion, this has nothing to do with (tr)uSDX Firmware, but the way, how hamlib is adressing the rig. That would be something for Guido @pe1nnz to investigate.
Here are my working Settings with OmniRig: And here are my working Settings with WSJTX: 73 Manuel; DL2MAN
But in my Opinion, this has nothing to do with (tr)uSDX Firmware, but the way, how hamlib is adressing the rig. That would be something for Guido @pe1nnz to investigate.
Here are my working Settings with OmniRig: And here are my working Settings with WSJTX: 73 Manuel; DL2MAN
-
- Posts: 52
- Joined: 30 Dec 2021, 19:29
Re: Hamlib error: Protocol error
Hi,
It looks like you are using WSJT-X under Linux.
Please be aware that the RTS/DTR settings are not effective under Linux, and keeps resetting the rig.
Please try the following to resolve that issue.
- before starting WSJT-X please execute the following command in a terminal:
stty -F /dev/ttyUSB0 raw -echo -echoe -echoctl -hupcl -echoke 38400
replace ttyUSB0 with the actual serial port device.
This command prevents the DTR/RTS keeps flipping, preventing the rig from reseting, and basically keeps the device open and responding to CAT commands.
73, Guido
It looks like you are using WSJT-X under Linux.
Please be aware that the RTS/DTR settings are not effective under Linux, and keeps resetting the rig.
Please try the following to resolve that issue.
- before starting WSJT-X please execute the following command in a terminal:
stty -F /dev/ttyUSB0 raw -echo -echoe -echoctl -hupcl -echoke 38400
replace ttyUSB0 with the actual serial port device.
This command prevents the DTR/RTS keeps flipping, preventing the rig from reseting, and basically keeps the device open and responding to CAT commands.
73, Guido
-
- Posts: 38
- Joined: 23 Jun 2022, 12:12
Re: Hamlib error: Protocol error
Thanks @pe1nnz, I will give it a try tonight. I'm on macOS, but it may be that it's the same behavior as under Linux.
EI9ITB / KB8SWH
-
- Posts: 2
- Joined: 19 Jul 2022, 11:30
Re: Hamlib error: Protocol error
Hi all! The transceiver is connected only via CAT .... after the settings set like Manuel's, everything worked. An interesting problem has arisen. When switching from reception to transmission, the sound from the speaker disappears. (Intentionally did not connect the audio cable) When you press the PTT button, the transceiver briefly switches to transmit/receive and the sound from the built-in speaker reappears. What could it be?
At the link https://disk.yandex.ru/i/7TW-hLUtZXgvDw of the video on which I tried to convey the whole process of the problem.
Has anyone else encountered a similar problem?
P.S. The cause of this problem is found enabled menu item 2.4 Semi QSK must be turned off "OFF"
At the link https://disk.yandex.ru/i/7TW-hLUtZXgvDw of the video on which I tried to convey the whole process of the problem.
Has anyone else encountered a similar problem?
P.S. The cause of this problem is found enabled menu item 2.4 Semi QSK must be turned off "OFF"
-
- Posts: 38
- Joined: 23 Jun 2022, 12:12
Hamlib Working SOLUTION for macOS
Thanks to Guido for putting me on the right track. I have a simple solution that works for Hamlib on macOS.
You will run `rigctld` itself rather than letting WSJT-X do it.
You should now be able to use CAT from WSJT-X!
You will need to start up rigctld yourself, and leave it running each time you start WSJT-X.
You will run `rigctld` itself rather than letting WSJT-X do it.
- Find your serial port (This will be something like /dev/tty.usbserial-141410):
Code: Select all
ls -ltar /dev/ | tail
- Then run this, using *your port* from the previous step
Code: Select all
cat /dev/tty.usbserial-141410
- In another terminal run (using *your port* not mine):
Code: Select all
rigctld --model=2028 --listen-addr=127.0.0.1 --port=7006 -s 38400 -r /dev/tty.usbserial-141410
- Return to the first terminal and type Ctrl-C to stop the `cat` command so that it will exit
You should now be able to use CAT from WSJT-X!
You will need to start up rigctld yourself, and leave it running each time you start WSJT-X.
EI9ITB / KB8SWH
-
- Posts: 38
- Joined: 23 Jun 2022, 12:12
Re: Hamlib error: Protocol error
I suspect the above will work the same for the issue Guido mentioned on Linux as well. I have not tested that.
EI9ITB / KB8SWH
-
- Posts: 3
- Joined: 23 Jul 2022, 02:28
-
- Posts: 1
- Joined: 22 Aug 2022, 15:52
Re: Hamlib error: Protocol error
This helped me too. Got WSJT-X to work.
But I still have problem with using rigctl, especially when using it in cw mode, ptt goes always on. I have also seen strange text on the oled and even text up side down.
Too bad because I'm trying to build a tiny logprogram on my NanoPi Neo2 that I could use when I'm portable (/p).
73, Erik
-
- Posts: 8
- Joined: 03 Dec 2022, 10:27
Re: Hamlib error: Protocol error
Hi, OMs!
I'm posting my problem with WSJT-X and FT8 here because it is almost the same with those described before by other members in this topic, despite the fact that the last response is quite old.
Also, because the original post was made by "temporarilyoffline", I also checked his youtube channel and I saw that first, despite of the presented successful solutions described here, his solution was to abandon the cat control and use the vox option (his video here at min. 6: https://www.youtube.com/watch?v=ZVKpaxJTJTQ&t=488s ). After that, based on PE1NNZ/Guido's previous post, he posted another video on that, with the problem solved: https://www.youtube.com/watch?v=JzqzzRJzkrI ).
So, sadly I am a user of by now two (tr)uSDXs, and my problem is the same described by the original owner of the topic, plus some others. So, the "others" are:
- I'm on Windows 10
- I'm using exclusively FT8 mode on WSJT-X
- I have done more than a lot of checkings about my settings to be exactly like that mentioned by DL2MAN/Manuel in the instructional video
- tried to use WSJT-X, direct (as in video), or trough FLRIG and OmniRig
- changed cables (all of them, audio, usb)
- running the radio on battery power (eventually to not have some power source interferences)
- changed the radios (as mentioned, I have two of them)
- changed the laptop
And the main problem is: not that is not working at all, but working nice for about few minutes to 1 hour with no problem, and after that the radio become erratic, sometimes is unresponsive, or it blocks on transmit, and the WSJT-X start to give errors (if directly used then some hamlib errors, if on OmniRig then it say that OmiRig does not responding, etc.). And after the point there is no possible way to continue. Of course (the interesting part) after a few days later the story is the same: it works well a while, but just for short time.
On VOX, appears to be OK, but sometimes, maybe because some interferences, it commutes on transmit without any audio signal from computer. On the other hand, it is frustrating to know you have cat control available but not works... only on windows ?!
73!
I'm posting my problem with WSJT-X and FT8 here because it is almost the same with those described before by other members in this topic, despite the fact that the last response is quite old.
Also, because the original post was made by "temporarilyoffline", I also checked his youtube channel and I saw that first, despite of the presented successful solutions described here, his solution was to abandon the cat control and use the vox option (his video here at min. 6: https://www.youtube.com/watch?v=ZVKpaxJTJTQ&t=488s ). After that, based on PE1NNZ/Guido's previous post, he posted another video on that, with the problem solved: https://www.youtube.com/watch?v=JzqzzRJzkrI ).
So, sadly I am a user of by now two (tr)uSDXs, and my problem is the same described by the original owner of the topic, plus some others. So, the "others" are:
- I'm on Windows 10
- I'm using exclusively FT8 mode on WSJT-X
- I have done more than a lot of checkings about my settings to be exactly like that mentioned by DL2MAN/Manuel in the instructional video
- tried to use WSJT-X, direct (as in video), or trough FLRIG and OmniRig
- changed cables (all of them, audio, usb)
- running the radio on battery power (eventually to not have some power source interferences)
- changed the radios (as mentioned, I have two of them)
- changed the laptop
And the main problem is: not that is not working at all, but working nice for about few minutes to 1 hour with no problem, and after that the radio become erratic, sometimes is unresponsive, or it blocks on transmit, and the WSJT-X start to give errors (if directly used then some hamlib errors, if on OmniRig then it say that OmiRig does not responding, etc.). And after the point there is no possible way to continue. Of course (the interesting part) after a few days later the story is the same: it works well a while, but just for short time.
On VOX, appears to be OK, but sometimes, maybe because some interferences, it commutes on transmit without any audio signal from computer. On the other hand, it is frustrating to know you have cat control available but not works... only on windows ?!
73!
-
- Posts: 8
- Joined: 05 May 2022, 18:22
Re: Hamlib error: Protocol error
Hi,
I'm running a pi4 using FLRIG for Rig control and experiencing the issue where the latches keep clicking/resetting, the screen does funny things, switches to different menu items, etc.
I tried executing this command stty -F /dev/ttyUSB0 raw -echo -echoe -echoctl -hupcl -echoke 38400, but that did not work.
I've ensured that the rig shows up as ttyUSB0. I boot the pi with the rig on and connected to the Pi, then cut and paste the above command into a terminal window, the start FLRIG, and initialize and then the party starts.....i.e. looped reset.
any other suggestions?
I love the rig and it works great on digital with the exception that I don't have rig control. I've gotten around part of that by using VOX on the radio, but still can't change frequencies remotely which I'd really like to be able to do.
Thx
I'm running a pi4 using FLRIG for Rig control and experiencing the issue where the latches keep clicking/resetting, the screen does funny things, switches to different menu items, etc.
I tried executing this command stty -F /dev/ttyUSB0 raw -echo -echoe -echoctl -hupcl -echoke 38400, but that did not work.
I've ensured that the rig shows up as ttyUSB0. I boot the pi with the rig on and connected to the Pi, then cut and paste the above command into a terminal window, the start FLRIG, and initialize and then the party starts.....i.e. looped reset.
any other suggestions?
I love the rig and it works great on digital with the exception that I don't have rig control. I've gotten around part of that by using VOX on the radio, but still can't change frequencies remotely which I'd really like to be able to do.
Thx
-
- Posts: 1
- Joined: 15 Jan 2023, 20:25
Re: Hamlib error: Protocol error
I got the same problem. I confirm that the "Semi QSK" functionality of the rig must be turned off. FLdigi version 4.1.23 works then like a charm. There's something wrong with the firmware 2.00iRC3T wrote: ↑21 Jul 2022, 06:02 Hi all! The transceiver is connected only via CAT .... after the settings set like Manuel's, everything worked. An interesting problem has arisen. When switching from reception to transmission, the sound from the speaker disappears. (Intentionally did not connect the audio cable) When you press the PTT button, the transceiver briefly switches to transmit/receive and the sound from the built-in speaker reappears. What could it be?
At the link https://disk.yandex.ru/i/7TW-hLUtZXgvDw of the video on which I tried to convey the whole process of the problem.
Has anyone else encountered a similar problem?
P.S. The cause of this problem is found enabled menu item 2.4 Semi QSK must be turned off "OFF"
Best regards
Cédric
-
- Posts: 60
- Joined: 20 Dec 2022, 20:51
Re: Hamlib error: Protocol error
Cedric,
Have you tried OFDM and PSK modes?
73 de Constrainted
Have you tried OFDM and PSK modes?
73 de Constrainted
-
- Posts: 60
- Joined: 20 Dec 2022, 20:51
Re: Hamlib error: Protocol error
Vara HF, PSK31, FT8, JS8Call are working.
73 Constrainted
73 Constrainted
-
- Posts: 23
- Joined: 01 Jan 2022, 01:12
Re: Hamlib error: Protocol error
Hi all,
As there been any development on the hamlib error?. I have a Pi 3 running Buster. Just updated WSJT-x and have to run Guido's Terminal code
'stty -F /dev/ttyUSB0 raw -echo -echoe -echoctl -hupcl -echoke 115200'
To get WSJT-x or FlRig to connect. If this is my only way forward can this be added to a start-up script for these apps?.
JTDX and JS8Call connect without issue.
TIA,
Ellis M5AEI
As there been any development on the hamlib error?. I have a Pi 3 running Buster. Just updated WSJT-x and have to run Guido's Terminal code
'stty -F /dev/ttyUSB0 raw -echo -echoe -echoctl -hupcl -echoke 115200'
To get WSJT-x or FlRig to connect. If this is my only way forward can this be added to a start-up script for these apps?.
JTDX and JS8Call connect without issue.
TIA,
Ellis M5AEI
-
- Posts: 6
- Joined: 23 Jun 2024, 19:16
Re: Hamlib error: Protocol error
Good afternoon all,
I keep getting this error when trying to spin up threeme3/trusdx-audio in Linux Mint;
Any thoughts? Terminal errors are throwing this as well:
No idea why the PC wouldn't be seeing the device, I know all USB ports are working, etc, and nothing is blocking them.
I keep getting this error when trying to spin up threeme3/trusdx-audio in Linux Mint;
Code: Select all
Hamlib error: IO error
port_open: serial_open(/dev/ttyS4) status=-6, err=Permission denied
iofunc.c(81):port_open return(-6)
rig.c(795):rig_open return(-6) while opening connection to rig
Timestamp: 2024-06-23T19:11:56.170Z
Code: Select all
Serial device =
Serial loopback = /dev/ttyS4
2024-06-23 19:18:49.327011 pty_echo
2024-06-23 19:18:49.327237 pty_echo
/dev/pts/x device not found
Users browsing this forum: Bing [Bot] and 0 guests