Flashing programmable LEDs (b-e)
- This topic has 5 replies, 2 voices, and was last updated 12 years ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.
Home › Forums › MultiConnect OCG › Flashing programmable LEDs (b-e)
Tagged: flashing, Multitech OCG-D, programmable LEDs
Hi,
We’re thinking to show our application status/levels using the device programmble LEDs by flashing.
How can I perform LED blinking (with different rates) on programmable LEDs ( b-e) using mts-io-sysfs command. I’ve tried with LED-FLASHING ( 2) option but the command accepts only 1 and 0 ( ON/OFF).
Regards,
Jeeva
Hi Jeeva,
Which version of CoreCDP are you running on your OCG?
-Mike
Hi Mike,
we’re using coreCDP 2.0.2.
Regards,
Jeeva
Jeeva,
Unfortunately CoreCDP 2.0.2 doesn’t support flashing for all LED’s. There is a bug in the mts-io-sysfs command which shows a flashing option for the LED’s.
-Mike
Hi Mike,
Thanks, Is there any workaround for this issue? or Do I’ve to update the firmware to latest version? Please suggest me the better solution.
Regards,
Jeeva
Jeeva,
CoreCDP 2.2.2 doesn’t support this feature either, so updating wouldn’t help. I would suggest writing a simple bash script to toggle the LED using mts-io-sysfs. Here’s an example:
#!/bin/bash
if [ $# -ne 2 ]; then
echo "usage: $0 <sysfs file> <frequency (us)>"
exit
fi
on=1
while true; do
mts-io-sysfs store $1 $on
usleep $2
on=$((1-on))
done
-Mike