IC-7410 responses (2)

almost

It is almost OK, but still shows some odd behavior.

One thing is that I can not change the IF filter, and another is that I can not receive the echo back correctly for a TX power command. The latter could be due to my program, but the IF filter control does not work either with Flrig, with which I am sending just a hex sequence.

Anyway, I rarely touch the front panel of my IC-7410 now, and I am quite satisfied with that.

IC-7410 responses

res1

(Captured using flrig.)

The response from IC-7410 depends on the command you send. The command “0x03” is to read operating frequency. The first response is the echo back, and the second is the frequency data, 7123.456kHz in this case.

res2

The command “0x06” is to send operating mode. For this type of command, you will receive the echo back, and a “FB” message.

dataFormat2

So my program goes something like this:

gboolean send_command(unsigned char* command){
 int n_command;
 int n_echoback;
 unsigned char echoback[256];
 n_command = mystrlen(command);
 write(fd, command, n_command);        /* send command  */
 n_echoback = read(fd, echoback, 255); /* get echo back */ 
 if ( (n_echoback != n_command) || (mystrcmp(command, echoback) != 0) ) {
  g_print("*** error *** echoback does not much. \n");
  return FALSE;
 }
 return TRUE;
}

This is for all the commands, and for the commands that expect a “FB” mesasge:

  send_command(command_that_expects_FB);
  receive_fb();

Not very smart, but it works.