[Solved] Problem at startup: TamsMC

agre30
Posts: 822
Joined: 24.12.2011, 20:41
Location: Netherland (Noordwest Overijssel)
Contact:

Re: Problem at startup: TamsMC

Post by agre30 » 22.03.2014, 18:47

Hello Lothar,
Thank you very much. How can I test if the ModemManager touches the com port?
I think I will follow Robs advice and buy an USB-RS232 converter.
Greetings,

Albert.

ViktorHotel
Posts: 494
Joined: 05.02.2009, 17:05
Location: near Dortmund, Germany

Re: Problem at startup: TamsMC

Post by ViktorHotel » 22.03.2014, 19:52

Hi,
I have two questions.
The CTS checkbox in the HSI config dialog http://wiki.rocrail.net/doku.php?id=hsi88-en isn't checked ?
Can you please post the output of the console command "dmesg | grep tty" ?
...and you are member of dialout group ?
Unbenannt.JPG
Unbenannt.JPG (36.25 KiB) Viewed 175 times
Best regards,
Volker

agre30
Posts: 822
Joined: 24.12.2011, 20:41
Location: Netherland (Noordwest Overijssel)
Contact:

Re: Problem at startup: TamsMC

Post by agre30 » 23.03.2014, 10:25

Hello Volker,
I did not have this problem when I used DDX as a CS. I started Rocrail server as a root in a terminal screen to get full access to the serial ports. The user is a member of the dialout group. Since I have a TamsMC I start Rocview and open the workspace. I had to chance the persmissions of some maps and files to make it work.

I unchecked the CTS options. It was checked but there is no difference.
I made a picture of the result of dmesg | grep tty

Thanks for your help,

Albert.
Attachments
IMAG0335.jpg
IMAG0335.jpg (42.64 KiB) Viewed 167 times

ViktorHotel
Posts: 494
Joined: 05.02.2009, 17:05
Location: near Dortmund, Germany

Re: Problem at startup: TamsMC

Post by ViktorHotel » 23.03.2014, 11:51

Hi Albert,
a strange problem.
I have only one idea: http://wiki.rocrail.net/doku.php?id=roc ... at_startup ->disable searching for devices at rocrail startup.
It seems a problem with your serial card. Testing with a usb/serial converter is good idea.

Best regards,
Volker

agre30
Posts: 822
Joined: 24.12.2011, 20:41
Location: Netherland (Noordwest Overijssel)
Contact:

Re: Problem at startup: TamsMC

Post by agre30 » 24.03.2014, 11:11

Thanks.
I have bought a SUB-RS232 adapter. I will keep you informed about the results.

What keeps puzzling me is that the HSI88 worked allright with the DDX/ORD-3.

rjversluis
Site Admin
Posts: 40974
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Re: Problem at startup: TamsMC

Post by rjversluis » 24.03.2014, 12:05

Why not using the s88 connector on the Tams MC?
Attachments
tamsmc.png
tamsmc.png (94.51 KiB) Viewed 133 times

agre30
Posts: 822
Joined: 24.12.2011, 20:41
Location: Netherland (Noordwest Overijssel)
Contact:

Re: Problem at startup: TamsMC

Post by agre30 » 24.03.2014, 20:04

rjversluis wrote:Why not using the s88 connector on the Tams MC?
Because I already have a HSI88. :D
But thanks for the hint. I will consider to connect it as you suggested. First I will try the USB adapter.

agre30
Posts: 822
Joined: 24.12.2011, 20:41
Location: Netherland (Noordwest Overijssel)
Contact:

Re: Problem at startup: TamsMC (continued)

Post by agre30 » 27.03.2014, 18:22

The USB-RS232 adapter arrived and it works, but now there is another problem:
At first the TamsMC is connected to ttyUSB0 and HSI88 to ttyUSB1, but when I restart the computer the ports are swapped :cry:
I tried the udev rules as written above but the symlink doesn't work. When I look at the /dev map I see a shortcut named tamsMC, but when I connect the TamsMC in Rocrail to /dev/tamsMC it doesn't work. I've read about it on the Internet but I don't see what I should do to make it work.

I hope one of the Ubuntu expert can help me out.

rjversluis
Site Admin
Posts: 40974
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Re: Problem at startup: TamsMC

Post by rjversluis » 27.03.2014, 18:24


ViktorHotel
Posts: 494
Joined: 05.02.2009, 17:05
Location: near Dortmund, Germany

Re: Problem at startup: TamsMC

Post by ViktorHotel » 27.03.2014, 20:20

Hi Albert,
can you please try this shortenend rule in /etc/udev/rules.d/

ATTR{idVendor}=="10c4", ATTR{idProduct}=="813f", ENV{ID_MM_DEVICE_IGNORE}="1", SYMLINK+="tamsmc"

Note tamsmc is now lowercased and without "ATTRS{product}=="......

and a note from udev manpages:

Rules files
The udev rules are read from the files located in the default rules
directory /lib/udev/rules.d/, the custom rules directory
/etc/udev/rules.d/ and the temporary rules directory
/dev/.udev/rules.d/. All rule files are sorted and processed in lexical
order, regardless in which of these directories they live.

Rule files are required to have a unique name, duplicate file names are
ignored. Files in /etc/udev/rules.d/ have precedence over files with
the same name in /lib/udev/rules.d/. This can be used to ignore a
default rules file if needed.
Best regards,
Volker

agre30
Posts: 822
Joined: 24.12.2011, 20:41
Location: Netherland (Noordwest Overijssel)
Contact:

Re: Problem at startup: TamsMC

Post by agre30 » 27.03.2014, 20:57

Rob, Volker, :beer:
Thanks for your help. I finally succeeded.
I changed the name of the rules file, it is now preceeded by 99 and not 11 thanks to the wiki page Rob showed me
I deleted the product attribute as Volker suggested
I corrected a typo :wink:

I attached the final rules file.
Last step was to make Rocrail start when the computer starts and that also works. :thumb_up:
Now I'm a little less a novice to Ubuntu.

(My next wish is a sensor on my head so I can make the trains run as I think.)
Attachments
99-tams.zip
(362 Bytes) Downloaded 10 times

ViktorHotel
Posts: 494
Joined: 05.02.2009, 17:05
Location: near Dortmund, Germany

Re: Problem at startup: TamsMC

Post by ViktorHotel » 27.03.2014, 21:04

Hi,
good news and I wish all users a

Happy Rocrailing

:rr_for_ever:

Volker

Post Reply

Return to “P50 and P50x”