Commit graph

14 commits

Author SHA1 Message Date
George Baltz N3GB
3bed166fd6 Update a couple of simulators
Yet another failed attempt to test code via simulator; x25/x26 commands
  gave bogus answers.  So, another round of general cleanups for a
  couple of simulated rigs.

Fix detection of bad headers
Always send well-formed ACK/NAK frames
Add missing values to 0x26 messages
Fix bad responses when VFOB is active
Remove duplicate debug messages
Add some vendor-specific data and definitions to sim.h
Partial removal of rig.h dependencies/definitions
2026-07-01 15:29:58 -04:00
George Baltz N3GB
2f3d01728b Remove all traces of FTDX3000DM
Per Yaesu Tech support, treat all FTDX-3000 models the same. See comments
  in PR #2039.

While removing references to FTDX-3000DM, I happened across simft818.c.
  It set a new low for simulators.  It is completely wrong - it uses
  new CAT protocol, while the rig uses the old 5-byte binary version.
  If you want to simulate the FT-818, start over with simft817.c as
  the basis, because this one is gone.
2026-04-22 12:51:36 -04:00
George Baltz N3GB
00fb4bba71 Remove dependency on misc.h from sim.h
Include string.h to declare strerror
Remove rig.h from simic705.c

From first principles, none of the simulators should use *ANY* of the
code from Hamlib.  Using the same code on both sides of a simulation gives
the equivalent of a math "X = X" proof; guaranteed to work, but useless
for proving anything else.
2025-09-15 14:58:38 -04:00
Daniele Forsi IU5HKX
47f60d4ad7 [simulators] Remove unused includes
Found by iwyu.
2025-08-30 09:43:45 +02:00
Daniele Forsi IU5HKX
d5c5eeff15 No need to use strlen() because the i variable counted the chars read 2025-08-05 22:40:17 +02:00
Daniele Forsi IU5HKX
249a993633 Avoid spamming the terminal with 0's 2025-08-05 22:22:50 +02:00
Daniele Forsi IU5HKX
8064da8121 Avoid burning 100% CPU
Adds hl_usleep() like in the other version of getmyline().
2025-08-05 21:16:33 +02:00
Daniele Forsi IU5HKX
790820ab22 Refactor to remove code duplication of one version of getmyline() 2025-08-04 11:36:03 +02:00
Daniele Forsi IU5HKX
a5467f4033 Refactor to remove code duplication of one version of getmyline() 2025-08-04 11:34:00 +02:00
Daniele Forsi IU5HKX
f89ebfd226 Add include missed by IWYU 2025-08-03 09:35:03 +02:00
Daniele Forsi IU5HKX
3b2a95053b Refactor to remove code duplication of dumphex() 2025-08-03 09:35:03 +02:00
Daniele Forsi IU5HKX
1568a6c7fc Refactor to remove code duplication of typedef enum nc_rigid_e
Also updates nc_rigid_e from rigs/yaesu/newcat.c
There where different versions of that enum in the simulators.
2025-08-03 09:35:03 +02:00
Daniele Forsi IU5HKX
ecece62828 Refactor to remove code duplication of openPort()
The code wasn't indented in simic7300.c and simic7700.c but it was
identical.
2025-08-03 09:35:02 +02:00
Mike Black W9MDB
85f828b19f Add sim.h 2023-11-16 16:33:32 -06:00