RCS64 User Forum
General => Arduino => : MattiasC December 08, 2014, 10:44:47 AM
-
I was curious if there is any information about the communication protocol between RCS64 and an Arduino. I understand the SmartSensor is based on Arduino and is communicating, but is the protocol open source? The RCS64 web page is refering to a video and a manual, but neither seem to exist. It is also refering to a thread on SlotForum but the last entry in there is from mars. (Havent read everything there, but I couldnt find the protocol.) So, anyone?
-
Hi,
Is this what you're looking for?
Commands the SmartSensor replies to:
Commands is always to be terminated with a ";"
? = Printout all commands
snread = Read S/N
snwrite = Write S/N
ver = Read FW version
set_ss_mode = Set to SmartSensor protocol
set_pp_mode = Set to PitPro protocol
set_se_mode = Set to Sector protocol
reset = Reset Pit status for all cars
set_status = Set status of a car CarID[1..6],Status[0/1]
status = Read pit status
led X on/off/blink = turn on/off single LED
get_led_stat = Read all LEDS status
all_on = turn on all LED
all_off = turn off all LED
read_mode = get device mode status (ss/pp/se)
ReadPickups = Read current times a car need to be identified before trusted ID is established
NumberOfPickups = Times a car need to be identified before trusted ID is established (2 or 3)
starttimer = Start sector timing
readsector = Get sector status for each car
freeMemory = Read out memory usage;
More here: http://www.seras.dk/SmartSensor/Home/Developer
Chris
-
Sorry guys, this communication is outdated, I will ask Kåre to update to the new.
Martin
-
No, that is a list of the commands the SmartSensor responds to. I would like to know how RCS64 communicates the start sequence/a track call and so on to an Arduino (i.e. for building start lights, and possibly other physical dashboards). This is discussed in the SlotForum thread, but I cant find any protocol.
-
You can find that out by knowing the communication protocol.
-
You can find that out by knowing the communication protocol.
Uhm, yeah. So how can I get to know the communication protocol? Is that what you will ask Kåre to update?
-
Yes
-
Great :)
-
This is for version10, only different is that version 11 have a reverse pit. I will add that later.
-
Sweet
-
So presently there isnt any way to receive info about fuel level or tyre condition?
It would be sweet to write an Arduino lib for the RCS64...
-
No not at this time. But I am open for it, but I wont make another driver for that only, so please contact kåre, I am sure he is open for it.
Martin
-
Ok. Ill start take a peek at the protocol you sent me. We´ll see what comes out of it.
-
So I hooked up an Arduino Uno, connected it to RCS64 and downloaded the firmware. Everything works just fine. You have done a really good job with this, making it easy for anyone to build start lights with an Arduino without having to do any coding! Didnt know it was there.
Just curious; what are the use of the led9 and led10 in the "Simple Arduino test" window?
By the way, the protocol you shared doesnt tell how to establish the connection, but I think Im content with the firmware avaliable for now.
-
Hi all
Just like to add that I will build a startlight like the one on my Web page. The tower will have startlight and also enable pit status to be communicated to all drivers with a 360 drg view.
Please take a look at smartsensor.seras.dk for more info
Kindly
Kåre
-
Hi Kåre!
I saw the startlight on your website. It looks really good. Are you making the actual tower yourself?
And I must say Im really impressed by the plans for the SmartMegaSensor. If you can pull that off, well, wow.
What I had in mind when I started this thread except building startlight was to maybe build a pair of physical dashboards (of some kind) showing damage, penalty, fuel level and tyres for all the drivers. It would be great to have one in each direction at my track, since it´s hard to see the computer screen for all the drivers.
But to do something like that I would need to know how to establish the serial connection between the Arduino (i.e. the Atmega uC) and RCS64, code wice. The protocol shared in this thread doesnt tell.
I also would need a way to receive all that information from RCS64, and today that doesnt seem to be managable. Though, I make it a wish for the future.
/Matt