Project

General

Profile

OCTOI Event PBX » History » Version 11

laforge, 11/19/2022 05:39 PM

1 3 laforge
{{>toc}}
2
3 1 laforge
h1. OCTOI Event PBX
4
5
The OCTOI Event PBX are a couple of modified/enhannced 3U rackmount PBX systems which we can bring to retrocomputing / hacker events or museum exhibitions to provide a temporary point of connection to the OCTOI network.
6
7
They contain everything that's needed to connect to the network:
8
* An Auerswald COMmander 2 Basic PBX with
9
** one 8 port S0 line card (each S0 bus available on two RJ45 connectors)
10
** one 8 port analog line card (each analog port available on one RJ45 connector)
11
** one S2M (PRI) line card (connected to the icE1usb)
12
* the icE1usb device
13
* an embedded GNU/Linux computer (Beaglebone green) to run osmo-e1d and run the TDMoIP protocol endpoint
14
* an internal ethernet switch to allow access to the Auerswald
15
16
The idea is that you bring this unit to an event, connect it to power and ethernet (with internet access), connect some Phones/Modems/... and be ready to use the OCTOI network.
17
18
h2. Photos
19
20 11 laforge
h3. Fully assembled unit in flight case
21
22
{{thumbnail(20221109_125221.jpg)}}
23
{{thumbnail(20221109_125259.jpg)}}
24
{{thumbnail(20221109_125251.jpg)}}
25
26
27 1 laforge
h3. Front view with open lid
28
29 2 laforge
{{thumbnail(20221105_000955.jpg,size=600)}}
30 1 laforge
31
h3. Internal view showing Ethernet switch, icE1usb and beaglebone green
32
33 2 laforge
{{thumbnail(20221105_001006.jpg,size=600)}}
34 3 laforge
35
h2. Parameters / Configuration
36
37
|_.Unit|_.OCTOI Prefix|_.Beaglebone MAC|
38
|PBX 1|030-2601|40:bd:32:e4:88:b8|
39 5 laforge
|PBX 2|030-2602|34:84:e4:0c:87:c6|
40
|PBX 3|030-2603|98:f0:7b:70:9b:1f|
41
|PBX 4|030-2604|34:84:e4:0a:ec:f3|
42 3 laforge
43
h2. Dial Plan
44
45
|_.Port|_.Extension (MSN)|
46
|S0 1|2110, 2111, 2112|
47
|S0 2|2120, 2121, 2122|
48
|S0 3|2130, 2131, 2132|
49
|S0 4|2140, 2141, 2142|
50
|S0 5|2150, 2151, 2152|
51
|S0 6|2160, 2161, 2162|
52
|S0 7|2170, 2171, 2172|
53
|S0 8|2180, 2181, 2182|
54
|analog 1|2310|
55
|analog 2|2320|
56
|analog 3|2330|
57
|analog 4|2340|
58
|analog 5|2350|
59
|analog 6|2360|
60
|analog 7|2370|
61
|analog 8|2380|
62 1 laforge
63 6 laforge
h2. Usage
64
65
There really isn't much to be done.  
66
67
# Connect an Ethernet cable to the RJ45 connector on the bottom left side of the enclosure
68
# power up the system using the main switch next to the AC inleton the back
69
#* The beaglebone will obtain a DHCP lease and establish the OCTOI/TDMoIP connection to the OCTOI hub (@divf.retronetworking.org@).
70
#* the system (both the PBX and the beaglebone) will take quite a bit of time to boot.
71
# if you have GPS line of sight, optionally connect the GPS antenna to the SMA connector on the right hand side front panel. This will improve clock stability and avoid cycle slips.
72
# connect ISDN equipment to the ISDN ports (8 S0 busses each exposed to 2x8P8C on the two leftmost panels)
73
#* make sure the MSNs are configured correctly (see labels on the port and table above). The PBX will reject any calls originated from a phone with wrong MSN
74
#* one set of 100 Ohms terminators is active inside the PBX; for proper termination another set is formally required, but usually it just works without those, at leaset on short wires.
75
# connect analog equipment to the analog ports (8 a/b ports each exposed to 1x8P8C on a panel in the center of the front side)
76
#* you will need some adapters for 8P8C to TAE (or whatever telephone connector your equipment has)
77
78
h2. LEDs
79
80
h3. PBX LEDs on the left side of the face plate
81
82 9 laforge
h4. Power LED
83
84 6 laforge
FIXME
85
86 9 laforge
h4. Status LED
87
88
FIXME
89
90
h4. (left) Ethernet port LEDs
91
92 10 laforge
Please note the LEDs confusingly indicate the link/traffic status between PBX and Ethernet switch, and *not* the link status of the RJ45 port, which connects to the Ethernet switch.
93 6 laforge
94
h2. Debugging/Introspection
95 1 laforge
96 10 laforge
h3. externally (without opening the enclosure)
97
98
You can log into the beaglebone via
99
* ssh from admin ethernet port on the right hand 
100
* via VPN
101
* via the serial console exposed on a PL2303 USB UART on a USB type B connector (right hand side)
102
103
You can check
104
* if the beaglebone can ping divf.retronetworking.org (the OCTOI hub)
105
* if the OCTOI link is happy (see below)
106
107
h4. checking OCTOI link
108
109
<pre>
110
debian@octoi-pbx1:~$ telnet localhost 4269
111
Trying ::1...
112
Trying 127.0.0.1...
113
Connected to localhost.
114
Escape character is '^]'.
115
Welcome to the osmo-e1d VTY interface
116
117
(C) 2019-2022 by Sylvain Munaut, Harald Welte and contributors
118
osmo-e1d>
119
</pre>
120
121
<pre>
122
osmo-e1d> show line
123
Interface #0 (dc697407e74c8222), Line #0, Mode E1OIP:
124
 Counters for each line in e1d:
125
  Rx Signal Lost:        0 (0/s 0/m 0/h 0/d)
126
  Rx Alignment Lost:        0 (0/s 0/m 0/h 0/d)
127
  E1 Rx CRC Errors:        0 (0/s 0/m 0/h 0/d)
128
  E1 Rx Overflow:        0 (0/s 0/m 0/h 0/d)
129
  E1 Tx Underflow:        0 (0/s 0/m 0/h 0/d)
130
  Rx Frames Reporting Remote CRC Error:        0 (0/s 0/m 0/h 0/d)
131
  Rx Frames Reporting Remote Alarm:        0 (0/s 0/m 0/h 0/d)
132
  E1 Tx Frames multiplexed: 306762727 (7999/s 511984/m 47521439/h 288008503/d)
133
  E1 Rx Frames demultiplexed: 306762504 (8000/s 511992/m 47521440/h 288008280/d)
134
</pre>
135
136
If things are good, you should see about 8000 E1 frames multiplexed per second ana no errors (0/s) for any of the other counters
137
138
<pre>
139
osmo-e1d> show octoi-clients 
140
Account 'foobar': Mode=ice1usb, Batching=32, Prefill=200
141
OCTOI Client Socket on 0.0.0.0:10013
142
 Peer '213.95.46.30:10013', Remote 213.95.46.30:10013, State ACCEPTED
143
  Counters for E1oIP line:
144
   Frames underrun / slipped in IP->E1 direction:    19462 (0/s 0/m 0/h 19462/d)
145
   Frames substituted in E1->IP direction:      213 (0/s 0/m 0/h 213/d)
146
   Frames overflowing the RIFO in IP->E1 direction:       48 (0/s 0/m 0/h 48/d)
147
   Frames overflowed in E1->IP direction:        0 (0/s 0/m 0/h 0/d)
148
   Packets out-of-order in IP->E1 direction:        1 (0/s 0/m 0/h 1/d)
149
   Packets out-of-rx-window in IP->E1 direction:        0 (0/s 0/m 0/h 0/d)
150
   OCTOI connections entering accepted state:        2 (0/s 0/m 0/h 2/d)
151
   Number of bytes received including UDP+IP header: 355466847 (9250/s 601900/m 55559499/h 333193223/d)
152
   Number of UDP packets received:  9604883 (250/s 16263/m 1501246/h 9003039/d)
153
   Number of bytes transmitted including UDP+IP header: 336025700 (8750/s 569188/m 52523558/h 314968877/d)
154
   Number of UDP packets transmitted:  9596614 (250/s 16251/m 1500046/h 8995250/d)
155
  Stat items for E1oIP line:
156
   Round Trip Time (in us):    24871 
157
   E1 originated FIFO level:       16 
158
   E1 terminated FIFO level:      216 
159
   E1 timeslots active in E1->IP direction:        0 
160
   E1 timeslots active in IP->E1 direction:        0 
161
</pre>
162
163
If things are good, you should see 
164
* a non-zero, about 200..240 high E1 terminated FIFO level
165
* 250 UDP packets per second Rx and Tx
166
* no significant rate (per second) of underrun/substitution/overflows
167 6 laforge
168 1 laforge
h2. Manufacturing
169
170 4 laforge
h3. Parts list
171
172
* Auerswald COMmander 2 Basic 2 19" base unit
173
* Auerswald S2M module
174
* Auerswald 8 a/b module
175
* Auerswald 8 S0 module
176
* Netgear GS305E ethernet switch
177
* MeanWell RD-35A power supply
178
* beaglebone green or black
179
* icE1usb
180
* USB-micro-B to 2 wire open ended DC power cable
181
* 2.1/5mm barrel plug 2 wire open ended DC power cable
182
* PE/L/N wire in 1/1.5mm2 with associated cable-end-sleeves
183
* 2x Wago 222-413 clamp
184
* 4x M3 6mm screw with your favorite drive (I like TX10)
185
* 4x M3 5mm hexagonal spacer with external / internal thread
186
* 4x M3 nut
187
* 2x M3 4mm screw with your favorite drive (I like TX10)
188
* 50cm RJ45 patch cable
189
* 25cm RJ45 patch cable
190
* optionally, a less noisy 80mm fan (like Noctua NF-8A FLX)
191
* SMA to SMA cable, ~20cm length
192
* bulkhead mount SMA-to-SMA pass-through or [[osmo-lab-rack:Bgt-keystone6]] with SMA keystone module
193
194
195 1 laforge
h3. Steps, rough outline
196
197
* drill mounting holes for combined 12V (switch) and 5V (beaglebone) PSU (Mean Well RD-35A) in the back plate
198
** do not mount the power supply yet, as  you won't be able to reach the terminal philips screws anymore
199
* configure GS305E ethernet switch (admin interface on 192.168.0.239 as described in manual)
200
* mount GS305E ethernet switch using mounting tape (make sure to clean surfaces first). It fits perfectly in the gap between Auerswald blue plastic carrier and the right side panel of the 3U 19" housing
201
* drill mounting holes for beaglebone into right side panel
202
* mount beaglebone using 5mm M3 hex spacers, M3 nuts and M3x6mm screws (nuts on beaglebone top PCB side, screws from outside of right side panel)
203
* use 2-wire USB-micro-B cable to connect 5V terminals of power supply to beaglebone
204
* use 2-wire 2.1mm/5mm barrel connector cable to connect 12V of power supply to Ethernet switch
205
* AC wiring
206
** remove PBX mainboard to  remove the L and N wires from its AC input (three PH1 screws)
207
** crimp and connect N (blue) and L (brown) wire (1.0/1.5mm2) with cable-end-sleeves and attach to PBX mainboard AC input
208
** re-mount the PBX mainboard (three PH1 screws)
209
** crimp and connect PE wire (1/1.5mm2) with cable-end-sleeve (power supply side) and ring terminal (attach to grounding bolt)
210
** crimp and connect N (blue) and L (brown) wire (1.0/1.5mm2) with cable-end-sleeves and attach to power supply
211
** Use one 3-way "Klapp-Wago" (Wago 222-413) clamps for L and N to connect power supply, PBX mainboard and AC input
212
* mount the power supply to the back panel using two M3x4 screws
213
* replace the existing fan with a low-noise fan (like Noctua NF-8A FLX). The PBX consumes very little power (20W idle, with switch/beaglebone/ice1usb maybe 30W) and even only the slightest airflow is sufficient.  No need for a noisy high-rpm fan.
214
* Ethernet wiring
215
** unplug the RJ45 pigtail from the PBX mainboard and plug it in switch port 2
216
** use a 50cm patch cable to connect the PBX mainboard with switch port 3
217
** use a 25cm patch cable to connect the beaglebone with switch port 5
218
* icE1usb
219
** use USB-C to USB-A cable to connect icE1usb to USB port of beaglebone
220
** crimp an E1 cross-over cable using two 8P8C RJ45 plugs and ~ 20cm of CAT5 cable; use it to connect PBX S2M card to line0 of icE1usb
221
** come up with some kind of panel-mount SMA pass-through for the GPS input signal. Example picture shows a [[osmo-lab-rack:Bgt-keystone6]], but you can also simply drill a 6mm hole into a blank face plate.
222
** use ~20cm SMA pigtail to connect SMA face plate pass-through to GPS input SMA jack of icE1usb
223
** mount icE1usb; an easy option is to remove the rubber gaskets from the icE1usb and use mounting tape to glue it to the top of the GS305E ethernet switch
224 7 laforge
225
h2. Software Setup
226
227
h3. Switch Configuration
228
229 8 laforge
|_.Port|_.VLAN|_.Connects to|
230
|1|1 U|Not used (switch admin interface at 192.168.0.239/24)|
231
|2|3002 U|Uplink / Internet|
232
|3|3003 U|Auerswald PBX|
233
|4|3003 U|Admin Ethernet|
234
|5|all T|beaglebone|
235 7 laforge
236 8 laforge
!gs305_pvid.png! !gs305_vlan.png!
237 1 laforge
238
Config backup is at attachment:GS305E.cfg
239 8 laforge
240
h3. Beaglebone
241
242
* boots from eMMC
243
* Debian 10 for beaglebone with standard login/password (User @debian@, password @Osmocom2022@)
244
* @osmo-e1d@ package from @osmocom:nightly@ feed (0.4.0.8.56a7.202210210002 at time of install), config in @/etc/osmocom/osmo-e1d.cfg@
245
* @openvpn@ config in @/etc/openvpn/client@
246
* serial console exposed via USB-UART to front panel as USB B connector
247
* 
248
249
h3. Auerswald PBX
250
251
* IP: 192.168.0.240 in internal VLAN, reachable via the Admin Ethernet Port
252
* Config backup: attachment:basic2_konfiguration_2022-11-02-1057.cfg
Add picture from clipboard (Maximum size: 48.8 MB)