Go to Post When Andy Baker holds an iPhone 4 in his left hand, the signal [i]increases[/i]. - Billfred [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 Rating: Thread Rating: 23 votes, 4.96 average. Display Modes
  #1   Spotlight this post!  
Unread 18-01-2011, 20:38
Davis.Paul Davis.Paul is offline
Programming Mentor
FRC #0948 (Newport Robotics Group (NRG))
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Bellevue, WA
Posts: 1
Davis.Paul is an unknown quantity at this point
Re: NetBeans robot communication/subnet problems

Our whole programming team (5 different laptops) are all getting the 255.255.255.255 subnet mask warning even though it is definitely set to 255.0.0.0. I believe all laptops are updated with the latest Netbeans and FRC software, and the cRIO has the 2011 image. We can download code to the cRIO alright from all laptops, but only one laptop so far has been able to see debug output from System.out.println -- the others keep waiting for the cRIO to reboot even though the cRIO reboot has completed and our code is running. Is this warning just something bogus we should just ignore? Any ideas why most of our laptops can't see debug output?
Reply With Quote
  #2   Spotlight this post!  
Unread 19-01-2011, 08:22
derekwhite's Avatar
derekwhite derekwhite is offline
Java Virtual Machine Hacker
no team (FIRST@Oracle)
Team Role: Programmer
 
Join Date: May 2009
Rookie Year: 2009
Location: Burlington, MA
Posts: 127
derekwhite is on a distinguished road
Re: NetBeans robot communication/subnet problems

There is something wrong with the warning code. What OS are you using?

Also, if you could post your IP configuration that would be helpful (ipconfig command on windows, ifconfig on mac/linux).


Thanks
Reply With Quote
  #3   Spotlight this post!  
Unread 28-01-2011, 09:45
derekwhite's Avatar
derekwhite derekwhite is offline
Java Virtual Machine Hacker
no team (FIRST@Oracle)
Team Role: Programmer
 
Join Date: May 2009
Rookie Year: 2009
Location: Burlington, MA
Posts: 127
derekwhite is on a distinguished road
Lightbulb Re: NetBeans robot communication/subnet problems

The "WARNING" issue:

It turns out that there's a bug in Java 6 on Windows.

When a network interface supports both IPv6 and IPv4, the Java APIs return the IPv6 network prefix length (128) instead of the correct IPv4 subnet mask. And 128 maps to 255.255.255.255.

We'll update the warning code to punt on this case for now.
Reply With Quote
  #4   Spotlight this post!  
Unread 12-02-2011, 10:54
blackwood blackwood is offline
Registered User
FRC #2359 (RoboLobos)
Team Role: Teacher
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Edmond, OK
Posts: 40
blackwood is a splendid one to beholdblackwood is a splendid one to beholdblackwood is a splendid one to beholdblackwood is a splendid one to beholdblackwood is a splendid one to beholdblackwood is a splendid one to beholdblackwood is a splendid one to behold
Re: NetBeans robot communication/subnet problems

We also are having the subnet mismatch error. What I am not seeing in this thread is a solution. Any ideas?
Reply With Quote
  #5   Spotlight this post!  
Unread 12-02-2011, 11:51
Ben_R_R's Avatar
Ben_R_R Ben_R_R is offline
Assistant Programing Mentor
FRC #2194 (Fondy Fire)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: WI
Posts: 21
Ben_R_R is an unknown quantity at this point
Re: NetBeans robot communication/subnet problems

Can you open a command line terminal, run "ipconfig" and post the output?

That would help us narrow down the source of the problem.
__________________
2194 Alumni and Mentor
Reply With Quote
  #6   Spotlight this post!  
Unread 12-02-2011, 13:23
derekwhite's Avatar
derekwhite derekwhite is offline
Java Virtual Machine Hacker
no team (FIRST@Oracle)
Team Role: Programmer
 
Join Date: May 2009
Rookie Year: 2009
Location: Burlington, MA
Posts: 127
derekwhite is on a distinguished road
Re: NetBeans robot communication/subnet problems

Blackwood,

Are you just getting the subnet mask warning, and NetBeans claims that your subnet is "255.255.255.255"? If so, that is a bogus warning and can be ignored (as mentioned in post #10).

BTW, that warning has been fixed in the latest release.

If you're getting a different error, please post the text.

Good luck!
Reply With Quote
  #7   Spotlight this post!  
Unread 12-02-2011, 14:28
blackwood blackwood is offline
Registered User
FRC #2359 (RoboLobos)
Team Role: Teacher
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Edmond, OK
Posts: 40
blackwood is a splendid one to beholdblackwood is a splendid one to beholdblackwood is a splendid one to beholdblackwood is a splendid one to beholdblackwood is a splendid one to beholdblackwood is a splendid one to beholdblackwood is a splendid one to behold
Re: NetBeans robot communication/subnet problems

Here is what we are getting. The last line says: Overload me
and it seems to hang at that time.

BTW... I'm just the team coach, I am totally clueless on this, I'm just trying to get some answers for the programmers.

Thanks in advance!
-----

init:
init:
Deleting directory C:\Users\Kaleb\Documents\NetBeansProjects\DefaultC odeBeta\build
Deleting directory C:\Users\Kaleb\Documents\NetBeansProjects\DefaultC odeBeta\suite
Deleting directory C:\Users\Kaleb\Documents\NetBeansProjects\DefaultC odeBeta\j2meclasses
clean:
Created dir: C:\Users\Kaleb\Documents\NetBeansProjects\DefaultC odeBeta\build
Compiling 1 source file to C:\Users\Kaleb\Documents\NetBeansProjects\DefaultC odeBeta\build
Note: C:\Users\Kaleb\Documents\NetBeansProjects\DefaultC odeBeta\src\edu\wpi\first\wpilibj\defaultCode\Defa ultRobot.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
compile:
Created dir: C:\Users\Kaleb\Documents\NetBeansProjects\DefaultC odeBeta\j2meclasses
preverify:
Created dir: C:\Users\Kaleb\Documents\NetBeansProjects\DefaultC odeBeta\suite
Building jar: C:\Users\Kaleb\Documents\NetBeansProjects\DefaultC odeBeta\suite\BuiltInDefaultCode_1.0.0.jar
jar-app:
CompilerOracle: exclude com/sun/squawk/Method.getParameterTypes
CompilerOracle: exclude com/sun/squawk/SymbolParser.getSignatureTypeAt
CompilerOracle: exclude com/sun/squawk/SymbolParser.stripMethods
[translating suite image [closed: false, parent: squawk] ...]
### Excluding compile: com.sun.squawk.Method::getParameterTypes
### Excluding compile: com.sun.squawk.SymbolParser::getSignatureTypeAt
[Including resource: META-INF/MANIFEST.MF]
Romizer processed 100 classes and generated 4 files.
Expanding: C:\Users\Kaleb\Documents\NetBeansProjects\DefaultC odeBeta\suite\BuiltInDefaultCode_1.0.0.jar into C:\Users\Kaleb\Documents\NetBeansProjects\DefaultC odeBeta\suite
Moving 1 file to C:\Users\Kaleb\Documents\NetBeansProjects\DefaultC odeBeta\suite
Moving 1 file to C:\Users\Kaleb\Documents\NetBeansProjects\DefaultC odeBeta\suite
Moving 1 file to C:\Users\Kaleb\Documents\NetBeansProjects\DefaultC odeBeta\suite
Deleting: C:\Users\Kaleb\Documents\NetBeansProjects\DefaultC odeBeta\image.suite.api
Host OS: Windows 7 6.1, 6.1
Host JVM: Java HotSpot(TM) 64-Bit Server VM 19.0-b09
Target IP: 10.23.59.2
Network interfaces on host:
Realtek PCIe GBE Family Controller: address: 10.23.59.6 netmask: 255.255.255.255
WARNING: Host is not on same subnet as robot. May not be able to complete all communication with robot.
Connecting FTP @10.23.59.2
upgrade:
Sending local file image.suite
flashapp:
deploy:
init:
[cRIO] [OTA Server] ********* REBOOTING cRIO *********
[cRIO]
Waiting for cRIO to reboot (1s)
Waiting for cRIO to reboot (2s)
Waiting for cRIO to reboot (3s)
Waiting for cRIO to reboot (4s)
Waiting for cRIO to reboot (5s)
Waiting for cRIO to reboot (6s)
Waiting for cRIO to reboot (7s)
[cRIO]
[cRIO] -> * Loading StartupDlls: debug
[cRIO] Entering debug.o StartupLibraryInit
[cRIO] Debugging is up, target server mounted at /tsfs
[cRIO]
[cRIO]
[cRIO] VxWorks
[cRIO]
[cRIO] Copyright 1984-2006 Wind River Systems, Inc.
[cRIO]
[cRIO] CPU: MPC5200 -- Wind River Lite5200 BSP.
[cRIO] Runtime Name: VxWorks
[cRIO] Runtime Version: 6.3
[cRIO] BSP version: 2.0/10
[cRIO] Created: Jul 29 2009, 13:41:47
[cRIO] ED&R Policy Mode: Deployed
[cRIO] WDB Comm Type: WDB_COMM_END
[cRIO] WDB: Ready.
[cRIO]
[cRIO] Leaving debug.o StartupLibraryInit
[cRIO] * Loading StartupDlls: NiRioRpc
[cRIO] * Loading StartupDlls: niorbs
[cRIO] * Loading StartupDlls: NiViSrvr
[cRIO] * Loading StartupDlls: visa32
[cRIO] * Loading StartupDlls: nivissvc
[cRIO] task 0xee4e68 (PAL00fb6370) deleted: errno=0 (0) status=0 (0)
[cRIO] NI-RIO Server 3.2 started successfully.
[cRIO] task 0xc60380 (NiRioRpc) deleted: errno=0 (0) status=0 (0)
[cRIO] * Loading StartupDlls: nivision
[cRIO] * Loading StartupDlls: niserial
[cRIO] * Loading StartupDlls: FRC_FPGA
[cRIO] * Loading StartupDlls: FRC_NetworkCommunication
[cRIO] task 0x1b0d760 (t2) deleted: errno=0 (0) status=0 (0)
[cRIO] FRC_NetworkCommunication was compiled from SVN revision 2258
[cRIO]
[cRIO] NI-VISA Server 4.5 started successfully.
[cRIO] task 0xe63438 (t1) deleted: errno=1835009 (0x1c0001) status=1 (0x1)
[cRIO] FPGA Hardware GUID: 0x2EAA5E59CAF1A8A966853A011B61CC91
[cRIO] FPGA Software GUID: 0x2EAA5E59CAF1A8A966853A011B61CC91
[cRIO] FPGA Hardware Version: 2011
[cRIO] FPGA Software Version: 2011
[cRIO] FPGA Hardware Revision: 1.5.3
[cRIO] FPGA Software Revision: 1.5.3
[cRIO] * Loading StartupDlls: FRC_JavaVM
[cRIO]
[cRIO]
[cRIO] [OTA Server] Version: 2011 FRC, Jan 6 2011, 09:47:42
[cRIO]
[cRIO]
[cRIO] Welcome to LabVIEW Real-Time 8.6.1f3
[cRIO]
[cRIO] [Squawk VM] Version: 2011 FRC, Feb 2 2011, 13:26:47
[cRIO] FPGA Hardware GUID: 0x2eaa5e59caf1a8a966853a011b61cc91
[cRIO] FPGA Software GUID: 0x2eaa5e59caf1a8a966853a011b61cc91
[cRIO] BuiltinDefaultCode Constructor Started
[cRIO]
[cRIO] BuiltinDefaultCode Constructor Completed
[cRIO]
[cRIO] RobotInit() completed.
[cRIO]
[cRIO] Default IterativeRobot.disabledContinuous() method... Overload me!
Reply With Quote
  #8   Spotlight this post!  
Unread 12-02-2011, 21:37
Jose.Pena2737 Jose.Pena2737 is offline
Registered User
FRC #2737
 
Join Date: Feb 2011
Location: YES Prep SE
Posts: 2
Jose.Pena2737 is an unknown quantity at this point
Re: NetBeans robot communication/subnet problems

I'm having the same problem.

What happens after it gives me the subnet error, It says it's trying to connect to "FTP@ 10.0.0.2" even though our cRIO's IP address is 10.27.37.2.

If I change the cRio's IP to 10.0.0.2, it leaves me hanging on "Overload Me".

I've gone through various updates(I was having this problem two weeks ago, back then, the cRIO image was v25, now it's v27) and nothing has worked.

I would appreciate some help.
Reply With Quote
  #9   Spotlight this post!  
Unread 13-02-2011, 01:46
lusterlink's Avatar
lusterlink lusterlink is offline
Registered User
FRC #1160 (FireBird Robotics)
Team Role: Programmer
 
Join Date: Aug 2010
Rookie Year: 2009
Location: USA
Posts: 9
lusterlink is an unknown quantity at this point
Re: NetBeans robot communication/subnet problems

Quote:
Originally Posted by Jose.Pena2737 View Post
I'm having the same problem.

What happens after it gives me the subnet error, It says it's trying to connect to "FTP@ 10.0.0.2" even though our cRIO's IP address is 10.27.37.2.

If I change the cRio's IP to 10.0.0.2, it leaves me hanging on "Overload Me".

I've gone through various updates(I was having this problem two weeks ago, back then, the cRIO image was v25, now it's v27) and nothing has worked.

I would appreciate some help.
I believe this means you haven't set your team number in the preferences of Netbeans. It should be under Tools -> Options -> Miscellaneous ->FRC Configuration. Keep the cRIO's ip at 10.27.37.2.

Quote:
[cRIO] RobotInit() completed.
[cRIO]
[cRIO] Default IterativeRobot.disabledContinuous() method... Overload me!
Are you enabling the robot and getting the same output in Netconsole? Otherwise, I think enabling the robot will fix your problem.
__________________
Reply With Quote
  #10   Spotlight this post!  
Unread 24-01-2012, 18:28
Billy_499 Billy_499 is offline
Registered User
FRC #0499
 
Join Date: Jan 2012
Location: San Antonio
Posts: 2
Billy_499 is an unknown quantity at this point
Re: NetBeans robot communication/subnet problems

I am the programmer of team 499. I have been using lab view since my freshman year but this year our teacher said That we will be programming in java this year. Mine hangs at "overload me!" as well and I literally have no clue on how to proceed. Please help with detailed and simple instructions.

Sincerely,

Billy team 499
Reply With Quote
  #11   Spotlight this post!  
Unread 25-01-2012, 00:23
nickpeq nickpeq is offline
Turing-complete
FRC #1255 (Blarglefish)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Baytown, TX
Posts: 60
nickpeq is an unknown quantity at this point
Re: NetBeans robot communication/subnet problems

Quote:
Originally Posted by Billy_499 View Post
I am the programmer of team 499. I have been using lab view since my freshman year but this year our teacher said That we will be programming in java this year. Mine hangs at "overload me!" as well and I literally have no clue on how to proceed. Please help with detailed and simple instructions.

Sincerely,

Billy team 499
That's probably not hanging. Most methods for robot templates will print out 'overload me' until you overload them. But you usually don't need to overload very many methods. (often just one autonomous and one teleop method) As mentioned below, just stick your drive code into a method like teleopPeriodic (there are probably better ones) and Enable the robot in the right mode.
Definitely take a look at Java samples included with the java plugins.
Reply With Quote
  #12   Spotlight this post!  
Unread 26-01-2012, 10:59
Derek012's Avatar
Derek012 Derek012 is offline
I miss my frisbees
FRC #4564 (Orange Chaos)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Maine
Posts: 25
Derek012 is on a distinguished road
Re: NetBeans robot communication/subnet problems

What you guys need to do is go into your netbeans options and go to Misc. then from there you will see a tab named FRC config in that tab you need to set your team number to be whatever it is and then it will deploy code to 10.xx.yy.2 instead of 10.0.0.2, also even though the cRio tells you to overload the method the robot should still be able to run.
Reply With Quote
  #13   Spotlight this post!  
Unread 26-01-2012, 17:20
Billy_499 Billy_499 is offline
Registered User
FRC #0499
 
Join Date: Jan 2012
Location: San Antonio
Posts: 2
Billy_499 is an unknown quantity at this point
Re: NetBeans robot communication/subnet problems

How would I overload it?
Reply With Quote
  #14   Spotlight this post!  
Unread 15-02-2011, 21:53
Jose.Pena2737 Jose.Pena2737 is offline
Registered User
FRC #2737
 
Join Date: Feb 2011
Location: YES Prep SE
Posts: 2
Jose.Pena2737 is an unknown quantity at this point
Re: NetBeans robot communication/subnet problems

Thank you! we have a connection.
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 10:31.

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