Notifications
Clear all

How to program a Provider Display

1 Posts
1 Users
0 Likes
6,088 Views
(@moderator)
Noble Member Admin
Joined: 14 years ago
Posts: 1044
Topic starter  

This instruction shows you how to add a Provider Display which will automaticaly show the provider name of the strongest signal (you need to install the latest firmware first. Should be BETA37 or higher).
With the cursor function you can even select any signal within the spectrum and the provider name of this signal (or frequency) will show up.
You can also modify this code to integrate other provider or use it as a chanel number display etc.
This instruction is for SWEDEN only but its quite simple to modify it for other countries: You just need to change the provider names and the frequencies.

Step by step instruction:

1) Start the LCS software and connect it your SPECTRAN unit.
2) Start the File Manager in the Extras menue.
3) Create a new program number "301" (in ID) and add "GSM900" to "Description" and copy the following code to this program:

 LOADSET PEAK1FREQ
 STOREVAR 05h
 LOADVAR 05h
 LDCONST 921.2
 JUMPLT LABEL-2
 LOADVAR 05h
 LDCONST 925.0
 JUMPLT LABEL-2
 LOADVAR 05h
 LDCONST 930.0
 JUMPLT LABEL-3
 LOADVAR 05h
 LDCONST 935.0
 JUMPLT LABEL-4
 LOADVAR 05h
 LDCONST 942.5
 JUMPLT LABEL-5
 LOADVAR 05h
 LDCONST 950.0
 JUMPLT LABEL-6
 LOADVAR 05h
 LDCONST 960.0
 JUMPLT LABEL-7
LABEL-1:
 JUMP LABEL-20
LABEL-2:
 PRINTSTR 03h, "------"
 JUMP LABEL-20
LABEL-3:
 PRINTSTR 03h, " HI3G "
 JUMP LABEL-20
LABEL-4:
 PRINTSTR 03h, "SWEFOR"
 JUMP LABEL-20
LABEL-5:
 PRINTSTR 03h, "TELE2"
 JUMP LABEL-20
LABEL-6:
 PRINTSTR 03h, "TELNOR"
 JUMP LABEL-20
LABEL-7:
 PRINTSTR 03h, "TELIA"
LABEL-20:
 LDCONST 1
 STOREVAR Fh
 LDCONST 150
 CHAIN

4) Create a new program number "302" (in ID) and add "GSM1800" to "Description" and copy the following code to this program:

 LOADSET PEAK1FREQ
 STOREVAR 05h
 LOADVAR 05h
 LDCONST 1800
 JUMPLT LABEL-1
 LOADVAR 05h
 LDCONST 1806.9
 JUMPLT LABEL-2
 LOADVAR 05h
 LDCONST 1810.1
 JUMPLT LABEL-3
 LOADVAR 05h
 LDCONST 1813.3
 JUMPLT LABEL-4
 LOADVAR 05h
 LDCONST 1816.5
 JUMPLT LABEL-5
LOADVAR 05h
 LDCONST 1835.1
 JUMPLT LABEL-6
LOADVAR 05h
 LDCONST 1853.3
 JUMPLT LABEL-7
LOADVAR 05h
 LDCONST 1862.5
 JUMPLT LABEL-8
LOADVAR 05h
 LDCONST 1877.9
 JUMPLT LABEL-9
 LOADVAR 05h
 LDCONST 1880
 JUMPLT LABEL-10
LABEL-1:
 JUMP LABEL-20
LABEL-2:
 PRINTSTR 03h, "------"
 JUMP LABEL-20
LABEL-3:
 PRINTSTR 03h, "SPRING"
 JUMP LABEL-20
LABEL-4:
 PRINTSTR 03h, "TELE2"
 JUMP LABEL-20
LABEL-5:
 PRINTSTR 03h, "TELNOR"
 JUMP LABEL-20
LABEL-6:
 PRINTSTR 03h, "TELIA"
 JUMP LABEL-20
LABEL-7:
 PRINTSTR 03h, "TELE2"
 JUMP LABEL-20
LABEL-8:
 PRINTSTR 03h, "TELIA"
 JUMP LABEL-20
LABEL-9:
 PRINTSTR 03h, "TELNOR"
 JUMP LABEL-20
LABEL-10:
 PRINTSTR 03h, "------"
 JUMP LABEL-20
LABEL-20:
 LDCONST 2
 STOREVAR 0Fh
 LDCONST 150
 CHAIN

5) Create a new program number "303" (in ID) and add "UMTS" to "Description" and copy the following code to this program:

LOADSET PEAK1FREQ
 STOREVAR 05h
 LOADVAR 05h
 LDCONST 2110.3
 JUMPLT LABEL-1
 LOADVAR 05h
 LDCONST 2125.3
 JUMPLT LABEL-2
 LOADVAR 05h
 LDCONST 2140.1
 JUMPLT LABEL-3
 LOADVAR 05h
 LDCONST 2154.9
 JUMPLT LABEL-4
LOADVAR 05h
 LDCONST 2169.7
 JUMPLT LABEL-5
LABEL-1:
 JUMP LABEL-20
LABEL-2:
 PRINTSTR 03h, "TELNOR"
 JUMP LABEL-20
LABEL-3:
 PRINTSTR 03h, " HI3G "
 JUMP LABEL-20
LABEL-4:
 PRINTSTR 03h, "ORANGE"
 JUMP LABEL-20
LABEL-5:
 PRINTSTR 03h, "SV-UMT"
LABEL-20:
 LDCONST 3
 STOREVAR Fh
 LDCONST 150
 CHAIN

6) Create a new program number "304" (in ID) and add "4G" to "Description" and copy the following code to this program:

LOADSET PEAK1FREQ
 STOREVAR 05h
 LOADVAR 05h
 LDCONST 2620.0
 JUMPLT LABEL-1
 LOADVAR 05h
 LDCONST 2640.0
 JUMPLT LABEL-2
 LOADVAR 05h
 LDCONST 2650.0
 JUMPLT LABEL-3
 LOADVAR 05h
 LDCONST 2670.0
 JUMPLT LABEL-4
LOADVAR 05h
 LDCONST 2690.0
 JUMPLT LABEL-5
LABEL-1:
 JUMP LABEL-20
LABEL-2:
 PRINTSTR 03h, "TELE2"
 JUMP LABEL-20
LABEL-3:
 PRINTSTR 03h, " HI3G "
 JUMP LABEL-20
LABEL-4:
 PRINTSTR 03h, "TELIA"
 JUMP LABEL-20
LABEL-5:
 PRINTSTR 03h, "TELNOR"
LABEL-20:
 LDCONST 4
 STOREVAR Fh
 LDCONST 150
 CHAIN

7) Insert at the very top of the "scanprog" program (program number 150) the following code:

LOADVAR 15
 LDCONST 1
 JUMPLT LABEL-21
 LOADVAR 15
 LDCONST 2
 JUMPLT LABEL-22
 LOADVAR 15
 LDCONST 3
 JUMPLT LABEL-23
 LOADVAR 15
 LDCONST 4
 JUMPLT LABEL-24
 JUMP LABEL-25
 LABEL-21:
 LDCONST 301
 CHAIN
 LABEL-22:
 LDCONST 302
 CHAIN
 LABEL-23:
 LDCONST 303
 CHAIN
 LABEL-24:
 LDCONST 304
 CHAIN
 LABEL-25:
 LDCONST 0
 STOREVAR 15

8) Change the programcode of "Taste 9" (Hotkey 9 / program number 109) to:

SETUP
    STARTFREQ:2620 STOPFREQ:2690
    RESBANDW:1 VIDBANDW:2
    SWEEPTIME:1 ATTENFAC:-10
    REFLEVEL:0 DISPRANGE:100
    PULSEMODE:0
 PRINTSTR 03h, "  4G"
 STOP

Thats it! Now you have a GSM900, GSM1800, UMTS and 4G provider display for SWEDEN!
Simply presse:
Hotkey 5 for GSM900
Hotkey 6 for GSM1800
Hotkey 7 for UMTS
Hotkey 9 for 4G
The Display will automaticaly show the provider name of the strongest signal.
With the cursor function you can even select any signal within the spectrum and the provider name of this signal (or frequency) will show up.

Note1: Please make sure that you have enough memory available to save above new files e.g. delete existing loggerfiles or custom P-Code. Make sure the files are stored corectly using the "newread" button of the filemanager.

Note2: Since we are using the marker vaules please make sure that the marker level is set to highest sensitivity (set menue point "MrkLvl" to -110dBm).

Snip


   
Quote
Share: