Manual of install OAK8X module

OAK8X Module hardware installation

Insert the OAK8X module to a Raspberry Pi 2 or 3 board like below picture shows

IMG_8055

We provide 4 plastic screws, use them to fix the OAK board to Raspberry Pi board such as below shows

IMG_7122

The finally looks like below

IMG_7117

Until now, the OAK8X module installation is done, let us move to software installation.

OAK8X Module software installation

There are two ways to install the OAK8X module software, one uses our firmware get a quick try, other is you can compile whole things by yourself as the OAK8X module is open source designed.

Use our firmware

Download the SwitchPi OAK8x firmware – switchpi-oak8x-with-gui-1.0.1.imag.zip  in here . The switchpi-oak8x firmware currently version is 1.0.1, built-in Asterisk-13.20 and Dahdi-2.11.1.

Put the downloaded firmware to a Linux distro PC, then following below steps to clone it to an 8G SD card (we strongly suggested to use a class 10 HC SD card such as below SanDisk one):

SD

Insert micro SD card to your PC with a USB SD card adaptor, the Linux will recognized it like /dev/sda or /dev/sdb which depends on your OS how many drives, you can check it out with command “dmesg”, we are using the /dev/sdb in here.

root@oak:~/pitdm# unzip switchpi-oak8x-with-gui-1.0.1.img.zip
root@oak:~/pitdm# dd if=switchpi-oak8x-with-gui-1.0.1.img of=/dev/sdb bs=4M

Compile driver by yourself

Please follow the OAK8X module README.md to compile the driver, https://github.com/lixinswitchpi/oak8x 

Power Up

Remove the SD card from Linux PC and insert it to your Raspberry Pi 2/3 board, plug the 12V (or 9V 2A) power supply which is with your OAK module together when you received your order as below shows

OKA8X_4FXS_4FXO

Please pay attention in here, as our OAK module feeds your Raspberry Pi power as well, thus you DO NOT require to insert the Raspberry Pi USB DC power supply anymore !!!

The default IP address is 192.168.4.98, you can ssh log into it with username “pi”, password “raspberry”.

[ 2049.193945] wc thunder exit
[ 2049.303202] I2S SETUP COMPLETE
[ 2049.316825] ENABLED I2S
[ 2049.316851] TDM bus clock synced with SwitchPi CPLD core!
[ 2049.802168] Module 0: Installed -- AUTO FXO (FCC mode)
[ 2050.002157] Module 1: Installed -- AUTO FXO (FCC mode)
[ 2050.202164] Module 2: Installed -- AUTO FXO (FCC mode)
[ 2050.402155] Module 3: Installed -- AUTO FXO (FCC mode)
[ 2052.574536] Module 4: Installed -- AUTO FXS/DPO
[ 2054.784501] Module 5: Installed -- AUTO FXS/DPO
[ 2056.914511] Module 6: Installed -- AUTO FXS/DPO
[ 2059.044523] Module 7: Installed -- AUTO FXS/DPO
[ 2059.044535] Found a Wildcard TDM: SwitchPi Thunder FXS/FXO (8 modules)

Now you can use your web browser to log into the GUI of SwitchPi to configure your OAK8X module, for the details, check it out in here. (The OAK8X SwitchPi GUI defaults IP address is 192.168.4.98)

GUI_8FXO

The RJ45 to RJ11 adaptor ports definition

Per the RJ45 manufacturer’s wire sequence changed, the correct RJ11 ports definition like below picture shows:

OAK8X_RJ45ToRJ11

OAK8X module specifications

The OAK8X analogue module supports four (4) built-in FXO plus four (4) optional FXS or FXO module in your Asterisk system, you will have totally 8 Asterisk channels, such as 4FXO plus 4 FXS, 4FXO plus 4FXO in one small module (the OAK8X module size equals to Pi module).

The modular nature of the cards allows you to mix and match between line (FXO) and station (FXS) interfaces, giving you the exact port configuration you need.

The OAK8X module is compatibles with all versions of Asterisk using the DAHDI driver framework. Asterisk and DAHDI are available for free from the Asterisk.org website.

The OAK8X module supports Raspberry Pi 3 B+, Pi 3, Pi 2, B+, B and A models.

Specifications:

  1. Four (4) FXO plus four (4) FXS or FXO analogue ports
  2. Raspberry Pi I2S, SPI bus architectures
  3. Combine line (FXO) and station (FXS) modules
  4. Loop Start or Kewl Start Signaling
  5. Temperature: 0° to 50° C

Firmware:

  1. Asterisk 13.20.0
  2. Dahdi 2.11.1
  3. The SwitchPi TDM module fully supports the SwitchPi own GUI.
  4. The OAK is fully open hardware and software designed, get started in here

Pictures

This slideshow requires JavaScript.

Manual of install OAK module

OAK Module hardware installation

Insert the OAK module to a Raspberry Pi 2 or 3 board like below picture shows

oak2_1

We provide 4 plastic screws, use them to fix the OAK board to Raspberry Pi board such as below shows

IMG_7122

The finally looks like below

IMG_7117

Until now, the OAK module installation is done, let us move to software installation.

OAK Module software installation

There are two ways to install the OAK module software, one uses our firmware get a quick try, other is you can compile whole things by yourself as the OAK module is open source designed.

Use our firmware

Go to the SwitchPi official website download the switchpi OAK firmware – switchpi-with-gui-1.0.1.imag.zip  in here . The switchpi-oak firmware currently version is 1.0.1, built-in Asterisk-13.20 and Dahdi-2.11.1.

Put the downloaded firmware to a Linux distro PC, then following below steps to clone it to an 8G SD card (we strongly suggested to use a class 10 HC SD card such as below SanDisk one), insert micro SD card to your PC with a USB SD card adaptor, the Linux will recognized it like /dev/sda or /dev/sdb which depends on your OS how many drives, you can check it out with command “dmesg”, we are using the /dev/sdb in here.

SD

root@oak:~/pitdm# unzip switchpi-with-gui-1.0.1.img.zip
root@oak:~/pitdm# dd if=switchpi-with-gui-1.0.1.img of=/dev/sdb bs=4M

Compile driver by yourself

Please follow the OAK module README.md to compile the driver, https://github.com/lixinswitchpi/oak 

Power Up

Remove the SD card from Linux PC and insert it to your Raspberry Pi 2/3 board, plug the 9V 1A power supply which is with your OAK module together when you received your order as below shows

IMG_7919

Please pay attention in here, as our OAK module feeds your Raspberry Pi power as well, thus you DO NOT require to insert the Raspberry Pi USB DC power supply anymore !!!

The default IP address is 192.168.4.99, you can ssh log into it with username “pi”, password “raspberry”.

Now you can use your web browser to log into the GUI of SwitchPi to configure your OAK module, for the details, check it out in here.

IMG_7916

OAK module specifications

One FXO+X Analog module

The OAK analogue module supports one (1) built-in FXO and one (1) optional FXS or FXO module in your Asterisk system.

The modular nature of the cards allows you to mix and match between line (FXO) and station (FXS) interfaces, giving you the exact port configuration you need.

The OAK module is compatibles with all versions of Asterisk using the DAHDI driver framework. Asterisk and DAHDI are available for free from the Asterisk.org website.

The OAK module supports Raspberry Pi 3 B+, Pi 3, Pi 2, B+, B and A models.

Specifications:

  1. One (1) FXO plus one (1) FXS or FXO analogue port
  2. Raspberry Pi I2S, SPI bus architectures
  3. Combine line (FXO) and station (FXS) modules
  4. Loop Start or Kewl Start Signaling
  5. Temperature: 0° to 50° C

Firmware:

  1. Asterisk 13.20.0
  2. Dahdi 2.11.1
  3. The SwitchPi TDM module fully supports the Raspbx’s latest version, the Digium official GUI and the SwitchPi own GUI.
  4. The OAK is fully open hardware and software designed, get started in https://github.com/lixinswitchpi/oak

Pictures:

This slideshow requires JavaScript.

SwitchPi GUI is released

The new SwitchPi GUI just released, it is stable, flexible, fast and easier to use compare to Freepbx and Diguim GUI.

Here are few first views

SSL secured access 

Screen Shot 2018-08-02 at 3.23.56 PM

Screen Shot 2018-08-02 at 3.13.45 PM

First page

Screen Shot 2018-08-02 at 3.27.43 PM

The External lines page

Screen Shot 2018-08-02 at 3.31.05 PM

The internal phones page

Screen Shot 2018-08-02 at 3.31.17 PM

The menu of the PBX configuration page

PBX_Configurations

The menu of the Call Routing page

call routing

The menu of the System Configuration

system

The menu of the Reporting

reporting

 

You can download it from here, use the dd command to burn it to an sd card, and the default IP address is https://192.168.1.98, the default username is admin, and the default password is admin which is required you to change when you first-time login.

 

Is it possible to expanse 4 ports PiTDM to 8 ports?

The Raspberry Pi SOC supports up to 2 PCM channels that it is described in BCM2835 datasheet page 119 which like below diagram

Screen Shot 2018-07-06 at 10.34.54 AM

Therefore, we could expanse our 4 ports PiTDM to 8 ports PiTDM if we can use all of its 2 channels, that also means we are using 1 channel for 4 ports PiTDM right now :). The most important challenge is that we need to align the second channel to correct timing of 2M PCM highway. Fortunately, through a half month of hard work, we made it out and the 8 ports PiTDM module is going to release in next month 🙂

Here is a picture which is shown an 8 ports PiTDM is detected by the Digium GUI:

Screen Shot 2018-07-06 at 10.30.07 AM

What is it can do of an 8 ports design?

Well, obviously, the 8 ports design can give you more ports which can expanse your PiTDM ability and capability, you can have 8 ports FXO connect to PSTN, or you can have 8 ports FXS connect to your phone or FAX machine.

Also, we can add the BRI module support as we have 8 pure 8bits PCM channels, certainly, we have the ability to support a BRI controller which means we can bring the Raspberry Pi to ISDN world.

The most famous and stable BRI controller is XHFC-4SU in the Asterisk world, here is it’s datasheet link http://www.colognechip.com/isdn/controllers/frame-xhfc-4su.htm

 

Install the PiTDM module with Digium offical GUI

We built a new firmware which provides the PiTDM to work with Digium offical GUI which is faster and easy to use than Raspbx. It also support Pi 3 B+, Pi 3, Pi 2, B+, B and A models. You can download it in here. Here is a guide to show how to use it.

First of all, follow the Manual of installing PiTDM module in here to install the PiTDM module, when finished the PiTDM module’s installation, then download the firmware from the link that it is shown above.

unzip it:

gunzip switchpi-digium-gui-1.0.1.img.zip

Use the dd to copy it to a 4G at least SD card,

dd if=switchpi-digium-gui-1.0.1.img of=/dev/mmcblk0 bs=4M

When done, power up the Raspberry Pi with followed the Manual of installing PiTDM module in here. The default IP is 192.168.1.98, and the link is http://192.168.1.98:8088/gui/static/config/index.html. The GUI username is admin and password is admin, please change it to a stronger password when you log into the GUI.

Screen Shot 2018-07-03 at 3.59.13 PM

The below picture shows how the Digium GUI detected a 2 FXS module and a 2 FXO module

Screen Shot 2018-07-03 at 3.59.26 PM

We built a default SIP extension and one FXS channels that if you have FXS module installed which you can use it to test our PiTDM by quickly, it looks like below

Screen Shot 2018-07-03 at 4.08.04 PM

 

Then you can create the default Dialplan and incoming calling rules or outgoing calling rules, and connect your PSTN cable to make the calls.

The SSH login default username/password is pi/raspberry.

Install the PiTDM module with Raspbx

We built a new firmware which provides the PiTDM to work with Raspbx, it supports Pi 3 B+, Pi 3, Pi 2, B+, B and A models. You can download it in here. Here is a guide to show how to use it.

First of all, follow the Manual of installing PiTDM module in here to install the PiTDM module, when finished the PiTDM module’s installation, then download the firmware from the link that it is shown above.

unzip it:

gunzip switchpi-raspbx-1.0.1.img.zip

Use the dd to copy it to a 4G at least SD card,

dd if=switchpi-raspbx-1.0.1.img of=/dev/mmcblk0 bs=4M

When done, power up the Raspberry Pi with followed the Manual of installing PiTDM module in here. The default IP is 192.168.1.98, GUI username is admin and password is admin, please change it to a stronger password when you log into the GUI.

 

Screen Shot 2018-07-03 at 9.28.52 AM

We built a default PJSIP extension and two FXS channels if you have FXS module installed which you can use it to test our PiTDM by quickly, it looks like below

 

Screen Shot 2018-07-03 at 9.31.36 AM

When you get the extension registered, it is time to go to the Freepbx Connectivity -> Dahdi configs to look at does the Freepbx detected or not for PiTDM module

Screen Shot 2018-07-03 at 9.27.53 AM

The above picture shows the Freepbx found 2 FXO ports and 2 FXS ports.

Then please connect your PSTN cable to first two ports of 4 ports of PiTDM, and make an inbound route to route the incoming call to the PJSIP extension 6000, you should get the extension 6000 ringing when the call comes from PiTDM fxo port.

The SSH login default username/password is root/raspberry.

DAWN FPGA 2 TDM IP Cores

Screen Shot 2018-05-25 at 1.57.33 PM

The SwitchPi DAWN is designed for to supports high-density Asterisk channels (2 TDM buses, up 64 Asterisk channels), that run on a single server with PCIe bus.

The SwitchPi DAWN has 2 TDM buses, 2 powerful DMA engines, and 2 separated SPIs to connect Codecs. It also can extend to support a 16bits width local bus (INTEL).

The SwitchPi DAWN also provides an experience version FPGA core and board, which supports one TDM bus, 2 FXO Asterisk channels, the design aim is to make a Tiger320 similar FPGA implements. Also, the most advanced is this version fully open source, that is included DAWN FPGA IP core, hardware design and Dahdi driver, you can build your own DAWN board by easily. Check it out on our Github website at here