¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: #flrig flrig not working with my FT-890 FTDI Programming Cable #flrig


 

¿ªÔÆÌåÓý

Thank you Steve.? Please confirm that these are the changes you implemented:


diff src/rigs/yaesu/FT890.cxx FT890.cxx

251,253c251,254
< ??? ??? ??? case 1: A.imode = ((replystr[6] & 0x40) == 0x40) ? 3 : 2; break;
< ??? ??? ??? case 2: A.imode = ((replystr[6] & 0x80) == 0x80) ? 5 : 4; break;
< ??? ??? ??? case 3: A.imode = ((replystr[6] & 0x80) == 0x80) ? 7 : 6; break;
---
> ??? ??? ??? case 1: A.imode = ((replystr[6] & 0x40) == 0x40) ? 3 : 1; break;
> ??? ??? ??? case 2: A.imode = ((replystr[6] & 0x80) == 0x80) ? 5 : 2; break;
> ??? ??? ??? case 3: A.imode = ((replystr[6] & 0x80) == 0x80) ? 7 : 4; break;
> ??? ??? ??? case 4: A.imode = ((replystr[6] & 0x80) == 0x80) ? 9 : 6; break;
268,270c269,272
< ??? ??? ??? case 1: B.imode = ((replystr[15] & 0x40) == 0x40) ? 3 : 2; break;
< ??? ??? ??? case 2: B.imode = ((replystr[15] & 0x80) == 0x80) ? 5 : 4; break;
< ??? ??? ??? case 3: B.imode = ((replystr[15] & 0x80) == 0x80) ? 7 : 6; break;
---
> ??? ??? ??? case 1: B.imode = ((replystr[15] & 0x40) == 0x40) ? 3 : 1; break;
> ??? ??? ??? case 2: B.imode = ((replystr[15] & 0x80) == 0x80) ? 5 : 2; break;
> ??? ??? ??? case 3: B.imode = ((replystr[15] & 0x80) == 0x80) ? 7 : 4; break;
> ??? ??? ??? case 4: B.imode = ((replystr[15] & 0x80) == 0x80) ? 9 : 6; break;
364c366
< ??? cmd[3] = FT890_mode_val[val] | 0x80;
---
> ??? cmd[3] = FT890_mode_val[val];

73, David, W1HKJ

On 9/24/24 18:38, Steve, KB5AW wrote:

I wanted to see about fixing the Yaesu FT-890 rig in flrig, so I looked at the code and did some hacking.
I suggest that you look at the code for correctness.
I used flrig-2.0.05.75
I got the modes selection menu to basically work, but more changes are needed.
Here is what I did by modifying the attached src/rigs/yaesu/FT890.cxx
?
vfoA and vfoB worked differently.
- Line 341 for set_modeA is:
? ? cmd[3] = FT890_mode_val[val];
?
- Line 366 for set_modeB is different. I changed it to be like line 341.
? ? cmd[3] = FT890_mode_val[val] | 0x80;
Now: cmd[3] = FT890_mode_val[val];
?
Now both vfos work the same for mode.
-----
I worked with with the switch statement on line 249. Added case 4 for FM mode.
The changes I made work for the base modes, but the menu does not track wide/narrow. My rig does not seem to have FM narrow and I don't see it in the manual.
Note that only modes which have 2 bandwidths are incremented by 2.
A.iBW? on line 244 seems to be the filter bandwidth, but isn't used anywhere.
Note that for setting Mode, values are: LSB=0, USB=1, CW-wide=2, CW-nar=3, AM-wide=4, AM-nar=5, FM=6 or 7.
For reading Mode, the values are: 0=LSB, 1=USB, 2=CW, 3=AM, 4=FM. BPF selection is indicated by byte 0.
?

Join [email protected] to automatically receive all group messages.