# rabbit 4300 tcp/ip sample code not working

**URL:** <https://forums.digi.com/t/rabbit-4300-tcp-ip-sample-code-not-working/10993>\
**Category:** Rabbit\
**Created:** [January 10, 2012, 6:28am UTC](https://forums.digi.com/t/rabbit-4300-tcp-ip-sample-code-not-working/10993 "2012-01-10T06:28:25Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![amey](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@amey](https://forums.digi.com/u/amey)\
**Post date:** [January 10, 2012, 6:28am UTC](https://forums.digi.com/t/rabbit-4300-tcp-ip-sample-code-not-working/10993/1 "2012-01-10T06:28:25Z")

</div>

hi all,  
i m novice to this rabbit world still i have worked on some sample codes. but I m facing problem with sample code in TCP/IP on RCM 4300 target board with Dynamic C10 version.  
in the sample code itself, they have declared as

1. " if CPU\_ID\_MASK(_CPU\_ID_) \>= R4000 "

2. fatal “This sample is not currently supported by Rabbit 4000 based products.”  
#endif

so does it implies that tcp/ip will not work for processor id \> 4000?  
please help me. thank you !!!

---

<div class="post-metadata">

**Author:** ![petermcs](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@petermcs](https://forums.digi.com/u/petermcs)\
**Post date:** [January 10, 2012, 7:05am UTC](https://forums.digi.com/t/rabbit-4300-tcp-ip-sample-code-not-working/10993/2 "2012-01-10T07:05:48Z")

</div>

Which sample program and which version of DC are you talking about?

I did a quick search through the samples with DC 10.66 and the only programs with that check in were all to do with LCD displays which are probably not present on any of the R4000/R5000/R6000 dev boards.

Regards,  
Peter

---

<div class="post-metadata">

**Author:** ![amey](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@amey](https://forums.digi.com/u/amey)\
**Post date:** [January 10, 2012, 7:21am UTC](https://forums.digi.com/t/rabbit-4300-tcp-ip-sample-code-not-working/10993/3 "2012-01-10T07:21:51Z")

</div>

@petermcs:- \RABBITSYS\DCRABBIT\_10.64\Samples\LCD\_Keypad\122x32\_1x7\TCPIP… i can also attach code if u need. its DC 10.64. please check this code. thank you.

---

<div class="post-metadata">

**Author:** ![pramesh56](https://avatars.discourse-cdn.com/v4/letter/p/779978/32.png) [@pramesh56](https://forums.digi.com/u/pramesh56)\
**Post date:** [January 22, 2012, 12:06pm UTC](https://forums.digi.com/t/rabbit-4300-tcp-ip-sample-code-not-working/10993/4 "2012-01-22T12:06:31Z")

</div>

hello guys  
i want to connect the 122\*32 lcd to rabbit 4000  
how can i connect?  
can ne1 guide me?

---

<div class="post-metadata">

**Author:** ![petermcs](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@petermcs](https://forums.digi.com/u/petermcs)\
**Post date:** [January 10, 2012, 10:05am UTC](https://forums.digi.com/t/rabbit-4300-tcp-ip-sample-code-not-working/10993/5 "2012-01-10T10:05:28Z")

</div>

The examples in that directory are only for use with LCD displays.  
The readme.c file explains what you need to do if you have a custom LCD attached to your hardware.

Regards,  
Peter

---

<div class="post-metadata">

**Author:** ![amey](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@amey](https://forums.digi.com/u/amey)\
**Post date:** [January 10, 2012, 11:26am UTC](https://forums.digi.com/t/rabbit-4300-tcp-ip-sample-code-not-working/10993/6 "2012-01-10T11:26:42Z")

</div>

thanks peter. BTW can u tell what  
1)" if CPU\_ID\_MASK(_CPU\_ID_) \>= R4000 "

1. fatal “This sample is not currently supported by Rabbit 4000 based products.”  
#endif  
implies? it will be a gr8 help for me.  
thank u…!!! 😃

---

<div class="post-metadata">

**Author:** ![petermcs](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@petermcs](https://forums.digi.com/u/petermcs)\
**Post date:** [January 10, 2012, 11:40am UTC](https://forums.digi.com/t/rabbit-4300-tcp-ip-sample-code-not-working/10993/7 "2012-01-10T11:40:11Z")

</div>

It’s just a quick test to see if you are trying to compile this code for a rabbit 4000, rabbit 5000 or rabbit 6000 target system. It is used in this case to stop you compiling the code for a system which does not have any LCD support by default.

Regards,  
Peter

---

<div class="post-metadata">

**Author:** ![amey](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@amey](https://forums.digi.com/u/amey)\
**Post date:** [January 11, 2012, 2:38pm UTC](https://forums.digi.com/t/rabbit-4300-tcp-ip-sample-code-not-working/10993/8 "2012-01-11T14:38:09Z")

</div>

hey peter, 1 last question  
if i use LCD 122X32 and keypad 1x7 and if i execute this sample, will it run successfully on 4300 rabbit?  
and which port should i use to connect my LCD with rabbit 4300?  
again thank u very much 😃

---

<div class="post-metadata">

**Author:** ![petermcs](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@petermcs](https://forums.digi.com/u/petermcs)\
**Post date:** [January 11, 2012, 2:50pm UTC](https://forums.digi.com/t/rabbit-4300-tcp-ip-sample-code-not-working/10993/9 "2012-01-11T14:50:25Z")

</div>

You would need to look at the circuit for one of the RABBIt 3000 products that does have a keypad and LCD to see what way to connect the hardware up. You would then need to ensure the libs can talk to the hardware and remove the CPU check to allow them to run.

I’m not sure how much work would be involved in all this.

Regards,  
Peter

---

<div class="post-metadata">

**Author:** ![harliniJshenoy](https://avatars.discourse-cdn.com/v4/letter/h/dfb087/32.png) [@harliniJshenoy](https://forums.digi.com/u/harliniJshenoy)\
**Post date:** [January 16, 2012, 12:01pm UTC](https://forums.digi.com/t/rabbit-4300-tcp-ip-sample-code-not-working/10993/10 "2012-01-16T12:01:21Z")

</div>

1 Que ?  
Can i Connect My LCD with my CPU vai. Wireless Connection??

[weight watchers online coupon](http://free-online-diets-reviews.com)
