提交 4dfcec8a 编写于 作者: A Andrzej Pietrasiewicz 提交者: Felipe Balbi

Documentation: usb: SERIAL function testing

Summary of how to test SERIAL function of USB gadget.
Signed-off-by: NAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: NFelipe Balbi <balbi@ti.com>
上级 ddb72244
...@@ -14,6 +14,7 @@ provided by gadgets. ...@@ -14,6 +14,7 @@ provided by gadgets.
11. OBEX function 11. OBEX function
12. PHONET function 12. PHONET function
13. RNDIS function 13. RNDIS function
14. SERIAL function
1. ACM function 1. ACM function
...@@ -529,3 +530,33 @@ Configure IP addresses of the device and the host. Then: ...@@ -529,3 +530,33 @@ Configure IP addresses of the device and the host. Then:
On the device: ping <host's IP> On the device: ping <host's IP>
On the host: ping <device's IP> On the host: ping <device's IP>
14. SERIAL function
===================
The function is provided by usb_f_gser.ko module.
Function-specific configfs interface
------------------------------------
The function name to use when creating the function directory is "gser".
The SERIAL function provides just one attribute in its function directory:
port_num
The attribute is read-only.
There can be at most 4 ACM/generic serial/OBEX ports in the system.
Testing the SERIAL function
---------------------------
On host: insmod usbserial
echo VID PID >/sys/bus/usb-serial/drivers/generic/new_id
On host: cat > /dev/ttyUSB<X>
On target: cat /dev/ttyGS<Y>
then the other way round
On target: cat > /dev/ttyGS<Y>
On host: cat /dev/ttyUSB<X>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册