#1385 HIGH 8.2.0 (: Wireless LED usage during use.

Zarro Boogs per Child bugtracker at laptop.org
Thu Sep 18 20:41:55 EDT 2008


#1385: Wireless LED usage during use.
---------------------------+------------------------------------------------
   Reporter:  jg           |       Owner:  rchokshi            
       Type:  enhancement  |      Status:  new                 
   Priority:  high         |   Milestone:  8.2.0 (was Update.2)
  Component:  wireless     |     Version:                      
 Resolution:               |    Keywords:                      
Next_action:  never set    |    Verified:  0                   
  Blockedby:               |    Blocking:                      
---------------------------+------------------------------------------------

Comment(by mbletsas):

 +ledbhv
 +      Command iwpriv mshX ledbhv can be used to change default LEDs
 behaviors.
 +      A given LED behavior can be on, off or blinking. The duty/cycle can
 be set
 +      when behavior is programmed as blinking.
 +
 +      Usage:
 +
 +        1. To get default LED behavior
 +           iwpriv mshX ledbhv <firmware state>
 +
 +        2. To set or change default LED behavior
 +           iwpriv mshX ledbhv <firmware state> <lednum> <behavior> <arg>
 +
 +        firmware state: The following are some of the relevant states.
 +          00: disconnected
 +          01: firmware is scanning
 +          02: firmware is connected and awake
 +          03: firmware is sleeping
 +          04: connected deep sleep
 +          06: firmware disconnected link lost
 +          07: firmware disconnected disassociated
 +          09: data transfer while firmware is associated and not
 scanning.
 +              If firmware is already in this state, LED behavior does not
 change
 +              on this data transfer.
 +          10: firmware idle, not scanning, not disconnected or
 disassociated.
 +
 +        lednum: 1 or 2 for first and second LED.
 +
 +        behavior: 0 for steady ON, 1 - steady off and 2- blinking.
 +
 +        arg: It is used when behavior is 2 to set duty and cycle. It is
 defined as
 +             (duty << 4 | cycle). Here duty could be 0..4 and cycle 0..5
 for 34,
 +             74, 149, 298, 596, 1192 ms respectively.
 +
 +      Examples:
 +
 +       1. To get default behavior for scan
 +          iwpriv mshX ledbhv 1
 +
 +       2. To get default behavior while data transfer
 +          iwpriv mshX ledbhv 9
 +
 +       3. To turn off LED 2
 +          iwpriv mshX ledbhv 2 2 1 0
 +          iwpriv mshX ledbhv 10 2 1 0
 +
 +       4. To enable LED 2 and blink LED 1 while data transfer.
 +          iwpriv mshX ledbhv 9 2 0 0
 +          iwpriv mshX ledbhv 9 1 2 4
 +
 +       5. To change duty cycle of LED 2 during data transfer
 +          iwpriv mshX ledbhv 9 2 2 36
 +
 +       6. To turn ON LED 2 when firmware is disassociated/disconnected.
 +          iwpriv mshX ledbhv 0 2 0 0
 +
 +

-- 
Ticket URL: <http://dev.laptop.org/ticket/1385#comment:20>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list