Is it possible to set some of four available user leds to show serial port activity, like we can set it to show mmc activity?
Electronic – BeagleBone Black User Leds
beaglebone blackuart
Related Topic
- Electronic – How to make the Raspberry Pi and BeagleBone Black talk via serial
- Electronic – BeagleBone Black LED current/brightness
- Capacitive Touch and implementation with BeagleBone Black
- Electronic – BeagleBone Black CAN bus setup
- Electronic – Protection of BeagleBone Black from eMMC corruption on power loss
- Electrical – BeagleBone Black won’t power up from USB
Best Answer
Based on Ubuntu linux on BBB, but other Linux will work similarly.
The user LED mode can be accessed using the following command:
Where
none
can be replaced with one of the following:I am unaware of any option to "connect" a user LED to a serial port. The only option I see is "manually" writing 0 or 1 to one of the brightness files upon receiving data in your program.
Optionally work around running as root by issuing a
sudo chown ubuntu:ubuntu /sys/class/leds/beaglebone\:green\:usr3/brightness
once.In Perl you can blink the LED as follows: