I've read through several posts trying to find enough lines of code to create a dialogbox program from scratch. I am not all familar with Aspect but once it is done in front of me I can walk my way through it and understand the steps on how it works. I just have a hard time putting it together on my own from the "help" menu. Here is an overview of what I am trying to do:
1. Operate a craftshell session via telnet on a Lucent based system.
2. Use a dialogbox to transmit several lines of commands repetitively and at the same time, changing different fields through radiobuttons, pushbuttons and an editfield.
I have the dialogbox created but my trouble is getting it all to work together. The box needs to stay open while the parent window is open too. Here is what I have so far on the dialog box code:
proc main
string sCell
integer Choice = 2
dialogbox 1 81 51 160 184 70 "CFR Tool"
editbox 2 40 5 24 11 sCell 3
radiogroup 20 Choice
radiobutton 3 40 29 20 11 "1"
radiobutton 4 40 42 20 11 "2"
radiobutton 5 40 55 20 11 "3"
endgroup
radiogroup 21 Choice
radiobutton 6 40 85 20 11 "1"
radiobutton 7 40 98 20 11 "2"
radiobutton 8 40 111 20 11 "3"
endgroup
pushbutton 9 110 3 40 13 "Start CFR"
pushbutton 10 110 27 40 13 "Config CBR"
pushbutton 11 110 54 40 13 "CDMADPC"
pushbutton 12 110 80 40 13 "Add CE"
pushbutton 13 110 105 40 13 "XMITC 300"
pushbutton 14 110 131 40 13 "XMITC 301"
pushbutton 15 110 157 40 13 "End CFR"
text 16 3 6 34 11 "Cell Site:" right
text 17 3 30 34 11 "CDM:" right
text 18 3 86 34 11 "CBR:" right
enddialog
endproc
What I am trying to do is --> enter a number into the "cell site" field; click on a "cdm" and "cbr" and start pressing the buttons(the value transmitted from the "cdm" button needs to be set at a fixed value of 1, 2, and 3, while the "cbr" button transmits "multi cbr 1", 2, and 3. The "cdmadpc" field transmits 120, 80, or 60 depending on the "cdm" value. If the "cdm" value is 1, then the "cdmadpc" value is 120. If "cdm" is 2, then "cdmadpc" is 80, and so forth.)
The more I think about it, the more it kicks my ass. This is something that would actually help quite a few switch and field techs who do power calibrations on Lucent CDMA Modcells(Verizon, Sprint, US Cellular, Cricket, and other cdma carriers). If anyone knows what I am talking about, carpel tunnel just loves us.
Here is an example of the commands that need to be transmitted from beginning to end(this is for just ONE sector on a 3 sectored cell site. Multiply that by 2 or 3 times for a higher capacity site!!):
"cfr:cell 123,multi;start" ;starts calibration session
"cfr:cell 123,cdm 1,multi cbr 1;config 150" ;cbr setup
"cfr:cell 123,cdm 1,multi cbr 1;cdmadpc 120" ;attenuation
"cfr:cell 123,cdm 1,multi cbr 1;addce 7" ;adding ce's
"cfr:cell 123,cdm 1,multi cbr 1;xmitc 300" ;turn on tx
"cfr:cell 123,cdm 1,multi cbr 1;xmitc 301" ;turn off tx
"cfr:cell 123,multi;mstop" ;ends calibration session
So would anyone have any templates to work from? From a template I think I could figure my way around.
1. Operate a craftshell session via telnet on a Lucent based system.
2. Use a dialogbox to transmit several lines of commands repetitively and at the same time, changing different fields through radiobuttons, pushbuttons and an editfield.
I have the dialogbox created but my trouble is getting it all to work together. The box needs to stay open while the parent window is open too. Here is what I have so far on the dialog box code:
proc main
string sCell
integer Choice = 2
dialogbox 1 81 51 160 184 70 "CFR Tool"
editbox 2 40 5 24 11 sCell 3
radiogroup 20 Choice
radiobutton 3 40 29 20 11 "1"
radiobutton 4 40 42 20 11 "2"
radiobutton 5 40 55 20 11 "3"
endgroup
radiogroup 21 Choice
radiobutton 6 40 85 20 11 "1"
radiobutton 7 40 98 20 11 "2"
radiobutton 8 40 111 20 11 "3"
endgroup
pushbutton 9 110 3 40 13 "Start CFR"
pushbutton 10 110 27 40 13 "Config CBR"
pushbutton 11 110 54 40 13 "CDMADPC"
pushbutton 12 110 80 40 13 "Add CE"
pushbutton 13 110 105 40 13 "XMITC 300"
pushbutton 14 110 131 40 13 "XMITC 301"
pushbutton 15 110 157 40 13 "End CFR"
text 16 3 6 34 11 "Cell Site:" right
text 17 3 30 34 11 "CDM:" right
text 18 3 86 34 11 "CBR:" right
enddialog
endproc
What I am trying to do is --> enter a number into the "cell site" field; click on a "cdm" and "cbr" and start pressing the buttons(the value transmitted from the "cdm" button needs to be set at a fixed value of 1, 2, and 3, while the "cbr" button transmits "multi cbr 1", 2, and 3. The "cdmadpc" field transmits 120, 80, or 60 depending on the "cdm" value. If the "cdm" value is 1, then the "cdmadpc" value is 120. If "cdm" is 2, then "cdmadpc" is 80, and so forth.)
The more I think about it, the more it kicks my ass. This is something that would actually help quite a few switch and field techs who do power calibrations on Lucent CDMA Modcells(Verizon, Sprint, US Cellular, Cricket, and other cdma carriers). If anyone knows what I am talking about, carpel tunnel just loves us.
Here is an example of the commands that need to be transmitted from beginning to end(this is for just ONE sector on a 3 sectored cell site. Multiply that by 2 or 3 times for a higher capacity site!!):
"cfr:cell 123,multi;start" ;starts calibration session
"cfr:cell 123,cdm 1,multi cbr 1;config 150" ;cbr setup
"cfr:cell 123,cdm 1,multi cbr 1;cdmadpc 120" ;attenuation
"cfr:cell 123,cdm 1,multi cbr 1;addce 7" ;adding ce's
"cfr:cell 123,cdm 1,multi cbr 1;xmitc 300" ;turn on tx
"cfr:cell 123,cdm 1,multi cbr 1;xmitc 301" ;turn off tx
"cfr:cell 123,multi;mstop" ;ends calibration session
So would anyone have any templates to work from? From a template I think I could figure my way around.