[Voyage-linux] stty: pluggin in cable - settings get lost

Guido Richter (spam-protected)
Sat Sep 10 04:29:10 HKT 2011


Hi community!

I'm new to linux and voyage but I made great progress at all I think.

I'm running latest voyage on an alix3d3. I installed WLAN and now I'm trying to set up the serial port to reveive data from a weather measurement hardware.

There are 3 problems at the moment:

#1: Since the hardware needs baud 4800 and so on I tried to change settings with stty (stty -F /dev/ttyS0 4800 cs8 -parenb.......). Afterwards I planned to run pdkg-reconfigure to save the settings forever. The first time I changed my setting everything worked very well - I could see my data with cat /dev/ttyS0.

Now, after rebooting, there is some strange behaviour. When I unplug my serial cable and change the settings everything is fine. But as soon as I plug the cable my settings fall back to default or whatever. So running stty -F /dev/ttyS0 -a twice and pluggin in the cable after the first call produces different output with different settings. My own settings seem to have gone.

This always happens when I attach the cable.

So I would be happy to get some support here. My only aim is to change serial settings forever. As I read there are no chances to do this with serial.conf or something like that. I read that the one and only good way is stty and pdkg-reconfigure. Any oher ideas? Hints?

#2: Second problem is that from time to time I can not open SSH-access although alix is listed as connected in my routers WLAN-list. I'm not sure, but I think it has something to do with the serial cable whether it's pluggedin or not.
It's neccessary that my systems boots with the cable plugged in because if something crashes or the power supply runs down it has to start again afterwards to collect my serial data and send it to internet.

#3: The system takes some minutes to boot sometimes. I couldn't find out why. First guess was a unsuccessfully made try to open ethernet-connection. It took over a minute in my logs. So I disabled eth0 in etc/network/interfaces. -> no change. I'm not sure if the system is slow or if there are problems getting access via SSH since alix shows up really fast at routers WLAN-list so I think the system has bootet successfully.

Hope to get some help! Notice: I'm German. Sorry for bad english. Answers in German are welcome, english too ;)

Regards
Guido
-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de




More information about the Voyage-linux mailing list