Commit Graph

573 Commits

Author SHA1 Message Date
Michael Black
0c63e6efd3
Fix cppcheck warning in ampctl.c 2020-01-13 15:31:19 -06:00
Michael Black
7ee3a702f5
Replace all usleep with hl_usleep
Several places where usleep max value could be overflowed
New hl_usleep can take values > 1000000
2020-01-07 23:18:56 -06:00
Michael Black
84f27614be
Remove debug from rigctl_parse.c 2020-01-04 17:08:31 -06:00
Michael Black
fb51f4f902
Fix compile warnings in rigctl.c and rigctl_parse.c 2020-01-03 12:18:27 -06:00
Michael Black
c8eaf13a3d
Readding rigctld.c accidental removal 2019-12-25 07:58:19 -06:00
Michael Black
4e5e533248
Fix cppcheck warnings 2019-12-24 15:48:36 -06:00
Michael Black
520066e3e7
Fix cppcheck warnings in rigctlcom.c 2019-12-24 15:41:57 -06:00
Michael Black
4dbe66193c
fix cppcheck warnings in sprintflst.c 2019-12-24 15:24:01 -06:00
Michael Black
2fca5f49b8
Remove hl_sleep.h as no longer needed 2019-12-24 15:21:06 -06:00
Michael Black
57952c5927
Fix cppcheck warnings in rotctl_parse.c 2019-12-24 15:12:05 -06:00
Michael Black
9012049a37
Fix cppcheck warnings in ampctl_parse.c 2019-12-24 15:11:41 -06:00
Michael Black
9b9a6c55f5
Fix cppcheck warning in testrig.c 2019-12-23 23:36:14 -06:00
Michael Black
bd2149bd8a
Fix cppcheck warning in rotctl.c 2019-12-23 23:14:55 -06:00
Michael Black
17fb84044f
Fix cppcheck warning in rigsmtr.c 2019-12-23 23:13:40 -06:00
Michael Black
475012771b
Fix cppcheck warning in rigsmtr.c 2019-12-23 23:11:36 -06:00
Michael Black
a401d3ac78
Fix memory leak in rigctld and cleanup debug 2019-12-20 11:22:09 -06:00
Michael Black
1dbd633d5a
Missed semicolon 2019-12-19 18:05:23 -06:00
Michael Black
2703423b72
Think I got the fd socket leak on windows fixed now 2019-12-19 18:03:02 -06:00
Michael Black
bfe28e8032
Fix fd leak with fsockout 2019-12-19 17:09:18 -06:00
Michael Black
4b442dba94
Fix clang warning in rigctl_parse.c 2019-12-19 14:45:48 -06:00
Michael Black
9882448494
Fix cppcheck warnings in rigctlcom.c 2019-12-19 11:59:12 -06:00
Michael Black
d81d60dfc1
Fix cppcheck warnings in rigctl_parse.c 2019-12-19 11:55:14 -06:00
Michael Black
776e21017b
Add rx_range example 2019-12-19 11:51:28 -06:00
Michael Black
0bae216af3
Fix cppcheck warnings in ampctl_parse.c 2019-12-19 11:50:30 -06:00
Michael Black
00d578074e
Remove Recommend statment from rigctl.c 2019-12-19 09:38:50 -06:00
Michael Black
eac8077c60
Fix possible buf overrun in rigctl_parse.c 2019-12-17 08:08:39 -06:00
Michael Black
f9bed84d8e
Got the w and W commands working much better
ICOM test via rigctl
Rig command: w \0xfe\0xfe\0x58\0xe0\0x03\0xfd
Reply:\0xFE\0xFE\0x58\0xE0\0x03\0xFD\0xFE\0xFE\0xE0\0x58\0x03\0x00\0x50\0x09\0x14\0x00\0xFD 17
Rig command: W \0xfe\0xfe\0x58\0xe0\0x03\0xfd 17
Reply:\0xFE\0xFE\0x58\0xE0\0x03\0xFD\0xFE\0xFE\0xE0\0x58\0x03\0x00\0x50\0x09\0x14\0x00\0xFD 17

Rig command: w FA;
send_cmd: error = Invalid parameter
Rig command: W FA; 14
send_cmd_rx: error = Invalid parameter

ICOM test via rigctld
Rig command: w \0xfe\0xfe\0x58\0xe0\0x03\0xfd
Reply:\0xFE\0xFE\0x58\0xE0\0x03\0xFD\0xFE\0xFE\0xE0\0x58\0x03\0x00\0x50\0x09\0x14\0x00\0xFD 17
Rig command: W \0xfe\0xfe\0x58\0xe0\0x03\0xfd 17
Reply:\0xFE\0xFE\0x58\0xE0\0x03\0xFD\0xFE\0xFE\0xE0\0x58\0x03\0x00\0x50\0x09\0x14\0x00\0xFD 17

Rig command: w FA;
Reply:RPRT -1
Rig command: W FA; 14
Reply:RPRT -1

Kenwood test via rigctl
Rig command: w FA;
Reply:FA00014074000;
Rig command: W FA; 14
Reply:FA00014074000;

Rig command: w \0x46\0x41\0x3b
Reply:FA00014074000;
Rig command: W \0x46\0x41\0x3b 14
Reply:FA00014074000;

Kenwood test via rigctld
Rig command: w FA;
Reply:FA00014074000;
Rig command: W FA; 14
Reply:FA00014074000;

Rig command: w \0x46\0x41\0x3b
Reply:FA00014074000;

Rig command: W \0x46\0x41\0x3b 14
Reply:FA00014074000;
2019-12-12 22:29:13 -06:00
Michael Black
011efe0452
Merge branch 'master' of https://github.com/Hamlib/Hamlib 2019-12-11 07:47:24 -06:00
Nate Bargmann
2c884a970a
Change ampctld default TCP port to 4531 2019-12-11 06:28:17 -06:00
Michael Black
9eae761579
Added 'W' command for reading a fixed number of bytes
So we can now do this...write once to see how many bytes you get back
Rig command: w \0xfe\0xfe\0x58\0xe0\0x03\0xfd
Cmd:\0xFE\0xFE\0x58\0xE0\0x03\0xFD\0xFE\0xFE\0xE0\0x58\0x03\0x00\0x00\0x09\0x14\0x00\0xFD 17

Then use 'W' to write the command with the # of bytes to expect -- no timeout this way
Rig command: W \0xfe\0xfe\0x58\0xe0\0x03\0xfd 17
Cmd:\0xFE\0xFE\0x58\0xE0\0x03\0xFD\0xFE\0xFE\0xE0\0x58\0x03\0x00\0x00\0x09\0x14\0x00\0xFD 17
2019-12-09 23:37:14 -06:00
Michael Black
fb73e5abd7
Fix some cppcheck warnings
Fix declarations after statements
Remove some !rig checks...we either don't need them or need them everywhere with a new error code
If you pass a NULL rig you get what you deserve :-)
2019-12-09 17:12:13 -06:00
Michael Black
8e0ddf743c
Fix cppcheck warnings in ampctl_parse.c 2019-12-08 23:43:01 -06:00
Michael Black
646900862b
Fix cppcheck warnings in dumpmem.c 2019-12-08 23:42:47 -06:00
Michael Black
ddd5c43a71
Fix cppcheck warnings in rigmem.c 2019-12-08 23:42:32 -06:00
Michael Black
0207b45ff8
Fix cppcheck warnings in rigctlcom.c 2019-12-08 23:39:56 -06:00
Michael Black
2d94431848
Fix cppcheck warnings in rigctl_parse.c 2019-12-08 23:37:46 -06:00
Michael Black
e56db8c985
Fix cppcheck warnings in rigctl.c 2019-12-08 23:33:51 -06:00
Michael Black
f7399eb8df
Fix cppcheck warnings in example.c 2019-12-08 23:30:23 -06:00
Michael Black
8a3df9735e
Fix cppcheck warnings for ampctl_parse.c and redef amp_set_powerstat 2019-12-08 23:13:33 -06:00
Michael Black
c9ace18daa
Fix hash sort comparison for models 2019-12-06 12:13:38 -06:00
Michael Black
68f5a7edd7
Fix cppcheck error in ampctl_parse.c 2019-12-06 10:25:28 -06:00
Michael Black
1e889006b4
Minor change to rigctl_parse.c for ASCII print 2019-12-06 08:34:31 -06:00
Michael Black
9531f730b1
Change behavior of 'w' command in rigctld for binary commands
Now responds with hex string just like the input and the # of bytes
Will get hex string response for any binary data from rig from any command
Next step is to implement W command for known # of bytes in response to avoid the timeout
2019-12-06 07:58:19 -06:00
Michael Black
60cfecd5b4
Hopefully suppress arm compilation warning 2019-12-03 16:15:33 -06:00
Michael Black
5a9ab0b76d
Add retry to rigctl open 2019-12-03 08:22:35 -06:00
Michael Black
a7335595de
Add az and el offset to rotctl & rotctld 2019-12-02 23:30:08 -06:00
Michael Black
72565fe621
Fix ic7300 VFOs and sprintflst to be more generic 2019-12-02 14:46:41 -06:00
Michael Black
e6264c4f6f
Add PKT mode translations to rigctlcom 2019-12-02 12:23:04 -06:00
Michael Black
12494c92d5
Add MainA, MainB, SubA, and SubB vfo choices for icom rigs with SATMODE
Clean up debug statements in icom.c
2019-12-02 07:50:05 -06:00
Michael Black
1ceae3a3f3
Remove debug from rigctlcom.c 2019-12-01 09:13:35 -06:00