|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#1
|
|||
|
|||
|
Debug over wireless does not work for CRIO
We have been having the following issues with our robot communications. For one when we start to either load java code from Netbeans or try to debug java code from Netbeans, it complains that the computer is not on the same subnet as the robot. We have however set the subnet in windows to 255.255.255.0 and Netbeans reports that it is instead 255.255.255.254. However this issue only causes problems when we are trying to debug in Netbeans, in which case nothing works and the driver station reports that there is no code loaded on the robot. When we instead simply run the code from inside of Netbeans it presents the same warning, but works just fine and the driver station reports that there is code that is working on the robot. Even more interesting is that when we instead perform these same tasks but over wired communications instead of wireless, it does not tell us about subnet errors and both debug and standard execution operate just fine. Any ideas as to what is going on?
|
|
#2
|
|||
|
|||
|
Re: Debug over wireless does not work for CRIO
Open the network settings and look at the settings. Or if you are more comfortable with it, run ipconfig in a command line.
I suspect you will find that the wired and wireless NIC on your computer are configured differently. If needed, put some of the output on a response so that we can zero in on anything odd in the settings. Greg McKaskle |
|
#3
|
|||
|
|||
|
Re: Debug over wireless does not work for CRIO
Our network settings are set properly according to both ipconfig and Control Panel, but yet Netbeans still reports the netmask incorrectly. However we did try using Java 6 instead of Java 7 and now its reporting the netmask is 255.255.255.255 instead of the old erroneous value of 255.255.255.254 and also that this is the result of a known windows/java bug. Do you know where in the build/debug scripts it looks for the IP address and netmask? Also is there a fix to this windows/java bug?
|
|
#4
|
|||
|
|||
|
Re: Debug over wireless does not work for CRIO
We actually found that the subnet issues could be fixed by disabling the IPv6 connector on the wireless adapter, but we still can't debug because now the debugger is complaining that the connection was refused and then just hangs. Any ideas?
|
|
#5
|
|||||
|
|||||
|
Re: Debug over wireless does not work for CRIO
Have you disabled your firewall?
|
|
#6
|
|||
|
|||
|
Re: Debug over wireless does not work for CRIO
We made sure to disable our windows firewall, but are there any other firewall settings that have to be changed? Also we ran the same stuff on a mac and successfully connected to the robot. Maybe there is some other firewall setting I have looked over?
|
|
#7
|
|||||
|
|||||
|
Re: Debug over wireless does not work for CRIO
There are various other programs that have been known to interfere with communications.
- Disable all other network connections (don't just disconnect). Multiple NICs can confuse the software with too many choices. - Some anti-virus utilities block communications too, so disable any of those that may be running. - Some PC vendors add their own software firewalls and such, so disable any of those that might be running. |
|
#8
|
|||
|
|||
|
Re: Debug over wireless does not work for CRIO
If I'm not mistaken, the behavior you are seeing is a known issue, with an open artifact in FIRST Forge here. I for one am really hoping this is fixed this year since debuggers are amazingly helpful.
- Oliver |
|
#9
|
|||
|
|||
|
Re: Debug over wireless does not work for CRIO
This is an old thread, but I'm having the same problem in 2013.
The short version is: -Using Wired Ethernet cable, debugging works as expected. The correct netmask is detected by NetBeans. -Using Wireless, debugging does not work. NetBeans discovers the netmask as 255.255.255.254 (it should be .0). The debugger can attach, but robot code is not run. And no running threads are seen in the NetBeans -> Debugging window. The configuration: -Windows 7, Netbeans 7.2.1, JDK 1.7.0_11 -DHCP is running on the DLink WAP, with 255.255.255.0 being used as the netmask. Thus both wireless and wired connections in Windows are getting the same IP configuration. Verified with ipconfig. -When using wireless all other connections are disabled. "ipconfig /all" displays only one connection. -In the wireless connection properties, IPv6 has been unchecked. "ipconfig /all" displays no IPv6 connection information. -Windows firewall has been disabled. Here is the wireless log: ant -f C:\\AshburyFRC4825\\AshburySubsystemRobot deploy debug-run clean: Deleting directory C:\AshburyFRC4825\AshburySubsystemRobot\build Created dir: C:\AshburyFRC4825\AshburySubsystemRobot\build Created dir: C:\AshburyFRC4825\AshburySubsystemRobot\build\clas ses [crio-compile] ./src, C:/Users/mlepard/sunspotfrcsdk\lib\wpilibj.jar;C:/Users/mlepard/sunspotfrcsdk\lib\networktables-crio.jar, C:/Users/mlepard/sunspotfrcsdk\lib\squawk.jar -> ./build/classes Compiling 14 source files to C:\AshburyFRC4825\AshburySubsystemRobot\build\clas ses compile: preverify: Created dir: C:\AshburyFRC4825\AshburySubsystemRobot\build\prev erify Created dir: C:\AshburyFRC4825\AshburySubsystemRobot\build\prev erify.raw.util [crio-preverify] ./build/classes, , C:/Users/mlepard/sunspotfrcsdk\lib\wpilibj.jar;C:/Users/mlepard/sunspotfrcsdk\lib\networktables-crio.jar, C:/Users/mlepard/sunspotfrcsdk\lib\squawk.jar -> ./build/preverify Expanding: C:\Users\mlepard\sunspotfrcsdk\lib\wpilibj.jar into C:\AshburyFRC4825\AshburySubsystemRobot\build\prev erify Expanding: C:\Users\mlepard\sunspotfrcsdk\lib\networktables-crio.jar into C:\AshburyFRC4825\AshburySubsystemRobot\build\prev erify jar: [crio-jar] ./build/preverify, ./resources -> ./build/app.jar Building jar: C:\AshburyFRC4825\AshburySubsystemRobot\build\app. jar suite: Created dir: C:\AshburyFRC4825\AshburySubsystemRobot\build\suit e [crio-suite] ./build/app.jar -> ./build/suite/image 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 391 classes and generated 4 files. Expanding: C:\AshburyFRC4825\AshburySubsystemRobot\build\app. jar into C:\AshburyFRC4825\AshburySubsystemRobot\build\suit e Moving 1 file to C:\AshburyFRC4825\AshburySubsystemRobot\build\suit e Moving 1 file to C:\AshburyFRC4825\AshburySubsystemRobot\build\suit e Moving 1 file to C:\AshburyFRC4825\AshburySubsystemRobot\build\suit e Deleting: C:\AshburyFRC4825\AshburySubsystemRobot\image.suit e.api deploy: [crio-configure] Configuration files not included in this version of the sdk [crio-configure] Checking that crio is configured for Java Host OS: Windows 7 6.1, 6.1 Host JVM: Java HotSpot(TM) 64-Bit Server VM 23.6-b04 Target IP: 10.48.25.2 Network interfaces on host: DW1520 Wireless-N WLAN Half-Mini Card: address: 10.48.25.10 netmask: 255.255.255.254 WARNING: Host is not on same subnet as robot. May not be able to complete all communication with robot. Connecting FTP @10.48.25.2 [crio-deploy] ./build/suite/image.suite -> 10.48.25.2 Sending local file image.suite debug-run: 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) Waiting for cRIO to reboot (8s) [cRIO] * Loading debug.o: debug [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: cRIO-FRC II Connect debugger attempt 1 [cRIO] Runtime Name: VxWorks Start debug proxy Connecting NetBeans debugger [cRIO] Runtime Version: 6.3 [cRIO] BSP version: 1.0/0 [cRIO] Created: Jun 14 2012, 08:43:39 [cRIO] ED&R Policy Mode: Deployed [cRIO] WDB Comm Type: WDB_COMM_END [cRIO] WDB: Ready. [cRIO] [cRIO] * Loading nisysrpc.out: nisysrpc [crio-debug] Connecting to debug on 10.48.25.2:2800 Classpath: C:/Users/mlepard/sunspotfrcsdk/bin/debuggerproxylauncher.jar;C:/Users/mlepard/sunspotfrcsdk/bin/romizer_classes.jar;C:/Users/mlepard/sunspotfrcsdk/bin/hosted-support_classes.jar;C:/Users/mlepard/sunspotfrcsdk/bin/debugger-proxy_classes.jar;C:/Users/mlepard/sunspotfrcsdk/bin/translator_classes.jar;C:/Users/mlepard/sunspotfrcsdk/bin/spotclient_host.jar;C:/Users/mlepard/sunspotfrcsdk/bin/signing_host.jar;C:/Users/mlepard/sunspotfrcsdk/bin/squawk_device_classes.jar;C:/Users/mlepard/sunspotfrcsdk/lib/multihop_common.jar;C:/Users/mlepard/sunspotfrcsdk/lib/spotlib_host.jar;C:/Users/mlepard/sunspotfrcsdk/lib/spotlib_common.jar;C:/Users/mlepard/sunspotfrcsdk/lib/squawk_common.jar;C:/Users/mlepard/sunspotfrcsdk/lib/RXTXcomm.jar;C:/Users/mlepard/sunspotfrcsdk/lib/spotclient_host.jar;C:/Users/mlepard/sunspotfrcsdk/lib/signing_host.jar; CompilerOracle: exclude com/sun/squawk/Method.getParameterTypes CompilerOracle: exclude com/sun/squawk/SymbolParser.getSignatureTypeAt CompilerOracle: exclude com/sun/squawk/SymbolParser.stripMethods Trying to connect to VM on socket://10.48.25.2:2800 [cRIO] * Loading NiRioRpc.out: NiRioRpc [cRIO] * Loading nivissvc.out: nivissvc Failed to establish connection with VM: Connection refused: connect - trying again in 5 seconds... [cRIO] NI-RIO Server 12.0.0b10 started successfully. [cRIO] task 0xe1d670 (NiRioRpc) deleted: errno=0 (0) status=0 (0) Connect debugger attempt 2 Connecting NetBeans debugger [cRIO] * Loading NiFpgaLv.out: NiFpgaLv [cRIO] * Loading FRC_FPGA.out: FRC_FPGA [cRIO] * Loading FRC_NetworkCommunication.out: FRC_NetworkCommunication [cRIO] FRC_NetworkCommunication version: p4-1.4.0a10 Connect debugger attempt 3 Connecting NetBeans debugger Trying to connect to VM on socket://10.48.25.2:2800 Attached JPDA debugger to localhost:2900 Failed to establish connection with VM: Connection refused: connect - trying again in 5 seconds... [cRIO] FPGA Hardware GUID: 0x1394F6DC1FEB42EC6910E5767ED1D22C [cRIO] FPGA Software GUID: 0x1394F6DC1FEB42EC6910E5767ED1D22C [cRIO] FPGA Hardware Version: 2012 [cRIO] FPGA Software Version: 2012 [cRIO] FPGA Hardware Revision: 1.6.4 [cRIO] FPGA Software Revision: 1.6.4 [cRIO] * Loading FRC_JavaVM.out: FRC_JavaVM [cRIO] [cRIO] [cRIO] [OTA Server] Version: 2012 FRC, Jan 5 2012, 17:20:48 [cRIO] Trying to connect to VM on socket://10.48.25.2:2800 Failed to establish connection with VM: Connection refused: connect - trying again in 5 seconds... [cRIO] Listening for connection from proxy on serversocket://:2800 Trying to connect to VM on socket://10.48.25.2:2800 Established connection to VM (handshake took 16ms) [cRIO] FPGA Hardware GUID: 0x1394f6dc1feb42ec6910e5767ed1d22c [cRIO] FPGA Software GUID: 0xa14c11bde4bb64aef6a86fc52a294cd9 Waiting for connection from debugger on serversocket://:2900 Synchronizing debug state with VM... Established connection to Debugger (handshake took 3636ms) Here is the wired log: ant -f C:\\AshburyFRC4825\\AshburySubsystemRobot deploy debug-run clean: Deleting directory C:\AshburyFRC4825\AshburySubsystemRobot\build Created dir: C:\AshburyFRC4825\AshburySubsystemRobot\build Created dir: C:\AshburyFRC4825\AshburySubsystemRobot\build\clas ses [crio-compile] ./src, C:/Users/mlepard/sunspotfrcsdk\lib\wpilibj.jar;C:/Users/mlepard/sunspotfrcsdk\lib\networktables-crio.jar, C:/Users/mlepard/sunspotfrcsdk\lib\squawk.jar -> ./build/classes Compiling 14 source files to C:\AshburyFRC4825\AshburySubsystemRobot\build\clas ses compile: preverify: Created dir: C:\AshburyFRC4825\AshburySubsystemRobot\build\prev erify Created dir: C:\AshburyFRC4825\AshburySubsystemRobot\build\prev erify.raw.util [crio-preverify] ./build/classes, , C:/Users/mlepard/sunspotfrcsdk\lib\wpilibj.jar;C:/Users/mlepard/sunspotfrcsdk\lib\networktables-crio.jar, C:/Users/mlepard/sunspotfrcsdk\lib\squawk.jar -> ./build/preverify Expanding: C:\Users\mlepard\sunspotfrcsdk\lib\wpilibj.jar into C:\AshburyFRC4825\AshburySubsystemRobot\build\prev erify Expanding: C:\Users\mlepard\sunspotfrcsdk\lib\networktables-crio.jar into C:\AshburyFRC4825\AshburySubsystemRobot\build\prev erify jar: [crio-jar] ./build/preverify, ./resources -> ./build/app.jar Building jar: C:\AshburyFRC4825\AshburySubsystemRobot\build\app. jar suite: Created dir: C:\AshburyFRC4825\AshburySubsystemRobot\build\suit e [crio-suite] ./build/app.jar -> ./build/suite/image 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 391 classes and generated 4 files. Expanding: C:\AshburyFRC4825\AshburySubsystemRobot\build\app. jar into C:\AshburyFRC4825\AshburySubsystemRobot\build\suit e Moving 1 file to C:\AshburyFRC4825\AshburySubsystemRobot\build\suit e Moving 1 file to C:\AshburyFRC4825\AshburySubsystemRobot\build\suit e Moving 1 file to C:\AshburyFRC4825\AshburySubsystemRobot\build\suit e Deleting: C:\AshburyFRC4825\AshburySubsystemRobot\image.suit e.api deploy: [crio-configure] Configuration files not included in this version of the sdk [crio-configure] Checking that crio is configured for Java Host OS: Windows 7 6.1, 6.1 Host JVM: Java HotSpot(TM) 64-Bit Server VM 23.6-b04 Target IP: 10.48.25.2 Network interfaces on host: Intel(R) 82577LM Gigabit Network Connection: address: 10.48.25.11 netmask: 255.255.255.0 <--- on robot's subnet Connecting FTP @10.48.25.2 [crio-deploy] ./build/suite/image.suite -> 10.48.25.2 Sending local file image.suite debug-run: [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] Connect debugger attempt 1 Connecting NetBeans debugger Start debug proxy [crio-debug] Connecting to debug on 10.48.25.2:2800 Classpath: C:/Users/mlepard/sunspotfrcsdk/bin/debuggerproxylauncher.jar;C:/Users/mlepard/sunspotfrcsdk/bin/romizer_classes.jar;C:/Users/mlepard/sunspotfrcsdk/bin/hosted-support_classes.jar;C:/Users/mlepard/sunspotfrcsdk/bin/debugger-proxy_classes.jar;C:/Users/mlepard/sunspotfrcsdk/bin/translator_classes.jar;C:/Users/mlepard/sunspotfrcsdk/bin/spotclient_host.jar;C:/Users/mlepard/sunspotfrcsdk/bin/signing_host.jar;C:/Users/mlepard/sunspotfrcsdk/bin/squawk_device_classes.jar;C:/Users/mlepard/sunspotfrcsdk/lib/multihop_common.jar;C:/Users/mlepard/sunspotfrcsdk/lib/spotlib_host.jar;C:/Users/mlepard/sunspotfrcsdk/lib/spotlib_common.jar;C:/Users/mlepard/sunspotfrcsdk/lib/squawk_common.jar;C:/Users/mlepard/sunspotfrcsdk/lib/RXTXcomm.jar;C:/Users/mlepard/sunspotfrcsdk/lib/spotclient_host.jar;C:/Users/mlepard/sunspotfrcsdk/lib/signing_host.jar; CompilerOracle: exclude com/sun/squawk/Method.getParameterTypes CompilerOracle: exclude com/sun/squawk/SymbolParser.getSignatureTypeAt CompilerOracle: exclude com/sun/squawk/SymbolParser.stripMethods Trying to connect to VM on socket://10.48.25.2:2800 [cRIO] -> * Loading debug.o: debug [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: cRIO-FRC II [cRIO] Runtime Name: VxWorks [cRIO] Runtime Version: 6.3 [cRIO] BSP version: 1.0/0 [cRIO] Created: Jun 14 2012, 08:43:39 [cRIO] ED&R Policy Mode: Deployed [cRIO] WDB Comm Type: WDB_COMM_END [cRIO] WDB: Ready. [cRIO] [cRIO] * Loading nisysrpc.out: nisysrpc Failed to establish connection with VM: Connection refused: connect - trying again in 5 seconds... [cRIO] * Loading NiRioRpc.out: NiRioRpc [cRIO] * Loading nivissvc.out: nivissvc [cRIO] * Loading nivision.out: nivision [cRIO] NI-RIO Server 12.0.0b10 started successfully. [cRIO] task 0xe1d3a0 (NiRioRpc) deleted: errno=0 (0) status=0 (0) Connect debugger attempt 2 Connecting NetBeans debugger [cRIO] * Loading visa32.out: visa32 [cRIO] * Loading niserial.out: niserial [cRIO] * Loading NiFpgaLv.out: NiFpgaLv [cRIO] * Loading FRC_FPGA.out: FRC_FPGA [cRIO] * Loading FRC_NetworkCommunication.out: FRC_NetworkCommunication [cRIO] FRC_NetworkCommunication version: p4-1.4.0a10 Connect debugger attempt 3 Connecting NetBeans debugger Trying to connect to VM on socket://10.48.25.2:2800 Failed to establish connection with VM: Connection refused: connect - trying again in 5 seconds... Connect debugger attempt 4 Connecting NetBeans debugger Attached JPDA debugger to localhost:2900 [cRIO] FPGA Hardware GUID: 0x1394F6DC1FEB42EC6910E5767ED1D22C [cRIO] FPGA Software GUID: 0x1394F6DC1FEB42EC6910E5767ED1D22C [cRIO] FPGA Hardware Version: 2012 [cRIO] FPGA Software Version: 2012 [cRIO] FPGA Hardware Revision: 1.6.4 [cRIO] FPGA Software Revision: 1.6.4 [cRIO] * Loading FRC_JavaVM.out: FRC_JavaVM [cRIO] [cRIO] [cRIO] [OTA Server] Version: 2012 FRC, Jan 5 2012, 17:20:48 [cRIO] [cRIO] [cRIO] Welcome to LabVIEW Real-Time 12.0rc7 [cRIO] task 0xd223a8 (sysapi-rpc) deleted: errno=0 (0) status=0 (0) Trying to connect to VM on socket://10.48.25.2:2800 [cRIO] [cRIO] [Squawk VM] Version: 2011 FRC, Nov 5 2011, 14:34:13 [cRIO] [Squawk VM] File SQUAWK_DEBUG_ENABLED found, starting squawk in debug mode... Failed to establish connection with VM: Connection refused: connect - trying again in 5 seconds... [cRIO] Listening for connection from proxy on serversocket://:2800 Trying to connect to VM on socket://10.48.25.2:2800 Established connection to VM (handshake took 13ms) [cRIO] FPGA Hardware GUID: 0x1394f6dc1feb42ec6910e5767ed1d22c [cRIO] FPGA Software GUID: 0xa14c11bde4bb64aef6a86fc52a294cd9 Waiting for connection from debugger on serversocket://:2900 Synchronizing debug state with VM... Established connection to Debugger (handshake took 8101ms) ### Excluding compile: com.sun.squawk.SymbolParser::getSignatureTypeAt [cRIO] edu.wpi.first.wpilibj.networktables2.server.Server ConnectionAdapter@f entered connection state: GOT_CONNECTION_FROM_CLIENT [cRIO] edu.wpi.first.wpilibj.networktables2.server.Server ConnectionAdapter@f entered connection state: CONNECTED_TO_CLIENT [cRIO] init robot [cRIO] Default IterativeRobot.disabledInit() method... Overload me! [cRIO] Default IterativeRobot.disabledPeriodic() method... Overload me! Thanks, Mike |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|