-
Hm. I'll look into the lib thing and try to make an external module for swapping it in and out from the SD card from it as described in that 935 thread. Otherwise the mem footprint seems not feasible.
I still (or now) wonder if having an STM with crypto capabilities as an option for Espruino might not make sense in the long run. Especially if I consider the discussions on TSL, HTTPS etc and the current state of network modules (hardware). If I stay in my own realm, not having https might not be that much of a problem. However, once I want to connect to other's APIs it might get more important/necessary, and even more so after NSA's work makes many providers tighten their services' security these days.
-
I saw that Espruino already exists as an executable for RasPi, and since I haven't posted a weird question in a while...
I could imagine Espruino as an executable for desktop OSes as another step. As an simulator displaying the typical ports/LEDs of the supported boards and also for using the host's ethernet. I wouldn't go as far as suggesting to emulate displays and other SPI devices (for now :), but a port of the Raspi-Executable to a Mac OS X/Linux environment might be a nice and easy to add bonus.
-
-
Hey Gordon,
Sorry, seems I didn't get a notification on this early discussion.
I found md5 in the target libs like here: https://github.com/espruino/Espruino/blob/master/targetlibs/stm32f2/lib/stm32f2xx_hash_md5.c
I'll see if I can (license-wise) use the code I grabbed for providing a module. Still hoping that the link above might lead to having a single JS line instead of filling up the precious JS mem, though :)
Stev
-
-
-
-
@randunel: Hey, thanks. Since one can access Strings on a character level, one can basically implement anything. But given that this is a somehow common function, other people might also miss it. So, might help to have it directly included in the distribution.
Funnily enough I came across it in a function that actually did not need it :)
-Stev -
-
-
Funny. Didn't think of that. Will see how that works out. And if that's actually the culprit :)
Seems my passive hubs here don't provide enough power for my iphone to register. I will see what turns up quicker, a powered hub or that resistor and post the result.
To not build a useless heater, i'll have to get a battery and use that trickle charger setup, it seems. Nice HW design BTW, always nice to see things already in place once you think you might need them.
-
-
-
-
Hi,
if I'd like to disable the console mode on the BT port if running without a USB connection (for always running an application-specific interface on BT). How would I do that?
Is there an init/setup handler after the boot process? Espruino seems to load every other state fine from flash, but this setting would have to be done by an explicit call.
For now I'm calling USB.setConsole() every time in the onData handler of Serial1 which does not seem to be extremely elegant. Also I'm missing a way of flushing/purging the output buffer of the BT port (it otherwise still will transfer "Console Moved to USB" as well as some initial data on first connect)
Any hints on an boot/init handler and that flushing of the output buffer?
Thanks
-Stev -
-
I'd like to "vote" for going without Chrome (you even have to register with Google for running the IDE) and maybe go native apps instead (that webkit approach with a lightweight native wrapper might be a good alternative).
Chrome seems a high price for having serial line access.
I am happy with the CLI though, so, just my 2ct, not an urgent matter.
-Stev
-
-
I programmed a small smooth LED glow (pulse-based dim with modulation of the ratio) as a small test. It is running really smooth as long as the Espruino board is connected to my MacBook.
However, once I plug it directly into an usb power adapter (tried several) I get bad flickering of the LEDs during the otherwise smooth anmation.
I wonder if this is a broken board or just a capacity problem, and whether adding a quartz will help in this particular case.
Any ideas before I go and buy one?
Cheers
Stev -
Hi,
I'd like to do a MD5 on some data. Unfortunately all the libs I tried return wrong hashes.
Is there any working implementation of MD5 for Espruino? If not, what should I look for on the "differences" part of the JS implementations (I though endianess first, but maybe there are better hints)?
Cheers
Stev
Heh. Didn't expect that. Very cool :)
Might be a good time to do that vertical step over that JS border and have look at your git repo.
Might still be a nice binary to have pre-built in the Distro / on the web page.