Skip to content
colognechip edited this page May 22, 2017 · 7 revisions

mISDN_l1loop

L1loop gives you the ability perform every action an ISDN hardware may offer by using a virtual layer1 driver. L1loop can be installed using two different virtual S0 virtual line settings (vline) options. One simply just loops every data interface internally, the other more important one simulates that every interface is connected to one S0 bus. This way you are able to load an entire NT stack/application on interface 0, and run TE application on interface 1 to test a complete ISDN data flow in software.

  • mISDN_l1loop is mISDN v2
  • mISDN_l1loop is a virtual ISDN hardware (layer1) driver

module parameters

  • interfaces=, =[1..64], default 2
    • number of seperate mISDN interfaces to load
  • vline=, =[0,1,2], default 1
    • 0: NONE (no virtual line at all, all interfaces behave like ISDN TAs without any bus connection)
    • 1: VBUS (see below)
    • 2: VLOOP (each interface is virtually equipped with a cross connector, so all data is looped internally)
  • nchannel=, =[2..30], default 2
    • number of bchannels each interface will consist of
  • debug=, default=0, with n=0xHHHHGGGG
    • H: l1 driver flags described in hfcs_usb.h
    • G: common mISDN debug flags described at mISDNhw.h

VBUS

  • BRI

the first application claiming an interface NT makes that interface vbus' NT forever. here, interface 0 was claimed NT.

interface 0 D  TX     -> interface 1..n D RX
interface 0 D  RX    <-  interface 1..n D TX
interface 0 E  TX     -> interface 1..n E RX
interface 0..n B1 TX  -> interface 0..n B1 RX
interface 0..n B2 TX  -> interface 0..n B2 RX
  • PRI
interface 0 D  TX  -> interface 1 D  RX
interface 1 D  TX  -> interface 0 D  RX
interface 0 Bx TX  -> interface 1 Bx RR
interface 1 Bx TX  -> interface 0 Bx RX

sample calls

virtual loop device

modprobe mISDN_l1loop vline=2

this loads one ISDN hardware interface and acts like a real TA having a cross connector plugged. you can test this by [testlayer1]

mISDNuser/examples/testlayer1 --d --b1 --b2

virtual S0 bus

Attention: only one interfaces can be opened as NT when using VBUS vline mode.

modprobe mISDN_l1loop this will load 2 interfaces connected to one virtual S0 bus.

modprobe mISDN_l1loop interfaces=16 nchannel=30 will do the same but registers 16 interfaces with 30 bchannels each.

Clone this wiki locally