Show Posts
Pages: [1] 2 3 ... 93
1  Products / Arduino Yún / Re: Tty for serial port to Arduino from Linino on: April 14, 2014, 08:39:00 am
...
If anyone knows of any better solution, I'd very much appreciate if you share the info.

Not better solution but work around.

Rootfs on External Storage microSD card (extroot)

http://wiki.openwrt.org/doc/howto/extroot

http://forum.arduino.cc/index.php?topic=228204.msg1651254#msg1651254

Edit /etc/inittab at Rootfs on microSD card, comment out or delete:

Code:
#ttyATH0::askfirst:/bin/ash --login

Whenever you need access serial port again, just remove microSD card and reboot.
2  Products / Arduino Yún / Re: linino upgrade 27-03-2014 on: April 14, 2014, 08:13:25 am
Post here:

http://www.linino.org/forum/
3  Products / Arduino Yún / Re: Enable REST commands from shell command line on: April 13, 2014, 10:27:51 pm
Code:
uci show arduino
arduino.@arduino[0]=arduino
arduino.@arduino[0].password=775e9f944188a7bcb36e9ca5dc51672b44bcceeb7d56d89dfb914eb3a1ff2d69
arduino.@arduino[0].secure_rest_api=true
arduino.radio0=wifi-device
arduino.@wifi-iface[0]=wifi-iface
arduino.lan=interface

Code:
opkg install coreutils-sha256sum
echo -n arduino | sha256sum
775e9f944188a7bcb36e9ca5dc51672b44bcceeb7d56d89dfb914eb3a1ff2d69


Code:
#!/bin/sh
/sbin/uci set arduino.@arduino[0]=arduino
/sbin/uci set arduino.@arduino[0].password=775e9f944188a7bcb36e9ca5dc51672b44bcceeb7d56d89dfb914eb3a1ff2d69
/sbin/uci set arduino.@arduino[0].secure_rest_api=true
/sbin/uci set arduino.radio0=wifi-device
/sbin/uci set arduino.@wifi-iface[0]=wifi-iface
/sbin/uci set arduino.lan=interface
/sbin/uci commit arduino
4  Products / Arduino Yún / Re: How to install udp2serial library on Yun ? on: April 13, 2014, 10:00:37 pm
Setup procedure:
...
on linino the serial port is attached the the console and the kernel messages are also sent to the serial. For proper functioning the console must be disabled editing /etc/inittab
commenting this line #ttyATH0::askfirst:/bin/ash --login effect of this requires a reboot

read through  this thread http://forum.arduino.cc/index.php?topic=191820.0 for pro and con.
5  Products / Arduino Yún / Re: How to access REST API **with** password on: April 13, 2014, 09:54:34 pm
Embed the user id and password into the URL. For example:
 
Code:
http://userid:password@www.anywhere.com/
ftp://userid:password@ftp.anywhere.com/

Access REST API **with** password

Code:
http://root:arduino@192.168.0.104/arduino/digital/13/0
http://root:arduino@192.168.0.104/arduino/digital/13/1
6  Products / Arduino Yún / Re: LM35 trouble with YUN on: April 13, 2014, 09:22:11 pm
http://forum.arduino.cc/index.php?topic=209836.msg1542386#msg1542386

Arduino Yun 5v pin doesn't give me 5v, the analog sensor might be suffered.

http://playground.arduino.cc/Main/LM35HigherResolution

LM35HigherResolution, might be work around.
7  Products / Arduino Yún / Re: Linino Locks up after ~12-24 hours Running php Script every minute on: April 13, 2014, 09:13:37 pm
Forcing stdin, stdout and stderr to be unbuffered and binary

https://github.com/arduino/linino/commit/a877a08caf1c0db2479c294c818e067cd777219a

Code:
python -u bridge.py
8  Products / Arduino Yún / Re: Linino Locks up after ~12-24 hours Running php Script every minute on: April 08, 2014, 09:04:17 am
After modify uhttp or web file:

Code:
/etc/init.d/uhttpd  restart
clear browser cache! restart browser.


Test Yun in network:

At computer:
Code:
ping arduino.local

Test Yun in internet:

At Yun console:
Code:
ping sun.com
9  Products / Arduino Yún / Re: Visit my Yún-hosted page from other networks on: April 07, 2014, 06:06:12 pm
Setup DMZ used for in a wifi router:

http://superuser.com/questions/17572/whats-dmz-used-for-in-a-home-wireless-router

Configure  router to allow port forwarding:

http://superuser.com/questions/724522/how-to-configure-cable-modem-router-to-allow-port-forwarding-to-other-connected
10  Products / Arduino Yún / Re: "Could not connect to YunServer 146 Connection refused" error message on: April 07, 2014, 05:58:29 pm
http://forum.arduino.cc/index.php?topic=221431.msg1610137#msg1610137
11  Products / Arduino Yún / Re: Arduino Yun: Storing Data in Mysql installed on Linino on: April 07, 2014, 05:38:12 pm
...
If i change the delay time to 1, it should store the values every millisecond.
...

The bottleneck is bridge speed, try to use 500 ms first, then test speed up?
12  Products / Arduino Yún / Re: How do I find the Yun IP address in a Python script on: April 07, 2014, 05:32:50 pm
...
Is there an easy way to programmatically change the Yun WiFi settings?
...

http://forum.arduino.cc/index.php?topic=216850.msg1586874#msg1586874
13  Products / Arduino Yún / Re: Yún write and read from MySQL database on: April 06, 2014, 01:32:17 pm
Missing  one parameter C;-
time=> A
pin1=>B
pin2=>C

14  Products / Arduino Yún / Re: Yún write and read from MySQL database on: April 06, 2014, 01:23:55 pm
Your own code:

Code:
String paramstring3 ="'insert into testdata (\"time\",\"pin1\",\"pin2\") Values (\""+time+"\","+pin1+","+pin2+");'";
15  Products / Arduino Yún / Re: YunWebUI and LuCI on: April 06, 2014, 10:23:09 am
LuCI is based on MVC (Model–view–controller). The '/usr/lib/lua/luci/controller/arduino/index.lua' is the controller file and byte compile.

Linino/Openwrt/LuCI are all open source, and you could easily replace it with source file.

Code:
opkg update
opkg  install wget
cd /usr/lib/lua/luci/controller/arduino/
mv  index.lua index.lua.bk
wget https://raw.githubusercontent.com/arduino/YunWebUI/master/usr/lib/lua/luci/controller/arduino/index.lua --no-check-certificate
/etc/init.d/uhttpd  restart








Pages: [1] 2 3 ... 93