RCS64 User Forum

General => Arduino => : MattiasC December 08, 2014, 10:44:47 AM

: Arduino protocol?
: 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?
: Re: Arduino protocol?
: chris99 December 08, 2014, 11:48:29 AM
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
: Re: Arduino protocol?
: martin December 08, 2014, 11:54:55 AM
Sorry guys, this communication is outdated, I will ask Kåre to update to the new.

Martin
: Re: Arduino protocol?
: MattiasC December 08, 2014, 11:56:34 AM
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.
: Re: Arduino protocol?
: martin December 08, 2014, 12:03:24 PM
You can find that out by knowing the communication protocol.
: Re: Arduino protocol?
: MattiasC December 08, 2014, 12:10:57 PM
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?
: Re: Arduino protocol?
: martin December 08, 2014, 12:29:51 PM
Yes
: Re: Arduino protocol?
: MattiasC December 08, 2014, 12:46:38 PM
Great  :)
: Re: Arduino protocol?
: martin December 08, 2014, 02:31:07 PM
This is for version10,  only different is that version 11 have a reverse pit. I will add that later.
: Re: Arduino protocol?
: MattiasC December 08, 2014, 04:05:22 PM
Sweet
: Re: Arduino protocol?
: MattiasC December 08, 2014, 04:25:04 PM
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...
: Re: Arduino protocol?
: martin December 09, 2014, 08:02:16 AM
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
: Re: Arduino protocol?
: MattiasC December 09, 2014, 08:26:03 AM
Ok. Ill start take a peek at the protocol you sent me. We´ll see what comes out of it.
: Re: Arduino protocol?
: MattiasC December 09, 2014, 12:42:30 PM
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.
: Re: Arduino protocol?
: kaareseras December 09, 2014, 06:27:38 PM
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
: Re: Arduino protocol?
: MattiasC December 10, 2014, 09:28:00 AM
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