This is a group for folks designing and programming embedded systems using the Rabbit Semiconductor C-programmable microcontroller. Rabbit Semi is a spin-off from Z-World who makes a variety of embedded modules and tools. This group is not affiliated with either Rabbit or Z-World, but is a user forum for sharing ideas, asking questions,
flaunting knowledge, and other typical user group stuff. The Rabbit is a powerful uC, supported by a full-featured C-compiler.
RCM4300 ethernet cable detect problem - mfawzy79 - Jul 2 1:50:20 2009
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
------------------------------------

(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )
Re: RCM4300 ethernet cable detect problem - mfawzy79 - Jul 2 2:02:18 2009
for more info, this problem appears random not all the time
--- In r...@yahoogroups.com, "mfawzy79"
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
>
------------------------------------

(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )Re: RCM4300 ethernet cable detect problem - Tom Collins - Jul 4 1:43:36 2009
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

(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )
Re: RCM4300 ethernet cable detect problem - mfawzy79 - Jul 5 1:40:47 2009
actually, I'm already using DC 10.54 and i'm still having the problem
Best Regards
MFawzy
--- In r...@yahoogroups.com, Tom Collins
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
>
------------------------------------

(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )Re: Re: RCM4300 ethernet cable detect problem - Scott Henion - Jul 5 3:16:18 2009
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| s...@shdesigns.org |
| Consultant | Stone Mountain, GA |
| SHDesigns http://www.shdesigns.org |
------------------------------------------
------------------------------------

(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )
RE: RCM4xxx way to do equiv of #include? - Bob Colwell - Jul 8 20:13:32 2009
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

(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )
Re: RCM4xxx way to do equiv of #include? - Scott Henion - Jul 8 21:48:47 2009
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| s...@shdesigns.org |
| 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"

(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )
Rabbit Web - Alexis - Jul 9 9:48:27 2009
Re: Rabbit Web - Thorsteinn Mar Arinbjarnarson - Jul 9 10:35:35 2009
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
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
--
Thorsteinn Mar Arinbjarnarson
Engineer (R&D)
Hafmynd ehf - Gavia, The Great Northern Diver
www.gavia.is
Tel: (+354) 511-2990
Fax: (+354) 511-2999

(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )Re: Rabbit Web - ebrains2003 - Jul 9 10:48:55 2009
--- In r...@yahoogroups.com, 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.
------------------------------------
______________________________
controlSUITE software. Comprehensive. Intuitive. Optimized.
Real-world software for real-time control. Details Here!

(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )Re: Rabbit Web - ebrains2003 - Jul 9 10:49:47 2009
--- In r...@yahoogroups.com, "ebrains2003"
wrote:
>
> --- In r...@yahoogroups.com, 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).
------------------------------------

(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )how to transfer a file from PC to RCM4400W? - Bob Colwell - Jul 9 20:25:16 2009
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 need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )
Re: how to transfer a file from PC to RCM4400W? - Scott Henion - Jul 9 20:31:49 2009
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| s...@shdesigns.org |
| Consultant | Stone Mountain, GA |
| SHDesigns http://www.shdesigns.org |
------------------------------------------
today's fortune
Meekness is uncommon patience in planning a worthwhile revenge.

(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )
RE: RCM4xxx way to do equiv of #include? - Ari Barbakos - Jul 12 23:06:07 2009
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: r...@yahoogroups.com [mailto:r...@yahoogroups.com]
On Behalf Of Bob Colwell
Sent: Thursday, 9 July 2009 10:13 AM
To: r...@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

(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )
Ethernet connection - Alexis - Jul 13 6:44:26 2009
How does one tell when a client has connected to the Ethernet or PPP
port of the Rabbit?
Regards
A.
------------------------------------

(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )
RE: Ethernet connection - Kenny Millar - Jul 13 7:07:14 2009
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: r...@yahoogroups.com [mailto:r...@yahoogroups.com] On
Behalf Of Alexis
Sent: 13 July 2009 11:43
To: r...@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.
------------------------------------
______________________________
controlSUITE software. Comprehensive. Intuitive. Optimized.
Real-world software for real-time control. Details Here!

(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )Re: Ethernet connection - Alexis - Jul 13 8:38:34 2009
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: r...@yahoogroups.com
>
> [mailto:r...@yahoogroups.com
> ] On
> Behalf Of Alexis
> Sent: 13 July 2009 11:43
> To: r...@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.
>
> ------------------------------------

(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )RE: Re: RCM4300 ethernet cable detect problem - Paul Kelly - Aug 6 5:51:21 2009
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: r...@yahoogroups.com [mailto:r...@yahoogroups.com] On
Behalf Of Scott Henion
Sent: Sunday, 5 July 2009 3:15 PM
To: r...@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| s...@shdesigns.org |
| Consultant | Stone Mountain, GA |
| SHDesigns http://www.shdesigns.org |
------------------------------------------
------------------------------------

(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )
RE: Re: RCM4300 ethernet cable detect problem - Paul Kelly - Aug 7 18:09:39 2009
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: r...@yahoogroups.com [mailto:r...@yahoogroups.com] On
Behalf Of Paul Kelly
Sent: Thursday, 6 August 2009 5:49 PM
To: r...@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: r...@yahoogroups.com [mailto:r...@yahoogroups.com] On
Behalf Of Scott Henion
Sent: Sunday, 5 July 2009 3:15 PM
To: r...@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| s...@shdesigns.org |
| Consultant | Stone Mountain, GA |
| SHDesigns http://www.shdesigns.org |
------------------------------------------
------------------------------------

(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )