FT-2000 not turning on with P-ON

6 posts / 0 new
Last post
mi0hoz
mi0hoz's picture
FT-2000 not turning on with P-ON

I'm using the lastest build using git pull. Under TRX control window I can turn radio off with P-OFF but I can't turn it on with P-ON. I've tested hamlib with the following command: echo "+\set_powerstat 1" | nc -w 1 localhost 4532, and it works ok.

Best 73, MI0HOZ

oh1kh
FT-2000 not turning on with P-ON

HI!
Same action with my IC7300
It seems to be bug in Hamlib rigctld.

0x87, set_powerstat 'Power Status'
Set 'Power Status'.

Power Status is a value: ‘0’ = Power Off, ‘1’ = Power On, ‘2’ =
Power Standby.

Cqrlog uses command 0x87 (sends hex byte 87). This seems to turn of power when sending "0x87 0"
but when sending "0x87 1" it dumps rig info

You can test 0x87 with telnet and you see the bug.
instead using "+\set_powerstat" works ok also with my Icom.

I report this to Hamlib devel.

--
Saku
OH1KH

oh1kh
FT-2000 not turning on with P-ON

I get back my words!

WIth more carefull testing "x087 1" works. And even the P-ON button works with cqrlog!
It just takes few minutes to happen.

The reason is that after Power off button is pressed and rig closes down Cqrlog continues polling the rig.
Polls gets stack and the power on command is placed on queue.
After polls during power off are cleared power on will be sent. But it takes time.

I have to make polling stop if P-OFF button is pressed. After that the response to P-ON will be faster.

So actually Cqrlog bug.
Thanks for pointing this out!

--
Saku
OH1KH

oh1kh
FT-2000 not turning on with P-ON

HI MIck!

Please try to download and compile zip from this branch https://github.com/OH1KH/cqrlog/tree/poweron_fix
For me it works.
How about your rig?

There are some difficulties with Cqrlog's rigcontrol interface as it does not expect response (actually wait until it gets it) and that makes things a bit complicated because it just polls at certain interval not depending on response(s).

The whole uRigcontrol should be rewritten to use Hamlib C API but that needs pascal <-> C bridge.

--
Saku
OH1KH

mi0hoz
mi0hoz's picture
[FIXED]

Many thanks Saku, that fixed it. Sorry for taking so long.

Best 73, MI0HOZ

oh1kh
FT-2000 not turning on with P-ON

Hi!
Your bug report extended a bit also to rigctld's side.
I sent mail to Mike and here is the result: https://github.com/Hamlib/Hamlib/issues/1085

--
Saku
OH1KH