![]() |
cRio to DS packet spec.
Hello all,
I'm working on a personal project where I'm hooking a Gumstix mini computer to an iCreate. The Gumstix has 802.11 on it and I was thinking of using a FIRST drivers station as the thing on my end to control it. In order to do this I will need to learn the packet communication between the two so I can implement the code that the cRio has on it onto the Gumstix. I was thinking of sniffing the packets on our practice robot which is at my house currently, but then I thought someone else may already have this info and can share it with me. So…. Does anyone have the packet communication between the DS and the cRio that they can share with me? -Jim |
Re: cRio to DS packet spec.
I was working on somthing similar, but I never finished coding it.
You can view the source code and documentation I was working on on Codeplex, but the documentation is really more of note for myself than usable documentation. The data from the DS to robot is defined as: Code:
#define USER_CONTROL_DATA_SIZE 984 //This number is from memory, it wasn't in this chuck of code from my docs.1 byte - ? 2 bytes - battery voltage 5 bytes -? 6 bytes - robot MAC address 14 bytes - ? 2 bytes - reply ID(ID of previous packet sent from DS) 936 bytes - user configureable data 4 bytes - crc pad 4 bytes - crc32 They use some weird data formating for some data. If it isn't simpy encoded data here are the conversions I have recorded. Battery voltage (vb.net) Code:
Dim batteryBytes = reader.ReadBytes(2)Code:
Public Function ReadTeamNumber(ByVal reader As BinaryReader) As IntegerAlliance, 0x52 = 1, 0x42 = 2 Control byte - see DS to robot data structure Notes: If I remember correctly, the DS sends the full data structure even if the robot isn't replying. It just sets the disabled bit to 1. This could mean you don't have to implement the reply logic, but you would some saftey features. |
Re: cRio to DS packet spec.
Eric,
Thanks this is what I needed. -Jim |
| All times are GMT -5. The time now is 20:36. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi