Hello Ramiro,
I was able to configure my NET-Afedri, the culpit was to unpower the unit
before starting the control program again.
I run on a somewhat elderly computer and I se the errors misbehave more clearly.
I have tried older versions back to 04.00 and none works properly.
The comand to set frequency is repeated continously, the flag that should
set that it has been done does not work. The code involves the function:
INLINE bool lir_set_thread_flag_if(int32_t threadId, int32_t oldState, int32_t newState)
{
return lir_interlocked_compare_exchange(thread_status_flag + threadId, oldState, newState) == oldState;
}
It uses __sync_val_compare_and_swap under Linux
I do not understand what it does and why it no longer works - not even with
linrad-04.00 on an elderly computer. Maybe it never worked properly.
I did not write this code myself, it was implemented by someone else to solve
a problem when running linrad remotely.
I think one solution would be to issue the frequency control commands from
the same thread that reads the data from the Afedri. Then I could simply
let the input wait for the frequency control to return. Some lossof data
while changing the frequency would not be a big problem.
Maybe someone else with better programming skils can suggest a better solution?
73
Leif