Coder Social home page Coder Social logo

yfyf510 / dawn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lixinswitchpi/dawn

0.0 0.0 0.0 2.24 MB

A fully open source FPGA TDM IP Core which supports the Asterisk Dahdi

Shell 0.67% C++ 2.89% Perl 1.00% C 94.69% PHP 0.02% Objective-C 0.13% Makefile 0.59%

dawn's Introduction

DAWN OPENSOURE FPGA PCIE TDM IP CORE

A fully open source FPGA PCIe TDM IP Core that it is designed for compatibility with Tiger320 chip, but Dawn FPGA TDM IP core also supports

  • open source, therefore you can build your own Asterisk TDM card (2 Dahdi channels with one TDM bus open), also with a powerful DMA engine
  • fully compatible with Asterisk Dahdi channel
  • 2 separated TDM bus, totally supports 64 Dahdi channels (commercial version only)
  • 2 separated DMA engines built-in to support high-density channels without taking much CPU resource (commercial version only)

For more information, please visit out our website at www.switchpi.com

Install manual

Check out the dawn Dahdi driver git clone https://github.com/lixinswitchpi/dawn

Compile the driver

cd dahdi-tools-2.11.1

make

make install

reboot

Verify the driver is loaded

dmesg

[ 2720.912991] Dawn Version is 0x02

[ 2720.912998] Dawn Test register is 0xbabababa

[ 2720.967327] Created Span WCTDM/0/0 (SwitchPi DAWN TDM BUS 0)

[ 2720.967335] Created Span WCTDM/0/1 (SwitchPi DAWN TDM BUS 1)

[ 2721.167936] Module 0 TDM BUS 0: Installed -- AUTO FXO (FCC mode)

[ 2722.047676] Module 0 TDM BUS 1: Installed -- AUTO FXS

[ 2722.928888] Module 0 TDM BUS 1: Installed -- AUTO FXS

[ 2722.928917] Found a Wildcard TDM: SwitchPi DAWN (3 modules)

Load Asterisk to run test

dahdi_genconf

dahdi_scan

[1]

active=yes

alarms=OK

description=SwitchPi DAWN TDM BUS 0

name=WCTDM/0/0

manufacturer=SwitchPi

devicetype=DAWN TDM

location=PCI Bus 02 Slot 01

basechan=1

totchans=4

irq=0

type=analog

port=1,FXO

port=2,none

port=3,none

port=4,none

[2]

active=yes

alarms=OK

description=SwitchPi DAWN TDM BUS 1

name=WCTDM/0/1

manufacturer=SwitchPi

devicetype=DAWN TDM

location=PCI Bus 02 Slot 01

basechan=5

totchans=4

irq=0

type=analog

port=5,FXS

port=6,FXS

port=7,none

port=8,none

dahdi_cfg -vvv

DAHDI Tools Version - 2.11.1

DAHDI Version: 2.11.1

Echo Canceller(s): MG2

Configuration

Channel map:

Channel 01: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 01)

Channel 05: FXO Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 05)

Channel 06: FXO Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 06)

3 channels to configure.

Setting echocan for channel 1 to mg2

Setting echocan for channel 5 to mg2

Setting echocan for channel 6 to mg2

asterisk -f 2 > /dev/null &

asterisk -cvvvvvvvgr

root@ast1:/usr/src# asterisk -cvvvvvvvvvvgr

ast1*CLI> dahdi show ch

channels channel

ast1*CLI> dahdi show status

Description Alarms IRQ bpviol CRC Fra Codi Options LBO

SwitchPi DAWN TDM BUS 0 OK 0 0 0 CAS Unk 0 db (CSU)/0-133 feet (DSX-1)

SwitchPi DAWN TDM BUS 1 OK 0 0 0 CAS Unk 0 db (CSU)/0-133 feet (DSX-1)

ast1*CLI> dahdi show chan

channels channel

ast1*CLI> dahdi show channels

Chan Extension Context Language MOH Interpret Blocked In Service Description

pseudo default default Yes

  1                 from-pstn                  default                         Yes                                        
  
  5                 from-internal              default                         Yes                                        
  
  6                 from-internal              default                         Yes                                        

ast1*CLI>

dawn's People

Contributors

lixinswitchpi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.