K3S MD6 command slow and failing #726
Labels
bug
critical
A problem for common operations with WSJT-X, GPredict, RigPi, etc.
JTDX
Bugs affecting JTDX operations
needs test
Patches have been submitted but need testing to close issue
WSJTX
Bugs affecting WSTJ-X operations
400ms in some cases just to run the MD6; command.
Reading mode is much faster so we will change to read mode and only change if needed.
Example of slow response
[2021-06-16 02:02:41.888647][00:01:23.807311][RIGCTRL:trace] 0000 4d 44 36 3b MD6;
[2021-06-16 02:02:41.888647][00:01:23.807379][RIGCTRL:trace] write_block(): TX 3 bytes
[2021-06-16 02:02:41.888647][00:01:23.807400][RIGCTRL:trace] 0000 49 44 3b ID;
[2021-06-16 02:02:41.888647][00:01:23.807421][RIGCTRL:trace] read_string called, rxmax=35
[2021-06-16 02:02:42.281610][00:01:24.199751][RIGCTRL:trace] read_string(): RX 6 characters
[2021-06-16 02:02:42.281610][00:01:24.199780][RIGCTRL:trace] 0000 49 44 30 31 37 3b ID017;
[2021-06-16 02:02:42.281610][00:01:24.199794][RIGCTRL:trace] kenwood_transaction: read_string(len=6)='ID017;'
Example of error
[2021-06-16 02:02:22.568141][00:01:04.486862][RIGCTRL:trace] 0000 42 57 3b BW;
[2021-06-16 02:02:22.568141][00:01:04.486881][RIGCTRL:trace] read_string called, rxmax=128
[2021-06-16 02:02:22.613540][00:01:04.532134][RIGCTRL:trace] read_string(): RX 7 characters
[2021-06-16 02:02:22.613540][00:01:04.532175][RIGCTRL:trace] 0000 42 57 30 34 30 30 3b BW0400;
[2021-06-16 02:02:22.613540][00:01:04.532200][RIGCTRL:trace] kenwood_transaction: read_string(len=7)='BW0400;'
[2021-06-16 02:02:22.613540][00:01:04.532220][RIGCTRL:trace] kenwood_transaction: returning RIG_OK, retval=0
[2021-06-16 02:02:22.613540][00:01:04.532241][RIGCTRL:debug] kenwood.c(576):kenwood_transaction return(0)
[2021-06-16 02:02:22.613540][00:01:04.532261][RIGCTRL:debug] kenwood.c(646):kenwood_safe_transaction return(0)
[2021-06-16 02:02:22.613540][00:01:04.532283][RIGCTRL:debug] rmode2kenwood called, mode=RTTY
[2021-06-16 02:02:22.613540][00:01:04.532301][RIGCTRL:debug] rmode2kenwood: returning 6
[2021-06-16 02:02:22.613540][00:01:04.532320][RIGCTRL:debug] kenwood.c(675):rmode2kenwood return(6)
[2021-06-16 02:02:22.613540][00:01:04.532339][RIGCTRL:debug] k3_set_mode: kmode=6, cmode=6
[2021-06-16 02:02:22.613540][00:01:04.532356][RIGCTRL:debug] kenwood_transaction called
[2021-06-16 02:02:22.613540][00:01:04.532372][RIGCTRL:trace] kenwood_transaction: cache invalidated
[2021-06-16 02:02:22.613540][00:01:04.532389][RIGCTRL:trace] kenwood_transaction: cmdstr = MD6
[2021-06-16 02:02:22.613540][00:01:04.532485][RIGCTRL:trace] write_block(): TX 4 bytes
[2021-06-16 02:02:22.613540][00:01:04.532520][RIGCTRL:trace] 0000 4d 44 36 3b MD6;
[2021-06-16 02:02:22.613540][00:01:04.532591][RIGCTRL:trace] write_block(): TX 3 bytes
[2021-06-16 02:02:22.613540][00:01:04.532616][RIGCTRL:trace] 0000 49 44 3b ID;
[2021-06-16 02:02:22.613540][00:01:04.532638][RIGCTRL:trace] read_string called, rxmax=35
[2021-06-16 02:02:22.644736][00:01:04.563110][RIGCTRL:trace] read_string(): RX 2 characters
[2021-06-16 02:02:22.644736][00:01:04.563154][RIGCTRL:trace] 0000 3f 3b ?;
[2021-06-16 02:02:22.644736][00:01:04.563177][RIGCTRL:trace] kenwood_transaction: read_string(len=2)='?;'
[2021-06-16 02:02:22.644736][00:01:04.563199][RIGCTRL:error] kenwood_transaction: Unknown command or rig busy 'MD6'
[2021-06-16 02:02:22.644736][00:01:04.563221][RIGCTRL:error] kenwood_transaction: Retrying shortly
[2021-06-16 02:02:23.659723][00:01:05.577999][RIGCTRL:trace] kenwood_transaction: cmdstr = MD6
[2021-06-16 02:02:23.659723][00:01:05.578090][RIGCTRL:trace] write_block(): TX 4 bytes
[2021-06-16 02:02:23.659723][00:01:05.578107][RIGCTRL:trace] 0000 4d 44 36 3b MD6;
[2021-06-16 02:02:23.659723][00:01:05.578140][RIGCTRL:trace] write_block(): TX 3 bytes
[2021-06-16 02:02:23.659723][00:01:05.578151][RIGCTRL:trace] 0000 49 44 3b ID;
The text was updated successfully, but these errors were encountered: