Changes between Version 9 and Version 10 of Software/eAM/mInstr
- Timestamp:
- May 14, 2014, 7:52:34 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Software/eAM/mInstr
v9 v10 5 5 This service controls the RF test system that is the core of [wiki:Hardware/bDomains/cSandboxes/dSB4 Sandbox 4]. It is used to control attenuation values between pairs of ports (ie. the eight (8) nodes and wimax BS) through the standard OMF URL based services. 6 6 7 === set ===7 === set: Set a single attenuator value === 8 8 9 9 Set the attenuation value on given port pairs: 10 10 11 [[CollapsibleStart(set)]] 11 12 {{{ 12 13 <service name="set"> … … 25 26 </service> 26 27 }}} 28 [[CollapsibleEnd]] 27 29 28 30 Example: set the attenuation value between node1-1 and node1-2 to 20 dB … … 32 34 }}} 33 35 34 === get ===36 === get: Get a single attenuation value === 35 37 36 38 Get the attenuation between a given pair of ports 37 39 40 [[CollapsibleStart(get)]] 38 41 {{{ 39 42 <service name="get"> … … 49 52 </service> 50 53 }}} 54 [[CollapsibleEnd]] 51 55 52 56 Example: get the attenuation between node1-1 and node1-8 … … 56 60 }}} 57 61 58 === default === 62 === default: Set all attenuators to default values === 63 64 [[CollapsibleStart(default)]] 59 65 {{{ 60 66 <service name="default"> … … 62 68 </service> 63 69 }}} 70 [[CollapsibleEnd]] 64 71 65 72 The default configuration sets all attenuators to 0 dB attenuation (i.e. full connectivity between all of the nodes including the WiMAX basestation). 66 73 67 === status ===74 === status: Get all attenuator values === 68 75 69 76 Get attenuation values on all port pairs 70 77 78 [[CollapsibleStart(status)]] 71 79 {{{ 72 80 <service name="status"> … … 74 82 </service> 75 83 }}} 84 [[CollapsibleEnd]] 76 85 77 86 {{{ … … 79 88 }}} 80 89 81 === load === 90 === list: List all stored configurations === 91 92 [[CollapsibleStart(list)]] 93 {{{ 94 <service name="list"> 95 <info>This service list configurations from database.</info> 96 </service> 97 }}} 98 [[CollapsibleEnd]] 99 100 === load: Load named configuration === 82 101 Load attenuator setting from the internal database of configurations. 83 102 103 [[CollapsibleStart(load)]] 84 104 {{{ 85 105 <service name="load"> … … 92 112 </service> 93 113 }}} 94 95 === list === 96 {{{ 97 <service name="list"> 98 <info>This service list configurations from database.</info> 99 </service> 100 }}} 101 102 103 === save === 104 Store current attenuator settings into internal database under the named configuration. 105 114 [[CollapsibleEnd]] 115 116 === save: Save current attenuator settings === 117 118 Store current attenuator settings under with the '''name''' into internal database . 119 120 [[CollapsibleStart(save)]] 106 121 {{{ 107 122 <service name="save"> … … 114 129 </service> 115 130 }}} 116 117 === delete === 131 [[CollapsibleEnd]] 132 133 === delete: Delete named configuration === 134 135 [[CollapsibleStart(delete)]] 118 136 {{{ 119 137 <service name="delete"> … … 121 139 </service> 122 140 }}} 123 124 === show === 141 [[CollapsibleEnd]] 142 143 === show: Show named configuration === 144 145 [[CollapsibleStart(show)]] 125 146 {{{ 126 147 <service name="show"> … … 133 154 </service> 134 155 }}} 156 [[CollapsibleEnd]] 157 158 === Named Configurations === 159 160 [[CollapsibleStart(Standard topologies)]][[Include(Topologies)]][[CollapsibleEnd]] 161 162 === OEDL Support === 163 164 Attenuator values are between 0 and 63 dB. 165 166 ==== Using attenuation for link matrix ==== 167 168 {{{ 169 ... 170 require "matrix" 171 172 c8 = Matrix[ 173 [ 63, 0,63,63,63,63,63, 0,63 ], 174 [ 0,63, 0,63,63,63,63,63,63 ], 175 [ 63, 0,63,63,63,63,63,63,63 ], 176 [ 63,63, 0,63, 0,63,63,63,63 ], 177 [ 63,63,63, 0,63, 0,63,63,63 ], 178 [ 63,63,63,63, 0,63, 0,63,63 ], 179 [ 63,63,63,63,63, 0,63, 0,63 ], 180 [ 0,63,63,63,63,63, 0,63,63 ], 181 [ 63,63,63,63,63,63,63,63,63 ] 182 ] 183 184 set_att_matrix(c8) 185 ... 186 }}} 187 188 ==== Using gain for link matrix ==== 189 {{{ 190 ... 191 require "matrix" 192 193 c8 = Matrix[ 194 [ 0,63, 0, 0, 0, 0, 0,63, 0 ], 195 [ 63, 0,63, 0, 0, 0, 0, 0, 0 ], 196 [ 0,63, 0,63, 0, 0, 0, 0, 0 ], 197 [ 0, 0,63, 0,63, 0, 0, 0, 0 ], 198 [ 0, 0, 0,63, 0,63, 0, 0, 0 ], 199 [ 0, 0, 0, 0,63, 0,63, 0, 0 ], 200 [ 0, 0, 0, 0, 0,63, 0,63, 0 ], 201 [ 63, 0, 0, 0, 0, 0,63, 0, 0 ], 202 [ 0, 0, 0, 0, 0, 0, 0, 0, 0 ] 203 ] 204 205 set_neg_att_matrix(c8) 206 ... 207 }}} 208 209 ==== Loading saved configurations ==== 210 211 {{{ 212 ... 213 load_att_matrix("cycle-8") 214 ... 215 }}}