g0orx / pihpsdr

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

Application crashes with Arduino CAT Controller for HPSDR #117

Open Ujjwaana opened 4 years ago

Ujjwaana commented 4 years ago
  1. Have the basic HPSDR CAT controller by N6LYT https://www.tapr.org/pdf/DCC2015-ArduinoCAT-Controller4HPSDR-G0ORX-1.pdf https://github.com/TAPR/OpenHPSDR-SVN/tree/master/N6LYT/Arduino/hpsdr_basic_controller
  2. Connect the Arduino Nano with the Rotary controller to Raspberry Pi through USB. You can see the Arduino emulated as /dev/ttyUSB0 and CAT commands like ZZSA;ZZSA ..... ZZSB;ZZSB appear on Serial monitor
  3. Now launch Pihpsdr and Click Menu->RigCtl->Check CAT over Serial -> Select ttyUSB0 for device and baud rate as 9600
  4. Now move the Rotary encoder. After few rotation , Pihpsdr will crash

I am attaching the Console log with all Debug flags in Pihpsdr enable during compile and the core dump (.BZ2 Zipped for the sake of Github letting the file to upload)

pihpsdr_dbglog.txt

core.zip

g0orx commented 4 years ago

I have pushed an update (v2.0.0-rc10) with a rewrite of the rigctl (CAT) code. It is still a work in progress, but a major number of the CAT commands are implemented. More testing is in progress but the basic code is working OK. Let me know if there are any problems.

df5sf commented 4 years ago

Hello, tested it with fldigi (4.1.12): Frequency change is ok in both directions. changing the mode from fldigi has some problems: e.g. USB is ok, LSB is ok, CW changes to DSB, CWR changes to AM, FM changes to CWL

tested with WSJT-X (V2.1.2): if I change the band sometimes piHPSDR freezes and WSJT-X stops with 'Rig Control Error'. Not every time. In debug mode the last commands see attacched file.

73 Uli DF5SF

WSJT

dl1ycf commented 4 years ago

This should be resolved now. It is a hamlib issue (too small timeout). In Hamlib, this is now increased considerably.