Flashing programmable LEDs (b-e)

Home Forums MultiConnect OCG Flashing programmable LEDs (b-e)

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #4793
    Jeeva K
    Participant

    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

    #4794
    Mike Fiore
    Blocked

    Hi Jeeva,
    Which version of CoreCDP are you running on your OCG?

    -Mike

    #4801
    Jeeva K
    Participant

    Hi Mike,

    we’re using coreCDP 2.0.2.

    Regards,
    Jeeva

    #4807
    Mike Fiore
    Blocked

    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

    #4808
    Jeeva K
    Participant

    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

    #4809
    Mike Fiore
    Blocked

    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.