Show Posts
Pages: [1] 2 3 ... 120
1  Products / Arduino Yún / Re: WLAN issues on: Today at 09:36:36 am
I constantly have interrupts in the connection to my Yun. It has 30 to 40 % strength signal.
...
Unless you are at basement, desert... which means no one compete with you. The interrupts in the connection is guarantee.
2  Products / Arduino Yún / Re: WLAN issues on: Today at 09:31:17 am
Understanding Wifi Signal Strength:
Wireless signal strength is traditionally measured in either percentile or dBm (the power ratio in decibels of the measured power referenced to one milliwatt.)  The level of 100% is equivalent to the signal level of -35 dBm and higher, e.g. both -25 dBm and -15 dBm will be shown as 100%, because this level of signal is very high. The level of 1% is equivalent to the signal level of -95 dBm. Between -95 dBm and -35 dBm, the percentage scale is linear, i.e. 50% is equivalent to -65 dBm.

Get Wireless signal strength in dBm at Yun:

Code:
iwconfig 2>&1 | grep 'Signal level'
Link Quality=70/70  Signal level=-37 dBm

100% <>100%

Device A: -35 dBm=100%
Device B:-23 dBm=100%

But Device B have 400% more power than Device A. ( every 6 dBm double power)

If you have a Yun as Device A to compete a group of Device Bs at same channel. Even 100% Link Quality could be failed.

3  Products / Arduino Yún / Re: WLAN issues on: Today at 09:19:55 am
...
 I have this script always running in the background. Since I added an extra access point in my house, I have no more broken links.

Karma+

4  Products / Arduino Yún / Re: Cannot get Yun to register IP via ethernet on: Today at 09:10:26 am
...
No  Internet Control Message Protocols (ICMP) support at Uboot.

Testing  tftp server setup.

http://www.gunnalag.com/2013/08/05/how-to-test-tftp-server-from-a-client-system-in-windows/


Code:
tftp -i 192.168.2.40 GET openwrt-ar71xx-generic-yun-16M-rootfs-squashfs.bin
...

at tftp/uboot stage no ICMP/ping  support at Yun.

Very last thing turn off windows' firewall and antivirus software, use second windows machine substitute Yun  to test tftp server setup.

If you can not got RMA,  then unsolder flash IC, re-flash it might be last resolve.
5  Products / Arduino Yún / Re: Cannot get Yun to register IP via ethernet on: Today at 01:58:09 am
... I have not even been able to get a ping back from the Yun with any of the attempts although the router does indicate it has a connection on the front panel indicator and the WAN LED on the Yun sometimes blinks orange erratically like it is getting traffic.

No  Internet Control Message Protocols (ICMP) support at Uboot.

Testing  tftp server setup.

http://www.gunnalag.com/2013/08/05/how-to-test-tftp-server-from-a-client-system-in-windows/


Code:
tftp -i 192.168.2.40 GET openwrt-ar71xx-generic-yun-16M-rootfs-squashfs.bin

Plan B: get RMA from vendor.
6  Products / Arduino Yún / Re: Yun - external access? on: Today at 01:32:12 am
http://www.networkinghowtos.com/howto/configure-a-pptp-vpn-server-on-ubuntu-linux/


Code:
# Secrets for authentication using CHAP
# client        server  secret                  IP addresses

vpnuser         *       pass123                 *
vpnuser2        *       pass123                 192.168.0.103
7  Products / Arduino Yún / Re: Yun - external access? on: Today at 01:15:12 am
I am in doubt about free VPN will give you  public ip address for free.  You need find PPTP  service  provider which support dedicate IP per customer( per login id).  http://freevpn.me/   is one ip for thousands customers. I did not use service  provider, but setup PPTP server myself.


B.T.W. Your setup look like fine to me.
8  Products / Arduino Yún / Re: Yun - external access? on: August 19, 2014, 08:23:50 pm
Will this require any port forwarding at the routers end?

None.
9  Products / Arduino Yún / Re: Yun - external access? on: August 19, 2014, 04:56:04 pm
...
4. Set VPN client at arduino tcp/ip shield.
...

I found out use PPTP client might be the most straightforward way to make Yun got public internet IP address. Very easy to get through NAT and Firewall.

Code:
opkg update
opkg install ppp-mod-pptp

Code:
opkg list |grep luci-proto-ppp
luci-proto-ppp - 0.11+svn10374-1
luci-proto-ppp - 0.11+svn10467-1 - Support for PPP/PPPoE/PPPoA/PPtP

Code:
opkg install luci-proto-ppp

will be failed. manually install it.

Code:
cd ~
wget http://downloads.arduino.cc/openwrtyun/1/packages/luci-proto-ppp_0.11%2Bsvn10467-1_ar71xx.ipk
opkg install luci-proto-ppp_0.11%2Bsvn10467-1_ar71xx.ipk

reboot Yun  to load kernel driver.

Follow http://wiki.openwrt.org/doc/howto/vpn.client.pptp

setup PPTP and Firewall.

Enjoy Yun with public ip address.
10  Products / Arduino Yún / Re: How to Capture ASCII data from a USBHost device? on: August 19, 2014, 04:16:08 pm
Hello All,

I'm attempting to capture data from a peripheral device.  Within OpenWRT, the device is identified as /dev/ttyACM0. 

typically in Linux I would do something similar to:

Code:
import serial

ser = serial.Serial('/dev/ttyACM0', 9600,'N',1)

data =ser.read(100)
print data
ser.close()

However it doesn't work in OpenWRT.  Do you have any suggestions?

Thanks in advance,

The device you try to capture has to be "9600,'N',1" as well.
11  Products / Arduino Yún / Re: How to Capture ASCII data from a USBHost device? on: August 19, 2014, 04:15:02 pm
I just found this website
http://usbip.sourceforge.net/

Which then led me to

http://wiki.openwrt.org/doc/howto/usb.iptunnel

Has anyone successfully implemented a USB to IP tunnel for Yun?

Regards,

http://forum.arduino.cc/index.php?topic=218446.msg1597346#msg1597346
12  Products / Arduino Yún / Re: Execute Python script from Arduino code (Process) on: August 19, 2014, 04:08:37 pm
Arduino code:

Code:
#include <Process.h>

void setup() {
  // Initialize Bridge
  Bridge.begin();
  // Initialize Serial
  Serial.begin(9600);
  // Wait until a Serial Monitor is connected.
  while (!Serial);
}

void loop() {
  // Do nothing here.
  Process p; // Create a process and call it "p"
  p.begin("/mnt/sda1/do_p.py"); // Process that launch the "do_p.py" command
  p.addParameter("500"); // Add the parameter to "Temp"
  p.addParameter("1000"); // Add the parameter to "Wilg"
  p.run(); // Run the process and wait for its termination

  // Print arduino logo over the Serial
  // A process output can be read with the stream methods
  while (p.available() > 0) {
    char c = p.read();
    Serial.print(c);
  }
  // Ensure the last bit of data is sent.
  Serial.flush();
  delay(10000);
}
13  Products / Arduino Yún / Re: Execute Python script from Arduino code (Process) on: August 19, 2014, 04:06:37 pm
Install software:
Code:
opkg update
opkg install sqlite3-cli
opkg install  python-sqlite3

Create DB:
Code:
sqlite3 /mnt/sda1/test1.db

Code:
sqlite> create table tablica(id integer, Temp,Wilg, primary key(id asc));
sqlite> INSERT INTO tablica (Temp,Wilg) VALUES (12, 30);
sqlite> INSERT INTO tablica (Temp,Wilg) VALUES (12, 30);
sqlite> select * from tablica;
1|12|30
2|12|30
sqlite>.quit

Create python file:

Code:
nano /mnt/sda1/do_p.py

Code:
#!/usr/bin/python
import sqlite3 as sqlite
import sys
script,Temp,Wilg = sys.argv
con = sqlite.connect('/mnt/sda1/test1.db')
cur = con.cursor()
cur.execute('''INSERT INTO tablica (Temp,Wilg) VALUES(?,?)''',(Temp,Wilg))
con.commit()
con.close()

Code:
chmod 755  /mnt/sda1/do_p.py


Testing python file:

Code:
/mnt/sda1/do_p.py  100 200

Code:
sqlite3 /mnt/sda1/test1.db

Code:
sqlite> select * from tablica;
.quit
14  Products / Arduino Yún / Re: Rest api : YunServer 146 Connection refused on: August 19, 2014, 03:18:30 pm
Two ways;-

A.

Code:
uci show arduino

Code:
...
arduino.@arduino[0].secure_rest_api=true
...

Code:
uci  set arduino.@arduino[0].secure_rest_api=false
uci commit arduino
uci show arduino

Code:
...
arduino.@arduino[0].secure_rest_api=false
...

B.
Code:
nano /etc/config/arduino

Code:
config arduino
        option password '775e9f944188a7bcb36e9ca5dc51672b44bcceeb7d56d89dfb914e
        option secure_rest_api 'false'
...

Code:
uci commit arduino

or

reboot Yun

15  Products / Arduino Yún / Re: HOW TO: Arduino Yun + Hamachi? on: August 15, 2014, 11:37:09 pm
Hamachi is not open source based.

The chance to support it at Openwrt /Yun  will be  next to zero.
Pages: [1] 2 3 ... 120