Show Posts
Pages: [1] 2 3 4
1  Products / Arduino Yún / Re: shutdown and restart on: April 13, 2014, 06:32:38 am
Maybe you can make Python run the '/sbin/reboot' program ...

kind regards,

Jos
2  Products / Arduino Yún / Re: Attach a USB to SERIAL / FTDI to get an extra serial port on: March 15, 2014, 12:30:34 pm
Depening on your USB/Serial converter, you maybe have to install these as well:

kmod-usb-acm - 3.8.3-1
kmod-usb-core - 3.8.3-1
kmod-usb-serial - 3.8.3-1
kmod-usb-serial-pl2303 - 3.8.3-1

kind regards,

Jos
3  Products / Arduino Yún / Re: Inheriting the Console Class on: March 12, 2014, 05:10:03 am
The name is 'ConsoleClass', not 'Console'.

kind regards,

Jos
4  Products / Arduino Yún / Re: Java on: February 27, 2014, 02:46:22 pm
Those are the default paths; if you have installed the jamvm stuff on an sd, those defaults are not valid indeed; that's what my little 'java' script takes care of ...

kind regards,

Jos
5  Products / Arduino Yún / Re: Java on: February 27, 2014, 04:09:31 am
Jamvm tries to claim a small fraction of all available memory; the OpenWRT OS doesn't have much memory, so jamvm claims too little memory; add the flag -Xmx32M to the command line to help jamvm a bit ...

kind regards,

Jos

ps. why did you add all those symbolic links? Just the single link /opt --> /mnt/sda1/opt is enough and two lines changed in /etc/profile:

export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/opt/usr/bin
export LD_LIBRARY_PATH=/opt/usr/lib:/opt/usr/lib/classpath
6  Products / Arduino Yún / Re: Java on: February 26, 2014, 10:58:20 am
OpenJDK is not available for the MIPS processor; b.t.w. what were the problems you experienced with that small script?

kind regards,

Jos
7  Products / Arduino Yún / Re: which major/minor device numbers? on: February 26, 2014, 10:44:49 am
Thanks a  bunch! It was the last line that did it! I have Prolific PL2303 usb-TTL serial converter but I had only the kmod-usb-serial module installed (I thought that was enough but I also had to install the kmod-usb-serial-pl2303 module); now a /dev/ttyUSB0 device interface is created when I plug my serial device in the OpenWRT (Linino) thingy; Phew, that took me more than a week; thanks again!

kind regards,

Jos
8  Products / Arduino Yún / Re: which major/minor device numbers? on: February 26, 2014, 08:34:12 am
*bump*, anyone? fyi: there are no /dev/ttyACM0 or /dev/ttyUSB0 nodes on my machine and I don't know how to create them (manually?) All I want is to make the OpenWRT box talk to a serial device (no AtMega is involved here) ...

kind regards,

Jos
9  Products / Arduino Yún / Re: Java on: February 26, 2014, 05:42:18 am
I stored the following one-liner 'java' script in the same directory where the jamvm executable file is stored:

exec jamvm -Xbootclasspath:/opt/usr/share/jamvm/classes.zip:/opt/usr/share/classpath/glibj.zip $1 $2 $3 $4 $5 $6 $7 $8 $9

the path /opt is a symbolic link to /mnt/sda1/opt where the entire shebang is stored on my sd card. As a convenience this allows my to do: 'java MyClass', without that horrible command line needed for jamvm.

kind regards,

Jos
10  Products / Arduino Yún / which major/minor device numbers? on: February 25, 2014, 08:18:42 am
Greetings,

I want to hook up a simple serial device to the master USB port; I read that openwrt doesn't dynamically create an interface in /dev, so I want to mknod c <major> <minor> ttyUSBx but what are the <major>  and <minor> device numbers supposed to be?

In /dev//bus/usb/001 I find this:

crw-r--r--    1 root     root      189,   0 Feb 25 14:07 001
crw-r--r--    1 root     root      189,   1 Feb 25 14:07 002
crw-r--r--    1 root     root      189,   2 Feb 25 14:07 003

... so I guess that the <major> device number is supposed to be 189, but the moment I connect my simple serial device a new entry is created in the directory mentioned above.

I have the following USB modules installed:

kmod-usb-acm - 3.8.3-1
kmod-usb-core - 3.8.3-1
kmod-usb-storage - 3.8.3-1
kmod-usb2 - 3.8.3-1
libusb-1.0 - 1.0.9-1
libusb-compat - 0.1.4-1
usbutils - 006-1

So, basically, my question is: what are the <major> and <minor> device numbers supposed to be? (and does the name of the interface really matter?)

kind regards,

Jos
11  Products / Arduino Yún / Re: Programming alternatives for python on: February 23, 2014, 05:02:28 am
I try to use JDBC but failed.  Oracle support  latest Java SE Embedded version 7 Update 51  for ARMv5, ARMv6/ARMv7, ARMv7 only. I will try Arduino TRE once it is available.

I was afraid of that; Java support for the MIPS processor(s) is lousy; the only alternative I found was jamvm and the Gnu classes ... I'm also curious about the 'official' Java implementation for the ARM processor(s).

kind regards,

Jos
12  Products / Arduino Yún / Re: Programming alternatives for python on: February 21, 2014, 09:48:34 am
@sonnyyu & denpries; jamvm implements quite an old version of the JVM (version 1.5) but the biggest burden are the Gnu classpath classes: they're incomplete and have quite a few bugs all over the place; they can be fixed of course or 'programmed around' them (I did the latter). My Java stuff acts as the 'other' side of a bridge, so it must be started by the Atmega and System.in/out/err are 'automagically' coupled to /dev/ttyATH0; on the AtMega side it's simply the Serial1 stream ...

I don't know if those 'big' databases run on that Java configuration; have you tried Derby/JavaDB? It comes bundled with the JavaSE 1.6 distribution (it's all written in Java itself).

kind regards,

Jos
13  Products / Arduino Yún / Re: Programming alternatives for python on: February 20, 2014, 08:31:16 am
I use java (the jamvm jvm with the Gnu 'classpath' classes); java has many benefits over plain C/C+ and its pretty fast.

kind regards,

Jos

ps. if you install it on /mnt/sda1, make sure the disk is formatted as an ext2/3/4 filing system because the jamvm wants to create a couple of symbolic links ...
14  Products / Arduino Yún / Re: Using Serial and Bridge at the same time on: February 15, 2014, 08:23:15 am
I´m showing my stupidity here, I´m sure, but if the two processsors can ommunicate over Serial1/-dev/ttyATH0, what´s the use for a second line?

kind regards,

Jos
15  Products / Arduino Yún / Re: Using Serial and Bridge at the same time on: February 14, 2014, 02:24:59 am
@mamu: that article mentions the driver but doesn't supply a link; do you happen to know where/how  it can be downloaded/installed? Thanks.

kind regards,

Jos
Pages: [1] 2 3 4