Topics

RigPi Macro reference or guide


Daniel Tickell <dtickell@...>
 

Is there a guide or reference docs for writing macros.

In particular I would like to see what I can do around control of DSTAR stuff on my 7100, changing to memory mode, and selecting a specific memory. 


Bruce N7XGR
 

Daniel,  Here are some macros that I have gleaned from postings and PDF's.
You change the CI-V address to your IC7100 which I think is 88.  These I have not tested.

IC-7610 ON                *PS1;

IC-7610 OFF               *PS0;

NOISE REDUCTION ON        *U NR 1

NOISE REDUCTION OFF       *U NR 0

NOISE REDUCTION LEVEL 2   *1w \0xFE\0xFE\0x98\0xE0\0x14\0x06\0x40\0xFD

NOISE REDUCTION LEVEL 4   *1w \0xFE\0xFE\0x98\0xE0\0x14\0x06\0x70\0xFD

NOISE REDUCTION LEVEL 6   *1w \0xFE\0xFE\0x98\0xE0\0x14\0x06\0x1\0x10\0xFD

NOISE REDUCTION LEVEL 8   *1w \0xFE\0xFE\0x98\0xE0\0x14\0x06\0x1\0x30\0xFD

ROTOR                   !ROTATE

ROTOR STOP              !RTR STOP

NOTCH ON           *1w \0xFE\0xFE\0x98\0xE0\0x016\0x41\0x01\0xFD

NOTCH OFF          *1w \0xFE\0xFE\0x98\0xE0\0x016\0x41\0x00\0xFD

COMPRESSION ON     *U COMP 1

COMPRESSION OFF    *U COMP 0

PREAMP OFF         *L PREAMP 0

PREAMP 1           *L PREAMP 1

PREAMP 2           *L PREAMP 2

ATTENUATOR OFF     *L ATT 0

ATTENUATOR 6 DB    *L ATT 6

ATTENUATOR 12 DB   *L ATT 12

ATTENUATOR 18 DB   *L ATT 18

VFO                *1w \0xFE\0xFE\0x98\0xE0\0x07\0xFD

MEMORY             *1w \0xFE\0xFE\0x98\0xE0\0x08\0xFD

ANTENNA 1          *1w \0xFE\0xFE\0x98\0xE0\0x12\0x0000\0xFD

ANTENNA 2          *1w \0xFE\0xFE\0x98\0xE0\0x12\0x0001\0xFD

RF -30%            *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x2\0x20\0xFD

RF -50%            *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x1\0x90\0xFD

RF-60%             *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x1\0x60\0xFD

RF 100%            *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x2\0x55\0xFD

14.300 Mhz         *F 14300000

OPBT / IPBT OFF    *1w \0xFE\0xFE\0x98\0xE0\0x14\0x08\0x1\0x28\0xFD

OPBT -100          *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x2\0x55\0xFD

OPBT -200          *1w \0xFE\0xFE\0x98\0xE0\0x14\0x08\0x85\0xFD

OPBT -300          *1w \0xFE\0xFE\0x98\0xE0\0x14\0x08\0x65\0xFD

IPBT 100           *1w \0xFE\0xFE\0x98\0xE0\0x14\0x08\0x01\0x50\0xFD

IPBT 200           *1w \0xFE\0xFE\0x98\0xE0\0x14\0x08\0x01\0x70\0xFD

IPBT 300           *1w \0xFE\0xFE\0x98\0xE0\0x14\0x08\0x01\0x90\0xFD

RF -30%            *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x2\0x20\0xFD

RF -50%            *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x1\0x90\0xFD

RF -60%            *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x1\0x90\0xFD

RF 100%            *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x2\0x55\0xFD

10% POWER          *L RFPOWER .11

25% POWER          *L RFPOWER .26

50% POWER          *L RFPOWER .51

100% POWER         *L RFPOWER 1.0

AGC slow. *1w \0xFE\0xFE\0x94\0xE0\0x16\0x12\0x03\0xFD
AGC mid.  *1w \0xFE\0xFE\0x94\0xE0\0x16\0x12\0x02\0xFD
AGC fast.  *1w \0xFE\0xFE\0x94\0xE0\0x16\0x12\0x01\0xFD

Set USB SQL (On) Closed  *1w \0xFE\0xFE\0x88\0xE0\0x1A\0x05\0x00\0x83\0x01\0xFD
Set USB SQL (OFF) Open  *1w \0xFE\0xFE\0x88\0xE0\0x1A\0x05\0x00\0x83\0x00\0xFD
Set ACC USB AF Level 100%  *1w \0xFE\0xFE\0x88\0xE0\0x1A\0x05\0x00\0x85\0x02\0x55\0xFD
Set ACC USB AF Level 65%  *1w \0xFE\0xFE\0x88\0xE0\0x1A\0x05\0x00\0x85\0x01\0x65\0xFD
Set RF Level 50%  *L RF .50
Set RF Level 70%  *L RF .70
Set RF Level 85%  *L RF .85
Set MEM Mode  *V MEM
Set VFO Mode VFOA  *V VFOA
Mem A06 WB7TUJ SIMPLEX 146.500  *E 06
Mem A14 WB7TUJ 70C 449.950  *E 14
Mem A12 DIGITAL MODES 145.550  *E 12
Mem A09 N2QOJ 449.325  *E 09
Mem A04 K7DAD 146.720  *E 04
Set SQL to 60%  *L SQL .60
Set SQL to 30%  *L SQL .30
Set SQL to 0%  *L SQL .00
PRE-AMPLIFIER ON  *L PREAMP 1
PRE-AMPLIFIER OFF  *L PREAMP 0
RF PWR 100%  *L RFPOWER 1.0
RF PWR 50%  *L RFPOWER .51
RF PWR 25%  *L RFPOWER .26
NR ON  *U NR 1
NR OFF  *U NR 0
TUNE  *G TUNE     *1w \0xFE\0xFE\0x94\0xE0\0x1C\0x01\0x02\0xFD

IC-7300 RigPi Macro List--13JUN19
-----------------------------------------------------------------------------
NR OFF *1w \0xFE\0xFE\0x94\0xE0\0x16\0x40\0x00\0xFD
NR ON *1w \0xFE\0xFE\0x94\0xE0\0x16\0x40\0x01\0xFD
-----------------------------------------------------------------------------
25 Percent Power *1w \0xFE\0xFE\0x94\0xE0\0x14\0x0A\0x00\0x65\0xFD sets RF PWR to 25%
50 Percent Power *1w \0xFE\0xFE\0x94\0xE0\0x14\0x0A\0x01\0x30\0xFD sets RF PWR to 50%
100 Percent Power *1w \0xFE\0xFE\0x94\0xE0\0x14\0x0A\0x02\0x55\0xFD sets RF PWR to 100%
---------------------------------------------------------------------------------------------------------------------------

----
AGC FAST *1w \0xFE\0xFE\0x94\0xE0\0x16\0x12\0x01\0xFD
AGC SLOW *1w \0xFE\0xFE\0x94\0xE0\0x16\0x12\0x03\0xFD
-------------------------------------------------------------------------------------------
Pre-Amplifier OFF *1w \0xFE\0xFE\0x94\0xE0\0x16\0x02\0x00\0xFD
Pre-Amplifier ON *1w \0xFE\0xFE\0x94\0xE0\0x16\0x02\0x01\0xFD
-------------------------------------------------------------------------------------------


Here is the way to use a Macro in RigPi to set Power Output Level for Icom radios, tested on an IC-7300.

    Open the Macro window in RigPi SETTINGS.
    Select a Macro you want to use.
    In the Label (green) box enter a short description, such as PWR 100
    In the Value (gray) box put the following (to set power level to 100 watts)

*1w \0xFE\0xFE\0x94\0xE0\0x14\0x0A\0x02\0x55\0xFD

Let's dissect this...

    The '1' tells RigPi to expect a response from the radio (Icom radios reply to commands).
    'w' tells Hamlib to pass the command through to the radio.
    A space after 'w' is required.
    The next lines use Hex notation, \0x, to send Hex characters to the radio.  Most other radio brands do not require hex.
    \0xFE\0xFE is the standard preamble for Icom CAT commands.
    \0x94 is the CI-V radio number for the IC-7300.  Change it for your Icom radio.
    \0xE0 is the standard address for the radio to use to send the reply.
    \0x14\0x0A is the set/get output power command from the radio CAT manual. Now we'll set the power...
    This is the tricky one...\0x02\0x55 is the max power out (100%) shown in the CAT list as 255.
    \0xFD is the standard delimiting character.
Now you can create you own macros to set the output power you want.  For example, \0x00\0x00 sets the power to 0.  To set

it to 5 watts, (1/20th of full power), you would use /0x00/0x13.  13 is 1/20 of 255.

Bruce  N7XGR


On Wed, Oct 23, 2019 at 12:21 AM Daniel Tickell <dtickell@...> wrote:
Is there a guide or reference docs for writing macros.

In particular I would like to see what I can do around control of DSTAR stuff on my 7100, changing to memory mode, and selecting a specific memory. 


Daniel Tickell <dtickell@...>
 

Thats an amazing response.

Thanks

Daniel


Mac Jedi
 

These are all Hex so I am guessing that it may be possible to get these to work with the IC-7000?  In the HEX is there anything that is known that should be changed to become specific to the IC-7000?  For example in the HEX strings is there any particular part that addresses the particular radio ...  or can none of these be used for the IC-7000

Completely clueless how to move forward on the IC-7000 to have successful Macros.  A set of HEX commands would be great, known to work on the 7000.  :)

On Tue, Oct 22, 2019 at 10:51 PM Bruce N7XGR <n7xgr1@...> wrote:
Daniel,  Here are some macros that I have gleaned from postings and PDF's.
You change the CI-V address to your IC7100 which I think is 88.  These I have not tested.

IC-7610 ON                *PS1;

IC-7610 OFF               *PS0;

NOISE REDUCTION ON        *U NR 1

NOISE REDUCTION OFF       *U NR 0

NOISE REDUCTION LEVEL 2   *1w \0xFE\0xFE\0x98\0xE0\0x14\0x06\0x40\0xFD

NOISE REDUCTION LEVEL 4   *1w \0xFE\0xFE\0x98\0xE0\0x14\0x06\0x70\0xFD

NOISE REDUCTION LEVEL 6   *1w \0xFE\0xFE\0x98\0xE0\0x14\0x06\0x1\0x10\0xFD

NOISE REDUCTION LEVEL 8   *1w \0xFE\0xFE\0x98\0xE0\0x14\0x06\0x1\0x30\0xFD

ROTOR                   !ROTATE

ROTOR STOP              !RTR STOP

NOTCH ON           *1w \0xFE\0xFE\0x98\0xE0\0x016\0x41\0x01\0xFD

NOTCH OFF          *1w \0xFE\0xFE\0x98\0xE0\0x016\0x41\0x00\0xFD

COMPRESSION ON     *U COMP 1

COMPRESSION OFF    *U COMP 0

PREAMP OFF         *L PREAMP 0

PREAMP 1           *L PREAMP 1

PREAMP 2           *L PREAMP 2

ATTENUATOR OFF     *L ATT 0

ATTENUATOR 6 DB    *L ATT 6

ATTENUATOR 12 DB   *L ATT 12

ATTENUATOR 18 DB   *L ATT 18

VFO                *1w \0xFE\0xFE\0x98\0xE0\0x07\0xFD

MEMORY             *1w \0xFE\0xFE\0x98\0xE0\0x08\0xFD

ANTENNA 1          *1w \0xFE\0xFE\0x98\0xE0\0x12\0x0000\0xFD

ANTENNA 2          *1w \0xFE\0xFE\0x98\0xE0\0x12\0x0001\0xFD

RF -30%            *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x2\0x20\0xFD

RF -50%            *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x1\0x90\0xFD

RF-60%             *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x1\0x60\0xFD

RF 100%            *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x2\0x55\0xFD

14.300 Mhz         *F 14300000

OPBT / IPBT OFF    *1w \0xFE\0xFE\0x98\0xE0\0x14\0x08\0x1\0x28\0xFD

OPBT -100          *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x2\0x55\0xFD

OPBT -200          *1w \0xFE\0xFE\0x98\0xE0\0x14\0x08\0x85\0xFD

OPBT -300          *1w \0xFE\0xFE\0x98\0xE0\0x14\0x08\0x65\0xFD

IPBT 100           *1w \0xFE\0xFE\0x98\0xE0\0x14\0x08\0x01\0x50\0xFD

IPBT 200           *1w \0xFE\0xFE\0x98\0xE0\0x14\0x08\0x01\0x70\0xFD

IPBT 300           *1w \0xFE\0xFE\0x98\0xE0\0x14\0x08\0x01\0x90\0xFD

RF -30%            *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x2\0x20\0xFD

RF -50%            *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x1\0x90\0xFD

RF -60%            *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x1\0x90\0xFD

RF 100%            *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x2\0x55\0xFD

10% POWER          *L RFPOWER .11

25% POWER          *L RFPOWER .26

50% POWER          *L RFPOWER .51

100% POWER         *L RFPOWER 1.0

AGC slow. *1w \0xFE\0xFE\0x94\0xE0\0x16\0x12\0x03\0xFD
AGC mid.  *1w \0xFE\0xFE\0x94\0xE0\0x16\0x12\0x02\0xFD
AGC fast.  *1w \0xFE\0xFE\0x94\0xE0\0x16\0x12\0x01\0xFD

Set USB SQL (On) Closed  *1w \0xFE\0xFE\0x88\0xE0\0x1A\0x05\0x00\0x83\0x01\0xFD
Set USB SQL (OFF) Open  *1w \0xFE\0xFE\0x88\0xE0\0x1A\0x05\0x00\0x83\0x00\0xFD
Set ACC USB AF Level 100%  *1w \0xFE\0xFE\0x88\0xE0\0x1A\0x05\0x00\0x85\0x02\0x55\0xFD
Set ACC USB AF Level 65%  *1w \0xFE\0xFE\0x88\0xE0\0x1A\0x05\0x00\0x85\0x01\0x65\0xFD
Set RF Level 50%  *L RF .50
Set RF Level 70%  *L RF .70
Set RF Level 85%  *L RF .85
Set MEM Mode  *V MEM
Set VFO Mode VFOA  *V VFOA
Mem A06 WB7TUJ SIMPLEX 146.500  *E 06
Mem A14 WB7TUJ 70C 449.950  *E 14
Mem A12 DIGITAL MODES 145.550  *E 12
Mem A09 N2QOJ 449.325  *E 09
Mem A04 K7DAD 146.720  *E 04
Set SQL to 60%  *L SQL .60
Set SQL to 30%  *L SQL .30
Set SQL to 0%  *L SQL .00
PRE-AMPLIFIER ON  *L PREAMP 1
PRE-AMPLIFIER OFF  *L PREAMP 0
RF PWR 100%  *L RFPOWER 1.0
RF PWR 50%  *L RFPOWER .51
RF PWR 25%  *L RFPOWER .26
NR ON  *U NR 1
NR OFF  *U NR 0
TUNE  *G TUNE     *1w \0xFE\0xFE\0x94\0xE0\0x1C\0x01\0x02\0xFD

IC-7300 RigPi Macro List--13JUN19
-----------------------------------------------------------------------------
NR OFF *1w \0xFE\0xFE\0x94\0xE0\0x16\0x40\0x00\0xFD
NR ON *1w \0xFE\0xFE\0x94\0xE0\0x16\0x40\0x01\0xFD
-----------------------------------------------------------------------------
25 Percent Power *1w \0xFE\0xFE\0x94\0xE0\0x14\0x0A\0x00\0x65\0xFD sets RF PWR to 25%
50 Percent Power *1w \0xFE\0xFE\0x94\0xE0\0x14\0x0A\0x01\0x30\0xFD sets RF PWR to 50%
100 Percent Power *1w \0xFE\0xFE\0x94\0xE0\0x14\0x0A\0x02\0x55\0xFD sets RF PWR to 100%
---------------------------------------------------------------------------------------------------------------------------

----
AGC FAST *1w \0xFE\0xFE\0x94\0xE0\0x16\0x12\0x01\0xFD
AGC SLOW *1w \0xFE\0xFE\0x94\0xE0\0x16\0x12\0x03\0xFD
-------------------------------------------------------------------------------------------
Pre-Amplifier OFF *1w \0xFE\0xFE\0x94\0xE0\0x16\0x02\0x00\0xFD
Pre-Amplifier ON *1w \0xFE\0xFE\0x94\0xE0\0x16\0x02\0x01\0xFD
-------------------------------------------------------------------------------------------


Here is the way to use a Macro in RigPi to set Power Output Level for Icom radios, tested on an IC-7300.

    Open the Macro window in RigPi SETTINGS.
    Select a Macro you want to use.
    In the Label (green) box enter a short description, such as PWR 100
    In the Value (gray) box put the following (to set power level to 100 watts)

*1w \0xFE\0xFE\0x94\0xE0\0x14\0x0A\0x02\0x55\0xFD

Let's dissect this...

    The '1' tells RigPi to expect a response from the radio (Icom radios reply to commands).
    'w' tells Hamlib to pass the command through to the radio.
    A space after 'w' is required.
    The next lines use Hex notation, \0x, to send Hex characters to the radio.  Most other radio brands do not require hex.
    \0xFE\0xFE is the standard preamble for Icom CAT commands.
    \0x94 is the CI-V radio number for the IC-7300.  Change it for your Icom radio.
    \0xE0 is the standard address for the radio to use to send the reply.
    \0x14\0x0A is the set/get output power command from the radio CAT manual. Now we'll set the power...
    This is the tricky one...\0x02\0x55 is the max power out (100%) shown in the CAT list as 255.
    \0xFD is the standard delimiting character.
Now you can create you own macros to set the output power you want.  For example, \0x00\0x00 sets the power to 0.  To set

it to 5 watts, (1/20th of full power), you would use /0x00/0x13.  13 is 1/20 of 255.

Bruce  N7XGR

On Wed, Oct 23, 2019 at 12:21 AM Daniel Tickell <dtickell@...> wrote:
Is there a guide or reference docs for writing macros.

In particular I would like to see what I can do around control of DSTAR stuff on my 7100, changing to memory mode, and selecting a specific memory. 



--
The Force Is Within You...
MacJedi.net


Mac Jedi
 

Possibly just need the Radio model HEX identifier to insert into the sting and then test each command for any signs of life in the radio...  So I guess the question would be...  Does anyone know where I could find the HEX identifier number for the Icom IC-7000?

On Wed, Oct 23, 2019 at 2:18 AM Mac Jedi via Groups.Io <Macjedi=gmail.com@groups.io> wrote:
These are all Hex so I am guessing that it may be possible to get these to work with the IC-7000?  In the HEX is there anything that is known that should be changed to become specific to the IC-7000?  For example in the HEX strings is there any particular part that addresses the particular radio ...  or can none of these be used for the IC-7000

Completely clueless how to move forward on the IC-7000 to have successful Macros.  A set of HEX commands would be great, known to work on the 7000.  :)

On Tue, Oct 22, 2019 at 10:51 PM Bruce N7XGR <n7xgr1@...> wrote:
Daniel,  Here are some macros that I have gleaned from postings and PDF's.
You change the CI-V address to your IC7100 which I think is 88.  These I have not tested.

IC-7610 ON                *PS1;

IC-7610 OFF               *PS0;

NOISE REDUCTION ON        *U NR 1

NOISE REDUCTION OFF       *U NR 0

NOISE REDUCTION LEVEL 2   *1w \0xFE\0xFE\0x98\0xE0\0x14\0x06\0x40\0xFD

NOISE REDUCTION LEVEL 4   *1w \0xFE\0xFE\0x98\0xE0\0x14\0x06\0x70\0xFD

NOISE REDUCTION LEVEL 6   *1w \0xFE\0xFE\0x98\0xE0\0x14\0x06\0x1\0x10\0xFD

NOISE REDUCTION LEVEL 8   *1w \0xFE\0xFE\0x98\0xE0\0x14\0x06\0x1\0x30\0xFD

ROTOR                   !ROTATE

ROTOR STOP              !RTR STOP

NOTCH ON           *1w \0xFE\0xFE\0x98\0xE0\0x016\0x41\0x01\0xFD

NOTCH OFF          *1w \0xFE\0xFE\0x98\0xE0\0x016\0x41\0x00\0xFD

COMPRESSION ON     *U COMP 1

COMPRESSION OFF    *U COMP 0

PREAMP OFF         *L PREAMP 0

PREAMP 1           *L PREAMP 1

PREAMP 2           *L PREAMP 2

ATTENUATOR OFF     *L ATT 0

ATTENUATOR 6 DB    *L ATT 6

ATTENUATOR 12 DB   *L ATT 12

ATTENUATOR 18 DB   *L ATT 18

VFO                *1w \0xFE\0xFE\0x98\0xE0\0x07\0xFD

MEMORY             *1w \0xFE\0xFE\0x98\0xE0\0x08\0xFD

ANTENNA 1          *1w \0xFE\0xFE\0x98\0xE0\0x12\0x0000\0xFD

ANTENNA 2          *1w \0xFE\0xFE\0x98\0xE0\0x12\0x0001\0xFD

RF -30%            *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x2\0x20\0xFD

RF -50%            *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x1\0x90\0xFD

RF-60%             *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x1\0x60\0xFD

RF 100%            *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x2\0x55\0xFD

14.300 Mhz         *F 14300000

OPBT / IPBT OFF    *1w \0xFE\0xFE\0x98\0xE0\0x14\0x08\0x1\0x28\0xFD

OPBT -100          *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x2\0x55\0xFD

OPBT -200          *1w \0xFE\0xFE\0x98\0xE0\0x14\0x08\0x85\0xFD

OPBT -300          *1w \0xFE\0xFE\0x98\0xE0\0x14\0x08\0x65\0xFD

IPBT 100           *1w \0xFE\0xFE\0x98\0xE0\0x14\0x08\0x01\0x50\0xFD

IPBT 200           *1w \0xFE\0xFE\0x98\0xE0\0x14\0x08\0x01\0x70\0xFD

IPBT 300           *1w \0xFE\0xFE\0x98\0xE0\0x14\0x08\0x01\0x90\0xFD

RF -30%            *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x2\0x20\0xFD

RF -50%            *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x1\0x90\0xFD

RF -60%            *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x1\0x90\0xFD

RF 100%            *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x2\0x55\0xFD

10% POWER          *L RFPOWER .11

25% POWER          *L RFPOWER .26

50% POWER          *L RFPOWER .51

100% POWER         *L RFPOWER 1.0

AGC slow. *1w \0xFE\0xFE\0x94\0xE0\0x16\0x12\0x03\0xFD
AGC mid.  *1w \0xFE\0xFE\0x94\0xE0\0x16\0x12\0x02\0xFD
AGC fast.  *1w \0xFE\0xFE\0x94\0xE0\0x16\0x12\0x01\0xFD

Set USB SQL (On) Closed  *1w \0xFE\0xFE\0x88\0xE0\0x1A\0x05\0x00\0x83\0x01\0xFD
Set USB SQL (OFF) Open  *1w \0xFE\0xFE\0x88\0xE0\0x1A\0x05\0x00\0x83\0x00\0xFD
Set ACC USB AF Level 100%  *1w \0xFE\0xFE\0x88\0xE0\0x1A\0x05\0x00\0x85\0x02\0x55\0xFD
Set ACC USB AF Level 65%  *1w \0xFE\0xFE\0x88\0xE0\0x1A\0x05\0x00\0x85\0x01\0x65\0xFD
Set RF Level 50%  *L RF .50
Set RF Level 70%  *L RF .70
Set RF Level 85%  *L RF .85
Set MEM Mode  *V MEM
Set VFO Mode VFOA  *V VFOA
Mem A06 WB7TUJ SIMPLEX 146.500  *E 06
Mem A14 WB7TUJ 70C 449.950  *E 14
Mem A12 DIGITAL MODES 145.550  *E 12
Mem A09 N2QOJ 449.325  *E 09
Mem A04 K7DAD 146.720  *E 04
Set SQL to 60%  *L SQL .60
Set SQL to 30%  *L SQL .30
Set SQL to 0%  *L SQL .00
PRE-AMPLIFIER ON  *L PREAMP 1
PRE-AMPLIFIER OFF  *L PREAMP 0
RF PWR 100%  *L RFPOWER 1.0
RF PWR 50%  *L RFPOWER .51
RF PWR 25%  *L RFPOWER .26
NR ON  *U NR 1
NR OFF  *U NR 0
TUNE  *G TUNE     *1w \0xFE\0xFE\0x94\0xE0\0x1C\0x01\0x02\0xFD

IC-7300 RigPi Macro List--13JUN19
-----------------------------------------------------------------------------
NR OFF *1w \0xFE\0xFE\0x94\0xE0\0x16\0x40\0x00\0xFD
NR ON *1w \0xFE\0xFE\0x94\0xE0\0x16\0x40\0x01\0xFD
-----------------------------------------------------------------------------
25 Percent Power *1w \0xFE\0xFE\0x94\0xE0\0x14\0x0A\0x00\0x65\0xFD sets RF PWR to 25%
50 Percent Power *1w \0xFE\0xFE\0x94\0xE0\0x14\0x0A\0x01\0x30\0xFD sets RF PWR to 50%
100 Percent Power *1w \0xFE\0xFE\0x94\0xE0\0x14\0x0A\0x02\0x55\0xFD sets RF PWR to 100%
---------------------------------------------------------------------------------------------------------------------------

----
AGC FAST *1w \0xFE\0xFE\0x94\0xE0\0x16\0x12\0x01\0xFD
AGC SLOW *1w \0xFE\0xFE\0x94\0xE0\0x16\0x12\0x03\0xFD
-------------------------------------------------------------------------------------------
Pre-Amplifier OFF *1w \0xFE\0xFE\0x94\0xE0\0x16\0x02\0x00\0xFD
Pre-Amplifier ON *1w \0xFE\0xFE\0x94\0xE0\0x16\0x02\0x01\0xFD
-------------------------------------------------------------------------------------------


Here is the way to use a Macro in RigPi to set Power Output Level for Icom radios, tested on an IC-7300.

    Open the Macro window in RigPi SETTINGS.
    Select a Macro you want to use.
    In the Label (green) box enter a short description, such as PWR 100
    In the Value (gray) box put the following (to set power level to 100 watts)

*1w \0xFE\0xFE\0x94\0xE0\0x14\0x0A\0x02\0x55\0xFD

Let's dissect this...

    The '1' tells RigPi to expect a response from the radio (Icom radios reply to commands).
    'w' tells Hamlib to pass the command through to the radio.
    A space after 'w' is required.
    The next lines use Hex notation, \0x, to send Hex characters to the radio.  Most other radio brands do not require hex.
    \0xFE\0xFE is the standard preamble for Icom CAT commands.
    \0x94 is the CI-V radio number for the IC-7300.  Change it for your Icom radio.
    \0xE0 is the standard address for the radio to use to send the reply.
    \0x14\0x0A is the set/get output power command from the radio CAT manual. Now we'll set the power...
    This is the tricky one...\0x02\0x55 is the max power out (100%) shown in the CAT list as 255.
    \0xFD is the standard delimiting character.
Now you can create you own macros to set the output power you want.  For example, \0x00\0x00 sets the power to 0.  To set

it to 5 watts, (1/20th of full power), you would use /0x00/0x13.  13 is 1/20 of 255.

Bruce  N7XGR

On Wed, Oct 23, 2019 at 12:21 AM Daniel Tickell <dtickell@...> wrote:
Is there a guide or reference docs for writing macros.

In particular I would like to see what I can do around control of DSTAR stuff on my 7100, changing to memory mode, and selecting a specific memory. 



--
The Force Is Within You...
MacJedi.net



--
The Force Is Within You...
MacJedi.net


Mac Jedi
 

OK sorry for thinking aloud as I am not near the radio to test yet...  Looking at this url:   


 I see a clue and hope this is the right silver bullet to modify the macro commands for the IC-7000 . in the document it states the following:  

[Address CI-V] Model RTX used. Hexadecimal address of interface CI-V (default = 70)

I hope this is it!  If so that would mean the following command for the 7300 would be:

*1w \0xFE\0xFE\0x94\0xE0\0x14\0x0A\0x02\0x55\0xFD

and the following command for the 7000 would be:

*1w \0xFE\0xFE\0x70\0xE0\0x14\0x0A\0x02\0x55\0xFD


On Wed, Oct 23, 2019 at 2:26 AM Mac Jedi via Groups.Io <Macjedi=gmail.com@groups.io> wrote:
Possibly just need the Radio model HEX identifier to insert into the sting and then test each command for any signs of life in the radio...  So I guess the question would be...  Does anyone know where I could find the HEX identifier number for the Icom IC-7000?

On Wed, Oct 23, 2019 at 2:18 AM Mac Jedi via Groups.Io <Macjedi=gmail.com@groups.io> wrote:
These are all Hex so I am guessing that it may be possible to get these to work with the IC-7000?  In the HEX is there anything that is known that should be changed to become specific to the IC-7000?  For example in the HEX strings is there any particular part that addresses the particular radio ...  or can none of these be used for the IC-7000

Completely clueless how to move forward on the IC-7000 to have successful Macros.  A set of HEX commands would be great, known to work on the 7000.  :)

On Tue, Oct 22, 2019 at 10:51 PM Bruce N7XGR <n7xgr1@...> wrote:
Daniel,  Here are some macros that I have gleaned from postings and PDF's.
You change the CI-V address to your IC7100 which I think is 88.  These I have not tested.

IC-7610 ON                *PS1;

IC-7610 OFF               *PS0;

NOISE REDUCTION ON        *U NR 1

NOISE REDUCTION OFF       *U NR 0

NOISE REDUCTION LEVEL 2   *1w \0xFE\0xFE\0x98\0xE0\0x14\0x06\0x40\0xFD

NOISE REDUCTION LEVEL 4   *1w \0xFE\0xFE\0x98\0xE0\0x14\0x06\0x70\0xFD

NOISE REDUCTION LEVEL 6   *1w \0xFE\0xFE\0x98\0xE0\0x14\0x06\0x1\0x10\0xFD

NOISE REDUCTION LEVEL 8   *1w \0xFE\0xFE\0x98\0xE0\0x14\0x06\0x1\0x30\0xFD

ROTOR                   !ROTATE

ROTOR STOP              !RTR STOP

NOTCH ON           *1w \0xFE\0xFE\0x98\0xE0\0x016\0x41\0x01\0xFD

NOTCH OFF          *1w \0xFE\0xFE\0x98\0xE0\0x016\0x41\0x00\0xFD

COMPRESSION ON     *U COMP 1

COMPRESSION OFF    *U COMP 0

PREAMP OFF         *L PREAMP 0

PREAMP 1           *L PREAMP 1

PREAMP 2           *L PREAMP 2

ATTENUATOR OFF     *L ATT 0

ATTENUATOR 6 DB    *L ATT 6

ATTENUATOR 12 DB   *L ATT 12

ATTENUATOR 18 DB   *L ATT 18

VFO                *1w \0xFE\0xFE\0x98\0xE0\0x07\0xFD

MEMORY             *1w \0xFE\0xFE\0x98\0xE0\0x08\0xFD

ANTENNA 1          *1w \0xFE\0xFE\0x98\0xE0\0x12\0x0000\0xFD

ANTENNA 2          *1w \0xFE\0xFE\0x98\0xE0\0x12\0x0001\0xFD

RF -30%            *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x2\0x20\0xFD

RF -50%            *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x1\0x90\0xFD

RF-60%             *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x1\0x60\0xFD

RF 100%            *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x2\0x55\0xFD

14.300 Mhz         *F 14300000

OPBT / IPBT OFF    *1w \0xFE\0xFE\0x98\0xE0\0x14\0x08\0x1\0x28\0xFD

OPBT -100          *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x2\0x55\0xFD

OPBT -200          *1w \0xFE\0xFE\0x98\0xE0\0x14\0x08\0x85\0xFD

OPBT -300          *1w \0xFE\0xFE\0x98\0xE0\0x14\0x08\0x65\0xFD

IPBT 100           *1w \0xFE\0xFE\0x98\0xE0\0x14\0x08\0x01\0x50\0xFD

IPBT 200           *1w \0xFE\0xFE\0x98\0xE0\0x14\0x08\0x01\0x70\0xFD

IPBT 300           *1w \0xFE\0xFE\0x98\0xE0\0x14\0x08\0x01\0x90\0xFD

RF -30%            *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x2\0x20\0xFD

RF -50%            *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x1\0x90\0xFD

RF -60%            *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x1\0x90\0xFD

RF 100%            *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x2\0x55\0xFD

10% POWER          *L RFPOWER .11

25% POWER          *L RFPOWER .26

50% POWER          *L RFPOWER .51

100% POWER         *L RFPOWER 1.0

AGC slow. *1w \0xFE\0xFE\0x94\0xE0\0x16\0x12\0x03\0xFD
AGC mid.  *1w \0xFE\0xFE\0x94\0xE0\0x16\0x12\0x02\0xFD
AGC fast.  *1w \0xFE\0xFE\0x94\0xE0\0x16\0x12\0x01\0xFD

Set USB SQL (On) Closed  *1w \0xFE\0xFE\0x88\0xE0\0x1A\0x05\0x00\0x83\0x01\0xFD
Set USB SQL (OFF) Open  *1w \0xFE\0xFE\0x88\0xE0\0x1A\0x05\0x00\0x83\0x00\0xFD
Set ACC USB AF Level 100%  *1w \0xFE\0xFE\0x88\0xE0\0x1A\0x05\0x00\0x85\0x02\0x55\0xFD
Set ACC USB AF Level 65%  *1w \0xFE\0xFE\0x88\0xE0\0x1A\0x05\0x00\0x85\0x01\0x65\0xFD
Set RF Level 50%  *L RF .50
Set RF Level 70%  *L RF .70
Set RF Level 85%  *L RF .85
Set MEM Mode  *V MEM
Set VFO Mode VFOA  *V VFOA
Mem A06 WB7TUJ SIMPLEX 146.500  *E 06
Mem A14 WB7TUJ 70C 449.950  *E 14
Mem A12 DIGITAL MODES 145.550  *E 12
Mem A09 N2QOJ 449.325  *E 09
Mem A04 K7DAD 146.720  *E 04
Set SQL to 60%  *L SQL .60
Set SQL to 30%  *L SQL .30
Set SQL to 0%  *L SQL .00
PRE-AMPLIFIER ON  *L PREAMP 1
PRE-AMPLIFIER OFF  *L PREAMP 0
RF PWR 100%  *L RFPOWER 1.0
RF PWR 50%  *L RFPOWER .51
RF PWR 25%  *L RFPOWER .26
NR ON  *U NR 1
NR OFF  *U NR 0
TUNE  *G TUNE     *1w \0xFE\0xFE\0x94\0xE0\0x1C\0x01\0x02\0xFD

IC-7300 RigPi Macro List--13JUN19
-----------------------------------------------------------------------------
NR OFF *1w \0xFE\0xFE\0x94\0xE0\0x16\0x40\0x00\0xFD
NR ON *1w \0xFE\0xFE\0x94\0xE0\0x16\0x40\0x01\0xFD
-----------------------------------------------------------------------------
25 Percent Power *1w \0xFE\0xFE\0x94\0xE0\0x14\0x0A\0x00\0x65\0xFD sets RF PWR to 25%
50 Percent Power *1w \0xFE\0xFE\0x94\0xE0\0x14\0x0A\0x01\0x30\0xFD sets RF PWR to 50%
100 Percent Power *1w \0xFE\0xFE\0x94\0xE0\0x14\0x0A\0x02\0x55\0xFD sets RF PWR to 100%
---------------------------------------------------------------------------------------------------------------------------

----
AGC FAST *1w \0xFE\0xFE\0x94\0xE0\0x16\0x12\0x01\0xFD
AGC SLOW *1w \0xFE\0xFE\0x94\0xE0\0x16\0x12\0x03\0xFD
-------------------------------------------------------------------------------------------
Pre-Amplifier OFF *1w \0xFE\0xFE\0x94\0xE0\0x16\0x02\0x00\0xFD
Pre-Amplifier ON *1w \0xFE\0xFE\0x94\0xE0\0x16\0x02\0x01\0xFD
-------------------------------------------------------------------------------------------


Here is the way to use a Macro in RigPi to set Power Output Level for Icom radios, tested on an IC-7300.

    Open the Macro window in RigPi SETTINGS.
    Select a Macro you want to use.
    In the Label (green) box enter a short description, such as PWR 100
    In the Value (gray) box put the following (to set power level to 100 watts)

*1w \0xFE\0xFE\0x94\0xE0\0x14\0x0A\0x02\0x55\0xFD

Let's dissect this...

    The '1' tells RigPi to expect a response from the radio (Icom radios reply to commands).
    'w' tells Hamlib to pass the command through to the radio.
    A space after 'w' is required.
    The next lines use Hex notation, \0x, to send Hex characters to the radio.  Most other radio brands do not require hex.
    \0xFE\0xFE is the standard preamble for Icom CAT commands.
    \0x94 is the CI-V radio number for the IC-7300.  Change it for your Icom radio.
    \0xE0 is the standard address for the radio to use to send the reply.
    \0x14\0x0A is the set/get output power command from the radio CAT manual. Now we'll set the power...
    This is the tricky one...\0x02\0x55 is the max power out (100%) shown in the CAT list as 255.
    \0xFD is the standard delimiting character.
Now you can create you own macros to set the output power you want.  For example, \0x00\0x00 sets the power to 0.  To set

it to 5 watts, (1/20th of full power), you would use /0x00/0x13.  13 is 1/20 of 255.

Bruce  N7XGR

On Wed, Oct 23, 2019 at 12:21 AM Daniel Tickell <dtickell@...> wrote:
Is there a guide or reference docs for writing macros.

In particular I would like to see what I can do around control of DSTAR stuff on my 7100, changing to memory mode, and selecting a specific memory. 



--
The Force Is Within You...
MacJedi.net



--
The Force Is Within You...
MacJedi.net



--
The Force Is Within You...
MacJedi.net


Bruce N7XGR
 

Mac,  Believe it or not the manual for your IC7000 has the CI-V address in the menu settings.
All that is needed is to look there for even a IC7300 and it has the default CI-V address.
The Control Command for your unit starts on page 142, there you will find 70 in the command string.

Bruce  N7XGR


On Wed, Oct 23, 2019 at 4:44 AM Mac Jedi <Macjedi@...> wrote:
OK sorry for thinking aloud as I am not near the radio to test yet...  Looking at this url:   


 I see a clue and hope this is the right silver bullet to modify the macro commands for the IC-7000 . in the document it states the following:  

[Address CI-V] Model RTX used. Hexadecimal address of interface CI-V (default = 70)

I hope this is it!  If so that would mean the following command for the 7300 would be:

*1w \0xFE\0xFE\0x94\0xE0\0x14\0x0A\0x02\0x55\0xFD

and the following command for the 7000 would be:

*1w \0xFE\0xFE\0x70\0xE0\0x14\0x0A\0x02\0x55\0xFD

On Wed, Oct 23, 2019 at 2:26 AM Mac Jedi via Groups.Io <Macjedi=gmail.com@groups.io> wrote:
Possibly just need the Radio model HEX identifier to insert into the sting and then test each command for any signs of life in the radio...  So I guess the question would be...  Does anyone know where I could find the HEX identifier number for the Icom IC-7000?

On Wed, Oct 23, 2019 at 2:18 AM Mac Jedi via Groups.Io <Macjedi=gmail.com@groups.io> wrote:
These are all Hex so I am guessing that it may be possible to get these to work with the IC-7000?  In the HEX is there anything that is known that should be changed to become specific to the IC-7000?  For example in the HEX strings is there any particular part that addresses the particular radio ...  or can none of these be used for the IC-7000

Completely clueless how to move forward on the IC-7000 to have successful Macros.  A set of HEX commands would be great, known to work on the 7000.  :)

On Tue, Oct 22, 2019 at 10:51 PM Bruce N7XGR <n7xgr1@...> wrote:
Daniel,  Here are some macros that I have gleaned from postings and PDF's.
You change the CI-V address to your IC7100 which I think is 88.  These I have not tested.

IC-7610 ON                *PS1;

IC-7610 OFF               *PS0;

NOISE REDUCTION ON        *U NR 1

NOISE REDUCTION OFF       *U NR 0

NOISE REDUCTION LEVEL 2   *1w \0xFE\0xFE\0x98\0xE0\0x14\0x06\0x40\0xFD

NOISE REDUCTION LEVEL 4   *1w \0xFE\0xFE\0x98\0xE0\0x14\0x06\0x70\0xFD

NOISE REDUCTION LEVEL 6   *1w \0xFE\0xFE\0x98\0xE0\0x14\0x06\0x1\0x10\0xFD

NOISE REDUCTION LEVEL 8   *1w \0xFE\0xFE\0x98\0xE0\0x14\0x06\0x1\0x30\0xFD

ROTOR                   !ROTATE

ROTOR STOP              !RTR STOP

NOTCH ON           *1w \0xFE\0xFE\0x98\0xE0\0x016\0x41\0x01\0xFD

NOTCH OFF          *1w \0xFE\0xFE\0x98\0xE0\0x016\0x41\0x00\0xFD

COMPRESSION ON     *U COMP 1

COMPRESSION OFF    *U COMP 0

PREAMP OFF         *L PREAMP 0

PREAMP 1           *L PREAMP 1

PREAMP 2           *L PREAMP 2

ATTENUATOR OFF     *L ATT 0

ATTENUATOR 6 DB    *L ATT 6

ATTENUATOR 12 DB   *L ATT 12

ATTENUATOR 18 DB   *L ATT 18

VFO                *1w \0xFE\0xFE\0x98\0xE0\0x07\0xFD

MEMORY             *1w \0xFE\0xFE\0x98\0xE0\0x08\0xFD

ANTENNA 1          *1w \0xFE\0xFE\0x98\0xE0\0x12\0x0000\0xFD

ANTENNA 2          *1w \0xFE\0xFE\0x98\0xE0\0x12\0x0001\0xFD

RF -30%            *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x2\0x20\0xFD

RF -50%            *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x1\0x90\0xFD

RF-60%             *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x1\0x60\0xFD

RF 100%            *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x2\0x55\0xFD

14.300 Mhz         *F 14300000

OPBT / IPBT OFF    *1w \0xFE\0xFE\0x98\0xE0\0x14\0x08\0x1\0x28\0xFD

OPBT -100          *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x2\0x55\0xFD

OPBT -200          *1w \0xFE\0xFE\0x98\0xE0\0x14\0x08\0x85\0xFD

OPBT -300          *1w \0xFE\0xFE\0x98\0xE0\0x14\0x08\0x65\0xFD

IPBT 100           *1w \0xFE\0xFE\0x98\0xE0\0x14\0x08\0x01\0x50\0xFD

IPBT 200           *1w \0xFE\0xFE\0x98\0xE0\0x14\0x08\0x01\0x70\0xFD

IPBT 300           *1w \0xFE\0xFE\0x98\0xE0\0x14\0x08\0x01\0x90\0xFD

RF -30%            *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x2\0x20\0xFD

RF -50%            *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x1\0x90\0xFD

RF -60%            *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x1\0x90\0xFD

RF 100%            *1w \0xFE\0xFE\0x98\0xE0\0x14\0x02\0x2\0x55\0xFD

10% POWER          *L RFPOWER .11

25% POWER          *L RFPOWER .26

50% POWER          *L RFPOWER .51

100% POWER         *L RFPOWER 1.0

AGC slow. *1w \0xFE\0xFE\0x94\0xE0\0x16\0x12\0x03\0xFD
AGC mid.  *1w \0xFE\0xFE\0x94\0xE0\0x16\0x12\0x02\0xFD
AGC fast.  *1w \0xFE\0xFE\0x94\0xE0\0x16\0x12\0x01\0xFD

Set USB SQL (On) Closed  *1w \0xFE\0xFE\0x88\0xE0\0x1A\0x05\0x00\0x83\0x01\0xFD
Set USB SQL (OFF) Open  *1w \0xFE\0xFE\0x88\0xE0\0x1A\0x05\0x00\0x83\0x00\0xFD
Set ACC USB AF Level 100%  *1w \0xFE\0xFE\0x88\0xE0\0x1A\0x05\0x00\0x85\0x02\0x55\0xFD
Set ACC USB AF Level 65%  *1w \0xFE\0xFE\0x88\0xE0\0x1A\0x05\0x00\0x85\0x01\0x65\0xFD
Set RF Level 50%  *L RF .50
Set RF Level 70%  *L RF .70
Set RF Level 85%  *L RF .85
Set MEM Mode  *V MEM
Set VFO Mode VFOA  *V VFOA
Mem A06 WB7TUJ SIMPLEX 146.500  *E 06
Mem A14 WB7TUJ 70C 449.950  *E 14
Mem A12 DIGITAL MODES 145.550  *E 12
Mem A09 N2QOJ 449.325  *E 09
Mem A04 K7DAD 146.720  *E 04
Set SQL to 60%  *L SQL .60
Set SQL to 30%  *L SQL .30
Set SQL to 0%  *L SQL .00
PRE-AMPLIFIER ON  *L PREAMP 1
PRE-AMPLIFIER OFF  *L PREAMP 0
RF PWR 100%  *L RFPOWER 1.0
RF PWR 50%  *L RFPOWER .51
RF PWR 25%  *L RFPOWER .26
NR ON  *U NR 1
NR OFF  *U NR 0
TUNE  *G TUNE     *1w \0xFE\0xFE\0x94\0xE0\0x1C\0x01\0x02\0xFD

IC-7300 RigPi Macro List--13JUN19
-----------------------------------------------------------------------------
NR OFF *1w \0xFE\0xFE\0x94\0xE0\0x16\0x40\0x00\0xFD
NR ON *1w \0xFE\0xFE\0x94\0xE0\0x16\0x40\0x01\0xFD
-----------------------------------------------------------------------------
25 Percent Power *1w \0xFE\0xFE\0x94\0xE0\0x14\0x0A\0x00\0x65\0xFD sets RF PWR to 25%
50 Percent Power *1w \0xFE\0xFE\0x94\0xE0\0x14\0x0A\0x01\0x30\0xFD sets RF PWR to 50%
100 Percent Power *1w \0xFE\0xFE\0x94\0xE0\0x14\0x0A\0x02\0x55\0xFD sets RF PWR to 100%
---------------------------------------------------------------------------------------------------------------------------

----
AGC FAST *1w \0xFE\0xFE\0x94\0xE0\0x16\0x12\0x01\0xFD
AGC SLOW *1w \0xFE\0xFE\0x94\0xE0\0x16\0x12\0x03\0xFD
-------------------------------------------------------------------------------------------
Pre-Amplifier OFF *1w \0xFE\0xFE\0x94\0xE0\0x16\0x02\0x00\0xFD
Pre-Amplifier ON *1w \0xFE\0xFE\0x94\0xE0\0x16\0x02\0x01\0xFD
-------------------------------------------------------------------------------------------


Here is the way to use a Macro in RigPi to set Power Output Level for Icom radios, tested on an IC-7300.

    Open the Macro window in RigPi SETTINGS.
    Select a Macro you want to use.
    In the Label (green) box enter a short description, such as PWR 100
    In the Value (gray) box put the following (to set power level to 100 watts)

*1w \0xFE\0xFE\0x94\0xE0\0x14\0x0A\0x02\0x55\0xFD

Let's dissect this...

    The '1' tells RigPi to expect a response from the radio (Icom radios reply to commands).
    'w' tells Hamlib to pass the command through to the radio.
    A space after 'w' is required.
    The next lines use Hex notation, \0x, to send Hex characters to the radio.  Most other radio brands do not require hex.
    \0xFE\0xFE is the standard preamble for Icom CAT commands.
    \0x94 is the CI-V radio number for the IC-7300.  Change it for your Icom radio.
    \0xE0 is the standard address for the radio to use to send the reply.
    \0x14\0x0A is the set/get output power command from the radio CAT manual. Now we'll set the power...
    This is the tricky one...\0x02\0x55 is the max power out (100%) shown in the CAT list as 255.
    \0xFD is the standard delimiting character.
Now you can create you own macros to set the output power you want.  For example, \0x00\0x00 sets the power to 0.  To set

it to 5 watts, (1/20th of full power), you would use /0x00/0x13.  13 is 1/20 of 255.

Bruce  N7XGR

On Wed, Oct 23, 2019 at 12:21 AM Daniel Tickell <dtickell@...> wrote:
Is there a guide or reference docs for writing macros.

In particular I would like to see what I can do around control of DSTAR stuff on my 7100, changing to memory mode, and selecting a specific memory. 



--
The Force Is Within You...
MacJedi.net



--
The Force Is Within You...
MacJedi.net



--
The Force Is Within You...
MacJedi.net


Bo W4GHV
 

Awesome! Now how do I save this? In the Files?
Now why didn't you have one to set the bandpass filters?🤔. I struggled trying to learn them and never got there.
--
73, Bo W4GHV since '54


Larry AC9OX
 

Hi Bo.

I will take care of adding the Macro list to the Files and Wiki.

Larry
AC9OX


Mac Jedi
 

Thanks Bruce.  I took a look and sure enough.  I hope I catch on to how all this hex works.  I think I will change the radio ID and then send it a command from the 7300 and see what happens.  Otherwise it looks like on the referred page, I will need to decipher the 7000 info and create my own commands.  Not really a hex guy but I might try and become a fast learner.  I figured out the 991A so this can't be much different.  Again thanks for pointing my nose in the right direction.


Mac Jedi
 
Edited

Adding the Hex commands as macros renders the desired action except that the RigPi Report flashes on the screen each time a macro is sent.  Here is the basic warning which I have no idea what it means:

 

“Radio says: ??p? ????p??”

 

My guess is that it is saying it doesn’t like the hex command due to incorrect characters in the string but the string actually delivers the correct results.  What gives here?

 

Icom IC-7000 - RSS hex commands for requesting radio to go to memory position 1 or 2 or 3 or 4 or 5 etc.

Commands is hex below:

 

Label:  Goto Memory 1A. Hex command:  *1w \0xFE\0xFE\0x70\0xE0\0x08\0x01\0x00\0xFD

Label:  Goto Memory 1B. Hex command:  *1w \0xFE\0xFE\0x70\0xE0\0x08\0x01\0x01\0xFD

Label:  Goto Memory 2A. Hex command:  *1w \0xFE\0xFE\0x70\0xE0\0x08\0x01\0x02\0xFD

Label:  Goto Memory 2B. Hex command:  *1w \0xFE\0xFE\0x70\0xE0\0x08\0x01\0x03\0xFD

Label:  Goto Memory 3A. Hex command:  *1w \0xFE\0xFE\0x70\0xE0\0x08\0x01\0x04\0xFD

--
The Force Is Within You...
MacJedi.net


Mike K0JTA
 

Good day;  I have a related, but REALLY basic question...

I see the macro list, which as I understand are hex.   In the following example:
*1w \0xFE\0xFE\0x70\0xE0\0x08\0x01\0x00\0xFD

-Are the hex commands (numbers) case sensitive??  Otherwise, having to enter an upper-case letter, then switch to the lower case "x" and then continue with two more of this small group (
\0xFE\) in upper case is somewhat complex.

In the case of this sample.
\0xFE\, is it possible to enter "\0xfe\" or "\0XFE\" with equal results?

Thank you from Mike, K0JTA


Jens / DH1AKY
 

Hi Mike,

this is REALLY an important question. I've seen some case-sensitive and some case-insensitive implementations before. Some commercial stuff (outside the hamradio domain) doesn't work because of that.

But not owning such a device I don't have an exact answer. I think the best is to try lower-case letters first.

73 Jens/DH1AKY


Bruce N7XGR
 

Mike,  I use Commander to test CI-V commands and this is what I found.
I entered this,  fefe98e0162201fd  this command turns on the NB (noise blanker)
in a 7610 and it worked.  00fd turns off the NB.
So it indicates that even lower case should work.

Bruce  N7XGR


On Thu, Nov 28, 2019 at 12:47 PM Mike K0JTA <mike@...> wrote:
Good day;  I have a related, but REALLY basic question...

I see the macro list, which as I understand are hex.   In the following example:
*1w \0xFE\0xFE\0x70\0xE0\0x08\0x01\0x00\0xFD

-Are the hex commands (numbers) case sensitive??  Otherwise, having to enter an upper-case letter, then switch to the lower case "x" and then continue with two more of this small group (
\0xFE\) in upper case is somewhat complex.

In the case of this sample.
\0xFE\, is it possible to enter "\0xfe\" or "\0XFE\" with equal results?

Thank you from Mike, K0JTA


Christophe de
 

This topic is verry helpful to configure the ic-7300 ;  ic-9700 & ic-9100.
Now i'm looking for the command  to go MEM UP and MEM DOWN. 
Is there a simple hamlib for ?

Thanks, 

Christophe 


Mark (PB2SD)
 

Is there by now anybody who has the commands for MEM UP an MEM down?

Thanks!

Mark


Dan Heather
 

Hi Mark,

What do you have for a radio?  I have a Yaesu FT-991 (not A) and I would dearly love to know how to do that!

Dan N1DH

On 10/13/2020 8:16 AM, Mark (PB2SD) wrote:
Is there by now anybody who has the commands for MEM UP an MEM down?

Thanks!

Mark


Mark (PB2SD)
 

Hi Dan,

I have an ICOM  IC-9700.  I found the commands    *V MEM    and    *V VFO   to put the radio in Memory mode or VFO mode.
I hope there is somebody who can tell me how I can give commands to go to the next memory channel or to go down to the previous memory channel on the IC-9700.
It would be wonderful, if there was a direct command to go to a specific memory-channel   (for example memory channel 2  or memory channel 5)

Mark  PB2SD


Rick Rinehimer
 

FT-991A

Memory Up: *0w \0x43\0x48\0x30\0x3b
Memory Down: *0w \0x43\0x48\0x31\0x3b

73, Rick K3TOW


Steve_KE4LC
 

A VERY nice, new feature of RigPi RSS 2.00 is that you no longer need to do the text to hexadecimal conversion for macros!  You can use straight text after the *0w prefix. 

Likewise, if you use rigctl terminal for testing Hamlibs, direct rig commands are also now processed as text after the w prefix.  Try it, you’ll like it!

73, Steve KE4LC