Hi,
I want to communicate between 2 machines using serial ports.
Both machine are connected through an usb cable (using A to B usb connector).
Both machines are running Linux.
one machine (Slave) runs a USB Serial Gadget Driver with CDC-ACM
support. and another machine (USB Host) has a CDC-ACM Driver.
I am experiencing some unexpected behaviour.
I open a minicom on USB Host (With Device /dev/input/ttyACM0). I run a
getty on usb - serial Port (In Slave) with Port /dev/ttygserial.
Minicom on (/dev/input/ttyACM0) works fine and i can see login on it.
No Issues.
But, I see some unexpected behaviour in it.
using minicom:
1) I get Extra New Lines when i do ls -Rl
2) Some Starting characters of some lines of files are missing.
3) If i want to edit a file or create a new file using vi.
repeated use of :wq or :q or :q! or :wq! does not do anything. (i
can't exit from vi once i open vi).
I checked the permissions are enabled; no space problem.
I think there are some port settings issues. not sure though.
I disable getty. ie no process is using the serial port on the slave
side now and dont run the minicom.
I use cat program or ls -Rl rediected to /dev/ttygserial on the
usb-slave side.
I run cat program on the usb host. cat < /dev/input/ttyACM0
I see the following behaviours.
1) I get some arbitary blank lines.
2) Starting characters are missing from some lines.
3) some times i see some special characters.
I dont know what settings should be set on usb-host and usb-slave.
I tried with cs8 settings in stty also. but the problem remains.
Please Advice.
I am appending my Port Settings.
Please let me know what settings should be there at host side and on slave side.
But, i am getting some unexpected behaviour which i have mentioned above.
Regards,
Ram
(usb - host)
[EMAIL PROTECTED] ]# stty -a -F /dev/input/ttyACM0
speed 9600 baud; rows 0; columns 0; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
lnext = ^V; flush = ^O; min = 1; time = 5;
-parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts
ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff
-iuclc -ixany -imaxbel
-opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0
ff0
-isig -icanon -iexten -echo -echoe -echok -echonl -noflsh -xcase -tostop
-echoprt -echoctl -echoke
(usb - slave)
[EMAIL PROTECTED] stty -a -F /dev/ttygserial
speed 9600 baud; rows 0; columns 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon
-ixoff -iuclc -ixany -imaxbel
-opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0
ff0
-isig -icanon -iexten -echo -echoe -echok -echonl -noflsh -xcase -tostop
-echoprt -echoctl -echoke
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel