Show Posts
Pages: 1 ... 55 56 [57] 58 59 ... 121
841  Products / Arduino Yún / Re: ArduinoYun LEDs (WLAN and USB indicator). on: February 01, 2014, 02:51:59 pm
Turn on USB led:

842  Products / Arduino Yún / Re: ArduinoYun LEDs (WLAN and USB indicator). on: February 01, 2014, 02:47:09 pm
...
My questions are:

* Why was the WLAN lead not working out of the box? Is it meant to be like this so that it is up to the user to decide how to use the led?

* I have not tried led the USB but I am guessing that the lead will also not work by default, and I do not see a trigger (see available triggers) that I could use to create the LED configuration for it. Is it so that I need to install kmod-ledtrig in Linino to get this trigger ?

* Which is the led ath9k-phy0 physical in the board?
...

The led ath9k-phy0 is first led IEEE 802.3 Fast Ethernet Switch. It  is WAN (ethernet indicator) .

In a single chip, the AR9331 includes a MIPS 24K processor, five-port IEEE 802.3 Fast Ethernet Switch with MAC/PHY, one USB 2.0 MAC/PHY, and external memory interface for serial Flash, SDRAM, DDR1 or DDR2, I2S/SPDIF-Out audio interface, SLIC VOIP/PCM interface, UART, and GPIOs that can be used for LED controls or other general purpose interface configurations.


843  Products / Arduino Yún / Re: data streaming from software serial to console() on: February 01, 2014, 01:13:52 pm
The USB specification limits the length of a cable between USB 2.0 devices to 5 meters (or about 16 feet).
844  Products / Arduino Yún / Re: data streaming from software serial to console() on: February 01, 2014, 10:55:45 am
Plan B:

Connect Arduino Mini via USB into Linino/AR9331 USB, split 30 into 2 groups 15 each.  add RS485 on 32u4. mini takcare one group ,  32u4 take care an other group.  Since USB support upto 128 devices.  You could expand you network upto 1920 nodes. smiley-wink

845  Products / Arduino Yún / Re: How to "clone" Linino including custom configurations on: February 01, 2014, 07:00:09 am
Plan D: (Experiment)

Very similar like Plan B, but without solder and desolder.



+

in Circuit Flash Programmer

846  Products / Arduino Yún / Re: PoE with Yun? on: February 01, 2014, 06:28:35 am
OEM website:

http://www.silvertel.com/poe_products.htm
847  Products / Arduino Yún / Re: Arduino Yun - connection question on: January 31, 2014, 02:39:17 pm
If You would like to setup RESt  Service API at .NET, and Consume RESt API from Yun.

Consume .NET RESt API from Arduino

Yun HTTP Client

http://arduino.cc/en/Tutorial/HttpClient

Code:
void loop() {
  HttpClient client;
  client.get(dotnetwebserviceURI);

  while (client.available()) {
    char c = client.read();
    Serial.print(c);
  }
  Serial.flush();

  delay(5000);
}
848  Products / Arduino Yún / Re: Arduino Yun - connection question on: January 31, 2014, 02:28:53 pm
One click away.

Consume RESt API from .NET

Code:
var client = new HttpClient();
var response = client.Get("http://myArduinoYun.local/arduino/analog/2");

analogRead(2).
849  Products / Arduino Yún / Re: Arduino Yun: Storing Data in Mysql installed on Linino on: January 31, 2014, 02:24:03 pm
1. Install mySQL server:

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

2. Setup  python-mysql

http://forum.arduino.cc/index.php?topic=206746.msg1524868#msg1524868

Code:
mysql> CREATE DATABASE ARDUINO;
mysql> USE ARDUINO;
mysql> CREATE TABLE temperatura (id INT, data VARCHAR(20), tempdegree VARCHAR(20));
mysql> SHOW TABLES;

Code:
opkg update
opkg install python-mysql

Code:
nano /mnt/sda1/mysql.py

Code:
#!/usr/bin/python
# -*- coding: utf-8 -*-

import _mysql
import sys, string, os
#print sys.argv


try:
    con = _mysql.connect('127.0.0.1', 'root', 'new-password', 'ARDUINO')
    #con.query("SELECT VERSION()")
    #result = con.use_result()
    #print "MySQL version: %s" %  result.fetch_row()[0]
sqlstr="INSERT INTO temperatura (id,data ,tempdegree) VALUES( " + sys.argv[1] +", '" + sys.argv[2] + "', '" + sys.argv[3] + "')"
#print  sqlstr
con.query(sqlstr)
   
except _mysql.Error, e:
 
    print "Error %d: %s" % (e.args[0], e.args[1])
    sys.exit(1)

finally:
   
    if con:
        con.close()

Code:
chmod 755  /mnt/sda1/mysql.py 
/mnt/sda1/mysql.py  2  'test1' 'test2'

confirm data insert into table.

3. ATmega32u4  side.

http://arduino.cc/en/Tutorial/Process

Code:
void insertdb() {
  Process p;           
  p.begin("/mnt/sda1/mysql.py");     
  p.addParameter("1");
  p.addParameter("32");
  p.addParameter("64");
  p.run();
850  Products / Arduino Yún / Re: Arduino Yun - connection question on: January 31, 2014, 12:56:45 pm
http://arduino.cc/en/Tutorial/Bridge

Quote

Consume RESt API from .NET
851  Products / Arduino Yún / Re: Logging data to the USB Thumb Drive on: January 31, 2014, 12:01:25 pm
I would like to modify SDDataLogger to write to a USB thumbdrive instead of SD card. Is it just a question of changing the filepath?

Yes. Since "FILE_APPEND"

Code:
File dataFile = FileSystem.open("/mnt/sd/datalog.txt", FILE_APPEND);

You might need create that file first.

Code:
touch /mnt/sd/datalog.txt

change filepath base your system.

http://wiki.openwrt.org/doc/howto/usb.storage
852  Products / Arduino Yún / Re: Build Toolchain on: January 31, 2014, 11:58:08 am
first turn off
Network->SSH

after you complete compile then turn it back on

copy "110-no_ripemd_fix.patch" into package/feeds/packages/openssh/

then compile openssh alone

make package/feeds/packages/openssh/compile V=s

"110-no_ripemd_fix.patch" is from openwrt main stream.
853  Products / Arduino Yún / Re: Does Arduino Yún support microSDHC or microSDXC cards? on: January 31, 2014, 03:00:05 am
Someone please correct me if I'm mistaken, but from what I've read the card reader supports the SD specification up to version 2.0 (SDHC).  So any SDSC or SDHC (but not SDXC) card from 1 MB to 32 GB in size should work.

In case you're interested, some more info:

The Yun's schematic & reference design indicates that the AU6350 is the card reader:
http://arduino.cc/en/uploads/Main/arduino-Yun-schematic.pdf

The AU6350 from Alcor Micro supports the SD specification up to version 2.0 (SDHC):
http://www.alcormicro.com/en_content/c_product/product_01b.php?CategoryID=8&IndexID=1

General SD info from Wikipedia:
http://en.m.wikipedia.org/wiki/Secure_Digital

Detailed SD specs, see the link 'Physical Layer Simplified Specification':
https://www.sdcard.org/downloads/pls/simplified_specs/



HC - high capacity
XC - eXtended capacity

Micro SD is 2 GB and below.
Micro SD - HC is between 4 and 32 GB.
Micro SD - XC is 32 GB to 2 TB

Arduino Yún support microSD and microSDHC

854  Products / Arduino Yún / Re: Two web pages and one Yun on: January 30, 2014, 06:27:12 pm
Same-origin policy

http://en.wikipedia.org/wiki/Same-origin_policy

httpː//www.example.com:81/dir/other.html     Failure   Same protocol and host but different port
855  Products / Arduino Yún / Re: Problem with a Process writing on uSD on: January 30, 2014, 05:56:44 pm
Code:
f = open('/mnt/sda1/errors.txt','a')

make sure errors.txt is exist.

Code:
ls /mnt/sda1/errors.txt

create if not exist.

Code:
touch /mnt/sda1/errors.txt
Pages: 1 ... 55 56 [57] 58 59 ... 121