4.3  piWebCAT - Database table - catcodes

catcodes is used on the server to communicate with the radio for buttons and frequency.

(None of its data is loaded to the client)


  • rig                  The current radio   - drop down selector (from radios table)
                     Must have same spelling through the tables.
  • description          Descriptive text- no function
  • code          The link to the buttons table  - use my defaults where possible.
                     Note that for frequency reading and setting, the code must be FREQ (hard coded)
  • abx          A or B if there is pair of entries one for each VFO  (eg: Mute RxA, RxB)
                     X if A or B not relevant. (eg:swap VFOs, Tuner etc )   See also: vx and abx
  • readbytes          The number of bytes in a read command (= no of chars in readmask)
  • setbytes          The number of bytes in a set command (= no of chars in setmask)
  • answerbytes  The number of bytes in an answer (= no of chars in answermask)
  • readmask          The character pattern of the read command, see Command masks
  • setmask          The character pattern of the set command.  see Command masks
  • answermask  The character pattern of the answer.  see Command masks


piWebCAT editor for catcodes is shown below:                              

Note the abx column:

If there are separate commands for VfoA and VfoB, then there are two records with abx = A and abx = B.

Thus DNR on/off has two entries and speech proc on/off has one entry (so abx = X)  See also: vx and abx


Examples:


DNR on/off        This has one record in the buttons table and two records in catcodes

There is single button in the buttons table with code = NRSW, von = 1, voff = 0.

 We set vx = V in buttons because the radios holds separate DNR settings for VFOs A and B.
       The URL of a set message to the server includes: &code=NRSW&jobdata=1     (1 is von)

               There are two entries in the catcodes table:

                            abx = A  setmask = NR0u;   and      abx = B     setmask = NR1u;

                   A or B will be sent to the radios according to piWebCAT's  current VFO selection.        

                            The u = units  = single character of data.     u will be '1' for on and '0'  for off  


FTdx101D configuration shown below

buttons


catcodes


Roofing filter:          This has four records in the buttons table and two records in catcodes

 select                The are four buttons and so four entries in the buttons table, all with action = G (grouped)

                         Each button has code = ROOF and cset = the roofer selector (FTdx101D CAT manual)  
               Example URL client to server::    &code=ROOF&jobdata=2   where 2 is the cset value


FTdx101D configuration shown below

buttons


catcodes



Speech proc        This has one record in the buttons table and one record in catcodes.

 on/off                code = SPSW    abx = X     vx = X      action = T (toggled)

       

FTdx101D configuration shown below

buttons        


catcodes