Andrzej Pietrasiewicz | e38eb2c | 2014-12-16 14:56:25 +0100 | [diff] [blame^] | 1 | This file summarizes information on basic testing of USB functions |
| 2 | provided by gadgets. |
| 3 | |
| 4 | 1. ACM function |
| 5 | |
| 6 | |
| 7 | 1. ACM function |
| 8 | =============== |
| 9 | |
| 10 | The function is provided by usb_f_acm.ko module. |
| 11 | |
| 12 | Function-specific configfs interface |
| 13 | ------------------------------------ |
| 14 | |
| 15 | The function name to use when creating the function directory is "acm". |
| 16 | The ACM function provides just one attribute in its function directory: |
| 17 | |
| 18 | port_num |
| 19 | |
| 20 | The attribute is read-only. |
| 21 | |
| 22 | There can be at most 4 ACM/generic serial/OBEX ports in the system. |
| 23 | |
| 24 | |
| 25 | Testing the ACM function |
| 26 | ------------------------ |
| 27 | |
| 28 | On the host: cat > /dev/ttyACM<X> |
| 29 | On the device : cat /dev/ttyGS<Y> |
| 30 | |
| 31 | then the other way round |
| 32 | |
| 33 | On the device: cat > /dev/ttyGS<Y> |
| 34 | On the host: cat /dev/ttyACM<X> |