News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

Problem whit newcs and /dev/ttyS0

Started by mami, April 14, 2008, 02:20:59 PM

Previous topic - Next topic

mami

My problem whit newcs is that i allways get: "Reset faild..." when starting.
If i unplug the card from reader and plug it in again, then restart newcs it starts working.

I think the problem has something to do whit HAL becouse it uses the port /dev/ttyS0 that i want to use. It's the only Com-port on my computer, so i realy need it. Or is it something else?
I have fixed so newcs starts before HAL when booting, but did'nt help...

/Mami

nosilla99

@masmi

LMCE is trying to manage the serial port, to avoid this type of conflict you can edit /usr/pluto/bin/ListSerialPorts.sh.

If LMCE does not need to use the serial or usb ports then just place an exit at the top of the file.

NOS

mami

Thnx, it work.

But say, if I want to have more com-ports in the future. Can i then exclude /dev/ttyS0 in some way?

/Mami

nosilla99

Quote from: mami on April 15, 2008, 06:49:54 PM
Thnx, it work.

But say, if I want to have more com-ports in the future. Can i then exclude /dev/ttyS0 in some way?

/Mami

Here is my Ports line which only detects ttyS1-ttyS4 i.e. it excludes LMCE from using ttyS0

if [[ -f /proc/tty/driver/serial ]]; then
Ports=$(cat /proc/tty/driver/serial | grep -v unknown | grep '[1-4]: ' | cut -d: -f1)
for i in $Ports; do
echo "/dev/ttyS$i"
done
fi


NOS

mami