Show Posts
Pages: 1 2 [3] 4 5 ... 8
31  Products / Arduino Yún / Re: jamvm out of memory on: May 11, 2014, 10:47:19 am
Did you try the flag -Xmx32M (or similar)?

kind regards,

Jos
32  Products / Arduino Yún / Re: Testing serial port on: May 10, 2014, 12:49:32 pm
You can install it: coreutils-stty; the /dev/ATH0 device runs at 250000 baud.

kind regards,

Jos
33  Products / Arduino Yún / Re: vague 433MHz question on: May 04, 2014, 10:35:27 am
Quote
AtMega hangs up and doesn't respond to anything anymore
Do you mean the 32u4, the ar9331 or the Yun as a whole? What exactly stops happening?
Can you still ssh into the Yun? Can you still talk to the Yun over USB? Can you still access the Yun web interface?

It's only the AtMega (32u4) that doesn't respond anymore; I can communicate fine with the MIPS processor; it just can't talk to th AtMega anymore; it is stone dead. It comes up fine again after a reset though ...

Quote
I am quite sure that the issue is not a memory leak or a bug in my code;
Don't totally discount memory being the problem, the 32u4 has 2.5k of sram the Mega has 8k.

I know, I'm only using this many bytes of Flash/RAM:

Sketch uses 16,590 bytes (57%) of program storage space. Maximum is 28,672 bytes.
Global variables use 612 bytes (23%) of dynamic memory, leaving 1,948 bytes for local variables. Maximum is 2,560 bytes.

To see if the Yun is causing a RFI problem with your receiver, run your setup on the Mega and put the Yun as close as possible to where it would be if you were using it and power it up.

I'll check it and thanks for the tip,

kind regards,

Jos
34  Products / Arduino Yún / Re: vague 433MHz question on: May 04, 2014, 09:52:55 am
radio interference is not the problem.
check for memory leaks. (may use monitoring software for this) og good decoupling on power supply lines

Now I'm more confused than I already was before; another person (not on this forum) who was an antenna himself in a previous life (if you'd ask me ;-) claimed that it most likely would be high frequency interference. I'm a math guy and I claim utter incompetence in this field ...

b.t.w. I am quite sure that the issue is not a memory leak or a bug in my code; it is more than two years old and I scrutinized it again this morning and above all, it runs flawlessly on my old AtMega2560.

Thanks for replying and

kind regards,

Jos
35  Products / Arduino Yún / vague 433MHz question on: May 04, 2014, 07:22:11 am
Greetings,

I own a Yun and the AtMega processor serves quite a few sensors; one of them is a 433MHz receiver and the AtMega processor decodes the received signal. Software-wise speaking everything works fine except sometimes, just sometimes (once per day or so) the AtMega hangs up and doesn't respond to anything anymore. (except for a power off/power on signal or a complete reset of the processor).

That 433MHz receiver with its antenna is located very near the Yun board. I know nothing about hardware, but the idea popped up that a 400MHz crystal for the MIPS processor and 433MHz for the receiver aren't that much apart and maybe some lethal interference could've happened. Am I making sense? Would isolation of the entire Yun board help? Or are my thoughts way off? All the other sensors don't cause any troubles and my same software for the 433MHz receiver runs fine on another (Arduino 2560) 16MHz board.

kind regards,

Jos
36  Products / Arduino Yún / Re: Jamvm help...please on: May 01, 2014, 10:47:16 am
I do, but in order to try what you recommend a native library is also required...like RXTX JSSC makes reference to native calls.

Trying streams did not work, hence the reason why someone took the time to write RXTX and JSSC.

How strange, because I've been using streams using Java alone on that /dev/ttyUSB0 device for months now (polling them) and it works as a breeze ...

kind regards,

Jos
37  Products / Arduino Yún / Re: Jamvm help...please on: May 01, 2014, 09:58:40 am
Do you have a file 'ttyUSB0' (or similar) in your /dev directory? If not, install the needed package(s) first.

kind regards,

Jos
38  Products / Arduino Yún / Re: Jamvm help...please on: April 27, 2014, 12:54:57 pm
You don't need it; e.g.

String serial= "/dev/ttyUSB0";
InputStream in= new FileInputStream(serial);
OutputStrea out= new FileOutputStream(serial);

... and read and write your bytes through 'in' and 'out'; that's all.

kind regards,

Jos

ps. you can set the baudrate before you start your Java program (see stty)
39  Products / Arduino Yún / Re: Jamvm help...please on: April 27, 2014, 11:18:10 am
There is no need to build your own RXTX library on the Yun: if you have an usb/serial connector and installed the correct driver (see the opkg packages) you have a /dev/ttyUSB 'file' (mind the quotes). You can open it both for reading (FileInputStream) and writing (FileOutputStream) from Java and voila.

kind regards,

Jos
40  Products / Arduino Yún / Re: Jamvm help...please on: April 26, 2014, 11:22:33 pm
Command line:

/opt/usr/bin/jamvm -Dgnu.classpath.boot.library.path=/opt/usr/lib/classpath -Xbootclasspath:/opt/usr/share/jamvm/classes.zip:/opt/usr/share/classpath/glibj.zip -jar DSgateway.jar


I don't have a manifest file.

That means that you didn't run your classes from a .jar file with your other Java implementation. Jamvm doesn't know which class in the .jar file to use for a starting point. You need to have a manifest entry in your .jar file as follows;

Main-Class: YourMainClass

kind regards,

Jos
41  Products / Arduino Yún / Re: node.js on: April 26, 2014, 07:54:15 am
Maybe this will help: http://giorgiocefaro.com/blog/installing-node-js-on-arduino-yun

kind regards,

Jos
42  Products / Arduino Yún / Re: Jamvm help...please on: April 26, 2014, 05:54:42 am
Can you show the command line and the manifest entry?

kind regards,

Jos
43  Products / Arduino Yún / Re: Jamvm help...please on: April 21, 2014, 01:14:28 pm
It should be: /opt/usr/share/classpath/glibj.zip; the other one should be: /opt/usr/share/jamvm/classes.zip. Also see the -X option in the 'java' script above.

kind regards,

Jos
44  Products / Arduino Yún / Re: Jamvm help...please on: April 21, 2014, 11:48:33 am
I just used opkg (don't forget to add a line to the /etc/opkg.conf file for the correct installation destination).

kind regards,

Jos
45  Products / Arduino Yún / Re: Jamvm help...please on: April 21, 2014, 10:43:28 am
If you figure out what the cause was, please let me/us know here; also, if Rob whispers dark, useful secrets w.r.t. jamvm, I'm all ears too ;-)

kind regards,

Jos
Pages: 1 2 [3] 4 5 ... 8