Go to Post Think, Write, Re-Think, Erase or Post - and Deal With it Either Way. - Chris Fultz [more]
Home
Go Back   Chief Delphi > Technical > Electrical > CAN
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 01-02-2011, 11:54
dbeckwith's Avatar
dbeckwith dbeckwith is offline
Lead Programmer
AKA: Daniel Beckwith
FRC #3205 (The Patriots)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: USA
Posts: 84
dbeckwith is an unknown quantity at this point
can't connect jags to bdc-comm

This is our first year using CAN, and the Jaguar Getting Started Guide says I need to update the firmware before I can use CAN. We have two grey and two black jaguars.
I plugged the CAN terminator into the right NET port on a black jaguar, then connected the left port to the CAN-Serial adapter I made with instructions from the Getting Started Guide. That adapted is plugged into a serial-USB adapter since none of the computers at my school have serial ports. When I run BDC-COMM, I see the attached screenshot. The Jaguar light keeps slowly flashing yellow. Any help? This is my first time using CAN, so any obvious fixes would be helpful too
Attached Thumbnails
Click image for larger version

Name:	bdc-comm.jpg
Views:	75
Size:	43.8 KB
ID:	9911  
__________________
q = (2*b) | ~(2*b);

if (life.getLemons() != null) this.lemonade = new Drink(life.getLemons());
else throw new NoLemonsException("What now?");


Reply With Quote
  #2   Spotlight this post!  
Unread 01-02-2011, 13:05
wmarshall wmarshall is offline
Registered User
FRC #0011
 
Join Date: Jan 2011
Location: New Jersey
Posts: 8
wmarshall will become famous soon enough
Re: can't connect jags to bdc-comm

Looks fine to me. Have you tried flashing the firmware? You'll find it in the File menu.
Reply With Quote
  #3   Spotlight this post!  
Unread 01-02-2011, 13:20
dbeckwith's Avatar
dbeckwith dbeckwith is offline
Lead Programmer
AKA: Daniel Beckwith
FRC #3205 (The Patriots)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: USA
Posts: 84
dbeckwith is an unknown quantity at this point
Re: can't connect jags to bdc-comm

Quote:
Originally Posted by wmarshall View Post
Looks fine to me. Have you tried flashing the firmware? You'll find it in the File menu.
I can't because the Jaguars aren't connected. The light still flashes yellow, and if I try to download the firmware, it says it can't contact the boot loader. The issue is that the Jaguar isn't connected at all.
__________________
q = (2*b) | ~(2*b);

if (life.getLemons() != null) this.lemonade = new Drink(life.getLemons());
else throw new NoLemonsException("What now?");


Reply With Quote
  #4   Spotlight this post!  
Unread 01-02-2011, 13:24
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,731
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: can't connect jags to bdc-comm

Have you tested all the Com ports, one after another?

A USB-serial converter will be a different port based on which USB port it gets plugged into and assigned.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #5   Spotlight this post!  
Unread 01-02-2011, 13:30
dbeckwith's Avatar
dbeckwith dbeckwith is offline
Lead Programmer
AKA: Daniel Beckwith
FRC #3205 (The Patriots)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: USA
Posts: 84
dbeckwith is an unknown quantity at this point
Re: can't connect jags to bdc-comm

Quote:
Originally Posted by Mark McLeod View Post
Have you tested all the Com ports, one after another?

A USB-serial converter will be a different port based on which USB port it gets plugged into and assigned.
The only COM ports were 1 and 3 (I always had the same USB port connected), and most of the controls were disable when I selected port 1. When I disconnect the serial-USB adapter, I noticed that COM port 1 stays on the list. It seems like BDC-COMM thinks there is another COM port on the computer, but I looked all over it and couldn't find one. When the USB cable is plugged in and I select COM port 3, everything is enabled, but the Jaguar still won't connect.
__________________
q = (2*b) | ~(2*b);

if (life.getLemons() != null) this.lemonade = new Drink(life.getLemons());
else throw new NoLemonsException("What now?");


Reply With Quote
  #6   Spotlight this post!  
Unread 01-02-2011, 13:40
dyanoshak dyanoshak is offline
Registered User
AKA: David Yanoshak
FRC #2158 (ausTIN CANs)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Austin, TX
Posts: 189
dyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond repute
Re: can't connect jags to bdc-comm

In addition to the previous posts, I recommend that you double check the adapter you made to make sure the RX and TX lines are connected properly. Also confirm that your 6p6c cable going from the adapter to the Black Jag is "reversed," meaning pin 1 -> pin 1, pin 2 -> pin 2, and so on. See the Getting Started Guide for a good diagram.

Next I would try to reset the Jaguar to factory defaults by powering up while holding the user button with a paperclip. You can release it as the Jaguar flashes a slow green/red.

-David
Reply With Quote
  #7   Spotlight this post!  
Unread 01-02-2011, 13:47
dbeckwith's Avatar
dbeckwith dbeckwith is offline
Lead Programmer
AKA: Daniel Beckwith
FRC #3205 (The Patriots)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: USA
Posts: 84
dbeckwith is an unknown quantity at this point
Re: can't connect jags to bdc-comm

Quote:
Originally Posted by dyanoshak View Post
In addition to the previous posts, I recommend that you double check the adapter you made to make sure the RX and TX lines are connected properly. Also confirm that your 6p6c cable going from the adapter to the Black Jag is "reversed," meaning pin 1 -> pin 1, pin 2 -> pin 2, and so on. See the Getting Started Guide for a good diagram.

Next I would try to reset the Jaguar to factory defaults by powering up while holding the user button with a paperclip. You can release it as the Jaguar flashes a slow green/red.

-David
Here's what I'm confused about. The CAN cables only have wires on pins 2-5, but according to the Getting Started Guide, TX is 1 and RX is 6. The CAN-serial adapter I have has 6 pins, but the CAN cables only have 4. Is this the issue? Do I need a special CAN cable between the serial and the first Jaguar that uses all 6 pins?
__________________
q = (2*b) | ~(2*b);

if (life.getLemons() != null) this.lemonade = new Drink(life.getLemons());
else throw new NoLemonsException("What now?");


Reply With Quote
  #8   Spotlight this post!  
Unread 01-02-2011, 13:53
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: can't connect jags to bdc-comm

Quote:
Originally Posted by dbeckwith View Post
Do I need a special CAN cable between the serial and the first Jaguar that uses all 6 pins?
You at least need a cable with the outer two pins and a ground, and the easiest way to get that is to use a six-conductor cable. It likely won't be labeled as a CAN cable, though, as CAN is usually just 4 conductors in the middle of a 6-pin connector. Not connecting those outer two wires would definitely keep you from communicating with the Jaguar over a serial connection.
Reply With Quote
  #9   Spotlight this post!  
Unread 01-02-2011, 14:05
dbeckwith's Avatar
dbeckwith dbeckwith is offline
Lead Programmer
AKA: Daniel Beckwith
FRC #3205 (The Patriots)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: USA
Posts: 84
dbeckwith is an unknown quantity at this point
Re: can't connect jags to bdc-comm

Quote:
Originally Posted by Alan Anderson View Post
You at least need a cable with the outer two pins and a ground, and the easiest way to get that is to use a six-conductor cable. It likely won't be labeled as a CAN cable, though, as CAN is usually just 4 conductors in the middle of a 6-pin connector. Not connecting those outer two wires would definitely keep you from communicating with the Jaguar over a serial connection.
Yes, I think that's the problem. We just need a 6p6c to connect serial to the first Jaguar.
__________________
q = (2*b) | ~(2*b);

if (life.getLemons() != null) this.lemonade = new Drink(life.getLemons());
else throw new NoLemonsException("What now?");


Reply With Quote
  #10   Spotlight this post!  
Unread 01-02-2011, 14:15
dyanoshak dyanoshak is offline
Registered User
AKA: David Yanoshak
FRC #2158 (ausTIN CANs)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Austin, TX
Posts: 189
dyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond repute
Re: can't connect jags to bdc-comm

Yes, 6p6c is required between the serial adapter and the first Black Jag. After that it can be either 6p6c or 6p4c.

My team uses all 6p6c so that every cable is interchangeable and so we don't have to buy two different sets of cable and connectors.

-David
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 02:43.

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