On Wed, 27 Oct 2010 23:50:54 +0200, Martin Larsen wrote:
> Nu ved jeg ikke hvad du mener med "hul igennem", men jeg kan sende data
> til porten med fx:
> 
> echo "blabla" > /dev/ttyACM0
> 
Jeg tænker på på noget hvor jeg også modtager svaret fra telefonen. Jeg 
har prøvet at rode med getty og stty, men jeg modtager ikke svar fra 
telefonen. 
Umiddelbart ville jeg to at 
$ getty 9600 ttyACM0
skulle virke, men jeg får ikke svar på de at-kommandoer jeg sender. Jeg 
har prøvet at enable echo via ssty
thomas@zepto

$ stty -F /dev/ttyACM0 sane
thomas@zepto

$ stty -F /dev/ttyACM0 echo
thomas@zepto

$ stty -F /dev/ttyACM0 -a
speed 9600 baud; rows 0; columns 0; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; 
eol = <undef>; eol2 = <undef>; swtch = <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 -iutf8
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
men det hjælper heller ikke umiddelbart. 
Er getty overhovedet en farbar vej til to-vejskommunikation med 
telefonen? I givet fald hvordan? Skal terminalen sættes op til det? I 
givet fald hvorddan?
-- 
Thomas Jensen