Return-Path: X-Original-To: apmail-zest-dev-archive@minotaur.apache.org Delivered-To: apmail-zest-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 80BDF1820C for ; Mon, 22 Feb 2016 08:22:05 +0000 (UTC) Received: (qmail 76887 invoked by uid 500); 22 Feb 2016 08:22:05 -0000 Delivered-To: apmail-zest-dev-archive@zest.apache.org Received: (qmail 76844 invoked by uid 500); 22 Feb 2016 08:22:05 -0000 Mailing-List: contact dev-help@zest.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zest.apache.org Delivered-To: mailing list dev@zest.apache.org Received: (qmail 76825 invoked by uid 99); 22 Feb 2016 08:22:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Feb 2016 08:22:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 9F0951A0658 for ; Mon, 22 Feb 2016 08:22:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.821 X-Spam-Level: X-Spam-Status: No, score=-0.821 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id FUZL_43tr1CJ for ; Mon, 22 Feb 2016 08:22:00 +0000 (UTC) Received: from mail-lf0-f44.google.com (mail-lf0-f44.google.com [209.85.215.44]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 5B9F85FABF for ; Mon, 22 Feb 2016 08:22:00 +0000 (UTC) Received: by mail-lf0-f44.google.com with SMTP id m1so89473032lfg.0 for ; Mon, 22 Feb 2016 00:22:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=OBC2IA3+RgpbxjXZKxHqLUaptstJhtkbA4B3QgIgHkY=; b=W1FkO0urPtGPmqsWUpwGlbOcwC3QQ6OHSMvtx7Zxd98g3Xm7phVjSgzEXNwIJ3BD2k H25sGtQXGHYNsbcwWremODlWsnwZ+OORcFKj0oOFiNPksXt/7EpcbjzlCGFAv3fSKBU4 1EQQ6g8K5Gc/8nOIq4jBQfyppQuF+L9gpEKTdrmFDkeno0H+PhI3A8mJmCJMW4IM6vbA j/uTdfgFif0i7NrpxgMJIzeGVyE2weuSW/obMQ1oEh0sZyGqPk+1guYXPfBT1OOTC6V0 yjG0ShjuFrC+Ub0lsgiW3wRkloTfM00BpAvwGc4zOYT6DmKNMNCQcMoBFUF6F4WfpAl6 OWEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=OBC2IA3+RgpbxjXZKxHqLUaptstJhtkbA4B3QgIgHkY=; b=cxYl1Wh+a6VPiQZzDZFdnRDnUhkULzet5NB0CNgbhN3G0EoXi6NUsbapi8OgNADLnb M7Wq4Ip9zEGMlg6U2X8kiDwXhdESTY1oi6pgkr5eeUI+qt5jRlDucMTXFoXBSKCy1SxC i0eECnP+X637PHOJeZPRbqrnYXo4WaSD2IPw28E6xcC7oXr01R1ClgcqmyddQTcb5w3z fVfjvFZloeZrquz05BMaKKeDOxndOQptP/VrwpKsUjq2NW2e43Nr3RJEIe/8aVy4v4In IE9EK4nc32Bo8Pldt5e1rbmnB8WH4RyEhE8u3N+FjkqOkpXuteGjjzEPJNu80uKiotnX deIA== X-Gm-Message-State: AG10YOQC2SgSUowZV8+dpsdhBtWW/gyIV2B5sCvR7Dp4DqT75XspI9J0KOnS5LoEBr+Fe9W5n920XN6JaIq+Yw== MIME-Version: 1.0 X-Received: by 10.25.136.84 with SMTP id k81mr10341265lfd.78.1456129319095; Mon, 22 Feb 2016 00:21:59 -0800 (PST) Received: by 10.112.185.71 with HTTP; Mon, 22 Feb 2016 00:21:58 -0800 (PST) In-Reply-To: References: Date: Mon, 22 Feb 2016 09:21:58 +0100 Message-ID: Subject: Re: Update from Niclas From: Sandro Martini To: dev@zest.apache.org Cc: Niclas Hedhman Content-Type: text/plain; charset=UTF-8 Hi all, another use case I see in other products is to enable a range of temperatures, and when the value goes outside, something is triggered, for example a led starts to flash. Niclas, do you think your sensor could be packaged even with this ? Bye, Sandro 2016-02-21 14:19 GMT+01:00 Jiri Jetmar : > Sounds impressive.. ! > > another usecase for a Wifi temperature sensor. What about to put a little > magnet to it > so that it sticks on a heating body. > > With a peltier element it would be eventually possible to generate enough > power (from the temperature delta) over > the day for a transmission. > > Cheers, > Jiri > > 2016-02-21 3:50 GMT+01:00 Niclas Hedhman : > >> Update; Yesterday I located the last major bug in the Forth interpreter. >> Yay!!! >> >> ~1k assembler instructions, and ~8kbytes of RAM space for the JonesForth >> vocabulary. >> >> Today I am starting on a TCP socket for the REPL, instead of the serial >> port used so far. >> >> GPIO, ADC and other peripherals will be very straight forward memory >> operations. Probably borrow from http://wiki.laptop.org/go/Forth_Lesson_22 >> >> I have also decided on the multitasking model, and going for an Actor model >> similar to Erlang, but adopted for Forth concepts (messages on stack). >> Still not sure how to do memory allocation separation in a good manner, but >> I'll get there. >> >> Cheers >> Niclas >> >> On Mon, Feb 15, 2016 at 3:54 PM, Niclas Hedhman wrote: >> >> > >> > This thread is well off-topic, but we are a small group of friendly >> people >> > so I don't mind. Someone else might, and if so... Speak up. >> > >> > Jiri; powering is an interesting longer term challenge. I don't want too >> > much on the plate in the beginning, and rather have a MVP going out the >> > door now, than solving a larger task by next year. >> > But I like your idea, and should research it further. The peek power >> > however is more like 700mW at full WiFi transmit. Super-capacitor to the >> > rescue, I guess. >> > >> > Roman; I have always been fascinated by the simplicity of Forth, and it >> > has been fun doing Assembler again. >> > Forth isn't necessary for the temperature sensor device and the sensor >> > network built on top of it. But I want to see if it makes sense to >> create a >> > user programmable platform on top of Forth, for automation systems >> > integrators can use. I did a block programming system in Java for this >> > purpose, and think I can run the same thing on Forth and a fraction in >> > size. My target for that is the upcoming ESP-32, dual core and a whopping >> > 400kB or so of usable RAM. The CEO told me over beer, that it is expected >> > to only cost about 20% more... >> > >> > So, one of the next steps is a WiFi PID regulator, programmable, maybe >> two >> > inputs and a single 0-10V output. >> > >> > Again, the monitoring, control and data management on top will be key, >> > together with the local network management for devices to work in unison, >> > and the security needed whilst keeping it easy to use. >> > >> > I have heard that NASA uses Forth in missions, but don't know if this is >> > still the case, or just surviving rumours from the 80s. But as we ride >> hard >> > into explosion of super-tiny devices, I think it is the only feasible >> > alternative to C, and more often than not provides more compact code. >> > >> > My implementation for ESP8266 is far from done. I am currently chasing a >> > bug in the compile system, as it seems that the compile BEGIN...UNTIL >> > and/or IF...ELSE...THEN gets compiled with incorrect jump addresses. >> > Hopefully I can sort that out in one of these evenings... >> > After that, I will turn my focus to; >> > >> > * Serial over WiFI socket instead of serial ports. >> > >> > * GPIO, PWM, ADC and other microcontroller functions. >> > >> > * Async message queues, so I can do... >> > >> > * Multitasking >> > >> > * pre-compile the FORTH vocabulary to ROMable code and not occupy the >> > RAM. >> > >> > Anyway, I am putting up Jiri and Roman on the list for the field test. >> > >> > Cheers >> > Niclas >> > On Feb 15, 2016 14:23, "Roman Shaposhnik" wrote: >> > >> >> On Fri, Feb 12, 2016 at 7:58 PM, Niclas Hedhman >> >> wrote: >> >> > Gang, >> >> > >> >> > I haven't had much time on Zest lately, as I have been busy creating a >> >> > low-costWiFi capable, USB-powered temperature sensor. See >> >> > http://hedhman.org/~niclas/IndoorioD.jpg >> >> > >> >> > And for the fun of it, I ported FORTH programming language to the >> >> ESP8266 >> >> > CPU that is on this, in Assembler of course. Interpreter, Compiler, >> base >> >> > vocabulary (functions) and REPL in ~1000 assembler instructions, and >> the >> >> > full vocabulary in another 10kbytes or so. It has been a lot of fun. >> >> >> >> This is the point where you got my attention 110% ;-) >> >> >> >> > This little puppy will go for one more round of prototypes next week, >> >> as I >> >> > want to add an external watchdog and tiny prototyping area for maker >> >> > community. Then I intend to make a field test with 100 units or so. >> >> > >> >> > So, why am I telling you all this? >> >> > >> >> > First of all, these guys will report the temperature back to a central >> >> > server every 15 minutes or so. And the management system on the server >> >> is >> >> > written with Zest. The rest is with Grafana and ElasticSearch. I am >> >> > considering trying to build a business around data capture, >> aggregation, >> >> > analytics and visualization. Anyone interested to join? >> >> >> >> I'd love to chat about what you've got in mind. >> >> >> >> > Secondly, I am looking for volunteers for my field test. It will >> >> probably >> >> > happen in April or so. If you participate, you will receive a USB >> >> powered >> >> > sensor as seen. Plug it into power somewhere for 6 months, connect to >> it >> >> > over WiFi, configure it to use your WiFi router over a simple web >> >> > interface, and keep it powered for 6 months. >> >> > If there are problems, I might ask for reboot. Hopefully not any >> >> firmware >> >> > upgrades. >> >> >> >> I'd love to help. More so than that -- I'd love to tinker. >> >> >> >> Thanks, >> >> Roman. >> >> >> > >> >> >> -- >> Niclas Hedhman, Software Developer >> http://zest.apache.org - New Energy for Java >>