Electronics-Related.com
Forums

Simple Ethernet Board with Register

Started by Klaus Kragelund October 29, 2013
> >So, for $10 we have an IP server with ethernet. > Does Microchip provide sample code for this kind of application? I > guess you need to allow for both the USB and Ethernet stacks, and some > additional software?
Yes, you can link in both libraries and call them from your main. Yes, of course, you have to write your main code.
On Tuesday, October 29, 2013 4:16:53 PM UTC+1, Lasse Langwadt Christensen wrote:
> Den tirsdag den 29. oktober 2013 15.24.26 UTC+1 skrev Klaus Kragelund: > > > On Tuesday, October 29, 2013 3:07:55 PM UTC+1, Lasse Langwadt Christensen wrote: > > > > > > > Den tirsdag den 29. oktober 2013 14.59.18 UTC+1 skrev Klaus Kragelund: > > > > > > > > > > > > > > > Hi > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > For a home automation project, I need to control some devices via an ethernet connection. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I could use a raspberry pi, but I am looking for something simpler. In some cases I just need to set or clear a relay. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Do anyone know of a very simple board with an ethernet Phy on (possibly with a logic output), that can be used for this? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Perhaps something like a W5100 based board. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > https://www.sparkfun.com/datasheets/DevTools/Arduino/W5100_Datasheet_v1_1_6.pdf > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Regards > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Klaus > > > > > > > > > > > > > > > > > > > > > > > > > > > > this? http://www.lantronix.com/device-networking/embedded-device-servers/xport.html > > > > > > > > > > > > > Well, almost. Except it costs more than an entire Raspberry Pi board. > > > > > > > but it is simple ;) > > > > > > > > I was looking for something in the neighborhood of 5-10USD. Like: > > > > > > https://www.olimex.com/Products/Modules/Ethernet/ENC28J60-H/ > > > > > > But with an output that could be set without the need for the action of an > > > external microcontroller > > > > > > > several ENC28J60 boards on ebay for 3-4$, pair it with an avr and you can probably find some arduino code the will work with little modifications >
Yes, that is certainly an option, a good one :-) Cheers Klaus
On Tuesday, October 29, 2013 5:06:28 PM UTC+1, Jan Panteltje wrote:
> On a sunny day (Tue, 29 Oct 2013 08:04:52 -0700 (PDT)) it happened Klaus > > Kragelund <klauskvik@hotmail.com> wrote in > > <8dac7277-ae6b-4b2b-8474-f270af4cf6fd@googlegroups.com>: > > > > >Ok, so if I do it the Rasperry way, what would be the easiest for someone who has only use Linux on a user level and never dug > > >deep into the engine? > > > > > >I found the Webiopi nice: > > > > > >http://code.google.com/p/webiopi/ > > > > Looks interesting, > > but I really do not know Python, cannot even read it. > > > > What you describe is some server running that accepts commands via TCP and then changes the GPIO pins, > > maybe does things itself too. > > > > > > > > >How do I get started, is it just some code in a nice GUI? ...and putting that code in whats simelar to "Startup" in windows, so > > >when it boots it runs that code? > > > > Well, there are places (directories) where to put startup scripts that would start that server. > > > > > > There are 2 possibilities, > > > > 1) > > does your application run its own thing, for example read a pin and set a relay, > > or read an ADC or some sensor and set some other thing in sort of a loop? > > Then it needs to run constantly and be started at power up and provide for example a little webserver for users to control things. > >
It will be running in a loop, I may need a regulation loop for humidity control etc. I have not yet decided if the node just transfers the data to a central node that has the necessary logic or that each node is self sustained [snip, good stuff]
> > So it all depends on your programming abilities and preferences. >
I have done visual C, labwindows, embedded C and a little HTML programming. I would like to add a grapic interface for the control logic. What would be a good choice of app for that? Cheers Klaus
> It will be running in a loop, I may need a regulation loop for humidity control etc. I have not yet decided if the node just transfers the data to a central node that has the necessary logic or that each node is self sustained
If you are talking about multiple nodes in different places, then RF might be a better choice than Ethernet. OTOH, serial might be cheaper if you don't need Ethernet speed.
On Tuesday, October 29, 2013 6:21:58 PM UTC+1, Peter Heitzer wrote:
> Klaus Kragelund <klauskvik@hotmail.com> wrote: > > >Hi > > > > >For a home automation project, I need to control some devices via an ethernet connection. > > > > >I could use a raspberry pi, but I am looking for something simpler. In some cases I just need to set or clear a relay. > > > > >Do anyone know of a very simple board with an ethernet Phy on (possibly with a logic output), that can be used for this? > > > > Look for ENC28J60 based modules. > > In Germany there exists a board with ENC28J60 and Atmega called avr-net-io which is > > very popular. Kit price is about 20 EUR. > > http://www.pollin.de/shop/dt/MTQ5OTgxOTk-/Bausaetze_Module/Bausaetze/Bausatz_AVR_NET_IO.html
It's nice, good price. I have extensive experience with the STM32, so I think the ENC28J60 module could be a good fit Cheers Klaus
On Tuesday, October 29, 2013 10:10:58 PM UTC+1, edward....@gmail.com wrote:
> > It will be running in a loop, I may need a regulation loop for humidity control etc. I have not yet decided if the node just transfers the data to a central node that has the necessary logic or that each node is self sustained > > > > If you are talking about multiple nodes in different places, then RF might be a >better choice than Ethernet. OTOH, serial might be cheaper if you don't need >Ethernet speed.
I have ethernet in almost all rooms. I have considered wireless but am worried about security and availability issues. With ethernet I can do PoE if the Phy supports it. But wireless is certainly easier when I need to expand it. Cheers Klaus
Den tirsdag den 29. oktober 2013 22.24.33 UTC+1 skrev Klaus Kragelund:
> On Tuesday, October 29, 2013 6:21:58 PM UTC+1, Peter Heitzer wrote: > > > Klaus Kragelund <klauskvik@hotmail.com> wrote: > > > > > > >Hi > > > > > > > > > > > > >For a home automation project, I need to control some devices via an ethernet connection. > > > > > > > > > > > > >I could use a raspberry pi, but I am looking for something simpler. In some cases I just need to set or clear a relay. > > > > > > > > > > > > >Do anyone know of a very simple board with an ethernet Phy on (possibly with a logic output), that can be used for this? > > > > > > > > > > > > Look for ENC28J60 based modules. > > > > > > In Germany there exists a board with ENC28J60 and Atmega called avr-net-io which is > > > > > > very popular. Kit price is about 20 EUR. > > > > > > http://www.pollin.de/shop/dt/MTQ5OTgxOTk-/Bausaetze_Module/Bausaetze/Bausatz_AVR_NET_IO.html > > > > It's nice, good price. I have extensive experience with the STM32, so I think the ENC28J60 module could be a good fit > > > > Cheers > > > > Klaus
http://www.edaboard.com/thread281441.html doesn't look like he is selling, but there's code http://www.elektroda.pl/rtvforum/topic2394580.html -Lasse
On Tuesday, October 29, 2013 10:36:29 PM UTC+1, Lasse Langwadt Christensen wrote:
> Den tirsdag den 29. oktober 2013 22.24.33 UTC+1 skrev Klaus Kragelund: > > > On Tuesday, October 29, 2013 6:21:58 PM UTC+1, Peter Heitzer wrote: > > > > > > > Klaus Kragelund <klauskvik@hotmail.com> wrote: > > > > > > > > > > > > > > >Hi > > > > > > > > > > > > > > > > > > > > > > > > > > > > >For a home automation project, I need to control some devices via an ethernet connection. > > > > > > > > > > > > > > > > > > > > > > > > > > > > >I could use a raspberry pi, but I am looking for something simpler. In some cases I just need to set or clear a relay. > > > > > > > > > > > > > > > > > > > > > > > > > > > > >Do anyone know of a very simple board with an ethernet Phy on (possibly with a logic output), that can be used for this? > > > > > > > > > > > > > > > > > > > > > > > > > > > > Look for ENC28J60 based modules. > > > > > > > > > > > > > > In Germany there exists a board with ENC28J60 and Atmega called avr-net-io which is > > > > > > > > > > > > > > very popular. Kit price is about 20 EUR. > > > > > > > > > > > > > > http://www.pollin.de/shop/dt/MTQ5OTgxOTk-/Bausaetze_Module/Bausaetze/Bausatz_AVR_NET_IO.html > > > > > > > > > > > > It's nice, good price. I have extensive experience with the STM32, so I think the ENC28J60 module could be a good fit > > > > > > > > > > > > Cheers > > > > > > > > > > > > Klaus > > > > http://www.edaboard.com/thread281441.html > > > > doesn't look like he is selling, but there's code > > http://www.elektroda.pl/rtvforum/topic2394580.html >
Very nice board :-) Cheers Klaus
> I have ethernet in almost all rooms. I have considered wireless but am worried about security and availability issues.
Yes, security is always a concern. We will have AES128 on the devices. Key distributions will be a major issue. However, unlike Bluetooth, we don't have to pair arbitrary devices. We can have time sequenced one-time keys stored on both devices. Since we can reprogram all the devices in this "closed" net at the same time, we can just tell them to ignore all other devices. The master node can also redistribute the key file on the fly. If you put your devices on the Ethernet (and consequently Internet), you have a bigger security risk with your wired net than our wireless net.
On Tuesday, October 29, 2013 11:13:14 PM UTC+1, edward....@gmail.com wrote:
> > I have ethernet in almost all rooms. I have considered wireless but am worried about security and availability issues. > > > > Yes, security is always a concern. We will have AES128 on the devices. Key distributions will be a major issue. However, unlike Bluetooth, we don't have to pair arbitrary devices. We can have time sequenced one-time keys stored on both devices. > > > > Since we can reprogram all the devices in this "closed" net at the same time, we can just tell them to ignore all other devices. The master node can also redistribute the key file on the fly. > > > > If you put your devices on the Ethernet (and consequently Internet), you have a bigger security risk with your wired net than our wireless net.
That's true, if the ethernet is not encrypted. The key file is a pain, if you don't program it in fixed from the start, then it's easier. Cheers Klaus