EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

Detecting network connection

Started by "see...@yahoo.com [rabbit-semi]" February 23, 2016
Tom, et.al,

Some years ago we had an issue with Moxi switches where, when the Ethernet cable was disconnected and then reconnected, the Rabbit would not detect the presence of the network so you couldn't communicate with it until you power-cycled the Rabbit. These are RCM3900s. This never happened with Netgear switches, which is what we use 98% of the time.

At the time I submitted a tech support ticket to Digi, and they supplied an updated library. I think they tweeked pd_havelink(), and we haven't had a problem since. Until today.

A customer is using a B&B Electronics industrial switch, and they are experiencing the same problem. Disconnect the Ethernet cable, then plug it back in, there is no link light or activity light on switch and you can't communicate with the equipment (Rabbit). If you power-cycle the switch, the connection is restored. And if you power-cycle the Rabbit, the connection is restored. It doesn't matter if we are using DHCP or Static IP.

I don't think this is a Rabbit issue, but is there anything I can do in the Rabbit to correct this? These are layer 2 switches, so there is nothing to configure in switches.

Steve
I may have spoken too soon about this not being a Rabbit issue. Every other Ethernet enabled piece of equipment we have works with the B&B switch, including the RCM6750. It's only the RCM3k series that has the problem.

Since the RCM6750 works, do you suppose there is something in the RCM6k libs that could be applied to the RCM3k to get it to work? Just a thought.

I'd ask Digi, but they no longer respond to my support requests.

Steve
Steve,

There's a chance it's been addressed in this patch for Dynamic C 10, that was not backported to Dynamic C 9:

https://github.com/digidotcom/DCRabbit_10/commit/03f1acdbd2dacf7f5082da80613970c5022c34f6

I'm on vacation so don't have the resources to look at it too closely. If you had an RCM4200 (or other ASIX-based 4000-series board) to test with, you could confirm that ASIX.LIB from DC10 works correctly with that hardware, and then investigate differences between it and the DC9 version.

I also have a private Git repository of some of the DC10 releases prior to 10.72, so I can review changes made to ASIX.LIB there as well, to see if anything needs backporting to DC9.

I'll do my best to fill the void of Digi's inaction on your support requests. I'll check back with you on Thursday or Friday when I'm back in the office.

-Tom
On Feb 23, 2016, at 3:02 PM, s...@yahoo.com [rabbit-semi] wrote:
> I may have spoken too soon about this not being a Rabbit issue. Every other Ethernet enabled piece of equipment we have works with the B&B switch, including the RCM6750. It's only the RCM3k series that has the problem.
>
> Since the RCM6750 works, do you suppose there is something in the RCM6k libs that could be applied to the RCM3k to get it to work? Just a thought.
>
> I'd ask Digi, but they no longer respond to my support requests.
>
> Steve
>
Tom,
The DC 9 asix.lib has the same patch as DC 10. I added it last year per the recommendation of M. Kronenberg at Digi.
Steve

From: "Tom Collins t...@tomlogic.com [rabbit-semi]"
To: r...
Sent: Tuesday, February 23, 2016 2:45 PM
Subject: Re: [rabbit-semi] Re: Detecting network connection

  Steve,
There's a chance it's been addressed in this patch for Dynamic C 10, that was not backported to Dynamic C 9:
https://github.com/digidotcom/DCRabbit_10/commit/03f1acdbd2dacf7f5082da80613970c5022c34f6
I'm on vacation so don't have the resources to look at it too closely.  If you had an RCM4200 (or other ASIX-based 4000-series board) to test with, you could confirm that ASIX.LIB from DC10 works correctly with that hardware, and then investigate differences between it and the DC9 version.
I also have a private Git repository of some of the DC10 releases prior to 10.72, so I can review changes made to ASIX.LIB there as well, to see if anything needs backporting to DC9.
I'll do my best to fill the void of Digi's inaction on your support requests.  I'll check back with you on Thursday or Friday when I'm back in the office.
-Tom

On Feb 23, 2016, at 3:02 PM, s...@yahoo.com [rabbit-semi] wrote:
I may have spoken too soon about this not being a Rabbit issue. Every other Ethernet enabled piece of equipment we have works with the B&B switch, including the RCM6750. It's only the RCM3k series that has the problem. 
Since the RCM6750 works, do you suppose there is something in the RCM6k libs that could be applied to the RCM3k to get it to work? Just a thought.
I'd ask Digi, but they no longer respond to my support requests.
Steve

#yiv3218659314 #yiv3218659314 -- #yiv3218659314ygrp-mkp {border:1px solid #d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}#yiv3218659314 #yiv3218659314ygrp-mkp hr {border:1px solid #d8d8d8;}#yiv3218659314 #yiv3218659314ygrp-mkp #yiv3218659314hd {color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 0;}#yiv3218659314 #yiv3218659314ygrp-mkp #yiv3218659314ads {margin-bottom:10px;}#yiv3218659314 #yiv3218659314ygrp-mkp .yiv3218659314ad {padding:0 0;}#yiv3218659314 #yiv3218659314ygrp-mkp .yiv3218659314ad p {margin:0;}#yiv3218659314 #yiv3218659314ygrp-mkp .yiv3218659314ad a {color:#0000ff;text-decoration:none;}#yiv3218659314 #yiv3218659314ygrp-sponsor #yiv3218659314ygrp-lc {font-family:Arial;}#yiv3218659314 #yiv3218659314ygrp-sponsor #yiv3218659314ygrp-lc #yiv3218659314hd {margin:10px 0px;font-weight:700;font-size:78%;line-height:122%;}#yiv3218659314 #yiv3218659314ygrp-sponsor #yiv3218659314ygrp-lc .yiv3218659314ad {margin-bottom:10px;padding:0 0;}#yiv3218659314 #yiv3218659314actions {font-family:Verdana;font-size:11px;padding:10px 0;}#yiv3218659314 #yiv3218659314activity {background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}#yiv3218659314 #yiv3218659314activity span {font-weight:700;}#yiv3218659314 #yiv3218659314activity span:first-child {text-transform:uppercase;}#yiv3218659314 #yiv3218659314activity span a {color:#5085b6;text-decoration:none;}#yiv3218659314 #yiv3218659314activity span span {color:#ff7900;}#yiv3218659314 #yiv3218659314activity span .yiv3218659314underline {text-decoration:underline;}#yiv3218659314 .yiv3218659314attach {clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 0;width:400px;}#yiv3218659314 .yiv3218659314attach div a {text-decoration:none;}#yiv3218659314 .yiv3218659314attach img {border:none;padding-right:5px;}#yiv3218659314 .yiv3218659314attach label {display:block;margin-bottom:5px;}#yiv3218659314 .yiv3218659314attach label a {text-decoration:none;}#yiv3218659314 blockquote {margin:0 0 0 4px;}#yiv3218659314 .yiv3218659314bold {font-family:Arial;font-size:13px;font-weight:700;}#yiv3218659314 .yiv3218659314bold a {text-decoration:none;}#yiv3218659314 dd.yiv3218659314last p a {font-family:Verdana;font-weight:700;}#yiv3218659314 dd.yiv3218659314last p span {margin-right:10px;font-family:Verdana;font-weight:700;}#yiv3218659314 dd.yiv3218659314last p span.yiv3218659314yshortcuts {margin-right:0;}#yiv3218659314 div.yiv3218659314attach-table div div a {text-decoration:none;}#yiv3218659314 div.yiv3218659314attach-table {width:400px;}#yiv3218659314 div.yiv3218659314file-title a, #yiv3218659314 div.yiv3218659314file-title a:active, #yiv3218659314 div.yiv3218659314file-title a:hover, #yiv3218659314 div.yiv3218659314file-title a:visited {text-decoration:none;}#yiv3218659314 div.yiv3218659314photo-title a, #yiv3218659314 div.yiv3218659314photo-title a:active, #yiv3218659314 div.yiv3218659314photo-title a:hover, #yiv3218659314 div.yiv3218659314photo-title a:visited {text-decoration:none;}#yiv3218659314 div#yiv3218659314ygrp-mlmsg #yiv3218659314ygrp-msg p a span.yiv3218659314yshortcuts {font-family:Verdana;font-size:10px;font-weight:normal;}#yiv3218659314 .yiv3218659314green {color:#628c2a;}#yiv3218659314 .yiv3218659314MsoNormal {margin:0 0 0 0;}#yiv3218659314 o {font-size:0;}#yiv3218659314 #yiv3218659314photos div {float:left;width:72px;}#yiv3218659314 #yiv3218659314photos div div {border:1px solid #666666;height:62px;overflow:hidden;width:62px;}#yiv3218659314 #yiv3218659314photos div label {color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}#yiv3218659314 #yiv3218659314reco-category {font-size:77%;}#yiv3218659314 #yiv3218659314reco-desc {font-size:77%;}#yiv3218659314 .yiv3218659314replbq {margin:4px;}#yiv3218659314 #yiv3218659314ygrp-actbar div a:first-child {margin-right:2px;padding-right:5px;}#yiv3218659314 #yiv3218659314ygrp-mlmsg {font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}#yiv3218659314 #yiv3218659314ygrp-mlmsg table {font-size:inherit;font:100%;}#yiv3218659314 #yiv3218659314ygrp-mlmsg select, #yiv3218659314 input, #yiv3218659314 textarea {font:99% Arial, Helvetica, clean, sans-serif;}#yiv3218659314 #yiv3218659314ygrp-mlmsg pre, #yiv3218659314 code {font:115% monospace;}#yiv3218659314 #yiv3218659314ygrp-mlmsg * {line-height:1.22em;}#yiv3218659314 #yiv3218659314ygrp-mlmsg #yiv3218659314logo {padding-bottom:10px;}#yiv3218659314 #yiv3218659314ygrp-msg p a {font-family:Verdana;}#yiv3218659314 #yiv3218659314ygrp-msg p#yiv3218659314attach-count span {color:#1E66AE;font-weight:700;}#yiv3218659314 #yiv3218659314ygrp-reco #yiv3218659314reco-head {color:#ff7900;font-weight:700;}#yiv3218659314 #yiv3218659314ygrp-reco {margin-bottom:20px;padding:0px;}#yiv3218659314 #yiv3218659314ygrp-sponsor #yiv3218659314ov li a {font-size:130%;text-decoration:none;}#yiv3218659314 #yiv3218659314ygrp-sponsor #yiv3218659314ov li {font-size:77%;list-style-type:square;padding:6px 0;}#yiv3218659314 #yiv3218659314ygrp-sponsor #yiv3218659314ov ul {margin:0;padding:0 0 0 8px;}#yiv3218659314 #yiv3218659314ygrp-text {font-family:Georgia;}#yiv3218659314 #yiv3218659314ygrp-text p {margin:0 0 1em 0;}#yiv3218659314 #yiv3218659314ygrp-text tt {font-size:120%;}#yiv3218659314 #yiv3218659314ygrp-vital ul li:last-child {border-right:none !important;}#yiv3218659314

The 2024 Embedded Online Conference