[zeromq-dev] Embedded Systems

Ilya Dmitrichenko errordeveloper at gmail.com
Tue Sep 6 13:18:30 CEST 2011

On 5 September 2011 23:23, Pieter Hintjens <ph at imatix.com> wrote:
> Ilya,
> There are at least two independent implementations of ZMTP/1.0, the Bash and
> the JavaScript stacks. The Bash stack is a 1-liner that sends a message
> (like a PUSH or DEALER or PUB socket).
> It should be quite straight-forward to write tiny, non-optimized stacks for
> the various socket patterns. E.g. using blocking writes and reads, for
> example. The difficulty starts when you want the code to run rapidly, and
> handle many connections in parallel, and work over multiple transports.
> If anyone is interested collaborating on a micro-0MQ stack in C over TCP,
> just shout.
> -Pieter

Certainly uIP is the best candidate to start with :)

I have a few bits of hardware that I already used to work with Contiki.
If you have a look a bit into Contiki ecosystem there is plenty of things
that can be utilised by developers, namely Cooja simulator, TARGET=native
and TARGET=minimal-net. I have used the Protosockets macro lib which
is a very simple way to do TCP apps in Contiki, however I reckon that
some reasonable optimisation can be achieved.

There plenty of example in the git tree (github.com/contiki/contiki-mirror),
including tweeter client, httpd and many more. Some protocols had been
developed for wireless sensor data collection and (time sync as well).
Nevertheless it'd be quite appropriate to see if zmq can be used for it's
growing popularity, so no translators would be needed.

I haven't discussed this on Contiki list yet, suppose it would be great to
have something before suggesting it :)

Certainly WSN nodes would act as 0mq clients and I'd place and embedded
linux board to act as the gateway/server. Though some WSN node may be
acting as brokers.

[ContikiHome]: http://www.sics.se/contiki/
[ContikiWiki]: http://www.sics.se/contiki/wiki/index.php/Main_Page

A second candidate would be TinyOS, though I am not quite confident
at using it but I certainly will one day. TinyOS is a great WSN platform!


More information about the zeromq-dev mailing list