Show Posts
Pages: [1] 2 3 ... 7
1  Products / Arduino Yún / Re: Wifi connection lost, do I have some logs? on: July 25, 2014, 06:33:40 am
do you have sd card bootable?
2  Products / Arduino Yún / Re: Wifi connection lost, do I have some logs? on: July 25, 2014, 04:33:38 am
Also with the new workaround script (do not reset configuration) after some days the yun lost the connection and the white led in the board is off.

I have tried to move the router and now
if I go in the router control panel the mac address of the yun has
Signal           Noise   RX Rate                                           TX Rate
-88 dBm   0 dBm   28.9 Mbit/s, MCS 3, 20MHz   21.7 Mbit/s, MCS 2, 20MHz

if I go in the yun luci (advanced panel) I can see the ip of the router with those values:
-71 dBm   -88 dBm   13.0 Mbit/s, MCS 1, 20MHz   28.9 Mbit/s, MCS 3, 20MHz

The router is ~7-8 meter. Honestly I don't think it is really a problem of wifi strength. Am I wrong?

It has to say that I'm using yun openwrt sys upgrade 1.2 (I have installed a bunch of things and if it is possible I won't format everything) and bootable sd card.
Can it be a problem?

In the previous post I realised that I have done a useless log, In my log I have only "wifi down, rebooting."
What kind of more useful information can I log down?
3  Products / Arduino Yún / Re: Python script to monitor Yun wifi connection on: July 25, 2014, 04:04:34 am
I am experiencing wifi stability too.

Did you uncommented the `wifi-live-or-reset` in the rc.local? To me it seems that this script is an alternative to it.

I would add some more things like wifi strength signal..
wh don't put it on github?
4  Products / Arduino Yún / zero conf protocol and node modules compiling on: July 24, 2014, 05:18:13 am
I want to play a bit with bonjour protocol that is in the yun.
I've never heard before "zero conf" neither "Avahi".
Some info on how it is configured in the yun?

But I've successfully tried on my local computer.
It is a nodejs module that requires compiling c++ code.
Has anyone already compiled it for the yun?
I haven't set up a toolchain for openwrt and yun processor yet..
5  Products / Arduino Yún / Re: Yun in wireless mesh network on: July 23, 2014, 05:40:35 pm
I honestly thing that the arduino yun is really a big step into the iot, ioe, or whatever we can call the near future.
thanks for sharing!
6  Products / Arduino Yún / Re: HTML5 bidirection websocket (node ws) sketch to try. on: July 23, 2014, 07:22:49 am
I've just read this topic..

so, I have a question: what about replacing the linux bridge part with a direct connection with node serial module and read directly from the serial instead of deadline? will it make it faster?
7  Products / Arduino Yún / Re: Solutions for avoiding time-consuming Bridge.put and Bridge.get calls? on: July 23, 2014, 05:51:36 am
how are you creating the web page?

i mean: a solution for that will be replace the bridge. bridge is very nice and very handy but a little bit slow, as you noticed.
you can do this:
write on the linux side a simple web server that in one side handle the incoming http request and in the other side read and write the serial. on the arduino side you just read and write on the serial as if you were with an arduino uno and have to communicate with your computer..

this involve commenting out the ttyATH0::askfirst:/bin/ash --login in /etc/inittab.. there are few blog post about it in the net
8  Products / Arduino Yún / Re: How to reduce non-Bridge data trafic on the inter-processors serial line ... ? on: July 23, 2014, 05:47:15 am
i think that yes upgrading will solve the kernel panic issue for sure your because it will delete everything in your yun
9  Products / Arduino Yún / Re: Communication between 2 Arduino Yunv over WiFi on: July 17, 2014, 04:03:54 am
IHMO I think that the only problem is to understand the yun ip.
after that you can do it in the way you are more comfortable: raw socket, http, udp, osc, what you want. in which language do you want: c++ on arduino side, python, js with nodejs.. whatever
10  Products / Arduino Yún / Re: Wifi connection lost, do I have some logs? on: July 17, 2014, 03:53:58 am
ok there is something very strange happening..

The yun is up, I can ping it and ssh into it, because I remember its ip

In the configuration page of my router (an old to-link with openwrt on it) I can not see the ip address:

(I know that is that machine because I know the mac address and I can ping and ssh because I know the ip it had yesterday via dhcp)

So.. what can it be?
11  Products / Arduino Yún / Re: Yun NodeJS simple web server bug? on: July 16, 2014, 07:34:21 am
is it a windows problem?
12  Products / Arduino Yún / Re: Wifi connection lost, do I have some logs? on: July 16, 2014, 07:33:06 am
it seems to work.. I will see.. : )
13  Products / Arduino Yún / Re: Wifi connection lost, do I have some logs? on: July 15, 2014, 05:03:20 am
ok thank you, very helpful.

So, I'd like to replace `wifi-live-or-reset` with `wifi-live-or-log-and-reboot`

could it be something like that?:


blink-start 200




update_vars() {
    iface_exists=`/usr/sbin/iwconfig $IFACE`
    iface_has_no_ssid=`/usr/sbin/iwconfig $IFACE | grep ESSID\:off\/any`
    iface_is_access_point=`/usr/sbin/iwconfig $IFACE | grep Mode\:Master`

wait_for_iface() {
    if [ $slept -gt $MAX_SLEEP ]
        /bin/dmesg > /last_dmesg_with_wifi_errors.log
#        /sbin/uci set "arduino.@arduino[0].wifi_reset_step=timed_out"
#        /sbin/uci commit arduino
#        /usr/bin/wifi-reset-and-reboot
        exit 1

    sleep $SLEEP_TIME
    slept=$(($slept + $SLEEP_TIME))



while [ true ]
    if [ "$iface_exists" = "" ]
#    elif [ "$iface_is_access_point" != "" ]
#    then
#        blink-stop
#        exit 0
#    elif [ "$iface_has_no_ssid" != "" ]
#    then
#        wait_for_iface

        # log down and reboot!
        cp /last_dmesg_with_wifi_errors.log "/www/log/last_dmesg_with_wifi_errors_$now.log"
        echo "$now : wifi down, rebooting."

        rm -f /last_dmesg_with_wifi_errors.log
        exit 0

is it correct?
14  Products / Arduino Yún / Wifi connection lost, do I have some logs? on: July 14, 2014, 03:17:20 am
I have an arduino yun connected to my wifi with upgraded image and sd boot.
Everything working properly but sometimes the connection is lost and the yun resets the wifi configuration and opens the access point.

I don't know exactly why it happens: I think that during the night time the network goes in my home router and the arduino do not find the correct wifi and reset itself.

It seems to me (but my linux knowledge are very limited) that logging is disabled due to flash limitation memory (/var/log contains empty files).. isn't it?
I just found log read, but nothing helps..

Is there any log I can check?
How can I understand where the problem is?
How can disable the wifi configuration reset? Is it sane?
Can the sd-boot be the cause of the problem?
How can I enable the logs again to understand when and why the wifi connection is resetted?
Any kind of helps?

I have an OpenWRT router so I can also write something in the router to see if something goes wrong.. but.. what? (sorry I'm a beginner in the openwrt-network linux side)

It is a very strange situation.. The yun works properly with both processors for days but sometimes the dark side of the stars throw this black spell over my yun and nothing works, I have to connect to the ArduinoYun, set again the wireless password, and reboot it. Kind of annoying.
15  Products / Arduino Yún / Run OpenWRTYun on other hardware on: June 17, 2014, 06:04:06 am
I am very pleased to use the OpenWRTYun with this vibrant community.
I have an old drink router with an openwrt on it.

Is it possible to install OpenWRTYun on it?
The CPU is a MIPS 24KEc V4.12, where on the Yun is MIPS 24Kc V7.4..

cat /proc/cpuinfo
system type : Ralink RT3350 id:1 rev:2
machine : D-Link DIR-300 B1
processor : 0
cpu model : MIPS 24KEc V4.12
BogoMIPS : 212.58
wait instruction : yes
microsecond timers : yes
tlb_entries : 32
extra interrupt vector : yes
hardware watchpoint : yes, count: 4, address/irw mask: [0x0000, 0x0000, 0x0230, 0x0000]
ASEs implemented : mips16 dsp
shadow register sets : 1
kscratch registers : 0
core : 0
VCED exceptions : not available
VCEI exceptions : not available

HAve you ever tried it?
Pages: [1] 2 3 ... 7