Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
carberry:cmds:subsys:resistive:learn [2018/06/20 09:19]
admin
carberry:cmds:subsys:resistive:learn [2019/09/30 13:44] (current)
Line 2: Line 2:
  
 This command, can be used to learn each buttons of a resistive steering wheel control.\\ This command, can be used to learn each buttons of a resistive steering wheel control.\\
 +There two possible mode to acquire resistive buttons:
 +  * Automatic Mode
 +  * Manual Mode
  
 ==== Synopsis ==== ==== Synopsis ====
Line 12: Line 15:
 Management arguments Management arguments
  
-|[[carberry:​cmds:​subsys:​resistive:​learn:​volum|AUTO]] |Used to start auto learning procedure.| +|AUTO |Used to start auto learning procedure.| 
-|[[carberry:​cmds:​subsys:​resistive:​learn:​volum|ABORT]] |Used to abort auto learning procedure.|+|ABORT |Used to abort auto learning procedure.|
  
 Single button learning arguments Single button learning arguments
  
-|[[carberry:​cmds:​subsys:​resistive:​learn:​volum|VOLUM]] |Used to learn volume minus button.| +|VOLUM |Used to learn volume minus button.| 
-|[[carberry:​cmds:​subsys:​resistive:​learn:​volup|VOLUP]] |Used to learn volume plus button.| +|VOLUP |Used to learn volume plus button.| 
-|[[carberry:​cmds:​subsys:​resistive:​learn:​seekm|SEEKM]] |Used to learn seek minus button.| +|SEEKM |Used to learn seek minus button.| 
-|[[carberry:​cmds:​subsys:​resistive:​learn:​seekp|SEEKP]] |Used to learn seek plus button.| +|SEEKP |Used to learn seek plus button.| 
-|[[carberry:​cmds:​subsys:​resistive:​learn:​source|SOURCE]] |Used to learn source button.| +|SOURCE |Used to learn source button.| 
-|[[carberry:​cmds:​subsys:​resistive:​learn:​mute|MUTE]] |Used to learn mute button.| +|MUTE |Used to learn mute button.| 
-|[[carberry:​cmds:​subsys:​resistive:​learn:​face|FACE]] |Used to learn face (or voice) button.| +|FACE |Used to learn face (or voice) button.| 
-|[[carberry:​cmds:​subsys:​resistive:​learn:​answer|ANSWER]] |Used to learn phone answer button.| +|ANSWER |Used to learn phone answer button.| 
-|[[carberry:​cmds:​subsys:​resistive:​learn:​hangup|HANGUP]] |Used to learn phone hangup button.|+|HANGUP |Used to learn phone hangup button.|
  
  
 +==== Automatic Mode ====
 +In Automatic Mode Carberry will recognizes all buttons pressed, if correctly connected, according a standard sequence that is:
 +  * Volume -
 +  * Volume +
 +  * Seek -
 +  * Seek +
 +  * Source
 +  * Mute
 +  * Voice
 +  * Phone Answer
 +  * Phone Hangup
 + 
 +=== Synopsis ===
 +  RESISTIVE LEARN AUTO
 +
 +=== Example ===
 +  RESISTIVE CLEAR
 +  OK
 +  RESISTIVE LEARN AUTO
 +  OK
 +  EVNT LEARNING NEWKEY NONE //This event means that Carberry has acquires value of none button pressed
 +  //From this point is necessary to press button that you want to store according sequence previous indicated
 +  EVNT LEARNING NEWKEY VOLUM //Button Volume - acquired
 +  EVNT LEARNING NEWKEY VOLUP
 +  EVNT LEARNING NEWKEY SEEKM
 +  EVNT LEARNING NEWKEY SEEKP
 +  EVNT LEARNING NEWKEY SOURCE
 +  EVNT LEARNING NEWKEY MUTE
 +  EVNT LEARNING NEWKEY FACE
 +  EVNT LEARNING RELEASE // This message and next one indicates procedure ending
 +  EVNT LEARNING READY //
 +
 +
 +
 +==== Manual Mode ====
 +Manual mode allows to memorize each single button.
 +
 +=== Synopsis ===
 +  RESISTIVE LEARN <button to memorize>​
 +  ​
 +=== Example ===
 +  RESISTIVE LEARN SEEKM
 +  OK
 +  EVNT LEARNING NEWKEY SEEKM //button pressed
 +
 +
 +
 +==== Notification ====
 +In order to get a notication each time button is pressed or hold, is necessary to activate notification for each button.
 +
 +=== Synopsis ===
 +  SWC CONFIG <button to notify> NOTIFY ​
 +  ​
 +=== Example ===
 +  SWC CONFIG SEEKP NOTIFY
 +  OK
 +  EVNT KEY CLICK SEEKP //event notified in case of single pressure
 +  EVNT KEY HOLD SEEKP //event notified in case of long pressure