The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: Re: Code release Nanode xAP One Wire Temp



--e89a8f234bd3eb1da504b8711602
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

On 6 February 2012 09:49, Lehane Kellett <lehane@xxxxxxx> wrote:

> **
>
>
> Strange. I'll take another look at the version without FRAM/SRAM. I
had
> another board working at the
> weekend with and without a 23K256 SRAM.
>
> Just to check you are using Arduino IDE 1.0 and all the libraries in
the
> zip and you don't get an
> ERR:ENC28J60 message and it works with the test Ethershield code?
>
> https://github.com/thiseldo/EtherShield/blob/master/examples/EtherShield_=
DHCPTest/EtherShield_DHCPTest.pde
>
> I guess it may be a library dependency issue I missed.
>
> L
>
Hi Lehane,

I too have seen this problem, and by trail and error have narrowed it down
to the Ethershield code. If i use the code from your zip, i never get
a valid dhcp ip. even if i comment out use dhcp a put in a fixed ip it
doesn't work. Now if i use Andy's test code it doesn't work either. If i
then install Andy's library then his test code works, but your code fails
to compile.

I have narrowed this down to the  :-

void EtherShield::ES_send_udp_broadcast(uint8_t *buf, uint16_t datalen,
uint16_t sport, uint16_t dport){

send_udp_broadcast(buf, datalen, sport, dport);
}
In EtherSheild.cpp and .h

which is missing in the latest Andy's library, i have added this into
the library code and copied the IP_arp_udp_tpc files from your library.

your code now compiles.

But when i load it to the nanode all i get is xAP B

It should be noted that Andy is no longer working on the EtherSheild code
and is instead moving over to EtherCard.

http://blog.thiseldo.co.uk/?p=3D623

Hope this helps, as i don't really know that much about coding.

Regards

Paul



>
> On 05/02/2012 19:39, Christopher wrote:
>
>
>
>
> Yes, I've commented that define out. I've also tried commenting out
DHCP
> to assign a static IP but had no luck.
>
> --- In xap_automation@xxxxxxx, Lehane Kellett
<lehane@...><lehane=
@...>wrote:
> >
> > Hi,
> > Have you changed the compile time #define FRAM option?
> >
> > Has the board worked on Ethernet previously?
> >
> > Lehane
> >
> >
> >
> >
> >
> > On 29/01/2012 15:35, Christopher wrote:
> > >
> > > Thanks for posting this. I've uploaded it to my nanode and
see it
> > > attempting to get an IP address from my DHCP server but it
never seem=
s
> > > to take it. Will this work with an off the shelf nanode or
do I need
> > > to add on a FM25256 chip on the bottom of the board?
> > >
> > > Thanks
> > >
> > > --- In xap_automation@xxxxxxx
> > > <mailto:xap_automation%40yahoogroups.com><xap_automation%40yahoogroup=
s.com>,
> Lehane Kellett <lehane@>
> > > wrote:
> > > >
> > > > Whilst I haven't finished the final test around the
number of senso=
rs
> > > > per pin, I've decided to release the code anyway.
> > > >
> > > > Please feel free to improve, etc., as you see fit.
> > > >
> > > > http://www.mm-wave.com/honeycottage/bsctemp.htm
for more info and
> the
> > > > code download.
> > > >
> > > > Regards,
> > > > Lehane
> > > >
> > >
> > >
> >
>
>
>=20=20
>



--=20
Paul Smith

Your Local Computer Specialist, Supporting Your Business When You Need It
Most

Tel:-  0845 009 6226

This email and any attachments may be confidential and/or privileged.
Everything is intended for use of the addressee only. If you receive this
message in error then you must not print it or pass it on to anyone else or
use the information it contains.  Please inform Phoenix Technology UK  of
the error by email or by telephoning (+44)(0)845 009 6226.  Please then
delete all copies from your system.
If you are not the intended recipient then you must not use the information
in the message or attachments or allow anyone else to do so.

--e89a8f234bd3eb1da504b8711602
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable





<head>

<style type=3D"text/css">
<!--

/* start of attachment style */
.ygrp-photo-title{
clear: both;
font-size: smaller;
height: 15px;
overflow: hidden;
text-align: center;
width: 75px;
}
div.ygrp-photo{
background-position: center;
background-repeat: no-repeat;
background-color: white;
border: 1px solid black;
height: 62px;
width: 62px;
}

div.photo-title=20
a,
div.photo-title a:active,
div.photo-title a:hover,
div.photo-title a:visited {
text-decoration: none;=20
}

div.attach-table div.attach-row {
clear: both;
}

div.attach-table div.attach-row div {
float: left;
/* margin: 2px;*/
}

p {
clear: both;
padding: 15px 0 3px 0;
overflow: hidden;
}

div.ygrp-file {
width: 30px;
valign: middle;
}
div.attach-table div.attach-row div div a {
text-decoration: none;
}

div.attach-table div.attach-row div div span {
font-weight: normal;
}

div.ygrp-file-title {
font-weight: bold;
}
/* end of attachment style */
-->
</style>
</head>
<html>
<head>
<style type=3D"text/css">
<!--
#ygrp-mkp {
border: 1px solid #d8d8d8;
font-family: Arial;
margin: 10px 0;
padding: 0 10px;
}

#ygrp-mkp hr {
border: 1px solid #d8d8d8;
}

#ygrp-mkp #hd {
color: #628c2a;
font-size: 85%;
font-weight: 700;
line-height: 122%;
margin: 10px 0;
}

#ygrp-mkp #ads {
margin-bottom: 10px;
}

#ygrp-mkp .ad {
padding: 0 0;
}

#ygrp-mkp .ad p {
margin: 0;
}

#ygrp-mkp .ad a {
color: #0000ff;
text-decoration: none;
}
-->
</style>
</head>
<body>



<!-- **begin egp html banner** -->

<br><br>

<!-- **end egp html banner** -->


<br><br><div class=3D"gmail_quote">On 6
February 2012 09:49, Lehane Kellett=
<span dir=3D"ltr">&lt;<a href=3D"mailto:lehane@xxxxxxx";>lehane@mm-wave=
.com</a>&gt;</span> wrote:<br><blockquote
class=3D"gmail_quote" style=3D"ma=
rgin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<u></u>










<div style>
<span>=A0</span>


<div>
<div>


<div>
=20=20=20=20=20=20
=20=20=20=20=20=20
<p>
=20=20
=20=20
Strange. I&#39;ll take another look at the version without FRAM/SRAM. I
had another board working at the<br>
weekend with and without a 23K256 SRAM.<br>
<br>
Just to check you are using Arduino IDE 1.0 and all the libraries in
the zip and you don&#39;t get an<br>
ERR:ENC28J60 message and it works with the test Ethershield code?<br>
<a href=3D"https://github.com/thiseldo/EtherShield/blob/master/examples/Eth=
erShield_DHCPTest/EtherShield_DHCPTest.pde"
target=3D"_blank">https://githu=
b.com/thiseldo/EtherShield/blob/master/examples/EtherShield_DHCPTest/EtherS=
hield_DHCPTest.pde</a><br>


<br>
I guess it may be a library dependency issue I missed.<br>
<br>
L</p></div></div></div></div></blockquote><div>Hi
Lehane,</div><div><br=
></div><div>I too have seen this problem, and by trail and
error have narro=
wed it down to the Ethershield code. If i use the code from your zip, i
nev=
er get a=A0valid=A0dhcp ip. even if i comment out use dhcp a put in a
fixed=
ip it doesn&#39;t work. Now if i use Andy&#39;s test code it
doesn&#39;t w=
ork either. If i then install Andy&#39;s=A0library=A0then his test code
wor=
ks, but your code fails to compile.</div>

<div><br></div><div>=A0I have=A0narrowed=A0this
down to the =A0:-</div><div=
><br></div><div><div>void
EtherShield::ES_send_udp_broadcast(uint8_t *buf, =
uint16_t datalen, uint16_t sport, uint16_t
dport){</div><div><br></div><div=
><span class=3D"Apple-tab-span"
style=3D"white-space:pre">	</span>send_udp_=
broadcast(buf, datalen, sport, dport);</div>

<div><span class=3D"Apple-tab-span"
style=3D"white-space:pre">	</span>}</di=
v></div><div>In EtherSheild.cpp and
.h</div><div><br></div><div>which is mi=
ssing in the latest Andy&#39;s=A0library, i have added this into
the=A0libr=
ary=A0code and copied the IP_arp_udp_tpc files from
your=A0library.=A0</div=
>

<div><br></div><div>your code now
compiles.</div><div><br></div><div>But wh=
en i load it to the nanode all i get is=A0xAP
B</div><div><br></div><div>It=
should be noted that Andy is no longer working on the EtherSheild code and=
is instead moving over to EtherCard.</div>

<div><br></div><div><a href=3D"http://blog.thiseldo.co.uk/?p=3D623";>http://=
blog.thiseldo.co.uk/?p=3D623</a>
</div><div><br></div><div>Hope this helps, as
i don&#39;t really know that =
much about
coding.</div><div><br></div><div>Regards</div><div><br></div><di=
v>Paul</div><div><br></div><div><br></div><blockquote
class=3D"gmail_quote"=
style=3D"margin:0 0 0 .8ex;border-left:1px #ccc
solid;padding-left:1ex">

<div style><div><div><div><div><div
class=3D"h5"><br>
<br>
On 05/02/2012 19:39, Christopher wrote:
<blockquote type=3D"cite">
<span>=A0</span>
=20=20=20=20=20=20
<div>
<p><br>
Yes, I&#39;ve commented that define out. I&#39;ve also tried
commenting out DHCP to assign a static IP but had no luck.<br=
>
<br>
--- In <a href=3D"mailto:xap_automation%40yahoogroups.com";
ta=
rget=3D"_blank">xap_automation@xxxxxxx</a>,
Lehane Kellett <a href=3D"mailto:lehane@...";
target=3D"_blank=
">&lt;lehane@...&gt;</a> wrote:<br>
&gt;<br>
&gt; Hi,<br>
&gt; Have you changed the compile time #define FRAM
option?<br>
&gt; <br>
&gt; Has the board worked on Ethernet previously?<br>
&gt; <br>
&gt; Lehane<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; On 29/01/2012 15:35, Christopher wrote:<br>
&gt; &gt;<br>
&gt; &gt; Thanks for posting this. I&#39;ve uploaded it to my
nanode and see it <br>
&gt; &gt; attempting to get an IP address from my DHCP
server but it never seems <br>
&gt; &gt; to take it. Will this work with an off the shelf
nanode or do I need <br>
&gt; &gt; to add on a FM25256 chip on the bottom of the
board?<br>
&gt; &gt;<br>
&gt; &gt; Thanks<br>
&gt; &gt;<br>
&gt; &gt; --- In <a href=3D"mailto:xap_automation%40yahoogrou=
ps.com"
target=3D"_blank">xap_automation@xxxxxxx</a>
<br>
&gt; &gt; <a href=3D"mailto:xap_automation%40yahoogroups.com"=
target=3D"_blank">&lt;mailto:xap_automation%40yahoogroups.com&gt;</a>,
Lehane Kellett &lt;lehane@&gt; <br>
&gt; &gt; wrote:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Whilst I haven&#39;t finished the final test
around the number of sensors<br>
&gt; &gt; &gt; per pin, I&#39;ve decided to release the
code
anyway.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Please feel free to improve, etc., as you
see fit.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; <a href=3D"http://www.mm-wave.com/honeycottage=
/bsctemp.htm" target=3D"_blank">http://www.mm-wave.com/honeycottage/bsctemp=
.htm</a>
for more info and the<br>
&gt; &gt; &gt; code download.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Regards,<br>
&gt; &gt; &gt; Lehane<br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt;<br>
<br>
</p>
</div>
=20=20=20=20=20=20=20=20=20=20
=20=20=20=20=20=20
=20=20=20=20=20=20
</blockquote>
<br>
=20=20

</div></div><p></p>

</div>
=20=20=20=20=20

=20=20=20=20
<div style=3D"color:#fff;min-height:0"></div>


</div>



=20=20






</blockquote></div><br><br
clear=3D"all"><div><br></div>--
<br>Paul Smith<b=
r><br>Your Local Computer Specialist, Supporting Your Business
When You Nee=
d It Most<br><br>Tel:-=A0 0845 009 6226=A0
<br><br>This email and any attac=
hments may be confidential and/or privileged.=A0 Everything is intended
for=
use of the addressee only. If you receive this message in error then you m=
ust not print it or pass it on to anyone else or use the information it
con=
tains.=A0 Please inform Phoenix Technology UK=A0 of the error by email or
b=
y telephoning (+44)(0)845 009 6226.=A0 Please then delete all copies from
y=
our system. <br>

If you are not the intended recipient then you must not use the
information=
in the message or attachments or allow anyone else to do so. <br>




<!-- **begin egp html banner** -->

<br>

=20=20=20=20
=20=20=20=20
<br>

<!-- **end egp html banner** -->


<div width=3D"1" style=3D"color: white; clear:
both;"/>__._,_.___</div>

<!-- Start Recommendations -->
<!-- End Recommendations -->



<!-- **begin egp html banner** -->

<img src=3D"http://geo.yahoo.com/serv?s=3D97476590/grpId=3D9674343/grpspI=
d=3D1705007709/msgId=3D4800/stime=3D1328700616" width=3D"1"
height=3D"1"> <=
br>

<!-- **end egp html banner** -->

=20=20
<!-- **begin egp html banner** -->

<br>
<div style=3D"font-family: verdana; font-size: 77%; border-top: 1px
s=
olid #666; padding: 5px 0;" >
Your email settings: Individual EmailTraditional <br>
<a href=3D"http://groups.yahoo.com/group/xap_automation/join;_ylc=3DX=
3oDMTJmamk1M3Z2BF9TAzk3NDc2NTkwBGdycElkAzk2NzQzNDMEZ3Jwc3BJZAMxNzA1MDA3NzA5=
BHNlYwNmdHIEc2xrA3N0bmdzBHN0aW1lAzEzMjg3MDA2MTY-">Change settings
via the W=
eb</a> (Yahoo! ID required) <br>
Change settings via email: <a href=3D"mailto:xap_automation-digest@ya=
hoogroups.com?subject=3DEmail Delivery: Digest">Switch delivery to
Daily Di=
gest</a>  <a href =3D "mailto:xap_automation-fullfeatured@xxxxxxx?=
subject=3DChange Delivery Format: Fully Featured">Switch to Fully
Featured<=
/a> <br>
<a href=3D"http://groups.yahoo.com/group/xap_automation;_ylc=3DX=
3oDMTJkcmxsMXFqBF9TAzk3NDc2NTkwBGdycElkAzk2NzQzNDMEZ3Jwc3BJZAMxNzA1MDA3NzA5=
BHNlYwNmdHIEc2xrA2hwZgRzdGltZQMxMzI4NzAwNjE2">
Visit Your Group=20
</a>
<a href=3D"http://docs.yahoo.com/info/terms/";>
Yahoo! Groups Terms of Use
</a>
<a href=3D"mailto:xap_automation-unsubscribe@xxxxxxx?subject=
=3DUnsubscribe">
Unsubscribe=20
</a>=20
<br>
</div>
<br>

<!-- **end egp html banner** -->


<div style=3D"color: white; clear:
both;"/>__,_._,___</div>
</body>

</html>

--e89a8f234bd3eb1da504b8711602--

xAP_Automation Main Index | xAP_Automation Thread Index | xAP_Automation Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.