23 Jul 2012 16:19
Problem getting mode from kenwood ts-950
Sagaert Johan <sagaert.johan <at> skynet.be>
2012-07-23 14:19:38 GMT
2012-07-23 14:19:38 GMT
Hi
I use the dll's in .NET
I have a thread containing : (the rig object is created in the same thread.)
rig = HamlibInit(213);
int result = Hamlib.HamlibOpen(rig, <at> "COM11"); //just sets the rigport pathname to the comport
while (threadrunning)
{
rig_errcode_e err;
err=rig_get_mode(rig, vfo_t.RIG_VFO_A, ref mode, ref filter);
Console.WriteLine(mode.ToString());
Console.WriteLine(err.ToString());
System.Threading.Thread.Sleep(1000);
err = rig_get_mode(rig, vfo_t.RIG_VFO_B, ref mode, ref filter);
Console.WriteLine(mode.ToString());
Console.WriteLine(err.ToString());
System.Threading.Thread.Sleep(1000);
}
It produces :
RIG_OK
RIG_MODE_CW
RIG_EPROTO
RIG_MODE_CW
RIG_EPROTO
RIG_MODE_CW
RIG_EPROTO
RIG_MODE_CW
RIG_EPROTO
RIG_MODE_LSB
RIG_OK
RIG_MODE_LSB
RIG_EPROTO
RIG_MODE_LSB
RIG_EPROTO
RIG_MODE_CW
RIG_OK
...
This is while my trx is in LSB on VFO A and in CW in VFO B
What is worse : the transceiver switches between VFO A and VFO B, I don't get it since I only use rig_get_mode !
Also in my Kenwood manual says RTS/CTS is used, but the caps structure is initialised with HANDSHAKE_NONE.
What is wrong with this trivial code ?
73's Johan on5di
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
RSS Feed