6.5 piWebCAT - Database table - meterciv
piWebCAT has an S meter on receive and five button-selected meter options in transmit.
The five Tx buttons are set up up the buttonsciv table
The meterciv table controls the subsequent repetitive meter reading.
The timing table sets the meter repetition interval.
The link between the buttonsciv table and the meterciv table is the btnno field values, 61 to 65.
The meterciv table is shown below for my IC7000
The are two S meter records (RxA and RxB) and four Tx meter records (IC7000 only has four Tx meters)
The two S meter entries have identical data control fields.
The S meter code fields SMTA and SMTB are fixed on the client and so must be entered as these
so that the server will recognise them.
The Tx meter code fields are copied to the client at startup and so you can use any code of your choice.
piWebCAT has five Tx meter option buttons but the IC7000 has only four Tx values to display.
Button 64 is therefore unused. Button 64 is inactivated in the buttonsciv table.
Four of the Tx meter values have been assigned to four of the option buttons as shown below:
In the meterciv table, these are the items with btnno = 61, 62, 64 and 65. See Button and slider numbering
meterciv field list:
- rig The current radio - drop down selector (from radios table)
Must have same spelling through the tables. - description Descriptive text- no function
- caption The caption to apply to the button (overrides default TxmA, TxmB etc.)
- btnno The sliders's unique, fixed, numeric identifier as discussed earlier.
- code Specified once here. Used in message from client and recognised in server.
- abx If A or B, Client sends Vfo A or B to server. abx allows server to read appropriate meter.
For Tx meters abx = X (not VFO-specific) - rigadr 70 (hex) is the default on some Icon radios
- rpiaddr The controller address - use E0.
- cmdtype The Icom command type. Control data formatting. See CIV control fields
- datadigits The number of decimal digits in the answer data. See CIV control fields
In meter table always 3 as meter CAT range is 0 255 - com The hexadecimal command byte.
- subcom The hexadecimal sub command byte (in IC7000 specifies the meter to be read.)
- subcon4or6 The decimal sub command (eg: 50014) when cmdtype = C_S6_DATA.
- mult Multiplier (default = 1)
- divide Divisor (default = 1) Meter CAT value is scaled by (CAT * mult) / divide
before being optionally modified by the metercal table data. - usecal Y or N. If Y, then the CAT value is processed by the calibration table.
( 20 point calibration for each meter with linear interpolation between points)