1800 mixmode+LTE

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 3

@A+

@PRESERVE
@R-

@SET {TGNum}=154
@@SET {TGNum}=26
@@@SET {TGNum}=87
@@SET {TGNum}=

RXMOP: mo=rxotg-{TGNum};

@SCAN {_line4} "RSITE" {pos}


@if {pos}=0 then GOTO l30
@set {l5}={_line5}
@goto l31
@label l30
@set {l5}={_line6}
@label l31

@comment {l5}
@copy {l5} {G9_18} 19 1
@copy {l5} {RSite} 19 20

@set {R111}={RSite}
@Trim {R111}

@if {G9_18} = 9 then SET {band}= GSM900


@if {G9_18} = 1 then SET {band}= GSM1800

@comment {G9_18} {band}

rxtcp: mo=rxotg-{TGNum};

@SCAN {_line4} "CELL" {pos}


@if {pos}=0 then GOTO l40
@set {l5}={_line5}
@set {l6}={_line6}
@set {l7}={_line7}
@goto l41
@label l40
@set {l5}={_line6}
@set {l6}={_line7}
@set {l7}={_line8}
@label l41

@copy {l5} {cell1} 18 6


@copy {l6} {cell2} 1 6
@copy {l7} {cell3} 1 6

@length {cell1} {lcell1}


@length {cell2} {lcell2}
@length {cell3} {lcell3}

@ifdef {sect} then @unset {sect}

@set {ii}=0

@if {lcell1}=0 then goto ii1


@set {sect[{ii}]}={cell1}
@inc {ii}
@label ii1
@if {lcell2}=0 then goto ii2
@set {sect[{ii}]}={cell2}
@inc {ii}
@label ii2
@if {lcell3}=0 then goto ii3
@set {sect[{ii}]}={cell3}
@inc {ii}
@label ii3
@sort {sect}

@set {cell1}=""
@set {cell2}=""
@set {cell3}=""

@if {ii}>0 then @set {cell1}={sect[0]}


@if {ii}>1 then @set {cell2}={sect[1]}
@if {ii}>2 then @set {cell3}={sect[2]}

@length {cell1} {lcell1}


@length {cell2} {lcell2}
@length {cell3} {lcell3}

@comment {lcell1} {lcell2} {lcell3}


@comment {cell1} {cell2} {cell3}

@@------- HALTED ------- HALTED ------- HALTED ------- HALTED ------- HALTED

@if {lcell1}<>6 then goto l01


rlstc:cell={Cell1},state=halted;
@label l01
@if {lcell2}<>6 then goto l02
rlstc:cell={Cell2},state=halted;
@label l02
@if {lcell3}<>6 then goto l03
rlstc:cell={Cell3},state=halted;
@label l03

rxbli:mo=rxotg-{TGNum},subord,force;
rxese:mo=rxotg-{TGNum},subord;

@@------------------
@@ to working state

rxesi:mo=rxotg-{TGNum},subord;
rxble:mo=rxotg-{TGNum},subord;

@if {lcell1}<>6 then goto l11


rlstc:cell={Cell1},state=active;
@label l11
@if {lcell2}<>6 then goto l12
rlstc:cell={Cell2},state=active;
@label l21
@if {lcell3}<>6 then goto l13
rlstc:cell={Cell3},state=active;
@label l13

@@---------- END HALTED ---------- END HALTED ---------- END HALTED


@@ check state
rlstp: cell=all, state=halted;

RXMOP: mo=rxotf-{TGNum};

RXMOP: mo=RXOMCTR-{TGNum}-0;
RXMOP: mo=RXOMCTR-{TGNum}-1;
RXMOP: mo=RXOMCTR-{TGNum}-2;
RXMOP: mo=RXOMCTR-{TGNum}-3;
RXMOP: mo=RXOMCTR-{TGNum}-4;
RXMOP: mo=RXOMCTR-{TGNum}-5;

rxcdp:mo=rxotg-{TGNum};
rxmsp:mo=rxotg-{TGNum},subord;
rxapp:mo=rxotg-{TGNum};

RXMFP:MO=RXOTG-{TGNum},SUBORD,FAULTY;
rxmfp:mo=rxocf-{TGNum};
@@ check resources

rlcrp:cell={Cell1};
rlcrp:cell={Cell2};
rlcrp:cell={Cell3};

@@-------------------------------

RXMOc: mo=rxotf-{TGNum},FSOFFSET=0;

RXMOc: mo=RXOMCTR-{TGNum}-0,MIXEDMODE=ON;
RXMOc: mo=RXOMCTR-{TGNum}-1,MIXEDMODE=ON;
RXMOc: mo=RXOMCTR-{TGNum}-2,MIXEDMODE=ON;
RXMOc: mo=RXOMCTR-{TGNum}-3,MIXEDMODE=ON;
RXMOc: mo=RXOMCTR-{TGNum}-4,MIXEDMODE=ON;
RXMOc: mo=RXOMCTR-{TGNum}-5,MIXEDMODE=ON;

You might also like