fangpeina opened a new pull request, #17528:
URL: https://github.com/apache/nuttx/pull/17528

   ## Summary
   
   This change extends the Force Feedback (FF) input subsystem to support 
obtain effect duration and adds a generic control operation to the FF driver 
interface.
   
   ## Impact
   
   **Userspace API**: Adds a new FF control ioctl to query effect duration. 
Existing applications are not affected unless they opt to use the new feature.
   **Driver Interface**: Extends the FF lower-half driver interface with a 
control callback. Existing FF drivers will continue to work unchanged if they 
do not implement the new control operation.
   **Compatibility**: Backward compatible. No existing APIs are removed or 
modified.
   **Build / Hardware**: No impact.
   **Security**: No impact.
   
   ## Testing
   
   Testing was performed on real hardware using the sih6164 force feedback 
driver.
   Test Environment: Device equipped with sih6164 haptic driver
   
   System-side verification (effect duration obtain):
   134200.log:623842:23:19:45.046 934 934 I vendor.hardware.vibrator: First: 
Vibrator get primitive 0 duration: 0
   134200.log:623848:23:19:45.060 934 934 I vendor.hardware.vibrator: First: 
Vibrator get primitive 1 duration: 34
   134200.log:623852:23:19:45.072 934 934 I vendor.hardware.vibrator: First: 
Vibrator get primitive 2 duration: 30
   134200.log:623856:23:19:45.085 934 934 I vendor.hardware.vibrator: First: 
Vibrator get primitive 3 duration: 48
   134200.log:623860:23:19:45.099 934 934 I vendor.hardware.vibrator: First: 
Vibrator get primitive 4 duration: 17
   134200.log:623864:23:19:45.113 934 934 I vendor.hardware.vibrator: First: 
Vibrator get primitive 5 duration: 8
   134200.log:623866:23:19:45.126 934 934 I vendor.hardware.vibrator: First: 
Vibrator get primitive 6 duration: 4
   134200.log:623872:23:19:45.140 934 934 I vendor.hardware.vibrator: First: 
Vibrator get primitive 7 duration: 13
   134200.log:623874:23:19:45.153 934 934 I vendor.hardware.vibrator: First: 
Vibrator get primitive 8 duration: 17
   
   Driver-side verification (extended control interface usage):
   AT AT^GET_MOTOR_INFO
   [22:58:18] [104] [ INFO] [ap] at_proxy: AT^GET_MOTOR_INFO
   [22:58:18] [56] [ DEBUG] [ap] [AT] recv data:AT^GET_MOTOR_INFO len:17 dir:1
   [22:58:18] [56] [ DEBUG] [ap] [AT] token:A delim:1
   [22:58:18] [56] [ INFO] [ap] [AT] AT:AT^GET_MOTOR_INFO, param:
   [22:58:18] [54] [ EMERG] [ap] enter
   ap> �[K
   ap> �[K[12/31 22:58:18] [54] [ EMERG] [ap] success!
   [22:58:18] [54] [ EMERG] [ap] motorid = 0x89
   [22:58:18] [56] [ INFO] [ap] recv len = 104, result = 0
   vibrator_control success: 0x0
   [22:58:18] [56] [ EMERG] [ap] motorid = 0x89
   [22:58:18] [56] [ DEBUG] [ap] [AT] at_cmd_send enter
   [22:58:18] [56] [ DEBUG] [ap] [AT] uart send len:29
   [22:58:18] [56] [ INFO] [ap] [AT]
   GET_MOTOR_INFO=OK,SIH6889
   
   Results
   Effect duration can be queried successfully through the new FF control 
interface.
   The sih6164 driver can consume the extended interface without errors.
   No regressions or abnormal behavior were observed during on-device testing.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to