Go to Post Just remember, FIRST isn't about the robot, just have fun, meet new people, and try to learn something new. Killing yourself with inhumane amounts of pressure just isn't fun for anyone. - Ian W. [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 21-02-2009, 16:27
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
recieve data from cRIO

We have a custom dashboard (written in C# .net or VB .net) and it is supposed to receive the packets coming from the DS on port 1165 of type UDP. we have the cRIO running the following program based off the dashboard data example:
Code:
...
...
void RobotMain()//so it executes even if disabled
{
		Dashboard &dashboard = m_ds->GetDashboardPacker();
		while (true)
		{
			dashboard.Printf("It's been %f seconds, according to the FPGA.\n", GetClock());
			dashboard.Printf("451!|distance=2|flywheel=%f|!451\n", 1);//our custom packet of data
			dashboardDataFormat.PackAndSend();
			Wait(0.02);
		}
}
....
...
and we have recieved on our custom dashboard... nothing, we changed the dashboard.printf to regular printfs and still nothing
here is the .net code in C#:
Code:
/*init function*/
	UdpClient cRIO = new UdpClient();
	cRIO.Bind("10.4.51.5",1165);
/*end init*/
/*in the start button click*/
	IPEndPoint ipend = new IPEndPoint(IPAddress.Any, 1165);
	this.textBox1.Text = cRIO.Recieve(ref ipend);
//*end button*/
and the code pauses and never recieves anything from port 1165, I tried out wireshark, and tons of packets are coming in, but I get nothing, what are we doing wrong?
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
 


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
Data delay between Crio and DS Tom Line NI LabVIEW 9 17-02-2009 08:40
Capture Data from the cRio goodsky Programming 2 13-01-2009 21:27
Sending data from RC to OI Nathan Programming 7 03-02-2008 22:32
Did we recieve MS Front Page from FIRST Mr.G Website Design/Showcase 2 28-01-2006 15:12
Programming Vex Starter Kit To Recieve From Serial Port firetrap FIRST Tech Challenge 0 26-09-2005 17:27


All times are GMT -5. The time now is 20:37.

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