Go to Post Hopefully LMFAO will cross paths with FRC71. They've been shufflin' since 2002. - Taylor [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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 21-01-2012, 20:32
cabbagekid2 cabbagekid2 is offline
Registered User
#0368 (Kika Mana)
 
Join Date: Jun 2001
Rookie Year: 2000
Location: Honolulu, HI
Posts: 85
cabbagekid2 has a spectacular aura aboutcabbagekid2 has a spectacular aura aboutcabbagekid2 has a spectacular aura about
Arrow Serial port on CRIO-FRC II

We are having trouble opening the RS232 serial port on the new CRIO-FRC II. Using the exact same code, we were able to successfully open the port and use read/writes on the older 8-slot CRIO-FRC version 1. However, with the new 2012 4-slot version we are seeing an error upon initialization:

Using port: ASRL1::INSTR
error code: -1073807246

We have tried the NI serial port VISA module as well as the WPI version, with similar failures. Has anyone else encountered this problem?

Thank you
Reply With Quote
  #2   Spotlight this post!  
Unread 21-01-2012, 20:38
plnyyanks's Avatar
plnyyanks plnyyanks is offline
Data wins arguments.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #2900 (The Mighty Penguins)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC/Washington, DC
Posts: 1,114
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: Serial port on CRIO-FRC II

Not really sure what the answer is, but I looked up the error code (you can do that in Help->Explain Error) and got:

Code:
Error -1073807246 occurred at an unidentified location

Possible reason(s):

VISA:  (Hex 0xBFFF0072) The resource is valid, but VISA cannot currently access it.
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android
Reply With Quote
  #3   Spotlight this post!  
Unread 21-01-2012, 20:40
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Serial port on CRIO-FRC II

Judging by the error text in the post above, I would guess you need to turn Console Out off with the imaging tool.
Reply With Quote
  #4   Spotlight this post!  
Unread 21-01-2012, 20:41
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Serial port on CRIO-FRC II

Do you have your cRIO imaged properly? Have you started a new project for this year?
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364
Reply With Quote
  #5   Spotlight this post!  
Unread 22-01-2012, 21:23
cabbagekid2 cabbagekid2 is offline
Registered User
#0368 (Kika Mana)
 
Join Date: Jun 2001
Rookie Year: 2000
Location: Honolulu, HI
Posts: 85
cabbagekid2 has a spectacular aura aboutcabbagekid2 has a spectacular aura aboutcabbagekid2 has a spectacular aura about
Re: Serial port on CRIO-FRC II

THanks RufflesRidge! You were right. We used the imaging tool to change the console setting and it worked.
Reply With Quote
  #6   Spotlight this post!  
Unread 24-01-2012, 16:45
Tommy.Brown's Avatar
Tommy.Brown Tommy.Brown is offline
Lead Programmer
FRC #1477 (Texas Torque)
Team Role: Programmer
 
Join Date: Jul 2011
Rookie Year: 2011
Location: The Woodlands
Posts: 27
Tommy.Brown is an unknown quantity at this point
Re: Serial port on CRIO-FRC II

Question: for connecting a computer to the serial port on the cRIO, does it require a basic serial cord, or a null modem cord?
__________________
FRC Team 1477 - Texas Torque
The Woodlands, Texas
Reply With Quote
  #7   Spotlight this post!  
Unread 24-01-2012, 18:01
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,580
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Serial port on CRIO-FRC II

Quote:
Originally Posted by Tommy.Brown View Post
Question: for connecting a computer to the serial port on the cRIO, does it require a basic serial cord, or a null modem cord?
Null Modem. However, I haven't connected to the cRIO serial port recently, because netconsole makes me lazy.
Reply With Quote
  #8   Spotlight this post!  
Unread 24-01-2012, 18:48
Tommy.Brown's Avatar
Tommy.Brown Tommy.Brown is offline
Lead Programmer
FRC #1477 (Texas Torque)
Team Role: Programmer
 
Join Date: Jul 2011
Rookie Year: 2011
Location: The Woodlands
Posts: 27
Tommy.Brown is an unknown quantity at this point
Re: Serial port on CRIO-FRC II

Ok, thank you, we picked up a null modem cable adapter at our local Radio Shack. Does anyone know how to read in values from the serial port on the cRIO? We are using HyperTerminal to emulate a device that will send data to the cRIO via serial port. We know that the HyperTerminal is sending the data, and we know that the data is successfully being transferred down the cable. We are using C++ and we have yet to figure out the logic to reading the values from the buffer with the Read method.
__________________
FRC Team 1477 - Texas Torque
The Woodlands, Texas
Reply With Quote
  #9   Spotlight this post!  
Unread 24-01-2012, 23:30
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,835
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Serial port on CRIO-FRC II

The console setting for serial out is:

9600
- BAUD
8 - Data Bits
None - Parity
1 - Stop Bit
None - Flow Control


__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #10   Spotlight this post!  
Unread 25-01-2012, 23:31
Tommy.Brown's Avatar
Tommy.Brown Tommy.Brown is offline
Lead Programmer
FRC #1477 (Texas Torque)
Team Role: Programmer
 
Join Date: Jul 2011
Rookie Year: 2011
Location: The Woodlands
Posts: 27
Tommy.Brown is an unknown quantity at this point
Re: Serial port on CRIO-FRC II

Ok, thank you. After about 5 hours of sitting down and messing around with the serial port code in WindRiver we finally got it working.
__________________
FRC Team 1477 - Texas Torque
The Woodlands, Texas
Reply With Quote
  #11   Spotlight this post!  
Unread 25-01-2012, 23:40
Tristan Lall's Avatar
Tristan Lall Tristan Lall is offline
Registered User
FRC #0188 (Woburn Robotics)
 
Join Date: Aug 2001
Rookie Year: 1999
Location: Toronto, ON
Posts: 2,484
Tristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond repute
Re: Serial port on CRIO-FRC II

Quote:
Originally Posted by Mark McLeod View Post
The console setting for serial out is:

9600
- BAUD
8 - Data Bits
None - Parity
1 - Stop Bit
None - Flow Control
9 600 baud over RS-232? I suddenly feel 20 years younger!
Reply With Quote
  #12   Spotlight this post!  
Unread 26-01-2012, 13:41
Tommy.Brown's Avatar
Tommy.Brown Tommy.Brown is offline
Lead Programmer
FRC #1477 (Texas Torque)
Team Role: Programmer
 
Join Date: Jul 2011
Rookie Year: 2011
Location: The Woodlands
Posts: 27
Tommy.Brown is an unknown quantity at this point
Re: Serial port on CRIO-FRC II

9600 baud is just the default value. The cRIO can handle up to roughly 230,000 baud.
__________________
FRC Team 1477 - Texas Torque
The Woodlands, Texas
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 07:32.

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