Ich bin Linux-Neuling, habe aber wie ich denke schon große Fortschritte gemacht.
Ich habe mir einen Alix3D3 angeschafft und dort das Voyage-Linux installiert. Dieses habe ich dann dazu gebracht, per WLAN erreichbar zu sein.
An das Gerät möchte ich eine Hardware per serielle Schnittstelle anschließen. Diese Hardware sendet Daten, die dann im Alix verarbeitet und weitergeschickt werden sollen. Das funktioniert soweit auch erstmal alles (Dämonen, init-Eintrag usw)
Mein großes Problem ist aber, dass ich die serielle Schnittstelle nicht konfiguriert bekomme. Die Hardware benötigt ganz spezielle Einstellungen. Ich hatte es schonmal soweit, dass ich den Input sehen konnte, aber seither streikt meine Maschine wenn es um die Einstellungen geht, denn nach meinem Reboot waren die einmalig gesetzten Einstellungen logischerweise weg.
Nun mal konkret. Der Ablauf meiner Tätigkeiten ist wie folgt:
Ich versuche mit
Code: Alles auswählen
stty -F /dev/ttyS0 4800 cs8 -parenb -cstopb
Mittels
Code: Alles auswählen
dpkg-reconfigure setserial
Wenn ich jetzt ausführe:
Code: Alles auswählen
stty -F /dev/ttyS0 -a
Code: Alles auswählen
root@voyage:~# stty -F /dev/ttyS0 -a
speed 4800 baud; rows 0; columns 0; line = 157;
intr = ^J; quit = (; erase = M-^E; kill = ^D; eof = @; eol = +; eol2 = <undef>;
swtch = ^A; start = <undef>; stop = <undef>; susp = <undef>; rprnt = <undef>;
werase = <undef>; lnext = ^T; flush = <undef>; 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
Ergebnis:
Code: Alles auswählen
root@voyage:~# stty -F /dev/ttyS0 -a
speed 38400 baud; rows 0; columns 0; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = M-?;
swtch = <undef>; start = <undef>; stop = <undef>; susp = <undef>; rprnt = Z;
werase = M-7; lnext = <undef>; flush = X; min = 1; time = 0;
-parenb -parodd cs7 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