Author Topic: Arduino protocol?  (Read 10363 times)

0 Members and 1 Guest are viewing this topic.

MattiasC

  • Been Here More than a Bit
  • ***
  • Posts: 26
    • View Profile
Arduino protocol?
« on: 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?

chris99

  • Been Here a Bit
  • **
  • Posts: 22
  • Rock on
    • View Profile
Re: Arduino protocol?
« Reply #1 on: December 08, 2014, 11:48:29 AM »
Hi,
Is this what you're looking for?
Quote
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

martin

  • Administrator
  • Here a Real Lot!
  • *****
  • Posts: 275
  • RCS64 Programmer
    • View Profile
Re: Arduino protocol?
« Reply #2 on: December 08, 2014, 11:54:55 AM »
Sorry guys, this communication is outdated, I will ask Kåre to update to the new.

Martin

MattiasC

  • Been Here More than a Bit
  • ***
  • Posts: 26
    • View Profile
Re: Arduino protocol?
« Reply #3 on: 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.

martin

  • Administrator
  • Here a Real Lot!
  • *****
  • Posts: 275
  • RCS64 Programmer
    • View Profile
Re: Arduino protocol?
« Reply #4 on: December 08, 2014, 12:03:24 PM »
You can find that out by knowing the communication protocol.

MattiasC

  • Been Here More than a Bit
  • ***
  • Posts: 26
    • View Profile
Re: Arduino protocol?
« Reply #5 on: December 08, 2014, 12:10:57 PM »
Quote
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?

martin

  • Administrator
  • Here a Real Lot!
  • *****
  • Posts: 275
  • RCS64 Programmer
    • View Profile
Re: Arduino protocol?
« Reply #6 on: December 08, 2014, 12:29:51 PM »
Yes

MattiasC

  • Been Here More than a Bit
  • ***
  • Posts: 26
    • View Profile
Re: Arduino protocol?
« Reply #7 on: December 08, 2014, 12:46:38 PM »
Great  :)

martin

  • Administrator
  • Here a Real Lot!
  • *****
  • Posts: 275
  • RCS64 Programmer
    • View Profile
Re: Arduino protocol?
« Reply #8 on: 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.

MattiasC

  • Been Here More than a Bit
  • ***
  • Posts: 26
    • View Profile
Re: Arduino protocol?
« Reply #9 on: December 08, 2014, 04:05:22 PM »
Sweet

MattiasC

  • Been Here More than a Bit
  • ***
  • Posts: 26
    • View Profile
Re: Arduino protocol?
« Reply #10 on: 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...

martin

  • Administrator
  • Here a Real Lot!
  • *****
  • Posts: 275
  • RCS64 Programmer
    • View Profile
Re: Arduino protocol?
« Reply #11 on: 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

MattiasC

  • Been Here More than a Bit
  • ***
  • Posts: 26
    • View Profile
Re: Arduino protocol?
« Reply #12 on: 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.

MattiasC

  • Been Here More than a Bit
  • ***
  • Posts: 26
    • View Profile
Re: Arduino protocol?
« Reply #13 on: 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.

kaareseras

  • Been Here a Little Bit
  • *
  • Posts: 1
    • View Profile
Re: Arduino protocol?
« Reply #14 on: 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