# Rabbit's Vista nightmare

**URL:** <https://forums.digi.com/t/rabbits-vista-nightmare/9857>\
**Category:** Rabbit\
**Created:** [March 27, 2007, 3:36pm UTC](https://forums.digi.com/t/rabbits-vista-nightmare/9857 "2007-03-27T15:36:29Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![dataq](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@dataq](https://forums.digi.com/u/dataq)\
**Post date:** [March 27, 2007, 3:36pm UTC](https://forums.digi.com/t/rabbits-vista-nightmare/9857/1 "2007-03-27T15:36:29Z")

</div>

I am using the following skeleton program, DC 9.21, and Windows Vista  
Home BASIC in my test:

1. Run the following program under DC 9.21
2. Turn on Vista PC
3. Connect a cross over cable between rabbit and Vista PC
4. Rabbit first try DHCP and fall back to 192.168.0.123  
but VistaPC will come up in IPv6! and we can’t talk to rabbit

Once Rabbit falls back to 192.168.0.123, if we disable/enable the  
network controller on Vista PC, it will come up with IPv4, and everything will  
begin to play

I also tried embedded ethernet controller from Lantronix called XPORT,  
and it didn’t cause Vista to switch to IPv6

If I uses a XP PC instead of Vista PC, everything works

If I connect the VistaPC and Rabbit to a DHCP based network, Vista PC  
will come up as IPv4 and everything will play

Disabling “IPv6 on VistaPC” doesn’t solve the problem: VistaPC simply come up with no network in our test

If rabbit is forced to come up with static IP (without DHCP at all), VistaPC will come up in IPv4

I am convinced rabbit’s DHCP section is having a conflict with Vista

Any advise?

Thanks!

\>\>\>\>\>\>\>\>skeleton.c

#define USE\_STDIO

#class auto

#define MAX\_TCP\_SEG 50

#define TCPCONFIG 3  
#define ETH\_MTU 1500  
//#define TCP\_BUF\_SIZE 32768

#define VS\_MAXOFFSET 2

#define DHCP\_MINRETRY 1  
#define VS\_INIT 0  
#define VS\_LISTEN 1  
#define VS\_OPENING 2  
#define VS\_OPEN 3  
#define VS\_WAITCLOSE 4

#define VS\_MODEOFF 0  
#define VS\_MODEACTIVE 1  
#define VS\_MODEPASSIVE 2  
#define TCP\_PORT 23

#memmap xmem  
#use “tcp\_config.lib”

#ifndef DHCP\_CLASS\_ID  
#define DHCP\_CLASS\_ID “Rabbit\_DI731ENA:Z-World:DHCP:1.2.0”  
#endif

#ifndef DHCP\_CLIENT\_ID\_MAC  
#define DHCP\_CLIENT\_ID\_MAC  
#endif

#memmap xmem

#use “dcrtcp.lib”

typedef struct  
{  
int state;  
tcp\_Socket socket;  
} VsState;

VsState vs\_state;

void vs\_init(VsState\* vs\_state)  
{  
vs\_state-\>state=VS\_INIT;  
}

void vs\_handler(VsState\* state)  
{  
auto tcp\_Socket\* socket;  
int iread, i;  
char iInput[255];

```
socket=&amp;state-&gt;socket;

if(state-&gt;state!=VS_INIT &amp;&amp; tcp_tick(socket)==0) {
	state-&gt;state=VS_INIT;
}

switch(state-&gt;state)
{
	case VS_OPEN:
	   iread=sock_dataready(socket);
		if (iread&gt;0){
     	if (iread&gt;200) iread=200;
			i=sock_read(socket, iInput, iread );
        sock_fastwrite(socket,iInput, i);
		}

		break;
	case VS_INIT:
		tcp_listen(socket,TCP_PORT,0,0,NULL,0);
		state-&gt;state=VS_LISTEN;
		break;

	case VS_LISTEN:
	case VS_OPENING:
		if(sock_established(socket)) {
			state-&gt;state=VS_OPEN;
			sock_mode(socket,TCP_MODE_BINARY);
		}
		break;
	case VS_WAITCLOSE:
		break;

	default:
		state-&gt;state=VS_INIT;
		break;
}

```

}

root void main()  
{  
char ipbuf[16];  
sock\_init();

#define myDHCP 1  
#ifdef myDHCP  
ifconfig (IF\_ETH0,  
IFS\_IPADDR, aton(“192.168.0.123”),  
IFS\_ICMP\_CONFIG, 1,  
IFS\_DHCP, 1,  
// IFS\_DHCP\_TIMEOUT, 20,  
IFS\_DHCP\_FALLBACK, 1,  
IFS\_UP,  
IFS\_END);

#else  
ifconfig (IF\_ETH0,  
IFS\_DHCP, 0,  
IFS\_IPADDR, aton(“192.168.0.123”),  
IFS\_UP,  
IFS\_END);  
#endif  
vs\_init(&vs\_state);

while (ifpending(IF\_ETH0) == 1){  
tcp\_tick(NULL);  
}

Enable\_HW\_WDT();  
printf (“Reset!”);

while (1) {  
tcp\_tick(NULL);  
vs\_handler(&vs\_state);  
}  
}

---

<div class="post-metadata">

**Author:** ![dataq](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@dataq](https://forums.digi.com/u/dataq)\
**Post date:** [March 29, 2007, 3:39pm UTC](https://forums.digi.com/t/rabbits-vista-nightmare/9857/2 "2007-03-29T15:39:29Z")

</div>

Here is the email from rabbit’s FAE:

“I have done more testing and you are correct, there are some issues with Vista and rabbit DHCP. At this time we do not have a solution. I know that our software department will be looking into Vista compatibility but as of now we do not have Vista compatibility”

---

<div class="post-metadata">

**Author:** ![dataq](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@dataq](https://forums.digi.com/u/dataq)\
**Post date:** [June 26, 2007, 6:02pm UTC](https://forums.digi.com/t/rabbits-vista-nightmare/9857/3 "2007-06-26T18:02:27Z")

</div>

DC 9.52’s log doesn’t seem to address the Vista bug

---

<div class="post-metadata">

**Author:** ![kvb](https://avatars.discourse-cdn.com/v4/letter/k/6f9a4e/32.png) [@kvb](https://forums.digi.com/u/kvb)\
**Post date:** [March 13, 2009, 4:58pm UTC](https://forums.digi.com/t/rabbits-vista-nightmare/9857/4 "2009-03-13T16:58:15Z")

</div>

Hi,

Still seeing similar issue with rabbit and vista. It appears the rabbit bios interprets an arp probe as an assignment. Causes ip conflict in vista. Has this issue been addressed?

thanks,  
kvb

---

<div class="post-metadata">

**Author:** ![dataq](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@dataq](https://forums.digi.com/u/dataq)\
**Post date:** [April 26, 2007, 7:58pm UTC](https://forums.digi.com/t/rabbits-vista-nightmare/9857/5 "2007-04-26T19:58:01Z")

</div>

Still having the Vista nightmare…

---

<div class="post-metadata">

**Author:** ![dataq](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@dataq](https://forums.digi.com/u/dataq)\
**Post date:** [May 24, 2007, 6:48pm UTC](https://forums.digi.com/t/rabbits-vista-nightmare/9857/6 "2007-05-24T18:48:41Z")

</div>

😕

---

<div class="post-metadata">

**Author:** ![dataq](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@dataq](https://forums.digi.com/u/dataq)\
**Post date:** [September 17, 2007, 1:50pm UTC](https://forums.digi.com/t/rabbits-vista-nightmare/9857/7 "2007-09-17T13:50:22Z")

</div>

Hi, please address this issue.

---

<div class="post-metadata">

**Author:** ![dataq](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@dataq](https://forums.digi.com/u/dataq)\
**Post date:** [March 13, 2009, 6:23pm UTC](https://forums.digi.com/t/rabbits-vista-nightmare/9857/8 "2009-03-13T18:23:06Z")

</div>

The problem is not resolved:

[http://tech.groups.yahoo.com/group/rabbit-semi/message/35502](http://tech.groups.yahoo.com/group/rabbit-semi/message/35502)

---

<div class="post-metadata">

**Author:** ![kvb](https://avatars.discourse-cdn.com/v4/letter/k/6f9a4e/32.png) [@kvb](https://forums.digi.com/u/kvb)\
**Post date:** [March 13, 2009, 6:41pm UTC](https://forums.digi.com/t/rabbits-vista-nightmare/9857/9 "2009-03-13T18:41:15Z")

</div>

2 years later still not compatible with windows vista? Really?

---

<div class="post-metadata">

**Author:** ![Margaret](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@Margaret](https://forums.digi.com/u/Margaret)\
**Post date:** [March 24, 2009, 9:04pm UTC](https://forums.digi.com/t/rabbits-vista-nightmare/9857/10 "2009-03-24T21:04:49Z")

</div>

Our curret releases of Dynamci C are Vista compatible.
