Go to Post well, our team isn't actually building a robot, we're covering our team leader in foil. - NERD12345 [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 30-04-2009, 16:46
BornaE's Avatar
BornaE BornaE is offline
Registered User
FRC #0842 (Formerly 39)
Team Role: Engineer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Gilbert, Arizona
Posts: 359
BornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant future
IFI Controller Tether protocol

I searched around but didn't find anything.

I am trying to make a software version of the IFI's operator interface, does anybody know what the protocol is for the communications between the RC and OI?

this would be great help since if nobody knows i would have to figure it out bit by bit, willing to do it but it takes time.

Thanks for any help!
__________________
-Borna Emami
Team 0x27
  #2   Spotlight this post!  
Unread 30-04-2009, 19:05
bear24rw's Avatar
bear24rw bear24rw is offline
Team 11 Programming Captain
AKA: Max T
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
bear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to behold
Send a message via AIM to bear24rw
Re: IFI Controller Tether protocol

It is just a serial port sending out a stream of bytes. I dont remember all the details but i did play around with it a few years ago. You can easily figure out what each byte in the stream represents. There is a problem however, there are two checksums which to my understanding are completely unknown as to how they are calculated.

Good Luck
  #3   Spotlight this post!  
Unread 30-04-2009, 20:51
Tristan Lall's Avatar
Tristan Lall Tristan Lall is offline
Registered User
FRC #0188 (Woburn Robotics)
 
Join Date: Aug 2001
Rookie Year: 1999
Location: Toronto, ON
Posts: 2,484
Tristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond repute
Re: IFI Controller Tether protocol

Quote:
Originally Posted by bear24rw View Post
It is just a serial port sending out a stream of bytes. I dont remember all the details but i did play around with it a few years ago.
The fact that it carries power might be relevant—it allows IFI OIs to run directly from robots, without external power. In that regard, it's definitely not a standard serial port.

Maybe IFI will be interested in describing the protocol, now that it is not used on current products. You'd have to ask them, though.

Last edited by Tristan Lall : 30-04-2009 at 20:54.
  #4   Spotlight this post!  
Unread 03-05-2009, 03:11
Frank Neuperger Frank Neuperger is offline
Registered User
FRC #0842
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Gilbert, AZ
Posts: 90
Frank Neuperger is a splendid one to beholdFrank Neuperger is a splendid one to beholdFrank Neuperger is a splendid one to beholdFrank Neuperger is a splendid one to beholdFrank Neuperger is a splendid one to beholdFrank Neuperger is a splendid one to behold
Re: IFI Controller Tether protocol

Looked at it today using RealTerm freeware and we see either 26 or 52 byte packets. data is 19.2,8,N,1 Need to look at it with scope to see periodicity and duty cycle to see if it is 26 or 52 bytes every ~26 ms. . I suspect it is 26 bytes even though there is "airtime" at 19.2 for 52 bytes. .

OI --> RC There is a pattern every 26 bytes. With no joysticks plugged in, every packet is the same except 3 bytes that change from packet to packet. One byte is counting and the other 2 bytes are seemingly random. The counter is probably just a packet sequence number scheme to assist in comms stats to determine number of missed packets etc. Possible that the 2 random bytes are CRC16. Will try to use this very cool Java app http://www.macs.hw.ac.uk/~pjbk/nets/crc/ to replicate the CRC from captured data. I wish the java app had used hex instead of binary

If anyone has any info on the IFI OI <--> RC protocol, we would be real interested in hearing about it. Asking IFI about anything like this is generally met with a lecture on secrecy. We could not even get the pinout for the radio port from them.

If we can't get the IFI protocol reverse engineered, we will likely substitute the VEX CPU for the IFI.

Why you might ask are we messing with this IFI stuff.

We are entering the NURC underwater robotics competition in mid June for our second season. This way we can do all development in LabView. We want to use the ifi RC again in the ROV because the cRIO wont fit and we also don't want to risk the cRIO in a wet scenario. We do however want to substitute a PC or better yet the cRIO at the operator station. This way we can avoid writing any C code for the RC on the ROV and just use the RC in the ROV as a remotes "sidecar" with digital and PWM I/O and analog I/O.

Frank
Team 0x27

Last edited by Frank Neuperger : 03-05-2009 at 03:13. Reason: typo fix
  #5   Spotlight this post!  
Unread 03-05-2009, 13:15
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,580
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: IFI Controller Tether protocol

The dashboard specification should help, as it says:
Quote:
Data packets are sent out the Dashboard port exactly as they are received by the Radio Modem and may contain transmission errors.
It doesn't define the checksum algorithm, though.
  #6   Spotlight this post!  
Unread 04-05-2009, 21:24
bear24rw's Avatar
bear24rw bear24rw is offline
Team 11 Programming Captain
AKA: Max T
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
bear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to behold
Send a message via AIM to bear24rw
Re: IFI Controller Tether protocol

Here is the patent for the control system i found a long time ago when looking to it.

It details the checksums as DCH style checksums. I have no idea to this day what that means. I remember looking for hours and not understanding it :/

I even had an excel sheet full of dumps that i was trying to analyze lol

And yeah power can go over the line too but i dont think you have to worry about it. when i was sniffing the data i had a rs232 splitter plugged directly into my computer.

BTW i think that the dashboard protocol and tether protocol are identical. so you can use the dashboard port to try to figure out the checksums

definitely let me know if you figure them out id be really really curious
Attached Files
File Type: pdf System_and_method_for_managing_and_contr.pdf (468.5 KB, 66 views)
  #7   Spotlight this post!  
Unread 05-05-2009, 04:30
Frank Neuperger Frank Neuperger is offline
Registered User
FRC #0842
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Gilbert, AZ
Posts: 90
Frank Neuperger is a splendid one to beholdFrank Neuperger is a splendid one to beholdFrank Neuperger is a splendid one to beholdFrank Neuperger is a splendid one to beholdFrank Neuperger is a splendid one to beholdFrank Neuperger is a splendid one to behold
Re: IFI Controller Tether protocol

Quote:
Originally Posted by bear24rw View Post
Here is the patent for the control system i found a long time ago when looking to it.

It details the checksums as DCH style checksums. I have no idea to this day what that means. I remember looking for hours and not understanding it :/

..........................................
definitely let me know if you figure them out id be really really curious
Terrific find that patent. It is the missing link. I did not know it existed.

I have a comms/DSP background and BCH stands for the last names of dynamic Trio of Raj Chandra Bose, Dwijendra Kumar Ray-Chaudhuri, and Alexis Hocquenghem. In the late 50's B and C discovered these codes and about a year later, H did the same or vice versa order of discovery. Now we need to figure out if IFI used one of the known BCH standards. Unfortuantely as I recall these work using syndrome generation though matrix operations and you can fiddle with the generator matrix or one of the vectors and result in an identical (strength ) code to the standard but with proprietary coding (scrambled syndromes) . I really hope that IFI did not get that sophisticated as it might be a real pain to reverse engineer the the proprietary scrambling. We also need to know what data fields of data each checksum operates on and the mapping of that data in the generation the checksums (syndromes per BCH). A good question is if with the 8 bit syndromes, any of the the BCH matrix operations can be reduced to table lookups in the interest of reducing computational effort. Also wondering if they are just using BCH syndromes for error checking or are they actually doing error corrections (FEC).

Besides the BCH, what concerns me as well is the "negotiation" that has to be done between OI and RC prior to the start of telemetry. The transaction diagrams are in the patent but no protocol is detailed for these.

We will play with it some more. Thanks again for the patent lead!!!!

Last edited by Frank Neuperger : 05-05-2009 at 04:57.
  #8   Spotlight this post!  
Unread 05-05-2009, 04:44
Frank Neuperger Frank Neuperger is offline
Registered User
FRC #0842
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Gilbert, AZ
Posts: 90
Frank Neuperger is a splendid one to beholdFrank Neuperger is a splendid one to beholdFrank Neuperger is a splendid one to beholdFrank Neuperger is a splendid one to beholdFrank Neuperger is a splendid one to beholdFrank Neuperger is a splendid one to behold
Re: IFI Controller Tether protocol

removed duplicate post

Last edited by Frank Neuperger : 06-05-2009 at 04:21. Reason: removed duplicate post
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
IFI Controller Channels - NEED HELP Kims Robot Off-Season Events 3 25-02-2008 19:59
IFI Loader protocol Astronouth7303 Programming 0 31-07-2006 11:52
Tether for new EduBot Controller gburlison Programming 9 18-12-2003 17:53
25 FT SERIAL CABLES (controller tether) sanddrag General Forum 10 06-09-2002 20:29


All times are GMT -5. The time now is 03:00.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi