Go to Post ...the great teams in FRC will probably continue to be great teams. That is because they have great people who embrace the challenge rather than whine about it. - dtengineering [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 06-12-2012, 13:13
279 EMPIE's Avatar
279 EMPIE 279 EMPIE is offline
Head Progammer
AKA: Matthew Empie
FRC #0279 (Tech Fusion)
Team Role: Programmer
 
Join Date: Dec 2010
Rookie Year: 2011
Location: Toledo Ohio
Posts: 76
279 EMPIE is just really nice279 EMPIE is just really nice279 EMPIE is just really nice279 EMPIE is just really nice
Send a message via AIM to 279 EMPIE
Connecting two java programs with a Ethernet cord

I was wondering if anyone has made any code that will send information in a Java Program on a laptop through a Ethernet cord to the Program in the cRIO.

I'm sure it is do able its just i haven't found much sample code to learn off of. I have no experiance with programming IP/TCP, Ports, or anything else that has to do with this subject.

I was just wondering if someone could help me out.
__________________
2011- Programmer, Electrical, and Web
Cleveland Regional

2012- Head Programmer, Web, Driver
Pittsburg Regional, Saint Louis International

2013- Head Programmer
Cinnicinatti Regional, Taraho Regional
Reply With Quote
  #2   Spotlight this post!  
Unread 06-12-2012, 16:53
F22Rapture's Avatar
F22Rapture F22Rapture is offline
College Student, Mentor
AKA: Daniel A
FRC #3737 (4H Rotoraptors)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Goldsboro, NC
Posts: 476
F22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant future
Re: Connecting two java programs with a Ethernet cord

Quote:
Originally Posted by 279 EMPIE View Post
I was wondering if anyone has made any code that will send information in a Java Program on a laptop through a Ethernet cord to the Program in the cRIO.

I'm sure it is do able its just i haven't found much sample code to learn off of. I have no experiance with programming IP/TCP, Ports, or anything else that has to do with this subject.

I was just wondering if someone could help me out.
I'd recommend making a SmartDashboard plugin to serve your needs, and use Networktables/Networktables2 to pass the data. That way you really don't even need to bother with handling TCP/UDP directly.

What are you doing with the data at either end?
__________________
Research is what I’m doing when I don’t know what I’m doing.
- Wernher von Braun
Attending: Raleigh NC Regional
Reply With Quote
  #3   Spotlight this post!  
Unread 07-12-2012, 14:04
279 EMPIE's Avatar
279 EMPIE 279 EMPIE is offline
Head Progammer
AKA: Matthew Empie
FRC #0279 (Tech Fusion)
Team Role: Programmer
 
Join Date: Dec 2010
Rookie Year: 2011
Location: Toledo Ohio
Posts: 76
279 EMPIE is just really nice279 EMPIE is just really nice279 EMPIE is just really nice279 EMPIE is just really nice
Send a message via AIM to 279 EMPIE
Re: Connecting two java programs with a Ethernet cord

Quote:
Originally Posted by F22Rapture View Post
What are you doing with the data at either end?
Well i would most likely be transferring Variables and Numbers from the Laptop to the cRIO.
__________________
2011- Programmer, Electrical, and Web
Cleveland Regional

2012- Head Programmer, Web, Driver
Pittsburg Regional, Saint Louis International

2013- Head Programmer
Cinnicinatti Regional, Taraho Regional
Reply With Quote
  #4   Spotlight this post!  
Unread 07-12-2012, 15:10
joelg236 joelg236 is offline
4334 Retired Mentor & Alumni
AKA: Joel Gallant
no team
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Calgary
Posts: 733
joelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond repute
Re: Connecting two java programs with a Ethernet cord

Quote:
Originally Posted by 279 EMPIE View Post
Well i would most likely be transferring Variables and Numbers from the Laptop to the cRIO.
I would definitely recommend saving yourself a lot of trouble and use the SmartDashboard. It can do that without a problem.
__________________
All opinions are my own.
Reply With Quote
  #5   Spotlight this post!  
Unread 07-12-2012, 18:15
F22Rapture's Avatar
F22Rapture F22Rapture is offline
College Student, Mentor
AKA: Daniel A
FRC #3737 (4H Rotoraptors)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Goldsboro, NC
Posts: 476
F22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant future
Re: Connecting two java programs with a Ethernet cord

Quote:
Originally Posted by 279 EMPIE View Post
Well i would most likely be transferring Variables and Numbers from the Laptop to the cRIO.
Quote:
Originally Posted by joelg236 View Post
I would definitely recommend saving yourself a lot of trouble and use the SmartDashboard. It can do that without a problem.
Exactly. You don't even need to use a plugin since networktables has that functionality built in.
__________________
Research is what I’m doing when I don’t know what I’m doing.
- Wernher von Braun
Attending: Raleigh NC Regional
Reply With Quote
  #6   Spotlight this post!  
Unread 10-12-2012, 13:40
279 EMPIE's Avatar
279 EMPIE 279 EMPIE is offline
Head Progammer
AKA: Matthew Empie
FRC #0279 (Tech Fusion)
Team Role: Programmer
 
Join Date: Dec 2010
Rookie Year: 2011
Location: Toledo Ohio
Posts: 76
279 EMPIE is just really nice279 EMPIE is just really nice279 EMPIE is just really nice279 EMPIE is just really nice
Send a message via AIM to 279 EMPIE
Talking Re: Connecting two java programs with a Ethernet cord

Thank You,

I have never used SmartDashboard before so i will look into that and see what i can do.
__________________
2011- Programmer, Electrical, and Web
Cleveland Regional

2012- Head Programmer, Web, Driver
Pittsburg Regional, Saint Louis International

2013- Head Programmer
Cinnicinatti Regional, Taraho Regional
Reply With Quote
  #7   Spotlight this post!  
Unread 11-12-2012, 12:21
279 EMPIE's Avatar
279 EMPIE 279 EMPIE is offline
Head Progammer
AKA: Matthew Empie
FRC #0279 (Tech Fusion)
Team Role: Programmer
 
Join Date: Dec 2010
Rookie Year: 2011
Location: Toledo Ohio
Posts: 76
279 EMPIE is just really nice279 EMPIE is just really nice279 EMPIE is just really nice279 EMPIE is just really nice
Send a message via AIM to 279 EMPIE
Re: Connecting two java programs with a Ethernet cord

Does SmartDashboard have a API??
__________________
2011- Programmer, Electrical, and Web
Cleveland Regional

2012- Head Programmer, Web, Driver
Pittsburg Regional, Saint Louis International

2013- Head Programmer
Cinnicinatti Regional, Taraho Regional
Reply With Quote
  #8   Spotlight this post!  
Unread 11-12-2012, 12:28
BigJ BigJ is online now
Registered User
AKA: Josh P.
FRC #1675 (Ultimate Protection Squad)
Team Role: Engineer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Milwaukee, WI
Posts: 947
BigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond repute
Re: Connecting two java programs with a Ethernet cord

Quote:
Originally Posted by 279 EMPIE View Post
Does SmartDashboard have a API??
http://www.wbrobotics.com/javadoc/ed...Dashboard.html
Reply With Quote
  #9   Spotlight this post!  
Unread 11-12-2012, 13:13
279 EMPIE's Avatar
279 EMPIE 279 EMPIE is offline
Head Progammer
AKA: Matthew Empie
FRC #0279 (Tech Fusion)
Team Role: Programmer
 
Join Date: Dec 2010
Rookie Year: 2011
Location: Toledo Ohio
Posts: 76
279 EMPIE is just really nice279 EMPIE is just really nice279 EMPIE is just really nice279 EMPIE is just really nice
Send a message via AIM to 279 EMPIE
Re: Connecting two java programs with a Ethernet cord

TY
__________________
2011- Programmer, Electrical, and Web
Cleveland Regional

2012- Head Programmer, Web, Driver
Pittsburg Regional, Saint Louis International

2013- Head Programmer
Cinnicinatti Regional, Taraho Regional
Reply With Quote
  #10   Spotlight this post!  
Unread 11-12-2012, 13:52
connor.worley's Avatar
connor.worley connor.worley is offline
Registered User
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Mar 2011
Rookie Year: 2010
Location: Berkeley/San Diego
Posts: 601
connor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond repute
Re: Connecting two java programs with a Ethernet cord

Note: SmartDasboard 2/NetworkTables 2 will be coming out for the 2013 season. Make sure to upgrade when it arrives!
__________________
Team 973 (2016-???)
Team 5499 (2015-2016)
Team 254 (2014-2015)

Team 1538 (2011-2014)
2014 Driver (25W 17L 1T)
日本語でOK
Reply With Quote
  #11   Spotlight this post!  
Unread 11-12-2012, 17:36
F22Rapture's Avatar
F22Rapture F22Rapture is offline
College Student, Mentor
AKA: Daniel A
FRC #3737 (4H Rotoraptors)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Goldsboro, NC
Posts: 476
F22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant future
Re: Connecting two java programs with a Ethernet cord

Quote:
Originally Posted by connor.worley View Post
Note: SmartDasboard 2/NetworkTables 2 will be coming out for the 2013 season. Make sure to upgrade when it arrives!
Actually, it's SmartDashboard 3

Has anybody managed to figure out how NT2 works, exactly? I'm sure it's much more efficient than NT1 but it also seems a whole lot more complicated. We don't have a robot to test on atm so I really couldn't mess with it much even if I wanted to.
__________________
Research is what I’m doing when I don’t know what I’m doing.
- Wernher von Braun
Attending: Raleigh NC Regional

Last edited by F22Rapture : 11-12-2012 at 17:40.
Reply With Quote
Reply


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


All times are GMT -5. The time now is 12:52.

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