Go to Post FIRST is all about helping eachother and team work, isn't it? - vadyr [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 10-30-2016, 02:18 PM
YairZiv YairZiv is offline
Registered User
FRC #5951
 
Join Date: Oct 2016
Location: Tel Aviv, Israel
Posts: 6
YairZiv is an unknown quantity at this point
Ports changed independently?

Hey, I'm Yair from team 5951, head of programming team and we've encountered a weird problem. As we were testing out some of the motors from the 2016th game's robot, we noticed some motors didn't work, some worked twice (iterated through all ports). We went into the NI web based configuration & Monitoring via Mozilla Firefox and we noticed some talons had the same port. We thought "No problem, let's fix that", and we did. Problem was, a few seconds later we noticed the site got refreshed and the motors got new ports, that happened a couple of times. I don't believe it was something in the code since it was a really simple code that just iterated through the talons and activated each of them for a few seconds. Did any other team experience this weird problem? How did you fix it? Do you think it's a problem with the roborio?

Thanks in advance
Reply With Quote
  #2   Spotlight this post!  
Unread 10-30-2016, 09:40 PM
GeeTwo's Avatar
GeeTwo GeeTwo is online now
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,538
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Ports changed independently?

As the symptoms don't make much sense for PWM control, I'm presuming that you're using Talon SRXs controlled through CAN.

What did you do with the
Quote:
"No problem, let's fix that", and we did.
?

Best guess:

It sounds like the Talon SRXs were never given addresses, or given duplicate addresses. The directions to detect and correct this is given in section 2.2 (pages 16 and 17) of the Talon SRX Software Reference Manual. Note that it is necessary to refresh the browser after changing the address; failure to do this caused us some unnecessary confusion the first time we did it. We now do a refresh following each assignment; possibly overkill, but better than confusion.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
Reply With Quote
  #3   Spotlight this post!  
Unread 10-31-2016, 04:25 AM
YairZiv YairZiv is offline
Registered User
FRC #5951
 
Join Date: Oct 2016
Location: Tel Aviv, Israel
Posts: 6
YairZiv is an unknown quantity at this point
Re: Ports changed independently?

Quote:
Originally Posted by GeeTwo View Post
As the symptoms don't make much sense for PWM control, I'm presuming that you're using Talon SRXs controlled through CAN.

What did you do with the
?

Best guess:

It sounds like the Talon SRXs were never given addresses, or given duplicate addresses. The directions to detect and correct this is given in section 2.2 (pages 16 and 17) of the Talon SRX Software Reference Manual. Note that it is necessary to refresh the browser after changing the address; failure to do this caused us some unnecessary confusion the first time we did it. We now do a refresh following each assignment; possibly overkill, but better than confusion.
Yes, we use Talon SRXs using CAN connections. When we said "No problem, let's fix that" we changed the ports in the NI web based configuration & Monitoring (http://roborio-xxxx-frc.local/) and manually changed the ports.
Reply With Quote
  #4   Spotlight this post!  
Unread 10-31-2016, 07:50 AM
tr6scott's Avatar
tr6scott tr6scott is offline
Um, I smell Motor!
AKA: Scott McBride
FRC #2137 (TORC)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Oxford, MI
Posts: 505
tr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond repute
Re: Ports changed independently?

Check the can buss for issues, look for retry counts, (I think the are on the same status page, going from memory) make sure you have the can wired correctly, with terminating resistors at each end, and daisy chained through the devices.

When Setting device id's make sure you use the "Flash LED" command to identify the correct talon srx before setting the id and buss number. Quite common to setting the id to another SRX than the one you wanted.
__________________
The sooner we get behind schedule, the more time we have to catch up.

Reply With Quote
  #5   Spotlight this post!  
Unread 10-31-2016, 10:20 AM
FrankJ's Avatar
FrankJ FrankJ is offline
Robot Mentor
FRC #2974 (WALT)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Marietta GA
Posts: 1,886
FrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond repute
Re: Ports changed independently?

Assuming two Talons are on the same address: Needless to say you need to power off (pull the fuse) or disconnect from the canbus the Talon you do not want to change. The Wiki simple way is to only power the Talon you want to configure.
__________________
If you don't know what you should hook up then you should read a data sheet
Reply With Quote
  #6   Spotlight this post!  
Unread 10-31-2016, 02:00 PM
YairZiv YairZiv is offline
Registered User
FRC #5951
 
Join Date: Oct 2016
Location: Tel Aviv, Israel
Posts: 6
YairZiv is an unknown quantity at this point
Re: Ports changed independently?

Quote:
Originally Posted by tr6scott View Post
Check the can buss for issues, look for retry counts, (I think the are on the same status page, going from memory) make sure you have the can wired correctly, with terminating resistors at each end, and daisy chained through the devices.

When Setting device id's make sure you use the "Flash LED" command to identify the correct talon srx before setting the id and buss number. Quite common to setting the id to another SRX than the one you wanted.
Quote:
Originally Posted by GeeTwo View Post
As the symptoms don't make much sense for PWM control, I'm presuming that you're using Talon SRXs controlled through CAN.

What did you do with the
?

Best guess:

It sounds like the Talon SRXs were never given addresses, or given duplicate addresses. The directions to detect and correct this is given in section 2.2 (pages 16 and 17) of the Talon SRX Software Reference Manual. Note that it is necessary to refresh the browser after changing the address; failure to do this caused us some unnecessary confusion the first time we did it. We now do a refresh following each assignment; possibly overkill, but better than confusion.
Another thing that happens, is that it shows that a talon srx is a pdb and sometimes even a vrm, which gets me even more confused (Image added as example)

http://imgur.com/a/AgTjm

And it says in the picture that it's port is number 6, when a second before that happened the port was 1.
Reply With Quote
  #7   Spotlight this post!  
Unread 10-31-2016, 02:12 PM
YairZiv YairZiv is offline
Registered User
FRC #5951
 
Join Date: Oct 2016
Location: Tel Aviv, Israel
Posts: 6
YairZiv is an unknown quantity at this point
Re: Ports changed independently?

Quote:
Originally Posted by tr6scott View Post
Check the can buss for issues, look for retry counts, (I think the are on the same status page, going from memory) make sure you have the can wired correctly, with terminating resistors at each end, and daisy chained through the devices.

When Setting device id's make sure you use the "Flash LED" command to identify the correct talon srx before setting the id and buss number. Quite common to setting the id to another SRX than the one you wanted.
Quote:
Originally Posted by GeeTwo View Post
As the symptoms don't make much sense for PWM control, I'm presuming that you're using Talon SRXs controlled through CAN.

What did you do with the
?

Best guess:

It sounds like the Talon SRXs were never given addresses, or given duplicate addresses. The directions to detect and correct this is given in section 2.2 (pages 16 and 17) of the Talon SRX Software Reference Manual. Note that it is necessary to refresh the browser after changing the address; failure to do this caused us some unnecessary confusion the first time we did it. We now do a refresh following each assignment; possibly overkill, but better than confusion.
Another thing that happens, is that it shows that a talon srx is a pdb and sometimes even a vrm, which gets me even more confused (Image added as example)

http://imgur.com/a/AgTjm

And it says in the picture that it's port is number 6, when a second before that happened the port was 1.
Reply With Quote
  #8   Spotlight this post!  
Unread 10-31-2016, 08:19 PM
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 516
ozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant future
Re: Ports changed independently?

Mismatched device icons is explained in section 21.19 in the Talon SRX Software reference manual. Rebooting the RIO, or RIO-resets, requires manual refresh of the browser (duplicate tab, close-reopen-window, press F5 or CTRL-R). If you change device IDs using a browser opened prior to RIO-reset or RIO power cycle, then you will see the symptoms you have reported.

Common ID talons reveal themselves as red blips on the Talon LEDs and web-config literally tells you when this happens in the software status. See section 2.2 in the Talon SRX Software reference manual for details.
Reply With Quote
  #9   Spotlight this post!  
Unread 10-31-2016, 10:53 PM
GeeTwo's Avatar
GeeTwo GeeTwo is online now
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,538
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Ports changed independently?

If Omar's advice above is not enough to resolve your issue, refer to Frank's a bit farther up. That is, only put one "unadressed" device on the bus at a time. Make sure (through a refresh) that its address has been fixed before adding another new device. It will take a bit longer, but is less likely to lead to a confusing assignment of bus IDs.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
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 08:40 AM.

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