From 571f59e696f474ee3cffe35a8a3a74e20d68e055 Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Sat, 3 Sep 2022 11:12:16 -0500 Subject: [PATCH] Add an async freq report to simicom9700 https://github.com/Hamlib/Hamlib/issues/1108 --- simulators/simicom9700.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/simulators/simicom9700.c b/simulators/simicom9700.c index 765d8d3f1..35502894e 100644 --- a/simulators/simicom9700.c +++ b/simulators/simicom9700.c @@ -341,6 +341,17 @@ void frameParse(int fd, unsigned char *frame, int len) frame[4] = 0xfb; frame[5] = 0xfd; n = write(fd, frame, 6); + // send async frame + frame[2] = 0x00; // async freq + frame[3] = 0xa2; + frame[4] = 0x00; + frame[5] = 0x00; + frame[6] = 0x10; + frame[7] = 0x01; + frame[8] = 0x96; + frame[9] = 0x12; + frame[10] = 0xfd; + n = write(fd, frame, 11); } break;