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



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

Great stuff Lehane, If you want me to test it just shout.

Regards

Paul
On Feb 8, 2012 3:27 PM, "Lehane Kellett" <lehane@xxxxxxx>
wrote:

> **
>
>
> OK,
> I'd already started the conversion to Ethercard last night and I
managed
> to complete it at lunchtime. Initial tests on both DHCP assignment and
> static IP worked fine with both webpage and UDP working. I'd prefer
for i=
t
> to run for 24 hrs before pushing the code out to github. If it is
still O=
K
> by tomorrow evening then I'll commit the changes.
>
> Lehane
>
>
> On 08/02/2012 11:52, Lehane Kellett wrote:
>
>
>
> Hi Paul,
> OK, there is certainly an issue around fixed IP and Ethershield, as
well
> as a couple of ifdef's required in my code.  I have already started
the
> work to migrate to Ethercard but there are a number of functions
missing
> which I'll add, primarily the use of byte for the UDP buffer length
and n=
o
> UDP broadcast function. Also I found I needed to set promiscous mode
in
> order to see all incoming xAP packets.
>
> I'll update here when done and the source on github (moved from the
> website). Hopefully tomorrow.
>
> Lehane
>
>
> On 08/02/2012 10:08, Paul Smith wrote:
>
>
>
>
>
>  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
ge=
t
> 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@...><lehan=
e@...>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
>> seems
>> > > 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%40yahoogrou=
ps.com>,
>> Lehane Kellett <lehane@>
>> > > wrote:
>> > > >
>> > > > Whilst I haven't finished the final test around the
number of
>> sensors
>> > > > 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
>> > > >
>> > >
>> > >
>> >
>>
>>
>>
>
>
>  --
> 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.
>
>
>
>=20=20
>

--e0cb4e385e02b10a1804b87592a8
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** -->


<p>Great stuff Lehane, If you want me to test it just
shout.</p>
<p>Regards </p>
<p>Paul </p>
<div class=3D"gmail_quote">On Feb 8, 2012 3:27 PM,
&quot;Lehane Kellett&quo=
t; &lt;<a href=3D"mailto:lehane@xxxxxxx";>lehane@xxxxxxx</a>&gt;
wro=
te:<br type=3D"attribution"><blockquote
class=3D"gmail_quote" style=3D"marg=
in: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
OK,<br>
I&#39;d already started the conversion to Ethercard last night and I
managed to complete it at lunchtime. Initial tests on both DHCP
assignment and static IP worked fine with both webpage and UDP
working. I&#39;d prefer for it to run for 24 hrs before pushing the
cod=
e
out to github. If it is still OK by tomorrow evening then I&#39;ll
commit the changes.<br>
<br>
Lehane<br>
<br>
<br>
On 08/02/2012 11:52, Lehane Kellett wrote:
<blockquote type=3D"cite">
<span>=A0</span>
=20=20=20=20=20=20
<div>
<p> Hi Paul,<br>
OK, there is certainly an issue around fixed IP and
Ethershield, as well as a couple of ifdef&#39;s required in m=
y
code.=A0 I have already started the work to migrate to
Ethercard but there are a number of functions missing
which I&#39;ll add, primarily the use of byte for the UDP
buffer length and no UDP broadcast function. Also I found
I needed to set promiscous mode in order to see all
incoming xAP packets.<br>
<br>
I&#39;ll update here when done and the source on github (move=
d
from the website). Hopefully tomorrow.<br>
<br>
Lehane<br>
<br>
<br>
On 08/02/2012 10:08, Paul Smith wrote: </p>
<blockquote type=3D"cite"> <span>=A0</span>
<div>
<p><br>
<br>
</p>
<div class=3D"gmail_quote">On 6 February 2012 09:49,
Lehane Kellett <span dir=3D"ltr">&lt;<a
href=3D"mailto:le=
hane@xxxxxxx"
target=3D"_blank">lehane@xxxxxxx</a>&gt;</span>
wrote:<br>
<blockquote class=3D"gmail_quote"
style=3D"border-left:1p=
x #ccc solid">
<div> <span>=A0</span>
<div>
<div>
<div>
<p> 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/EtherS=
hield/blob/master/examples/EtherShield_DHCPTest/EtherShield_DHCPTest.pde"
t=
arget=3D"_blank">https://github.com/thiseldo/EtherShield/blob/master/exampl=
es/EtherShield_DHCPTest/EtherShield_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 narrowed it down to the Ethershield code.
If i use the code from your zip, i never 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 work either. If i t=
hen
install Andy&#39;s=A0library=A0then his test code works=
, 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 style=3D"white-space:pre-wrap">
</span>send_=
udp_broadcast(buf,

datalen, sport, dport);</div>
<div><span style=3D"white-space:pre-wrap">
</span>}</di=
v>
</div>
<div>In EtherSheild.cpp and .h</div>
<div><br>
</div>
<div>which is missing in the latest Andy&#39;s=A0library,=
i
have added this into the=A0library=A0code and copied th=
e
IP_arp_udp_tpc files from your=A0library.=A0</div>
<div><br>
</div>
<div>your code now compiles.</div>
<div><br>
</div>
<div>But when 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";
targ=
et=3D"_blank">http://blog.thiseldo.co.uk/?p=3D623</a>
</div>
<div><br>
</div>
<div>Hope this helps, as i don&#39;t really know that muc=
h
about coding.</div>
<div><br>
</div>
<div>Regards</div>
<div><br>
</div>
<div>Paul</div>
<div><br>
</div>
<div><br>
</div>
<blockquote class=3D"gmail_quote"
style=3D"border-left:1p=
x #ccc solid">
<div>
<div>
<div>
<div>
<div>
<div><br>
<br>
On 05/02/2012 19:39, Christopher wrote:
<blockquote type=3D"cite"> <span>=A0</span>
<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_automati=
on%40yahoogroups.com"
target=3D"_blank">xap_automation@xxxxxxx</a>,
Lehane Kellett <a href=3D"mailto:leha=
ne@..."
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:xa=
p_automation%40yahoogroups.com"
target=3D"_blank">xap_automation@yahoogroup=
s.com</a>
<br>
&gt; &gt; <a href=3D"mailto:xap_autom=
ation%40yahoogroups.com" target=3D"_blank">&lt;mailto:xap_automation%40yaho=
ogroups.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>
</blockquote>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear=3D"all">
<div><br>
</div>
-- <br>
Paul Smith<br>
<br>
Your Local Computer Specialist, Supporting Your Business
When You Need It Most<br>
<br>
Tel:-=A0 <a href=3D"tel:0845%20009%206226"
value=3D"+448450=
096226" target=3D"_blank">0845 009 6226</a>=A0
<br>
<br>
This email and any attachments 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 must not print it or pass it on to anyone else
or use the information it contains.=A0 Please inform
Phoenix Technology UK=A0 of the error by email or by
telephoning (+44)(0)845 009 6226.=A0 Please then delete
all copies from your 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>
</div>
</blockquote>
<br>
</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

</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>




<!-- **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=3D4803/stime=3D1328715264" 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=
3oDMTJmc2piOW8xBF9TAzk3NDc2NTkwBGdycElkAzk2NzQzNDMEZ3Jwc3BJZAMxNzA1MDA3NzA5=
BHNlYwNmdHIEc2xrA3N0bmdzBHN0aW1lAzEzMjg3MTUyNjQ-">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=
3oDMTJkOWFybjRuBF9TAzk3NDc2NTkwBGdycElkAzk2NzQzNDMEZ3Jwc3BJZAMxNzA1MDA3NzA5=
BHNlYwNmdHIEc2xrA2hwZgRzdGltZQMxMzI4NzE1MjY0">
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>

--e0cb4e385e02b10a1804b87592a8--

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.