Search the web
Sign In
New User? Sign Up
rabbit-semi · Group for Rabbit C-programmable micros
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
RCM4300 ethernet cable detect problem   Topic List   < Prev Topic  |  Next Topic >
Summarize Messages Sort by Date  
#39073 From: "mfawzy79" <mf.firmdesign@...>
Date: Thu Jul 2, 2009 5:49 am
Subject: RCM4300 ethernet cable detect problem
mfawzy79
Offline Offline
Send Email Send Email
 
Hi,

I'm using the RCm4300 and i have a problem that when i download the code to the
module then i connect the Ethernet cable to the module, the module isn't able to
detect that the cable is plugged, i have to turn off the power then ON to detect
the problem.

by the way, i found a problem in the fat library with the ucos,which is
the _fat_automount function is calling fat_UnmountDevice inline 3437 but it
should call _fat_UnmountDevice.

when calling fat_automount under the ucos, it should pend on a semaphore and if
it got it, the FAT API _fat_automount will be started the problem that the
_fat_automount is calling fat_UnmountDevice which is pending also on the
semaphore so will timeout and break the code.
i hope it help


Best Regards
MFawzy






#39074 From: "mfawzy79" <mf.firmdesign@...>
Date: Thu Jul 2, 2009 6:01 am
Subject: Re: RCM4300 ethernet cable detect problem
mfawzy79
Offline Offline
Send Email Send Email
 
for more info, this problem appears random not all the time
--- In rabbit-semi@yahoogroups.com, "mfawzy79" <mf.firmdesign@...> wrote:
>
> Hi,
>
> I'm using the RCm4300 and i have a problem that when i download the code to
the module then i connect the Ethernet cable to the module, the module isn't
able to detect that the cable is plugged, i have to turn off the power then ON
to detect the Ethernet Cable.
>
> by the way, i found a problem in the fat library with the ucos,which is
> the _fat_automount function is calling fat_UnmountDevice inline 3437 but it
should call _fat_UnmountDevice.
>
> when calling fat_automount under the ucos, it should pend on a semaphore and
if it got it, the FAT API _fat_automount will be started the problem that the
_fat_automount is calling fat_UnmountDevice which is pending also on the
semaphore so will timeout and break the code.
> i hope it help
>
>
> Best Regards
> MFawzy
>





#39078 From: Tom Collins <tom@...>
Date: Sat Jul 4, 2009 5:42 am
Subject: Re: RCM4300 ethernet cable detect problem
tomcollinsaz
Offline Offline
Send Email Send Email
 
On Jul 1, 2009, at 10:49 PM, mfawzy79 wrote:
I'm using the RCm4300 and i have a problem that when i download the code to the module then i connect the Ethernet cable to the module, the module isn't able to detect that the cable is plugged, i have to turn off the power then ON to detect the problem.

Try Dynamic C 10.54.  They fixed a bug with the ASIX driver (RCM4200, RCM4300) that affected some network setups (I saw it with a 10Base-T hub).

- Defect 30186 fixed. Boards equipped with ASIX Ethernet now
  reliably recover link after a cable unplug, replug sequence.

-Tom




#39079 From: "mfawzy79" <mf.firmdesign@...>
Date: Sun Jul 5, 2009 5:39 am
Subject: Re: RCM4300 ethernet cable detect problem
mfawzy79
Offline Offline
Send Email Send Email
 
actually, I'm already using DC 10.54 and i'm still having the problem

Best Regards
MFawzy

--- In rabbit-semi@yahoogroups.com, Tom Collins <tom@...> wrote:
>
> On Jul 1, 2009, at 10:49 PM, mfawzy79 wrote:
> > I'm using the RCm4300 and i have a problem that when i download the
> > code to the module then i connect the Ethernet cable to the module,
> > the module isn't able to detect that the cable is plugged, i have
> > to turn off the power then ON to detect the problem.
>
> Try Dynamic C 10.54. They fixed a bug with the ASIX driver (RCM4200,
> RCM4300) that affected some network setups (I saw it with a 10Base-T
> hub).
>
> - Defect 30186 fixed. Boards equipped with ASIX Ethernet now
> reliably recover link after a cable unplug, replug sequence.
>
> -Tom
>





#39080 From: Scott Henion <shenion@...>
Date: Sun Jul 5, 2009 7:14 am
Subject: Re: Re: RCM4300 ethernet cable detect problem
shdesigns2003
Offline Offline
Send Email Send Email
 
mfawzy79 wrote:
> actually, I'm already using DC 10.54 and i'm still having the problem
>
>
There is a bug in the ASIX chip that will cause it to not negotiate
correctly with some hubs/switches. The fix was to use a very long reset
to the chip, something like 3 seconds. It would work on a power-up but
not on later resets.

The bug was fixed in the Softools port of the stack. AFAIK, ZW never
implemented the fix. I also notice on the newer modules the no longer
feed a pin to the ASIX chip to use as a reset. So, your only option may
be to get a different hub/switch.

--
------------------------------------------
| Scott G. Henion| shenion@... |
| Consultant | Stone Mountain, GA |
| SHDesigns http://www.shdesigns.org |
------------------------------------------





#39138 From: "Paul Kelly" <tech@...>
Date: Thu Aug 6, 2009 9:49 am
Subject: RE: Re: RCM4300 ethernet cable detect problem
pk7639
Offline Offline
Send Email Send Email
 
I've, unfortunately, just come across this problem. I'm really stuck because
I'm connecting directly to a PC via a crossover cable.

Anyone got any opinions on the following.

Adding code to try to cycle the interface if it detects it's down for more
than a few seconds.

Allowing an external reset to the board if the interface is down for more
than a few minutes.

Reconfiguring the Gigabit Ethernet port on the PC to lock it at 100FDX???


Any ideas appreciated..

PK

-----Original Message-----
From: rabbit-semi@yahoogroups.com [mailto:rabbit-semi@yahoogroups.com] On
Behalf Of Scott Henion
Sent: Sunday, 5 July 2009 3:15 PM
To: rabbit-semi@yahoogroups.com
Subject: Re: [rabbit-semi] Re: RCM4300 ethernet cable detect problem

mfawzy79 wrote:
> actually, I'm already using DC 10.54 and i'm still having the problem
>
>
There is a bug in the ASIX chip that will cause it to not negotiate
correctly with some hubs/switches. The fix was to use a very long reset
to the chip, something like 3 seconds. It would work on a power-up but
not on later resets.

The bug was fixed in the Softools port of the stack. AFAIK, ZW never
implemented the fix. I also notice on the newer modules the no longer
feed a pin to the ASIX chip to use as a reset. So, your only option may
be to get a different hub/switch.

--
------------------------------------------
| Scott G. Henion| shenion@... |
| Consultant | Stone Mountain, GA |
| SHDesigns http://www.shdesigns.org |
------------------------------------------




------------------------------------

Yahoo! Groups Links






#39141 From: "Paul Kelly" <tech@...>
Date: Fri Aug 7, 2009 10:03 pm
Subject: RE: Re: RCM4300 ethernet cable detect problem
pk7639
Offline Offline
Send Email Send Email
 
An update. This problem occurred on a 3375 module, I was able to fix it by
locking the Gigabit Ethernet port on the PC to 100FDX.

PK

-----Original Message-----
From: rabbit-semi@yahoogroups.com [mailto:rabbit-semi@yahoogroups.com] On
Behalf Of Paul Kelly
Sent: Thursday, 6 August 2009 5:49 PM
To: rabbit-semi@yahoogroups.com
Subject: RE: [rabbit-semi] Re: RCM4300 ethernet cable detect problem

I've, unfortunately, just come across this problem. I'm really stuck because
I'm connecting directly to a PC via a crossover cable.

Anyone got any opinions on the following.

Adding code to try to cycle the interface if it detects it's down for more
than a few seconds.

Allowing an external reset to the board if the interface is down for more
than a few minutes.

Reconfiguring the Gigabit Ethernet port on the PC to lock it at 100FDX???


Any ideas appreciated..

PK

-----Original Message-----
From: rabbit-semi@yahoogroups.com [mailto:rabbit-semi@yahoogroups.com] On
Behalf Of Scott Henion
Sent: Sunday, 5 July 2009 3:15 PM
To: rabbit-semi@yahoogroups.com
Subject: Re: [rabbit-semi] Re: RCM4300 ethernet cable detect problem

mfawzy79 wrote:
> actually, I'm already using DC 10.54 and i'm still having the problem
>
>
There is a bug in the ASIX chip that will cause it to not negotiate
correctly with some hubs/switches. The fix was to use a very long reset
to the chip, something like 3 seconds. It would work on a power-up but
not on later resets.

The bug was fixed in the Softools port of the stack. AFAIK, ZW never
implemented the fix. I also notice on the newer modules the no longer
feed a pin to the ASIX chip to use as a reset. So, your only option may
be to get a different hub/switch.

--
------------------------------------------
| Scott G. Henion| shenion@... |
| Consultant | Stone Mountain, GA |
| SHDesigns http://www.shdesigns.org |
------------------------------------------




------------------------------------

Yahoo! Groups Links





------------------------------------

Yahoo! Groups Links






#39087 From: "Bob Colwell" <bob.colwell@...>
Date: Thu Jul 9, 2009 12:12 am
Subject: RE: RCM4xxx way to do equiv of #include?
rpcy
Offline Offline
Send Email Send Email
 

I’ve succeeded at interfacing to my 2-line LCD display from my RCM4400W module, but I wish I could put all the LCD code into a separate file and #include it. I know Rabbit’s C compiler doesn’t support #include, but is there no way to achieve something similar? “#use” doesn’t quite do what I want – it only seems to know how to point into Rabbit’s own libraries. I want a library of my own.

 

-BobC


#39088 From: Scott Henion <shenion@...>
Date: Thu Jul 9, 2009 1:48 am
Subject: Re: RCM4xxx way to do equiv of #include?
shdesigns2003
Offline Offline
Send Email Send Email
 
Bob Colwell wrote:

I’ve succeeded at interfacing to my 2-line LCD display from my RCM4400W module, but I wish I could put all the LCD code into a separate file and #include it. I know Rabbit’s C compiler doesn’t support #include, but is there no way to achieve something similar? “#use” doesn’t quite do what I want – it only seems to know how to point into Rabbit’s own libraries. I want a library of my own.

 

To use lib with #use, you need to add the file to the lib.dir in the DC install directory.

The DC docs describe how to generate libraries.



-- ------------------------------------------
| Scott G. Henion| shenion@... |
| Consultant | Stone Mountain, GA |
| SHDesigns http://www.shdesigns.org |
------------------------------------------
today's fortune Mal: "You backed out of a deal last time, left us hanging..."
Jayne: "...hurt our feelings."
Mal: "You recall why that took place?"
Badger: "Had a problem with your attitude is why. Though you was... what's the word..."
Jayne: "Pretensious?"
Badger: "Exactly! You think you better than other people!"
Mal: "Just the ones I'm better than."
--Episode #4, "Shindig"

#39089 From: Alexis <alexis@...>
Date: Thu Jul 9, 2009 1:47 pm
Subject: Rabbit Web
alexisjhn
Offline Offline
Send Email Send Email
 

Hi All

I am having an issue with Rabbit Web.

Sometimes I have to push the submit button more than once.

Anyone else out there have any pointers?

A.





#39090 From: Thorsteinn Mar Arinbjarnarson <thorsteinn@...>
Date: Thu Jul 9, 2009 2:32 pm
Subject: Re: Rabbit Web
igingut
Offline Offline
Send Email Send Email
 
Yes I have had this problem with the submit button (and in general my experience with the Rabbit Web is not very positive). This is not a big problem however since we only use it rarely in-house for some testing (i.e. we don't use it in our customer solutions). Hope anyone has some nice pointers on this issue.

THMA


On Thu, Jul 9, 2009 at 1:47 PM, Alexis <alexis@...> wrote:

Hi All

I am having an issue with Rabbit Web.

Sometimes I have to push the submit button more than once.

Anyone else out there have any pointers?

A.




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
   http://groups.yahoo.com/group/rabbit-semi/

<*> Your email settings:
   Individual Email | Traditional

<*> To change settings online go to:
   http://groups.yahoo.com/group/rabbit-semi/join
   (Yahoo! ID required)

<*> To change settings via email:
   mailto:rabbit-semi-digest@yahoogroups.com
   mailto:rabbit-semi-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
   rabbit-semi-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
   http://docs.yahoo.com/info/terms/




--
Thorsteinn Mar Arinbjarnarson
Engineer (R&D)
Hafmynd ehf - Gavia, The Great Northern Diver
www.gavia.is
Tel: (+354) 511-2990
Fax: (+354) 511-2999

#39091 From: "ebrains2003" <ebrains2003@...>
Date: Thu Jul 9, 2009 2:47 pm
Subject: Re: Rabbit Web
ebrains2003
Offline Offline
Send Email Send Email
 
--- In rabbit-semi@yahoogroups.com, Alexis <alexis@...> wrote:
>
>
> Hi All
>
> I am having an issue with Rabbit Web.
>
> Sometimes I have to push the submit button more than once.
>
> Anyone else out there have any pointers?
>
> A.
>

Seeing as how you submitted this question twice, maybe the problem is in your
web browser and not with Rabbit Web.




#39092 From: "ebrains2003" <ebrains2003@...>
Date: Thu Jul 9, 2009 2:49 pm
Subject: Re: Rabbit Web
ebrains2003
Offline Offline
Send Email Send Email
 
--- In rabbit-semi@yahoogroups.com, "ebrains2003" <ebrains2003@...> wrote:
>
> --- In rabbit-semi@yahoogroups.com, Alexis <alexis@> wrote:
> >
> >
> > Hi All
> >
> > I am having an issue with Rabbit Web.
> >
> > Sometimes I have to push the submit button more than once.
> >
> > Anyone else out there have any pointers?
> >
> > A.
> >
>
> Seeing as how you submitted this question twice, maybe the problem is in your
web browser and not with Rabbit Web.
>

Nevermind...it only looked like you submitted it twice as viewed in my RSS feed
(the second post was evidently a quote on another answer).




#39099 From: Alexis <alexis@...>
Date: Mon Jul 13, 2009 10:42 am
Subject: Ethernet connection
alexisjhn
Offline Offline
Send Email Send Email
 
How does one tell when a client has connected to the Ethernet or PPP
port of the Rabbit?

Regards

A.





#39102 From: Kenny Millar <kennymillar@...>
Date: Mon Jul 13, 2009 11:03 am
Subject: RE: Ethernet connection
kennymillar2000
Offline Offline
Send Email Send Email
 
You will already have done something like this...
tcp_reserveport(PORT);
tcp_listen(&commsSock,PORT,0,0,NULL,0);

So now you must periodically call
tcp_tick(&commsSock);

And then when:
sock_established(&commsSock) == true
you know your client has connected.

You know the client has disconnected when:
tcp_tick(&commsSock)==0


Hope this helps.
Kenny.


-----Original Message-----
From: rabbit-semi@yahoogroups.com [mailto:rabbit-semi@yahoogroups.com] On
Behalf Of Alexis
Sent: 13 July 2009 11:43
To: rabbit-semi@yahoogroups.com
Subject: [rabbit-semi] Ethernet connection

How does one tell when a client has connected to the Ethernet or PPP
port of the Rabbit?

Regards

A.




------------------------------------

Yahoo! Groups Links






#39109 From: Alexis <alexis@...>
Date: Mon Jul 13, 2009 12:34 pm
Subject: Re: Ethernet connection
alexisjhn
Offline Offline
Send Email Send Email
 
Hello Kenny

I am using PPP for the connection.

Where do I get the definition / structure for
tcp_listen(&commsSock,80,0,0,NULL,0);

I looked in TCP.LIB and tried to use that structure but I get an error
message:

I do already have

tcp_reserveport(80);

I get the following error messages when I add tcp_listen

line 577 : ERROR HUMIDITYPPP.C : Expecting function or variable name.
line 577 : WARNING HUMIDITYPPP.C : Wrong type for parameter 1.
line 577 : ERROR HUMIDITYPPP.C : Invalid expression - need lvalue.

regards

A.


Kenny Millar wrote:
>
>
> You will already have done something like this...
> tcp_reserveport(PORT);
> tcp_listen(&commsSock,PORT,0,0,NULL,0);
>
> So now you must periodically call
> tcp_tick(&commsSock);
>
> And then when:
> sock_established(&commsSock) == true
> you know your client has connected.
>
> You know the client has disconnected when:
> tcp_tick(&commsSock)==0
>
> Hope this helps.
> Kenny.
>
> -----Original Message-----
> From: rabbit-semi@yahoogroups.com
> <mailto:rabbit-semi%40yahoogroups.com>
> [mailto:rabbit-semi@yahoogroups.com
> <mailto:rabbit-semi%40yahoogroups.com>] On
> Behalf Of Alexis
> Sent: 13 July 2009 11:43
> To: rabbit-semi@yahoogroups.com <mailto:rabbit-semi%40yahoogroups.com>
> Subject: [rabbit-semi] Ethernet connection
>
> How does one tell when a client has connected to the Ethernet or PPP
> port of the Rabbit?
>
> Regards
>
> A.
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>






#39093 From: "Bob Colwell" <bob.colwell@...>
Date: Fri Jul 10, 2009 12:24 am
Subject: how to transfer a file from PC to RCM4400W?
rpcy
Offline Offline
Send Email Send Email
 

Suppose one wanted to transfer a binary file from a PC to the filesystem on the flash of an RCM4400W. I would have thought the Rabbit File Utility would do that, but it seems geared to downloading .bin files only (which I presume are the executables that the Rabbit processor uses.)

 

RFU does have a window in which you can specify all sorts of interesting things like “8 bit cold loader”, “serial pilot BIOS” and others, but none of them seem like random files like the kind I want to download.

 

Anyone know how to do this? Thanks…-BobC


#39094 From: Scott Henion <shenion@...>
Date: Fri Jul 10, 2009 12:31 am
Subject: Re: how to transfer a file from PC to RCM4400W?
shdesigns2003
Offline Offline
Send Email Send Email
 
Bob Colwell wrote:

Suppose one wanted to transfer a binary file from a PC to the filesystem on the flash of an RCM4400W. I would have thought the Rabbit File Utility would do that, but it seems geared to downloading .bin files only (which I presume are the executables that the Rabbit processor uses.)

 

RFU does have a window in which you can specify all sorts of interesting things like “8 bit cold loader”, “serial pilot BIOS” and others, but none of them seem like random files like the kind I want to download.

 

Anyone know how to do this? Thanks…-BobC


You can add FTP support to your code. you will have to write code to store the file.

I normally define my own protocol and write a PC app and code on the rabbit to handle the transfer.


-- ------------------------------------------
| Scott G. Henion| shenion@... |
| Consultant | Stone Mountain, GA |
| SHDesigns http://www.shdesigns.org |
------------------------------------------
today's fortune Meekness is uncommon patience in planning a worthwhile revenge.

#39095 From: "Ari Barbakos" <abarbakos@...>
Date: Thu Jul 9, 2009 1:11 am
Subject: RE: RCM4xxx way to do equiv of #include?
abarbakos@...
Send Email Send Email
 

You can “#use” your own library file but you have to include the path in the rabbit library directory file, normally located:

C:\DCRABBIT_10.54\LIB.DIR

Just open with a text editor and add the path of your library.

 

Ari

 

From: rabbit-semi@yahoogroups.com [mailto:rabbit-semi@yahoogroups.com] On Behalf Of Bob Colwell
Sent: Thursday, 9 July 2009 10:13 AM
To: rabbit-semi@yahoogroups.com
Subject: RE: [rabbit-semi] RCM4xxx way to do equiv of #include?

 




I’ve succeeded at interfacing to my 2-line LCD display from my RCM4400W module, but I wish I could put all the LCD code into a separate file and #include it. I know Rabbit’s C compiler doesn’t support #include, but is there no way to achieve something similar? “#use” doesn’t quite do what I want – it only seems to know how to point into Rabbit’s own libraries. I want a library of my own.

 

-BobC


#39096 From: Tim S <tim.stahlhut@...>
Date: Thu Jul 9, 2009 12:42 am
Subject: RE: RCM4xxx way to do equiv of #include?
stahta01
Offline Offline
Send Email Send Email
 
Bob Colwell wrote:

> I've succeeded at interfacing to my 2-line LCD display from my RCM4400W
> module, but I wish I could put all the LCD code into a separate file and
> #include it. I know Rabbit's C compiler doesn't support #include, but is
> there no way to achieve something similar? "#use" doesn't quite do what I
> want - it only seems to know how to point into Rabbit's own libraries. I
> want a library of my own.
>
>
>
You can use "#use" with your own libraries; but, you need to add your
libraries to the lib.dir text file.
Note: The lid.dir is read when DC program starts so you must exit and
restart the DC IDE for changes to lib.dir to take effect.

Tim S




 
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help