How to turn off LEDs on a cellular router running DAL.

DAL Cellular routers allow for certain LEDs to be turned off. This can be helpful for privacy, safety, or power consumption.

The DAL Operating System allows you to turn off all LED indicators excluding Ethernet ports LEDs with the following Linux shell command:
# ledcmd –d


If Linux shell access is not enabled, please switch it on beforehand with the command below:
CLI:
>config auth group admin acl shell enable true
>save
Please choose a Shell option in the Access selection menu for your next login.

Use the help key to get more details about this option.

# ledcmd –h

You also have the possibility to turn off only certain LED indicators.

See the list of possible values below:

ALL RSS4 wifi-5g online-blue RSS2 wifi-2.4g SIM1 online-green cell-red RSS5 RSS3 RSS1 cell-blue power-green power-red SIM2 cell-green online-red power-blue

The background process inside the DAL firmware is updating the LEDs based on cellular connectivity.  The ledcmd has a -k and -u option to lock and release a LED.
for example, if you wanted to disable the Magenta LED(network status connection indicator) on the EX50 and only show the red LED for the cellular LED:


# ledcmd -k 12345 cell-red
# ledcmd -k 12345 cell-blue
# ledcmd -x 12345 -o cell-red


the 12345 value as the lock-name is arbitrary.  It's typically tied to a process ID because something like python is controlling the LEDs, but in this case it would be just some random number.
to give control of the LEDs back to the system, you would run:
# ledcmd -u 12345 cell-blue
# ledcmd -u 12345 cell-red

There's also the digidevice.led python module where you can get full control over the LEDs in the device:
 

https://www.digi.com/resources/documentation/digidocs/90002435/#os/python-digidevice-led-c.htm


to do the same in python:


>>> from digidevice import led
>>> from digidevice.led import Led, State
>>> led.acquire(Led.CELL_RED)      
>>> led.acquire(Led.CELL_BLUE)
>>> led.set(Led.CELL_RED, State.ON)

>>> 
then to release the LEDs back to the system:


>>> led.release(Led.CELL_BLUE)
>>> led.release(Led.CELL_RED)

>>>

 

Last updated: Jan 15, 2024

Filed Under

Cellular/Transport

Recently Viewed

No recently viewed articles

Did you find this article helpful?