Jee Labs Talk

Discussion about Jee Labs projects

Register or log in - lost password?

Jee Labs Talk » Networking & wireless

Ethernet?

(23 posts) (10 voices)
  • Started 6 months ago by Jean-Claude
  • Latest reply from Jean-Claude
  • Related Topics:
    1. Ethernet stomps on RF12 transmission
    2. Ethernet connectivity
    3. Help, love the Jeenode with the carrier board and ethernet card but...
    4. Ethernet connectivity

Tags:

  • ethernet
123Next »
  1. Jean-Claude
    Key Master

    I've been looking a bit into low-end ethernet options for JeeNodes. Lots of ways to get there. Say you want to tie a "real" computer together with a bunch of wireless sensor nodes without hacking/re-purposing something like a router or NAS, and without dedicating yet another embedded computer to it, i.e. truly low-end. With a JeeLink / USB, the distance is limited to a few meters.

    The ENC28J60 chip could be used. It's been around for a while - it requires a lot of software support from the ATmega to do things like playing nice with DHCP, acting as a very little HTTP web-server, or pushing results to another TCP/IP server. So the hardware is simple, but the software might be hairy (to make it fit, to make it extensible enough, or even just to configure).

    This isn't instead of hooking up some embedded Linux with Ethernet - I'm just trying to figure out whether a lower-end option could/would/should be justified.

    Posted 6 months ago #
  2. kintel
    Member

    Smth. like XPort from www.lantronix.com might be an option, but those are still a bit pricey..

    -Marius

    Posted 6 months ago #
  3. kellerza
    Member

    There seems to be some software available for the ENC28J60 IC, but it does not have a TCP stack yet:
    http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1189447444/15

    Although,- UDP could be enough to 'pull' readings from this remote node. Kind of like the RF12 driver with an Ethernet cable.

    DHCP and something like DynDNS support would be nice, so you can discover&poll your node plugged in anywhere in the world

    Posted 6 months ago #
  4. kintel
    Member

    The good old Procyon AVRlib also got support for the enc28j60, but also just UDP IIRC:
    http://hubbard.engr.scu.edu/embedded/avr/avrlib

    Posted 6 months ago #
  5. kellerza
    Member

    Procyon used to complement avr-libc quite nicely. It had a really nice 8-bit timer implementation- something that would put millis() to shame in terms of memory usage and speed. Fortunately uC's have come some way to allow us simplifying software (The Arduino library being a great example).

    Never used the Ethernet drivers, but I see Procyon has ARP, DHCP, IP and a netstack, which does some sort of TCP/IP.

    Posted 6 months ago #
  6. dkb
    Member

    There is an intrinsic value in having a ethernet enabled JeeNode. It simplifies the learning curve and decisions one needs to make if they want an internet enabled sensor network. If you are going to simply look at your "bang for your buck" you would get an Atmel NGW100 for only US$89. That option though makes it significantly more difficult for one to figure out how everything should fit together. I think a US$40-$50 ethernet enabled JeeNode/JeeNetNode would be worthwhile.

    Posted 6 months ago #
  7. Jean-Claude
    Key Master

    Thanks for the pointer to Procyon's stuff, hadn't looked at it for a long time. I just learned something new: it's possible to define a function in the library without causing duplicate definitions when overridden with another definition - I'll need to try it out, but this is great:
    [code]
    /// This weakly-defined function is the default handler for incoming TCP/IP packets.
    /// Users should define this same function in user code (same name and arguments) to
    /// override this default handler and get access to the received packets.
    void netstackTCPIPProcess(unsigned int len, tcpip_hdr* packet) __attribute__ ((weak));
    [/code]

    Only trouble is the viral GPL licensing. I can't let it overrule all the Jee Labs work, which is MIT-licensed.

    Posted 6 months ago #
  8. Benny
    Member

    I have the Lantronix XPORT connected to the JeeNode, however I'm not using the JAVA applet to control it.
    I've installed the Lantronix port redirector, so it is available over the network to my server.
    Unfortunately I do not know how to upload a picture ...

    -ben

    Posted 6 months ago #
  9. kellerza
    Member

    An ENC JeeNetNode can probably be priced the same as an Arduino Ethernet shield (or Lantronix XPORT module). Cost becomes a big factor when messing around with multiple nodes+sensors (why else Ethernet?).

    The NGW100 is a steal at $89... with some effort you can probably run JeeMon on it

    Posted 6 months ago #
  10. _mattb
    Member

    Hi! I'm working with some friends to develop a wireless PIR sensor for my school's library system. Our current prototype connects to the WiFi network with the WiFly GSX module ($85 at SparkFun for the breakout). We got it working the other night: http://weakorbit.com/pnotes/archives/544

    It connects to a TCP socket and sends a simple device ID. A backend python script opens the socket and puts incoming (verified) data in a sqlite database. A webpage then, of course, accesses the same database. I have some AVR experience but the internet side of things is totally new to me! If anyone has any suggestions about how to do this, er, properly.. I'd love to hear them.

    So I hope your ethernet/wifi additions to the Jee Nodes goes well. In institutional settings with ubiquitous WiFi it can make massive sensor deployment easier, I think. (And massive deployment is what we all want, right?) I'm happy to send more code than what was posted, my email is on that page linked above.

    This site is incredible, I'm sure you get that a lot but it really is. I came here looking for more info regarding PIR power consumption, so thanks!

    Posted 6 months ago #

RSS feed for this topic

123Next »

Reply »

You must log in to post.

Jee Labs Talk is powered by bbPress.