diff options
author | Andrzej Pietrasiewicz <andrzej.p@samsung.com> | 2014-12-16 08:56:35 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-01-12 13:13:25 -0500 |
commit | d81b85dcf186f6fa4b59e5b8181e85366ebfdd61 (patch) | |
tree | 249e576bc290a69ad79915c29a2bb4f960c643f9 /Documentation/usb | |
parent | 4d0fa79e0ef78f516888068e240d38650eb404d2 (diff) |
Documentation: usb: OBEX function testing
Summary of how to test OBEX function of USB gadget.
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'Documentation/usb')
-rw-r--r-- | Documentation/usb/gadget-testing.txt | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Documentation/usb/gadget-testing.txt b/Documentation/usb/gadget-testing.txt index 493f79b96f91..c8ae54022ec8 100644 --- a/Documentation/usb/gadget-testing.txt +++ b/Documentation/usb/gadget-testing.txt | |||
@@ -11,6 +11,7 @@ provided by gadgets. | |||
11 | 8. MASS STORAGE function | 11 | 8. MASS STORAGE function |
12 | 9. MIDI function | 12 | 9. MIDI function |
13 | 10. NCM function | 13 | 10. NCM function |
14 | 11. OBEX function | ||
14 | 15 | ||
15 | 16 | ||
16 | 1. ACM function | 17 | 1. ACM function |
@@ -400,3 +401,31 @@ Configure IP addresses of the device and the host. Then: | |||
400 | 401 | ||
401 | On the device: ping <host's IP> | 402 | On the device: ping <host's IP> |
402 | On the host: ping <device's IP> | 403 | On the host: ping <device's IP> |
404 | |||
405 | 11. OBEX function | ||
406 | ================= | ||
407 | |||
408 | The function is provided by usb_f_obex.ko module. | ||
409 | |||
410 | Function-specific configfs interface | ||
411 | ------------------------------------ | ||
412 | |||
413 | The function name to use when creating the function directory is "obex". | ||
414 | The OBEX function provides just one attribute in its function directory: | ||
415 | |||
416 | port_num | ||
417 | |||
418 | The attribute is read-only. | ||
419 | |||
420 | There can be at most 4 ACM/generic serial/OBEX ports in the system. | ||
421 | |||
422 | Testing the OBEX function | ||
423 | ------------------------- | ||
424 | |||
425 | On device: seriald -f /dev/ttyGS<Y> -s 1024 | ||
426 | On host: serialc -v <vendorID> -p <productID> -i<interface#> -a1 -s1024 \ | ||
427 | -t<out endpoint addr> -r<in endpoint addr> | ||
428 | |||
429 | where seriald and serialc are Felipe's utilities found here: | ||
430 | |||
431 | https://git.gitorious.org/usb/usb-tools.git master | ||