Go to Post FIRST... (is) just as human as we are. (except now in game hint season when they are big meanies) - Tetraman [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 13-03-2011, 06:06
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: 521
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
2CAN firmware 2.5

There is a new version of firmware (2.5) for the 2CAN...
http://www.crosstheroadelectronics.com/2CAN.htm

Major Fixes....
-Fixed a potential situation where 2can stops sending udp frames - only happens on higher Ethernet utilizations.
-There is an improvement to lagging Web dash browsing while robot is enabled.
See release notes for details on all fixes.

There is no FRC legal obligation to update from 2.1 to 2.5. Both function with the FRC_2CANPlugin (SVN rev66).
Reply With Quote
  #2   Spotlight this post!  
Unread 13-03-2011, 08:58
boomergeek's Avatar
boomergeek boomergeek is offline
Registered User
AKA: Mr. D (Dick DiPasquale)
FRC #0241 (Pinkerton Robotics)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Derry, NH
Posts: 191
boomergeek has a brilliant futureboomergeek has a brilliant futureboomergeek has a brilliant futureboomergeek has a brilliant futureboomergeek has a brilliant futureboomergeek has a brilliant futureboomergeek has a brilliant futureboomergeek has a brilliant futureboomergeek has a brilliant futureboomergeek has a brilliant futureboomergeek has a brilliant future
Re: 2CAN firmware 2.5

Thanks for working so hard to isolate and correct issues and release software on a Sunday morning!

Is there any easy way to consistently stimulate "sending udp frames [at] higher Ethernet utilizations" to demonstrate the problem of stopping udp packets with previous firmware?

Is there a rate of udp frames that are now deemed robust with the new firmware ? How does it compare to the rate currently deemed robust in the previous firmware?

Is more or your testing done on port 1 or port 2 of the CRio?
Is connecting the 2CAN to the DAP-1522 and the DAP-1522 to port 1 of the CRio an allowed competition configuration or should the 2CAN always be connected directly to port 2 of the CRio for competition?
Reply With Quote
  #3   Spotlight this post!  
Unread 13-03-2011, 18:29
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: 521
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: 2CAN firmware 2.5

The only way I could reproduce the udp issue was after creating a simple Wind River project that sent (sendto) udp frames as fast as possible in a tight loop.
Something like this...
count = 0;
time1 = GetTime();
while(1)
{
if(count < 10240)
break;
++count;
sendto(...);
}
time2 = GetTime();
average = (time2 - time1) / 10240;

I wanted to find the absolute fastest update rate per transaction (which is about average = 320us). I found that at 10240 frames, the 2CAN sometimes went into a state where it stopped receiving CAN requests (bug1) and then later would drop a few out of the 10240 (bug2) . I don't expect actual Robot applications to be anywhere near this threshold. In fact in CANJaguar.cpp when a CAN request is sent there is blocking code that waits for the CAN response. In my test I'm just blasting transmits as fast as possible without waiting for a CAN response, so I would say my testing is more aggressive than would is done in an actual Robot application.

Most of my testing is done on port1(cRIO). For teams I generally recommend port2 only to isolate the 2CAN from the communication port used for FMS. The cRIO plugin doesn't care which port the 2can is on (it finds it regardless) but when things go wrong (comm issues on the field) it's very easy to suspect CAN related issues, using port2 reduces the number of factors to rule out when comm problems occur.
However for practice port1 is useful to get to the webdash over Wi-Fi.

Putting 2CAN on DAP -1522(Which is on cRIO port1) is legal.
Reply With Quote
  #4   Spotlight this post!  
Unread 16-03-2011, 09:06
Hugh Meyer's Avatar
Hugh Meyer Hugh Meyer is offline
Registered User
FRC #1741 (Red Alert Robotics)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Greenwood Indiana
Posts: 158
Hugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud of
Re: 2CAN firmware 2.5

Omar,

Thank you for the update!

-Hugh
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:42.

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