Show Posts
Pages: [1] 2 3 ... 9
1  Products / Arduino Yún / Re: uploading sketches over the internet on: September 30, 2014, 03:23:37 pm
yes, just download the ice v. 1.5.7 and when you have a yun in your network you'll se the ip in the board menu
2  Products / Arduino Yún / Re: Guidelines to write python code for arduino yun on: September 30, 2014, 07:37:10 am
thank you.

any other general advice for python code? like something to avoid? comprehension?  the 'as' constructor? function curry? decorators?
3  Products / Arduino Yún / Re: Arduino Yun Webserver on: September 29, 2014, 04:22:30 pm
it is really like a simplified query.. in the main website there is almost everything.. have you tried with inspector? do you receive any errors?
just open the js console in the browser and type the character $ to see if the library is correctly loaded..
4  Products / Arduino Yún / Re: Yun dns lookup fail on: September 29, 2014, 01:56:10 pm
as a side note I have noticed that sometimes on one small wifi antenna of mine the avahi/bonjour protocol was not set up and broadcasted.. just didn't work. When I used an openwrt old router.. works nice.

anyway, if you run the Process example ( )
you manage to get the curl result?
5  Products / Arduino Yún / Re: Process.write() not accepting strings on: September 29, 2014, 01:49:01 pm
have you tried with ?
I think that the `write` interface is only for low level data manipulation, but I'm not an arduino expert..
6  Products / Arduino Yún / Re: Arduino Yun Webserver on: September 29, 2014, 01:36:18 pm
I am not very experienced with the yun, just beginning..

anyway: you can check if zepto is correctly loaded going into the browser and open the inspector. chrome shortcut is: `command+i`. by this inspector you can see if the javascript gets some error. you can also check the page html to see if the page is the right one.

to see if bridge is started properly you have to ssh as root to the yun, and prompt the command `ps`. ps stay for Process Status ( ). If bridge is correctly opened you will see something like `python -u`. For shortness you can also Unix Pipe and prompt `ps | grep bridge`.

hope it helps!
7  Products / Arduino Yún / Re: Guidelines to write python code for arduino yun on: September 29, 2014, 09:42:15 am
hi federico
thanks for your effort.

if I write the python script without the nested try except (but with some checks) everything works ok, if I put the nested try except block somehow the network is compromised.

that's why I thought the try except was somehow too heavy and they has to be avoided as general guidelines in python code
8  Products / Arduino Yún / Re: Guidelines to write python code for arduino yun on: September 29, 2014, 06:18:57 am
yes it does..
9  Products / Arduino Yún / Guidelines to write python code for arduino yun on: September 27, 2014, 03:33:00 am

Are there some guidelines to follow in writing python code for embedded openwrt in the yun?
Like avoid the exceptions?

I have problem with.. the network (yet another..).

I have a simple arduino code that at a certain point calls via Bridge Process::run a python script. The python script is calling an ip with urllib2 via http get and return it to the Bridge. The http response could be a message error or a number.

I don't know if this is the problem, but if in the python script I have a nested exception handling.. it caused the openwrt to lost the network (and I need to reboot it)

this is an example of the python code:

req = urllib2.Request(ip)
    response = urllib2.urlopen(req, timeout=5)
    t = the_page =
        t = int(t)
        foo() # and go on
    except Exception as e:
        print 'no number'
        print e
except  Exception as e:
    print 'url lib error'
    print e

after the first negative response (the 'no number') the following Bridge call ends up with a: urlopen error host is unreachable and I don't manage anymore to ssh into the yun (but it works good because the bridge it is giving me this error, just no network, no ping)

I tried to tail -f /vat/bridge error log but after the first exception.. I have no more the yun in my network, also the ping says host is down.

This story makes me think that something is wrong with the nested exception and it is a construct to be avoided and so the first question.

any kind of advice?
10  Products / Arduino Yún / Re: Yun Wifi signal strength? on: September 26, 2014, 05:00:48 am
i had some troubles in the past,
see those post, you can find something useful:
and this by sonnyyu
11  Products / Arduino Yún / Re: Please upgrade your Yún - latest is 1.4.1 on: August 08, 2014, 10:55:50 am
soeey but the

new scripts extract-built-date and extract-built-date-from-sysupgrade-image

means that all the datas/files/configuration/packets installed via opkg are still in the new image after the upgrade?
12  Products / Arduino Yún / how to listen the packets coming out from the yun on: August 08, 2014, 06:10:11 am

so.. this is more a curiosity/obession for see what really happens then a real need.

I'm not so proficient in the network thing but I'm looking for a way to listen (or sniff) the packets that are coming out from the yun via wifi.

from the arduino code in the yun I'm sending some packages via

HttpClient client;
// ...

I would like to see somewhere that the packets really goes out of the yun.
How is it possible to do it?

If it worse I have an openwrt router.

After a little googling I've found this "tcpdump" thing but I don't find the binaries in the opkg install.. so, any advice?
13  International / Generale / Re: Arduino ethernet!! on: August 08, 2014, 05:55:25 am

non tutto è gratis.. ma qualcosa..
14  Products / Arduino Yún / Re: How to Render the sketch file/content running in arduino to a file in Linino? on: August 08, 2014, 05:51:52 am
do you mean: saving the .hex in the git with the source code as well?
15  International / Generale / Re: Wifi o Bluetooth ? (iphone) on: August 08, 2014, 01:33:10 am
imho: wifi, se fai delle api (html, udp-osc qualsiasi altra cosa) è più semplice portarle anche su altri dispositivi, o no?
Pages: [1] 2 3 ... 9