g0orx / pihpsdr

Raspberry Pi standalone code for HPSDR (Protocol 1 and Protocol 2)
GNU General Public License v2.0
110 stars 73 forks source link

Screen shows "Sequence Error" #158

Open Charlier26 opened 2 years ago

Charlier26 commented 2 years ago

I'm running a Hermes Lite 2 with pihpsdr, and there is a red "Sequence Error" displayed on the screen.

What is this for?

Charlie KB8CR

g0orx commented 2 years ago

All UDP packets from the radio have an incrementing sequence number. This error indicates that there are missed UDP packets. This could be for some number of reasons depending on the computer that it is being run on, the sample rate set for the radio, number of receivers selected, network connection. Some more information on your setup and how frequently it is displayed may help resolve where the problem is. -- John

Charlier26 commented 2 years ago

I''m on a Pi4 4GB....one receiver, 48K sample rate, gigabit ethernet connection. It's on all the time. The only other thing running on the Pi is NodeRed.

I did notice that this seems to have started when I tried running WSJT-X and pavucontrol to route the audio. WSJT-x shows audio levels going in, but doesn't decode anything despite signals clearly visible on the panadapter.

Charlie

Charlier26 commented 2 years ago

Also, when I try to change the audio from the RX , it locks up, and won't run even when closed and reopened. I have had to reinstall to get it back. It happens when selecting Local Audio.

Maybe the UDP conflicts with the NodeRed flows that listen to my Flex 6400. Perhaps I should build up another Pi for this application.

Charlier26 commented 2 years ago

I've narrowed it down. The sequence error warning only comes on when selecting Local Audio. Unfortunately, need that for WSJT-x. I created the loopbacks as described in the pdf in the Documents folder, but those selections aren't offered when selecting the RX or TX audio in PiHPSDR. It just offers digital audio and 3 analog audio items, but none look like what is described in the PDF.

Charlie KB8CR

g0orx commented 2 years ago

This is what my RPi4 (actually an RPi400) looks like running pihpsdr and wsjtx. I have no problems selecting the local audio output and I do not see any sequence errors. As you can see the CPU usage is running at about 10%. It goes up to 17-20% when decoding the data.

2021-10-14-092842_1920x1080_scrot

I would be interested to see what yours looks like.

-- John

g0orx commented 2 years ago

Should have said this is also using a Hermes Lite 2. -- John

Charlier26 commented 2 years ago

I've confirmed that it only comes on when selecting Local Audio. Here is task manager with it running. It locked up again when I selected Local Audio and had to reinstall again. (Is there a file that stores settings that I could delete when that happens, so I don't have to reinstall?). Screen Sharing Picture October 14, 2021 at 10 18 29 AM EDT

Charlie

g0orx commented 2 years ago

There is a file created in the ~/pihpsdr directory where the name is the MAC address of the radio with a suffix of .props (i.e. something like 00-1C-C0-A2-13-DD.props). You can either delete this file of edit it and find the line containing: receiver.0.local_audio=1 and change the 1 to a 0.

I can turn on and off multiple time Local Audio Output and do not get any system hangs. Can you confirm if you compiled pihpsdr yourself or are using one of the tar files? The source code has a number of changes compared to the tar files.

In WSJT-X how have you configured the Audio Input?

-- John

Charlier26 commented 2 years ago

Oh.....I both compiled it, and then used the tar file. I thought that was how you get the icon on the desktop.

I was using PAVUCONTROL to do audio....I didn't get it to work. I think it would make a nice portable/battery setup. I plan to use a USB sound card for audio. Right now, I'm learning on my existing Pi4.

My goal is to build another Pi4 with the 7" touch screen in a case, for use solely with the HL2. I use the current Pi4 to run the Node Red flows for my Flex6400 and KPA500/KAT500.

Charlie KB8CR

g0orx commented 2 years ago

The WiKi has the information on how to build and install pihpsdr. I would suggest you start again and follow the instructions in the section on Compiling and Running on the RPi OS.

-- John

Charlier26 commented 2 years ago

Thanks, John.....well, after imaging a new SD card, I recompiled PiHPSDR on the clean OS, and voila .....everything working FB. I forgot to uncomment GPIO and CW, but guess I can just recompile it. Here it is working with FT8. Pihpsdr

K7MDL2 commented 2 years ago

It does seem that turning off local audio helps reduce sequence errors but they can be induced through several other means. Listen to a busy 40M band vs a quiet 432 MHz band. Mostly I think it is related to a busy CPU missing UDP packet(s) or even audio subsystem vs network interrupt clashing. There are no lower level layer RX or TX drops. Do a compile for example and watch the errors pop up. It is not a network delivery issue but a priority/efficiency challenge. I was able to fairly reliably induce a sequence error each time I clicked the + or - button in the initial GPIO setup screen. There is normally a corresponding RX buffer drop count change you can watch with netstat -su or /proc/net/udp. There is a fair amount of investigation on this issue right now.

Charlier26 commented 2 years ago

Thanks. I've been having a lot of fun with the HL2 and PiHPSDR on my Pi4. I got a 7" touchscreen case for the Pi that has built in speakers and it's almost like my Maestro for my Flexradio (which has been sort of dormant since I got the HL2). Toying with getting an amplifier for it....QRP is tough, but I've made quite a few QSO's mostly on digi modes like JS8Call. I hope it's possible to use only ONE encoder with it as a VFO knob. That would make tuning a lot easier without a mouse. Thanks to all !! 73 de Charlie KB8CR

K7MDL2 commented 2 years ago

I have 2 controllers, one a V2 rev 2 PCB in a Hammond extrusion box, the other in a SmartiCase Pro. That model case has room on the lower apron for 4 encoders and inside lots of room for a 12-5VDC DC-DC converter, Sabrent USB Sound dongle, 3W stereo amp, and internal speakers. I have an analog volume pot, 2 push switch encoders and a quality VFO encoder mounted on the front apron. You can put some switches on the back or top if you need more. On the back I have power, power swtich, ext speaker switch, 8-pin mic/headphone jack. I plan to use an external Teensy MIDI keyer with added controls as a USB control pod for laptop use and to use with the V1 controller. Mouning the encoders on the apron lets you use the supplied weighted base to tilt the unit and I find it quite portable and highly usable with the toolbar and sliders turned on for display. Pictures are available of the layouts.