Go to Post If Andy Baker wants 9999 for his new team then who's gonna stop him? - IndySam [more]
Home
Go Back   Chief Delphi > Technical > Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 23-01-2015, 11:22
LeadU2Fun LeadU2Fun is offline
Registered User
AKA: Sam Alexander
FRC #1290 (Wolfgang Robotics)
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Chandler, AZ
Posts: 47
LeadU2Fun is an unknown quantity at this point
cRio Serial to Can Bus Troubleshooting

I think our serial port on the cRio is fried. I was hoping someone might have a way to confirm or point out something I have over looked. Here is the main points:

1) We updated our programming and driver station laptop to the 2015 season for the new RoboRio.

2) One of the programmers tried to add new code to last years bot using that laptop. (I know this is not a good idea. I DON'T know what happened when he did that. IE error message, if it was successful, etc)

3) They also tried to connect with the new Driver Station. (Yes, I know that is not possible)

4) So we installed the 2014 system on a different laptop.

5) Moved the java code to the 2014 laptop.

6) Reimaged the cRio with the Black Jaguar Serial to Can plugin.

7) Checked the firmware on the black jags and made sure they were the 107 firmware.

8) The bus worked fine when connecting with the software to update the firmware. We could see all the jags with different id # (2,3,4,5,6).

9) Uploaded the java code but got a CANTimeoutException and before that you can see that the FRC_BlackJaguarBridgePlugin failed and the thread was deleted with an errno=196709.

10) Tried this process many times but the jags are always blinking yellow and are never talking to the can bus when hooked up to the cRio. When hooked up to the computer using the firmware software they are all solid yellow.

Anyone have any ideas or know of a way to test the cRio serial port to see if it is still good?
Reply With Quote
  #2   Spotlight this post!  
Unread 23-01-2015, 11:55
wt200999's Avatar
wt200999 wt200999 is offline
Texas Instruments
AKA: Will Toth
FRC #3005 (Robochargers)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Dallas, Texas
Posts: 323
wt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud of
Send a message via MSN to wt200999
Re: cRio Serial to Can Bus Troubleshooting

Our team recently updated our previous year's cRIO with this years code as well, and we cannot talk to the Jags, similar story to you, though we are a LabVIEW team. The other parts of our code work fine (our LEDs light up and compressor turns on). I haven't had a chance to sit down and debug yet.

I believe there is an update to the Jag firmware, as I found v109 on the vex site. After updating all 7 with the BDC-COMM tool I can still not talk to them.

I doubt there is anything physically wrong with the RS-232 port itself, maybe something with the new image, or with how the Jags communicate now?

You can test the port by imaging without the Black CAN Bridge, and using console out, then using RS-232 <--> USB bridge. When you boot up you should see the something from the cRIO.
__________________
Programming in LabVIEW? Try VI Snippets!

FIRST LEGO League 2004 - 2005
FRC Team 870 Student 2006 - 2009
FRC Team 3005 Mentor 2013 -

Last edited by wt200999 : 23-01-2015 at 12:02.
Reply With Quote
  #3   Spotlight this post!  
Unread 23-01-2015, 12:25
LeadU2Fun LeadU2Fun is offline
Registered User
AKA: Sam Alexander
FRC #1290 (Wolfgang Robotics)
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Chandler, AZ
Posts: 47
LeadU2Fun is an unknown quantity at this point
Re: cRio Serial to Can Bus Troubleshooting

I will see if I can find some documentation on how to do that. I think you just use hyperterminal but I don't know the settings exactly. I'll add a link if I find it. Thank you for the suggestion.
Reply With Quote
  #4   Spotlight this post!  
Unread 23-01-2015, 12:28
LeadU2Fun LeadU2Fun is offline
Registered User
AKA: Sam Alexander
FRC #1290 (Wolfgang Robotics)
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Chandler, AZ
Posts: 47
LeadU2Fun is an unknown quantity at this point
Re: cRio Serial to Can Bus Troubleshooting

Also, the RS233 to usb just adds a serial port to the computer if you don't already have one. We have computers with them. Still need a null modem serial cable to do that as it has the crossover built in.
Reply With Quote
  #5   Spotlight this post!  
Unread 23-01-2015, 13:19
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: cRio Serial to Can Bus Troubleshooting

When you reimaged the cRIO, did you make sure the CONSOLE OUT switch was off? The console will interfere with the serial-to-CAN function.
Reply With Quote
  #6   Spotlight this post!  
Unread 23-01-2015, 13:34
LeadU2Fun LeadU2Fun is offline
Registered User
AKA: Sam Alexander
FRC #1290 (Wolfgang Robotics)
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Chandler, AZ
Posts: 47
LeadU2Fun is an unknown quantity at this point
Re: cRio Serial to Can Bus Troubleshooting

Yes, it was off. I knew that would cause problems with the can bus. I forgot to add that in the original post. Thank you for the suggestion, though.
Reply With Quote
  #7   Spotlight this post!  
Unread 23-01-2015, 15:53
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,793
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: cRio Serial to Can Bus Troubleshooting

To test the cRIO serial port you can enable console out and read from it using a terminal program on a laptop having a serial port of a USB-Serial adaptor.
With the terminal connected just boot the cRIO and you'll get the stream of console messages.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #8   Spotlight this post!  
Unread 24-01-2015, 12:55
LeadU2Fun LeadU2Fun is offline
Registered User
AKA: Sam Alexander
FRC #1290 (Wolfgang Robotics)
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Chandler, AZ
Posts: 47
LeadU2Fun is an unknown quantity at this point
Re: cRio Serial to Can Bus Troubleshooting

*** Update ***

1) We reimaged the cRio with the none option for the CAN bus and the net console box ticked with java as the language option.

2) Then we commented out all the code that dealt with the black jaguar can bus.

3) Uploaded code to robot.

4) Flipped the console out switch on the cRio (8 slot with physical dip switches).

5) Hooked null modem cable up to cRio serial port and computer. (After no console messages I double checked by doing a continuity check on pin 2 on one side and pin 3 on the other and vice versa.)

6) On computer opened putty, configured for serial, tried both com1 and com3 on different instances @ 115,200.

7) Powered cRio and watched for console information.

We could not get any console information through the serial port. I am pretty sure the port is dead.
Reply With Quote
  #9   Spotlight this post!  
Unread 24-01-2015, 13:19
wt200999's Avatar
wt200999 wt200999 is offline
Texas Instruments
AKA: Will Toth
FRC #3005 (Robochargers)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Dallas, Texas
Posts: 323
wt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud of
Send a message via MSN to wt200999
Re: cRio Serial to Can Bus Troubleshooting

Quote:
Originally Posted by LeadU2Fun View Post
4) Flipped the console out switch on the cRio (8 slot with physical dip switches).
I remember reading that only the 4 slot cRIO is supported with this year's code? If you install and use last year's LabVIEW + NI Update and use the old image it may work?

I know for us we were running the bot a couple of days before updating it, so I feel it may be the image. Where can we go to submit a bug report for this or at least confirm? I would rather not have to re-wire our bot.
__________________
Programming in LabVIEW? Try VI Snippets!

FIRST LEGO League 2004 - 2005
FRC Team 870 Student 2006 - 2009
FRC Team 3005 Mentor 2013 -
Reply With Quote
  #10   Spotlight this post!  
Unread 24-01-2015, 13:52
LeadU2Fun LeadU2Fun is offline
Registered User
AKA: Sam Alexander
FRC #1290 (Wolfgang Robotics)
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Chandler, AZ
Posts: 47
LeadU2Fun is an unknown quantity at this point
Re: cRio Serial to Can Bus Troubleshooting

We used a different laptop and installed the 2014 system on it. We are programming in Java and the only difference from orignial successful code is the JDK is updated on this laptop. We did reimage the cRio with last years image and install the code with the 2014 system still no CAN bus or serial console port out (both tried independent of each other as you can not run both at once).
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 20:13.

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