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: Code release Nanode xAP One Wire Temp



--------------020608070700050809040102
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit

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
it to run for 24 hrs before pushing the code out to github. If it is
still OK 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 no 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
>> <mailto: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=623
>>
>> 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
>>>     <mailto:xap_automation%40yahoogroups.com>,
Lehane Kellett
>>>     <lehane@...> <mailto: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 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>
>>>     > > <mailto:xap_automation%40yahoogroups.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.
>
>


--------------020608070700050809040102
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: 8bit





<head>

<style type="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
a,
div.photo-title a:active,
div.photo-title a:hover,
div.photo-title a:visited {
text-decoration: none;
}

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>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">


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

<br><br>

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



OK,<br>
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 it to run for 24 hrs before pushing the code
out to github. If it is still OK by tomorrow evening then I'll
commit the changes.<br>
<br>
Lehane<br>
<br>
<br>
On 08/02/2012 11:52, Lehane Kellett wrote:
<blockquote cite="mid:4F326218.9060904@xxxxxxx"
type="cite">
<span style="display:none"> </span>

<div id="ygrp-text">
<p> Hi Paul,<br>
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 no UDP broadcast function. Also I found
I needed to set promiscous mode in order to see all
incoming xAP packets.<br>
<br>
I'll update here when done and the source on github (moved
from the website). Hopefully tomorrow.<br>
<br>
Lehane<br>
<br>
<br>
On 08/02/2012 10:08, Paul Smith wrote: </p>
<blockquote
cite="mid:CAAYxDC-pOV+RVtQSLYaQoM+1SMDJZrmFJfo_9F=9RF9J2HkCrw@xxxxxxx"
type="cite"> <span> </span>
<div id="ygrp-text">
<p><br>
<br>
</p>
<div class="gmail_quote">On 6 February 2012 09:49,
Lehane Kellett <span dir="ltr">&lt;<a
moz-do-not-send="true" moz="true"
href="mailto:lehane@xxxxxxx";>lehane@xxxxxxx</a>&gt;</span>
wrote:<br>
<blockquote class="gmail_quote" style="border-left:1px
#ccc solid;">
<div> <span> </span>
<div>
<div>
<div>
<p> Strange. I'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't get an<br>
ERR:ENC28J60 message and it works with the
test Ethershield code?<br>
<a moz-do-not-send="true" moz="true"
href="https://github.com/thiseldo/EtherShield/blob/master/examples/EtherShield_DHCPTest/EtherShield_DHCPTest.pde";
target="_blank">https://github.com/thiseldo/EtherShield/blob/master/examples/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 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.</div>
<div><br>
</div>
<div> I have narrowed this down to the
 :-</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="Apple-tab-span"
style="white-space:pre;"> </span>send_udp_broadcast(buf,

datalen, sport, dport);</div>
<div><span class="Apple-tab-span"
style="white-space:pre;"> </span>}</div>
</div>
<div>In EtherSheild.cpp and .h</div>
<div><br>
</div>
<div>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. </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 xAP
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 moz-do-not-send="true" moz="true"
href="http://blog.thiseldo.co.uk/?p=623";>http://blog.thiseldo.co.uk/?p=623</a>
</div>
<div><br>
</div>
<div>Hope this helps, as i don't really know that much
about coding.</div>
<div><br>
</div>
<div>Regards</div>
<div><br>
</div>
<div>Paul</div>
<div><br>
</div>
<div><br>
</div>
<blockquote class="gmail_quote" style="border-left:1px
#ccc solid;">
<div>
<div>
<div>
<div>
<div>
<div class="h5"><br>
<br>
On 05/02/2012 19:39, Christopher wrote:
<blockquote type="cite"> <span> </span>
<div>
<p><br>
Yes, I've commented that define
out. I've also tried commenting
out DHCP to assign a static IP but
had no luck.<br>
<br>
--- In <a moz-do-not-send="true"
moz="true"
href="mailto:xap_automation%40yahoogroups.com";
target="_blank">xap_automation@xxxxxxx</a>,
Lehane Kellett <a
moz-do-not-send="true"
moz="true"
href="mailto:lehane@...";
target="_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'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
moz-do-not-send="true"
moz="true"
href="mailto:xap_automation%40yahoogroups.com";
target="_blank">xap_automation@xxxxxxx</a>
<br>
&gt; &gt; <a
moz-do-not-send="true"
moz="true"
href="mailto:xap_automation%40yahoogroups.com";
target="_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't
finished the final test around the
number of sensors<br>
&gt; &gt; &gt; per pin, I'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
moz-do-not-send="true"
moz="true"
href="http://www.mm-wave.com/honeycottage/bsctemp.htm";
target="_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="all">
<div><br>
</div>
-- <br>
Paul Smith<br>
<br>
Your Local Computer Specialist, Supporting Your Business
When You Need It Most<br>
<br>
Tel:-  0845 009 6226  <br>
<br>
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. <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>
<!-- end group email --> </blockquote>
<br>
</div>


<!-- end group email -->
</blockquote>
<br>




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

<br>



<br>

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


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

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



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

<img src="http://geo.yahoo.com/serv?s=97476590/grpId=9674343/grpspId=1705007709/msgId=4802/stime=1328714870";
width="1" height="1"> <br>

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


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

<br>
<div style="font-family: verdana; font-size: 77%; border-top: 1px
solid #666; padding: 5px 0;" >
Your email settings: Individual EmailTraditional <br>
<a href="http://groups.yahoo.com/group/xap_automation/join;_ylc=X3oDMTJmaTc4YzJwBF9TAzk3NDc2NTkwBGdycElkAzk2NzQzNDMEZ3Jwc3BJZAMxNzA1MDA3NzA5BHNlYwNmdHIEc2xrA3N0bmdzBHN0aW1lAzEzMjg3MTQ4NzA-";>Change
settings via the Web</a> (Yahoo! ID required) <br>
Change settings via email: <a href="mailto:xap_automation-digest@xxxxxxx?subject=Email
Delivery: Digest">Switch delivery to Daily Digest</a>  <a
href = "mailto:xap_automation-fullfeatured@xxxxxxx?subject=Change
Delivery Format: Fully Featured">Switch to Fully Featured</a>
<br>
<a href="http://groups.yahoo.com/group/xap_automation;_ylc=X3oDMTJkY3Jya3I3BF9TAzk3NDc2NTkwBGdycElkAzk2NzQzNDMEZ3Jwc3BJZAMxNzA1MDA3NzA5BHNlYwNmdHIEc2xrA2hwZgRzdGltZQMxMzI4NzE0ODcw";>
Visit Your Group
</a>
<a href="http://docs.yahoo.com/info/terms/";>
Yahoo! Groups Terms of Use
</a>
<a href="mailto:xap_automation-unsubscribe@xxxxxxx?subject=Unsubscribe";>
Unsubscribe
</a>
<br>
</div>
<br>

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


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

--------------020608070700050809040102--

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.