RTC Program and my RFID Tag Detection Hardware/Software

16 views
Skip to first unread message

Mark DiVecchio

unread,
Aug 12, 2020, 5:00:42 PM8/12/20
to Remote Train Control
This is a series of Videos describing and demonstrating my Tag Detection
Hardware and Software. This effort has kept me busy as we self-isolate during
these times of COVID-19. They are available on YouTube as well as on my
my web page. You might get higher resolution on YouTube and there are more
notes and comments on my web page.

http://www.silogic.com/trains/RFID%20on%20the%20Layout.html

https://www.youtube.com/watch?v=0u3PfY0opYg&list=PLXVcxbcA2PKmhgEwEj2TmGPG8gwz9HQB0

Episodes:
1 - Tag Reader Hardware
2 - Tag Mounting
3 - Tag Programming
4 - Simple Tag Detection Script
5 - Tags and Train Control
6 - Running 3 Tag Scripts - Screen Capture
7 - Running 3 Tag Scripts - Layout View

You can visit my web pages at these URL's:
http://www.silogic.com/trains/RTC_Running.html
http://www.silogic.com/trains/OOK_Radio_Support.html
http://www.silogic.com/trains/RFID.html
http://www.silogic.com/trains/RTC_Control_Language.html

--
Mark DiVecchio K3FWT http://www.silogic.com Rainbow, CA 92028
My Genealogy Web Site : http://www.silogic.com/genealogy/genealogy.html
My Model Trains Web Site : http://www.silogic.com/trains/layout.html
"We are stardust, we are golden, we are billion year old carbon", Joni Mitchell

Wayne Kraemer

unread,
Aug 12, 2020, 11:25:40 PM8/12/20
to remote-tra...@googlegroups.com
Thank you
Wayne Kraemeer
--
You received this message because you are subscribed to the Google Groups "Remote Train Control" group.
To unsubscribe from this group and stop receiving emails from it, send an email to remote-train-con...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/remote-train-control/5F345877.30552.1A5175F%40markd.silogic.com.


--
This email has been checked for viruses by AVG.
https://www.avg.com

Ray Leiter

unread,
Aug 13, 2020, 4:38:18 PM8/13/20
to remote-tra...@googlegroups.com
Mark;
Its really good to hear from you after such a long quiet time.
I haven't been doing anything with my train stuff -- I'm spending all my
time between piano lessons and learning Python.

I started looking at the stuff you mention in this email -- its going to
take me awhile since you have so much.

I'm really looking forward to carefully going over your web site and all the
videos you made of your RFID work.

So far, I only skimmed the surface.

I did see you mention Lua scripts and I was wondering what you did with Lua?
I'll find out once I start carefully reviewing your work.

Have you heard anything about Python?

I would be interested to hear how you settled on Lua as opposed to another
language?

I'll be emailing you again once I've been able to absorb more of your work.
Until then;

Thanks for the update and its good to hear you're all safe -- we too are
safe.
Ray

-----Original Message-----
From: Mark DiVecchio
Sent: Wednesday, August 12, 2020 5:00 PM
To: Remote Train Control
Subject: [RTC] RTC Program and my RFID Tag Detection Hardware/Software

Mark DiVecchio

unread,
Aug 13, 2020, 6:38:14 PM8/13/20
to 'Ray Leiter' via Remote Train Control
Ray,

About Lua..

I wanted some way to let users write control programs.

I had experimented with ways to let users write in C++.
That was not going to work.

I searched for scripting languages and found Lua (and a few others).
Lua stood out because it had been successfully compiled with
Borland (now Embarcadero) C++. That was the real selling point.

I was able to embed a Lua interpreter in my RTC program fairly
easily. I wrote functions that could be called from the Lua scripts
to control the engines, TIU and AIU. It all works pretty well.

So a user can write a program in Lua, run it from RTC and call
functions that startup/shutdown engines, control switch tracks,
activate bells/whistles/horns. Basically they can do anything
via program control and they can do from the Remote.

As it turned out, Lua is a fairly well known embedded system that is
used in a lot of applications. The Lua author wrote a very nice book
about the language. Lua can be very simple for beginners and it has
a lot of very advanced features.

It is similar to Python which would probably have worked just as well
(I don't know if there is an embedded version of Python which would
compile with my C++ compiler). I've never used Python.

Mark
> To view this discussion on the web visit https://groups.google.com/d/msgid/remote-train-control/0757F7018B3247B1B4680BE6C96BC24A%40Sys1.

Ray Leiter

unread,
Aug 14, 2020, 9:27:25 AM8/14/20
to remote-tra...@googlegroups.com
Mark;
Thanks for the reply.
It looks like you made a very good choice using Lua.
I looked at the language some time ago when I was reviewing different
scripting languages.
As I recall, I didn't place it very high on my list, but now I think I
should take another look.

One thing I wasn't sure of: Your wrote;
"Basically they can do anything via program control and they can do from the
Remote."

How does this "remote" work?

I think I'm forgetting something about the way your system works.
Are you saying a user uses the MTH remote to invoke scripts in RTC?
If so, that's the part I don't now see.
https://groups.google.com/d/msgid/remote-train-control/5F35C0D3.28375.1114B8%40markd.silogic.com.

Mark DiVecchio

unread,
Aug 14, 2020, 10:01:53 AM8/14/20
to 'Ray Leiter' via Remote Train Control
Ray,

No, I just meant that with a program control script written
in Lua, you can call functions within RTC that can control
the engines and accessories.

Mark
> To view this discussion on the web visit https://groups.google.com/d/msgid/remote-train-control/7D3A017440944EF5B93237BE4DE2A596%40Sys1.

Ray Leiter

unread,
Aug 14, 2020, 10:06:25 AM8/14/20
to remote-tra...@googlegroups.com
Mark;
I was trying to view and listen to Video #3 Tag Programming but I could
hardly hear it.
I turned my volume up all the way and could just barely hear anything.
I wonder if the video was recorded with too low a signal?
Could you check to see if I'm the only one having trouble?
Thanks
Ray

-----Original Message-----
From: Mark DiVecchio
Sent: Thursday, August 13, 2020 6:38 PM
To: 'Ray Leiter' via Remote Train Control
https://groups.google.com/d/msgid/remote-train-control/5F35C0D3.28375.1114B8%40markd.silogic.com.

Mark DiVecchio

unread,
Aug 14, 2020, 10:15:50 AM8/14/20
to 'Ray Leiter' via Remote Train Control
Ray, yes the audio came out pretty low. I can hear it
if I turn the audio up. Mark
> To view this discussion on the web visit https://groups.google.com/d/msgid/remote-train-control/9877F8B8A7114317B5325F6A7B4862D1%40Sys1.
Reply all
Reply to author
Forward
0 new messages