Show Posts
Pages: [1] 2 3 ... 6
1  Products / Arduino Yún / Re: Node.js for the YUN on: May 26, 2014, 03:52:48 pm
@mantissa00: I have a 16 GB class 4 SD card with only 3% used, so this is not the problem.

The problem is more with CPU performance and RAM usage:
root@Arduino:~/node/foo# ./bin/www 
GET /contact 304 16238ms
GET /stylesheets/bootstrap.min.css 304 151ms
GET /javascripts/jquery-1.11.1.min.js 304 134ms
GET /stylesheets/style.css 304 135ms
GET /javascripts/bootstrap.min.js 304 131ms
POST /thanks 200 2873ms - 1.21kb
GET /stylesheets/bootstrap.min.css 304 63ms
GET /javascripts/jquery-1.11.1.min.js 304 60ms
GET /stylesheets/style.css 304 58ms
GET /javascripts/bootstrap.min.js 304 70ms
GET / 304 5007ms
GET /stylesheets/bootstrap.min.css 304 43ms
GET /javascripts/jquery-1.11.1.min.js 304 43ms
GET /stylesheets/style.css 304 45ms
GET /javascripts/bootstrap.min.js 304 49ms
GET /fonts/glyphicons-halflings-regular.woff 304 24ms
GET /about 304 4519ms
GET /stylesheets/bootstrap.min.css 304 43ms
GET /javascripts/jquery-1.11.1.min.js 304 45ms
GET /stylesheets/style.css 304 47ms
GET /javascripts/bootstrap.min.js 304 48ms
GET /contact 304 3426ms
GET /stylesheets/bootstrap.min.css 304 58ms
GET /javascripts/jquery-1.11.1.min.js 304 61ms
GET /stylesheets/style.css 304 62ms
GET /javascripts/bootstrap.min.js 304 65ms
GET / 304 3072ms
GET /stylesheets/bootstrap.min.css 304 30ms
GET /stylesheets/style.css 304 45ms
GET /javascripts/jquery-1.11.1.min.js 304 46ms
GET /javascripts/bootstrap.min.js 304 40ms
GET /fonts/glyphicons-halflings-regular.woff 304 19ms

And when using the memory limit options in "/usr/bin/node", I get an "process out of memory" very quickly...

So I guess that a full-stack Node.js is just too much for the Yun, and that all that can be done are only very simple scripts.

But then, what is the point in using Node.js, then? Besides the "all-JS" advantage, why not use Python Tornado or Nginx/Lua-based OpenResty in this case?

Please note that I am novice to Node.js and that I like its overall philosophy. But I am also trying to be pragmatic and find the best solution for developing web applications on the Yun. As such, I am asking eagerly for advises and experience from other users!
2  Products / Arduino Yún / Re: Node.js for the YUN on: May 25, 2014, 04:48:14 pm
Thanks Frederico, I have everything working now!

I performed some tests with a full-stack solution consisting in:
  • NodeJS as web server with server-side Javascript language and npm package manager
  • Express as MVC web application framework
  • Jade as the template engine
  • JQuery as client-side library for DOM traversal and manipulation, animation and Ajax for asynchronous updates
  • CoffeeScript as Javascript syntactic sugar
  • Markdown for plain text formatting syntax
  • Twitter Bootstrap as front-end client-side web UI framework
  • Glyphicons font for rendering icons
It takes 15~20 s to generate a page when not in cache, 2~3 s when in cache  smiley-roll-sweat

IMHO, Node.js is so slow that it is pretty unusable on the Yun in its current state.
3  Products / Arduino Yún / Re: Node.js for the YUN on: May 24, 2014, 05:17:01 am
The express installation looks it is OK, it look like it is installed in "/node/usr/lib/node_modules/express", but I cant't find the "express" command line script, and it is not in the PATH either.
4  Products / Arduino Yún / Re: Node.js for the YUN on: May 23, 2014, 03:04:14 pm
Hi Frederico,

Thank you very much, it works when removing the node memory options !

However, why do you recommend NOT to use the IDE serial monitor? Is it because it doesn't work well with a full screen text editor like nano?
5  Products / Arduino Yún / Re: Node.js for the YUN on: May 22, 2014, 04:30:31 pm
I have a Yun with latest image, a 16 GB SD Card formatted using the YunDiskSpaceExpander sketch and followed the instructions for installing node using opkg.

I tried both with or without a 512 MB swap on SDCard, installing express or johnny-five from a fresh boot results in the same "FATAL ERROR: Evacuation Allocation failed - process out of memory" message  smiley-cry

Here is my config:
root@Arduino:/# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                   13.6G    375.1M     12.6G   3% /
/dev/root                 7.5M      7.5M         0 100% /rom
tmpfs                    29.8M    100.0K     29.7M   0% /tmp
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/sda2                13.6G    375.1M     12.6G   3% /overlay
overlayfs:/overlay       13.6G    375.1M     12.6G   3% /
/dev/sda1               698.6M     12.0K    698.6M   0% /mnt/sda1
root@Arduino:/# free
             total         used         free       shared      buffers
Mem:         61116        43064        18052            0        16560
-/+ buffers:              26504        34612
Swap:       523260          168       523092
root@Arduino:/# ps -wwww
  PID USER       VSZ STAT COMMAND
    1 root      1496 S    init
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    4 root         0 SW   [kworker/0:0]
    5 root         0 SW   [kworker/u:0]
    6 root         0 SW<  [khelper]
    7 root         0 SW   [kworker/u:1]
   90 root         0 SW   [sync_supers]
   92 root         0 SW   [bdi-default]
   94 root         0 SW<  [kblockd]
  106 root         0 SW   [khubd]
  132 root         0 SW   [kswapd0]
  180 root         0 SW   [fsnotify_mark]
  211 root         0 SW<  [ath79-spi]
  222 root         0 SW   [mtdblock0]
  227 root         0 SW   [mtdblock1]
  232 root         0 SW   [mtdblock2]
  237 root         0 SW   [mtdblock3]
  242 root         0 SW   [mtdblock4]
  247 root         0 SW   [mtdblock5]
  252 root         0 SW   [mtdblock6]
  257 root         0 SW   [mtdblock7]
  310 root         0 SW   [kworker/0:1]
  312 root         0 SW   [kworker/u:2]
  339 root         0 SW   [scsi_eh_0]
  341 root         0 SW   [usb-storage]
  473 root         0 SW   [kworker/0:2]
  530 root         0 SW   [flush-mtd-unmap]
  577 root         0 SW   [flush-8:0]
  578 root         0 SW   [jbd2/sda2-8]
  579 root         0 SW<  [ext4-dio-unwrit]
  601 root      1524 S    {rcS} /bin/sh /etc/init.d/rcS S boot
  602 root      1492 S    /bin/ash --login
  604 root      1488 S    logger -s -p 6 -t sysinit
  649 root         0 SW<  [cfg80211]
  756 root      1500 S    /sbin/syslogd -l 8 -C16
  758 root      1484 S    /sbin/klogd
  760 root       872 S    /sbin/hotplug2 --override --persistent --set-rules-file /etc/hotplug2.rules --set-coldplug-cmd /sbin/udevtrigger --max-children 1
  770 root       876 S    /sbin/ubusd
  834 root      1480 S    /sbin/netifd
  897 root      1492 S    udhcpc -p /var/run/udhcpc-eth1.pid -s /lib/netifd/dhcp.script -f -t 0 -i eth1 -C
 1360 root      1628 S    wpa_supplicant -B -P /var/run/wifi-wlan0.pid -D nl80211 -i wlan0 -c /var/run/wpa_supplicant-wlan0.conf
 1456 root      1500 S    udhcpc -p /var/run/udhcpc-wlan0.pid -s /lib/netifd/dhcp.script -f -t 0 -i wlan0 -C
 1516 root      1492 S    /sbin/watchdog -t 5 /dev/watchdog
 1615 root      1152 S    /usr/sbin/dropbear -P /var/run/dropbear.1.pid -p 22
 1622 root      1564 S    /usr/sbin/uhttpd -f -h /www -r Arduino -x /cgi-bin -t 60 -T 30 -A 1 -n 2 -p 0.0.0.0:80 -C /etc/uhttpd.crt -K /etc/uhttpd.key -s 0.0.0.0:443
 1631 root      1696 S    /usr/sbin/dbus-daemon --system
 1654 nobody     948 S    /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf
 1660 nobody    2168 S    avahi-daemon: running [Arduino.local]
 1663 root       796 S    /usr/sbin/thd --socket /tmp/triggerhappy.socket --triggers /etc/triggerhappy/triggers.d/ --daemon /dev/input/event0
 1687 root      1492 S    /usr/sbin/ntpd -n -p 0.openwrt.pool.ntp.org -p 1.openwrt.pool.ntp.org -p 2.openwrt.pool.ntp.org -p 3.openwrt.pool.ntp.org
 1694 root      1496 S N  {uSDaemon} /bin/sh /sbin/uSDaemon
 2399 root      1480 S N  sleep 2
 2400 root      1488 R    ps -wwww

@mantissa00: do you see something that could be different from your setup?
6  Products / Arduino Yún / Re: Node.js for the YUN on: May 17, 2014, 08:41:49 am
Hi Frederico,

I have node running on the latest Yun image with extroot and got the console test working ok.

However, when I try to install the express framework, I get the following message:
root@Arduino:~# npm install -g express
npm http GET https://registry.npmjs.org/express
npm http 304 https://registry.npmjs.org/express
npm http GET https://registry.npmjs.org/parseurl
npm http GET https://registry.npmjs.org/methods
npm http GET https://registry.npmjs.org/send
npm http GET https://registry.npmjs.org/accepts
npm http GET https://registry.npmjs.org/cookie-signature
npm http GET https://registry.npmjs.org/type-is
npm http GET https://registry.npmjs.org/merge-descriptors
npm http GET https://registry.npmjs.org/utils-merge
npm http GET https://registry.npmjs.org/range-parser
npm http GET https://registry.npmjs.org/escape-html
npm http GET https://registry.npmjs.org/qs
npm http GET https://registry.npmjs.org/cookie
npm http GET https://registry.npmjs.org/serve-static
npm http GET https://registry.npmjs.org/path-to-regexp
npm http GET https://registry.npmjs.org/buffer-crc32
npm http GET https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/fresh
npm http 304 https://registry.npmjs.org/methods
npm http 304 https://registry.npmjs.org/send
npm http 304 https://registry.npmjs.org/parseurl
npm http 304 https://registry.npmjs.org/accepts
npm http 304 https://registry.npmjs.org/merge-descriptors
npm http 304 https://registry.npmjs.org/type-is
npm http 304 https://registry.npmjs.org/cookie-signature
npm http 304 https://registry.npmjs.org/utils-merge
npm http 304 https://registry.npmjs.org/range-parser
npm http 304 https://registry.npmjs.org/escape-html
npm http 304 https://registry.npmjs.org/qs
npm http 304 https://registry.npmjs.org/cookie
npm http 304 https://registry.npmjs.org/serve-static
npm http 304 https://registry.npmjs.org/path-to-regexp
npm http 304 https://registry.npmjs.org/buffer-crc32
npm http 304 https://registry.npmjs.org/debug
npm http 304 https://registry.npmjs.org/fresh
npm http GET https://registry.npmjs.org/mime
npm http GET https://registry.npmjs.org/negotiator
npm http 304 https://registry.npmjs.org/mime
npm http 304 https://registry.npmjs.org/negotiator
npm http GET https://registry.npmjs.org/debug
npm http 304 https://registry.npmjs.org/debug
FATAL ERROR: Evacuation Allocation failed - process out of memory


It looks like node is crashing because it is out of memory, although I am only performing a simple install.

It makes me worry about real node usability on a 64 MB-only memory without  activated swap.

Does anyone has experience with it?
7  Products / Arduino Yún / Re: Is the Arduino Yun still Open Hardware? on: May 06, 2014, 10:32:09 am
Yes, I meant BOTH lowest power with a reasonable price.

I know RT5350 is cheaper, and it uses also only SDR DRAM vs. DDR1/DDR2 which is also cheaper.

Did you hear something about AR9331 EOL or replacement yet?
8  Products / Arduino Yún / Re: Is the Arduino Yun still Open Hardware? on: May 06, 2014, 09:50:55 am
Depends what you consider: with 0.5W @ 18 dBm, the AR9331 is still the lowest power and the cheapest WiSoC  smiley-mr-green
9  Products / Arduino Yún / Re: Is the Arduino Yun still Open Hardware? on: February 12, 2014, 12:33:44 am
Nope.
10  Products / Arduino Yún / Re: Is the Arduino Yun still Open Hardware? on: February 08, 2014, 03:28:23 am
Sent him a PM, good idea, thank you!
11  Products / Arduino Yún / Re: Is the Arduino Yun still Open Hardware? on: February 07, 2014, 04:32:39 pm
Thank you!

However, I'd prefer to have the information available in the first place to save me all this RE work. And this is why I am trying at least to get this information into projects for the Open Hardware community like the Arduino one.

BTW, do you know someone official from the Arduino Team that would be able to address this above concern?
12  Products / Arduino Yún / Re: Is the Arduino Yun still Open Hardware? on: February 07, 2014, 03:33:44 pm
What you ask is  QCA reference designs #AP121.

Sign NDA with QCA (Qualcomm Atheros) to get all the support, and you need  RF and Embed as well Linux engineer on staff.

No, I don't want to sign no agreement, and especially a non-disclosure agreement for accessing what is supposed to be an open-hardware product!

I don't need no staff either: I am an engineer, I know RF enough to be dangerous (Spectrum analyzer, VNA and understanding of RF ART calibration), I work under Linux for 20 years and for about 10 years on Embedded Linux and/or microcontroller stuff, with active participation to OpenWrt and Linux kernel by porting it to half a dozen of routers and stuff in the MTD driver.

See my reverse engineering of the AR9331-based TL-WR703N router.

I'm concerned with Arduino being open or not.
I on the other hand don't understand the importance of AR9331 being open. Are the AVR chips open? I guess not (I really don't know)
For me Arduino is open if they tell you which components they use and how they are being used. It does not mean they have to use all open components (I assume they never did)

Or am I missing something?

I am concerned too, as this Yun board is clearly a major change in the Arduino policy. The AVR is a chip that you can buy and with a public datasheet to play with. The AR9331 has no public datasheet, and even the schematics containing the required components to make it work is under NDA, and you can't buy as retail, although you find many brokers in China (even for very low quantities).

So no, Arduino no longer tells you all the components they use, and they now use components with no public information on them, even the reference design on how to use them, thus my OP.


As promised, "The hardware reference designs (CAD files) are available under an open-source license, you are free to adapt them to your needs." I was expecting the .brd or .sch files which could be "adapted."

On the other hand, so Arduino is sort of NDA products? "Non-Disclosure Agreement"
Then the word "opensource" should not be arbitrarily used.
That is no more than fraud.

I completely agree with you: I have no problem with people making money or closed hardware, but advertising the Yun as Open Hardware is a lie, and this attitude is new to Arduino.

What I would like is a PUBLIC statement from the Arduino team that the Yun contains proprietary and/or non-disclosed materials that prevent you from adapting the board to your needs, even if the excuse for such change is to try to bring more power to the user, as this comes to the expense of freedom.
13  Products / Arduino Yún / Re: Is the Arduino Yun still Open Hardware? on: February 07, 2014, 11:11:43 am
Ok, so were are the schematics and layout for the Hornet (AR9331) MOST important parts?

Where are the schematics and layout in editable format? smiley-mr-green
14  Products / Arduino Yún / Re: Is the Arduino Yun still Open Hardware? on: February 07, 2014, 12:52:56 am
I arrived at the same conclusion smiley-sad

I don't have any problem with someone making money or selling a name, but I am concerned when you don't respect your promises and treat people like  cash providers and pretend to be community-driven.
15  International / Français / Re: WR703N + VinciDuino on: October 12, 2013, 02:24:14 am
Impossible à dire avec certittude, car les schémas complets du Yun (comprenant la partie AR9331) ne sont pas disponibles smiley-cry

En pratique, je pense en effet que le Yun soit très proche d'une Leonardo + WR703N car également basé sur OpenWrt, avec probablement les mêmes problèmes de freeze de la voie série virtuelle sur USB...
Pages: [1] 2 3 ... 6