Progamming the CFA-635 LEDs



Author: JC634

Programming Instructions:

Programming the CFA-635 LEDís is quite simple compared to programming keys. First, determine the variable(s) you want to monitor. Then open the lcd_635.ini file (located in the cc2-service directory) and add the appropriate code. Restart CC2 and you the LEDís will now visually monitor a variable.

The following example shows how to program the LEDís to display CPU usage on the bottom 2 LEDís and Network bytes received/sent on the top 2 LEDís. This code is placed at the end of the lcd_635.ini file.

Example:

led01_order=5
led01_smooth=7
led01_id_value=381711152 ; bytes sent id number
led01_value_max=100000.000000 ; maximum bytes
led01_value_min=0.000000
led02_order=5
led02_smooth=7
led02_id_value=3123086274 ; bytes received id number
led02_value_max=500000.000000 ; maximum bytes
led02_value_min=0.000000
led03_order=5
led03_smooth=7
led03_id_value=1733063910 ; CPU usage id number
led03_value_max=100.000000 ; 100 % CPU usage
led03_value_min=50.000000 ; 50 % CPU usage
led04_order=5
led04_smooth=7
led04_id_value=1733063910 ; CPU usage id number
led04_value_max=50.000000 ; 50 % CPU usage
led04_value_min=0.000000 ; 0 % CPU usage

In the above example, please note that the bytes maximum number give a reasonable green-to-red transition for my cable modem. Different types of connections require different values.

Where do the id numbers come from? The answer ranges from quite simple to slightly more difficult. If you programmed a screen that uses these variables, it is quite simple. If you added a screen which does not use these variables, generate one that uses them. After the screen has been added and CC2 restarted, open up the following file: cc2_perfmon.ini (located in the cc2-service directory).

Look for the following code:
[perf06]
id=1733063910
full_name="\\Processor(_Total)\\% Processor Time"
precision=0
multiplier=1

Now you know where the 1733063910 came from. Please note that your id number will be different. Copy and paste as required.

For the network id numbers, look for code similar to the following:
[perf09]
id=3123086274
full_name="\\Network Interface(Intel[R] PRO_1000 CT Network Connection - Packet Scheduler Miniport)\\Bytes Received/sec"
precision=0
multiplier=1

[perf10]
id=381711152
full_name="\\Network Interface(Intel[R] PRO_1000 CT Network Connection - Packet Scheduler Miniport)\\Bytes Sent/sec"
precision=0
multiplier=1

The (Intel[R] PRO_1000 CT Network Connection - Packet Scheduler Miniport) may be different for your system. In order to determine what your Network Interface is, you will need to do the following:

Run a program named perfmon_enum.exe in the cc2-service\perfmon_enum folder. It creates a file named perfdump.txt in this directory. Open this file and search for Network Interface. Copy and paste these values into a network screen file. You can use the screen file located here: https://forum.crystalfontz.com/showt...&threadid=4246 for this purpose.

Add this screen file. Open the cc2_perfmon.ini file as described earlier and search for the appropriate id numbers.

Development thread: Part of the User Screen Syntax Manual.