Show Posts
Pages: 1 2 [3] 4 5 ... 126
31  Products / Arduino Yún / Major upgrade of OpenwrtYun? on: September 11, 2014, 10:47:11 am
Current OpenwrtYun is based on Openwrt attitude_adjustment 12.09  (09/2012)

Upcoming Openwrt barrier-breaker 14.07 (07/2014) and it is reached barrier-breaker 14.07-rc3  (rc:release candidate) .

Any  release plan?

32  Products / Arduino Yún / Re: Yun, 3G dongle and yun_3g library on: September 11, 2014, 10:33:47 am
@sonnyyu FYI I see you're using the wget trick for packages with "+" in the name: it has been fixed since version 1.2

I knew I am still at version 1.1 , and will update once 1.5.0 is release.
but  for my understand the "+" problem is from ISP of "arduino.cc".  They should be able to fix it.
33  Products / Arduino Yún / Re: Yun, 3G dongle and yun_3g library on: September 11, 2014, 10:10:59 am
at "https://raw.githubusercontent.com/pictux/Yun_3g/master/linino_set3g.sh"

Code:
/usr/bin/curl -k https://raw.githubusercontent.com/pictux/Yun_3g/master/luci-proto-3g_svn-r9931-1_ar71xx.ipk -o /tmp/luci-proto-3g_svn-r9931-1_ar71xx.ipk

openwrtyun has that package, install it from openwrtyun is prefer. ( very important if openwrtyun got upgraded)  :

Code:
opkg update
opkg  remove luci-proto-3g
wget http://downloads.arduino.cc/openwrtyun/1/packages/luci-proto-3g_0.11%2Bsvn10522-1_ar71xx.ipk
opkg install luci-proto-3g_0.11+svn10522-1_ar71xx.ipk
34  Products / Arduino Yún / Re: Scanning Networks on: September 10, 2014, 07:54:58 pm
Code:
iwinfo wlan0 scan |grep -E 'Address:|Signal:' >scan.txt
35  Products / Arduino Yún / Re: Scanning Networks on: September 10, 2014, 02:54:03 pm
Code:
opkg update
opkg install iwinfo
iwinfo wlan0 scan
36  Products / Arduino Yún / Re: Debian openwrt-yun build fail on: September 09, 2014, 01:59:29 pm
B.T.W. I  did all cross compile on bare metal 8 cores /120GB SSD /16 GB RAM box ( no windows, no virtual machine, with some kind of ghost software help few minutes to load new OS)
37  Products / Arduino Yún / Re: usb camera suggestions for arduino yun on: September 09, 2014, 01:07:56 pm
...
I want to implement a security system where the user gets  a picture taken with a camera connected to an arduino yun.
...

Security camera could be

Pinhole
HD (1080)
Night vision
Pan
Tilt
Zoom
...
38  Products / Arduino Yún / Re: Arduino YUN custom openwrt C program communication with arduino on: September 09, 2014, 12:56:30 pm
Post your C code here?
39  Products / Arduino Yún / Re: Arduino YUN custom openwrt C program communication with arduino on: September 09, 2014, 12:53:13 pm
Plan B:

Code:
#include <Bridge.h>
void setup()
{
    Bridge.begin();   
}
void loop()
{
char lbuffer[256];
Bridge.get("D12", lbuffer, 256);
      Bridge.put("D13", String(random(1, 100)));
delay(1000);
}

Code:
nano hello.py

#!/usr/bin/python
import sys
sys.path.insert(0, '/usr/lib/python2.7/bridge/')
from bridgeclient import BridgeClient as bridgeclient
value = bridgeclient()
value.put("D12","Test")
print value.get('D13')

Code:
chmod 755 hello.py
./hello.py
40  Products / Arduino Yún / Re: Arduino YUN custom openwrt C program communication with arduino on: September 09, 2014, 12:37:34 pm
Plan A:

Code:
#include <Bridge.h>
void setup()
{
     Bridge.begin();    
}
void loop()
{
char lbuffer[256];
Bridge.get("D12", lbuffer, 256);
     Bridge.put("D13", String(random(1, 100)));
delay(1000);
}


Code:
opkg update
opkg install php5-cli
opkg install php5-mod-sockets
opkg install php5-mod-json


Code:
nano hello.php

#!/usr/bin/php-cli
<?php
require ("/usr/lib/php/bridge/bridgeclient.class.php");
$client = new bridgeclient();
$client->put("D12","Test");
$test$client->get("D13");
echo 
$test;
?>


Code:
chmod 755 hello.php

./hello.php
41  Products / Arduino Yún / Re: Debian openwrt-yun build fail on: September 09, 2014, 12:10:50 pm
From official  site:

http://wiki.openwrt.org/doc/howto/buildroot.exigence

Debian   Suse    Red Hat   Mac OS    Fedora    NetBSD      Arch   Gentoo are all supported. 32/64 bits both is OK.

I personal test Debian 32/64 bits, CentOS(Red Hat)  32/64 bits, Fedora 32/64 bits as well as Ubuntu 32/64 bits.  but Debian 32 bits seem did best, one strait 4 hours compile with no errors. 
42  Products / Arduino Yún / Re: Arduino YUN custom openwrt C program communication with arduino on: September 09, 2014, 11:12:16 am
Quote
My C program opens /dev/ttyATH0 at only 300 baud

The speed is not issue here, if I were you, I will use bridge for communication. Go through IDE bridge example and search this forum.
43  Products / Arduino Yún / Re: Debian openwrt-yun build fail on: September 09, 2014, 11:03:23 am
...
Can 32 bit debian VM be the solution (want to make sure before I start over with 32 bit debian)?
...

Not hurt, the way to go (might not directly fix your problem but fix a lot of headache down the line).
44  Products / Arduino Yún / Re: Debian openwrt-yun build fail on: September 09, 2014, 10:58:55 am
configure: error: pkg-config not installed; please install it.

Code:
dpkg-query -l 'pkg-config*'
pkg-config                  0.26-1

That found pkg-config use at debian, but cross compile do not  use it!

Code:
cd /home/bikram/OpenWrt_yún/openwrt-yun/staging_dir/host/bin

Code:
ls -al pkg-config
-rwxr-xr-x 1 sonnyyu sonnyyu 121 Sep  2 21:47 pkg-config

nano pkg-config


file pkg-config.real
pkg-config.real: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.26, BuildID[sha1]=0x36582374ef8a833f83cdc7dded64451156a93fdc, not stripped


You might  missing pkg-config at "/home/bikram/OpenWrt_yún/openwrt-yun/staging_dir/host/bin".
45  Products / Arduino Yún / Re: Confusing YUN PWM on: September 09, 2014, 10:33:06 am
Arduino ATmega32U4 (Yun/Leonardo)

Default PWM frequency:

D3: 980Hz
D5: 490Hz
D6: 490Hz
D9: 490Hz
D10: 490Hz
D11: 980Hz
D13: 490Hz

Timer map

D3:  8-bit timer0
D5:  16-bit timer1&3
D6:  10-bit timer4
D9:  16-bit timer1&3
D10:  16-bit timer1&3
D11:  8-bit timer0
D13:  10-bit timer4

If ~490Hz is acceptable, use 5,6,9,10,13 will give you up to 5 PWM outputs with  same base frequency.

D11:  8-bit timer0 D11  is based on timer0, fix it.

Use code tag to wrap code for easy readability please.
Pages: 1 2 [3] 4 5 ... 126