LinuxMCE Forums
May 25, 2013, 07:06:50 am GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
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
 
   Home   Help Search Chat Login Register  
Pages: [1]
  Print  
Author Topic: Problem whit newcs and /dev/ttyS0  (Read 848 times)
mami
Regular Poster
**
Posts: 34


View Profile
« on: April 14, 2008, 01:20:59 pm »

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
Logged
nosilla99
Veteran
***
Posts: 120


View Profile
« Reply #1 on: April 14, 2008, 09:32:36 pm »

@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
Logged
mami
Regular Poster
**
Posts: 34


View Profile
« Reply #2 on: April 15, 2008, 05: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
Logged
nosilla99
Veteran
***
Posts: 120


View Profile
« Reply #3 on: April 15, 2008, 07:24:51 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

Code:
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
Logged
mami
Regular Poster
**
Posts: 34


View Profile
« Reply #4 on: April 17, 2008, 04:10:11 pm »

Many thnx for that.  Cheesy

/Mami
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!