View Single Post
  #9   Spotlight this post!  
Unread 02-02-2013, 15:22
mlepard mlepard is offline
Registered User
FRC #4825
 
Join Date: Jan 2013
Location: Ottawa, Ontario
Posts: 5
mlepard is an unknown quantity at this point
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
Reply With Quote