View Single Post
  #2   Spotlight this post!  
Unread 10-01-2017, 17:57
Thad House Thad House is offline
Volunteer, WPILib Contributor
no team (Waiting for 2021)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Thousand Oaks, California
Posts: 1,107
Thad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond repute
Re: Serial Port Not Finding Pixy Camera

Quote:
Originally Posted by DevOrc View Post
We are trying to use the Pixy camera for vision targeting. We have it hooked up to the USB Port on the RoboRio. However we keep on getting the same error when we create the Serial Port object.
Code:
 java.lang.RuntimeException:  Code: -1123. HAL: The specified serial port device was not found 
 	at edu.wpi.first.wpilibj.hal.SerialPortJNI.serialInitializePort(Native Method) 
 	at edu.wpi.first.wpilibj.SerialPort.<init>(SerialPort.java:112) 
 	at edu.wpi.first.wpilibj.SerialPort.<init>(SerialPort.java:160) 
 	at org.usfirst.frc.team4283.robot.vision.RobotCamera.initTeleop(RobotCamera.java:21) 
 	at org.usfirst.frc.team4283.robot.Robot.teleopInit(Robot.java:68) 
 	at edu.wpi.first.wpilibj.IterativeRobot.startCompetition(IterativeRobot.java:123) 
 	at edu.wpi.first.wpilibj.RobotBase.main(RobotBase.java:247)
If you log into the web dash on the roboRIO, http://wpilib.screenstepslive.com/s/...o-webdashboard, you should see 3 serial port objects. What shows up for the last one? ASRL1 and ASRL2 are the built in serial ports.
__________________
All statements made are my own and not the feelings of any of my affiliated teams.
Teams 1510 and 2898 - Student 2010-2012
Team 4488 - Mentor 2013-2016
Co-developer of RobotDotNet, a .NET port of the WPILib.
Reply With Quote