Project

General

Profile

Actions

Feature #4923

closed

DAHDI driver for icE1usb

Added by laforge over 3 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
DAHDI driver
Target version:
-
Start date:
12/27/2020
Due date:
% Done:

100%

Spec Reference:

Description

I've been hacking up a DAHDI driver for the icE1usb, which is currently available [only] from https://github.com/osmocom/dahdi-linux/tree/laforge/icE1usb

The current code seems to be working fine
  • it survives manual USB unplug/replug tests
  • it survives hundreds of rmmod/insmod cycles
  • it causes no CRC errors when used with e1-prbs-test over multiple hours
It has a number of missing features:
  • no reporting of errors via DAHDI APIs (alarms, crc erorrs, ...)
  • no reporting of link status via DAHDI APIs (RED/YELLOW/BLUE/...)
  • no control over local/remote clock usage

Checklist

  • host repository on osmocom.org
  • RED alarm on LOS
  • YELLOW alarm
  • BLUE alarm
  • error counters/stats via DAHDI APIs
  • CRC4 enable/disable
  • select local/remote clock source via DAHDI

Related issues

Related to E1/T1 Hardware Interface (including icE1usb) - Bug #5379: DAHDI icE1usb locks up if channel type is changed during runtimeResolvedlaforge12/30/2021

Actions
Related to E1/T1 Hardware Interface (including icE1usb) - Bug #5381: icE1usb DAHDI driver: generate YELLOW alarm towards peerNewlaforge01/02/2022

Actions
Related to E1/T1 Hardware Interface (including icE1usb) - Bug #5382: icE1usb: detect all-1 pattern and report as BLUE alarmNew01/02/2022

Actions
Actions #1

Updated by laforge about 3 years ago

  • Status changed from In Progress to Stalled
Actions #2

Updated by laforge over 2 years ago

  • Related to Bug #5379: DAHDI icE1usb locks up if channel type is changed during runtime added
Actions #3

Updated by laforge over 2 years ago

  • Checklist item RED alarm on LOS set to Done

RED alarm reporting merged:

commit aebacd42e5ba4c183d62d54b39884204f5c87052 (HEAD -> laforge/icE1usb, osmocom/master, osmocom/laforge/icE1usb, apu-left/laforge/icE1usb)
Author: Harald Welte <laforge@osmocom.org>
Date:   Fri Dec 31 20:17:07 2021 +0100

    icE1usb: Support reporting of RED alarm via DAHDI infrastructure

    We get loss-of-framing and loss-of-signal notification via USB interrupt
    transfers.  Let's make use of this information to tell the DAHDI core
    [and ultimately the user] about this.
Actions #4

Updated by laforge over 2 years ago

  • Checklist item error counters/stats via DAHDI APIs set to Done
  • Checklist item CRC4 enable/disable set to Done
  • Checklist item select local/remote clock source via DAHDI set to Done
Actions #5

Updated by laforge over 2 years ago

commit 9fdd2e534b8de22e0e36076c8577de7be81690bb (HEAD -> laforge/icE1usb, osmocom/master, osmocom/laforge/icE1usb, apu-left/laforge/icE1usb)
Author: Harald Welte <laforge@osmocom.org>
Date:   Sat Jan 1 10:22:29 2022 +0100

    icE1usb: support for reporting CRC and alignment errors via DAHDI

commit 68cffb3d8f5bbe5871560629943141a0af13d727
Author: Harald Welte <laforge@osmocom.org>
Date:   Sat Jan 1 09:49:01 2022 +0100

    icE1usb: Support TX configuration (CRC4 on/off, loopback, timing source)

    This adds support of configuring the icE1usb TX configuration via the
    standard DAHDI mechanisms.

As for YELLOW alarm, there's a WIP patch for the firmware in https://gerrit.osmocom.org/c/osmo-e1-hardware/+/26706.

Actions #6

Updated by laforge over 2 years ago

  • Status changed from Stalled to In Progress
Actions #7

Updated by laforge over 2 years ago

  • Related to Bug #5381: icE1usb DAHDI driver: generate YELLOW alarm towards peer added
Actions #8

Updated by laforge over 2 years ago

  • Related to Bug #5382: icE1usb: detect all-1 pattern and report as BLUE alarm added
Actions #9

Updated by laforge over 2 years ago

  • Checklist item host repository on osmocom.org set to Done
  • Checklist item YELLOW alarm set to Done
  • Status changed from In Progress to Resolved
  • % Done changed from 80 to 100

reporting of remote alarms as YELLOW alarm has been added in https://github.com/osmocom/dahdi-linux/commit/7043d45f77ee8fe633e5181f7f7ae22e4e051071

git repo is now [also] at https://git.osmocom.org/dahdi-linux/

remaining issues have been split into #5382 and #5381, so this ticket can be cloed. The DAHDI driver exists and works reliably, AFAICT.

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)