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.
issue : ifconfig - fredolamainfroide - Jun 24 12:06:42 2008
Hi all
I have an issue concerning ifconfig. I try to wake up ethernet
interface on RCM4300.
When i run :
-------
ifconfig(IF_ETH0, IFS_UP, IFS_END);
while (ifpending(IF_DEFAULT) == IF_COMING_UP) {
tcp_tick(NULL);
}
-------
the loop never ends!
Why the status doesn't turn to IF_UP ?
Thanks
------------------------------------

(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )
Re: issue : ifconfig - joejaworski - Jun 24 17:42:26 2008
Have you set static/dynamic, IP addr, router, and nameserver before
trying to bring it up?
--- In r...@yahoogroups.com, "fredolamainfroide"
wrote:
>
> Hi all
> I have an issue concerning ifconfig. I try to wake up ethernet
> interface on RCM4300.
> When i run :
> -------
> ifconfig(IF_ETH0, IFS_UP, IFS_END);
> while (ifpending(IF_DEFAULT) == IF_COMING_UP) {
> tcp_tick(NULL);
> }
> -------
>
> the loop never ends!
> Why the status doesn't turn to IF_UP ?
>
> Thanks
>
------------------------------------

(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )Re: issue : ifconfig - fredolamainfroide - Jun 25 3:05:10 2008
Yes, I set static ip configuration :
--------
#define TCPCONFIG 1
#define _PRIMARY_STATIC_IP "192.168.0.158"
#define _PRIMARY_NETMASK "255.255.255.0"
#define MY_GATEWAY "192.168.0.1"
#define MY_NAMESERVER "192.168.0.1"
--------
--- In r...@yahoogroups.com, "joejaworski"
wrote:
>
> Have you set static/dynamic, IP addr, router, and nameserver before
> trying to bring it up?
> --- In r...@yahoogroups.com, "fredolamainfroide"
> wrote:
> >
> > Hi all
> > I have an issue concerning ifconfig. I try to wake up ethernet
> > interface on RCM4300.
> > When i run :
> > -------
> > ifconfig(IF_ETH0, IFS_UP, IFS_END);
> > while (ifpending(IF_DEFAULT) == IF_COMING_UP) {
> > tcp_tick(NULL);
> > }
> > -------
> >
> > the loop never ends!
> > Why the status doesn't turn to IF_UP ?
> >
> > Thanks
>
------------------------------------

(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )Re: issue : ifconfig - Omar - Jun 25 7:40:17 2008
I understand that ifconfig is for change the ip address in run time.
I always use this with an IP address asociated,
For example:
ifconfig(IF_ETH0, IFS_IPADDR, aton("192.168.0.158"),
IFS_NETMASK, aton("255.255.255.0"),
IFS_ROUTER_SET, aton("192.168.0.1"),
IFS_NAMESERVER_SET, aton("192,168.0.1"),
IFS_UP,
IFS_END);
The strings can be chanded for variables, as config.wdirip,
config.wmask,....
The aton function is for convering the char to IP format address.
Omar
--- In r...@yahoogroups.com, "fredolamainfroide"
wrote:
>
> Yes, I set static ip configuration :
> --------
> #define TCPCONFIG 1
> #define _PRIMARY_STATIC_IP "192.168.0.158"
> #define _PRIMARY_NETMASK "255.255.255.0"
> #define MY_GATEWAY "192.168.0.1"
> #define MY_NAMESERVER "192.168.0.1"
> --------
> --- In r...@yahoogroups.com, "joejaworski" wrote:
> >
> > Have you set static/dynamic, IP addr, router, and nameserver before
> > trying to bring it up?
> >
> >
> >
> >
> > --- In r...@yahoogroups.com, "fredolamainfroide"
> > wrote:
> > >
> > > Hi all
> > > I have an issue concerning ifconfig. I try to wake up ethernet
> > > interface on RCM4300.
> > > When i run :
> > > -------
> > > ifconfig(IF_ETH0, IFS_UP, IFS_END);
> > > while (ifpending(IF_DEFAULT) == IF_COMING_UP) {
> > > tcp_tick(NULL);
> > > }
> > > -------
> > >
> > > the loop never ends!
> > > Why the status doesn't turn to IF_UP ?
> > >
> > > Thanks
> > >
>
------------------------------------

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